.bak_3.log 981 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075
  1. !SESSION 2018-07-23 08:52:12.560 -----------------------------------------------
  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_2.log
  9. Created Time: 2018-07-23 09:32:35.795
  10. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:35.796
  11. !MESSAGE Exception occurred during problem detection:
  12. ----------------------------------- SOURCE BEGIN -------------------------------------
  13. (function(){WdatePicker();})();
  14. (function(){WdatePicker();})();
  15. (function(){Data.get();})();
  16. (function(){Data.set();})();
  17. (function(){search();})();
  18. $(function(){
  19. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  20. getfp();
  21. });
  22. var Data = {
  23. "get" : function(){
  24. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  25. var tip = layer.load(2);
  26. var result="";
  27. var url = "getgyxml.do";
  28. $.ajax({
  29. "url" : url,
  30. "data" : {
  31. "start_date" : $("#dateBegin").val(),
  32. "end_date" : $("#dateEnd").val()
  33. },
  34. "type" : "POST",
  35. "dataType" : "json",
  36. "success" : function(data) {
  37. if(data != null && data != ""){
  38. if ( data.status =="success"){
  39. getfp();
  40. alert("获取成功!");
  41. }else {
  42. alert(data.status);
  43. }
  44. }else {
  45. alert("获取失败!");
  46. }
  47. },
  48. "complete": function(){
  49. layer.close(tip);
  50. }
  51. });
  52. }else {
  53. alert("请选择日期!");
  54. }
  55. },
  56. "set" : function(){
  57. if ( $("#fpid option:selected").text() !=""){
  58. var tip = layer.load(2);
  59. var gitem = $("#form1").serialize();
  60. var jrjc;
  61. if ($("#jrjc").prop('checked') == true){
  62. jrjc = $("#departmentId").val();
  63. }else {
  64. jrjc ='N'
  65. }
  66. var url = "saverk.do";
  67. $.ajax({
  68. "url" : url,
  69. "data" : {
  70. "gitem" : gitem,
  71. "jrjc" : jrjc
  72. },
  73. "type" : "POST",
  74. "dataType" : "json",
  75. "async" : true,
  76. "success" : function(data) {
  77. if(data.status =="success"){
  78. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  79. alert("入库成功!\n入库单号:"+data.rkdh+"");
  80. }else {
  81. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  82. }
  83. window.location.reload();
  84. }else {
  85. alert(msg);
  86. }
  87. },
  88. "error": function(){
  89. alert("确认失败!");
  90. },
  91. "complete": function(){
  92. layer.close(tip);
  93. }
  94. });
  95. }else {
  96. alert("请选择发票!");
  97. }
  98. }
  99. }
  100. function getfp(){
  101. var tip = layer.load(2);
  102. var url = "getgyfp.do";
  103. $.ajax({
  104. "url" : url,
  105. "type" : "POST",
  106. "dataType" : "json",
  107. "async" : true,
  108. "success" : function(data) {
  109. if(data != null && data != ""){
  110. $("#fpid").empty();
  111. $("#fpid").append("_$tag_____________$tag____");
  112. for(var i = 0; i < data.length; i++){
  113. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  114. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  115. }
  116. }
  117. },
  118. "error" : function(msg){
  119. },
  120. "complete": function(){
  121. layer.close(tip);
  122. }
  123. });
  124. }
  125. $("#fpid").change(function(){
  126. var tip = layer.load(2);
  127. var url = "getgyrkxx.do";
  128. var sum_total=0;
  129. $.ajax({
  130. "url" : url,
  131. "data" : {
  132. "fpId" : $("#fpid").val()
  133. },
  134. "type" : "POST",
  135. "dataType" : "json",
  136. "async" : true,
  137. "success" : function(data) {
  138. $("#dataTable").html("");
  139. if(data != null && data != ""){
  140. var html = "";
  141. for(var i = 0; i < data.length; i++){
  142. var ID = data[i].id == null ? "" : data[i].id;
  143. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  144. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  145. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  146. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  147. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  148. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  149. var GOODS = data[i].goods == null ? "" : data[i].goods;
  150. var NAME = data[i].name == null ? "" : data[i].name;
  151. var SPEC = data[i].spec == null ? "" : data[i].spec;
  152. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  153. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  154. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  155. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  156. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  157. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  158. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  159. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  160. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  161. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  162. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  163. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  164. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  165. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  166. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  167. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  168. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  169. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  170. sum_total = sum_total + DSUMVALUE
  171. var invoice_type_cn =null;
  172. if (invoice_type =="00" ){
  173. invoice_type_cn="销售发票";
  174. }else if (invoice_type == "01") {
  175. invoice_type_cn="更正(对冲)发票";
  176. }else if (invoice_type == "02") {
  177. invoice_type_cn="其它类型发票";
  178. }
  179. html += "_$ta";
  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_____________$tag________________________________________________________________________________________________________________________$tag";
  201. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  202. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  203. html += "_$tag";
  204. }
  205. html += "_$ta";
  206. html += "_$tag_____________$tag____________________________________________________________________$tag";
  207. html += "_$tag_____________$tag____________________________________________________________________$tag";
  208. html += "_$tag_____________$tag____________________________________________________________________$tag";
  209. html += "_$tag_____________$tag____________________________________________________________________$tag";
  210. html += "_$tag_____________$tag____________________________________________________________________$tag";
  211. html += "_$tag_____________$tag____________________________________________________________________$tag";
  212. html += "_$tag_____________$tag____________________________________________________________________$tag";
  213. html += "_$tag_____________$tag____________________________________________________________________$tag";
  214. html += "_$tag_____________$tag____________________________________________________________________$tag";
  215. html += "_$tag_____________$tag____________________________________________________________________$tag";
  216. html += "_$tag_____________$tag____________________________________________________________________$tag";
  217. html += "_$tag_____________$tag____________________________________________________________________$tag";
  218. html += "_$tag_____________$tag____________________________________________________________________$tag";
  219. html += "_$tag_____________$tag____________________________________________________________________$tag";
  220. html += "_$tag_____________$tag____________________________________________________________________$tag";
  221. html += "_$tag_____________$tag____________________________________________________________________$tag";
  222. html += "_$tag_____________$tag____________________________________________________________________$tag";
  223. html += "_$tag_____________$tag_合计:_$tag___$tag";
  224. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  225. html += "_$tag_____________$tag____________________________________________________________________$tag";
  226. html += "_$tag_____________$tag____________________________________________________________________$tag";
  227. html += "_$tag_____________$tag____________________________________________________________________$tag";
  228. html += "_$tag_____________$tag____________________________________________________________________$tag";
  229. html += "_$tag_____________$tag____________________________________________________________________$tag";
  230. html += "_$tag_____________$tag____________________________________________________________________$tag";
  231. html += "_$tag_____________$tag____________________________________________________________________$tag";
  232. html += "_$tag";
  233. $("#dataTable").html(html);
  234. }else {
  235. $("#dataTable").html("");
  236. }
  237. },
  238. "error" : function(msg){
  239. },
  240. "complete": function(){
  241. layer.close(tip);
  242. }
  243. });
  244. });
  245. Date.prototype.Format = function (fmt) {
  246. var o = {
  247. "M+": this.getMonth() + 1, //月份
  248. "d+": this.getDate(), //日
  249. "h+": this.getHours(), //小时
  250. "m+": this.getMinutes(), //分
  251. "s+": this.getSeconds(), //秒
  252. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  253. "S": this.getMilliseconds() //毫秒
  254. };
  255. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  256. for (var k in o)
  257. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  258. return fmt;
  259. }
  260. $("#jrjc").change(function() {
  261. if ($("#jrjc").prop('checked') == true){
  262. $("#departmentId").removeAttr("disabled");
  263. }else {
  264. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  265. }
  266. });
  267. ----------------------------------- SOURCE END -------------------------------------
  268. !STACK 0
  269. java.lang.NullPointerException
  270. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:35.796
  271. !MESSAGE Error while processing working copy
  272. !STACK 1
  273. JavaScript Model Exception: java.lang.NullPointerException
  274. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  275. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  276. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  277. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  278. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  279. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  280. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  281. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  282. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  283. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  284. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  285. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  286. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  287. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  288. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  289. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  290. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  291. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  292. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  293. Caused by: java.lang.NullPointerException
  294. Caused by: java.lang.NullPointerException
  295. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:32:35.796
  296. !MESSAGE java.lang.NullPointerException
  297. !STACK 0
  298. java.lang.NullPointerException
  299. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:36.702
  300. !MESSAGE Exception occurred during problem detection:
  301. ----------------------------------- SOURCE BEGIN -------------------------------------
  302. (function(){WdatePicker();})();
  303. (function(){WdatePicker();})();
  304. (function(){Data.get();})();
  305. (function(){Data.set();})();
  306. (function(){search();})();
  307. $(function(){
  308. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  309. getfp();
  310. });
  311. var Data = {
  312. "get" : function(){
  313. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  314. var tip = layer.load(2);
  315. var result="";
  316. var url = "getgyxml.do";
  317. $.ajax({
  318. "url" : url,
  319. "data" : {
  320. "start_date" : $("#dateBegin").val(),
  321. "end_date" : $("#dateEnd").val()
  322. },
  323. "type" : "POST",
  324. "dataType" : "json",
  325. "success" : function(data) {
  326. if(data != null && data != ""){
  327. if ( data.status =="success"){
  328. getfp();
  329. alert("获取成功!");
  330. }else {
  331. alert(data.status);
  332. }
  333. }else {
  334. alert("获取失败!");
  335. }
  336. },
  337. "complete": function(){
  338. layer.close(tip);
  339. }
  340. });
  341. }else {
  342. alert("请选择日期!");
  343. }
  344. },
  345. "set" : function(){
  346. if ( $("#fpid option:selected").text() !=""){
  347. var tip = layer.load(2);
  348. var gitem = $("#form1").serialize();
  349. var jrjc;
  350. if ($("#jrjc").prop('checked') == true){
  351. jrjc = $("#departmentId").val();
  352. }else {
  353. jrjc ='N'
  354. }
  355. var url = "saverk.do";
  356. $.ajax({
  357. "url" : url,
  358. "data" : {
  359. "gitem" : gitem,
  360. "jrjc" : jrjc
  361. },
  362. "type" : "POST",
  363. "dataType" : "json",
  364. "async" : true,
  365. "success" : function(data) {
  366. if(data.status =="success"){
  367. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  368. alert("入库成功!\n入库单号:"+data.rkdh+"");
  369. }else {
  370. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  371. }
  372. window.location.reload();
  373. }else {
  374. alert(msg);
  375. }
  376. },
  377. "error": function(){
  378. alert("确认失败!");
  379. },
  380. "complete": function(){
  381. layer.close(tip);
  382. }
  383. });
  384. }else {
  385. alert("请选择发票!");
  386. }
  387. }
  388. }
  389. function getfp(){
  390. var tip = layer.load(2);
  391. var url = "getgyfp.do";
  392. $.ajax({
  393. "url" : url,
  394. "type" : "POST",
  395. "dataType" : "json",
  396. "async" : true,
  397. "success" : function(data) {
  398. if(data != null && data != ""){
  399. $("#fpid").empty();
  400. $("#fpid").append("_$tag_____________$tag____");
  401. for(var i = 0; i < data.length; i++){
  402. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  403. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  404. }
  405. }
  406. },
  407. "error" : function(msg){
  408. },
  409. "complete": function(){
  410. layer.close(tip);
  411. }
  412. });
  413. }
  414. $("#fpid").change(function(){
  415. var tip = layer.load(2);
  416. var url = "getgyrkxx.do";
  417. var sum_total=0;
  418. $.ajax({
  419. "url" : url,
  420. "data" : {
  421. "fpId" : $("#fpid").val()
  422. },
  423. "type" : "POST",
  424. "dataType" : "json",
  425. "async" : true,
  426. "success" : function(data) {
  427. $("#dataTable").html("");
  428. if(data != null && data != ""){
  429. var html = "";
  430. for(var i = 0; i < data.length; i++){
  431. var ID = data[i].id == null ? "" : data[i].id;
  432. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  433. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  434. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  435. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  436. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  437. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  438. var GOODS = data[i].goods == null ? "" : data[i].goods;
  439. var NAME = data[i].name == null ? "" : data[i].name;
  440. var SPEC = data[i].spec == null ? "" : data[i].spec;
  441. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  442. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  443. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  444. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  445. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  446. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  447. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  448. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  449. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  450. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  451. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  452. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  453. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  454. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  455. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  456. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  457. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  458. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  459. sum_total = sum_total + DSUMVALUE
  460. var invoice_type_cn =null;
  461. if (invoice_type =="00" ){
  462. invoice_type_cn="销售发票";
  463. }else if (invoice_type == "01") {
  464. invoice_type_cn="更正(对冲)发票";
  465. }else if (invoice_type == "02") {
  466. invoice_type_cn="其它类型发票";
  467. }
  468. html += "_$ta";
  469. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  470. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  471. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  472. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  473. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  474. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  475. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  476. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  477. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  478. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  479. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  480. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  481. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  482. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  483. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  484. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  485. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  486. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  487. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  488. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  489. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  490. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  491. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  492. html += "_$tag";
  493. }
  494. html += "_$ta";
  495. html += "_$tag_____________$tag____________________________________________________________________$tag";
  496. html += "_$tag_____________$tag____________________________________________________________________$tag";
  497. html += "_$tag_____________$tag____________________________________________________________________$tag";
  498. html += "_$tag_____________$tag____________________________________________________________________$tag";
  499. html += "_$tag_____________$tag____________________________________________________________________$tag";
  500. html += "_$tag_____________$tag____________________________________________________________________$tag";
  501. html += "_$tag_____________$tag____________________________________________________________________$tag";
  502. html += "_$tag_____________$tag____________________________________________________________________$tag";
  503. html += "_$tag_____________$tag____________________________________________________________________$tag";
  504. html += "_$tag_____________$tag____________________________________________________________________$tag";
  505. html += "_$tag_____________$tag____________________________________________________________________$tag";
  506. html += "_$tag_____________$tag____________________________________________________________________$tag";
  507. html += "_$tag_____________$tag____________________________________________________________________$tag";
  508. html += "_$tag_____________$tag____________________________________________________________________$tag";
  509. html += "_$tag_____________$tag____________________________________________________________________$tag";
  510. html += "_$tag_____________$tag____________________________________________________________________$tag";
  511. html += "_$tag_____________$tag____________________________________________________________________$tag";
  512. html += "_$tag_____________$tag_合计:_$tag___$tag";
  513. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  514. html += "_$tag_____________$tag____________________________________________________________________$tag";
  515. html += "_$tag_____________$tag____________________________________________________________________$tag";
  516. html += "_$tag_____________$tag____________________________________________________________________$tag";
  517. html += "_$tag_____________$tag____________________________________________________________________$tag";
  518. html += "_$tag_____________$tag____________________________________________________________________$tag";
  519. html += "_$tag_____________$tag____________________________________________________________________$tag";
  520. html += "_$tag_____________$tag____________________________________________________________________$tag";
  521. html += "_$tag";
  522. $("#dataTable").html(html);
  523. }else {
  524. $("#dataTable").html("");
  525. }
  526. },
  527. "error" : function(msg){
  528. },
  529. "complete": function(){
  530. layer.close(tip);
  531. }
  532. });
  533. });
  534. Date.prototype.Format = function (fmt) {
  535. var o = {
  536. "M+": this.getMonth() + 1, //月份
  537. "d+": this.getDate(), //日
  538. "h+": this.getHours(), //小时
  539. "m+": this.getMinutes(), //分
  540. "s+": this.getSeconds(), //秒
  541. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  542. "S": this.getMilliseconds() //毫秒
  543. };
  544. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  545. for (var k in o)
  546. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  547. return fmt;
  548. }
  549. $("#jrjc").change(function() {
  550. if ($("#jrjc").prop('checked') == true){
  551. $("#departmentId").removeAttr("disabled");
  552. }else {
  553. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  554. }
  555. });
  556. ----------------------------------- SOURCE END -------------------------------------
  557. !STACK 0
  558. java.lang.NullPointerException
  559. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:40.573
  560. !MESSAGE Exception occurred during problem detection:
  561. ----------------------------------- SOURCE BEGIN -------------------------------------
  562. (function(){WdatePicker();})();
  563. (function(){WdatePicker();})();
  564. (function(){Data.get();})();
  565. (function(){Data.set();})();
  566. (function(){search();})();
  567. $(function(){
  568. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  569. getfp();
  570. });
  571. var Data = {
  572. "get" : function(){
  573. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  574. var tip = layer.load(2);
  575. var result="";
  576. var url = "getgyxml.do";
  577. $.ajax({
  578. "url" : url,
  579. "data" : {
  580. "start_date" : $("#dateBegin").val(),
  581. "end_date" : $("#dateEnd").val()
  582. },
  583. "type" : "POST",
  584. "dataType" : "json",
  585. "success" : function(data) {
  586. if(data != null && data != ""){
  587. if ( data.status =="success"){
  588. getfp();
  589. alert("获取成功!");
  590. }else {
  591. alert(data.status);
  592. }
  593. }else {
  594. alert("获取失败!");
  595. }
  596. },
  597. "complete": function(){
  598. layer.close(tip);
  599. }
  600. });
  601. }else {
  602. alert("请选择日期!");
  603. }
  604. },
  605. "set" : function(){
  606. if ( $("#fpid option:selected").text() !=""){
  607. var tip = layer.load(2);
  608. var gitem = $("#form1").serialize();
  609. var jrjc;
  610. if ($("#jrjc").prop('checked') == true){
  611. jrjc = $("#departmentId").val();
  612. }else {
  613. jrjc ='N'
  614. }
  615. var url = "saverk.do";
  616. $.ajax({
  617. "url" : url,
  618. "data" : {
  619. "gitem" : gitem,
  620. "jrjc" : jrjc
  621. },
  622. "type" : "POST",
  623. "dataType" : "json",
  624. "async" : true,
  625. "success" : function(data) {
  626. if(data.status =="success"){
  627. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  628. alert("入库成功!\n入库单号:"+data.rkdh+"");
  629. }else {
  630. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  631. }
  632. window.location.reload();
  633. }else {
  634. alert(msg);
  635. }
  636. },
  637. "error": function(){
  638. alert("确认失败!");
  639. },
  640. "complete": function(){
  641. layer.close(tip);
  642. }
  643. });
  644. }else {
  645. alert("请选择发票!");
  646. }
  647. }
  648. }
  649. function getfp(){
  650. var tip = layer.load(2);
  651. var url = "getgyfp.do";
  652. $.ajax({
  653. "url" : url,
  654. "type" : "POST",
  655. "dataType" : "json",
  656. "async" : true,
  657. "success" : function(data) {
  658. if(data != null && data != ""){
  659. $("#fpid").empty();
  660. $("#fpid").append("_$tag_____________$tag____");
  661. for(var i = 0; i < data.length; i++){
  662. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  663. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  664. }
  665. }
  666. },
  667. "error" : function(msg){
  668. },
  669. "complete": function(){
  670. layer.close(tip);
  671. }
  672. });
  673. }
  674. $("#fpid").change(function(){
  675. var tip = layer.load(2);
  676. var url = "getgyrkxx.do";
  677. var sum_total=0;
  678. $.ajax({
  679. "url" : url,
  680. "data" : {
  681. "fpId" : $("#fpid").val()
  682. },
  683. "type" : "POST",
  684. "dataType" : "json",
  685. "async" : true,
  686. "success" : function(data) {
  687. $("#dataTable").html("");
  688. if(data != null && data != ""){
  689. var html = "";
  690. for(var i = 0; i < data.length; i++){
  691. var ID = data[i].id == null ? "" : data[i].id;
  692. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  693. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  694. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  695. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  696. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  697. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  698. var GOODS = data[i].goods == null ? "" : data[i].goods;
  699. var NAME = data[i].name == null ? "" : data[i].name;
  700. var SPEC = data[i].spec == null ? "" : data[i].spec;
  701. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  702. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  703. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  704. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  705. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  706. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  707. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  708. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  709. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  710. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  711. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  712. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  713. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  714. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  715. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  716. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  717. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  718. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  719. sum_total = sum_total + DSUMVALUE
  720. var invoice_type_cn =null;
  721. if (invoice_type =="00" ){
  722. invoice_type_cn="销售发票";
  723. }else if (invoice_type == "01") {
  724. invoice_type_cn="更正(对冲)发票";
  725. }else if (invoice_type == "02") {
  726. invoice_type_cn="其它类型发票";
  727. }
  728. html += "_$ta";
  729. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  730. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  731. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  732. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  733. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  734. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  735. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  736. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  737. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  738. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  739. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  740. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  741. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  742. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  743. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  744. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  745. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  746. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  747. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  748. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  749. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  750. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  751. html += "_$tag";
  752. }
  753. html += "_$ta";
  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___$tag";
  772. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  773. html += "_$tag_____________$tag____________________________________________________________________$tag";
  774. html += "_$tag_____________$tag____________________________________________________________________$tag";
  775. html += "_$tag_____________$tag____________________________________________________________________$tag";
  776. html += "_$tag_____________$tag____________________________________________________________________$tag";
  777. html += "_$tag_____________$tag____________________________________________________________________$tag";
  778. html += "_$tag_____________$tag____________________________________________________________________$tag";
  779. html += "_$tag_____________$tag____________________________________________________________________$tag";
  780. html += "_$tag";
  781. $("#dataTable").html(html);
  782. }else {
  783. $("#dataTable").html("");
  784. }
  785. },
  786. "error" : function(msg){
  787. },
  788. "complete": function(){
  789. layer.close(tip);
  790. }
  791. });
  792. });
  793. Date.prototype.Format = function (fmt) {
  794. var o = {
  795. "M+": this.getMonth() + 1, //月份
  796. "d+": this.getDate(), //日
  797. "h+": this.getHours(), //小时
  798. "m+": this.getMinutes(), //分
  799. "s+": this.getSeconds(), //秒
  800. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  801. "S": this.getMilliseconds() //毫秒
  802. };
  803. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  804. for (var k in o)
  805. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  806. return fmt;
  807. }
  808. $("#jrjc").change(function() {
  809. if ($("#jrjc").prop('checked') == true){
  810. $("#departmentId").removeAttr("disabled");
  811. }else {
  812. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  813. }
  814. });
  815. ----------------------------------- SOURCE END -------------------------------------
  816. !STACK 0
  817. java.lang.NullPointerException
  818. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-07-23 09:32:40.573
  819. !MESSAGE java.lang.NullPointerException
  820. !STACK 1
  821. JavaScript Model Exception: java.lang.NullPointerException
  822. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  823. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  824. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  825. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  826. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  827. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  828. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  829. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  830. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  831. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  832. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  833. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  834. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  835. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  836. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  837. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  838. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  839. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  840. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  841. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  842. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  843. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  844. Caused by: java.lang.NullPointerException
  845. Caused by: java.lang.NullPointerException
  846. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:32:40.573
  847. !MESSAGE java.lang.NullPointerException
  848. !STACK 0
  849. java.lang.NullPointerException
  850. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:48.380
  851. !MESSAGE Exception occurred during problem detection:
  852. ----------------------------------- SOURCE BEGIN -------------------------------------
  853. (function(){WdatePicker();})();
  854. (function(){WdatePicker();})();
  855. (function(){Data.get();})();
  856. (function(){Data.set();})();
  857. (function(){search();})();
  858. $(function(){
  859. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  860. getfp();
  861. });
  862. var Data = {
  863. "get" : function(){
  864. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  865. var tip = layer.load(2);
  866. var result="";
  867. var url = "getgyxml.do";
  868. $.ajax({
  869. "url" : url,
  870. "data" : {
  871. "start_date" : $("#dateBegin").val(),
  872. "end_date" : $("#dateEnd").val()
  873. },
  874. "type" : "POST",
  875. "dataType" : "json",
  876. "success" : function(data) {
  877. if(data != null && data != ""){
  878. if ( data.status =="success"){
  879. getfp();
  880. alert("获取成功!");
  881. }else {
  882. alert(data.status);
  883. }
  884. }else {
  885. alert("获取失败!");
  886. }
  887. },
  888. "complete": function(){
  889. layer.close(tip);
  890. }
  891. });
  892. }else {
  893. alert("请选择日期!");
  894. }
  895. },
  896. "set" : function(){
  897. if ( $("#fpid option:selected").text() !=""){
  898. var tip = layer.load(2);
  899. var gitem = $("#form1").serialize();
  900. var jrjc;
  901. if ($("#jrjc").prop('checked') == true){
  902. jrjc = $("#departmentId").val();
  903. }else {
  904. jrjc ='N'
  905. }
  906. var url = "saverk.do";
  907. $.ajax({
  908. "url" : url,
  909. "data" : {
  910. "gitem" : gitem,
  911. "jrjc" : jrjc
  912. },
  913. "type" : "POST",
  914. "dataType" : "json",
  915. "async" : true,
  916. "success" : function(data) {
  917. if(data.status =="success"){
  918. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  919. alert("入库成功!\n入库单号:"+data.rkdh+"");
  920. }else {
  921. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  922. }
  923. window.location.reload();
  924. }else {
  925. alert(msg);
  926. }
  927. },
  928. "error": function(){
  929. alert("确认失败!");
  930. },
  931. "complete": function(){
  932. layer.close(tip);
  933. }
  934. });
  935. }else {
  936. alert("请选择发票!");
  937. }
  938. }
  939. }
  940. function getfp(){
  941. var tip = layer.load(2);
  942. var url = "getgyfp.do";
  943. $.ajax({
  944. "url" : url,
  945. "type" : "POST",
  946. "dataType" : "json",
  947. "async" : true,
  948. "success" : function(data) {
  949. if(data != null && data != ""){
  950. $("#fpid").empty();
  951. $("#fpid").append("_$tag_____________$tag____");
  952. for(var i = 0; i < data.length; i++){
  953. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  954. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  955. }
  956. }
  957. },
  958. "error" : function(msg){
  959. },
  960. "complete": function(){
  961. layer.close(tip);
  962. }
  963. });
  964. }
  965. $("#fpid").change(function(){
  966. var tip = layer.load(2);
  967. var url = "getgyrkxx.do";
  968. var sum_total=0;
  969. $.ajax({
  970. "url" : url,
  971. "data" : {
  972. "fpId" : $("#fpid").val()
  973. },
  974. "type" : "POST",
  975. "dataType" : "json",
  976. "async" : true,
  977. "success" : function(data) {
  978. $("#dataTable").html("");
  979. if(data != null && data != ""){
  980. var html = "";
  981. for(var i = 0; i < data.length; i++){
  982. var ID = data[i].id == null ? "" : data[i].id;
  983. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  984. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  985. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  986. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  987. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  988. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  989. var GOODS = data[i].goods == null ? "" : data[i].goods;
  990. var NAME = data[i].name == null ? "" : data[i].name;
  991. var SPEC = data[i].spec == null ? "" : data[i].spec;
  992. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  993. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  994. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  995. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  996. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  997. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  998. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  999. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  1000. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  1001. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  1002. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  1003. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  1004. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  1005. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  1006. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  1007. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  1008. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  1009. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  1010. sum_total = sum_total + DSUMVALUE
  1011. var invoice_type_cn =null;
  1012. if (invoice_type =="00" ){
  1013. invoice_type_cn="销售发票";
  1014. }else if (invoice_type == "01") {
  1015. invoice_type_cn="更正(对冲)发票";
  1016. }else if (invoice_type == "02") {
  1017. invoice_type_cn="其它类型发票";
  1018. }
  1019. html += "_$ta";
  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_____________$tag______________________________________________________________________________________________________________________$tag";
  1033. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1034. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  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";
  1043. }
  1044. html += "_$ta";
  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_____________$tag____________________________________________________________________$tag";
  1062. html += "_$tag_____________$tag_合计:_$tag___$tag";
  1063. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  1064. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1065. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1066. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1067. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1068. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1069. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1070. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1071. html += "_$tag";
  1072. $("#dataTable").html(html);
  1073. }else {
  1074. $("#dataTable").html("");
  1075. }
  1076. },
  1077. "error" : function(msg){
  1078. },
  1079. "complete": function(){
  1080. layer.close(tip);
  1081. }
  1082. });
  1083. });
  1084. Date.prototype.Format = function (fmt) {
  1085. var o = {
  1086. "M+": this.getMonth() + 1, //月份
  1087. "d+": this.getDate(), //日
  1088. "h+": this.getHours(), //小时
  1089. "m+": this.getMinutes(), //分
  1090. "s+": this.getSeconds(), //秒
  1091. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  1092. "S": this.getMilliseconds() //毫秒
  1093. };
  1094. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  1095. for (var k in o)
  1096. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  1097. return fmt;
  1098. }
  1099. $("#jrjc").change(function() {
  1100. if ($("#jrjc").prop('checked') == true){
  1101. $("#departmentId").removeAttr("disabled");
  1102. }else {
  1103. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1104. }
  1105. });
  1106. ----------------------------------- SOURCE END -------------------------------------
  1107. !STACK 0
  1108. java.lang.NullPointerException
  1109. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:48.381
  1110. !MESSAGE Error while processing working copy
  1111. !STACK 1
  1112. JavaScript Model Exception: java.lang.NullPointerException
  1113. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  1114. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  1115. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  1116. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  1117. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  1118. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  1119. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  1120. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  1121. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  1122. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  1123. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  1124. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  1125. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  1126. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  1127. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  1128. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  1129. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  1130. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  1131. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  1132. Caused by: java.lang.NullPointerException
  1133. Caused by: java.lang.NullPointerException
  1134. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:32:48.381
  1135. !MESSAGE java.lang.NullPointerException
  1136. !STACK 0
  1137. java.lang.NullPointerException
  1138. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:49.316
  1139. !MESSAGE Exception occurred during problem detection:
  1140. ----------------------------------- SOURCE BEGIN -------------------------------------
  1141. (function(){WdatePicker();})();
  1142. (function(){WdatePicker();})();
  1143. (function(){Data.get();})();
  1144. (function(){Data.set();})();
  1145. (function(){search();})();
  1146. $(function(){
  1147. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1148. getfp();
  1149. });
  1150. var Data = {
  1151. "get" : function(){
  1152. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  1153. var tip = layer.load(2);
  1154. var result="";
  1155. var url = "getgyxml.do";
  1156. $.ajax({
  1157. "url" : url,
  1158. "data" : {
  1159. "start_date" : $("#dateBegin").val(),
  1160. "end_date" : $("#dateEnd").val()
  1161. },
  1162. "type" : "POST",
  1163. "dataType" : "json",
  1164. "success" : function(data) {
  1165. if(data != null && data != ""){
  1166. if ( data.status =="success"){
  1167. getfp();
  1168. alert("获取成功!");
  1169. }else {
  1170. alert(data.status);
  1171. }
  1172. }else {
  1173. alert("获取失败!");
  1174. }
  1175. },
  1176. "complete": function(){
  1177. layer.close(tip);
  1178. }
  1179. });
  1180. }else {
  1181. alert("请选择日期!");
  1182. }
  1183. },
  1184. "set" : function(){
  1185. if ( $("#fpid option:selected").text() !=""){
  1186. var tip = layer.load(2);
  1187. var gitem = $("#form1").serialize();
  1188. var jrjc;
  1189. if ($("#jrjc").prop('checked') == true){
  1190. jrjc = $("#departmentId").val();
  1191. }else {
  1192. jrjc ='N'
  1193. }
  1194. var url = "saverk.do";
  1195. $.ajax({
  1196. "url" : url,
  1197. "data" : {
  1198. "gitem" : gitem,
  1199. "jrjc" : jrjc
  1200. },
  1201. "type" : "POST",
  1202. "dataType" : "json",
  1203. "async" : true,
  1204. "success" : function(data) {
  1205. if(data.status =="success"){
  1206. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  1207. alert("入库成功!\n入库单号:"+data.rkdh+"");
  1208. }else {
  1209. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  1210. }
  1211. window.location.reload();
  1212. }else {
  1213. alert(msg);
  1214. }
  1215. },
  1216. "error": function(){
  1217. alert("确认失败!");
  1218. },
  1219. "complete": function(){
  1220. layer.close(tip);
  1221. }
  1222. });
  1223. }else {
  1224. alert("请选择发票!");
  1225. }
  1226. }
  1227. }
  1228. function getfp(){
  1229. var tip = layer.load(2);
  1230. var url = "getgyfp.do";
  1231. $.ajax({
  1232. "url" : url,
  1233. "type" : "POST",
  1234. "dataType" : "json",
  1235. "async" : true,
  1236. "success" : function(data) {
  1237. if(data != null && data != ""){
  1238. $("#fpid").empty();
  1239. $("#fpid").append("_$tag_____________$tag____");
  1240. for(var i = 0; i < data.length; i++){
  1241. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  1242. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  1243. }
  1244. }
  1245. },
  1246. "error" : function(msg){
  1247. },
  1248. "complete": function(){
  1249. layer.close(tip);
  1250. }
  1251. });
  1252. }
  1253. $("#fpid").change(function(){
  1254. var tip = layer.load(2);
  1255. var url = "getgyrkxx.do";
  1256. var sum_total=0;
  1257. $.ajax({
  1258. "url" : url,
  1259. "data" : {
  1260. "fpId" : $("#fpid").val()
  1261. },
  1262. "type" : "POST",
  1263. "dataType" : "json",
  1264. "async" : true,
  1265. "success" : function(data) {
  1266. $("#dataTable").html("");
  1267. if(data != null && data != ""){
  1268. var html = "";
  1269. for(var i = 0; i < data.length; i++){
  1270. var ID = data[i].id == null ? "" : data[i].id;
  1271. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  1272. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  1273. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  1274. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  1275. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  1276. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  1277. var GOODS = data[i].goods == null ? "" : data[i].goods;
  1278. var NAME = data[i].name == null ? "" : data[i].name;
  1279. var SPEC = data[i].spec == null ? "" : data[i].spec;
  1280. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  1281. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  1282. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  1283. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  1284. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  1285. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  1286. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  1287. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  1288. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  1289. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  1290. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  1291. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  1292. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  1293. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  1294. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  1295. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  1296. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  1297. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  1298. sum_total = sum_total + DSUMVALUE
  1299. var invoice_type_cn =null;
  1300. if (invoice_type =="00" ){
  1301. invoice_type_cn="销售发票";
  1302. }else if (invoice_type == "01") {
  1303. invoice_type_cn="更正(对冲)发票";
  1304. }else if (invoice_type == "02") {
  1305. invoice_type_cn="其它类型发票";
  1306. }
  1307. html += "_$ta";
  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_____________$tag___________________________________________________________________________________________________________$tag";
  1319. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  1320. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1321. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1322. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1323. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  1324. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1325. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  1326. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  1327. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1328. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1329. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  1330. html += "_$tag";
  1331. }
  1332. html += "_$ta";
  1333. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1334. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1335. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1336. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1337. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1338. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1339. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1340. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1341. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1342. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1343. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1344. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1345. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1346. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1347. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1348. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1349. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1350. html += "_$tag_____________$tag_合计:_$tag___$tag";
  1351. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  1352. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1353. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1354. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1355. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1356. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1357. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1358. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1359. html += "_$tag";
  1360. $("#dataTable").html(html);
  1361. }else {
  1362. $("#dataTable").html("");
  1363. }
  1364. },
  1365. "error" : function(msg){
  1366. },
  1367. "complete": function(){
  1368. layer.close(tip);
  1369. }
  1370. });
  1371. });
  1372. Date.prototype.Format = function (fmt) {
  1373. var o = {
  1374. "M+": this.getMonth() + 1, //月份
  1375. "d+": this.getDate(), //日
  1376. "h+": this.getHours(), //小时
  1377. "m+": this.getMinutes(), //分
  1378. "s+": this.getSeconds(), //秒
  1379. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  1380. "S": this.getMilliseconds() //毫秒
  1381. };
  1382. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  1383. for (var k in o)
  1384. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  1385. return fmt;
  1386. }
  1387. $("#jrjc").change(function() {
  1388. if ($("#jrjc").prop('checked') == true){
  1389. $("#departmentId").removeAttr("disabled");
  1390. }else {
  1391. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1392. }
  1393. });
  1394. ----------------------------------- SOURCE END -------------------------------------
  1395. !STACK 0
  1396. java.lang.NullPointerException
  1397. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:09.443
  1398. !MESSAGE Exception occurred during problem detection:
  1399. ----------------------------------- SOURCE BEGIN -------------------------------------
  1400. (function(){WdatePicker();})();
  1401. (function(){WdatePicker();})();
  1402. (function(){Data.get();})();
  1403. (function(){Data.set();})();
  1404. (function(){search();})();
  1405. $(function(){
  1406. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1407. getfp();
  1408. });
  1409. var Data = {
  1410. "get" : function(){
  1411. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  1412. var tip = layer.load(2);
  1413. var result="";
  1414. var url = "getgyxml.do";
  1415. $.ajax({
  1416. "url" : url,
  1417. "data" : {
  1418. "start_date" : $("#dateBegin").val(),
  1419. "end_date" : $("#dateEnd").val()
  1420. },
  1421. "type" : "POST",
  1422. "dataType" : "json",
  1423. "success" : function(data) {
  1424. if(data != null && data != ""){
  1425. if ( data.status =="success"){
  1426. getfp();
  1427. alert("获取成功!");
  1428. }else {
  1429. alert(data.status);
  1430. }
  1431. }else {
  1432. alert("获取失败!");
  1433. }
  1434. },
  1435. "complete": function(){
  1436. layer.close(tip);
  1437. }
  1438. });
  1439. }else {
  1440. alert("请选择日期!");
  1441. }
  1442. },
  1443. "set" : function(){
  1444. if ( $("#fpid option:selected").text() !=""){
  1445. var tip = layer.load(2);
  1446. var gitem = $("#form1").serialize();
  1447. var jrjc;
  1448. if ($("#jrjc").prop('checked') == true){
  1449. jrjc = $("#departmentId").val();
  1450. }else {
  1451. jrjc ='N'
  1452. }
  1453. var url = "saverk.do";
  1454. $.ajax({
  1455. "url" : url,
  1456. "data" : {
  1457. "gitem" : gitem,
  1458. "jrjc" : jrjc
  1459. },
  1460. "type" : "POST",
  1461. "dataType" : "json",
  1462. "async" : true,
  1463. "success" : function(data) {
  1464. if(data.status =="success"){
  1465. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  1466. alert("入库成功!\n入库单号:"+data.rkdh+"");
  1467. }else {
  1468. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  1469. }
  1470. window.location.reload();
  1471. }else {
  1472. alert(msg);
  1473. }
  1474. },
  1475. "error": function(){
  1476. alert("确认失败!");
  1477. },
  1478. "complete": function(){
  1479. layer.close(tip);
  1480. }
  1481. });
  1482. }else {
  1483. alert("请选择发票!");
  1484. }
  1485. }
  1486. }
  1487. function getfp(){
  1488. var tip = layer.load(2);
  1489. var url = "getgyfp.do";
  1490. $.ajax({
  1491. "url" : url,
  1492. "type" : "POST",
  1493. "dataType" : "json",
  1494. "async" : true,
  1495. "success" : function(data) {
  1496. if(data != null && data != ""){
  1497. $("#fpid").empty();
  1498. $("#fpid").append("_$tag_____________$tag____");
  1499. for(var i = 0; i < data.length; i++){
  1500. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  1501. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  1502. }
  1503. }
  1504. },
  1505. "error" : function(msg){
  1506. },
  1507. "complete": function(){
  1508. layer.close(tip);
  1509. }
  1510. });
  1511. }
  1512. $("#fpid").change(function(){
  1513. var tip = layer.load(2);
  1514. var url = "getgyrkxx.do";
  1515. var sum_total=0;
  1516. $.ajax({
  1517. "url" : url,
  1518. "data" : {
  1519. "fpId" : $("#fpid").val()
  1520. },
  1521. "type" : "POST",
  1522. "dataType" : "json",
  1523. "async" : true,
  1524. "success" : function(data) {
  1525. $("#dataTable").html("");
  1526. if(data != null && data != ""){
  1527. var html = "";
  1528. for(var i = 0; i < data.length; i++){
  1529. var ID = data[i].id == null ? "" : data[i].id;
  1530. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  1531. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  1532. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  1533. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  1534. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  1535. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  1536. var GOODS = data[i].goods == null ? "" : data[i].goods;
  1537. var NAME = data[i].name == null ? "" : data[i].name;
  1538. var SPEC = data[i].spec == null ? "" : data[i].spec;
  1539. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  1540. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  1541. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  1542. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  1543. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  1544. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  1545. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  1546. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  1547. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  1548. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  1549. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  1550. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  1551. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  1552. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  1553. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  1554. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  1555. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  1556. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  1557. sum_total = sum_total + DSUMVALUE
  1558. var invoice_type_cn =null;
  1559. if (invoice_type =="00" ){
  1560. invoice_type_cn="销售发票";
  1561. }else if (invoice_type == "01") {
  1562. invoice_type_cn="更正(对冲)发票";
  1563. }else if (invoice_type == "02") {
  1564. invoice_type_cn="其它类型发票";
  1565. }
  1566. html += "_$ta";
  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_____________$tag___________________________________________________________________________________________________________________________$tag";
  1579. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1580. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  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";
  1590. }
  1591. html += "_$ta";
  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_____________$tag____________________________________________________________________$tag";
  1608. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1609. html += "_$tag_____________$tag_合计:_$tag___$tag";
  1610. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  1611. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1612. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1613. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1614. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1615. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1616. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1617. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1618. html += "_$tag";
  1619. $("#dataTable").html(html);
  1620. }else {
  1621. $("#dataTable").html("");
  1622. }
  1623. },
  1624. "error" : function(msg){
  1625. },
  1626. "complete": function(){
  1627. layer.close(tip);
  1628. }
  1629. });
  1630. });
  1631. Date.prototype.Format = function (fmt) {
  1632. var o = {
  1633. "M+": this.getMonth() + 1, //月份
  1634. "d+": this.getDate(), //日
  1635. "h+": this.getHours(), //小时
  1636. "m+": this.getMinutes(), //分
  1637. "s+": this.getSeconds(), //秒
  1638. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  1639. "S": this.getMilliseconds() //毫秒
  1640. };
  1641. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  1642. for (var k in o)
  1643. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  1644. return fmt;
  1645. }
  1646. $("#jrjc").change(function() {
  1647. if ($("#jrjc").prop('checked') == true){
  1648. $("#departmentId").removeAttr("disabled");
  1649. }else {
  1650. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1651. }
  1652. });
  1653. ----------------------------------- SOURCE END -------------------------------------
  1654. !STACK 0
  1655. java.lang.NullPointerException
  1656. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:09.444
  1657. !MESSAGE Error while processing working copy
  1658. !STACK 1
  1659. JavaScript Model Exception: java.lang.NullPointerException
  1660. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  1661. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  1662. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  1663. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  1664. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  1665. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  1666. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  1667. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  1668. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  1669. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  1670. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  1671. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  1672. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  1673. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  1674. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  1675. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  1676. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  1677. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  1678. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  1679. Caused by: java.lang.NullPointerException
  1680. Caused by: java.lang.NullPointerException
  1681. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:33:09.444
  1682. !MESSAGE java.lang.NullPointerException
  1683. !STACK 0
  1684. java.lang.NullPointerException
  1685. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:10.461
  1686. !MESSAGE Exception occurred during problem detection:
  1687. ----------------------------------- SOURCE BEGIN -------------------------------------
  1688. (function(){WdatePicker();})();
  1689. (function(){WdatePicker();})();
  1690. (function(){Data.get();})();
  1691. (function(){Data.set();})();
  1692. (function(){search();})();
  1693. $(function(){
  1694. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1695. getfp();
  1696. });
  1697. var Data = {
  1698. "get" : function(){
  1699. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  1700. var tip = layer.load(2);
  1701. var result="";
  1702. var url = "getgyxml.do";
  1703. $.ajax({
  1704. "url" : url,
  1705. "data" : {
  1706. "start_date" : $("#dateBegin").val(),
  1707. "end_date" : $("#dateEnd").val()
  1708. },
  1709. "type" : "POST",
  1710. "dataType" : "json",
  1711. "success" : function(data) {
  1712. if(data != null && data != ""){
  1713. if ( data.status =="success"){
  1714. getfp();
  1715. alert("获取成功!");
  1716. }else {
  1717. alert(data.status);
  1718. }
  1719. }else {
  1720. alert("获取失败!");
  1721. }
  1722. },
  1723. "complete": function(){
  1724. layer.close(tip);
  1725. }
  1726. });
  1727. }else {
  1728. alert("请选择日期!");
  1729. }
  1730. },
  1731. "set" : function(){
  1732. if ( $("#fpid option:selected").text() !=""){
  1733. var tip = layer.load(2);
  1734. var gitem = $("#form1").serialize();
  1735. var jrjc;
  1736. if ($("#jrjc").prop('checked') == true){
  1737. jrjc = $("#departmentId").val();
  1738. }else {
  1739. jrjc ='N'
  1740. }
  1741. var url = "saverk.do";
  1742. $.ajax({
  1743. "url" : url,
  1744. "data" : {
  1745. "gitem" : gitem,
  1746. "jrjc" : jrjc
  1747. },
  1748. "type" : "POST",
  1749. "dataType" : "json",
  1750. "async" : true,
  1751. "success" : function(data) {
  1752. if(data.status =="success"){
  1753. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  1754. alert("入库成功!\n入库单号:"+data.rkdh+"");
  1755. }else {
  1756. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  1757. }
  1758. window.location.reload();
  1759. }else {
  1760. alert(msg);
  1761. }
  1762. },
  1763. "error": function(){
  1764. alert("确认失败!");
  1765. },
  1766. "complete": function(){
  1767. layer.close(tip);
  1768. }
  1769. });
  1770. }else {
  1771. alert("请选择发票!");
  1772. }
  1773. }
  1774. }
  1775. function getfp(){
  1776. var tip = layer.load(2);
  1777. var url = "getgyfp.do";
  1778. $.ajax({
  1779. "url" : url,
  1780. "type" : "POST",
  1781. "dataType" : "json",
  1782. "async" : true,
  1783. "success" : function(data) {
  1784. if(data != null && data != ""){
  1785. $("#fpid").empty();
  1786. $("#fpid").append("_$tag_____________$tag____");
  1787. for(var i = 0; i < data.length; i++){
  1788. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  1789. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  1790. }
  1791. }
  1792. },
  1793. "error" : function(msg){
  1794. },
  1795. "complete": function(){
  1796. layer.close(tip);
  1797. }
  1798. });
  1799. }
  1800. $("#fpid").change(function(){
  1801. var tip = layer.load(2);
  1802. var url = "getgyrkxx.do";
  1803. var sum_total=0;
  1804. $.ajax({
  1805. "url" : url,
  1806. "data" : {
  1807. "fpId" : $("#fpid").val()
  1808. },
  1809. "type" : "POST",
  1810. "dataType" : "json",
  1811. "async" : true,
  1812. "success" : function(data) {
  1813. $("#dataTable").html("");
  1814. if(data != null && data != ""){
  1815. var html = "";
  1816. for(var i = 0; i < data.length; i++){
  1817. var ID = data[i].id == null ? "" : data[i].id;
  1818. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  1819. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  1820. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  1821. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  1822. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  1823. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  1824. var GOODS = data[i].goods == null ? "" : data[i].goods;
  1825. var NAME = data[i].name == null ? "" : data[i].name;
  1826. var SPEC = data[i].spec == null ? "" : data[i].spec;
  1827. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  1828. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  1829. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  1830. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  1831. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  1832. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  1833. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  1834. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  1835. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  1836. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  1837. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  1838. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  1839. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  1840. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  1841. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  1842. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  1843. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  1844. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  1845. sum_total = sum_total + DSUMVALUE
  1846. var invoice_type_cn =null;
  1847. if (invoice_type =="00" ){
  1848. invoice_type_cn="销售发票";
  1849. }else if (invoice_type == "01") {
  1850. invoice_type_cn="更正(对冲)发票";
  1851. }else if (invoice_type == "02") {
  1852. invoice_type_cn="其它类型发票";
  1853. }
  1854. html += "_$ta";
  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_____________$tag____________________________________________________________________________________________________________________________$tag";
  1865. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  1866. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  1867. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1868. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1869. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1870. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  1871. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1872. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  1873. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  1874. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1875. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1876. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  1877. html += "_$tag";
  1878. }
  1879. html += "_$ta";
  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_____________$tag____________________________________________________________________$tag";
  1894. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1895. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1896. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1897. html += "_$tag_____________$tag_合计:_$tag___$tag";
  1898. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  1899. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1900. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1901. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1902. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1903. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1904. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1905. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1906. html += "_$tag";
  1907. $("#dataTable").html(html);
  1908. }else {
  1909. $("#dataTable").html("");
  1910. }
  1911. },
  1912. "error" : function(msg){
  1913. },
  1914. "complete": function(){
  1915. layer.close(tip);
  1916. }
  1917. });
  1918. });
  1919. Date.prototype.Format = function (fmt) {
  1920. var o = {
  1921. "M+": this.getMonth() + 1, //月份
  1922. "d+": this.getDate(), //日
  1923. "h+": this.getHours(), //小时
  1924. "m+": this.getMinutes(), //分
  1925. "s+": this.getSeconds(), //秒
  1926. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  1927. "S": this.getMilliseconds() //毫秒
  1928. };
  1929. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  1930. for (var k in o)
  1931. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  1932. return fmt;
  1933. }
  1934. $("#jrjc").change(function() {
  1935. if ($("#jrjc").prop('checked') == true){
  1936. $("#departmentId").removeAttr("disabled");
  1937. }else {
  1938. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1939. }
  1940. });
  1941. ----------------------------------- SOURCE END -------------------------------------
  1942. !STACK 0
  1943. java.lang.NullPointerException
  1944. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:11.268
  1945. !MESSAGE Exception occurred during problem detection:
  1946. ----------------------------------- SOURCE BEGIN -------------------------------------
  1947. (function(){WdatePicker();})();
  1948. (function(){WdatePicker();})();
  1949. (function(){Data.get();})();
  1950. (function(){Data.set();})();
  1951. (function(){search();})();
  1952. $(function(){
  1953. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1954. getfp();
  1955. });
  1956. var Data = {
  1957. "get" : function(){
  1958. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  1959. var tip = layer.load(2);
  1960. var result="";
  1961. var url = "getgyxml.do";
  1962. $.ajax({
  1963. "url" : url,
  1964. "data" : {
  1965. "start_date" : $("#dateBegin").val(),
  1966. "end_date" : $("#dateEnd").val()
  1967. },
  1968. "type" : "POST",
  1969. "dataType" : "json",
  1970. "success" : function(data) {
  1971. if(data != null && data != ""){
  1972. if ( data.status =="success"){
  1973. getfp();
  1974. alert("获取成功!");
  1975. }else {
  1976. alert(data.status);
  1977. }
  1978. }else {
  1979. alert("获取失败!");
  1980. }
  1981. },
  1982. "complete": function(){
  1983. layer.close(tip);
  1984. }
  1985. });
  1986. }else {
  1987. alert("请选择日期!");
  1988. }
  1989. },
  1990. "set" : function(){
  1991. if ( $("#fpid option:selected").text() !=""){
  1992. var tip = layer.load(2);
  1993. var gitem = $("#form1").serialize();
  1994. var jrjc;
  1995. if ($("#jrjc").prop('checked') == true){
  1996. jrjc = $("#departmentId").val();
  1997. }else {
  1998. jrjc ='N'
  1999. }
  2000. var url = "saverk.do";
  2001. $.ajax({
  2002. "url" : url,
  2003. "data" : {
  2004. "gitem" : gitem,
  2005. "jrjc" : jrjc
  2006. },
  2007. "type" : "POST",
  2008. "dataType" : "json",
  2009. "async" : true,
  2010. "success" : function(data) {
  2011. if(data.status =="success"){
  2012. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  2013. alert("入库成功!\n入库单号:"+data.rkdh+"");
  2014. }else {
  2015. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  2016. }
  2017. window.location.reload();
  2018. }else {
  2019. alert(msg);
  2020. }
  2021. },
  2022. "error": function(){
  2023. alert("确认失败!");
  2024. },
  2025. "complete": function(){
  2026. layer.close(tip);
  2027. }
  2028. });
  2029. }else {
  2030. alert("请选择发票!");
  2031. }
  2032. }
  2033. }
  2034. function getfp(){
  2035. var tip = layer.load(2);
  2036. var url = "getgyfp.do";
  2037. $.ajax({
  2038. "url" : url,
  2039. "type" : "POST",
  2040. "dataType" : "json",
  2041. "async" : true,
  2042. "success" : function(data) {
  2043. if(data != null && data != ""){
  2044. $("#fpid").empty();
  2045. $("#fpid").append("_$tag_____________$tag____");
  2046. for(var i = 0; i < data.length; i++){
  2047. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  2048. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  2049. }
  2050. }
  2051. },
  2052. "error" : function(msg){
  2053. },
  2054. "complete": function(){
  2055. layer.close(tip);
  2056. }
  2057. });
  2058. }
  2059. $("#fpid").change(function(){
  2060. var tip = layer.load(2);
  2061. var url = "getgyrkxx.do";
  2062. var sum_total=0;
  2063. $.ajax({
  2064. "url" : url,
  2065. "data" : {
  2066. "fpId" : $("#fpid").val()
  2067. },
  2068. "type" : "POST",
  2069. "dataType" : "json",
  2070. "async" : true,
  2071. "success" : function(data) {
  2072. $("#dataTable").html("");
  2073. if(data != null && data != ""){
  2074. var html = "";
  2075. for(var i = 0; i < data.length; i++){
  2076. var ID = data[i].id == null ? "" : data[i].id;
  2077. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  2078. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  2079. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  2080. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  2081. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  2082. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  2083. var GOODS = data[i].goods == null ? "" : data[i].goods;
  2084. var NAME = data[i].name == null ? "" : data[i].name;
  2085. var SPEC = data[i].spec == null ? "" : data[i].spec;
  2086. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  2087. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  2088. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  2089. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  2090. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  2091. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  2092. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  2093. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  2094. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  2095. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  2096. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  2097. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  2098. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  2099. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  2100. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  2101. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  2102. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  2103. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  2104. sum_total = sum_total + DSUMVALUE
  2105. var invoice_type_cn =null;
  2106. if (invoice_type =="00" ){
  2107. invoice_type_cn="销售发票";
  2108. }else if (invoice_type == "01") {
  2109. invoice_type_cn="更正(对冲)发票";
  2110. }else if (invoice_type == "02") {
  2111. invoice_type_cn="其它类型发票";
  2112. }
  2113. html += "_$ta";
  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_____________$tag_____________________________________________________________________________________________________________________________$tag";
  2122. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2123. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  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";
  2137. }
  2138. html += "_$ta";
  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_____________$tag____________________________________________________________________$tag";
  2151. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2152. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2153. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2154. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2155. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2156. html += "_$tag_____________$tag_合计:_$tag___$tag";
  2157. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  2158. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2159. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2160. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2161. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2162. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2163. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2164. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2165. html += "_$tag";
  2166. $("#dataTable").html(html);
  2167. }else {
  2168. $("#dataTable").html("");
  2169. }
  2170. },
  2171. "error" : function(msg){
  2172. },
  2173. "complete": function(){
  2174. layer.close(tip);
  2175. }
  2176. });
  2177. });
  2178. Date.prototype.Format = function (fmt) {
  2179. var o = {
  2180. "M+": this.getMonth() + 1, //月份
  2181. "d+": this.getDate(), //日
  2182. "h+": this.getHours(), //小时
  2183. "m+": this.getMinutes(), //分
  2184. "s+": this.getSeconds(), //秒
  2185. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  2186. "S": this.getMilliseconds() //毫秒
  2187. };
  2188. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  2189. for (var k in o)
  2190. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  2191. return fmt;
  2192. }
  2193. $("#jrjc").change(function() {
  2194. if ($("#jrjc").prop('checked') == true){
  2195. $("#departmentId").removeAttr("disabled");
  2196. }else {
  2197. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2198. }
  2199. });
  2200. ----------------------------------- SOURCE END -------------------------------------
  2201. !STACK 0
  2202. java.lang.NullPointerException
  2203. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:11.269
  2204. !MESSAGE Error while processing working copy
  2205. !STACK 1
  2206. JavaScript Model Exception: java.lang.NullPointerException
  2207. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  2208. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  2209. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  2210. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  2211. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  2212. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  2213. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  2214. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  2215. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  2216. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  2217. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  2218. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  2219. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  2220. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  2221. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  2222. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  2223. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  2224. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  2225. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  2226. Caused by: java.lang.NullPointerException
  2227. Caused by: java.lang.NullPointerException
  2228. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:33:11.269
  2229. !MESSAGE java.lang.NullPointerException
  2230. !STACK 0
  2231. java.lang.NullPointerException
  2232. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:11.890
  2233. !MESSAGE Exception occurred during problem detection:
  2234. ----------------------------------- SOURCE BEGIN -------------------------------------
  2235. (function(){WdatePicker();})();
  2236. (function(){WdatePicker();})();
  2237. (function(){Data.get();})();
  2238. (function(){Data.set();})();
  2239. (function(){search();})();
  2240. $(function(){
  2241. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2242. getfp();
  2243. });
  2244. var Data = {
  2245. "get" : function(){
  2246. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  2247. var tip = layer.load(2);
  2248. var result="";
  2249. var url = "getgyxml.do";
  2250. $.ajax({
  2251. "url" : url,
  2252. "data" : {
  2253. "start_date" : $("#dateBegin").val(),
  2254. "end_date" : $("#dateEnd").val()
  2255. },
  2256. "type" : "POST",
  2257. "dataType" : "json",
  2258. "success" : function(data) {
  2259. if(data != null && data != ""){
  2260. if ( data.status =="success"){
  2261. getfp();
  2262. alert("获取成功!");
  2263. }else {
  2264. alert(data.status);
  2265. }
  2266. }else {
  2267. alert("获取失败!");
  2268. }
  2269. },
  2270. "complete": function(){
  2271. layer.close(tip);
  2272. }
  2273. });
  2274. }else {
  2275. alert("请选择日期!");
  2276. }
  2277. },
  2278. "set" : function(){
  2279. if ( $("#fpid option:selected").text() !=""){
  2280. var tip = layer.load(2);
  2281. var gitem = $("#form1").serialize();
  2282. var jrjc;
  2283. if ($("#jrjc").prop('checked') == true){
  2284. jrjc = $("#departmentId").val();
  2285. }else {
  2286. jrjc ='N'
  2287. }
  2288. var url = "saverk.do";
  2289. $.ajax({
  2290. "url" : url,
  2291. "data" : {
  2292. "gitem" : gitem,
  2293. "jrjc" : jrjc
  2294. },
  2295. "type" : "POST",
  2296. "dataType" : "json",
  2297. "async" : true,
  2298. "success" : function(data) {
  2299. if(data.status =="success"){
  2300. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  2301. alert("入库成功!\n入库单号:"+data.rkdh+"");
  2302. }else {
  2303. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  2304. }
  2305. window.location.reload();
  2306. }else {
  2307. alert(msg);
  2308. }
  2309. },
  2310. "error": function(){
  2311. alert("确认失败!");
  2312. },
  2313. "complete": function(){
  2314. layer.close(tip);
  2315. }
  2316. });
  2317. }else {
  2318. alert("请选择发票!");
  2319. }
  2320. }
  2321. }
  2322. function getfp(){
  2323. var tip = layer.load(2);
  2324. var url = "getgyfp.do";
  2325. $.ajax({
  2326. "url" : url,
  2327. "type" : "POST",
  2328. "dataType" : "json",
  2329. "async" : true,
  2330. "success" : function(data) {
  2331. if(data != null && data != ""){
  2332. $("#fpid").empty();
  2333. $("#fpid").append("_$tag_____________$tag____");
  2334. for(var i = 0; i < data.length; i++){
  2335. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  2336. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  2337. }
  2338. }
  2339. },
  2340. "error" : function(msg){
  2341. },
  2342. "complete": function(){
  2343. layer.close(tip);
  2344. }
  2345. });
  2346. }
  2347. $("#fpid").change(function(){
  2348. var tip = layer.load(2);
  2349. var url = "getgyrkxx.do";
  2350. var sum_total=0;
  2351. $.ajax({
  2352. "url" : url,
  2353. "data" : {
  2354. "fpId" : $("#fpid").val()
  2355. },
  2356. "type" : "POST",
  2357. "dataType" : "json",
  2358. "async" : true,
  2359. "success" : function(data) {
  2360. $("#dataTable").html("");
  2361. if(data != null && data != ""){
  2362. var html = "";
  2363. for(var i = 0; i < data.length; i++){
  2364. var ID = data[i].id == null ? "" : data[i].id;
  2365. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  2366. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  2367. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  2368. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  2369. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  2370. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  2371. var GOODS = data[i].goods == null ? "" : data[i].goods;
  2372. var NAME = data[i].name == null ? "" : data[i].name;
  2373. var SPEC = data[i].spec == null ? "" : data[i].spec;
  2374. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  2375. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  2376. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  2377. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  2378. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  2379. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  2380. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  2381. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  2382. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  2383. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  2384. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  2385. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  2386. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  2387. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  2388. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  2389. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  2390. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  2391. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  2392. sum_total = sum_total + DSUMVALUE
  2393. var invoice_type_cn =null;
  2394. if (invoice_type =="00" ){
  2395. invoice_type_cn="销售发票";
  2396. }else if (invoice_type == "01") {
  2397. invoice_type_cn="更正(对冲)发票";
  2398. }else if (invoice_type == "02") {
  2399. invoice_type_cn="其它类型发票";
  2400. }
  2401. html += "_$ta";
  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_____________$tag____________________________________________________________________________________________________________________________$tag";
  2411. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2412. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  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";
  2425. }
  2426. html += "_$ta";
  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_____________$tag____________________________________________________________________$tag";
  2440. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2441. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2442. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2443. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2444. html += "_$tag_____________$tag_合计:_$tag___$tag";
  2445. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  2446. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2447. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2448. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2449. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2450. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2451. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2452. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2453. html += "_$tag";
  2454. $("#dataTable").html(html);
  2455. }else {
  2456. $("#dataTable").html("");
  2457. }
  2458. },
  2459. "error" : function(msg){
  2460. },
  2461. "complete": function(){
  2462. layer.close(tip);
  2463. }
  2464. });
  2465. });
  2466. Date.prototype.Format = function (fmt) {
  2467. var o = {
  2468. "M+": this.getMonth() + 1, //月份
  2469. "d+": this.getDate(), //日
  2470. "h+": this.getHours(), //小时
  2471. "m+": this.getMinutes(), //分
  2472. "s+": this.getSeconds(), //秒
  2473. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  2474. "S": this.getMilliseconds() //毫秒
  2475. };
  2476. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  2477. for (var k in o)
  2478. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  2479. return fmt;
  2480. }
  2481. $("#jrjc").change(function() {
  2482. if ($("#jrjc").prop('checked') == true){
  2483. $("#departmentId").removeAttr("disabled");
  2484. }else {
  2485. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2486. }
  2487. });
  2488. ----------------------------------- SOURCE END -------------------------------------
  2489. !STACK 0
  2490. java.lang.NullPointerException
  2491. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:14.853
  2492. !MESSAGE Exception occurred during problem detection:
  2493. ----------------------------------- SOURCE BEGIN -------------------------------------
  2494. (function(){WdatePicker();})();
  2495. (function(){WdatePicker();})();
  2496. (function(){Data.get();})();
  2497. (function(){Data.set();})();
  2498. (function(){search();})();
  2499. $(function(){
  2500. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2501. getfp();
  2502. });
  2503. var Data = {
  2504. "get" : function(){
  2505. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  2506. var tip = layer.load(2);
  2507. var result="";
  2508. var url = "getgyxml.do";
  2509. $.ajax({
  2510. "url" : url,
  2511. "data" : {
  2512. "start_date" : $("#dateBegin").val(),
  2513. "end_date" : $("#dateEnd").val()
  2514. },
  2515. "type" : "POST",
  2516. "dataType" : "json",
  2517. "success" : function(data) {
  2518. if(data != null && data != ""){
  2519. if ( data.status =="success"){
  2520. getfp();
  2521. alert("获取成功!");
  2522. }else {
  2523. alert(data.status);
  2524. }
  2525. }else {
  2526. alert("获取失败!");
  2527. }
  2528. },
  2529. "complete": function(){
  2530. layer.close(tip);
  2531. }
  2532. });
  2533. }else {
  2534. alert("请选择日期!");
  2535. }
  2536. },
  2537. "set" : function(){
  2538. if ( $("#fpid option:selected").text() !=""){
  2539. var tip = layer.load(2);
  2540. var gitem = $("#form1").serialize();
  2541. var jrjc;
  2542. if ($("#jrjc").prop('checked') == true){
  2543. jrjc = $("#departmentId").val();
  2544. }else {
  2545. jrjc ='N'
  2546. }
  2547. var url = "saverk.do";
  2548. $.ajax({
  2549. "url" : url,
  2550. "data" : {
  2551. "gitem" : gitem,
  2552. "jrjc" : jrjc
  2553. },
  2554. "type" : "POST",
  2555. "dataType" : "json",
  2556. "async" : true,
  2557. "success" : function(data) {
  2558. if(data.status =="success"){
  2559. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  2560. alert("入库成功!\n入库单号:"+data.rkdh+"");
  2561. }else {
  2562. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  2563. }
  2564. window.location.reload();
  2565. }else {
  2566. alert(msg);
  2567. }
  2568. },
  2569. "error": function(){
  2570. alert("确认失败!");
  2571. },
  2572. "complete": function(){
  2573. layer.close(tip);
  2574. }
  2575. });
  2576. }else {
  2577. alert("请选择发票!");
  2578. }
  2579. }
  2580. }
  2581. function getfp(){
  2582. var tip = layer.load(2);
  2583. var url = "getgyfp.do";
  2584. $.ajax({
  2585. "url" : url,
  2586. "type" : "POST",
  2587. "dataType" : "json",
  2588. "async" : true,
  2589. "success" : function(data) {
  2590. if(data != null && data != ""){
  2591. $("#fpid").empty();
  2592. $("#fpid").append("_$tag_____________$tag____");
  2593. for(var i = 0; i < data.length; i++){
  2594. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  2595. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  2596. }
  2597. }
  2598. },
  2599. "error" : function(msg){
  2600. },
  2601. "complete": function(){
  2602. layer.close(tip);
  2603. }
  2604. });
  2605. }
  2606. $("#fpid").change(function(){
  2607. var tip = layer.load(2);
  2608. var url = "getgyrkxx.do";
  2609. var sum_total=0;
  2610. $.ajax({
  2611. "url" : url,
  2612. "data" : {
  2613. "fpId" : $("#fpid").val()
  2614. },
  2615. "type" : "POST",
  2616. "dataType" : "json",
  2617. "async" : true,
  2618. "success" : function(data) {
  2619. $("#dataTable").html("");
  2620. if(data != null && data != ""){
  2621. var html = "";
  2622. for(var i = 0; i < data.length; i++){
  2623. var ID = data[i].id == null ? "" : data[i].id;
  2624. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  2625. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  2626. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  2627. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  2628. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  2629. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  2630. var GOODS = data[i].goods == null ? "" : data[i].goods;
  2631. var NAME = data[i].name == null ? "" : data[i].name;
  2632. var SPEC = data[i].spec == null ? "" : data[i].spec;
  2633. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  2634. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  2635. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  2636. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  2637. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  2638. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  2639. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  2640. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  2641. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  2642. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  2643. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  2644. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  2645. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  2646. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  2647. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  2648. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  2649. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  2650. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  2651. sum_total = sum_total + DSUMVALUE
  2652. var invoice_type_cn =null;
  2653. if (invoice_type =="00" ){
  2654. invoice_type_cn="销售发票";
  2655. }else if (invoice_type == "01") {
  2656. invoice_type_cn="更正(对冲)发票";
  2657. }else if (invoice_type == "02") {
  2658. invoice_type_cn="其它类型发票";
  2659. }
  2660. html += "_$ta";
  2661. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  2662. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2663. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2664. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  2665. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2666. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2667. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2668. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  2669. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2670. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2671. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  2672. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  2673. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2674. html += "_$tag_____________$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";
  2683. }
  2684. html += "_$ta";
  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_____________$tag____________________________________________________________________$tag";
  2697. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2698. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2699. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2700. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2701. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2702. html += "_$tag_____________$tag_合计:_$tag___$tag";
  2703. html += "_$tag_____________$tag_"+sum_total+"_$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";
  2712. $("#dataTable").html(html);
  2713. }else {
  2714. $("#dataTable").html("");
  2715. }
  2716. },
  2717. "error" : function(msg){
  2718. },
  2719. "complete": function(){
  2720. layer.close(tip);
  2721. }
  2722. });
  2723. });
  2724. Date.prototype.Format = function (fmt) {
  2725. var o = {
  2726. "M+": this.getMonth() + 1, //月份
  2727. "d+": this.getDate(), //日
  2728. "h+": this.getHours(), //小时
  2729. "m+": this.getMinutes(), //分
  2730. "s+": this.getSeconds(), //秒
  2731. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  2732. "S": this.getMilliseconds() //毫秒
  2733. };
  2734. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  2735. for (var k in o)
  2736. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  2737. return fmt;
  2738. }
  2739. $("#jrjc").change(function() {
  2740. if ($("#jrjc").prop('checked') == true){
  2741. $("#departmentId").removeAttr("disabled");
  2742. }else {
  2743. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2744. }
  2745. });
  2746. ----------------------------------- SOURCE END -------------------------------------
  2747. !STACK 0
  2748. java.lang.NullPointerException
  2749. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-07-23 09:33:14.853
  2750. !MESSAGE java.lang.NullPointerException
  2751. !STACK 1
  2752. JavaScript Model Exception: java.lang.NullPointerException
  2753. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  2754. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  2755. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  2756. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  2757. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  2758. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  2759. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  2760. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  2761. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  2762. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  2763. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  2764. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  2765. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  2766. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  2767. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  2768. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  2769. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  2770. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  2771. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  2772. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  2773. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  2774. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  2775. Caused by: java.lang.NullPointerException
  2776. Caused by: java.lang.NullPointerException
  2777. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:33:14.854
  2778. !MESSAGE java.lang.NullPointerException
  2779. !STACK 0
  2780. java.lang.NullPointerException
  2781. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:18.216
  2782. !MESSAGE Exception occurred during problem detection:
  2783. ----------------------------------- SOURCE BEGIN -------------------------------------
  2784. (function(){WdatePicker();})();
  2785. (function(){WdatePicker();})();
  2786. (function(){Data.get();})();
  2787. (function(){Data.set();})();
  2788. (function(){search();})();
  2789. $(function(){
  2790. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2791. getfp();
  2792. });
  2793. var Data = {
  2794. "get" : function(){
  2795. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  2796. var tip = layer.load(2);
  2797. var result="";
  2798. var url = "getgyxml.do";
  2799. $.ajax({
  2800. "url" : url,
  2801. "data" : {
  2802. "start_date" : $("#dateBegin").val(),
  2803. "end_date" : $("#dateEnd").val()
  2804. },
  2805. "type" : "POST",
  2806. "dataType" : "json",
  2807. "success" : function(data) {
  2808. if(data != null && data != ""){
  2809. if ( data.status =="success"){
  2810. getfp();
  2811. alert("获取成功!");
  2812. }else {
  2813. alert(data.status);
  2814. }
  2815. }else {
  2816. alert("获取失败!");
  2817. }
  2818. },
  2819. "complete": function(){
  2820. layer.close(tip);
  2821. }
  2822. });
  2823. }else {
  2824. alert("请选择日期!");
  2825. }
  2826. },
  2827. "set" : function(){
  2828. if ( $("#fpid option:selected").text() !=""){
  2829. var tip = layer.load(2);
  2830. var gitem = $("#form1").serialize();
  2831. var jrjc;
  2832. if ($("#jrjc").prop('checked') == true){
  2833. jrjc = $("#departmentId").val();
  2834. }else {
  2835. jrjc ='N'
  2836. }
  2837. var url = "saverk.do";
  2838. $.ajax({
  2839. "url" : url,
  2840. "data" : {
  2841. "gitem" : gitem,
  2842. "jrjc" : jrjc
  2843. },
  2844. "type" : "POST",
  2845. "dataType" : "json",
  2846. "async" : true,
  2847. "success" : function(data) {
  2848. if(data.status =="success"){
  2849. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  2850. alert("入库成功!\n入库单号:"+data.rkdh+"");
  2851. }else {
  2852. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  2853. }
  2854. window.location.reload();
  2855. }else {
  2856. alert(msg);
  2857. }
  2858. },
  2859. "error": function(){
  2860. alert("确认失败!");
  2861. },
  2862. "complete": function(){
  2863. layer.close(tip);
  2864. }
  2865. });
  2866. }else {
  2867. alert("请选择发票!");
  2868. }
  2869. }
  2870. }
  2871. function getfp(){
  2872. var tip = layer.load(2);
  2873. var url = "getgyfp.do";
  2874. $.ajax({
  2875. "url" : url,
  2876. "type" : "POST",
  2877. "dataType" : "json",
  2878. "async" : true,
  2879. "success" : function(data) {
  2880. if(data != null && data != ""){
  2881. $("#fpid").empty();
  2882. $("#fpid").append("_$tag_____________$tag____");
  2883. for(var i = 0; i < data.length; i++){
  2884. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  2885. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  2886. }
  2887. }
  2888. },
  2889. "error" : function(msg){
  2890. },
  2891. "complete": function(){
  2892. layer.close(tip);
  2893. }
  2894. });
  2895. }
  2896. $("#fpid").change(function(){
  2897. var tip = layer.load(2);
  2898. var url = "getgyrkxx.do";
  2899. var sum_total=0;
  2900. $.ajax({
  2901. "url" : url,
  2902. "data" : {
  2903. "fpId" : $("#fpid").val()
  2904. },
  2905. "type" : "POST",
  2906. "dataType" : "json",
  2907. "async" : true,
  2908. "success" : function(data) {
  2909. $("#dataTable").html("");
  2910. if(data != null && data != ""){
  2911. var html = "";
  2912. for(var i = 0; i < data.length; i++){
  2913. var ID = data[i].id == null ? "" : data[i].id;
  2914. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  2915. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  2916. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  2917. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  2918. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  2919. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  2920. var GOODS = data[i].goods == null ? "" : data[i].goods;
  2921. var NAME = data[i].name == null ? "" : data[i].name;
  2922. var SPEC = data[i].spec == null ? "" : data[i].spec;
  2923. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  2924. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  2925. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  2926. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  2927. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  2928. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  2929. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  2930. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  2931. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  2932. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  2933. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  2934. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  2935. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  2936. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  2937. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  2938. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  2939. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  2940. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  2941. sum_total = sum_total + DSUMVALUE
  2942. var invoice_type_cn =null;
  2943. if (invoice_type =="00" ){
  2944. invoice_type_cn="销售发票";
  2945. }else if (invoice_type == "01") {
  2946. invoice_type_cn="更正(对冲)发票";
  2947. }else if (invoice_type == "02") {
  2948. invoice_type_cn="其它类型发票";
  2949. }
  2950. html += "_$ta";
  2951. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  2952. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2953. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2954. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  2955. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  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";
  2973. }
  2974. html += "_$ta";
  2975. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2976. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2977. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2978. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2979. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2980. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2981. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2982. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2983. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2984. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2985. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2986. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2987. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2988. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2989. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2990. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2991. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2992. html += "_$tag_____________$tag_合计:_$tag___$tag";
  2993. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  2994. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2995. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2996. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2997. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2998. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2999. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3000. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3001. html += "_$tag";
  3002. $("#dataTable").html(html);
  3003. }else {
  3004. $("#dataTable").html("");
  3005. }
  3006. },
  3007. "error" : function(msg){
  3008. },
  3009. "complete": function(){
  3010. layer.close(tip);
  3011. }
  3012. });
  3013. });
  3014. Date.prototype.Format = function (fmt) {
  3015. var o = {
  3016. "M+": this.getMonth() + 1, //月份
  3017. "d+": this.getDate(), //日
  3018. "h+": this.getHours(), //小时
  3019. "m+": this.getMinutes(), //分
  3020. "s+": this.getSeconds(), //秒
  3021. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  3022. "S": this.getMilliseconds() //毫秒
  3023. };
  3024. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  3025. for (var k in o)
  3026. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  3027. return fmt;
  3028. }
  3029. $("#jrjc").change(function() {
  3030. if ($("#jrjc").prop('checked') == true){
  3031. $("#departmentId").removeAttr("disabled");
  3032. }else {
  3033. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3034. }
  3035. });
  3036. ----------------------------------- SOURCE END -------------------------------------
  3037. !STACK 0
  3038. java.lang.NullPointerException
  3039. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-07-23 09:33:18.216
  3040. !MESSAGE java.lang.NullPointerException
  3041. !STACK 1
  3042. JavaScript Model Exception: java.lang.NullPointerException
  3043. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  3044. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  3045. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  3046. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  3047. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  3048. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  3049. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  3050. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  3051. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  3052. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  3053. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  3054. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  3055. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  3056. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  3057. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  3058. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  3059. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  3060. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  3061. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  3062. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  3063. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  3064. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  3065. Caused by: java.lang.NullPointerException
  3066. Caused by: java.lang.NullPointerException
  3067. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:33:18.216
  3068. !MESSAGE java.lang.NullPointerException
  3069. !STACK 0
  3070. java.lang.NullPointerException
  3071. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:19.552
  3072. !MESSAGE Exception occurred during problem detection:
  3073. ----------------------------------- SOURCE BEGIN -------------------------------------
  3074. (function(){WdatePicker();})();
  3075. (function(){WdatePicker();})();
  3076. (function(){Data.get();})();
  3077. (function(){Data.set();})();
  3078. (function(){search();})();
  3079. $(function(){
  3080. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3081. getfp();
  3082. });
  3083. var Data = {
  3084. "get" : function(){
  3085. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  3086. var tip = layer.load(2);
  3087. var result="";
  3088. var url = "getgyxml.do";
  3089. $.ajax({
  3090. "url" : url,
  3091. "data" : {
  3092. "start_date" : $("#dateBegin").val(),
  3093. "end_date" : $("#dateEnd").val()
  3094. },
  3095. "type" : "POST",
  3096. "dataType" : "json",
  3097. "success" : function(data) {
  3098. if(data != null && data != ""){
  3099. if ( data.status =="success"){
  3100. getfp();
  3101. alert("获取成功!");
  3102. }else {
  3103. alert(data.status);
  3104. }
  3105. }else {
  3106. alert("获取失败!");
  3107. }
  3108. },
  3109. "complete": function(){
  3110. layer.close(tip);
  3111. }
  3112. });
  3113. }else {
  3114. alert("请选择日期!");
  3115. }
  3116. },
  3117. "set" : function(){
  3118. if ( $("#fpid option:selected").text() !=""){
  3119. var tip = layer.load(2);
  3120. var gitem = $("#form1").serialize();
  3121. var jrjc;
  3122. if ($("#jrjc").prop('checked') == true){
  3123. jrjc = $("#departmentId").val();
  3124. }else {
  3125. jrjc ='N'
  3126. }
  3127. var url = "saverk.do";
  3128. $.ajax({
  3129. "url" : url,
  3130. "data" : {
  3131. "gitem" : gitem,
  3132. "jrjc" : jrjc
  3133. },
  3134. "type" : "POST",
  3135. "dataType" : "json",
  3136. "async" : true,
  3137. "success" : function(data) {
  3138. if(data.status =="success"){
  3139. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  3140. alert("入库成功!\n入库单号:"+data.rkdh+"");
  3141. }else {
  3142. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  3143. }
  3144. window.location.reload();
  3145. }else {
  3146. alert(msg);
  3147. }
  3148. },
  3149. "error": function(){
  3150. alert("确认失败!");
  3151. },
  3152. "complete": function(){
  3153. layer.close(tip);
  3154. }
  3155. });
  3156. }else {
  3157. alert("请选择发票!");
  3158. }
  3159. }
  3160. }
  3161. function getfp(){
  3162. var tip = layer.load(2);
  3163. var url = "getgyfp.do";
  3164. $.ajax({
  3165. "url" : url,
  3166. "type" : "POST",
  3167. "dataType" : "json",
  3168. "async" : true,
  3169. "success" : function(data) {
  3170. if(data != null && data != ""){
  3171. $("#fpid").empty();
  3172. $("#fpid").append("_$tag_____________$tag____");
  3173. for(var i = 0; i < data.length; i++){
  3174. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  3175. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  3176. }
  3177. }
  3178. },
  3179. "error" : function(msg){
  3180. },
  3181. "complete": function(){
  3182. layer.close(tip);
  3183. }
  3184. });
  3185. }
  3186. $("#fpid").change(function(){
  3187. var tip = layer.load(2);
  3188. var url = "getgyrkxx.do";
  3189. var sum_total=0;
  3190. $.ajax({
  3191. "url" : url,
  3192. "data" : {
  3193. "fpId" : $("#fpid").val()
  3194. },
  3195. "type" : "POST",
  3196. "dataType" : "json",
  3197. "async" : true,
  3198. "success" : function(data) {
  3199. $("#dataTable").html("");
  3200. if(data != null && data != ""){
  3201. var html = "";
  3202. for(var i = 0; i < data.length; i++){
  3203. var ID = data[i].id == null ? "" : data[i].id;
  3204. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  3205. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  3206. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  3207. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  3208. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  3209. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  3210. var GOODS = data[i].goods == null ? "" : data[i].goods;
  3211. var NAME = data[i].name == null ? "" : data[i].name;
  3212. var SPEC = data[i].spec == null ? "" : data[i].spec;
  3213. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  3214. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  3215. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  3216. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  3217. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  3218. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  3219. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  3220. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  3221. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  3222. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  3223. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  3224. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  3225. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  3226. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  3227. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  3228. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  3229. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  3230. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  3231. sum_total = sum_total + DSUMVALUE
  3232. var invoice_type_cn =null;
  3233. if (invoice_type =="00" ){
  3234. invoice_type_cn="销售发票";
  3235. }else if (invoice_type == "01") {
  3236. invoice_type_cn="更正(对冲)发票";
  3237. }else if (invoice_type == "02") {
  3238. invoice_type_cn="其它类型发票";
  3239. }
  3240. html += "_$ta";
  3241. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  3242. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3243. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3244. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  3245. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3246. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3247. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3248. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  3249. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3250. html += "_$tag_____________$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";
  3264. }
  3265. html += "_$ta";
  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_____________$tag____________________________________________________________________$tag";
  3272. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3273. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3274. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3275. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3276. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3277. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3278. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3279. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3280. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3281. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3282. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3283. html += "_$tag_____________$tag_合计:_$tag___$tag";
  3284. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  3285. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3286. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3287. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3288. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3289. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3290. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3291. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3292. html += "_$tag";
  3293. $("#dataTable").html(html);
  3294. }else {
  3295. $("#dataTable").html("");
  3296. }
  3297. },
  3298. "error" : function(msg){
  3299. },
  3300. "complete": function(){
  3301. layer.close(tip);
  3302. }
  3303. });
  3304. });
  3305. Date.prototype.Format = function (fmt) {
  3306. var o = {
  3307. "M+": this.getMonth() + 1, //月份
  3308. "d+": this.getDate(), //日
  3309. "h+": this.getHours(), //小时
  3310. "m+": this.getMinutes(), //分
  3311. "s+": this.getSeconds(), //秒
  3312. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  3313. "S": this.getMilliseconds() //毫秒
  3314. };
  3315. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  3316. for (var k in o)
  3317. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  3318. return fmt;
  3319. }
  3320. $("#jrjc").change(function() {
  3321. if ($("#jrjc").prop('checked') == true){
  3322. $("#departmentId").removeAttr("disabled");
  3323. }else {
  3324. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3325. }
  3326. });
  3327. ----------------------------------- SOURCE END -------------------------------------
  3328. !STACK 0
  3329. java.lang.NullPointerException
  3330. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-07-23 09:33:19.552
  3331. !MESSAGE java.lang.NullPointerException
  3332. !STACK 1
  3333. JavaScript Model Exception: java.lang.NullPointerException
  3334. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  3335. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  3336. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  3337. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  3338. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  3339. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  3340. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  3341. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  3342. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  3343. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  3344. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  3345. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  3346. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  3347. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  3348. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  3349. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  3350. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  3351. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  3352. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  3353. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  3354. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  3355. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  3356. Caused by: java.lang.NullPointerException
  3357. Caused by: java.lang.NullPointerException
  3358. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:33:19.552
  3359. !MESSAGE java.lang.NullPointerException
  3360. !STACK 0
  3361. java.lang.NullPointerException
  3362. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:23.425
  3363. !MESSAGE Exception occurred during problem detection:
  3364. ----------------------------------- SOURCE BEGIN -------------------------------------
  3365. (function(){WdatePicker();})();
  3366. (function(){WdatePicker();})();
  3367. (function(){Data.get();})();
  3368. (function(){Data.set();})();
  3369. (function(){search();})();
  3370. $(function(){
  3371. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3372. getfp();
  3373. });
  3374. var Data = {
  3375. "get" : function(){
  3376. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  3377. var tip = layer.load(2);
  3378. var result="";
  3379. var url = "getgyxml.do";
  3380. $.ajax({
  3381. "url" : url,
  3382. "data" : {
  3383. "start_date" : $("#dateBegin").val(),
  3384. "end_date" : $("#dateEnd").val()
  3385. },
  3386. "type" : "POST",
  3387. "dataType" : "json",
  3388. "success" : function(data) {
  3389. if(data != null && data != ""){
  3390. if ( data.status =="success"){
  3391. getfp();
  3392. alert("获取成功!");
  3393. }else {
  3394. alert(data.status);
  3395. }
  3396. }else {
  3397. alert("获取失败!");
  3398. }
  3399. },
  3400. "complete": function(){
  3401. layer.close(tip);
  3402. }
  3403. });
  3404. }else {
  3405. alert("请选择日期!");
  3406. }
  3407. },
  3408. "set" : function(){
  3409. if ( $("#fpid option:selected").text() !=""){
  3410. var tip = layer.load(2);
  3411. var gitem = $("#form1").serialize();
  3412. var jrjc;
  3413. if ($("#jrjc").prop('checked') == true){
  3414. jrjc = $("#departmentId").val();
  3415. }else {
  3416. jrjc ='N'
  3417. }
  3418. var url = "saverk.do";
  3419. $.ajax({
  3420. "url" : url,
  3421. "data" : {
  3422. "gitem" : gitem,
  3423. "jrjc" : jrjc
  3424. },
  3425. "type" : "POST",
  3426. "dataType" : "json",
  3427. "async" : true,
  3428. "success" : function(data) {
  3429. if(data.status =="success"){
  3430. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  3431. alert("入库成功!\n入库单号:"+data.rkdh+"");
  3432. }else {
  3433. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  3434. }
  3435. window.location.reload();
  3436. }else {
  3437. alert(msg);
  3438. }
  3439. },
  3440. "error": function(){
  3441. alert("确认失败!");
  3442. },
  3443. "complete": function(){
  3444. layer.close(tip);
  3445. }
  3446. });
  3447. }else {
  3448. alert("请选择发票!");
  3449. }
  3450. }
  3451. }
  3452. function getfp(){
  3453. var tip = layer.load(2);
  3454. var url = "getgyfp.do";
  3455. $.ajax({
  3456. "url" : url,
  3457. "type" : "POST",
  3458. "dataType" : "json",
  3459. "async" : true,
  3460. "success" : function(data) {
  3461. if(data != null && data != ""){
  3462. $("#fpid").empty();
  3463. $("#fpid").append("_$tag_____________$tag____");
  3464. for(var i = 0; i < data.length; i++){
  3465. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  3466. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  3467. }
  3468. }
  3469. },
  3470. "error" : function(msg){
  3471. },
  3472. "complete": function(){
  3473. layer.close(tip);
  3474. }
  3475. });
  3476. }
  3477. $("#fpid").change(function(){
  3478. var tip = layer.load(2);
  3479. var url = "getgyrkxx.do";
  3480. var sum_total=0;
  3481. $.ajax({
  3482. "url" : url,
  3483. "data" : {
  3484. "fpId" : $("#fpid").val()
  3485. },
  3486. "type" : "POST",
  3487. "dataType" : "json",
  3488. "async" : true,
  3489. "success" : function(data) {
  3490. $("#dataTable").html("");
  3491. if(data != null && data != ""){
  3492. var html = "";
  3493. for(var i = 0; i < data.length; i++){
  3494. var ID = data[i].id == null ? "" : data[i].id;
  3495. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  3496. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  3497. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  3498. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  3499. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  3500. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  3501. var GOODS = data[i].goods == null ? "" : data[i].goods;
  3502. var NAME = data[i].name == null ? "" : data[i].name;
  3503. var SPEC = data[i].spec == null ? "" : data[i].spec;
  3504. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  3505. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  3506. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  3507. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  3508. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  3509. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  3510. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  3511. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  3512. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  3513. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  3514. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  3515. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  3516. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  3517. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  3518. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  3519. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  3520. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  3521. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  3522. sum_total = sum_total + DSUMVALUE
  3523. var invoice_type_cn =null;
  3524. if (invoice_type =="00" ){
  3525. invoice_type_cn="销售发票";
  3526. }else if (invoice_type == "01") {
  3527. invoice_type_cn="更正(对冲)发票";
  3528. }else if (invoice_type == "02") {
  3529. invoice_type_cn="其它类型发票";
  3530. }
  3531. html += "_$ta";
  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";
  3555. }
  3556. html += "_$ta";
  3557. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3558. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3559. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3560. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3561. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3562. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3563. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3564. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3565. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3566. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3567. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3568. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3569. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3570. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3571. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3572. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3573. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3574. html += "_$tag_____________$tag_合计:_$tag___$tag";
  3575. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  3576. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3577. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3578. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3579. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3580. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3581. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3582. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3583. html += "_$tag";
  3584. $("#dataTable").html(html);
  3585. }else {
  3586. $("#dataTable").html("");
  3587. }
  3588. },
  3589. "error" : function(msg){
  3590. },
  3591. "complete": function(){
  3592. layer.close(tip);
  3593. }
  3594. });
  3595. });
  3596. Date.prototype.Format = function (fmt) {
  3597. var o = {
  3598. "M+": this.getMonth() + 1, //月份
  3599. "d+": this.getDate(), //日
  3600. "h+": this.getHours(), //小时
  3601. "m+": this.getMinutes(), //分
  3602. "s+": this.getSeconds(), //秒
  3603. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  3604. "S": this.getMilliseconds() //毫秒
  3605. };
  3606. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  3607. for (var k in o)
  3608. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  3609. return fmt;
  3610. }
  3611. $("#jrjc").change(function() {
  3612. if ($("#jrjc").prop('checked') == true){
  3613. $("#departmentId").removeAttr("disabled");
  3614. }else {
  3615. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3616. }
  3617. });
  3618. ----------------------------------- SOURCE END -------------------------------------
  3619. !STACK 0
  3620. java.lang.NullPointerException
  3621. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-07-23 09:33:23.426
  3622. !MESSAGE java.lang.NullPointerException
  3623. !STACK 1
  3624. JavaScript Model Exception: java.lang.NullPointerException
  3625. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  3626. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  3627. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  3628. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  3629. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  3630. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  3631. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  3632. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  3633. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  3634. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  3635. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  3636. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  3637. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  3638. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  3639. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  3640. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  3641. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  3642. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  3643. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  3644. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  3645. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  3646. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  3647. Caused by: java.lang.NullPointerException
  3648. Caused by: java.lang.NullPointerException
  3649. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:33:23.426
  3650. !MESSAGE java.lang.NullPointerException
  3651. !STACK 0
  3652. java.lang.NullPointerException
  3653. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:40.025
  3654. !MESSAGE Exception occurred during problem detection:
  3655. ----------------------------------- SOURCE BEGIN -------------------------------------
  3656. (function(){WdatePicker();})();
  3657. (function(){WdatePicker();})();
  3658. (function(){Data.get();})();
  3659. (function(){Data.set();})();
  3660. (function(){search();})();
  3661. $(function(){
  3662. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3663. getfp();
  3664. });
  3665. var Data = {
  3666. "get" : function(){
  3667. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  3668. var tip = layer.load(2);
  3669. var result="";
  3670. var url = "getgyxml.do";
  3671. $.ajax({
  3672. "url" : url,
  3673. "data" : {
  3674. "start_date" : $("#dateBegin").val(),
  3675. "end_date" : $("#dateEnd").val()
  3676. },
  3677. "type" : "POST",
  3678. "dataType" : "json",
  3679. "success" : function(data) {
  3680. if(data != null && data != ""){
  3681. if ( data.status =="success"){
  3682. getfp();
  3683. alert("获取成功!");
  3684. }else {
  3685. alert(data.status);
  3686. }
  3687. }else {
  3688. alert("获取失败!");
  3689. }
  3690. },
  3691. "complete": function(){
  3692. layer.close(tip);
  3693. }
  3694. });
  3695. }else {
  3696. alert("请选择日期!");
  3697. }
  3698. },
  3699. "set" : function(){
  3700. if ( $("#fpid option:selected").text() !=""){
  3701. var tip = layer.load(2);
  3702. var gitem = $("#form1").serialize();
  3703. var jrjc;
  3704. if ($("#jrjc").prop('checked') == true){
  3705. jrjc = $("#departmentId").val();
  3706. }else {
  3707. jrjc ='N'
  3708. }
  3709. var url = "saverk.do";
  3710. $.ajax({
  3711. "url" : url,
  3712. "data" : {
  3713. "gitem" : gitem,
  3714. "jrjc" : jrjc
  3715. },
  3716. "type" : "POST",
  3717. "dataType" : "json",
  3718. "async" : true,
  3719. "success" : function(data) {
  3720. if(data.status =="success"){
  3721. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  3722. alert("入库成功!\n入库单号:"+data.rkdh+"");
  3723. }else {
  3724. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  3725. }
  3726. window.location.reload();
  3727. }else {
  3728. alert(msg);
  3729. }
  3730. },
  3731. "error": function(){
  3732. alert("确认失败!");
  3733. },
  3734. "complete": function(){
  3735. layer.close(tip);
  3736. }
  3737. });
  3738. }else {
  3739. alert("请选择发票!");
  3740. }
  3741. }
  3742. }
  3743. function getfp(){
  3744. var tip = layer.load(2);
  3745. var url = "getgyfp.do";
  3746. $.ajax({
  3747. "url" : url,
  3748. "type" : "POST",
  3749. "dataType" : "json",
  3750. "async" : true,
  3751. "success" : function(data) {
  3752. if(data != null && data != ""){
  3753. $("#fpid").empty();
  3754. $("#fpid").append("_$tag_____________$tag____");
  3755. for(var i = 0; i < data.length; i++){
  3756. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  3757. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  3758. }
  3759. }
  3760. },
  3761. "error" : function(msg){
  3762. },
  3763. "complete": function(){
  3764. layer.close(tip);
  3765. }
  3766. });
  3767. }
  3768. $("#fpid").change(function(){
  3769. var tip = layer.load(2);
  3770. var url = "getgyrkxx.do";
  3771. var sum_total=0;
  3772. $.ajax({
  3773. "url" : url,
  3774. "data" : {
  3775. "fpId" : $("#fpid").val()
  3776. },
  3777. "type" : "POST",
  3778. "dataType" : "json",
  3779. "async" : true,
  3780. "success" : function(data) {
  3781. $("#dataTable").html("");
  3782. if(data != null && data != ""){
  3783. var html = "";
  3784. for(var i = 0; i < data.length; i++){
  3785. var ID = data[i].id == null ? "" : data[i].id;
  3786. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  3787. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  3788. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  3789. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  3790. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  3791. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  3792. var GOODS = data[i].goods == null ? "" : data[i].goods;
  3793. var NAME = data[i].name == null ? "" : data[i].name;
  3794. var SPEC = data[i].spec == null ? "" : data[i].spec;
  3795. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  3796. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  3797. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  3798. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  3799. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  3800. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  3801. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  3802. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  3803. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  3804. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  3805. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  3806. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  3807. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  3808. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  3809. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  3810. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  3811. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  3812. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  3813. sum_total = sum_total + DSUMVALUE
  3814. var invoice_type_cn =null;
  3815. if (invoice_type =="00" ){
  3816. invoice_type_cn="销售发票";
  3817. }else if (invoice_type == "01") {
  3818. invoice_type_cn="更正(对冲)发票";
  3819. }else if (invoice_type == "02") {
  3820. invoice_type_cn="其它类型发票";
  3821. }
  3822. html += "_$ta";
  3823. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  3824. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3825. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3826. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  3827. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3828. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3829. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3830. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  3831. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3832. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3833. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  3834. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  3835. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3836. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3837. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3838. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3839. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  3840. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  3841. html += "_$tag";
  3842. }
  3843. html += "_$ta";
  3844. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3845. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3846. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3847. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3848. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3849. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3850. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3851. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3852. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3853. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3854. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3855. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3856. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3857. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3858. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3859. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3860. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3861. html += "_$tag_____________$tag_合计:_$tag___$tag";
  3862. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  3863. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3864. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3865. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3866. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3867. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3868. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3869. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3870. html += "_$tag";
  3871. $("#dataTable").html(html);
  3872. }else {
  3873. $("#dataTable").html("");
  3874. }
  3875. },
  3876. "error" : function(msg){
  3877. },
  3878. "complete": function(){
  3879. layer.close(tip);
  3880. }
  3881. });
  3882. });
  3883. Date.prototype.Format = function (fmt) {
  3884. var o = {
  3885. "M+": this.getMonth() + 1, //月份
  3886. "d+": this.getDate(), //日
  3887. "h+": this.getHours(), //小时
  3888. "m+": this.getMinutes(), //分
  3889. "s+": this.getSeconds(), //秒
  3890. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  3891. "S": this.getMilliseconds() //毫秒
  3892. };
  3893. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  3894. for (var k in o)
  3895. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  3896. return fmt;
  3897. }
  3898. $("#jrjc").change(function() {
  3899. if ($("#jrjc").prop('checked') == true){
  3900. $("#departmentId").removeAttr("disabled");
  3901. }else {
  3902. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3903. }
  3904. });
  3905. ----------------------------------- SOURCE END -------------------------------------
  3906. !STACK 0
  3907. java.lang.NullPointerException
  3908. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-07-23 09:33:40.026
  3909. !MESSAGE java.lang.NullPointerException
  3910. !STACK 1
  3911. JavaScript Model Exception: java.lang.NullPointerException
  3912. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  3913. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  3914. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  3915. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  3916. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  3917. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  3918. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  3919. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  3920. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  3921. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  3922. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  3923. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  3924. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  3925. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  3926. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  3927. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  3928. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  3929. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  3930. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  3931. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  3932. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  3933. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  3934. Caused by: java.lang.NullPointerException
  3935. Caused by: java.lang.NullPointerException
  3936. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:33:40.026
  3937. !MESSAGE java.lang.NullPointerException
  3938. !STACK 0
  3939. java.lang.NullPointerException
  3940. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:48.249
  3941. !MESSAGE Exception occurred during problem detection:
  3942. ----------------------------------- SOURCE BEGIN -------------------------------------
  3943. (function(){WdatePicker();})();
  3944. (function(){WdatePicker();})();
  3945. (function(){Data.get();})();
  3946. (function(){Data.set();})();
  3947. (function(){search();})();
  3948. $(function(){
  3949. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3950. getfp();
  3951. });
  3952. var Data = {
  3953. "get" : function(){
  3954. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  3955. var tip = layer.load(2);
  3956. var result="";
  3957. var url = "getgyxml.do";
  3958. $.ajax({
  3959. "url" : url,
  3960. "data" : {
  3961. "start_date" : $("#dateBegin").val(),
  3962. "end_date" : $("#dateEnd").val()
  3963. },
  3964. "type" : "POST",
  3965. "dataType" : "json",
  3966. "success" : function(data) {
  3967. if(data != null && data != ""){
  3968. if ( data.status =="success"){
  3969. getfp();
  3970. alert("获取成功!");
  3971. }else {
  3972. alert(data.status);
  3973. }
  3974. }else {
  3975. alert("获取失败!");
  3976. }
  3977. },
  3978. "complete": function(){
  3979. layer.close(tip);
  3980. }
  3981. });
  3982. }else {
  3983. alert("请选择日期!");
  3984. }
  3985. },
  3986. "set" : function(){
  3987. if ( $("#fpid option:selected").text() !=""){
  3988. var tip = layer.load(2);
  3989. var gitem = $("#form1").serialize();
  3990. var jrjc;
  3991. if ($("#jrjc").prop('checked') == true){
  3992. jrjc = $("#departmentId").val();
  3993. }else {
  3994. jrjc ='N'
  3995. }
  3996. var url = "saverk.do";
  3997. $.ajax({
  3998. "url" : url,
  3999. "data" : {
  4000. "gitem" : gitem,
  4001. "jrjc" : jrjc
  4002. },
  4003. "type" : "POST",
  4004. "dataType" : "json",
  4005. "async" : true,
  4006. "success" : function(data) {
  4007. if(data.status =="success"){
  4008. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  4009. alert("入库成功!\n入库单号:"+data.rkdh+"");
  4010. }else {
  4011. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  4012. }
  4013. window.location.reload();
  4014. }else {
  4015. alert(msg);
  4016. }
  4017. },
  4018. "error": function(){
  4019. alert("确认失败!");
  4020. },
  4021. "complete": function(){
  4022. layer.close(tip);
  4023. }
  4024. });
  4025. }else {
  4026. alert("请选择发票!");
  4027. }
  4028. }
  4029. }
  4030. function getfp(){
  4031. var tip = layer.load(2);
  4032. var url = "getgyfp.do";
  4033. $.ajax({
  4034. "url" : url,
  4035. "type" : "POST",
  4036. "dataType" : "json",
  4037. "async" : true,
  4038. "success" : function(data) {
  4039. if(data != null && data != ""){
  4040. $("#fpid").empty();
  4041. $("#fpid").append("_$tag_____________$tag____");
  4042. for(var i = 0; i < data.length; i++){
  4043. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  4044. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  4045. }
  4046. }
  4047. },
  4048. "error" : function(msg){
  4049. },
  4050. "complete": function(){
  4051. layer.close(tip);
  4052. }
  4053. });
  4054. }
  4055. $("#fpid").change(function(){
  4056. var tip = layer.load(2);
  4057. var url = "getgyrkxx.do";
  4058. var sum_total=0;
  4059. $.ajax({
  4060. "url" : url,
  4061. "data" : {
  4062. "fpId" : $("#fpid").val()
  4063. },
  4064. "type" : "POST",
  4065. "dataType" : "json",
  4066. "async" : true,
  4067. "success" : function(data) {
  4068. $("#dataTable").html("");
  4069. if(data != null && data != ""){
  4070. var html = "";
  4071. for(var i = 0; i < data.length; i++){
  4072. var ID = data[i].id == null ? "" : data[i].id;
  4073. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  4074. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  4075. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  4076. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  4077. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  4078. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  4079. var GOODS = data[i].goods == null ? "" : data[i].goods;
  4080. var NAME = data[i].name == null ? "" : data[i].name;
  4081. var SPEC = data[i].spec == null ? "" : data[i].spec;
  4082. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  4083. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  4084. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  4085. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  4086. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  4087. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  4088. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  4089. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  4090. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  4091. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  4092. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  4093. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  4094. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  4095. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  4096. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  4097. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  4098. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  4099. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  4100. sum_total = sum_total + DSUMVALUE
  4101. var invoice_type_cn =null;
  4102. if (invoice_type =="00" ){
  4103. invoice_type_cn="销售发票";
  4104. }else if (invoice_type == "01") {
  4105. invoice_type_cn="更正(对冲)发票";
  4106. }else if (invoice_type == "02") {
  4107. invoice_type_cn="其它类型发票";
  4108. }
  4109. html += "_$ta";
  4110. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  4111. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4112. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4113. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  4114. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4115. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4116. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4117. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  4118. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4119. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4120. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  4121. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  4122. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4123. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4124. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4125. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4126. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  4127. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  4128. html += "_$tag";
  4129. }
  4130. html += "_$ta";
  4131. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4132. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4133. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4134. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4135. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4136. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4137. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4138. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4139. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4140. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4141. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4142. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4143. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4144. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4145. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4146. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4147. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4148. html += "_$tag_____________$tag_合计:_$tag___$tag";
  4149. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  4150. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4151. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4152. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4153. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4154. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4155. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4156. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4157. html += "_$tag";
  4158. $("#dataTable").html(html);
  4159. }else {
  4160. $("#dataTable").html("");
  4161. }
  4162. },
  4163. "error" : function(msg){
  4164. },
  4165. "complete": function(){
  4166. layer.close(tip);
  4167. }
  4168. });
  4169. });
  4170. Date.prototype.Format = function (fmt) {
  4171. var o = {
  4172. "M+": this.getMonth() + 1, //月份
  4173. "d+": this.getDate(), //日
  4174. "h+": this.getHours(), //小时
  4175. "m+": this.getMinutes(), //分
  4176. "s+": this.getSeconds(), //秒
  4177. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  4178. "S": this.getMilliseconds() //毫秒
  4179. };
  4180. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  4181. for (var k in o)
  4182. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  4183. return fmt;
  4184. }
  4185. $("#jrjc").change(function() {
  4186. if ($("#jrjc").prop('checked') == true){
  4187. $("#departmentId").removeAttr("disabled");
  4188. }else {
  4189. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4190. }
  4191. });
  4192. ----------------------------------- SOURCE END -------------------------------------
  4193. !STACK 0
  4194. java.lang.NullPointerException
  4195. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:48.250
  4196. !MESSAGE Error while processing working copy
  4197. !STACK 1
  4198. JavaScript Model Exception: java.lang.NullPointerException
  4199. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  4200. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  4201. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  4202. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  4203. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  4204. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  4205. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  4206. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  4207. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  4208. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  4209. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  4210. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  4211. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  4212. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  4213. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  4214. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  4215. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  4216. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  4217. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  4218. Caused by: java.lang.NullPointerException
  4219. Caused by: java.lang.NullPointerException
  4220. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:33:48.250
  4221. !MESSAGE java.lang.NullPointerException
  4222. !STACK 0
  4223. java.lang.NullPointerException
  4224. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:49.505
  4225. !MESSAGE Exception occurred during problem detection:
  4226. ----------------------------------- SOURCE BEGIN -------------------------------------
  4227. (function(){WdatePicker();})();
  4228. (function(){WdatePicker();})();
  4229. (function(){Data.get();})();
  4230. (function(){Data.set();})();
  4231. (function(){search();})();
  4232. $(function(){
  4233. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4234. getfp();
  4235. });
  4236. var Data = {
  4237. "get" : function(){
  4238. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  4239. var tip = layer.load(2);
  4240. var result="";
  4241. var url = "getgyxml.do";
  4242. $.ajax({
  4243. "url" : url,
  4244. "data" : {
  4245. "start_date" : $("#dateBegin").val(),
  4246. "end_date" : $("#dateEnd").val()
  4247. },
  4248. "type" : "POST",
  4249. "dataType" : "json",
  4250. "success" : function(data) {
  4251. if(data != null && data != ""){
  4252. if ( data.status =="success"){
  4253. getfp();
  4254. alert("获取成功!");
  4255. }else {
  4256. alert(data.status);
  4257. }
  4258. }else {
  4259. alert("获取失败!");
  4260. }
  4261. },
  4262. "complete": function(){
  4263. layer.close(tip);
  4264. }
  4265. });
  4266. }else {
  4267. alert("请选择日期!");
  4268. }
  4269. },
  4270. "set" : function(){
  4271. if ( $("#fpid option:selected").text() !=""){
  4272. var tip = layer.load(2);
  4273. var gitem = $("#form1").serialize();
  4274. var jrjc;
  4275. if ($("#jrjc").prop('checked') == true){
  4276. jrjc = $("#departmentId").val();
  4277. }else {
  4278. jrjc ='N'
  4279. }
  4280. var url = "saverk.do";
  4281. $.ajax({
  4282. "url" : url,
  4283. "data" : {
  4284. "gitem" : gitem,
  4285. "jrjc" : jrjc
  4286. },
  4287. "type" : "POST",
  4288. "dataType" : "json",
  4289. "async" : true,
  4290. "success" : function(data) {
  4291. if(data.status =="success"){
  4292. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  4293. alert("入库成功!\n入库单号:"+data.rkdh+"");
  4294. }else {
  4295. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  4296. }
  4297. window.location.reload();
  4298. }else {
  4299. alert(msg);
  4300. }
  4301. },
  4302. "error": function(){
  4303. alert("确认失败!");
  4304. },
  4305. "complete": function(){
  4306. layer.close(tip);
  4307. }
  4308. });
  4309. }else {
  4310. alert("请选择发票!");
  4311. }
  4312. }
  4313. }
  4314. function getfp(){
  4315. var tip = layer.load(2);
  4316. var url = "getgyfp.do";
  4317. $.ajax({
  4318. "url" : url,
  4319. "type" : "POST",
  4320. "dataType" : "json",
  4321. "async" : true,
  4322. "success" : function(data) {
  4323. if(data != null && data != ""){
  4324. $("#fpid").empty();
  4325. $("#fpid").append("_$tag_____________$tag____");
  4326. for(var i = 0; i < data.length; i++){
  4327. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  4328. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  4329. }
  4330. }
  4331. },
  4332. "error" : function(msg){
  4333. },
  4334. "complete": function(){
  4335. layer.close(tip);
  4336. }
  4337. });
  4338. }
  4339. $("#fpid").change(function(){
  4340. var tip = layer.load(2);
  4341. var url = "getgyrkxx.do";
  4342. var sum_total=0;
  4343. $.ajax({
  4344. "url" : url,
  4345. "data" : {
  4346. "fpId" : $("#fpid").val()
  4347. },
  4348. "type" : "POST",
  4349. "dataType" : "json",
  4350. "async" : true,
  4351. "success" : function(data) {
  4352. $("#dataTable").html("");
  4353. if(data != null && data != ""){
  4354. var html = "";
  4355. for(var i = 0; i < data.length; i++){
  4356. var ID = data[i].id == null ? "" : data[i].id;
  4357. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  4358. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  4359. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  4360. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  4361. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  4362. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  4363. var GOODS = data[i].goods == null ? "" : data[i].goods;
  4364. var NAME = data[i].name == null ? "" : data[i].name;
  4365. var SPEC = data[i].spec == null ? "" : data[i].spec;
  4366. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  4367. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  4368. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  4369. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  4370. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  4371. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  4372. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  4373. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  4374. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  4375. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  4376. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  4377. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  4378. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  4379. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  4380. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  4381. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  4382. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  4383. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  4384. sum_total = sum_total + DSUMVALUE
  4385. var invoice_type_cn =null;
  4386. if (invoice_type =="00" ){
  4387. invoice_type_cn="销售发票";
  4388. }else if (invoice_type == "01") {
  4389. invoice_type_cn="更正(对冲)发票";
  4390. }else if (invoice_type == "02") {
  4391. invoice_type_cn="其它类型发票";
  4392. }
  4393. html += "_$ta";
  4394. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  4395. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4396. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4397. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  4398. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4399. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4400. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4401. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  4402. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4403. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4404. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  4405. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  4406. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4407. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4408. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4409. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4410. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  4411. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  4412. html += "_$tag";
  4413. }
  4414. html += "_$ta";
  4415. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4416. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4417. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4418. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4419. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4420. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4421. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4422. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4423. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4424. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4425. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4426. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4427. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4428. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4429. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4430. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4431. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4432. html += "_$tag_____________$tag_合计:_$tag___$tag";
  4433. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  4434. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4435. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4436. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4437. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4438. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4439. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4440. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4441. html += "_$tag";
  4442. $("#dataTable").html(html);
  4443. }else {
  4444. $("#dataTable").html("");
  4445. }
  4446. },
  4447. "error" : function(msg){
  4448. },
  4449. "complete": function(){
  4450. layer.close(tip);
  4451. }
  4452. });
  4453. });
  4454. Date.prototype.Format = function (fmt) {
  4455. var o = {
  4456. "M+": this.getMonth() + 1, //月份
  4457. "d+": this.getDate(), //日
  4458. "h+": this.getHours(), //小时
  4459. "m+": this.getMinutes(), //分
  4460. "s+": this.getSeconds(), //秒
  4461. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  4462. "S": this.getMilliseconds() //毫秒
  4463. };
  4464. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  4465. for (var k in o)
  4466. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  4467. return fmt;
  4468. }
  4469. $("#jrjc").change(function() {
  4470. if ($("#jrjc").prop('checked') == true){
  4471. $("#departmentId").removeAttr("disabled");
  4472. }else {
  4473. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4474. }
  4475. });
  4476. ----------------------------------- SOURCE END -------------------------------------
  4477. !STACK 0
  4478. java.lang.NullPointerException
  4479. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:50.460
  4480. !MESSAGE Exception occurred during problem detection:
  4481. ----------------------------------- SOURCE BEGIN -------------------------------------
  4482. (function(){WdatePicker();})();
  4483. (function(){WdatePicker();})();
  4484. (function(){Data.get();})();
  4485. (function(){Data.set();})();
  4486. (function(){search();})();
  4487. $(function(){
  4488. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4489. getfp();
  4490. });
  4491. var Data = {
  4492. "get" : function(){
  4493. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  4494. var tip = layer.load(2);
  4495. var result="";
  4496. var url = "getgyxml.do";
  4497. $.ajax({
  4498. "url" : url,
  4499. "data" : {
  4500. "start_date" : $("#dateBegin").val(),
  4501. "end_date" : $("#dateEnd").val()
  4502. },
  4503. "type" : "POST",
  4504. "dataType" : "json",
  4505. "success" : function(data) {
  4506. if(data != null && data != ""){
  4507. if ( data.status =="success"){
  4508. getfp();
  4509. alert("获取成功!");
  4510. }else {
  4511. alert(data.status);
  4512. }
  4513. }else {
  4514. alert("获取失败!");
  4515. }
  4516. },
  4517. "complete": function(){
  4518. layer.close(tip);
  4519. }
  4520. });
  4521. }else {
  4522. alert("请选择日期!");
  4523. }
  4524. },
  4525. "set" : function(){
  4526. if ( $("#fpid option:selected").text() !=""){
  4527. var tip = layer.load(2);
  4528. var gitem = $("#form1").serialize();
  4529. var jrjc;
  4530. if ($("#jrjc").prop('checked') == true){
  4531. jrjc = $("#departmentId").val();
  4532. }else {
  4533. jrjc ='N'
  4534. }
  4535. var url = "saverk.do";
  4536. $.ajax({
  4537. "url" : url,
  4538. "data" : {
  4539. "gitem" : gitem,
  4540. "jrjc" : jrjc
  4541. },
  4542. "type" : "POST",
  4543. "dataType" : "json",
  4544. "async" : true,
  4545. "success" : function(data) {
  4546. if(data.status =="success"){
  4547. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  4548. alert("入库成功!\n入库单号:"+data.rkdh+"");
  4549. }else {
  4550. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  4551. }
  4552. window.location.reload();
  4553. }else {
  4554. alert(msg);
  4555. }
  4556. },
  4557. "error": function(){
  4558. alert("确认失败!");
  4559. },
  4560. "complete": function(){
  4561. layer.close(tip);
  4562. }
  4563. });
  4564. }else {
  4565. alert("请选择发票!");
  4566. }
  4567. }
  4568. }
  4569. function getfp(){
  4570. var tip = layer.load(2);
  4571. var url = "getgyfp.do";
  4572. $.ajax({
  4573. "url" : url,
  4574. "type" : "POST",
  4575. "dataType" : "json",
  4576. "async" : true,
  4577. "success" : function(data) {
  4578. if(data != null && data != ""){
  4579. $("#fpid").empty();
  4580. $("#fpid").append("_$tag_____________$tag____");
  4581. for(var i = 0; i < data.length; i++){
  4582. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  4583. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  4584. }
  4585. }
  4586. },
  4587. "error" : function(msg){
  4588. },
  4589. "complete": function(){
  4590. layer.close(tip);
  4591. }
  4592. });
  4593. }
  4594. $("#fpid").change(function(){
  4595. var tip = layer.load(2);
  4596. var url = "getgyrkxx.do";
  4597. var sum_total=0;
  4598. $.ajax({
  4599. "url" : url,
  4600. "data" : {
  4601. "fpId" : $("#fpid").val()
  4602. },
  4603. "type" : "POST",
  4604. "dataType" : "json",
  4605. "async" : true,
  4606. "success" : function(data) {
  4607. $("#dataTable").html("");
  4608. if(data != null && data != ""){
  4609. var html = "";
  4610. for(var i = 0; i < data.length; i++){
  4611. var ID = data[i].id == null ? "" : data[i].id;
  4612. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  4613. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  4614. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  4615. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  4616. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  4617. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  4618. var GOODS = data[i].goods == null ? "" : data[i].goods;
  4619. var NAME = data[i].name == null ? "" : data[i].name;
  4620. var SPEC = data[i].spec == null ? "" : data[i].spec;
  4621. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  4622. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  4623. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  4624. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  4625. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  4626. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  4627. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  4628. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  4629. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  4630. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  4631. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  4632. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  4633. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  4634. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  4635. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  4636. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  4637. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  4638. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  4639. sum_total = sum_total + DSUMVALUE
  4640. var invoice_type_cn =null;
  4641. if (invoice_type =="00" ){
  4642. invoice_type_cn="销售发票";
  4643. }else if (invoice_type == "01") {
  4644. invoice_type_cn="更正(对冲)发票";
  4645. }else if (invoice_type == "02") {
  4646. invoice_type_cn="其它类型发票";
  4647. }
  4648. html += "_$ta";
  4649. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  4650. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4651. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4652. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  4653. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4654. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4655. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4656. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  4657. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4658. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4659. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  4660. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  4661. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4662. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4663. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4664. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4665. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  4666. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  4667. html += "_$tag";
  4668. }
  4669. html += "_$ta";
  4670. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4671. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4672. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4673. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4674. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4675. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4676. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4677. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4678. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4679. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4680. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4681. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4682. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4683. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4684. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4685. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4686. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4687. html += "_$tag_____________$tag_合计:_$tag___$tag";
  4688. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  4689. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4690. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4691. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4692. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4693. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4694. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4695. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4696. html += "_$tag";
  4697. $("#dataTable").html(html);
  4698. }else {
  4699. $("#dataTable").html("");
  4700. }
  4701. },
  4702. "error" : function(msg){
  4703. },
  4704. "complete": function(){
  4705. layer.close(tip);
  4706. }
  4707. });
  4708. });
  4709. Date.prototype.Format = function (fmt) {
  4710. var o = {
  4711. "M+": this.getMonth() + 1, //月份
  4712. "d+": this.getDate(), //日
  4713. "h+": this.getHours(), //小时
  4714. "m+": this.getMinutes(), //分
  4715. "s+": this.getSeconds(), //秒
  4716. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  4717. "S": this.getMilliseconds() //毫秒
  4718. };
  4719. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  4720. for (var k in o)
  4721. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  4722. return fmt;
  4723. }
  4724. $("#jrjc").change(function() {
  4725. if ($("#jrjc").prop('checked') == true){
  4726. $("#departmentId").removeAttr("disabled");
  4727. }else {
  4728. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4729. }
  4730. });
  4731. ----------------------------------- SOURCE END -------------------------------------
  4732. !STACK 0
  4733. java.lang.NullPointerException
  4734. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:50.460
  4735. !MESSAGE Error while processing working copy
  4736. !STACK 1
  4737. JavaScript Model Exception: java.lang.NullPointerException
  4738. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  4739. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  4740. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  4741. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  4742. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  4743. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  4744. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  4745. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  4746. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  4747. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  4748. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  4749. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  4750. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  4751. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  4752. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  4753. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  4754. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  4755. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  4756. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  4757. Caused by: java.lang.NullPointerException
  4758. Caused by: java.lang.NullPointerException
  4759. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:33:50.460
  4760. !MESSAGE java.lang.NullPointerException
  4761. !STACK 0
  4762. java.lang.NullPointerException
  4763. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:51.487
  4764. !MESSAGE Exception occurred during problem detection:
  4765. ----------------------------------- SOURCE BEGIN -------------------------------------
  4766. (function(){WdatePicker();})();
  4767. (function(){WdatePicker();})();
  4768. (function(){Data.get();})();
  4769. (function(){Data.set();})();
  4770. (function(){search();})();
  4771. $(function(){
  4772. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4773. getfp();
  4774. });
  4775. var Data = {
  4776. "get" : function(){
  4777. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  4778. var tip = layer.load(2);
  4779. var result="";
  4780. var url = "getgyxml.do";
  4781. $.ajax({
  4782. "url" : url,
  4783. "data" : {
  4784. "start_date" : $("#dateBegin").val(),
  4785. "end_date" : $("#dateEnd").val()
  4786. },
  4787. "type" : "POST",
  4788. "dataType" : "json",
  4789. "success" : function(data) {
  4790. if(data != null && data != ""){
  4791. if ( data.status =="success"){
  4792. getfp();
  4793. alert("获取成功!");
  4794. }else {
  4795. alert(data.status);
  4796. }
  4797. }else {
  4798. alert("获取失败!");
  4799. }
  4800. },
  4801. "complete": function(){
  4802. layer.close(tip);
  4803. }
  4804. });
  4805. }else {
  4806. alert("请选择日期!");
  4807. }
  4808. },
  4809. "set" : function(){
  4810. if ( $("#fpid option:selected").text() !=""){
  4811. var tip = layer.load(2);
  4812. var gitem = $("#form1").serialize();
  4813. var jrjc;
  4814. if ($("#jrjc").prop('checked') == true){
  4815. jrjc = $("#departmentId").val();
  4816. }else {
  4817. jrjc ='N'
  4818. }
  4819. var url = "saverk.do";
  4820. $.ajax({
  4821. "url" : url,
  4822. "data" : {
  4823. "gitem" : gitem,
  4824. "jrjc" : jrjc
  4825. },
  4826. "type" : "POST",
  4827. "dataType" : "json",
  4828. "async" : true,
  4829. "success" : function(data) {
  4830. if(data.status =="success"){
  4831. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  4832. alert("入库成功!\n入库单号:"+data.rkdh+"");
  4833. }else {
  4834. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  4835. }
  4836. window.location.reload();
  4837. }else {
  4838. alert(msg);
  4839. }
  4840. },
  4841. "error": function(){
  4842. alert("确认失败!");
  4843. },
  4844. "complete": function(){
  4845. layer.close(tip);
  4846. }
  4847. });
  4848. }else {
  4849. alert("请选择发票!");
  4850. }
  4851. }
  4852. }
  4853. function getfp(){
  4854. var tip = layer.load(2);
  4855. var url = "getgyfp.do";
  4856. $.ajax({
  4857. "url" : url,
  4858. "type" : "POST",
  4859. "dataType" : "json",
  4860. "async" : true,
  4861. "success" : function(data) {
  4862. if(data != null && data != ""){
  4863. $("#fpid").empty();
  4864. $("#fpid").append("_$tag_____________$tag____");
  4865. for(var i = 0; i < data.length; i++){
  4866. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  4867. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  4868. }
  4869. }
  4870. },
  4871. "error" : function(msg){
  4872. },
  4873. "complete": function(){
  4874. layer.close(tip);
  4875. }
  4876. });
  4877. }
  4878. $("#fpid").change(function(){
  4879. var tip = layer.load(2);
  4880. var url = "getgyrkxx.do";
  4881. var sum_total=0;
  4882. $.ajax({
  4883. "url" : url,
  4884. "data" : {
  4885. "fpId" : $("#fpid").val()
  4886. },
  4887. "type" : "POST",
  4888. "dataType" : "json",
  4889. "async" : true,
  4890. "success" : function(data) {
  4891. $("#dataTable").html("");
  4892. if(data != null && data != ""){
  4893. var html = "";
  4894. for(var i = 0; i < data.length; i++){
  4895. var ID = data[i].id == null ? "" : data[i].id;
  4896. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  4897. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  4898. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  4899. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  4900. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  4901. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  4902. var GOODS = data[i].goods == null ? "" : data[i].goods;
  4903. var NAME = data[i].name == null ? "" : data[i].name;
  4904. var SPEC = data[i].spec == null ? "" : data[i].spec;
  4905. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  4906. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  4907. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  4908. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  4909. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  4910. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  4911. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  4912. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  4913. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  4914. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  4915. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  4916. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  4917. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  4918. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  4919. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  4920. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  4921. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  4922. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  4923. sum_total = sum_total + DSUMVALUE
  4924. var invoice_type_cn =null;
  4925. if (invoice_type =="00" ){
  4926. invoice_type_cn="销售发票";
  4927. }else if (invoice_type == "01") {
  4928. invoice_type_cn="更正(对冲)发票";
  4929. }else if (invoice_type == "02") {
  4930. invoice_type_cn="其它类型发票";
  4931. }
  4932. html += "_$ta";
  4933. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  4934. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4935. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4936. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  4937. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4938. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4939. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4940. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  4941. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4942. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4943. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  4944. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  4945. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4946. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4947. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4948. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4949. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  4950. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  4951. html += "_$tag";
  4952. }
  4953. html += "_$ta";
  4954. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4955. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4956. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4957. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4958. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4959. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4960. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4961. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4962. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4963. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4964. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4965. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4966. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4967. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4968. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4969. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4970. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4971. html += "_$tag_____________$tag_合计:_$tag___$tag";
  4972. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  4973. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4974. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4975. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4976. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4977. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4978. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4979. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4980. html += "_$tag";
  4981. $("#dataTable").html(html);
  4982. }else {
  4983. $("#dataTable").html("");
  4984. }
  4985. },
  4986. "error" : function(msg){
  4987. },
  4988. "complete": function(){
  4989. layer.close(tip);
  4990. }
  4991. });
  4992. });
  4993. Date.prototype.Format = function (fmt) {
  4994. var o = {
  4995. "M+": this.getMonth() + 1, //月份
  4996. "d+": this.getDate(), //日
  4997. "h+": this.getHours(), //小时
  4998. "m+": this.getMinutes(), //分
  4999. "s+": this.getSeconds(), //秒
  5000. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  5001. "S": this.getMilliseconds() //毫秒
  5002. };
  5003. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  5004. for (var k in o)
  5005. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  5006. return fmt;
  5007. }
  5008. $("#jrjc").change(function() {
  5009. if ($("#jrjc").prop('checked') == true){
  5010. $("#departmentId").removeAttr("disabled");
  5011. }else {
  5012. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5013. }
  5014. });
  5015. ----------------------------------- SOURCE END -------------------------------------
  5016. !STACK 0
  5017. java.lang.NullPointerException
  5018. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:52.542
  5019. !MESSAGE Exception occurred during problem detection:
  5020. ----------------------------------- SOURCE BEGIN -------------------------------------
  5021. (function(){WdatePicker();})();
  5022. (function(){WdatePicker();})();
  5023. (function(){Data.get();})();
  5024. (function(){Data.set();})();
  5025. (function(){search();})();
  5026. $(function(){
  5027. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5028. getfp();
  5029. });
  5030. var Data = {
  5031. "get" : function(){
  5032. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  5033. var tip = layer.load(2);
  5034. var result="";
  5035. var url = "getgyxml.do";
  5036. $.ajax({
  5037. "url" : url,
  5038. "data" : {
  5039. "start_date" : $("#dateBegin").val(),
  5040. "end_date" : $("#dateEnd").val()
  5041. },
  5042. "type" : "POST",
  5043. "dataType" : "json",
  5044. "success" : function(data) {
  5045. if(data != null && data != ""){
  5046. if ( data.status =="success"){
  5047. getfp();
  5048. alert("获取成功!");
  5049. }else {
  5050. alert(data.status);
  5051. }
  5052. }else {
  5053. alert("获取失败!");
  5054. }
  5055. },
  5056. "complete": function(){
  5057. layer.close(tip);
  5058. }
  5059. });
  5060. }else {
  5061. alert("请选择日期!");
  5062. }
  5063. },
  5064. "set" : function(){
  5065. if ( $("#fpid option:selected").text() !=""){
  5066. var tip = layer.load(2);
  5067. var gitem = $("#form1").serialize();
  5068. var jrjc;
  5069. if ($("#jrjc").prop('checked') == true){
  5070. jrjc = $("#departmentId").val();
  5071. }else {
  5072. jrjc ='N'
  5073. }
  5074. var url = "saverk.do";
  5075. $.ajax({
  5076. "url" : url,
  5077. "data" : {
  5078. "gitem" : gitem,
  5079. "jrjc" : jrjc
  5080. },
  5081. "type" : "POST",
  5082. "dataType" : "json",
  5083. "async" : true,
  5084. "success" : function(data) {
  5085. if(data.status =="success"){
  5086. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  5087. alert("入库成功!\n入库单号:"+data.rkdh+"");
  5088. }else {
  5089. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  5090. }
  5091. window.location.reload();
  5092. }else {
  5093. alert(msg);
  5094. }
  5095. },
  5096. "error": function(){
  5097. alert("确认失败!");
  5098. },
  5099. "complete": function(){
  5100. layer.close(tip);
  5101. }
  5102. });
  5103. }else {
  5104. alert("请选择发票!");
  5105. }
  5106. }
  5107. }
  5108. function getfp(){
  5109. var tip = layer.load(2);
  5110. var url = "getgyfp.do";
  5111. $.ajax({
  5112. "url" : url,
  5113. "type" : "POST",
  5114. "dataType" : "json",
  5115. "async" : true,
  5116. "success" : function(data) {
  5117. if(data != null && data != ""){
  5118. $("#fpid").empty();
  5119. $("#fpid").append("_$tag_____________$tag____");
  5120. for(var i = 0; i < data.length; i++){
  5121. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  5122. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  5123. }
  5124. }
  5125. },
  5126. "error" : function(msg){
  5127. },
  5128. "complete": function(){
  5129. layer.close(tip);
  5130. }
  5131. });
  5132. }
  5133. $("#fpid").change(function(){
  5134. var tip = layer.load(2);
  5135. var url = "getgyrkxx.do";
  5136. var sum_total=0;
  5137. $.ajax({
  5138. "url" : url,
  5139. "data" : {
  5140. "fpId" : $("#fpid").val()
  5141. },
  5142. "type" : "POST",
  5143. "dataType" : "json",
  5144. "async" : true,
  5145. "success" : function(data) {
  5146. $("#dataTable").html("");
  5147. if(data != null && data != ""){
  5148. var html = "";
  5149. for(var i = 0; i < data.length; i++){
  5150. var ID = data[i].id == null ? "" : data[i].id;
  5151. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  5152. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  5153. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  5154. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  5155. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  5156. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  5157. var GOODS = data[i].goods == null ? "" : data[i].goods;
  5158. var NAME = data[i].name == null ? "" : data[i].name;
  5159. var SPEC = data[i].spec == null ? "" : data[i].spec;
  5160. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  5161. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  5162. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  5163. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  5164. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  5165. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  5166. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  5167. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  5168. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  5169. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  5170. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  5171. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  5172. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  5173. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  5174. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  5175. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  5176. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  5177. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  5178. sum_total = sum_total + DSUMVALUE
  5179. var invoice_type_cn =null;
  5180. if (invoice_type =="00" ){
  5181. invoice_type_cn="销售发票";
  5182. }else if (invoice_type == "01") {
  5183. invoice_type_cn="更正(对冲)发票";
  5184. }else if (invoice_type == "02") {
  5185. invoice_type_cn="其它类型发票";
  5186. }
  5187. html += "_$ta";
  5188. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  5189. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5190. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5191. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  5192. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5193. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5194. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5195. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  5196. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5197. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5198. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  5199. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  5200. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5201. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5202. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5203. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5204. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  5205. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  5206. html += "_$tag";
  5207. }
  5208. html += "_$ta";
  5209. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5210. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5211. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5212. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5213. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5214. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5215. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5216. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5217. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5218. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5219. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5220. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5221. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5222. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5223. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5224. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5225. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5226. html += "_$tag_____________$tag_合计:_$tag___$tag";
  5227. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  5228. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5229. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5230. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5231. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5232. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5233. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5234. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5235. html += "_$tag";
  5236. $("#dataTable").html(html);
  5237. }else {
  5238. $("#dataTable").html("");
  5239. }
  5240. },
  5241. "error" : function(msg){
  5242. },
  5243. "complete": function(){
  5244. layer.close(tip);
  5245. }
  5246. });
  5247. });
  5248. Date.prototype.Format = function (fmt) {
  5249. var o = {
  5250. "M+": this.getMonth() + 1, //月份
  5251. "d+": this.getDate(), //日
  5252. "h+": this.getHours(), //小时
  5253. "m+": this.getMinutes(), //分
  5254. "s+": this.getSeconds(), //秒
  5255. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  5256. "S": this.getMilliseconds() //毫秒
  5257. };
  5258. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  5259. for (var k in o)
  5260. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  5261. return fmt;
  5262. }
  5263. $("#jrjc").change(function() {
  5264. if ($("#jrjc").prop('checked') == true){
  5265. $("#departmentId").removeAttr("disabled");
  5266. }else {
  5267. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5268. }
  5269. });
  5270. ----------------------------------- SOURCE END -------------------------------------
  5271. !STACK 0
  5272. java.lang.NullPointerException
  5273. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:52.543
  5274. !MESSAGE Error while processing working copy
  5275. !STACK 1
  5276. JavaScript Model Exception: java.lang.NullPointerException
  5277. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  5278. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  5279. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  5280. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  5281. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  5282. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  5283. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  5284. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  5285. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  5286. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  5287. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  5288. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  5289. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  5290. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  5291. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  5292. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  5293. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  5294. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  5295. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  5296. Caused by: java.lang.NullPointerException
  5297. Caused by: java.lang.NullPointerException
  5298. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:33:52.543
  5299. !MESSAGE java.lang.NullPointerException
  5300. !STACK 0
  5301. java.lang.NullPointerException
  5302. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:53.572
  5303. !MESSAGE Exception occurred during problem detection:
  5304. ----------------------------------- SOURCE BEGIN -------------------------------------
  5305. (function(){WdatePicker();})();
  5306. (function(){WdatePicker();})();
  5307. (function(){Data.get();})();
  5308. (function(){Data.set();})();
  5309. (function(){search();})();
  5310. $(function(){
  5311. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5312. getfp();
  5313. });
  5314. var Data = {
  5315. "get" : function(){
  5316. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  5317. var tip = layer.load(2);
  5318. var result="";
  5319. var url = "getgyxml.do";
  5320. $.ajax({
  5321. "url" : url,
  5322. "data" : {
  5323. "start_date" : $("#dateBegin").val(),
  5324. "end_date" : $("#dateEnd").val()
  5325. },
  5326. "type" : "POST",
  5327. "dataType" : "json",
  5328. "success" : function(data) {
  5329. if(data != null && data != ""){
  5330. if ( data.status =="success"){
  5331. getfp();
  5332. alert("获取成功!");
  5333. }else {
  5334. alert(data.status);
  5335. }
  5336. }else {
  5337. alert("获取失败!");
  5338. }
  5339. },
  5340. "complete": function(){
  5341. layer.close(tip);
  5342. }
  5343. });
  5344. }else {
  5345. alert("请选择日期!");
  5346. }
  5347. },
  5348. "set" : function(){
  5349. if ( $("#fpid option:selected").text() !=""){
  5350. var tip = layer.load(2);
  5351. var gitem = $("#form1").serialize();
  5352. var jrjc;
  5353. if ($("#jrjc").prop('checked') == true){
  5354. jrjc = $("#departmentId").val();
  5355. }else {
  5356. jrjc ='N'
  5357. }
  5358. var url = "saverk.do";
  5359. $.ajax({
  5360. "url" : url,
  5361. "data" : {
  5362. "gitem" : gitem,
  5363. "jrjc" : jrjc
  5364. },
  5365. "type" : "POST",
  5366. "dataType" : "json",
  5367. "async" : true,
  5368. "success" : function(data) {
  5369. if(data.status =="success"){
  5370. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  5371. alert("入库成功!\n入库单号:"+data.rkdh+"");
  5372. }else {
  5373. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  5374. }
  5375. window.location.reload();
  5376. }else {
  5377. alert(msg);
  5378. }
  5379. },
  5380. "error": function(){
  5381. alert("确认失败!");
  5382. },
  5383. "complete": function(){
  5384. layer.close(tip);
  5385. }
  5386. });
  5387. }else {
  5388. alert("请选择发票!");
  5389. }
  5390. }
  5391. }
  5392. function getfp(){
  5393. var tip = layer.load(2);
  5394. var url = "getgyfp.do";
  5395. $.ajax({
  5396. "url" : url,
  5397. "type" : "POST",
  5398. "dataType" : "json",
  5399. "async" : true,
  5400. "success" : function(data) {
  5401. if(data != null && data != ""){
  5402. $("#fpid").empty();
  5403. $("#fpid").append("_$tag_____________$tag____");
  5404. for(var i = 0; i < data.length; i++){
  5405. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  5406. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  5407. }
  5408. }
  5409. },
  5410. "error" : function(msg){
  5411. },
  5412. "complete": function(){
  5413. layer.close(tip);
  5414. }
  5415. });
  5416. }
  5417. $("#fpid").change(function(){
  5418. var tip = layer.load(2);
  5419. var url = "getgyrkxx.do";
  5420. var sum_total=0;
  5421. $.ajax({
  5422. "url" : url,
  5423. "data" : {
  5424. "fpId" : $("#fpid").val()
  5425. },
  5426. "type" : "POST",
  5427. "dataType" : "json",
  5428. "async" : true,
  5429. "success" : function(data) {
  5430. $("#dataTable").html("");
  5431. if(data != null && data != ""){
  5432. var html = "";
  5433. for(var i = 0; i < data.length; i++){
  5434. var ID = data[i].id == null ? "" : data[i].id;
  5435. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  5436. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  5437. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  5438. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  5439. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  5440. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  5441. var GOODS = data[i].goods == null ? "" : data[i].goods;
  5442. var NAME = data[i].name == null ? "" : data[i].name;
  5443. var SPEC = data[i].spec == null ? "" : data[i].spec;
  5444. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  5445. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  5446. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  5447. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  5448. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  5449. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  5450. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  5451. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  5452. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  5453. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  5454. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  5455. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  5456. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  5457. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  5458. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  5459. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  5460. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  5461. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  5462. sum_total = sum_total + DSUMVALUE
  5463. var invoice_type_cn =null;
  5464. if (invoice_type =="00" ){
  5465. invoice_type_cn="销售发票";
  5466. }else if (invoice_type == "01") {
  5467. invoice_type_cn="更正(对冲)发票";
  5468. }else if (invoice_type == "02") {
  5469. invoice_type_cn="其它类型发票";
  5470. }
  5471. html += "_$ta";
  5472. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  5473. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5474. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5475. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  5476. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5477. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5478. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5479. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  5480. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5481. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5482. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  5483. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  5484. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5485. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5486. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5487. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5488. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  5489. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  5490. html += "_$tag";
  5491. }
  5492. html += "_$ta";
  5493. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5494. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5495. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5496. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5497. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5498. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5499. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5500. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5501. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5502. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5503. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5504. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5505. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5506. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5507. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5508. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5509. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5510. html += "_$tag_____________$tag_合计:_$tag___$tag";
  5511. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  5512. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5513. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5514. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5515. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5516. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5517. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5518. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5519. html += "_$tag";
  5520. $("#dataTable").html(html);
  5521. }else {
  5522. $("#dataTable").html("");
  5523. }
  5524. },
  5525. "error" : function(msg){
  5526. },
  5527. "complete": function(){
  5528. layer.close(tip);
  5529. }
  5530. });
  5531. });
  5532. Date.prototype.Format = function (fmt) {
  5533. var o = {
  5534. "M+": this.getMonth() + 1, //月份
  5535. "d+": this.getDate(), //日
  5536. "h+": this.getHours(), //小时
  5537. "m+": this.getMinutes(), //分
  5538. "s+": this.getSeconds(), //秒
  5539. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  5540. "S": this.getMilliseconds() //毫秒
  5541. };
  5542. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  5543. for (var k in o)
  5544. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  5545. return fmt;
  5546. }
  5547. $("#jrjc").change(function() {
  5548. if ($("#jrjc").prop('checked') == true){
  5549. $("#departmentId").removeAttr("disabled");
  5550. }else {
  5551. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5552. }
  5553. });
  5554. ----------------------------------- SOURCE END -------------------------------------
  5555. !STACK 0
  5556. java.lang.NullPointerException
  5557. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:53.978
  5558. !MESSAGE Exception occurred during problem detection:
  5559. ----------------------------------- SOURCE BEGIN -------------------------------------
  5560. (function(){WdatePicker();})();
  5561. (function(){WdatePicker();})();
  5562. (function(){Data.get();})();
  5563. (function(){Data.set();})();
  5564. (function(){search();})();
  5565. $(function(){
  5566. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5567. getfp();
  5568. });
  5569. var Data = {
  5570. "get" : function(){
  5571. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  5572. var tip = layer.load(2);
  5573. var result="";
  5574. var url = "getgyxml.do";
  5575. $.ajax({
  5576. "url" : url,
  5577. "data" : {
  5578. "start_date" : $("#dateBegin").val(),
  5579. "end_date" : $("#dateEnd").val()
  5580. },
  5581. "type" : "POST",
  5582. "dataType" : "json",
  5583. "success" : function(data) {
  5584. if(data != null && data != ""){
  5585. if ( data.status =="success"){
  5586. getfp();
  5587. alert("获取成功!");
  5588. }else {
  5589. alert(data.status);
  5590. }
  5591. }else {
  5592. alert("获取失败!");
  5593. }
  5594. },
  5595. "complete": function(){
  5596. layer.close(tip);
  5597. }
  5598. });
  5599. }else {
  5600. alert("请选择日期!");
  5601. }
  5602. },
  5603. "set" : function(){
  5604. if ( $("#fpid option:selected").text() !=""){
  5605. var tip = layer.load(2);
  5606. var gitem = $("#form1").serialize();
  5607. var jrjc;
  5608. if ($("#jrjc").prop('checked') == true){
  5609. jrjc = $("#departmentId").val();
  5610. }else {
  5611. jrjc ='N'
  5612. }
  5613. var url = "saverk.do";
  5614. $.ajax({
  5615. "url" : url,
  5616. "data" : {
  5617. "gitem" : gitem,
  5618. "jrjc" : jrjc
  5619. },
  5620. "type" : "POST",
  5621. "dataType" : "json",
  5622. "async" : true,
  5623. "success" : function(data) {
  5624. if(data.status =="success"){
  5625. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  5626. alert("入库成功!\n入库单号:"+data.rkdh+"");
  5627. }else {
  5628. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  5629. }
  5630. window.location.reload();
  5631. }else {
  5632. alert(msg);
  5633. }
  5634. },
  5635. "error": function(){
  5636. alert("确认失败!");
  5637. },
  5638. "complete": function(){
  5639. layer.close(tip);
  5640. }
  5641. });
  5642. }else {
  5643. alert("请选择发票!");
  5644. }
  5645. }
  5646. }
  5647. function getfp(){
  5648. var tip = layer.load(2);
  5649. var url = "getgyfp.do";
  5650. $.ajax({
  5651. "url" : url,
  5652. "type" : "POST",
  5653. "dataType" : "json",
  5654. "async" : true,
  5655. "success" : function(data) {
  5656. if(data != null && data != ""){
  5657. $("#fpid").empty();
  5658. $("#fpid").append("_$tag_____________$tag____");
  5659. for(var i = 0; i < data.length; i++){
  5660. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  5661. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  5662. }
  5663. }
  5664. },
  5665. "error" : function(msg){
  5666. },
  5667. "complete": function(){
  5668. layer.close(tip);
  5669. }
  5670. });
  5671. }
  5672. $("#fpid").change(function(){
  5673. var tip = layer.load(2);
  5674. var url = "getgyrkxx.do";
  5675. var sum_total=0;
  5676. $.ajax({
  5677. "url" : url,
  5678. "data" : {
  5679. "fpId" : $("#fpid").val()
  5680. },
  5681. "type" : "POST",
  5682. "dataType" : "json",
  5683. "async" : true,
  5684. "success" : function(data) {
  5685. $("#dataTable").html("");
  5686. if(data != null && data != ""){
  5687. var html = "";
  5688. for(var i = 0; i < data.length; i++){
  5689. var ID = data[i].id == null ? "" : data[i].id;
  5690. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  5691. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  5692. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  5693. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  5694. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  5695. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  5696. var GOODS = data[i].goods == null ? "" : data[i].goods;
  5697. var NAME = data[i].name == null ? "" : data[i].name;
  5698. var SPEC = data[i].spec == null ? "" : data[i].spec;
  5699. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  5700. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  5701. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  5702. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  5703. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  5704. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  5705. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  5706. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  5707. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  5708. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  5709. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  5710. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  5711. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  5712. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  5713. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  5714. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  5715. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  5716. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  5717. sum_total = sum_total + DSUMVALUE
  5718. var invoice_type_cn =null;
  5719. if (invoice_type =="00" ){
  5720. invoice_type_cn="销售发票";
  5721. }else if (invoice_type == "01") {
  5722. invoice_type_cn="更正(对冲)发票";
  5723. }else if (invoice_type == "02") {
  5724. invoice_type_cn="其它类型发票";
  5725. }
  5726. html += "_$ta";
  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_____________$tag_____________________________________________________________________________________________________________________$tag";
  5733. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5734. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  5735. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5736. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5737. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  5738. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  5739. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5740. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5741. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5742. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5743. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  5744. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  5745. html += "_$tag";
  5746. }
  5747. html += "_$ta";
  5748. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5749. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5750. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5751. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5752. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5753. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5754. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5755. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5756. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5757. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5758. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5759. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5760. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5761. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5762. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5763. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5764. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5765. html += "_$tag_____________$tag_合计:_$tag___$tag";
  5766. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  5767. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5768. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5769. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5770. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5771. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5772. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5773. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5774. html += "_$tag";
  5775. $("#dataTable").html(html);
  5776. }else {
  5777. $("#dataTable").html("");
  5778. }
  5779. },
  5780. "error" : function(msg){
  5781. },
  5782. "complete": function(){
  5783. layer.close(tip);
  5784. }
  5785. });
  5786. });
  5787. Date.prototype.Format = function (fmt) {
  5788. var o = {
  5789. "M+": this.getMonth() + 1, //月份
  5790. "d+": this.getDate(), //日
  5791. "h+": this.getHours(), //小时
  5792. "m+": this.getMinutes(), //分
  5793. "s+": this.getSeconds(), //秒
  5794. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  5795. "S": this.getMilliseconds() //毫秒
  5796. };
  5797. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  5798. for (var k in o)
  5799. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  5800. return fmt;
  5801. }
  5802. $("#jrjc").change(function() {
  5803. if ($("#jrjc").prop('checked') == true){
  5804. $("#departmentId").removeAttr("disabled");
  5805. }else {
  5806. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5807. }
  5808. });
  5809. ----------------------------------- SOURCE END -------------------------------------
  5810. !STACK 0
  5811. java.lang.NullPointerException
  5812. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:53.979
  5813. !MESSAGE Error while processing working copy
  5814. !STACK 1
  5815. JavaScript Model Exception: java.lang.NullPointerException
  5816. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  5817. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  5818. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  5819. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  5820. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  5821. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  5822. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  5823. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  5824. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  5825. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  5826. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  5827. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  5828. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  5829. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  5830. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  5831. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  5832. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  5833. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  5834. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  5835. Caused by: java.lang.NullPointerException
  5836. Caused by: java.lang.NullPointerException
  5837. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:33:53.979
  5838. !MESSAGE java.lang.NullPointerException
  5839. !STACK 0
  5840. java.lang.NullPointerException
  5841. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:55.024
  5842. !MESSAGE Exception occurred during problem detection:
  5843. ----------------------------------- SOURCE BEGIN -------------------------------------
  5844. (function(){WdatePicker();})();
  5845. (function(){WdatePicker();})();
  5846. (function(){Data.get();})();
  5847. (function(){Data.set();})();
  5848. (function(){search();})();
  5849. $(function(){
  5850. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5851. getfp();
  5852. });
  5853. var Data = {
  5854. "get" : function(){
  5855. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  5856. var tip = layer.load(2);
  5857. var result="";
  5858. var url = "getgyxml.do";
  5859. $.ajax({
  5860. "url" : url,
  5861. "data" : {
  5862. "start_date" : $("#dateBegin").val(),
  5863. "end_date" : $("#dateEnd").val()
  5864. },
  5865. "type" : "POST",
  5866. "dataType" : "json",
  5867. "success" : function(data) {
  5868. if(data != null && data != ""){
  5869. if ( data.status =="success"){
  5870. getfp();
  5871. alert("获取成功!");
  5872. }else {
  5873. alert(data.status);
  5874. }
  5875. }else {
  5876. alert("获取失败!");
  5877. }
  5878. },
  5879. "complete": function(){
  5880. layer.close(tip);
  5881. }
  5882. });
  5883. }else {
  5884. alert("请选择日期!");
  5885. }
  5886. },
  5887. "set" : function(){
  5888. if ( $("#fpid option:selected").text() !=""){
  5889. var tip = layer.load(2);
  5890. var gitem = $("#form1").serialize();
  5891. var jrjc;
  5892. if ($("#jrjc").prop('checked') == true){
  5893. jrjc = $("#departmentId").val();
  5894. }else {
  5895. jrjc ='N'
  5896. }
  5897. var url = "saverk.do";
  5898. $.ajax({
  5899. "url" : url,
  5900. "data" : {
  5901. "gitem" : gitem,
  5902. "jrjc" : jrjc
  5903. },
  5904. "type" : "POST",
  5905. "dataType" : "json",
  5906. "async" : true,
  5907. "success" : function(data) {
  5908. if(data.status =="success"){
  5909. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  5910. alert("入库成功!\n入库单号:"+data.rkdh+"");
  5911. }else {
  5912. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  5913. }
  5914. window.location.reload();
  5915. }else {
  5916. alert(msg);
  5917. }
  5918. },
  5919. "error": function(){
  5920. alert("确认失败!");
  5921. },
  5922. "complete": function(){
  5923. layer.close(tip);
  5924. }
  5925. });
  5926. }else {
  5927. alert("请选择发票!");
  5928. }
  5929. }
  5930. }
  5931. function getfp(){
  5932. var tip = layer.load(2);
  5933. var url = "getgyfp.do";
  5934. $.ajax({
  5935. "url" : url,
  5936. "type" : "POST",
  5937. "dataType" : "json",
  5938. "async" : true,
  5939. "success" : function(data) {
  5940. if(data != null && data != ""){
  5941. $("#fpid").empty();
  5942. $("#fpid").append("_$tag_____________$tag____");
  5943. for(var i = 0; i < data.length; i++){
  5944. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  5945. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  5946. }
  5947. }
  5948. },
  5949. "error" : function(msg){
  5950. },
  5951. "complete": function(){
  5952. layer.close(tip);
  5953. }
  5954. });
  5955. }
  5956. $("#fpid").change(function(){
  5957. var tip = layer.load(2);
  5958. var url = "getgyrkxx.do";
  5959. var sum_total=0;
  5960. $.ajax({
  5961. "url" : url,
  5962. "data" : {
  5963. "fpId" : $("#fpid").val()
  5964. },
  5965. "type" : "POST",
  5966. "dataType" : "json",
  5967. "async" : true,
  5968. "success" : function(data) {
  5969. $("#dataTable").html("");
  5970. if(data != null && data != ""){
  5971. var html = "";
  5972. for(var i = 0; i < data.length; i++){
  5973. var ID = data[i].id == null ? "" : data[i].id;
  5974. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  5975. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  5976. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  5977. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  5978. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  5979. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  5980. var GOODS = data[i].goods == null ? "" : data[i].goods;
  5981. var NAME = data[i].name == null ? "" : data[i].name;
  5982. var SPEC = data[i].spec == null ? "" : data[i].spec;
  5983. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  5984. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  5985. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  5986. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  5987. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  5988. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  5989. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  5990. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  5991. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  5992. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  5993. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  5994. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  5995. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  5996. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  5997. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  5998. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  5999. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  6000. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  6001. sum_total = sum_total + DSUMVALUE
  6002. var invoice_type_cn =null;
  6003. if (invoice_type =="00" ){
  6004. invoice_type_cn="销售发票";
  6005. }else if (invoice_type == "01") {
  6006. invoice_type_cn="更正(对冲)发票";
  6007. }else if (invoice_type == "02") {
  6008. invoice_type_cn="其它类型发票";
  6009. }
  6010. html += "_$ta";
  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_____________$tag_____________________________________________________________________________________________________________________________$tag";
  6019. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6020. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6021. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  6022. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  6023. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6024. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6025. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6026. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6027. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  6028. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  6029. html += "_$tag";
  6030. }
  6031. html += "_$ta";
  6032. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6033. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6034. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6035. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6036. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6037. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6038. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6039. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6040. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6041. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6042. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6043. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6044. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6045. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6046. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6047. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6048. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6049. html += "_$tag_____________$tag_合计:_$tag___$tag";
  6050. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  6051. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6052. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6053. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6054. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6055. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6056. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6057. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6058. html += "_$tag";
  6059. $("#dataTable").html(html);
  6060. }else {
  6061. $("#dataTable").html("");
  6062. }
  6063. },
  6064. "error" : function(msg){
  6065. },
  6066. "complete": function(){
  6067. layer.close(tip);
  6068. }
  6069. });
  6070. });
  6071. Date.prototype.Format = function (fmt) {
  6072. var o = {
  6073. "M+": this.getMonth() + 1, //月份
  6074. "d+": this.getDate(), //日
  6075. "h+": this.getHours(), //小时
  6076. "m+": this.getMinutes(), //分
  6077. "s+": this.getSeconds(), //秒
  6078. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  6079. "S": this.getMilliseconds() //毫秒
  6080. };
  6081. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  6082. for (var k in o)
  6083. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  6084. return fmt;
  6085. }
  6086. $("#jrjc").change(function() {
  6087. if ($("#jrjc").prop('checked') == true){
  6088. $("#departmentId").removeAttr("disabled");
  6089. }else {
  6090. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6091. }
  6092. });
  6093. ----------------------------------- SOURCE END -------------------------------------
  6094. !STACK 0
  6095. java.lang.NullPointerException
  6096. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:55.505
  6097. !MESSAGE Exception occurred during problem detection:
  6098. ----------------------------------- SOURCE BEGIN -------------------------------------
  6099. (function(){WdatePicker();})();
  6100. (function(){WdatePicker();})();
  6101. (function(){Data.get();})();
  6102. (function(){Data.set();})();
  6103. (function(){search();})();
  6104. $(function(){
  6105. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6106. getfp();
  6107. });
  6108. var Data = {
  6109. "get" : function(){
  6110. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  6111. var tip = layer.load(2);
  6112. var result="";
  6113. var url = "getgyxml.do";
  6114. $.ajax({
  6115. "url" : url,
  6116. "data" : {
  6117. "start_date" : $("#dateBegin").val(),
  6118. "end_date" : $("#dateEnd").val()
  6119. },
  6120. "type" : "POST",
  6121. "dataType" : "json",
  6122. "success" : function(data) {
  6123. if(data != null && data != ""){
  6124. if ( data.status =="success"){
  6125. getfp();
  6126. alert("获取成功!");
  6127. }else {
  6128. alert(data.status);
  6129. }
  6130. }else {
  6131. alert("获取失败!");
  6132. }
  6133. },
  6134. "complete": function(){
  6135. layer.close(tip);
  6136. }
  6137. });
  6138. }else {
  6139. alert("请选择日期!");
  6140. }
  6141. },
  6142. "set" : function(){
  6143. if ( $("#fpid option:selected").text() !=""){
  6144. var tip = layer.load(2);
  6145. var gitem = $("#form1").serialize();
  6146. var jrjc;
  6147. if ($("#jrjc").prop('checked') == true){
  6148. jrjc = $("#departmentId").val();
  6149. }else {
  6150. jrjc ='N'
  6151. }
  6152. var url = "saverk.do";
  6153. $.ajax({
  6154. "url" : url,
  6155. "data" : {
  6156. "gitem" : gitem,
  6157. "jrjc" : jrjc
  6158. },
  6159. "type" : "POST",
  6160. "dataType" : "json",
  6161. "async" : true,
  6162. "success" : function(data) {
  6163. if(data.status =="success"){
  6164. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  6165. alert("入库成功!\n入库单号:"+data.rkdh+"");
  6166. }else {
  6167. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  6168. }
  6169. window.location.reload();
  6170. }else {
  6171. alert(msg);
  6172. }
  6173. },
  6174. "error": function(){
  6175. alert("确认失败!");
  6176. },
  6177. "complete": function(){
  6178. layer.close(tip);
  6179. }
  6180. });
  6181. }else {
  6182. alert("请选择发票!");
  6183. }
  6184. }
  6185. }
  6186. function getfp(){
  6187. var tip = layer.load(2);
  6188. var url = "getgyfp.do";
  6189. $.ajax({
  6190. "url" : url,
  6191. "type" : "POST",
  6192. "dataType" : "json",
  6193. "async" : true,
  6194. "success" : function(data) {
  6195. if(data != null && data != ""){
  6196. $("#fpid").empty();
  6197. $("#fpid").append("_$tag_____________$tag____");
  6198. for(var i = 0; i < data.length; i++){
  6199. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  6200. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  6201. }
  6202. }
  6203. },
  6204. "error" : function(msg){
  6205. },
  6206. "complete": function(){
  6207. layer.close(tip);
  6208. }
  6209. });
  6210. }
  6211. $("#fpid").change(function(){
  6212. var tip = layer.load(2);
  6213. var url = "getgyrkxx.do";
  6214. var sum_total=0;
  6215. $.ajax({
  6216. "url" : url,
  6217. "data" : {
  6218. "fpId" : $("#fpid").val()
  6219. },
  6220. "type" : "POST",
  6221. "dataType" : "json",
  6222. "async" : true,
  6223. "success" : function(data) {
  6224. $("#dataTable").html("");
  6225. if(data != null && data != ""){
  6226. var html = "";
  6227. for(var i = 0; i < data.length; i++){
  6228. var ID = data[i].id == null ? "" : data[i].id;
  6229. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  6230. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  6231. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  6232. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  6233. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  6234. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  6235. var GOODS = data[i].goods == null ? "" : data[i].goods;
  6236. var NAME = data[i].name == null ? "" : data[i].name;
  6237. var SPEC = data[i].spec == null ? "" : data[i].spec;
  6238. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  6239. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  6240. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  6241. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  6242. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  6243. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  6244. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  6245. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  6246. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  6247. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  6248. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  6249. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  6250. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  6251. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  6252. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  6253. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  6254. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  6255. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  6256. sum_total = sum_total + DSUMVALUE
  6257. var invoice_type_cn =null;
  6258. if (invoice_type =="00" ){
  6259. invoice_type_cn="销售发票";
  6260. }else if (invoice_type == "01") {
  6261. invoice_type_cn="更正(对冲)发票";
  6262. }else if (invoice_type == "02") {
  6263. invoice_type_cn="其它类型发票";
  6264. }
  6265. html += "_$ta";
  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_____________$tag____________________________________________________________________________________________________________________________$tag";
  6276. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  6277. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  6278. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6279. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6280. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6281. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6282. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  6283. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  6284. html += "_$tag";
  6285. }
  6286. html += "_$ta";
  6287. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6288. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6289. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6290. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6291. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6292. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6293. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6294. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6295. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6296. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6297. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6298. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6299. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6300. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6301. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6302. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6303. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6304. html += "_$tag_____________$tag_合计:_$tag___$tag";
  6305. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  6306. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6307. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6308. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6309. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6310. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6311. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6312. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6313. html += "_$tag";
  6314. $("#dataTable").html(html);
  6315. }else {
  6316. $("#dataTable").html("");
  6317. }
  6318. },
  6319. "error" : function(msg){
  6320. },
  6321. "complete": function(){
  6322. layer.close(tip);
  6323. }
  6324. });
  6325. });
  6326. Date.prototype.Format = function (fmt) {
  6327. var o = {
  6328. "M+": this.getMonth() + 1, //月份
  6329. "d+": this.getDate(), //日
  6330. "h+": this.getHours(), //小时
  6331. "m+": this.getMinutes(), //分
  6332. "s+": this.getSeconds(), //秒
  6333. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  6334. "S": this.getMilliseconds() //毫秒
  6335. };
  6336. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  6337. for (var k in o)
  6338. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  6339. return fmt;
  6340. }
  6341. $("#jrjc").change(function() {
  6342. if ($("#jrjc").prop('checked') == true){
  6343. $("#departmentId").removeAttr("disabled");
  6344. }else {
  6345. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6346. }
  6347. });
  6348. ----------------------------------- SOURCE END -------------------------------------
  6349. !STACK 0
  6350. java.lang.NullPointerException
  6351. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:55.506
  6352. !MESSAGE Error while processing working copy
  6353. !STACK 1
  6354. JavaScript Model Exception: java.lang.NullPointerException
  6355. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  6356. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  6357. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  6358. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  6359. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  6360. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  6361. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  6362. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  6363. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  6364. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  6365. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  6366. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  6367. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  6368. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  6369. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  6370. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  6371. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  6372. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  6373. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  6374. Caused by: java.lang.NullPointerException
  6375. Caused by: java.lang.NullPointerException
  6376. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:33:55.506
  6377. !MESSAGE java.lang.NullPointerException
  6378. !STACK 0
  6379. java.lang.NullPointerException
  6380. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:56.539
  6381. !MESSAGE Exception occurred during problem detection:
  6382. ----------------------------------- SOURCE BEGIN -------------------------------------
  6383. (function(){WdatePicker();})();
  6384. (function(){WdatePicker();})();
  6385. (function(){Data.get();})();
  6386. (function(){Data.set();})();
  6387. (function(){search();})();
  6388. $(function(){
  6389. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6390. getfp();
  6391. });
  6392. var Data = {
  6393. "get" : function(){
  6394. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  6395. var tip = layer.load(2);
  6396. var result="";
  6397. var url = "getgyxml.do";
  6398. $.ajax({
  6399. "url" : url,
  6400. "data" : {
  6401. "start_date" : $("#dateBegin").val(),
  6402. "end_date" : $("#dateEnd").val()
  6403. },
  6404. "type" : "POST",
  6405. "dataType" : "json",
  6406. "success" : function(data) {
  6407. if(data != null && data != ""){
  6408. if ( data.status =="success"){
  6409. getfp();
  6410. alert("获取成功!");
  6411. }else {
  6412. alert(data.status);
  6413. }
  6414. }else {
  6415. alert("获取失败!");
  6416. }
  6417. },
  6418. "complete": function(){
  6419. layer.close(tip);
  6420. }
  6421. });
  6422. }else {
  6423. alert("请选择日期!");
  6424. }
  6425. },
  6426. "set" : function(){
  6427. if ( $("#fpid option:selected").text() !=""){
  6428. var tip = layer.load(2);
  6429. var gitem = $("#form1").serialize();
  6430. var jrjc;
  6431. if ($("#jrjc").prop('checked') == true){
  6432. jrjc = $("#departmentId").val();
  6433. }else {
  6434. jrjc ='N'
  6435. }
  6436. var url = "saverk.do";
  6437. $.ajax({
  6438. "url" : url,
  6439. "data" : {
  6440. "gitem" : gitem,
  6441. "jrjc" : jrjc
  6442. },
  6443. "type" : "POST",
  6444. "dataType" : "json",
  6445. "async" : true,
  6446. "success" : function(data) {
  6447. if(data.status =="success"){
  6448. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  6449. alert("入库成功!\n入库单号:"+data.rkdh+"");
  6450. }else {
  6451. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  6452. }
  6453. window.location.reload();
  6454. }else {
  6455. alert(msg);
  6456. }
  6457. },
  6458. "error": function(){
  6459. alert("确认失败!");
  6460. },
  6461. "complete": function(){
  6462. layer.close(tip);
  6463. }
  6464. });
  6465. }else {
  6466. alert("请选择发票!");
  6467. }
  6468. }
  6469. }
  6470. function getfp(){
  6471. var tip = layer.load(2);
  6472. var url = "getgyfp.do";
  6473. $.ajax({
  6474. "url" : url,
  6475. "type" : "POST",
  6476. "dataType" : "json",
  6477. "async" : true,
  6478. "success" : function(data) {
  6479. if(data != null && data != ""){
  6480. $("#fpid").empty();
  6481. $("#fpid").append("_$tag_____________$tag____");
  6482. for(var i = 0; i < data.length; i++){
  6483. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  6484. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  6485. }
  6486. }
  6487. },
  6488. "error" : function(msg){
  6489. },
  6490. "complete": function(){
  6491. layer.close(tip);
  6492. }
  6493. });
  6494. }
  6495. $("#fpid").change(function(){
  6496. var tip = layer.load(2);
  6497. var url = "getgyrkxx.do";
  6498. var sum_total=0;
  6499. $.ajax({
  6500. "url" : url,
  6501. "data" : {
  6502. "fpId" : $("#fpid").val()
  6503. },
  6504. "type" : "POST",
  6505. "dataType" : "json",
  6506. "async" : true,
  6507. "success" : function(data) {
  6508. $("#dataTable").html("");
  6509. if(data != null && data != ""){
  6510. var html = "";
  6511. for(var i = 0; i < data.length; i++){
  6512. var ID = data[i].id == null ? "" : data[i].id;
  6513. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  6514. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  6515. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  6516. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  6517. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  6518. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  6519. var GOODS = data[i].goods == null ? "" : data[i].goods;
  6520. var NAME = data[i].name == null ? "" : data[i].name;
  6521. var SPEC = data[i].spec == null ? "" : data[i].spec;
  6522. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  6523. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  6524. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  6525. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  6526. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  6527. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  6528. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  6529. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  6530. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  6531. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  6532. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  6533. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  6534. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  6535. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  6536. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  6537. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  6538. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  6539. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  6540. sum_total = sum_total + DSUMVALUE
  6541. var invoice_type_cn =null;
  6542. if (invoice_type =="00" ){
  6543. invoice_type_cn="销售发票";
  6544. }else if (invoice_type == "01") {
  6545. invoice_type_cn="更正(对冲)发票";
  6546. }else if (invoice_type == "02") {
  6547. invoice_type_cn="其它类型发票";
  6548. }
  6549. html += "_$ta";
  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_____________$tag______________________________________________________________________________________________________________________________$tag";
  6565. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6566. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  6567. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  6568. html += "_$tag";
  6569. }
  6570. html += "_$ta";
  6571. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6572. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6573. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6574. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6575. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6576. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6577. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6578. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6579. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6580. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6581. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6582. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6583. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6584. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6585. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6586. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6587. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6588. html += "_$tag_____________$tag_合计:_$tag___$tag";
  6589. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  6590. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6591. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6592. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6593. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6594. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6595. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6596. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6597. html += "_$tag";
  6598. $("#dataTable").html(html);
  6599. }else {
  6600. $("#dataTable").html("");
  6601. }
  6602. },
  6603. "error" : function(msg){
  6604. },
  6605. "complete": function(){
  6606. layer.close(tip);
  6607. }
  6608. });
  6609. });
  6610. Date.prototype.Format = function (fmt) {
  6611. var o = {
  6612. "M+": this.getMonth() + 1, //月份
  6613. "d+": this.getDate(), //日
  6614. "h+": this.getHours(), //小时
  6615. "m+": this.getMinutes(), //分
  6616. "s+": this.getSeconds(), //秒
  6617. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  6618. "S": this.getMilliseconds() //毫秒
  6619. };
  6620. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  6621. for (var k in o)
  6622. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  6623. return fmt;
  6624. }
  6625. $("#jrjc").change(function() {
  6626. if ($("#jrjc").prop('checked') == true){
  6627. $("#departmentId").removeAttr("disabled");
  6628. }else {
  6629. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6630. }
  6631. });
  6632. ----------------------------------- SOURCE END -------------------------------------
  6633. !STACK 0
  6634. java.lang.NullPointerException
  6635. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:56.963
  6636. !MESSAGE Exception occurred during problem detection:
  6637. ----------------------------------- SOURCE BEGIN -------------------------------------
  6638. (function(){WdatePicker();})();
  6639. (function(){WdatePicker();})();
  6640. (function(){Data.get();})();
  6641. (function(){Data.set();})();
  6642. (function(){search();})();
  6643. $(function(){
  6644. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6645. getfp();
  6646. });
  6647. var Data = {
  6648. "get" : function(){
  6649. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  6650. var tip = layer.load(2);
  6651. var result="";
  6652. var url = "getgyxml.do";
  6653. $.ajax({
  6654. "url" : url,
  6655. "data" : {
  6656. "start_date" : $("#dateBegin").val(),
  6657. "end_date" : $("#dateEnd").val()
  6658. },
  6659. "type" : "POST",
  6660. "dataType" : "json",
  6661. "success" : function(data) {
  6662. if(data != null && data != ""){
  6663. if ( data.status =="success"){
  6664. getfp();
  6665. alert("获取成功!");
  6666. }else {
  6667. alert(data.status);
  6668. }
  6669. }else {
  6670. alert("获取失败!");
  6671. }
  6672. },
  6673. "complete": function(){
  6674. layer.close(tip);
  6675. }
  6676. });
  6677. }else {
  6678. alert("请选择日期!");
  6679. }
  6680. },
  6681. "set" : function(){
  6682. if ( $("#fpid option:selected").text() !=""){
  6683. var tip = layer.load(2);
  6684. var gitem = $("#form1").serialize();
  6685. var jrjc;
  6686. if ($("#jrjc").prop('checked') == true){
  6687. jrjc = $("#departmentId").val();
  6688. }else {
  6689. jrjc ='N'
  6690. }
  6691. var url = "saverk.do";
  6692. $.ajax({
  6693. "url" : url,
  6694. "data" : {
  6695. "gitem" : gitem,
  6696. "jrjc" : jrjc
  6697. },
  6698. "type" : "POST",
  6699. "dataType" : "json",
  6700. "async" : true,
  6701. "success" : function(data) {
  6702. if(data.status =="success"){
  6703. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  6704. alert("入库成功!\n入库单号:"+data.rkdh+"");
  6705. }else {
  6706. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  6707. }
  6708. window.location.reload();
  6709. }else {
  6710. alert(msg);
  6711. }
  6712. },
  6713. "error": function(){
  6714. alert("确认失败!");
  6715. },
  6716. "complete": function(){
  6717. layer.close(tip);
  6718. }
  6719. });
  6720. }else {
  6721. alert("请选择发票!");
  6722. }
  6723. }
  6724. }
  6725. function getfp(){
  6726. var tip = layer.load(2);
  6727. var url = "getgyfp.do";
  6728. $.ajax({
  6729. "url" : url,
  6730. "type" : "POST",
  6731. "dataType" : "json",
  6732. "async" : true,
  6733. "success" : function(data) {
  6734. if(data != null && data != ""){
  6735. $("#fpid").empty();
  6736. $("#fpid").append("_$tag_____________$tag____");
  6737. for(var i = 0; i < data.length; i++){
  6738. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  6739. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  6740. }
  6741. }
  6742. },
  6743. "error" : function(msg){
  6744. },
  6745. "complete": function(){
  6746. layer.close(tip);
  6747. }
  6748. });
  6749. }
  6750. $("#fpid").change(function(){
  6751. var tip = layer.load(2);
  6752. var url = "getgyrkxx.do";
  6753. var sum_total=0;
  6754. $.ajax({
  6755. "url" : url,
  6756. "data" : {
  6757. "fpId" : $("#fpid").val()
  6758. },
  6759. "type" : "POST",
  6760. "dataType" : "json",
  6761. "async" : true,
  6762. "success" : function(data) {
  6763. $("#dataTable").html("");
  6764. if(data != null && data != ""){
  6765. var html = "";
  6766. for(var i = 0; i < data.length; i++){
  6767. var ID = data[i].id == null ? "" : data[i].id;
  6768. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  6769. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  6770. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  6771. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  6772. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  6773. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  6774. var GOODS = data[i].goods == null ? "" : data[i].goods;
  6775. var NAME = data[i].name == null ? "" : data[i].name;
  6776. var SPEC = data[i].spec == null ? "" : data[i].spec;
  6777. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  6778. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  6779. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  6780. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  6781. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  6782. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  6783. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  6784. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  6785. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  6786. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  6787. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  6788. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  6789. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  6790. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  6791. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  6792. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  6793. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  6794. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  6795. sum_total = sum_total + DSUMVALUE
  6796. var invoice_type_cn =null;
  6797. if (invoice_type =="00" ){
  6798. invoice_type_cn="销售发票";
  6799. }else if (invoice_type == "01") {
  6800. invoice_type_cn="更正(对冲)发票";
  6801. }else if (invoice_type == "02") {
  6802. invoice_type_cn="其它类型发票";
  6803. }
  6804. html += "_$ta";
  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_____________$tag________________________________________________________________________________________________________________________________$tag";
  6822. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  6823. html += "_$tag";
  6824. }
  6825. html += "_$ta";
  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___$tag";
  6844. html += "_$tag_____________$tag_"+sum_total+"_$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_____________$tag____________________________________________________________________$tag";
  6851. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6852. html += "_$tag";
  6853. $("#dataTable").html(html);
  6854. }else {
  6855. $("#dataTable").html("");
  6856. }
  6857. },
  6858. "error" : function(msg){
  6859. },
  6860. "complete": function(){
  6861. layer.close(tip);
  6862. }
  6863. });
  6864. });
  6865. Date.prototype.Format = function (fmt) {
  6866. var o = {
  6867. "M+": this.getMonth() + 1, //月份
  6868. "d+": this.getDate(), //日
  6869. "h+": this.getHours(), //小时
  6870. "m+": this.getMinutes(), //分
  6871. "s+": this.getSeconds(), //秒
  6872. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  6873. "S": this.getMilliseconds() //毫秒
  6874. };
  6875. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  6876. for (var k in o)
  6877. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  6878. return fmt;
  6879. }
  6880. $("#jrjc").change(function() {
  6881. if ($("#jrjc").prop('checked') == true){
  6882. $("#departmentId").removeAttr("disabled");
  6883. }else {
  6884. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6885. }
  6886. });
  6887. ----------------------------------- SOURCE END -------------------------------------
  6888. !STACK 0
  6889. java.lang.NullPointerException
  6890. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:56.963
  6891. !MESSAGE Error while processing working copy
  6892. !STACK 1
  6893. JavaScript Model Exception: java.lang.NullPointerException
  6894. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  6895. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  6896. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  6897. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  6898. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  6899. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  6900. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  6901. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  6902. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  6903. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  6904. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  6905. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  6906. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  6907. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  6908. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  6909. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  6910. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  6911. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  6912. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  6913. Caused by: java.lang.NullPointerException
  6914. Caused by: java.lang.NullPointerException
  6915. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:33:56.964
  6916. !MESSAGE java.lang.NullPointerException
  6917. !STACK 0
  6918. java.lang.NullPointerException
  6919. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:57.970
  6920. !MESSAGE Exception occurred during problem detection:
  6921. ----------------------------------- SOURCE BEGIN -------------------------------------
  6922. (function(){WdatePicker();})();
  6923. (function(){WdatePicker();})();
  6924. (function(){Data.get();})();
  6925. (function(){Data.set();})();
  6926. (function(){search();})();
  6927. $(function(){
  6928. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6929. getfp();
  6930. });
  6931. var Data = {
  6932. "get" : function(){
  6933. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  6934. var tip = layer.load(2);
  6935. var result="";
  6936. var url = "getgyxml.do";
  6937. $.ajax({
  6938. "url" : url,
  6939. "data" : {
  6940. "start_date" : $("#dateBegin").val(),
  6941. "end_date" : $("#dateEnd").val()
  6942. },
  6943. "type" : "POST",
  6944. "dataType" : "json",
  6945. "success" : function(data) {
  6946. if(data != null && data != ""){
  6947. if ( data.status =="success"){
  6948. getfp();
  6949. alert("获取成功!");
  6950. }else {
  6951. alert(data.status);
  6952. }
  6953. }else {
  6954. alert("获取失败!");
  6955. }
  6956. },
  6957. "complete": function(){
  6958. layer.close(tip);
  6959. }
  6960. });
  6961. }else {
  6962. alert("请选择日期!");
  6963. }
  6964. },
  6965. "set" : function(){
  6966. if ( $("#fpid option:selected").text() !=""){
  6967. var tip = layer.load(2);
  6968. var gitem = $("#form1").serialize();
  6969. var jrjc;
  6970. if ($("#jrjc").prop('checked') == true){
  6971. jrjc = $("#departmentId").val();
  6972. }else {
  6973. jrjc ='N'
  6974. }
  6975. var url = "saverk.do";
  6976. $.ajax({
  6977. "url" : url,
  6978. "data" : {
  6979. "gitem" : gitem,
  6980. "jrjc" : jrjc
  6981. },
  6982. "type" : "POST",
  6983. "dataType" : "json",
  6984. "async" : true,
  6985. "success" : function(data) {
  6986. if(data.status =="success"){
  6987. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  6988. alert("入库成功!\n入库单号:"+data.rkdh+"");
  6989. }else {
  6990. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  6991. }
  6992. window.location.reload();
  6993. }else {
  6994. alert(msg);
  6995. }
  6996. },
  6997. "error": function(){
  6998. alert("确认失败!");
  6999. },
  7000. "complete": function(){
  7001. layer.close(tip);
  7002. }
  7003. });
  7004. }else {
  7005. alert("请选择发票!");
  7006. }
  7007. }
  7008. }
  7009. function getfp(){
  7010. var tip = layer.load(2);
  7011. var url = "getgyfp.do";
  7012. $.ajax({
  7013. "url" : url,
  7014. "type" : "POST",
  7015. "dataType" : "json",
  7016. "async" : true,
  7017. "success" : function(data) {
  7018. if(data != null && data != ""){
  7019. $("#fpid").empty();
  7020. $("#fpid").append("_$tag_____________$tag____");
  7021. for(var i = 0; i < data.length; i++){
  7022. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  7023. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  7024. }
  7025. }
  7026. },
  7027. "error" : function(msg){
  7028. },
  7029. "complete": function(){
  7030. layer.close(tip);
  7031. }
  7032. });
  7033. }
  7034. $("#fpid").change(function(){
  7035. var tip = layer.load(2);
  7036. var url = "getgyrkxx.do";
  7037. var sum_total=0;
  7038. $.ajax({
  7039. "url" : url,
  7040. "data" : {
  7041. "fpId" : $("#fpid").val()
  7042. },
  7043. "type" : "POST",
  7044. "dataType" : "json",
  7045. "async" : true,
  7046. "success" : function(data) {
  7047. $("#dataTable").html("");
  7048. if(data != null && data != ""){
  7049. var html = "";
  7050. for(var i = 0; i < data.length; i++){
  7051. var ID = data[i].id == null ? "" : data[i].id;
  7052. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  7053. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  7054. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  7055. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  7056. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  7057. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  7058. var GOODS = data[i].goods == null ? "" : data[i].goods;
  7059. var NAME = data[i].name == null ? "" : data[i].name;
  7060. var SPEC = data[i].spec == null ? "" : data[i].spec;
  7061. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  7062. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  7063. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  7064. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  7065. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  7066. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  7067. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  7068. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  7069. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  7070. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  7071. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  7072. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  7073. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  7074. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  7075. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  7076. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  7077. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  7078. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  7079. sum_total = sum_total + DSUMVALUE
  7080. var invoice_type_cn =null;
  7081. if (invoice_type =="00" ){
  7082. invoice_type_cn="销售发票";
  7083. }else if (invoice_type == "01") {
  7084. invoice_type_cn="更正(对冲)发票";
  7085. }else if (invoice_type == "02") {
  7086. invoice_type_cn="其它类型发票";
  7087. }
  7088. html += "_$ta";
  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. }
  7109. html += "_$ta";
  7110. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7111. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7112. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7113. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7114. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7115. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7116. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7117. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7118. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7119. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7120. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7121. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7122. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7123. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7124. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7125. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7126. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7127. html += "_$tag_____________$tag_合计:_$tag___$tag";
  7128. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  7129. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7130. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7131. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7132. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7133. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7134. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7135. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7136. html += "_$tag";
  7137. $("#dataTable").html(html);
  7138. }else {
  7139. $("#dataTable").html("");
  7140. }
  7141. },
  7142. "error" : function(msg){
  7143. },
  7144. "complete": function(){
  7145. layer.close(tip);
  7146. }
  7147. });
  7148. });
  7149. Date.prototype.Format = function (fmt) {
  7150. var o = {
  7151. "M+": this.getMonth() + 1, //月份
  7152. "d+": this.getDate(), //日
  7153. "h+": this.getHours(), //小时
  7154. "m+": this.getMinutes(), //分
  7155. "s+": this.getSeconds(), //秒
  7156. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  7157. "S": this.getMilliseconds() //毫秒
  7158. };
  7159. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  7160. for (var k in o)
  7161. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  7162. return fmt;
  7163. }
  7164. $("#jrjc").change(function() {
  7165. if ($("#jrjc").prop('checked') == true){
  7166. $("#departmentId").removeAttr("disabled");
  7167. }else {
  7168. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7169. }
  7170. });
  7171. ----------------------------------- SOURCE END -------------------------------------
  7172. !STACK 0
  7173. java.lang.NullPointerException
  7174. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:23.376
  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. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  7243. alert("入库成功!\n入库单号:"+data.rkdh+"");
  7244. }else {
  7245. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  7246. }
  7247. window.location.reload();
  7248. }else {
  7249. alert(msg);
  7250. }
  7251. },
  7252. "error": function(){
  7253. alert("确认失败!");
  7254. },
  7255. "complete": function(){
  7256. layer.close(tip);
  7257. }
  7258. });
  7259. }else {
  7260. alert("请选择发票!");
  7261. }
  7262. }
  7263. }
  7264. function getfp(){
  7265. var tip = layer.load(2);
  7266. var url = "getgyfp.do";
  7267. $.ajax({
  7268. "url" : url,
  7269. "type" : "POST",
  7270. "dataType" : "json",
  7271. "async" : true,
  7272. "success" : function(data) {
  7273. if(data != null && data != ""){
  7274. $("#fpid").empty();
  7275. $("#fpid").append("_$tag_____________$tag____");
  7276. for(var i = 0; i < data.length; i++){
  7277. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  7278. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  7279. }
  7280. }
  7281. },
  7282. "error" : function(msg){
  7283. },
  7284. "complete": function(){
  7285. layer.close(tip);
  7286. }
  7287. });
  7288. }
  7289. $("#fpid").change(function(){
  7290. var tip = layer.load(2);
  7291. var url = "getgyrkxx.do";
  7292. var sum_total=0;
  7293. $.ajax({
  7294. "url" : url,
  7295. "data" : {
  7296. "fpId" : $("#fpid").val()
  7297. },
  7298. "type" : "POST",
  7299. "dataType" : "json",
  7300. "async" : true,
  7301. "success" : function(data) {
  7302. $("#dataTable").html("");
  7303. if(data != null && data != ""){
  7304. var html = "";
  7305. for(var i = 0; i < data.length; i++){
  7306. var ID = data[i].id == null ? "" : data[i].id;
  7307. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  7308. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  7309. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  7310. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  7311. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  7312. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  7313. var GOODS = data[i].goods == null ? "" : data[i].goods;
  7314. var NAME = data[i].name == null ? "" : data[i].name;
  7315. var SPEC = data[i].spec == null ? "" : data[i].spec;
  7316. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  7317. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  7318. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  7319. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  7320. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  7321. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  7322. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  7323. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  7324. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  7325. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  7326. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  7327. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  7328. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  7329. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  7330. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  7331. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  7332. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  7333. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  7334. sum_total = sum_total + DSUMVALUE
  7335. var invoice_type_cn =null;
  7336. if (invoice_type =="00" ){
  7337. invoice_type_cn="销售发票";
  7338. }else if (invoice_type == "01") {
  7339. invoice_type_cn="更正(对冲)发票";
  7340. }else if (invoice_type == "02") {
  7341. invoice_type_cn="其它类型发票";
  7342. }
  7343. html += "_$ta";
  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";
  7363. }
  7364. html += "_$ta";
  7365. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7366. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7367. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7368. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7369. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7370. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7371. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7372. html += "_$tag_____________$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___$tag";
  7383. html += "_$tag_____________$tag_"+sum_total+"_$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";
  7392. $("#dataTable").html(html);
  7393. }else {
  7394. $("#dataTable").html("");
  7395. }
  7396. },
  7397. "error" : function(msg){
  7398. },
  7399. "complete": function(){
  7400. layer.close(tip);
  7401. }
  7402. });
  7403. });
  7404. Date.prototype.Format = function (fmt) {
  7405. var o = {
  7406. "M+": this.getMonth() + 1, //月份
  7407. "d+": this.getDate(), //日
  7408. "h+": this.getHours(), //小时
  7409. "m+": this.getMinutes(), //分
  7410. "s+": this.getSeconds(), //秒
  7411. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  7412. "S": this.getMilliseconds() //毫秒
  7413. };
  7414. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  7415. for (var k in o)
  7416. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  7417. return fmt;
  7418. }
  7419. $("#jrjc").change(function() {
  7420. if ($("#jrjc").prop('checked') == true){
  7421. $("#departmentId").removeAttr("disabled");
  7422. }else {
  7423. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7424. }
  7425. });
  7426. ----------------------------------- SOURCE END -------------------------------------
  7427. !STACK 0
  7428. java.lang.NullPointerException
  7429. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:23.377
  7430. !MESSAGE Error while processing working copy
  7431. !STACK 1
  7432. JavaScript Model Exception: java.lang.NullPointerException
  7433. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  7434. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  7435. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  7436. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  7437. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  7438. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  7439. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  7440. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  7441. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  7442. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  7443. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  7444. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  7445. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  7446. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  7447. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  7448. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  7449. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  7450. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  7451. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  7452. Caused by: java.lang.NullPointerException
  7453. Caused by: java.lang.NullPointerException
  7454. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:34:23.377
  7455. !MESSAGE java.lang.NullPointerException
  7456. !STACK 0
  7457. java.lang.NullPointerException
  7458. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:24.390
  7459. !MESSAGE Exception occurred during problem detection:
  7460. ----------------------------------- SOURCE BEGIN -------------------------------------
  7461. (function(){WdatePicker();})();
  7462. (function(){WdatePicker();})();
  7463. (function(){Data.get();})();
  7464. (function(){Data.set();})();
  7465. (function(){search();})();
  7466. $(function(){
  7467. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7468. getfp();
  7469. });
  7470. var Data = {
  7471. "get" : function(){
  7472. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  7473. var tip = layer.load(2);
  7474. var result="";
  7475. var url = "getgyxml.do";
  7476. $.ajax({
  7477. "url" : url,
  7478. "data" : {
  7479. "start_date" : $("#dateBegin").val(),
  7480. "end_date" : $("#dateEnd").val()
  7481. },
  7482. "type" : "POST",
  7483. "dataType" : "json",
  7484. "success" : function(data) {
  7485. if(data != null && data != ""){
  7486. if ( data.status =="success"){
  7487. getfp();
  7488. alert("获取成功!");
  7489. }else {
  7490. alert(data.status);
  7491. }
  7492. }else {
  7493. alert("获取失败!");
  7494. }
  7495. },
  7496. "complete": function(){
  7497. layer.close(tip);
  7498. }
  7499. });
  7500. }else {
  7501. alert("请选择日期!");
  7502. }
  7503. },
  7504. "set" : function(){
  7505. if ( $("#fpid option:selected").text() !=""){
  7506. var tip = layer.load(2);
  7507. var gitem = $("#form1").serialize();
  7508. var jrjc;
  7509. if ($("#jrjc").prop('checked') == true){
  7510. jrjc = $("#departmentId").val();
  7511. }else {
  7512. jrjc ='N'
  7513. }
  7514. var url = "saverk.do";
  7515. $.ajax({
  7516. "url" : url,
  7517. "data" : {
  7518. "gitem" : gitem,
  7519. "jrjc" : jrjc
  7520. },
  7521. "type" : "POST",
  7522. "dataType" : "json",
  7523. "async" : true,
  7524. "success" : function(data) {
  7525. if(data.status =="success"){
  7526. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  7527. alert("入库成功!\n入库单号:"+data.rkdh+"");
  7528. }else {
  7529. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  7530. }
  7531. window.location.reload();
  7532. }else {
  7533. alert(msg);
  7534. }
  7535. },
  7536. "error": function(){
  7537. alert("确认失败!");
  7538. },
  7539. "complete": function(){
  7540. layer.close(tip);
  7541. }
  7542. });
  7543. }else {
  7544. alert("请选择发票!");
  7545. }
  7546. }
  7547. }
  7548. function getfp(){
  7549. var tip = layer.load(2);
  7550. var url = "getgyfp.do";
  7551. $.ajax({
  7552. "url" : url,
  7553. "type" : "POST",
  7554. "dataType" : "json",
  7555. "async" : true,
  7556. "success" : function(data) {
  7557. if(data != null && data != ""){
  7558. $("#fpid").empty();
  7559. $("#fpid").append("_$tag_____________$tag____");
  7560. for(var i = 0; i < data.length; i++){
  7561. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  7562. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  7563. }
  7564. }
  7565. },
  7566. "error" : function(msg){
  7567. },
  7568. "complete": function(){
  7569. layer.close(tip);
  7570. }
  7571. });
  7572. }
  7573. $("#fpid").change(function(){
  7574. var tip = layer.load(2);
  7575. var url = "getgyrkxx.do";
  7576. var sum_total=0;
  7577. $.ajax({
  7578. "url" : url,
  7579. "data" : {
  7580. "fpId" : $("#fpid").val()
  7581. },
  7582. "type" : "POST",
  7583. "dataType" : "json",
  7584. "async" : true,
  7585. "success" : function(data) {
  7586. $("#dataTable").html("");
  7587. if(data != null && data != ""){
  7588. var html = "";
  7589. for(var i = 0; i < data.length; i++){
  7590. var ID = data[i].id == null ? "" : data[i].id;
  7591. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  7592. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  7593. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  7594. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  7595. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  7596. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  7597. var GOODS = data[i].goods == null ? "" : data[i].goods;
  7598. var NAME = data[i].name == null ? "" : data[i].name;
  7599. var SPEC = data[i].spec == null ? "" : data[i].spec;
  7600. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  7601. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  7602. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  7603. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  7604. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  7605. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  7606. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  7607. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  7608. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  7609. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  7610. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  7611. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  7612. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  7613. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  7614. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  7615. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  7616. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  7617. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  7618. sum_total = sum_total + DSUMVALUE
  7619. var invoice_type_cn =null;
  7620. if (invoice_type =="00" ){
  7621. invoice_type_cn="销售发票";
  7622. }else if (invoice_type == "01") {
  7623. invoice_type_cn="更正(对冲)发票";
  7624. }else if (invoice_type == "02") {
  7625. invoice_type_cn="其它类型发票";
  7626. }
  7627. html += "_$ta";
  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";
  7647. }
  7648. html += "_$ta";
  7649. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7650. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7651. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7652. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7653. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7654. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7655. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7656. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7657. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7658. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7659. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7660. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7661. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7662. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7663. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7664. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7665. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7666. html += "_$tag_____________$tag_合计:_$tag___$tag";
  7667. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  7668. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7669. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7670. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7671. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7672. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7673. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7674. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7675. html += "_$tag";
  7676. $("#dataTable").html(html);
  7677. }else {
  7678. $("#dataTable").html("");
  7679. }
  7680. },
  7681. "error" : function(msg){
  7682. },
  7683. "complete": function(){
  7684. layer.close(tip);
  7685. }
  7686. });
  7687. });
  7688. Date.prototype.Format = function (fmt) {
  7689. var o = {
  7690. "M+": this.getMonth() + 1, //月份
  7691. "d+": this.getDate(), //日
  7692. "h+": this.getHours(), //小时
  7693. "m+": this.getMinutes(), //分
  7694. "s+": this.getSeconds(), //秒
  7695. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  7696. "S": this.getMilliseconds() //毫秒
  7697. };
  7698. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  7699. for (var k in o)
  7700. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  7701. return fmt;
  7702. }
  7703. $("#jrjc").change(function() {
  7704. if ($("#jrjc").prop('checked') == true){
  7705. $("#departmentId").removeAttr("disabled");
  7706. }else {
  7707. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7708. }
  7709. });
  7710. ----------------------------------- SOURCE END -------------------------------------
  7711. !STACK 0
  7712. java.lang.NullPointerException
  7713. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:25.817
  7714. !MESSAGE Exception occurred during problem detection:
  7715. ----------------------------------- SOURCE BEGIN -------------------------------------
  7716. (function(){WdatePicker();})();
  7717. (function(){WdatePicker();})();
  7718. (function(){Data.get();})();
  7719. (function(){Data.set();})();
  7720. (function(){search();})();
  7721. $(function(){
  7722. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7723. getfp();
  7724. });
  7725. var Data = {
  7726. "get" : function(){
  7727. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  7728. var tip = layer.load(2);
  7729. var result="";
  7730. var url = "getgyxml.do";
  7731. $.ajax({
  7732. "url" : url,
  7733. "data" : {
  7734. "start_date" : $("#dateBegin").val(),
  7735. "end_date" : $("#dateEnd").val()
  7736. },
  7737. "type" : "POST",
  7738. "dataType" : "json",
  7739. "success" : function(data) {
  7740. if(data != null && data != ""){
  7741. if ( data.status =="success"){
  7742. getfp();
  7743. alert("获取成功!");
  7744. }else {
  7745. alert(data.status);
  7746. }
  7747. }else {
  7748. alert("获取失败!");
  7749. }
  7750. },
  7751. "complete": function(){
  7752. layer.close(tip);
  7753. }
  7754. });
  7755. }else {
  7756. alert("请选择日期!");
  7757. }
  7758. },
  7759. "set" : function(){
  7760. if ( $("#fpid option:selected").text() !=""){
  7761. var tip = layer.load(2);
  7762. var gitem = $("#form1").serialize();
  7763. var jrjc;
  7764. if ($("#jrjc").prop('checked') == true){
  7765. jrjc = $("#departmentId").val();
  7766. }else {
  7767. jrjc ='N'
  7768. }
  7769. var url = "saverk.do";
  7770. $.ajax({
  7771. "url" : url,
  7772. "data" : {
  7773. "gitem" : gitem,
  7774. "jrjc" : jrjc
  7775. },
  7776. "type" : "POST",
  7777. "dataType" : "json",
  7778. "async" : true,
  7779. "success" : function(data) {
  7780. if(data.status =="success"){
  7781. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  7782. alert("入库成功!\n入库单号:"+data.rkdh+"");
  7783. }else {
  7784. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  7785. }
  7786. window.location.reload();
  7787. }else {
  7788. alert(msg);
  7789. }
  7790. },
  7791. "error": function(){
  7792. alert("确认失败!");
  7793. },
  7794. "complete": function(){
  7795. layer.close(tip);
  7796. }
  7797. });
  7798. }else {
  7799. alert("请选择发票!");
  7800. }
  7801. }
  7802. }
  7803. function getfp(){
  7804. var tip = layer.load(2);
  7805. var url = "getgyfp.do";
  7806. $.ajax({
  7807. "url" : url,
  7808. "type" : "POST",
  7809. "dataType" : "json",
  7810. "async" : true,
  7811. "success" : function(data) {
  7812. if(data != null && data != ""){
  7813. $("#fpid").empty();
  7814. $("#fpid").append("_$tag_____________$tag____");
  7815. for(var i = 0; i < data.length; i++){
  7816. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  7817. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  7818. }
  7819. }
  7820. },
  7821. "error" : function(msg){
  7822. },
  7823. "complete": function(){
  7824. layer.close(tip);
  7825. }
  7826. });
  7827. }
  7828. $("#fpid").change(function(){
  7829. var tip = layer.load(2);
  7830. var url = "getgyrkxx.do";
  7831. var sum_total=0;
  7832. $.ajax({
  7833. "url" : url,
  7834. "data" : {
  7835. "fpId" : $("#fpid").val()
  7836. },
  7837. "type" : "POST",
  7838. "dataType" : "json",
  7839. "async" : true,
  7840. "success" : function(data) {
  7841. $("#dataTable").html("");
  7842. if(data != null && data != ""){
  7843. var html = "";
  7844. for(var i = 0; i < data.length; i++){
  7845. var ID = data[i].id == null ? "" : data[i].id;
  7846. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  7847. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  7848. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  7849. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  7850. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  7851. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  7852. var GOODS = data[i].goods == null ? "" : data[i].goods;
  7853. var NAME = data[i].name == null ? "" : data[i].name;
  7854. var SPEC = data[i].spec == null ? "" : data[i].spec;
  7855. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  7856. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  7857. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  7858. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  7859. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  7860. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  7861. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  7862. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  7863. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  7864. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  7865. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  7866. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  7867. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  7868. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  7869. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  7870. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  7871. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  7872. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  7873. sum_total = sum_total + DSUMVALUE
  7874. var invoice_type_cn =null;
  7875. if (invoice_type =="00" ){
  7876. invoice_type_cn="销售发票";
  7877. }else if (invoice_type == "01") {
  7878. invoice_type_cn="更正(对冲)发票";
  7879. }else if (invoice_type == "02") {
  7880. invoice_type_cn="其它类型发票";
  7881. }
  7882. html += "_$ta";
  7883. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7884. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7885. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  7886. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7887. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  7888. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  7889. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  7890. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7891. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7892. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  7893. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  7894. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7895. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7896. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7897. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7898. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  7899. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  7900. html += "_$tag";
  7901. }
  7902. html += "_$ta";
  7903. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7904. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7905. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7906. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7907. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7908. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7909. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7910. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7911. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7912. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7913. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7914. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7915. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7916. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7917. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7918. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7919. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7920. html += "_$tag_____________$tag_合计:_$tag___$tag";
  7921. html += "_$tag_____________$tag_"+sum_total+"_$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";
  7930. $("#dataTable").html(html);
  7931. }else {
  7932. $("#dataTable").html("");
  7933. }
  7934. },
  7935. "error" : function(msg){
  7936. },
  7937. "complete": function(){
  7938. layer.close(tip);
  7939. }
  7940. });
  7941. });
  7942. Date.prototype.Format = function (fmt) {
  7943. var o = {
  7944. "M+": this.getMonth() + 1, //月份
  7945. "d+": this.getDate(), //日
  7946. "h+": this.getHours(), //小时
  7947. "m+": this.getMinutes(), //分
  7948. "s+": this.getSeconds(), //秒
  7949. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  7950. "S": this.getMilliseconds() //毫秒
  7951. };
  7952. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  7953. for (var k in o)
  7954. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  7955. return fmt;
  7956. }
  7957. $("#jrjc").change(function() {
  7958. if ($("#jrjc").prop('checked') == true){
  7959. $("#departmentId").removeAttr("disabled");
  7960. }else {
  7961. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7962. }
  7963. });
  7964. ----------------------------------- SOURCE END -------------------------------------
  7965. !STACK 0
  7966. java.lang.NullPointerException
  7967. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-07-23 09:34:25.817
  7968. !MESSAGE java.lang.NullPointerException
  7969. !STACK 1
  7970. JavaScript Model Exception: java.lang.NullPointerException
  7971. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  7972. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  7973. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  7974. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  7975. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  7976. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  7977. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  7978. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  7979. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  7980. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  7981. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  7982. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  7983. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  7984. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  7985. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  7986. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  7987. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  7988. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  7989. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  7990. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  7991. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  7992. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  7993. Caused by: java.lang.NullPointerException
  7994. Caused by: java.lang.NullPointerException
  7995. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:34:25.817
  7996. !MESSAGE java.lang.NullPointerException
  7997. !STACK 0
  7998. java.lang.NullPointerException
  7999. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:26.693
  8000. !MESSAGE Exception occurred during problem detection:
  8001. ----------------------------------- SOURCE BEGIN -------------------------------------
  8002. (function(){WdatePicker();})();
  8003. (function(){WdatePicker();})();
  8004. (function(){Data.get();})();
  8005. (function(){Data.set();})();
  8006. (function(){search();})();
  8007. $(function(){
  8008. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8009. getfp();
  8010. });
  8011. var Data = {
  8012. "get" : function(){
  8013. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  8014. var tip = layer.load(2);
  8015. var result="";
  8016. var url = "getgyxml.do";
  8017. $.ajax({
  8018. "url" : url,
  8019. "data" : {
  8020. "start_date" : $("#dateBegin").val(),
  8021. "end_date" : $("#dateEnd").val()
  8022. },
  8023. "type" : "POST",
  8024. "dataType" : "json",
  8025. "success" : function(data) {
  8026. if(data != null && data != ""){
  8027. if ( data.status =="success"){
  8028. getfp();
  8029. alert("获取成功!");
  8030. }else {
  8031. alert(data.status);
  8032. }
  8033. }else {
  8034. alert("获取失败!");
  8035. }
  8036. },
  8037. "complete": function(){
  8038. layer.close(tip);
  8039. }
  8040. });
  8041. }else {
  8042. alert("请选择日期!");
  8043. }
  8044. },
  8045. "set" : function(){
  8046. if ( $("#fpid option:selected").text() !=""){
  8047. var tip = layer.load(2);
  8048. var gitem = $("#form1").serialize();
  8049. var jrjc;
  8050. if ($("#jrjc").prop('checked') == true){
  8051. jrjc = $("#departmentId").val();
  8052. }else {
  8053. jrjc ='N'
  8054. }
  8055. var url = "saverk.do";
  8056. $.ajax({
  8057. "url" : url,
  8058. "data" : {
  8059. "gitem" : gitem,
  8060. "jrjc" : jrjc
  8061. },
  8062. "type" : "POST",
  8063. "dataType" : "json",
  8064. "async" : true,
  8065. "success" : function(data) {
  8066. if(data.status =="success"){
  8067. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  8068. alert("入库成功!\n入库单号:"+data.rkdh+"");
  8069. }else {
  8070. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  8071. }
  8072. window.location.reload();
  8073. }else {
  8074. alert(msg);
  8075. }
  8076. },
  8077. "error": function(){
  8078. alert("确认失败!");
  8079. },
  8080. "complete": function(){
  8081. layer.close(tip);
  8082. }
  8083. });
  8084. }else {
  8085. alert("请选择发票!");
  8086. }
  8087. }
  8088. }
  8089. function getfp(){
  8090. var tip = layer.load(2);
  8091. var url = "getgyfp.do";
  8092. $.ajax({
  8093. "url" : url,
  8094. "type" : "POST",
  8095. "dataType" : "json",
  8096. "async" : true,
  8097. "success" : function(data) {
  8098. if(data != null && data != ""){
  8099. $("#fpid").empty();
  8100. $("#fpid").append("_$tag_____________$tag____");
  8101. for(var i = 0; i < data.length; i++){
  8102. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  8103. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  8104. }
  8105. }
  8106. },
  8107. "error" : function(msg){
  8108. },
  8109. "complete": function(){
  8110. layer.close(tip);
  8111. }
  8112. });
  8113. }
  8114. $("#fpid").change(function(){
  8115. var tip = layer.load(2);
  8116. var url = "getgyrkxx.do";
  8117. var sum_total=0;
  8118. $.ajax({
  8119. "url" : url,
  8120. "data" : {
  8121. "fpId" : $("#fpid").val()
  8122. },
  8123. "type" : "POST",
  8124. "dataType" : "json",
  8125. "async" : true,
  8126. "success" : function(data) {
  8127. $("#dataTable").html("");
  8128. if(data != null && data != ""){
  8129. var html = "";
  8130. for(var i = 0; i < data.length; i++){
  8131. var ID = data[i].id == null ? "" : data[i].id;
  8132. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  8133. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  8134. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  8135. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  8136. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  8137. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  8138. var GOODS = data[i].goods == null ? "" : data[i].goods;
  8139. var NAME = data[i].name == null ? "" : data[i].name;
  8140. var SPEC = data[i].spec == null ? "" : data[i].spec;
  8141. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  8142. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  8143. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  8144. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  8145. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  8146. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  8147. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  8148. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  8149. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  8150. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  8151. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  8152. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  8153. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  8154. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  8155. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  8156. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  8157. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  8158. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  8159. sum_total = sum_total + DSUMVALUE
  8160. var invoice_type_cn =null;
  8161. if (invoice_type =="00" ){
  8162. invoice_type_cn="销售发票";
  8163. }else if (invoice_type == "01") {
  8164. invoice_type_cn="更正(对冲)发票";
  8165. }else if (invoice_type == "02") {
  8166. invoice_type_cn="其它类型发票";
  8167. }
  8168. html += "_$ta";
  8169. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8170. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8171. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  8172. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8173. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8174. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8175. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  8176. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8177. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8178. html += "_$tag_____________$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";
  8187. }
  8188. html += "_$ta";
  8189. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8190. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8191. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8192. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8193. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8194. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8195. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8196. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8197. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8198. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8199. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8200. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8201. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8202. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8203. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8204. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8205. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8206. html += "_$tag_____________$tag_合计:_$tag___$tag";
  8207. html += "_$tag_____________$tag_"+sum_total+"_$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";
  8216. $("#dataTable").html(html);
  8217. }else {
  8218. $("#dataTable").html("");
  8219. }
  8220. },
  8221. "error" : function(msg){
  8222. },
  8223. "complete": function(){
  8224. layer.close(tip);
  8225. }
  8226. });
  8227. });
  8228. Date.prototype.Format = function (fmt) {
  8229. var o = {
  8230. "M+": this.getMonth() + 1, //月份
  8231. "d+": this.getDate(), //日
  8232. "h+": this.getHours(), //小时
  8233. "m+": this.getMinutes(), //分
  8234. "s+": this.getSeconds(), //秒
  8235. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  8236. "S": this.getMilliseconds() //毫秒
  8237. };
  8238. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  8239. for (var k in o)
  8240. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  8241. return fmt;
  8242. }
  8243. $("#jrjc").change(function() {
  8244. if ($("#jrjc").prop('checked') == true){
  8245. $("#departmentId").removeAttr("disabled");
  8246. }else {
  8247. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8248. }
  8249. });
  8250. ----------------------------------- SOURCE END -------------------------------------
  8251. !STACK 0
  8252. java.lang.NullPointerException
  8253. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:26.693
  8254. !MESSAGE Error while processing working copy
  8255. !STACK 1
  8256. JavaScript Model Exception: java.lang.NullPointerException
  8257. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  8258. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  8259. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  8260. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  8261. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  8262. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  8263. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  8264. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  8265. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  8266. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  8267. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  8268. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  8269. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  8270. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  8271. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  8272. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  8273. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  8274. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  8275. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  8276. Caused by: java.lang.NullPointerException
  8277. Caused by: java.lang.NullPointerException
  8278. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:34:26.693
  8279. !MESSAGE java.lang.NullPointerException
  8280. !STACK 0
  8281. java.lang.NullPointerException
  8282. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:27.317
  8283. !MESSAGE Exception occurred during problem detection:
  8284. ----------------------------------- SOURCE BEGIN -------------------------------------
  8285. (function(){WdatePicker();})();
  8286. (function(){WdatePicker();})();
  8287. (function(){Data.get();})();
  8288. (function(){Data.set();})();
  8289. (function(){search();})();
  8290. $(function(){
  8291. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8292. getfp();
  8293. });
  8294. var Data = {
  8295. "get" : function(){
  8296. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  8297. var tip = layer.load(2);
  8298. var result="";
  8299. var url = "getgyxml.do";
  8300. $.ajax({
  8301. "url" : url,
  8302. "data" : {
  8303. "start_date" : $("#dateBegin").val(),
  8304. "end_date" : $("#dateEnd").val()
  8305. },
  8306. "type" : "POST",
  8307. "dataType" : "json",
  8308. "success" : function(data) {
  8309. if(data != null && data != ""){
  8310. if ( data.status =="success"){
  8311. getfp();
  8312. alert("获取成功!");
  8313. }else {
  8314. alert(data.status);
  8315. }
  8316. }else {
  8317. alert("获取失败!");
  8318. }
  8319. },
  8320. "complete": function(){
  8321. layer.close(tip);
  8322. }
  8323. });
  8324. }else {
  8325. alert("请选择日期!");
  8326. }
  8327. },
  8328. "set" : function(){
  8329. if ( $("#fpid option:selected").text() !=""){
  8330. var tip = layer.load(2);
  8331. var gitem = $("#form1").serialize();
  8332. var jrjc;
  8333. if ($("#jrjc").prop('checked') == true){
  8334. jrjc = $("#departmentId").val();
  8335. }else {
  8336. jrjc ='N'
  8337. }
  8338. var url = "saverk.do";
  8339. $.ajax({
  8340. "url" : url,
  8341. "data" : {
  8342. "gitem" : gitem,
  8343. "jrjc" : jrjc
  8344. },
  8345. "type" : "POST",
  8346. "dataType" : "json",
  8347. "async" : true,
  8348. "success" : function(data) {
  8349. if(data.status =="success"){
  8350. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  8351. alert("入库成功!\n入库单号:"+data.rkdh+"");
  8352. }else {
  8353. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  8354. }
  8355. window.location.reload();
  8356. }else {
  8357. alert(msg);
  8358. }
  8359. },
  8360. "error": function(){
  8361. alert("确认失败!");
  8362. },
  8363. "complete": function(){
  8364. layer.close(tip);
  8365. }
  8366. });
  8367. }else {
  8368. alert("请选择发票!");
  8369. }
  8370. }
  8371. }
  8372. function getfp(){
  8373. var tip = layer.load(2);
  8374. var url = "getgyfp.do";
  8375. $.ajax({
  8376. "url" : url,
  8377. "type" : "POST",
  8378. "dataType" : "json",
  8379. "async" : true,
  8380. "success" : function(data) {
  8381. if(data != null && data != ""){
  8382. $("#fpid").empty();
  8383. $("#fpid").append("_$tag_____________$tag____");
  8384. for(var i = 0; i < data.length; i++){
  8385. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  8386. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  8387. }
  8388. }
  8389. },
  8390. "error" : function(msg){
  8391. },
  8392. "complete": function(){
  8393. layer.close(tip);
  8394. }
  8395. });
  8396. }
  8397. $("#fpid").change(function(){
  8398. var tip = layer.load(2);
  8399. var url = "getgyrkxx.do";
  8400. var sum_total=0;
  8401. $.ajax({
  8402. "url" : url,
  8403. "data" : {
  8404. "fpId" : $("#fpid").val()
  8405. },
  8406. "type" : "POST",
  8407. "dataType" : "json",
  8408. "async" : true,
  8409. "success" : function(data) {
  8410. $("#dataTable").html("");
  8411. if(data != null && data != ""){
  8412. var html = "";
  8413. for(var i = 0; i < data.length; i++){
  8414. var ID = data[i].id == null ? "" : data[i].id;
  8415. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  8416. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  8417. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  8418. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  8419. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  8420. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  8421. var GOODS = data[i].goods == null ? "" : data[i].goods;
  8422. var NAME = data[i].name == null ? "" : data[i].name;
  8423. var SPEC = data[i].spec == null ? "" : data[i].spec;
  8424. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  8425. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  8426. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  8427. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  8428. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  8429. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  8430. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  8431. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  8432. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  8433. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  8434. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  8435. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  8436. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  8437. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  8438. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  8439. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  8440. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  8441. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  8442. sum_total = sum_total + DSUMVALUE
  8443. var invoice_type_cn =null;
  8444. if (invoice_type =="00" ){
  8445. invoice_type_cn="销售发票";
  8446. }else if (invoice_type == "01") {
  8447. invoice_type_cn="更正(对冲)发票";
  8448. }else if (invoice_type == "02") {
  8449. invoice_type_cn="其它类型发票";
  8450. }
  8451. html += "_$ta";
  8452. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8453. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8454. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  8455. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8456. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8457. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8458. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  8459. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8460. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8461. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  8462. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  8463. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8464. html += "_$tag_____________$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";
  8470. }
  8471. html += "_$ta";
  8472. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8473. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8474. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8475. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8476. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8477. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8478. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8479. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8480. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8481. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8482. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8483. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8484. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8485. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8486. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8487. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8488. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8489. html += "_$tag_____________$tag_合计:_$tag___$tag";
  8490. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  8491. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8492. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8493. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8494. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8495. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8496. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8497. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8498. html += "_$tag";
  8499. $("#dataTable").html(html);
  8500. }else {
  8501. $("#dataTable").html("");
  8502. }
  8503. },
  8504. "error" : function(msg){
  8505. },
  8506. "complete": function(){
  8507. layer.close(tip);
  8508. }
  8509. });
  8510. });
  8511. Date.prototype.Format = function (fmt) {
  8512. var o = {
  8513. "M+": this.getMonth() + 1, //月份
  8514. "d+": this.getDate(), //日
  8515. "h+": this.getHours(), //小时
  8516. "m+": this.getMinutes(), //分
  8517. "s+": this.getSeconds(), //秒
  8518. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  8519. "S": this.getMilliseconds() //毫秒
  8520. };
  8521. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  8522. for (var k in o)
  8523. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  8524. return fmt;
  8525. }
  8526. $("#jrjc").change(function() {
  8527. if ($("#jrjc").prop('checked') == true){
  8528. $("#departmentId").removeAttr("disabled");
  8529. }else {
  8530. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8531. }
  8532. });
  8533. ----------------------------------- SOURCE END -------------------------------------
  8534. !STACK 0
  8535. java.lang.NullPointerException
  8536. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:29.998
  8537. !MESSAGE Exception occurred during problem detection:
  8538. ----------------------------------- SOURCE BEGIN -------------------------------------
  8539. (function(){WdatePicker();})();
  8540. (function(){WdatePicker();})();
  8541. (function(){Data.get();})();
  8542. (function(){Data.set();})();
  8543. (function(){search();})();
  8544. $(function(){
  8545. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8546. getfp();
  8547. });
  8548. var Data = {
  8549. "get" : function(){
  8550. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  8551. var tip = layer.load(2);
  8552. var result="";
  8553. var url = "getgyxml.do";
  8554. $.ajax({
  8555. "url" : url,
  8556. "data" : {
  8557. "start_date" : $("#dateBegin").val(),
  8558. "end_date" : $("#dateEnd").val()
  8559. },
  8560. "type" : "POST",
  8561. "dataType" : "json",
  8562. "success" : function(data) {
  8563. if(data != null && data != ""){
  8564. if ( data.status =="success"){
  8565. getfp();
  8566. alert("获取成功!");
  8567. }else {
  8568. alert(data.status);
  8569. }
  8570. }else {
  8571. alert("获取失败!");
  8572. }
  8573. },
  8574. "complete": function(){
  8575. layer.close(tip);
  8576. }
  8577. });
  8578. }else {
  8579. alert("请选择日期!");
  8580. }
  8581. },
  8582. "set" : function(){
  8583. if ( $("#fpid option:selected").text() !=""){
  8584. var tip = layer.load(2);
  8585. var gitem = $("#form1").serialize();
  8586. var jrjc;
  8587. if ($("#jrjc").prop('checked') == true){
  8588. jrjc = $("#departmentId").val();
  8589. }else {
  8590. jrjc ='N'
  8591. }
  8592. var url = "saverk.do";
  8593. $.ajax({
  8594. "url" : url,
  8595. "data" : {
  8596. "gitem" : gitem,
  8597. "jrjc" : jrjc
  8598. },
  8599. "type" : "POST",
  8600. "dataType" : "json",
  8601. "async" : true,
  8602. "success" : function(data) {
  8603. if(data.status =="success"){
  8604. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  8605. alert("入库成功!\n入库单号:"+data.rkdh+"");
  8606. }else {
  8607. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  8608. }
  8609. window.location.reload();
  8610. }else {
  8611. alert(msg);
  8612. }
  8613. },
  8614. "error": function(){
  8615. alert("确认失败!");
  8616. },
  8617. "complete": function(){
  8618. layer.close(tip);
  8619. }
  8620. });
  8621. }else {
  8622. alert("请选择发票!");
  8623. }
  8624. }
  8625. }
  8626. function getfp(){
  8627. var tip = layer.load(2);
  8628. var url = "getgyfp.do";
  8629. $.ajax({
  8630. "url" : url,
  8631. "type" : "POST",
  8632. "dataType" : "json",
  8633. "async" : true,
  8634. "success" : function(data) {
  8635. if(data != null && data != ""){
  8636. $("#fpid").empty();
  8637. $("#fpid").append("_$tag_____________$tag____");
  8638. for(var i = 0; i < data.length; i++){
  8639. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  8640. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  8641. }
  8642. }
  8643. },
  8644. "error" : function(msg){
  8645. },
  8646. "complete": function(){
  8647. layer.close(tip);
  8648. }
  8649. });
  8650. }
  8651. $("#fpid").change(function(){
  8652. var tip = layer.load(2);
  8653. var url = "getgyrkxx.do";
  8654. var sum_total=0;
  8655. $.ajax({
  8656. "url" : url,
  8657. "data" : {
  8658. "fpId" : $("#fpid").val()
  8659. },
  8660. "type" : "POST",
  8661. "dataType" : "json",
  8662. "async" : true,
  8663. "success" : function(data) {
  8664. $("#dataTable").html("");
  8665. if(data != null && data != ""){
  8666. var html = "";
  8667. for(var i = 0; i < data.length; i++){
  8668. var ID = data[i].id == null ? "" : data[i].id;
  8669. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  8670. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  8671. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  8672. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  8673. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  8674. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  8675. var GOODS = data[i].goods == null ? "" : data[i].goods;
  8676. var NAME = data[i].name == null ? "" : data[i].name;
  8677. var SPEC = data[i].spec == null ? "" : data[i].spec;
  8678. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  8679. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  8680. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  8681. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  8682. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  8683. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  8684. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  8685. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  8686. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  8687. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  8688. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  8689. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  8690. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  8691. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  8692. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  8693. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  8694. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  8695. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  8696. sum_total = sum_total + DSUMVALUE
  8697. var invoice_type_cn =null;
  8698. if (invoice_type =="00" ){
  8699. invoice_type_cn="销售发票";
  8700. }else if (invoice_type == "01") {
  8701. invoice_type_cn="更正(对冲)发票";
  8702. }else if (invoice_type == "02") {
  8703. invoice_type_cn="其它类型发票";
  8704. }
  8705. html += "_$ta";
  8706. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8707. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8708. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  8709. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8710. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8711. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8712. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  8713. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8714. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8715. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  8716. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  8717. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8718. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8719. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8720. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8721. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  8722. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  8723. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  8724. html += "_$tag";
  8725. }
  8726. html += "_$ta";
  8727. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8728. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8729. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8730. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8731. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8732. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8733. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8734. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8735. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8736. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8737. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8738. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8739. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8740. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8741. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8742. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8743. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8744. html += "_$tag_____________$tag_合计:_$tag___$tag";
  8745. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  8746. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8747. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8748. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8749. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8750. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8751. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8752. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8753. html += "_$tag";
  8754. $("#dataTable").html(html);
  8755. }else {
  8756. $("#dataTable").html("");
  8757. }
  8758. },
  8759. "error" : function(msg){
  8760. },
  8761. "complete": function(){
  8762. layer.close(tip);
  8763. }
  8764. });
  8765. });
  8766. Date.prototype.Format = function (fmt) {
  8767. var o = {
  8768. "M+": this.getMonth() + 1, //月份
  8769. "d+": this.getDate(), //日
  8770. "h+": this.getHours(), //小时
  8771. "m+": this.getMinutes(), //分
  8772. "s+": this.getSeconds(), //秒
  8773. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  8774. "S": this.getMilliseconds() //毫秒
  8775. };
  8776. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  8777. for (var k in o)
  8778. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  8779. return fmt;
  8780. }
  8781. $("#jrjc").change(function() {
  8782. if ($("#jrjc").prop('checked') == true){
  8783. $("#departmentId").removeAttr("disabled");
  8784. }else {
  8785. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8786. }
  8787. });
  8788. ----------------------------------- SOURCE END -------------------------------------
  8789. !STACK 0
  8790. java.lang.NullPointerException
  8791. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-07-23 09:34:29.998
  8792. !MESSAGE java.lang.NullPointerException
  8793. !STACK 1
  8794. JavaScript Model Exception: java.lang.NullPointerException
  8795. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  8796. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  8797. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  8798. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  8799. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  8800. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  8801. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  8802. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  8803. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  8804. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  8805. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  8806. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  8807. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  8808. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  8809. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  8810. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  8811. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  8812. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  8813. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  8814. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  8815. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  8816. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  8817. Caused by: java.lang.NullPointerException
  8818. Caused by: java.lang.NullPointerException
  8819. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:34:29.999
  8820. !MESSAGE java.lang.NullPointerException
  8821. !STACK 0
  8822. java.lang.NullPointerException
  8823. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:32.878
  8824. !MESSAGE Exception occurred during problem detection:
  8825. ----------------------------------- SOURCE BEGIN -------------------------------------
  8826. (function(){WdatePicker();})();
  8827. (function(){WdatePicker();})();
  8828. (function(){Data.get();})();
  8829. (function(){Data.set();})();
  8830. (function(){search();})();
  8831. $(function(){
  8832. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8833. getfp();
  8834. });
  8835. var Data = {
  8836. "get" : function(){
  8837. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  8838. var tip = layer.load(2);
  8839. var result="";
  8840. var url = "getgyxml.do";
  8841. $.ajax({
  8842. "url" : url,
  8843. "data" : {
  8844. "start_date" : $("#dateBegin").val(),
  8845. "end_date" : $("#dateEnd").val()
  8846. },
  8847. "type" : "POST",
  8848. "dataType" : "json",
  8849. "success" : function(data) {
  8850. if(data != null && data != ""){
  8851. if ( data.status =="success"){
  8852. getfp();
  8853. alert("获取成功!");
  8854. }else {
  8855. alert(data.status);
  8856. }
  8857. }else {
  8858. alert("获取失败!");
  8859. }
  8860. },
  8861. "complete": function(){
  8862. layer.close(tip);
  8863. }
  8864. });
  8865. }else {
  8866. alert("请选择日期!");
  8867. }
  8868. },
  8869. "set" : function(){
  8870. if ( $("#fpid option:selected").text() !=""){
  8871. var tip = layer.load(2);
  8872. var gitem = $("#form1").serialize();
  8873. var jrjc;
  8874. if ($("#jrjc").prop('checked') == true){
  8875. jrjc = $("#departmentId").val();
  8876. }else {
  8877. jrjc ='N'
  8878. }
  8879. var url = "saverk.do";
  8880. $.ajax({
  8881. "url" : url,
  8882. "data" : {
  8883. "gitem" : gitem,
  8884. "jrjc" : jrjc
  8885. },
  8886. "type" : "POST",
  8887. "dataType" : "json",
  8888. "async" : true,
  8889. "success" : function(data) {
  8890. if(data.status =="success"){
  8891. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  8892. alert("入库成功!\n入库单号:"+data.rkdh+"");
  8893. }else {
  8894. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  8895. }
  8896. window.location.reload();
  8897. }else {
  8898. alert(msg);
  8899. }
  8900. },
  8901. "error": function(){
  8902. alert("确认失败!");
  8903. },
  8904. "complete": function(){
  8905. layer.close(tip);
  8906. }
  8907. });
  8908. }else {
  8909. alert("请选择发票!");
  8910. }
  8911. }
  8912. }
  8913. function getfp(){
  8914. var tip = layer.load(2);
  8915. var url = "getgyfp.do";
  8916. $.ajax({
  8917. "url" : url,
  8918. "type" : "POST",
  8919. "dataType" : "json",
  8920. "async" : true,
  8921. "success" : function(data) {
  8922. if(data != null && data != ""){
  8923. $("#fpid").empty();
  8924. $("#fpid").append("_$tag_____________$tag____");
  8925. for(var i = 0; i < data.length; i++){
  8926. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  8927. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  8928. }
  8929. }
  8930. },
  8931. "error" : function(msg){
  8932. },
  8933. "complete": function(){
  8934. layer.close(tip);
  8935. }
  8936. });
  8937. }
  8938. $("#fpid").change(function(){
  8939. var tip = layer.load(2);
  8940. var url = "getgyrkxx.do";
  8941. var sum_total=0;
  8942. $.ajax({
  8943. "url" : url,
  8944. "data" : {
  8945. "fpId" : $("#fpid").val()
  8946. },
  8947. "type" : "POST",
  8948. "dataType" : "json",
  8949. "async" : true,
  8950. "success" : function(data) {
  8951. $("#dataTable").html("");
  8952. if(data != null && data != ""){
  8953. var html = "";
  8954. for(var i = 0; i < data.length; i++){
  8955. var ID = data[i].id == null ? "" : data[i].id;
  8956. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  8957. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  8958. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  8959. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  8960. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  8961. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  8962. var GOODS = data[i].goods == null ? "" : data[i].goods;
  8963. var NAME = data[i].name == null ? "" : data[i].name;
  8964. var SPEC = data[i].spec == null ? "" : data[i].spec;
  8965. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  8966. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  8967. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  8968. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  8969. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  8970. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  8971. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  8972. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  8973. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  8974. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  8975. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  8976. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  8977. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  8978. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  8979. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  8980. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  8981. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  8982. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  8983. sum_total = sum_total + DSUMVALUE
  8984. var invoice_type_cn =null;
  8985. if (invoice_type =="00" ){
  8986. invoice_type_cn="销售发票";
  8987. }else if (invoice_type == "01") {
  8988. invoice_type_cn="更正(对冲)发票";
  8989. }else if (invoice_type == "02") {
  8990. invoice_type_cn="其它类型发票";
  8991. }
  8992. html += "_$ta";
  8993. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8994. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8995. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  8996. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8997. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8998. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8999. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  9000. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9001. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9002. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  9003. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  9004. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9005. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9006. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9007. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9008. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  9009. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  9010. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  9011. html += "_$tag";
  9012. }
  9013. html += "_$ta";
  9014. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9015. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9016. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9017. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9018. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9019. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9020. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9021. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9022. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9023. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9024. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9025. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9026. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9027. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9028. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9029. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9030. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9031. html += "_$tag_____________$tag_合计:_$tag___$tag";
  9032. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  9033. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9034. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9035. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9036. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9037. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9038. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9039. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9040. html += "_$tag";
  9041. $("#dataTable").html(html);
  9042. }else {
  9043. $("#dataTable").html("");
  9044. }
  9045. },
  9046. "error" : function(msg){
  9047. },
  9048. "complete": function(){
  9049. layer.close(tip);
  9050. }
  9051. });
  9052. });
  9053. Date.prototype.Format = function (fmt) {
  9054. var o = {
  9055. "M+": this.getMonth() + 1, //月份
  9056. "d+": this.getDate(), //日
  9057. "h+": this.getHours(), //小时
  9058. "m+": this.getMinutes(), //分
  9059. "s+": this.getSeconds(), //秒
  9060. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  9061. "S": this.getMilliseconds() //毫秒
  9062. };
  9063. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  9064. for (var k in o)
  9065. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  9066. return fmt;
  9067. }
  9068. $("#jrjc").change(function() {
  9069. if ($("#jrjc").prop('checked') == true){
  9070. $("#departmentId").removeAttr("disabled");
  9071. }else {
  9072. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9073. }
  9074. });
  9075. ----------------------------------- SOURCE END -------------------------------------
  9076. !STACK 0
  9077. java.lang.NullPointerException
  9078. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:32.878
  9079. !MESSAGE Error while processing working copy
  9080. !STACK 1
  9081. JavaScript Model Exception: java.lang.NullPointerException
  9082. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  9083. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  9084. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  9085. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  9086. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  9087. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  9088. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  9089. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  9090. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  9091. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  9092. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  9093. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  9094. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  9095. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  9096. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  9097. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  9098. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  9099. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  9100. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  9101. Caused by: java.lang.NullPointerException
  9102. Caused by: java.lang.NullPointerException
  9103. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:34:32.878
  9104. !MESSAGE java.lang.NullPointerException
  9105. !STACK 0
  9106. java.lang.NullPointerException
  9107. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:33.507
  9108. !MESSAGE Exception occurred during problem detection:
  9109. ----------------------------------- SOURCE BEGIN -------------------------------------
  9110. (function(){WdatePicker();})();
  9111. (function(){WdatePicker();})();
  9112. (function(){Data.get();})();
  9113. (function(){Data.set();})();
  9114. (function(){search();})();
  9115. $(function(){
  9116. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9117. getfp();
  9118. });
  9119. var Data = {
  9120. "get" : function(){
  9121. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  9122. var tip = layer.load(2);
  9123. var result="";
  9124. var url = "getgyxml.do";
  9125. $.ajax({
  9126. "url" : url,
  9127. "data" : {
  9128. "start_date" : $("#dateBegin").val(),
  9129. "end_date" : $("#dateEnd").val()
  9130. },
  9131. "type" : "POST",
  9132. "dataType" : "json",
  9133. "success" : function(data) {
  9134. if(data != null && data != ""){
  9135. if ( data.status =="success"){
  9136. getfp();
  9137. alert("获取成功!");
  9138. }else {
  9139. alert(data.status);
  9140. }
  9141. }else {
  9142. alert("获取失败!");
  9143. }
  9144. },
  9145. "complete": function(){
  9146. layer.close(tip);
  9147. }
  9148. });
  9149. }else {
  9150. alert("请选择日期!");
  9151. }
  9152. },
  9153. "set" : function(){
  9154. if ( $("#fpid option:selected").text() !=""){
  9155. var tip = layer.load(2);
  9156. var gitem = $("#form1").serialize();
  9157. var jrjc;
  9158. if ($("#jrjc").prop('checked') == true){
  9159. jrjc = $("#departmentId").val();
  9160. }else {
  9161. jrjc ='N'
  9162. }
  9163. var url = "saverk.do";
  9164. $.ajax({
  9165. "url" : url,
  9166. "data" : {
  9167. "gitem" : gitem,
  9168. "jrjc" : jrjc
  9169. },
  9170. "type" : "POST",
  9171. "dataType" : "json",
  9172. "async" : true,
  9173. "success" : function(data) {
  9174. if(data.status =="success"){
  9175. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  9176. alert("入库成功!\n入库单号:"+data.rkdh+"");
  9177. }else {
  9178. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  9179. }
  9180. window.location.reload();
  9181. }else {
  9182. alert(msg);
  9183. }
  9184. },
  9185. "error": function(){
  9186. alert("确认失败!");
  9187. },
  9188. "complete": function(){
  9189. layer.close(tip);
  9190. }
  9191. });
  9192. }else {
  9193. alert("请选择发票!");
  9194. }
  9195. }
  9196. }
  9197. function getfp(){
  9198. var tip = layer.load(2);
  9199. var url = "getgyfp.do";
  9200. $.ajax({
  9201. "url" : url,
  9202. "type" : "POST",
  9203. "dataType" : "json",
  9204. "async" : true,
  9205. "success" : function(data) {
  9206. if(data != null && data != ""){
  9207. $("#fpid").empty();
  9208. $("#fpid").append("_$tag_____________$tag____");
  9209. for(var i = 0; i < data.length; i++){
  9210. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  9211. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  9212. }
  9213. }
  9214. },
  9215. "error" : function(msg){
  9216. },
  9217. "complete": function(){
  9218. layer.close(tip);
  9219. }
  9220. });
  9221. }
  9222. $("#fpid").change(function(){
  9223. var tip = layer.load(2);
  9224. var url = "getgyrkxx.do";
  9225. var sum_total=0;
  9226. $.ajax({
  9227. "url" : url,
  9228. "data" : {
  9229. "fpId" : $("#fpid").val()
  9230. },
  9231. "type" : "POST",
  9232. "dataType" : "json",
  9233. "async" : true,
  9234. "success" : function(data) {
  9235. $("#dataTable").html("");
  9236. if(data != null && data != ""){
  9237. var html = "";
  9238. for(var i = 0; i < data.length; i++){
  9239. var ID = data[i].id == null ? "" : data[i].id;
  9240. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  9241. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  9242. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  9243. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  9244. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  9245. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  9246. var GOODS = data[i].goods == null ? "" : data[i].goods;
  9247. var NAME = data[i].name == null ? "" : data[i].name;
  9248. var SPEC = data[i].spec == null ? "" : data[i].spec;
  9249. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  9250. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  9251. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  9252. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  9253. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  9254. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  9255. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  9256. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  9257. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  9258. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  9259. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  9260. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  9261. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  9262. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  9263. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  9264. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  9265. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  9266. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  9267. sum_total = sum_total + DSUMVALUE
  9268. var invoice_type_cn =null;
  9269. if (invoice_type =="00" ){
  9270. invoice_type_cn="销售发票";
  9271. }else if (invoice_type == "01") {
  9272. invoice_type_cn="更正(对冲)发票";
  9273. }else if (invoice_type == "02") {
  9274. invoice_type_cn="其它类型发票";
  9275. }
  9276. html += "_$ta";
  9277. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9278. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9279. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  9280. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9281. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9282. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9283. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  9284. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9285. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9286. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  9287. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  9288. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9289. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9290. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9291. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9292. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  9293. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  9294. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  9295. html += "_$tag";
  9296. }
  9297. html += "_$ta";
  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___$tag";
  9316. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  9317. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9318. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9319. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9320. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9321. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9322. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9323. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9324. html += "_$tag";
  9325. $("#dataTable").html(html);
  9326. }else {
  9327. $("#dataTable").html("");
  9328. }
  9329. },
  9330. "error" : function(msg){
  9331. },
  9332. "complete": function(){
  9333. layer.close(tip);
  9334. }
  9335. });
  9336. });
  9337. Date.prototype.Format = function (fmt) {
  9338. var o = {
  9339. "M+": this.getMonth() + 1, //月份
  9340. "d+": this.getDate(), //日
  9341. "h+": this.getHours(), //小时
  9342. "m+": this.getMinutes(), //分
  9343. "s+": this.getSeconds(), //秒
  9344. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  9345. "S": this.getMilliseconds() //毫秒
  9346. };
  9347. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  9348. for (var k in o)
  9349. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  9350. return fmt;
  9351. }
  9352. $("#jrjc").change(function() {
  9353. if ($("#jrjc").prop('checked') == true){
  9354. $("#departmentId").removeAttr("disabled");
  9355. }else {
  9356. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9357. }
  9358. });
  9359. ----------------------------------- SOURCE END -------------------------------------
  9360. !STACK 0
  9361. java.lang.NullPointerException
  9362. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:35.417
  9363. !MESSAGE Exception occurred during problem detection:
  9364. ----------------------------------- SOURCE BEGIN -------------------------------------
  9365. (function(){WdatePicker();})();
  9366. (function(){WdatePicker();})();
  9367. (function(){Data.get();})();
  9368. (function(){Data.set();})();
  9369. (function(){search();})();
  9370. $(function(){
  9371. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9372. getfp();
  9373. });
  9374. var Data = {
  9375. "get" : function(){
  9376. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  9377. var tip = layer.load(2);
  9378. var result="";
  9379. var url = "getgyxml.do";
  9380. $.ajax({
  9381. "url" : url,
  9382. "data" : {
  9383. "start_date" : $("#dateBegin").val(),
  9384. "end_date" : $("#dateEnd").val()
  9385. },
  9386. "type" : "POST",
  9387. "dataType" : "json",
  9388. "success" : function(data) {
  9389. if(data != null && data != ""){
  9390. if ( data.status =="success"){
  9391. getfp();
  9392. alert("获取成功!");
  9393. }else {
  9394. alert(data.status);
  9395. }
  9396. }else {
  9397. alert("获取失败!");
  9398. }
  9399. },
  9400. "complete": function(){
  9401. layer.close(tip);
  9402. }
  9403. });
  9404. }else {
  9405. alert("请选择日期!");
  9406. }
  9407. },
  9408. "set" : function(){
  9409. if ( $("#fpid option:selected").text() !=""){
  9410. var tip = layer.load(2);
  9411. var gitem = $("#form1").serialize();
  9412. var jrjc;
  9413. if ($("#jrjc").prop('checked') == true){
  9414. jrjc = $("#departmentId").val();
  9415. }else {
  9416. jrjc ='N'
  9417. }
  9418. var url = "saverk.do";
  9419. $.ajax({
  9420. "url" : url,
  9421. "data" : {
  9422. "gitem" : gitem,
  9423. "jrjc" : jrjc
  9424. },
  9425. "type" : "POST",
  9426. "dataType" : "json",
  9427. "async" : true,
  9428. "success" : function(data) {
  9429. if(data.status =="success"){
  9430. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  9431. alert("入库成功!\n入库单号:"+data.rkdh+"");
  9432. }else {
  9433. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  9434. }
  9435. window.location.reload();
  9436. }else {
  9437. alert(msg);
  9438. }
  9439. },
  9440. "error": function(){
  9441. alert("确认失败!");
  9442. },
  9443. "complete": function(){
  9444. layer.close(tip);
  9445. }
  9446. });
  9447. }else {
  9448. alert("请选择发票!");
  9449. }
  9450. }
  9451. }
  9452. function getfp(){
  9453. var tip = layer.load(2);
  9454. var url = "getgyfp.do";
  9455. $.ajax({
  9456. "url" : url,
  9457. "type" : "POST",
  9458. "dataType" : "json",
  9459. "async" : true,
  9460. "success" : function(data) {
  9461. if(data != null && data != ""){
  9462. $("#fpid").empty();
  9463. $("#fpid").append("_$tag_____________$tag____");
  9464. for(var i = 0; i < data.length; i++){
  9465. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  9466. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  9467. }
  9468. }
  9469. },
  9470. "error" : function(msg){
  9471. },
  9472. "complete": function(){
  9473. layer.close(tip);
  9474. }
  9475. });
  9476. }
  9477. $("#fpid").change(function(){
  9478. var tip = layer.load(2);
  9479. var url = "getgyrkxx.do";
  9480. var sum_total=0;
  9481. $.ajax({
  9482. "url" : url,
  9483. "data" : {
  9484. "fpId" : $("#fpid").val()
  9485. },
  9486. "type" : "POST",
  9487. "dataType" : "json",
  9488. "async" : true,
  9489. "success" : function(data) {
  9490. $("#dataTable").html("");
  9491. if(data != null && data != ""){
  9492. var html = "";
  9493. for(var i = 0; i < data.length; i++){
  9494. var ID = data[i].id == null ? "" : data[i].id;
  9495. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  9496. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  9497. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  9498. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  9499. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  9500. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  9501. var GOODS = data[i].goods == null ? "" : data[i].goods;
  9502. var NAME = data[i].name == null ? "" : data[i].name;
  9503. var SPEC = data[i].spec == null ? "" : data[i].spec;
  9504. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  9505. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  9506. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  9507. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  9508. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  9509. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  9510. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  9511. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  9512. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  9513. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  9514. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  9515. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  9516. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  9517. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  9518. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  9519. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  9520. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  9521. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  9522. sum_total = sum_total + DSUMVALUE
  9523. var invoice_type_cn =null;
  9524. if (invoice_type =="00" ){
  9525. invoice_type_cn="销售发票";
  9526. }else if (invoice_type == "01") {
  9527. invoice_type_cn="更正(对冲)发票";
  9528. }else if (invoice_type == "02") {
  9529. invoice_type_cn="其它类型发票";
  9530. }
  9531. html += "_$ta";
  9532. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9533. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9534. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  9535. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9536. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9537. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9538. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  9539. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9540. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9541. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  9542. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  9543. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9544. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9545. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9546. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9547. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  9548. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  9549. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  9550. html += "_$tag";
  9551. }
  9552. html += "_$ta";
  9553. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9554. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9555. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9556. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9557. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9558. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9559. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9560. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9561. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9562. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9563. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9564. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9565. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9566. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9567. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9568. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9569. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9570. html += "_$tag_____________$tag_合计:_$tag___$tag";
  9571. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  9572. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9573. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9574. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9575. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9576. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9577. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9578. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9579. html += "_$tag";
  9580. $("#dataTable").html(html);
  9581. }else {
  9582. $("#dataTable").html("");
  9583. }
  9584. },
  9585. "error" : function(msg){
  9586. },
  9587. "complete": function(){
  9588. layer.close(tip);
  9589. }
  9590. });
  9591. });
  9592. Date.prototype.Format = function (fmt) {
  9593. var o = {
  9594. "M+": this.getMonth() + 1, //月份
  9595. "d+": this.getDate(), //日
  9596. "h+": this.getHours(), //小时
  9597. "m+": this.getMinutes(), //分
  9598. "s+": this.getSeconds(), //秒
  9599. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  9600. "S": this.getMilliseconds() //毫秒
  9601. };
  9602. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  9603. for (var k in o)
  9604. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  9605. return fmt;
  9606. }
  9607. $("#jrjc").change(function() {
  9608. if ($("#jrjc").prop('checked') == true){
  9609. $("#departmentId").removeAttr("disabled");
  9610. }else {
  9611. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9612. }
  9613. });
  9614. ----------------------------------- SOURCE END -------------------------------------
  9615. !STACK 0
  9616. java.lang.NullPointerException
  9617. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:35.417
  9618. !MESSAGE Error while processing working copy
  9619. !STACK 1
  9620. JavaScript Model Exception: java.lang.NullPointerException
  9621. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  9622. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  9623. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  9624. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  9625. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  9626. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  9627. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  9628. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  9629. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  9630. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  9631. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  9632. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  9633. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  9634. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  9635. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  9636. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  9637. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  9638. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  9639. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  9640. Caused by: java.lang.NullPointerException
  9641. Caused by: java.lang.NullPointerException
  9642. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:34:35.417
  9643. !MESSAGE java.lang.NullPointerException
  9644. !STACK 0
  9645. java.lang.NullPointerException
  9646. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:36.057
  9647. !MESSAGE Exception occurred during problem detection:
  9648. ----------------------------------- SOURCE BEGIN -------------------------------------
  9649. (function(){WdatePicker();})();
  9650. (function(){WdatePicker();})();
  9651. (function(){Data.get();})();
  9652. (function(){Data.set();})();
  9653. (function(){search();})();
  9654. $(function(){
  9655. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9656. getfp();
  9657. });
  9658. var Data = {
  9659. "get" : function(){
  9660. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  9661. var tip = layer.load(2);
  9662. var result="";
  9663. var url = "getgyxml.do";
  9664. $.ajax({
  9665. "url" : url,
  9666. "data" : {
  9667. "start_date" : $("#dateBegin").val(),
  9668. "end_date" : $("#dateEnd").val()
  9669. },
  9670. "type" : "POST",
  9671. "dataType" : "json",
  9672. "success" : function(data) {
  9673. if(data != null && data != ""){
  9674. if ( data.status =="success"){
  9675. getfp();
  9676. alert("获取成功!");
  9677. }else {
  9678. alert(data.status);
  9679. }
  9680. }else {
  9681. alert("获取失败!");
  9682. }
  9683. },
  9684. "complete": function(){
  9685. layer.close(tip);
  9686. }
  9687. });
  9688. }else {
  9689. alert("请选择日期!");
  9690. }
  9691. },
  9692. "set" : function(){
  9693. if ( $("#fpid option:selected").text() !=""){
  9694. var tip = layer.load(2);
  9695. var gitem = $("#form1").serialize();
  9696. var jrjc;
  9697. if ($("#jrjc").prop('checked') == true){
  9698. jrjc = $("#departmentId").val();
  9699. }else {
  9700. jrjc ='N'
  9701. }
  9702. var url = "saverk.do";
  9703. $.ajax({
  9704. "url" : url,
  9705. "data" : {
  9706. "gitem" : gitem,
  9707. "jrjc" : jrjc
  9708. },
  9709. "type" : "POST",
  9710. "dataType" : "json",
  9711. "async" : true,
  9712. "success" : function(data) {
  9713. if(data.status =="success"){
  9714. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  9715. alert("入库成功!\n入库单号:"+data.rkdh+"");
  9716. }else {
  9717. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  9718. }
  9719. window.location.reload();
  9720. }else {
  9721. alert(msg);
  9722. }
  9723. },
  9724. "error": function(){
  9725. alert("确认失败!");
  9726. },
  9727. "complete": function(){
  9728. layer.close(tip);
  9729. }
  9730. });
  9731. }else {
  9732. alert("请选择发票!");
  9733. }
  9734. }
  9735. }
  9736. function getfp(){
  9737. var tip = layer.load(2);
  9738. var url = "getgyfp.do";
  9739. $.ajax({
  9740. "url" : url,
  9741. "type" : "POST",
  9742. "dataType" : "json",
  9743. "async" : true,
  9744. "success" : function(data) {
  9745. if(data != null && data != ""){
  9746. $("#fpid").empty();
  9747. $("#fpid").append("_$tag_____________$tag____");
  9748. for(var i = 0; i < data.length; i++){
  9749. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  9750. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  9751. }
  9752. }
  9753. },
  9754. "error" : function(msg){
  9755. },
  9756. "complete": function(){
  9757. layer.close(tip);
  9758. }
  9759. });
  9760. }
  9761. $("#fpid").change(function(){
  9762. var tip = layer.load(2);
  9763. var url = "getgyrkxx.do";
  9764. var sum_total=0;
  9765. $.ajax({
  9766. "url" : url,
  9767. "data" : {
  9768. "fpId" : $("#fpid").val()
  9769. },
  9770. "type" : "POST",
  9771. "dataType" : "json",
  9772. "async" : true,
  9773. "success" : function(data) {
  9774. $("#dataTable").html("");
  9775. if(data != null && data != ""){
  9776. var html = "";
  9777. for(var i = 0; i < data.length; i++){
  9778. var ID = data[i].id == null ? "" : data[i].id;
  9779. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  9780. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  9781. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  9782. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  9783. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  9784. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  9785. var GOODS = data[i].goods == null ? "" : data[i].goods;
  9786. var NAME = data[i].name == null ? "" : data[i].name;
  9787. var SPEC = data[i].spec == null ? "" : data[i].spec;
  9788. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  9789. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  9790. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  9791. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  9792. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  9793. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  9794. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  9795. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  9796. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  9797. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  9798. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  9799. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  9800. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  9801. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  9802. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  9803. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  9804. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  9805. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  9806. sum_total = sum_total + DSUMVALUE
  9807. var invoice_type_cn =null;
  9808. if (invoice_type =="00" ){
  9809. invoice_type_cn="销售发票";
  9810. }else if (invoice_type == "01") {
  9811. invoice_type_cn="更正(对冲)发票";
  9812. }else if (invoice_type == "02") {
  9813. invoice_type_cn="其它类型发票";
  9814. }
  9815. html += "_$ta";
  9816. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9817. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9818. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  9819. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9820. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9821. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9822. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  9823. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9824. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9825. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  9826. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  9827. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9828. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9829. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9830. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9831. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  9832. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  9833. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  9834. html += "_$tag";
  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___$tag";
  9855. html += "_$tag_____________$tag_"+sum_total+"_$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. $("#dataTable").html(html);
  9865. }else {
  9866. $("#dataTable").html("");
  9867. }
  9868. },
  9869. "error" : function(msg){
  9870. },
  9871. "complete": function(){
  9872. layer.close(tip);
  9873. }
  9874. });
  9875. });
  9876. Date.prototype.Format = function (fmt) {
  9877. var o = {
  9878. "M+": this.getMonth() + 1, //月份
  9879. "d+": this.getDate(), //日
  9880. "h+": this.getHours(), //小时
  9881. "m+": this.getMinutes(), //分
  9882. "s+": this.getSeconds(), //秒
  9883. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  9884. "S": this.getMilliseconds() //毫秒
  9885. };
  9886. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  9887. for (var k in o)
  9888. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  9889. return fmt;
  9890. }
  9891. $("#jrjc").change(function() {
  9892. if ($("#jrjc").prop('checked') == true){
  9893. $("#departmentId").removeAttr("disabled");
  9894. }else {
  9895. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9896. }
  9897. });
  9898. ----------------------------------- SOURCE END -------------------------------------
  9899. !STACK 0
  9900. java.lang.NullPointerException
  9901. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:37.427
  9902. !MESSAGE Exception occurred during problem detection:
  9903. ----------------------------------- SOURCE BEGIN -------------------------------------
  9904. (function(){WdatePicker();})();
  9905. (function(){WdatePicker();})();
  9906. (function(){Data.get();})();
  9907. (function(){Data.set();})();
  9908. (function(){search();})();
  9909. $(function(){
  9910. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9911. getfp();
  9912. });
  9913. var Data = {
  9914. "get" : function(){
  9915. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  9916. var tip = layer.load(2);
  9917. var result="";
  9918. var url = "getgyxml.do";
  9919. $.ajax({
  9920. "url" : url,
  9921. "data" : {
  9922. "start_date" : $("#dateBegin").val(),
  9923. "end_date" : $("#dateEnd").val()
  9924. },
  9925. "type" : "POST",
  9926. "dataType" : "json",
  9927. "success" : function(data) {
  9928. if(data != null && data != ""){
  9929. if ( data.status =="success"){
  9930. getfp();
  9931. alert("获取成功!");
  9932. }else {
  9933. alert(data.status);
  9934. }
  9935. }else {
  9936. alert("获取失败!");
  9937. }
  9938. },
  9939. "complete": function(){
  9940. layer.close(tip);
  9941. }
  9942. });
  9943. }else {
  9944. alert("请选择日期!");
  9945. }
  9946. },
  9947. "set" : function(){
  9948. if ( $("#fpid option:selected").text() !=""){
  9949. var tip = layer.load(2);
  9950. var gitem = $("#form1").serialize();
  9951. var jrjc;
  9952. if ($("#jrjc").prop('checked') == true){
  9953. jrjc = $("#departmentId").val();
  9954. }else {
  9955. jrjc ='N'
  9956. }
  9957. var url = "saverk.do";
  9958. $.ajax({
  9959. "url" : url,
  9960. "data" : {
  9961. "gitem" : gitem,
  9962. "jrjc" : jrjc
  9963. },
  9964. "type" : "POST",
  9965. "dataType" : "json",
  9966. "async" : true,
  9967. "success" : function(data) {
  9968. if(data.status =="success"){
  9969. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  9970. alert("入库成功!\n入库单号:"+data.rkdh+"");
  9971. }else {
  9972. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  9973. }
  9974. window.location.reload();
  9975. }else {
  9976. alert(msg);
  9977. }
  9978. },
  9979. "error": function(){
  9980. alert("确认失败!");
  9981. },
  9982. "complete": function(){
  9983. layer.close(tip);
  9984. }
  9985. });
  9986. }else {
  9987. alert("请选择发票!");
  9988. }
  9989. }
  9990. }
  9991. function getfp(){
  9992. var tip = layer.load(2);
  9993. var url = "getgyfp.do";
  9994. $.ajax({
  9995. "url" : url,
  9996. "type" : "POST",
  9997. "dataType" : "json",
  9998. "async" : true,
  9999. "success" : function(data) {
  10000. if(data != null && data != ""){
  10001. $("#fpid").empty();
  10002. $("#fpid").append("_$tag_____________$tag____");
  10003. for(var i = 0; i < data.length; i++){
  10004. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  10005. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  10006. }
  10007. }
  10008. },
  10009. "error" : function(msg){
  10010. },
  10011. "complete": function(){
  10012. layer.close(tip);
  10013. }
  10014. });
  10015. }
  10016. $("#fpid").change(function(){
  10017. var tip = layer.load(2);
  10018. var url = "getgyrkxx.do";
  10019. var sum_total=0;
  10020. $.ajax({
  10021. "url" : url,
  10022. "data" : {
  10023. "fpId" : $("#fpid").val()
  10024. },
  10025. "type" : "POST",
  10026. "dataType" : "json",
  10027. "async" : true,
  10028. "success" : function(data) {
  10029. $("#dataTable").html("");
  10030. if(data != null && data != ""){
  10031. var html = "";
  10032. for(var i = 0; i < data.length; i++){
  10033. var ID = data[i].id == null ? "" : data[i].id;
  10034. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  10035. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  10036. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  10037. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  10038. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  10039. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  10040. var GOODS = data[i].goods == null ? "" : data[i].goods;
  10041. var NAME = data[i].name == null ? "" : data[i].name;
  10042. var SPEC = data[i].spec == null ? "" : data[i].spec;
  10043. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  10044. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  10045. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  10046. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  10047. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  10048. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  10049. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  10050. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  10051. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  10052. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  10053. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  10054. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  10055. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  10056. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  10057. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  10058. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  10059. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  10060. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  10061. sum_total = sum_total + DSUMVALUE
  10062. var invoice_type_cn =null;
  10063. if (invoice_type =="00" ){
  10064. invoice_type_cn="销售发票";
  10065. }else if (invoice_type == "01") {
  10066. invoice_type_cn="更正(对冲)发票";
  10067. }else if (invoice_type == "02") {
  10068. invoice_type_cn="其它类型发票";
  10069. }
  10070. html += "_$ta";
  10071. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10072. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10073. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  10074. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10075. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10076. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10077. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  10078. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10079. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10080. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  10081. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  10082. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10083. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10084. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10085. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10086. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  10087. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  10088. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  10089. html += "_$tag";
  10090. }
  10091. html += "_$ta";
  10092. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10093. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10094. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10095. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10096. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10097. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10098. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10099. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10100. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10101. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10102. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10103. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10104. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10105. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10106. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10107. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10108. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10109. html += "_$tag_____________$tag_合计:_$tag___$tag";
  10110. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  10111. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10112. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10113. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10114. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10115. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10116. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10117. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10118. html += "_$tag";
  10119. $("#dataTable").html(html);
  10120. }else {
  10121. $("#dataTable").html("");
  10122. }
  10123. },
  10124. "error" : function(msg){
  10125. },
  10126. "complete": function(){
  10127. layer.close(tip);
  10128. }
  10129. });
  10130. });
  10131. Date.prototype.Format = function (fmt) {
  10132. var o = {
  10133. "M+": this.getMonth() + 1, //月份
  10134. "d+": this.getDate(), //日
  10135. "h+": this.getHours(), //小时
  10136. "m+": this.getMinutes(), //分
  10137. "s+": this.getSeconds(), //秒
  10138. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  10139. "S": this.getMilliseconds() //毫秒
  10140. };
  10141. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  10142. for (var k in o)
  10143. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  10144. return fmt;
  10145. }
  10146. $("#jrjc").change(function() {
  10147. if ($("#jrjc").prop('checked') == true){
  10148. $("#departmentId").removeAttr("disabled");
  10149. }else {
  10150. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10151. }
  10152. });
  10153. ----------------------------------- SOURCE END -------------------------------------
  10154. !STACK 0
  10155. java.lang.NullPointerException
  10156. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:37.428
  10157. !MESSAGE Error while processing working copy
  10158. !STACK 1
  10159. JavaScript Model Exception: java.lang.NullPointerException
  10160. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  10161. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  10162. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  10163. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  10164. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  10165. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  10166. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  10167. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  10168. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  10169. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  10170. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  10171. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  10172. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  10173. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  10174. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  10175. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  10176. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  10177. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  10178. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  10179. Caused by: java.lang.NullPointerException
  10180. Caused by: java.lang.NullPointerException
  10181. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:34:37.428
  10182. !MESSAGE java.lang.NullPointerException
  10183. !STACK 0
  10184. java.lang.NullPointerException
  10185. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:38.345
  10186. !MESSAGE Exception occurred during problem detection:
  10187. ----------------------------------- SOURCE BEGIN -------------------------------------
  10188. (function(){WdatePicker();})();
  10189. (function(){WdatePicker();})();
  10190. (function(){Data.get();})();
  10191. (function(){Data.set();})();
  10192. (function(){search();})();
  10193. $(function(){
  10194. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10195. getfp();
  10196. });
  10197. var Data = {
  10198. "get" : function(){
  10199. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  10200. var tip = layer.load(2);
  10201. var result="";
  10202. var url = "getgyxml.do";
  10203. $.ajax({
  10204. "url" : url,
  10205. "data" : {
  10206. "start_date" : $("#dateBegin").val(),
  10207. "end_date" : $("#dateEnd").val()
  10208. },
  10209. "type" : "POST",
  10210. "dataType" : "json",
  10211. "success" : function(data) {
  10212. if(data != null && data != ""){
  10213. if ( data.status =="success"){
  10214. getfp();
  10215. alert("获取成功!");
  10216. }else {
  10217. alert(data.status);
  10218. }
  10219. }else {
  10220. alert("获取失败!");
  10221. }
  10222. },
  10223. "complete": function(){
  10224. layer.close(tip);
  10225. }
  10226. });
  10227. }else {
  10228. alert("请选择日期!");
  10229. }
  10230. },
  10231. "set" : function(){
  10232. if ( $("#fpid option:selected").text() !=""){
  10233. var tip = layer.load(2);
  10234. var gitem = $("#form1").serialize();
  10235. var jrjc;
  10236. if ($("#jrjc").prop('checked') == true){
  10237. jrjc = $("#departmentId").val();
  10238. }else {
  10239. jrjc ='N'
  10240. }
  10241. var url = "saverk.do";
  10242. $.ajax({
  10243. "url" : url,
  10244. "data" : {
  10245. "gitem" : gitem,
  10246. "jrjc" : jrjc
  10247. },
  10248. "type" : "POST",
  10249. "dataType" : "json",
  10250. "async" : true,
  10251. "success" : function(data) {
  10252. if(data.status =="success"){
  10253. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  10254. alert("入库成功!\n入库单号:"+data.rkdh+"");
  10255. }else {
  10256. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  10257. }
  10258. window.location.reload();
  10259. }else {
  10260. alert(msg);
  10261. }
  10262. },
  10263. "error": function(){
  10264. alert("确认失败!");
  10265. },
  10266. "complete": function(){
  10267. layer.close(tip);
  10268. }
  10269. });
  10270. }else {
  10271. alert("请选择发票!");
  10272. }
  10273. }
  10274. }
  10275. function getfp(){
  10276. var tip = layer.load(2);
  10277. var url = "getgyfp.do";
  10278. $.ajax({
  10279. "url" : url,
  10280. "type" : "POST",
  10281. "dataType" : "json",
  10282. "async" : true,
  10283. "success" : function(data) {
  10284. if(data != null && data != ""){
  10285. $("#fpid").empty();
  10286. $("#fpid").append("_$tag_____________$tag____");
  10287. for(var i = 0; i < data.length; i++){
  10288. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  10289. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  10290. }
  10291. }
  10292. },
  10293. "error" : function(msg){
  10294. },
  10295. "complete": function(){
  10296. layer.close(tip);
  10297. }
  10298. });
  10299. }
  10300. $("#fpid").change(function(){
  10301. var tip = layer.load(2);
  10302. var url = "getgyrkxx.do";
  10303. var sum_total=0;
  10304. $.ajax({
  10305. "url" : url,
  10306. "data" : {
  10307. "fpId" : $("#fpid").val()
  10308. },
  10309. "type" : "POST",
  10310. "dataType" : "json",
  10311. "async" : true,
  10312. "success" : function(data) {
  10313. $("#dataTable").html("");
  10314. if(data != null && data != ""){
  10315. var html = "";
  10316. for(var i = 0; i < data.length; i++){
  10317. var ID = data[i].id == null ? "" : data[i].id;
  10318. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  10319. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  10320. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  10321. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  10322. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  10323. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  10324. var GOODS = data[i].goods == null ? "" : data[i].goods;
  10325. var NAME = data[i].name == null ? "" : data[i].name;
  10326. var SPEC = data[i].spec == null ? "" : data[i].spec;
  10327. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  10328. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  10329. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  10330. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  10331. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  10332. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  10333. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  10334. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  10335. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  10336. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  10337. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  10338. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  10339. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  10340. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  10341. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  10342. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  10343. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  10344. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  10345. sum_total = sum_total + DSUMVALUE
  10346. var invoice_type_cn =null;
  10347. if (invoice_type =="00" ){
  10348. invoice_type_cn="销售发票";
  10349. }else if (invoice_type == "01") {
  10350. invoice_type_cn="更正(对冲)发票";
  10351. }else if (invoice_type == "02") {
  10352. invoice_type_cn="其它类型发票";
  10353. }
  10354. html += "_$ta";
  10355. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10356. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10357. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  10358. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10359. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10360. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10361. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  10362. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10363. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10364. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  10365. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  10366. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10367. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10368. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10369. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10370. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  10371. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  10372. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  10373. html += "_$tag";
  10374. }
  10375. html += "_$ta";
  10376. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10377. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10378. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10379. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10380. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10381. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10382. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10383. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10384. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10385. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10386. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10387. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10388. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10389. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10390. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10391. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10392. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10393. html += "_$tag_____________$tag_合计:_$tag___$tag";
  10394. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  10395. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10396. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10397. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10398. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10399. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10400. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10401. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10402. html += "_$tag";
  10403. $("#dataTable").html(html);
  10404. }else {
  10405. $("#dataTable").html("");
  10406. }
  10407. },
  10408. "error" : function(msg){
  10409. },
  10410. "complete": function(){
  10411. layer.close(tip);
  10412. }
  10413. });
  10414. });
  10415. Date.prototype.Format = function (fmt) {
  10416. var o = {
  10417. "M+": this.getMonth() + 1, //月份
  10418. "d+": this.getDate(), //日
  10419. "h+": this.getHours(), //小时
  10420. "m+": this.getMinutes(), //分
  10421. "s+": this.getSeconds(), //秒
  10422. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  10423. "S": this.getMilliseconds() //毫秒
  10424. };
  10425. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  10426. for (var k in o)
  10427. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  10428. return fmt;
  10429. }
  10430. $("#jrjc").change(function() {
  10431. if ($("#jrjc").prop('checked') == true){
  10432. $("#departmentId").removeAttr("disabled");
  10433. }else {
  10434. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10435. }
  10436. });
  10437. ----------------------------------- SOURCE END -------------------------------------
  10438. !STACK 0
  10439. java.lang.NullPointerException
  10440. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:39.859
  10441. !MESSAGE Exception occurred during problem detection:
  10442. ----------------------------------- SOURCE BEGIN -------------------------------------
  10443. (function(){WdatePicker();})();
  10444. (function(){WdatePicker();})();
  10445. (function(){Data.get();})();
  10446. (function(){Data.set();})();
  10447. (function(){search();})();
  10448. $(function(){
  10449. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10450. getfp();
  10451. });
  10452. var Data = {
  10453. "get" : function(){
  10454. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  10455. var tip = layer.load(2);
  10456. var result="";
  10457. var url = "getgyxml.do";
  10458. $.ajax({
  10459. "url" : url,
  10460. "data" : {
  10461. "start_date" : $("#dateBegin").val(),
  10462. "end_date" : $("#dateEnd").val()
  10463. },
  10464. "type" : "POST",
  10465. "dataType" : "json",
  10466. "success" : function(data) {
  10467. if(data != null && data != ""){
  10468. if ( data.status =="success"){
  10469. getfp();
  10470. alert("获取成功!");
  10471. }else {
  10472. alert(data.status);
  10473. }
  10474. }else {
  10475. alert("获取失败!");
  10476. }
  10477. },
  10478. "complete": function(){
  10479. layer.close(tip);
  10480. }
  10481. });
  10482. }else {
  10483. alert("请选择日期!");
  10484. }
  10485. },
  10486. "set" : function(){
  10487. if ( $("#fpid option:selected").text() !=""){
  10488. var tip = layer.load(2);
  10489. var gitem = $("#form1").serialize();
  10490. var jrjc;
  10491. if ($("#jrjc").prop('checked') == true){
  10492. jrjc = $("#departmentId").val();
  10493. }else {
  10494. jrjc ='N'
  10495. }
  10496. var url = "saverk.do";
  10497. $.ajax({
  10498. "url" : url,
  10499. "data" : {
  10500. "gitem" : gitem,
  10501. "jrjc" : jrjc
  10502. },
  10503. "type" : "POST",
  10504. "dataType" : "json",
  10505. "async" : true,
  10506. "success" : function(data) {
  10507. if(data.status =="success"){
  10508. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  10509. alert("入库成功!\n入库单号:"+data.rkdh+"");
  10510. }else {
  10511. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  10512. }
  10513. window.location.reload();
  10514. }else {
  10515. alert(msg);
  10516. }
  10517. },
  10518. "error": function(){
  10519. alert("确认失败!");
  10520. },
  10521. "complete": function(){
  10522. layer.close(tip);
  10523. }
  10524. });
  10525. }else {
  10526. alert("请选择发票!");
  10527. }
  10528. }
  10529. }
  10530. function getfp(){
  10531. var tip = layer.load(2);
  10532. var url = "getgyfp.do";
  10533. $.ajax({
  10534. "url" : url,
  10535. "type" : "POST",
  10536. "dataType" : "json",
  10537. "async" : true,
  10538. "success" : function(data) {
  10539. if(data != null && data != ""){
  10540. $("#fpid").empty();
  10541. $("#fpid").append("_$tag_____________$tag____");
  10542. for(var i = 0; i < data.length; i++){
  10543. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  10544. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  10545. }
  10546. }
  10547. },
  10548. "error" : function(msg){
  10549. },
  10550. "complete": function(){
  10551. layer.close(tip);
  10552. }
  10553. });
  10554. }
  10555. $("#fpid").change(function(){
  10556. var tip = layer.load(2);
  10557. var url = "getgyrkxx.do";
  10558. var sum_total=0;
  10559. $.ajax({
  10560. "url" : url,
  10561. "data" : {
  10562. "fpId" : $("#fpid").val()
  10563. },
  10564. "type" : "POST",
  10565. "dataType" : "json",
  10566. "async" : true,
  10567. "success" : function(data) {
  10568. $("#dataTable").html("");
  10569. if(data != null && data != ""){
  10570. var html = "";
  10571. for(var i = 0; i < data.length; i++){
  10572. var ID = data[i].id == null ? "" : data[i].id;
  10573. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  10574. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  10575. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  10576. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  10577. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  10578. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  10579. var GOODS = data[i].goods == null ? "" : data[i].goods;
  10580. var NAME = data[i].name == null ? "" : data[i].name;
  10581. var SPEC = data[i].spec == null ? "" : data[i].spec;
  10582. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  10583. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  10584. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  10585. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  10586. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  10587. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  10588. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  10589. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  10590. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  10591. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  10592. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  10593. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  10594. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  10595. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  10596. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  10597. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  10598. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  10599. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  10600. sum_total = sum_total + DSUMVALUE
  10601. var invoice_type_cn =null;
  10602. if (invoice_type =="00" ){
  10603. invoice_type_cn="销售发票";
  10604. }else if (invoice_type == "01") {
  10605. invoice_type_cn="更正(对冲)发票";
  10606. }else if (invoice_type == "02") {
  10607. invoice_type_cn="其它类型发票";
  10608. }
  10609. html += "_$ta";
  10610. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10611. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10612. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  10613. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10614. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10615. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10616. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  10617. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10618. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10619. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  10620. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  10621. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10622. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10623. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10624. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10625. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  10626. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  10627. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  10628. html += "_$tag";
  10629. }
  10630. html += "_$ta";
  10631. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10632. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10633. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10634. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10635. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10636. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10637. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10638. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10639. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10640. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10641. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10642. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10643. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10644. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10645. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10646. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10647. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10648. html += "_$tag_____________$tag_合计:_$tag___$tag";
  10649. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  10650. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10651. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10652. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10653. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10654. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10655. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10656. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10657. html += "_$tag";
  10658. $("#dataTable").html(html);
  10659. }else {
  10660. $("#dataTable").html("");
  10661. }
  10662. },
  10663. "error" : function(msg){
  10664. },
  10665. "complete": function(){
  10666. layer.close(tip);
  10667. }
  10668. });
  10669. });
  10670. Date.prototype.Format = function (fmt) {
  10671. var o = {
  10672. "M+": this.getMonth() + 1, //月份
  10673. "d+": this.getDate(), //日
  10674. "h+": this.getHours(), //小时
  10675. "m+": this.getMinutes(), //分
  10676. "s+": this.getSeconds(), //秒
  10677. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  10678. "S": this.getMilliseconds() //毫秒
  10679. };
  10680. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  10681. for (var k in o)
  10682. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  10683. return fmt;
  10684. }
  10685. $("#jrjc").change(function() {
  10686. if ($("#jrjc").prop('checked') == true){
  10687. $("#departmentId").removeAttr("disabled");
  10688. }else {
  10689. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10690. }
  10691. });
  10692. ----------------------------------- SOURCE END -------------------------------------
  10693. !STACK 0
  10694. java.lang.NullPointerException
  10695. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:39.859
  10696. !MESSAGE Error while processing working copy
  10697. !STACK 1
  10698. JavaScript Model Exception: java.lang.NullPointerException
  10699. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  10700. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  10701. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  10702. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  10703. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  10704. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  10705. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  10706. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  10707. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  10708. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  10709. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  10710. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  10711. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  10712. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  10713. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  10714. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  10715. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  10716. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  10717. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  10718. Caused by: java.lang.NullPointerException
  10719. Caused by: java.lang.NullPointerException
  10720. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:34:39.860
  10721. !MESSAGE java.lang.NullPointerException
  10722. !STACK 0
  10723. java.lang.NullPointerException
  10724. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:40.898
  10725. !MESSAGE Exception occurred during problem detection:
  10726. ----------------------------------- SOURCE BEGIN -------------------------------------
  10727. (function(){WdatePicker();})();
  10728. (function(){WdatePicker();})();
  10729. (function(){Data.get();})();
  10730. (function(){Data.set();})();
  10731. (function(){search();})();
  10732. $(function(){
  10733. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10734. getfp();
  10735. });
  10736. var Data = {
  10737. "get" : function(){
  10738. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  10739. var tip = layer.load(2);
  10740. var result="";
  10741. var url = "getgyxml.do";
  10742. $.ajax({
  10743. "url" : url,
  10744. "data" : {
  10745. "start_date" : $("#dateBegin").val(),
  10746. "end_date" : $("#dateEnd").val()
  10747. },
  10748. "type" : "POST",
  10749. "dataType" : "json",
  10750. "success" : function(data) {
  10751. if(data != null && data != ""){
  10752. if ( data.status =="success"){
  10753. getfp();
  10754. alert("获取成功!");
  10755. }else {
  10756. alert(data.status);
  10757. }
  10758. }else {
  10759. alert("获取失败!");
  10760. }
  10761. },
  10762. "complete": function(){
  10763. layer.close(tip);
  10764. }
  10765. });
  10766. }else {
  10767. alert("请选择日期!");
  10768. }
  10769. },
  10770. "set" : function(){
  10771. if ( $("#fpid option:selected").text() !=""){
  10772. var tip = layer.load(2);
  10773. var gitem = $("#form1").serialize();
  10774. var jrjc;
  10775. if ($("#jrjc").prop('checked') == true){
  10776. jrjc = $("#departmentId").val();
  10777. }else {
  10778. jrjc ='N'
  10779. }
  10780. var url = "saverk.do";
  10781. $.ajax({
  10782. "url" : url,
  10783. "data" : {
  10784. "gitem" : gitem,
  10785. "jrjc" : jrjc
  10786. },
  10787. "type" : "POST",
  10788. "dataType" : "json",
  10789. "async" : true,
  10790. "success" : function(data) {
  10791. if(data.status =="success"){
  10792. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  10793. alert("入库成功!\n入库单号:"+data.rkdh+"");
  10794. }else {
  10795. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  10796. }
  10797. window.location.reload();
  10798. }else {
  10799. alert(msg);
  10800. }
  10801. },
  10802. "error": function(){
  10803. alert("确认失败!");
  10804. },
  10805. "complete": function(){
  10806. layer.close(tip);
  10807. }
  10808. });
  10809. }else {
  10810. alert("请选择发票!");
  10811. }
  10812. }
  10813. }
  10814. function getfp(){
  10815. var tip = layer.load(2);
  10816. var url = "getgyfp.do";
  10817. $.ajax({
  10818. "url" : url,
  10819. "type" : "POST",
  10820. "dataType" : "json",
  10821. "async" : true,
  10822. "success" : function(data) {
  10823. if(data != null && data != ""){
  10824. $("#fpid").empty();
  10825. $("#fpid").append("_$tag_____________$tag____");
  10826. for(var i = 0; i < data.length; i++){
  10827. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  10828. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  10829. }
  10830. }
  10831. },
  10832. "error" : function(msg){
  10833. },
  10834. "complete": function(){
  10835. layer.close(tip);
  10836. }
  10837. });
  10838. }
  10839. $("#fpid").change(function(){
  10840. var tip = layer.load(2);
  10841. var url = "getgyrkxx.do";
  10842. var sum_total=0;
  10843. $.ajax({
  10844. "url" : url,
  10845. "data" : {
  10846. "fpId" : $("#fpid").val()
  10847. },
  10848. "type" : "POST",
  10849. "dataType" : "json",
  10850. "async" : true,
  10851. "success" : function(data) {
  10852. $("#dataTable").html("");
  10853. if(data != null && data != ""){
  10854. var html = "";
  10855. for(var i = 0; i < data.length; i++){
  10856. var ID = data[i].id == null ? "" : data[i].id;
  10857. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  10858. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  10859. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  10860. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  10861. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  10862. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  10863. var GOODS = data[i].goods == null ? "" : data[i].goods;
  10864. var NAME = data[i].name == null ? "" : data[i].name;
  10865. var SPEC = data[i].spec == null ? "" : data[i].spec;
  10866. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  10867. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  10868. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  10869. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  10870. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  10871. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  10872. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  10873. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  10874. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  10875. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  10876. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  10877. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  10878. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  10879. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  10880. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  10881. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  10882. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  10883. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  10884. sum_total = sum_total + DSUMVALUE
  10885. var invoice_type_cn =null;
  10886. if (invoice_type =="00" ){
  10887. invoice_type_cn="销售发票";
  10888. }else if (invoice_type == "01") {
  10889. invoice_type_cn="更正(对冲)发票";
  10890. }else if (invoice_type == "02") {
  10891. invoice_type_cn="其它类型发票";
  10892. }
  10893. html += "_$ta";
  10894. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10895. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10896. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  10897. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10898. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10899. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10900. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  10901. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10902. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10903. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  10904. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  10905. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10906. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10907. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10908. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10909. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  10910. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  10911. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  10912. html += "_$tag";
  10913. }
  10914. html += "_$ta";
  10915. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10916. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10917. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10918. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10919. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10920. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10921. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10922. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10923. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10924. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10925. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10926. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10927. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10928. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10929. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10930. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10931. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10932. html += "_$tag_____________$tag_合计:_$tag___$tag";
  10933. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  10934. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10935. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10936. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10937. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10938. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10939. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10940. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10941. html += "_$tag";
  10942. $("#dataTable").html(html);
  10943. }else {
  10944. $("#dataTable").html("");
  10945. }
  10946. },
  10947. "error" : function(msg){
  10948. },
  10949. "complete": function(){
  10950. layer.close(tip);
  10951. }
  10952. });
  10953. });
  10954. Date.prototype.Format = function (fmt) {
  10955. var o = {
  10956. "M+": this.getMonth() + 1, //月份
  10957. "d+": this.getDate(), //日
  10958. "h+": this.getHours(), //小时
  10959. "m+": this.getMinutes(), //分
  10960. "s+": this.getSeconds(), //秒
  10961. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  10962. "S": this.getMilliseconds() //毫秒
  10963. };
  10964. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  10965. for (var k in o)
  10966. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  10967. return fmt;
  10968. }
  10969. $("#jrjc").change(function() {
  10970. if ($("#jrjc").prop('checked') == true){
  10971. $("#departmentId").removeAttr("disabled");
  10972. }else {
  10973. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10974. }
  10975. });
  10976. ----------------------------------- SOURCE END -------------------------------------
  10977. !STACK 0
  10978. java.lang.NullPointerException
  10979. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:43.770
  10980. !MESSAGE Exception occurred during problem detection:
  10981. ----------------------------------- SOURCE BEGIN -------------------------------------
  10982. (function(){WdatePicker();})();
  10983. (function(){WdatePicker();})();
  10984. (function(){Data.get();})();
  10985. (function(){Data.set();})();
  10986. (function(){search();})();
  10987. $(function(){
  10988. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10989. getfp();
  10990. });
  10991. var Data = {
  10992. "get" : function(){
  10993. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  10994. var tip = layer.load(2);
  10995. var result="";
  10996. var url = "getgyxml.do";
  10997. $.ajax({
  10998. "url" : url,
  10999. "data" : {
  11000. "start_date" : $("#dateBegin").val(),
  11001. "end_date" : $("#dateEnd").val()
  11002. },
  11003. "type" : "POST",
  11004. "dataType" : "json",
  11005. "success" : function(data) {
  11006. if(data != null && data != ""){
  11007. if ( data.status =="success"){
  11008. getfp();
  11009. alert("获取成功!");
  11010. }else {
  11011. alert(data.status);
  11012. }
  11013. }else {
  11014. alert("获取失败!");
  11015. }
  11016. },
  11017. "complete": function(){
  11018. layer.close(tip);
  11019. }
  11020. });
  11021. }else {
  11022. alert("请选择日期!");
  11023. }
  11024. },
  11025. "set" : function(){
  11026. if ( $("#fpid option:selected").text() !=""){
  11027. var tip = layer.load(2);
  11028. var gitem = $("#form1").serialize();
  11029. var jrjc;
  11030. if ($("#jrjc").prop('checked') == true){
  11031. jrjc = $("#departmentId").val();
  11032. }else {
  11033. jrjc ='N'
  11034. }
  11035. var url = "saverk.do";
  11036. $.ajax({
  11037. "url" : url,
  11038. "data" : {
  11039. "gitem" : gitem,
  11040. "jrjc" : jrjc
  11041. },
  11042. "type" : "POST",
  11043. "dataType" : "json",
  11044. "async" : true,
  11045. "success" : function(data) {
  11046. if(data.status =="success"){
  11047. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  11048. alert("入库成功!\n入库单号:"+data.rkdh+"");
  11049. }else {
  11050. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  11051. }
  11052. window.location.reload();
  11053. }else {
  11054. alert(msg);
  11055. }
  11056. },
  11057. "error": function(){
  11058. alert("确认失败!");
  11059. },
  11060. "complete": function(){
  11061. layer.close(tip);
  11062. }
  11063. });
  11064. }else {
  11065. alert("请选择发票!");
  11066. }
  11067. }
  11068. }
  11069. function getfp(){
  11070. var tip = layer.load(2);
  11071. var url = "getgyfp.do";
  11072. $.ajax({
  11073. "url" : url,
  11074. "type" : "POST",
  11075. "dataType" : "json",
  11076. "async" : true,
  11077. "success" : function(data) {
  11078. if(data != null && data != ""){
  11079. $("#fpid").empty();
  11080. $("#fpid").append("_$tag_____________$tag____");
  11081. for(var i = 0; i < data.length; i++){
  11082. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  11083. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  11084. }
  11085. }
  11086. },
  11087. "error" : function(msg){
  11088. },
  11089. "complete": function(){
  11090. layer.close(tip);
  11091. }
  11092. });
  11093. }
  11094. $("#fpid").change(function(){
  11095. var tip = layer.load(2);
  11096. var url = "getgyrkxx.do";
  11097. var sum_total=0;
  11098. $.ajax({
  11099. "url" : url,
  11100. "data" : {
  11101. "fpId" : $("#fpid").val()
  11102. },
  11103. "type" : "POST",
  11104. "dataType" : "json",
  11105. "async" : true,
  11106. "success" : function(data) {
  11107. $("#dataTable").html("");
  11108. if(data != null && data != ""){
  11109. var html = "";
  11110. for(var i = 0; i < data.length; i++){
  11111. var ID = data[i].id == null ? "" : data[i].id;
  11112. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  11113. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  11114. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  11115. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  11116. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  11117. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  11118. var GOODS = data[i].goods == null ? "" : data[i].goods;
  11119. var NAME = data[i].name == null ? "" : data[i].name;
  11120. var SPEC = data[i].spec == null ? "" : data[i].spec;
  11121. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  11122. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  11123. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  11124. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  11125. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  11126. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  11127. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  11128. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  11129. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  11130. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  11131. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  11132. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  11133. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  11134. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  11135. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  11136. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  11137. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  11138. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  11139. sum_total = sum_total + DSUMVALUE
  11140. var invoice_type_cn =null;
  11141. if (invoice_type =="00" ){
  11142. invoice_type_cn="销售发票";
  11143. }else if (invoice_type == "01") {
  11144. invoice_type_cn="更正(对冲)发票";
  11145. }else if (invoice_type == "02") {
  11146. invoice_type_cn="其它类型发票";
  11147. }
  11148. html += "_$ta";
  11149. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11150. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11151. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  11152. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11153. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11154. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11155. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  11156. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11157. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11158. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  11159. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  11160. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11161. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11162. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11163. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11164. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  11165. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  11166. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  11167. html += "_$tag";
  11168. }
  11169. html += "_$ta";
  11170. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11171. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11172. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11173. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11174. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11175. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11176. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11177. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11178. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11179. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11180. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11181. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11182. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11183. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11184. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11185. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11186. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11187. html += "_$tag_____________$tag_合计:_$tag___$tag";
  11188. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  11189. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11190. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11191. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11192. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11193. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11194. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11195. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11196. html += "_$tag";
  11197. $("#dataTable").html(html);
  11198. }else {
  11199. $("#dataTable").html("");
  11200. }
  11201. },
  11202. "error" : function(msg){
  11203. },
  11204. "complete": function(){
  11205. layer.close(tip);
  11206. }
  11207. });
  11208. });
  11209. Date.prototype.Format = function (fmt) {
  11210. var o = {
  11211. "M+": this.getMonth() + 1, //月份
  11212. "d+": this.getDate(), //日
  11213. "h+": this.getHours(), //小时
  11214. "m+": this.getMinutes(), //分
  11215. "s+": this.getSeconds(), //秒
  11216. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  11217. "S": this.getMilliseconds() //毫秒
  11218. };
  11219. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  11220. for (var k in o)
  11221. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  11222. return fmt;
  11223. }
  11224. $("#jrjc").change(function() {
  11225. if ($("#jrjc").prop('checked') == true){
  11226. $("#departmentId").removeAttr("disabled");
  11227. }else {
  11228. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11229. }
  11230. });
  11231. ----------------------------------- SOURCE END -------------------------------------
  11232. !STACK 0
  11233. java.lang.NullPointerException
  11234. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:43.771
  11235. !MESSAGE Error while processing working copy
  11236. !STACK 1
  11237. JavaScript Model Exception: java.lang.NullPointerException
  11238. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  11239. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  11240. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  11241. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  11242. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  11243. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  11244. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  11245. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  11246. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  11247. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  11248. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  11249. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  11250. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  11251. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  11252. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  11253. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  11254. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  11255. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  11256. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  11257. Caused by: java.lang.NullPointerException
  11258. Caused by: java.lang.NullPointerException
  11259. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:34:43.771
  11260. !MESSAGE java.lang.NullPointerException
  11261. !STACK 0
  11262. java.lang.NullPointerException
  11263. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:44.794
  11264. !MESSAGE Exception occurred during problem detection:
  11265. ----------------------------------- SOURCE BEGIN -------------------------------------
  11266. (function(){WdatePicker();})();
  11267. (function(){WdatePicker();})();
  11268. (function(){Data.get();})();
  11269. (function(){Data.set();})();
  11270. (function(){search();})();
  11271. $(function(){
  11272. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11273. getfp();
  11274. });
  11275. var Data = {
  11276. "get" : function(){
  11277. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  11278. var tip = layer.load(2);
  11279. var result="";
  11280. var url = "getgyxml.do";
  11281. $.ajax({
  11282. "url" : url,
  11283. "data" : {
  11284. "start_date" : $("#dateBegin").val(),
  11285. "end_date" : $("#dateEnd").val()
  11286. },
  11287. "type" : "POST",
  11288. "dataType" : "json",
  11289. "success" : function(data) {
  11290. if(data != null && data != ""){
  11291. if ( data.status =="success"){
  11292. getfp();
  11293. alert("获取成功!");
  11294. }else {
  11295. alert(data.status);
  11296. }
  11297. }else {
  11298. alert("获取失败!");
  11299. }
  11300. },
  11301. "complete": function(){
  11302. layer.close(tip);
  11303. }
  11304. });
  11305. }else {
  11306. alert("请选择日期!");
  11307. }
  11308. },
  11309. "set" : function(){
  11310. if ( $("#fpid option:selected").text() !=""){
  11311. var tip = layer.load(2);
  11312. var gitem = $("#form1").serialize();
  11313. var jrjc;
  11314. if ($("#jrjc").prop('checked') == true){
  11315. jrjc = $("#departmentId").val();
  11316. }else {
  11317. jrjc ='N'
  11318. }
  11319. var url = "saverk.do";
  11320. $.ajax({
  11321. "url" : url,
  11322. "data" : {
  11323. "gitem" : gitem,
  11324. "jrjc" : jrjc
  11325. },
  11326. "type" : "POST",
  11327. "dataType" : "json",
  11328. "async" : true,
  11329. "success" : function(data) {
  11330. if(data.status =="success"){
  11331. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  11332. alert("入库成功!\n入库单号:"+data.rkdh+"");
  11333. }else {
  11334. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  11335. }
  11336. window.location.reload();
  11337. }else {
  11338. alert(msg);
  11339. }
  11340. },
  11341. "error": function(){
  11342. alert("确认失败!");
  11343. },
  11344. "complete": function(){
  11345. layer.close(tip);
  11346. }
  11347. });
  11348. }else {
  11349. alert("请选择发票!");
  11350. }
  11351. }
  11352. }
  11353. function getfp(){
  11354. var tip = layer.load(2);
  11355. var url = "getgyfp.do";
  11356. $.ajax({
  11357. "url" : url,
  11358. "type" : "POST",
  11359. "dataType" : "json",
  11360. "async" : true,
  11361. "success" : function(data) {
  11362. if(data != null && data != ""){
  11363. $("#fpid").empty();
  11364. $("#fpid").append("_$tag_____________$tag____");
  11365. for(var i = 0; i < data.length; i++){
  11366. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  11367. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  11368. }
  11369. }
  11370. },
  11371. "error" : function(msg){
  11372. },
  11373. "complete": function(){
  11374. layer.close(tip);
  11375. }
  11376. });
  11377. }
  11378. $("#fpid").change(function(){
  11379. var tip = layer.load(2);
  11380. var url = "getgyrkxx.do";
  11381. var sum_total=0;
  11382. $.ajax({
  11383. "url" : url,
  11384. "data" : {
  11385. "fpId" : $("#fpid").val()
  11386. },
  11387. "type" : "POST",
  11388. "dataType" : "json",
  11389. "async" : true,
  11390. "success" : function(data) {
  11391. $("#dataTable").html("");
  11392. if(data != null && data != ""){
  11393. var html = "";
  11394. for(var i = 0; i < data.length; i++){
  11395. var ID = data[i].id == null ? "" : data[i].id;
  11396. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  11397. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  11398. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  11399. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  11400. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  11401. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  11402. var GOODS = data[i].goods == null ? "" : data[i].goods;
  11403. var NAME = data[i].name == null ? "" : data[i].name;
  11404. var SPEC = data[i].spec == null ? "" : data[i].spec;
  11405. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  11406. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  11407. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  11408. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  11409. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  11410. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  11411. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  11412. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  11413. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  11414. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  11415. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  11416. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  11417. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  11418. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  11419. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  11420. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  11421. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  11422. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  11423. sum_total = sum_total + DSUMVALUE
  11424. var invoice_type_cn =null;
  11425. if (invoice_type =="00" ){
  11426. invoice_type_cn="销售发票";
  11427. }else if (invoice_type == "01") {
  11428. invoice_type_cn="更正(对冲)发票";
  11429. }else if (invoice_type == "02") {
  11430. invoice_type_cn="其它类型发票";
  11431. }
  11432. html += "_$ta";
  11433. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11434. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11435. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  11436. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11437. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11438. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11439. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  11440. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11441. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11442. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  11443. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  11444. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11445. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11446. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11447. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11448. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  11449. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  11450. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  11451. html += "_$tag";
  11452. }
  11453. html += "_$ta";
  11454. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11455. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11456. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11457. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11458. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11459. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11460. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11461. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11462. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11463. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11464. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11465. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11466. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11467. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11468. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11469. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11470. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11471. html += "_$tag_____________$tag_合计:_$tag___$tag";
  11472. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  11473. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11474. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11475. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11476. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11477. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11478. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11479. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11480. html += "_$tag";
  11481. $("#dataTable").html(html);
  11482. }else {
  11483. $("#dataTable").html("");
  11484. }
  11485. },
  11486. "error" : function(msg){
  11487. },
  11488. "complete": function(){
  11489. layer.close(tip);
  11490. }
  11491. });
  11492. });
  11493. Date.prototype.Format = function (fmt) {
  11494. var o = {
  11495. "M+": this.getMonth() + 1, //月份
  11496. "d+": this.getDate(), //日
  11497. "h+": this.getHours(), //小时
  11498. "m+": this.getMinutes(), //分
  11499. "s+": this.getSeconds(), //秒
  11500. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  11501. "S": this.getMilliseconds() //毫秒
  11502. };
  11503. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  11504. for (var k in o)
  11505. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  11506. return fmt;
  11507. }
  11508. $("#jrjc").change(function() {
  11509. if ($("#jrjc").prop('checked') == true){
  11510. $("#departmentId").removeAttr("disabled");
  11511. }else {
  11512. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11513. }
  11514. });
  11515. ----------------------------------- SOURCE END -------------------------------------
  11516. !STACK 0
  11517. java.lang.NullPointerException
  11518. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:48.317
  11519. !MESSAGE Exception occurred during problem detection:
  11520. ----------------------------------- SOURCE BEGIN -------------------------------------
  11521. (function(){WdatePicker();})();
  11522. (function(){WdatePicker();})();
  11523. (function(){Data.get();})();
  11524. (function(){Data.set();})();
  11525. (function(){search();})();
  11526. $(function(){
  11527. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11528. getfp();
  11529. });
  11530. var Data = {
  11531. "get" : function(){
  11532. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  11533. var tip = layer.load(2);
  11534. var result="";
  11535. var url = "getgyxml.do";
  11536. $.ajax({
  11537. "url" : url,
  11538. "data" : {
  11539. "start_date" : $("#dateBegin").val(),
  11540. "end_date" : $("#dateEnd").val()
  11541. },
  11542. "type" : "POST",
  11543. "dataType" : "json",
  11544. "success" : function(data) {
  11545. if(data != null && data != ""){
  11546. if ( data.status =="success"){
  11547. getfp();
  11548. alert("获取成功!");
  11549. }else {
  11550. alert(data.status);
  11551. }
  11552. }else {
  11553. alert("获取失败!");
  11554. }
  11555. },
  11556. "complete": function(){
  11557. layer.close(tip);
  11558. }
  11559. });
  11560. }else {
  11561. alert("请选择日期!");
  11562. }
  11563. },
  11564. "set" : function(){
  11565. if ( $("#fpid option:selected").text() !=""){
  11566. var tip = layer.load(2);
  11567. var gitem = $("#form1").serialize();
  11568. var jrjc;
  11569. if ($("#jrjc").prop('checked') == true){
  11570. jrjc = $("#departmentId").val();
  11571. }else {
  11572. jrjc ='N'
  11573. }
  11574. var url = "saverk.do";
  11575. $.ajax({
  11576. "url" : url,
  11577. "data" : {
  11578. "gitem" : gitem,
  11579. "jrjc" : jrjc
  11580. },
  11581. "type" : "POST",
  11582. "dataType" : "json",
  11583. "async" : true,
  11584. "success" : function(data) {
  11585. if(data.status =="success"){
  11586. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  11587. alert("入库成功!\n入库单号:"+data.rkdh+"");
  11588. }else {
  11589. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  11590. }
  11591. window.location.reload();
  11592. }else {
  11593. alert(msg);
  11594. }
  11595. },
  11596. "error": function(){
  11597. alert("确认失败!");
  11598. },
  11599. "complete": function(){
  11600. layer.close(tip);
  11601. }
  11602. });
  11603. }else {
  11604. alert("请选择发票!");
  11605. }
  11606. }
  11607. }
  11608. function getfp(){
  11609. var tip = layer.load(2);
  11610. var url = "getgyfp.do";
  11611. $.ajax({
  11612. "url" : url,
  11613. "type" : "POST",
  11614. "dataType" : "json",
  11615. "async" : true,
  11616. "success" : function(data) {
  11617. if(data != null && data != ""){
  11618. $("#fpid").empty();
  11619. $("#fpid").append("_$tag_____________$tag____");
  11620. for(var i = 0; i < data.length; i++){
  11621. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  11622. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  11623. }
  11624. }
  11625. },
  11626. "error" : function(msg){
  11627. },
  11628. "complete": function(){
  11629. layer.close(tip);
  11630. }
  11631. });
  11632. }
  11633. $("#fpid").change(function(){
  11634. var tip = layer.load(2);
  11635. var url = "getgyrkxx.do";
  11636. var sum_total=0;
  11637. $.ajax({
  11638. "url" : url,
  11639. "data" : {
  11640. "fpId" : $("#fpid").val()
  11641. },
  11642. "type" : "POST",
  11643. "dataType" : "json",
  11644. "async" : true,
  11645. "success" : function(data) {
  11646. $("#dataTable").html("");
  11647. if(data != null && data != ""){
  11648. var html = "";
  11649. for(var i = 0; i < data.length; i++){
  11650. var ID = data[i].id == null ? "" : data[i].id;
  11651. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  11652. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  11653. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  11654. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  11655. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  11656. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  11657. var GOODS = data[i].goods == null ? "" : data[i].goods;
  11658. var NAME = data[i].name == null ? "" : data[i].name;
  11659. var SPEC = data[i].spec == null ? "" : data[i].spec;
  11660. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  11661. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  11662. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  11663. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  11664. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  11665. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  11666. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  11667. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  11668. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  11669. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  11670. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  11671. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  11672. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  11673. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  11674. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  11675. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  11676. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  11677. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  11678. sum_total = sum_total + DSUMVALUE
  11679. var invoice_type_cn =null;
  11680. if (invoice_type =="00" ){
  11681. invoice_type_cn="销售发票";
  11682. }else if (invoice_type == "01") {
  11683. invoice_type_cn="更正(对冲)发票";
  11684. }else if (invoice_type == "02") {
  11685. invoice_type_cn="其它类型发票";
  11686. }
  11687. html += "_$ta";
  11688. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11689. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11690. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  11691. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11692. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11693. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  11694. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11695. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11696. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  11697. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  11698. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11699. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11700. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11701. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11702. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  11703. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  11704. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  11705. html += "_$tag";
  11706. }
  11707. html += "_$ta";
  11708. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11709. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11710. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11711. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11712. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11713. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11714. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11715. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11716. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11717. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11718. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11719. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11720. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11721. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11722. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11723. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11724. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11725. html += "_$tag_____________$tag_合计:_$tag___$tag";
  11726. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  11727. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11728. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11729. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11730. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11731. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11732. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11733. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11734. html += "_$tag";
  11735. $("#dataTable").html(html);
  11736. }else {
  11737. $("#dataTable").html("");
  11738. }
  11739. },
  11740. "error" : function(msg){
  11741. },
  11742. "complete": function(){
  11743. layer.close(tip);
  11744. }
  11745. });
  11746. });
  11747. Date.prototype.Format = function (fmt) {
  11748. var o = {
  11749. "M+": this.getMonth() + 1, //月份
  11750. "d+": this.getDate(), //日
  11751. "h+": this.getHours(), //小时
  11752. "m+": this.getMinutes(), //分
  11753. "s+": this.getSeconds(), //秒
  11754. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  11755. "S": this.getMilliseconds() //毫秒
  11756. };
  11757. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  11758. for (var k in o)
  11759. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  11760. return fmt;
  11761. }
  11762. $("#jrjc").change(function() {
  11763. if ($("#jrjc").prop('checked') == true){
  11764. $("#departmentId").removeAttr("disabled");
  11765. }else {
  11766. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11767. }
  11768. });
  11769. ----------------------------------- SOURCE END -------------------------------------
  11770. !STACK 0
  11771. java.lang.NullPointerException
  11772. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-07-23 09:34:48.318
  11773. !MESSAGE java.lang.NullPointerException
  11774. !STACK 1
  11775. JavaScript Model Exception: java.lang.NullPointerException
  11776. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  11777. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  11778. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  11779. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  11780. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  11781. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  11782. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  11783. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  11784. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  11785. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  11786. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  11787. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  11788. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  11789. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  11790. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  11791. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  11792. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  11793. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  11794. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  11795. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  11796. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  11797. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  11798. Caused by: java.lang.NullPointerException
  11799. Caused by: java.lang.NullPointerException
  11800. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:34:48.318
  11801. !MESSAGE java.lang.NullPointerException
  11802. !STACK 0
  11803. java.lang.NullPointerException
  11804. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:49.752
  11805. !MESSAGE Exception occurred during problem detection:
  11806. ----------------------------------- SOURCE BEGIN -------------------------------------
  11807. (function(){WdatePicker();})();
  11808. (function(){WdatePicker();})();
  11809. (function(){Data.get();})();
  11810. (function(){Data.set();})();
  11811. (function(){search();})();
  11812. $(function(){
  11813. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11814. getfp();
  11815. });
  11816. var Data = {
  11817. "get" : function(){
  11818. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  11819. var tip = layer.load(2);
  11820. var result="";
  11821. var url = "getgyxml.do";
  11822. $.ajax({
  11823. "url" : url,
  11824. "data" : {
  11825. "start_date" : $("#dateBegin").val(),
  11826. "end_date" : $("#dateEnd").val()
  11827. },
  11828. "type" : "POST",
  11829. "dataType" : "json",
  11830. "success" : function(data) {
  11831. if(data != null && data != ""){
  11832. if ( data.status =="success"){
  11833. getfp();
  11834. alert("获取成功!");
  11835. }else {
  11836. alert(data.status);
  11837. }
  11838. }else {
  11839. alert("获取失败!");
  11840. }
  11841. },
  11842. "complete": function(){
  11843. layer.close(tip);
  11844. }
  11845. });
  11846. }else {
  11847. alert("请选择日期!");
  11848. }
  11849. },
  11850. "set" : function(){
  11851. if ( $("#fpid option:selected").text() !=""){
  11852. var tip = layer.load(2);
  11853. var gitem = $("#form1").serialize();
  11854. var jrjc;
  11855. if ($("#jrjc").prop('checked') == true){
  11856. jrjc = $("#departmentId").val();
  11857. }else {
  11858. jrjc ='N'
  11859. }
  11860. var url = "saverk.do";
  11861. $.ajax({
  11862. "url" : url,
  11863. "data" : {
  11864. "gitem" : gitem,
  11865. "jrjc" : jrjc
  11866. },
  11867. "type" : "POST",
  11868. "dataType" : "json",
  11869. "async" : true,
  11870. "success" : function(data) {
  11871. if(data.status =="success"){
  11872. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  11873. alert("入库成功!\n入库单号:"+data.rkdh+"");
  11874. }else {
  11875. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  11876. }
  11877. window.location.reload();
  11878. }else {
  11879. alert(msg);
  11880. }
  11881. },
  11882. "error": function(){
  11883. alert("确认失败!");
  11884. },
  11885. "complete": function(){
  11886. layer.close(tip);
  11887. }
  11888. });
  11889. }else {
  11890. alert("请选择发票!");
  11891. }
  11892. }
  11893. }
  11894. function getfp(){
  11895. var tip = layer.load(2);
  11896. var url = "getgyfp.do";
  11897. $.ajax({
  11898. "url" : url,
  11899. "type" : "POST",
  11900. "dataType" : "json",
  11901. "async" : true,
  11902. "success" : function(data) {
  11903. if(data != null && data != ""){
  11904. $("#fpid").empty();
  11905. $("#fpid").append("_$tag_____________$tag____");
  11906. for(var i = 0; i < data.length; i++){
  11907. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  11908. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  11909. }
  11910. }
  11911. },
  11912. "error" : function(msg){
  11913. },
  11914. "complete": function(){
  11915. layer.close(tip);
  11916. }
  11917. });
  11918. }
  11919. $("#fpid").change(function(){
  11920. var tip = layer.load(2);
  11921. var url = "getgyrkxx.do";
  11922. var sum_total=0;
  11923. $.ajax({
  11924. "url" : url,
  11925. "data" : {
  11926. "fpId" : $("#fpid").val()
  11927. },
  11928. "type" : "POST",
  11929. "dataType" : "json",
  11930. "async" : true,
  11931. "success" : function(data) {
  11932. $("#dataTable").html("");
  11933. if(data != null && data != ""){
  11934. var html = "";
  11935. for(var i = 0; i < data.length; i++){
  11936. var ID = data[i].id == null ? "" : data[i].id;
  11937. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  11938. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  11939. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  11940. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  11941. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  11942. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  11943. var GOODS = data[i].goods == null ? "" : data[i].goods;
  11944. var NAME = data[i].name == null ? "" : data[i].name;
  11945. var SPEC = data[i].spec == null ? "" : data[i].spec;
  11946. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  11947. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  11948. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  11949. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  11950. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  11951. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  11952. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  11953. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  11954. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  11955. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  11956. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  11957. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  11958. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  11959. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  11960. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  11961. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  11962. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  11963. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  11964. sum_total = sum_total + DSUMVALUE
  11965. var invoice_type_cn =null;
  11966. if (invoice_type =="00" ){
  11967. invoice_type_cn="销售发票";
  11968. }else if (invoice_type == "01") {
  11969. invoice_type_cn="更正(对冲)发票";
  11970. }else if (invoice_type == "02") {
  11971. invoice_type_cn="其它类型发票";
  11972. }
  11973. html += "_$ta";
  11974. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11975. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11976. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  11977. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11978. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11979. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  11980. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11981. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11982. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  11983. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  11984. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11985. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11986. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11987. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11988. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  11989. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  11990. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  11991. html += "_$tag";
  11992. }
  11993. html += "_$ta";
  11994. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11995. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11996. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11997. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11998. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11999. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12000. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12001. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12002. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12003. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12004. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12005. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12006. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12007. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12008. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12009. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12010. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12011. html += "_$tag_____________$tag_合计:_$tag___$tag";
  12012. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  12013. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12014. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12015. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12016. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12017. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12018. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12019. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12020. html += "_$tag";
  12021. $("#dataTable").html(html);
  12022. }else {
  12023. $("#dataTable").html("");
  12024. }
  12025. },
  12026. "error" : function(msg){
  12027. },
  12028. "complete": function(){
  12029. layer.close(tip);
  12030. }
  12031. });
  12032. });
  12033. Date.prototype.Format = function (fmt) {
  12034. var o = {
  12035. "M+": this.getMonth() + 1, //月份
  12036. "d+": this.getDate(), //日
  12037. "h+": this.getHours(), //小时
  12038. "m+": this.getMinutes(), //分
  12039. "s+": this.getSeconds(), //秒
  12040. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  12041. "S": this.getMilliseconds() //毫秒
  12042. };
  12043. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  12044. for (var k in o)
  12045. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  12046. return fmt;
  12047. }
  12048. $("#jrjc").change(function() {
  12049. if ($("#jrjc").prop('checked') == true){
  12050. $("#departmentId").removeAttr("disabled");
  12051. }else {
  12052. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12053. }
  12054. });
  12055. ----------------------------------- SOURCE END -------------------------------------
  12056. !STACK 0
  12057. java.lang.NullPointerException
  12058. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:49.752
  12059. !MESSAGE Error while processing working copy
  12060. !STACK 1
  12061. JavaScript Model Exception: java.lang.NullPointerException
  12062. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  12063. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  12064. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  12065. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  12066. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  12067. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  12068. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  12069. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  12070. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  12071. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  12072. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  12073. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  12074. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  12075. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  12076. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  12077. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  12078. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  12079. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  12080. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  12081. Caused by: java.lang.NullPointerException
  12082. Caused by: java.lang.NullPointerException
  12083. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:34:49.753
  12084. !MESSAGE java.lang.NullPointerException
  12085. !STACK 0
  12086. java.lang.NullPointerException
  12087. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:50.751
  12088. !MESSAGE Exception occurred during problem detection:
  12089. ----------------------------------- SOURCE BEGIN -------------------------------------
  12090. (function(){WdatePicker();})();
  12091. (function(){WdatePicker();})();
  12092. (function(){Data.get();})();
  12093. (function(){Data.set();})();
  12094. (function(){search();})();
  12095. $(function(){
  12096. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12097. getfp();
  12098. });
  12099. var Data = {
  12100. "get" : function(){
  12101. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  12102. var tip = layer.load(2);
  12103. var result="";
  12104. var url = "getgyxml.do";
  12105. $.ajax({
  12106. "url" : url,
  12107. "data" : {
  12108. "start_date" : $("#dateBegin").val(),
  12109. "end_date" : $("#dateEnd").val()
  12110. },
  12111. "type" : "POST",
  12112. "dataType" : "json",
  12113. "success" : function(data) {
  12114. if(data != null && data != ""){
  12115. if ( data.status =="success"){
  12116. getfp();
  12117. alert("获取成功!");
  12118. }else {
  12119. alert(data.status);
  12120. }
  12121. }else {
  12122. alert("获取失败!");
  12123. }
  12124. },
  12125. "complete": function(){
  12126. layer.close(tip);
  12127. }
  12128. });
  12129. }else {
  12130. alert("请选择日期!");
  12131. }
  12132. },
  12133. "set" : function(){
  12134. if ( $("#fpid option:selected").text() !=""){
  12135. var tip = layer.load(2);
  12136. var gitem = $("#form1").serialize();
  12137. var jrjc;
  12138. if ($("#jrjc").prop('checked') == true){
  12139. jrjc = $("#departmentId").val();
  12140. }else {
  12141. jrjc ='N'
  12142. }
  12143. var url = "saverk.do";
  12144. $.ajax({
  12145. "url" : url,
  12146. "data" : {
  12147. "gitem" : gitem,
  12148. "jrjc" : jrjc
  12149. },
  12150. "type" : "POST",
  12151. "dataType" : "json",
  12152. "async" : true,
  12153. "success" : function(data) {
  12154. if(data.status =="success"){
  12155. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  12156. alert("入库成功!\n入库单号:"+data.rkdh+"");
  12157. }else {
  12158. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  12159. }
  12160. window.location.reload();
  12161. }else {
  12162. alert(msg);
  12163. }
  12164. },
  12165. "error": function(){
  12166. alert("确认失败!");
  12167. },
  12168. "complete": function(){
  12169. layer.close(tip);
  12170. }
  12171. });
  12172. }else {
  12173. alert("请选择发票!");
  12174. }
  12175. }
  12176. }
  12177. function getfp(){
  12178. var tip = layer.load(2);
  12179. var url = "getgyfp.do";
  12180. $.ajax({
  12181. "url" : url,
  12182. "type" : "POST",
  12183. "dataType" : "json",
  12184. "async" : true,
  12185. "success" : function(data) {
  12186. if(data != null && data != ""){
  12187. $("#fpid").empty();
  12188. $("#fpid").append("_$tag_____________$tag____");
  12189. for(var i = 0; i < data.length; i++){
  12190. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  12191. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  12192. }
  12193. }
  12194. },
  12195. "error" : function(msg){
  12196. },
  12197. "complete": function(){
  12198. layer.close(tip);
  12199. }
  12200. });
  12201. }
  12202. $("#fpid").change(function(){
  12203. var tip = layer.load(2);
  12204. var url = "getgyrkxx.do";
  12205. var sum_total=0;
  12206. $.ajax({
  12207. "url" : url,
  12208. "data" : {
  12209. "fpId" : $("#fpid").val()
  12210. },
  12211. "type" : "POST",
  12212. "dataType" : "json",
  12213. "async" : true,
  12214. "success" : function(data) {
  12215. $("#dataTable").html("");
  12216. if(data != null && data != ""){
  12217. var html = "";
  12218. for(var i = 0; i < data.length; i++){
  12219. var ID = data[i].id == null ? "" : data[i].id;
  12220. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  12221. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  12222. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  12223. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  12224. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  12225. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  12226. var GOODS = data[i].goods == null ? "" : data[i].goods;
  12227. var NAME = data[i].name == null ? "" : data[i].name;
  12228. var SPEC = data[i].spec == null ? "" : data[i].spec;
  12229. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  12230. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  12231. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  12232. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  12233. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  12234. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  12235. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  12236. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  12237. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  12238. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  12239. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  12240. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  12241. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  12242. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  12243. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  12244. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  12245. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  12246. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  12247. sum_total = sum_total + DSUMVALUE
  12248. var invoice_type_cn =null;
  12249. if (invoice_type =="00" ){
  12250. invoice_type_cn="销售发票";
  12251. }else if (invoice_type == "01") {
  12252. invoice_type_cn="更正(对冲)发票";
  12253. }else if (invoice_type == "02") {
  12254. invoice_type_cn="其它类型发票";
  12255. }
  12256. html += "_$ta";
  12257. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12258. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12259. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  12260. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12261. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12262. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  12263. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12264. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12265. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  12266. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  12267. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12268. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12269. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12270. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12271. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  12272. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  12273. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  12274. html += "_$tag";
  12275. }
  12276. html += "_$ta";
  12277. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12278. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12279. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12280. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12281. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12282. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12283. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12284. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12285. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12286. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12287. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12288. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12289. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12290. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12291. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12292. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12293. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12294. html += "_$tag_____________$tag_合计:_$tag___$tag";
  12295. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  12296. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12297. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12298. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12299. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12300. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12301. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12302. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12303. html += "_$tag";
  12304. $("#dataTable").html(html);
  12305. }else {
  12306. $("#dataTable").html("");
  12307. }
  12308. },
  12309. "error" : function(msg){
  12310. },
  12311. "complete": function(){
  12312. layer.close(tip);
  12313. }
  12314. });
  12315. });
  12316. Date.prototype.Format = function (fmt) {
  12317. var o = {
  12318. "M+": this.getMonth() + 1, //月份
  12319. "d+": this.getDate(), //日
  12320. "h+": this.getHours(), //小时
  12321. "m+": this.getMinutes(), //分
  12322. "s+": this.getSeconds(), //秒
  12323. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  12324. "S": this.getMilliseconds() //毫秒
  12325. };
  12326. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  12327. for (var k in o)
  12328. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  12329. return fmt;
  12330. }
  12331. $("#jrjc").change(function() {
  12332. if ($("#jrjc").prop('checked') == true){
  12333. $("#departmentId").removeAttr("disabled");
  12334. }else {
  12335. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12336. }
  12337. });
  12338. ----------------------------------- SOURCE END -------------------------------------
  12339. !STACK 0
  12340. java.lang.NullPointerException
  12341. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:52.040
  12342. !MESSAGE Exception occurred during problem detection:
  12343. ----------------------------------- SOURCE BEGIN -------------------------------------
  12344. (function(){WdatePicker();})();
  12345. (function(){WdatePicker();})();
  12346. (function(){Data.get();})();
  12347. (function(){Data.set();})();
  12348. (function(){search();})();
  12349. $(function(){
  12350. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12351. getfp();
  12352. });
  12353. var Data = {
  12354. "get" : function(){
  12355. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  12356. var tip = layer.load(2);
  12357. var result="";
  12358. var url = "getgyxml.do";
  12359. $.ajax({
  12360. "url" : url,
  12361. "data" : {
  12362. "start_date" : $("#dateBegin").val(),
  12363. "end_date" : $("#dateEnd").val()
  12364. },
  12365. "type" : "POST",
  12366. "dataType" : "json",
  12367. "success" : function(data) {
  12368. if(data != null && data != ""){
  12369. if ( data.status =="success"){
  12370. getfp();
  12371. alert("获取成功!");
  12372. }else {
  12373. alert(data.status);
  12374. }
  12375. }else {
  12376. alert("获取失败!");
  12377. }
  12378. },
  12379. "complete": function(){
  12380. layer.close(tip);
  12381. }
  12382. });
  12383. }else {
  12384. alert("请选择日期!");
  12385. }
  12386. },
  12387. "set" : function(){
  12388. if ( $("#fpid option:selected").text() !=""){
  12389. var tip = layer.load(2);
  12390. var gitem = $("#form1").serialize();
  12391. var jrjc;
  12392. if ($("#jrjc").prop('checked') == true){
  12393. jrjc = $("#departmentId").val();
  12394. }else {
  12395. jrjc ='N'
  12396. }
  12397. var url = "saverk.do";
  12398. $.ajax({
  12399. "url" : url,
  12400. "data" : {
  12401. "gitem" : gitem,
  12402. "jrjc" : jrjc
  12403. },
  12404. "type" : "POST",
  12405. "dataType" : "json",
  12406. "async" : true,
  12407. "success" : function(data) {
  12408. if(data.status =="success"){
  12409. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  12410. alert("入库成功!\n入库单号:"+data.rkdh+"");
  12411. }else {
  12412. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  12413. }
  12414. window.location.reload();
  12415. }else {
  12416. alert(msg);
  12417. }
  12418. },
  12419. "error": function(){
  12420. alert("确认失败!");
  12421. },
  12422. "complete": function(){
  12423. layer.close(tip);
  12424. }
  12425. });
  12426. }else {
  12427. alert("请选择发票!");
  12428. }
  12429. }
  12430. }
  12431. function getfp(){
  12432. var tip = layer.load(2);
  12433. var url = "getgyfp.do";
  12434. $.ajax({
  12435. "url" : url,
  12436. "type" : "POST",
  12437. "dataType" : "json",
  12438. "async" : true,
  12439. "success" : function(data) {
  12440. if(data != null && data != ""){
  12441. $("#fpid").empty();
  12442. $("#fpid").append("_$tag_____________$tag____");
  12443. for(var i = 0; i < data.length; i++){
  12444. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  12445. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  12446. }
  12447. }
  12448. },
  12449. "error" : function(msg){
  12450. },
  12451. "complete": function(){
  12452. layer.close(tip);
  12453. }
  12454. });
  12455. }
  12456. $("#fpid").change(function(){
  12457. var tip = layer.load(2);
  12458. var url = "getgyrkxx.do";
  12459. var sum_total=0;
  12460. $.ajax({
  12461. "url" : url,
  12462. "data" : {
  12463. "fpId" : $("#fpid").val()
  12464. },
  12465. "type" : "POST",
  12466. "dataType" : "json",
  12467. "async" : true,
  12468. "success" : function(data) {
  12469. $("#dataTable").html("");
  12470. if(data != null && data != ""){
  12471. var html = "";
  12472. for(var i = 0; i < data.length; i++){
  12473. var ID = data[i].id == null ? "" : data[i].id;
  12474. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  12475. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  12476. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  12477. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  12478. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  12479. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  12480. var GOODS = data[i].goods == null ? "" : data[i].goods;
  12481. var NAME = data[i].name == null ? "" : data[i].name;
  12482. var SPEC = data[i].spec == null ? "" : data[i].spec;
  12483. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  12484. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  12485. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  12486. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  12487. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  12488. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  12489. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  12490. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  12491. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  12492. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  12493. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  12494. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  12495. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  12496. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  12497. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  12498. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  12499. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  12500. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  12501. sum_total = sum_total + DSUMVALUE
  12502. var invoice_type_cn =null;
  12503. if (invoice_type =="00" ){
  12504. invoice_type_cn="销售发票";
  12505. }else if (invoice_type == "01") {
  12506. invoice_type_cn="更正(对冲)发票";
  12507. }else if (invoice_type == "02") {
  12508. invoice_type_cn="其它类型发票";
  12509. }
  12510. html += "_$ta";
  12511. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12512. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12513. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  12514. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12515. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12516. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  12517. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12518. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12519. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  12520. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  12521. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12522. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12523. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12524. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12525. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  12526. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  12527. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  12528. html += "_$tag";
  12529. }
  12530. html += "_$ta";
  12531. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12532. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12533. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12534. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12535. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12536. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12537. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12538. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12539. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12540. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12541. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12542. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12543. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12544. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12545. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12546. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12547. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12548. html += "_$tag_____________$tag_合计:_$tag___$tag";
  12549. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  12550. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12551. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12552. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12553. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12554. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12555. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12556. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12557. html += "_$tag";
  12558. $("#dataTable").html(html);
  12559. }else {
  12560. $("#dataTable").html("");
  12561. }
  12562. },
  12563. "error" : function(msg){
  12564. },
  12565. "complete": function(){
  12566. layer.close(tip);
  12567. }
  12568. });
  12569. });
  12570. Date.prototype.Format = function (fmt) {
  12571. var o = {
  12572. "M+": this.getMonth() + 1, //月份
  12573. "d+": this.getDate(), //日
  12574. "h+": this.getHours(), //小时
  12575. "m+": this.getMinutes(), //分
  12576. "s+": this.getSeconds(), //秒
  12577. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  12578. "S": this.getMilliseconds() //毫秒
  12579. };
  12580. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  12581. for (var k in o)
  12582. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  12583. return fmt;
  12584. }
  12585. $("#jrjc").change(function() {
  12586. if ($("#jrjc").prop('checked') == true){
  12587. $("#departmentId").removeAttr("disabled");
  12588. }else {
  12589. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12590. }
  12591. });
  12592. ----------------------------------- SOURCE END -------------------------------------
  12593. !STACK 0
  12594. java.lang.NullPointerException
  12595. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:52.041
  12596. !MESSAGE Error while processing working copy
  12597. !STACK 1
  12598. JavaScript Model Exception: java.lang.NullPointerException
  12599. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  12600. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  12601. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  12602. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  12603. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  12604. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  12605. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  12606. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  12607. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  12608. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  12609. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  12610. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  12611. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  12612. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  12613. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  12614. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  12615. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  12616. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  12617. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  12618. Caused by: java.lang.NullPointerException
  12619. Caused by: java.lang.NullPointerException
  12620. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:34:52.041
  12621. !MESSAGE java.lang.NullPointerException
  12622. !STACK 0
  12623. java.lang.NullPointerException
  12624. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:53.052
  12625. !MESSAGE Exception occurred during problem detection:
  12626. ----------------------------------- SOURCE BEGIN -------------------------------------
  12627. (function(){WdatePicker();})();
  12628. (function(){WdatePicker();})();
  12629. (function(){Data.get();})();
  12630. (function(){Data.set();})();
  12631. (function(){search();})();
  12632. $(function(){
  12633. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12634. getfp();
  12635. });
  12636. var Data = {
  12637. "get" : function(){
  12638. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  12639. var tip = layer.load(2);
  12640. var result="";
  12641. var url = "getgyxml.do";
  12642. $.ajax({
  12643. "url" : url,
  12644. "data" : {
  12645. "start_date" : $("#dateBegin").val(),
  12646. "end_date" : $("#dateEnd").val()
  12647. },
  12648. "type" : "POST",
  12649. "dataType" : "json",
  12650. "success" : function(data) {
  12651. if(data != null && data != ""){
  12652. if ( data.status =="success"){
  12653. getfp();
  12654. alert("获取成功!");
  12655. }else {
  12656. alert(data.status);
  12657. }
  12658. }else {
  12659. alert("获取失败!");
  12660. }
  12661. },
  12662. "complete": function(){
  12663. layer.close(tip);
  12664. }
  12665. });
  12666. }else {
  12667. alert("请选择日期!");
  12668. }
  12669. },
  12670. "set" : function(){
  12671. if ( $("#fpid option:selected").text() !=""){
  12672. var tip = layer.load(2);
  12673. var gitem = $("#form1").serialize();
  12674. var jrjc;
  12675. if ($("#jrjc").prop('checked') == true){
  12676. jrjc = $("#departmentId").val();
  12677. }else {
  12678. jrjc ='N'
  12679. }
  12680. var url = "saverk.do";
  12681. $.ajax({
  12682. "url" : url,
  12683. "data" : {
  12684. "gitem" : gitem,
  12685. "jrjc" : jrjc
  12686. },
  12687. "type" : "POST",
  12688. "dataType" : "json",
  12689. "async" : true,
  12690. "success" : function(data) {
  12691. if(data.status =="success"){
  12692. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  12693. alert("入库成功!\n入库单号:"+data.rkdh+"");
  12694. }else {
  12695. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  12696. }
  12697. window.location.reload();
  12698. }else {
  12699. alert(msg);
  12700. }
  12701. },
  12702. "error": function(){
  12703. alert("确认失败!");
  12704. },
  12705. "complete": function(){
  12706. layer.close(tip);
  12707. }
  12708. });
  12709. }else {
  12710. alert("请选择发票!");
  12711. }
  12712. }
  12713. }
  12714. function getfp(){
  12715. var tip = layer.load(2);
  12716. var url = "getgyfp.do";
  12717. $.ajax({
  12718. "url" : url,
  12719. "type" : "POST",
  12720. "dataType" : "json",
  12721. "async" : true,
  12722. "success" : function(data) {
  12723. if(data != null && data != ""){
  12724. $("#fpid").empty();
  12725. $("#fpid").append("_$tag_____________$tag____");
  12726. for(var i = 0; i < data.length; i++){
  12727. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  12728. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  12729. }
  12730. }
  12731. },
  12732. "error" : function(msg){
  12733. },
  12734. "complete": function(){
  12735. layer.close(tip);
  12736. }
  12737. });
  12738. }
  12739. $("#fpid").change(function(){
  12740. var tip = layer.load(2);
  12741. var url = "getgyrkxx.do";
  12742. var sum_total=0;
  12743. $.ajax({
  12744. "url" : url,
  12745. "data" : {
  12746. "fpId" : $("#fpid").val()
  12747. },
  12748. "type" : "POST",
  12749. "dataType" : "json",
  12750. "async" : true,
  12751. "success" : function(data) {
  12752. $("#dataTable").html("");
  12753. if(data != null && data != ""){
  12754. var html = "";
  12755. for(var i = 0; i < data.length; i++){
  12756. var ID = data[i].id == null ? "" : data[i].id;
  12757. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  12758. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  12759. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  12760. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  12761. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  12762. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  12763. var GOODS = data[i].goods == null ? "" : data[i].goods;
  12764. var NAME = data[i].name == null ? "" : data[i].name;
  12765. var SPEC = data[i].spec == null ? "" : data[i].spec;
  12766. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  12767. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  12768. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  12769. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  12770. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  12771. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  12772. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  12773. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  12774. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  12775. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  12776. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  12777. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  12778. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  12779. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  12780. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  12781. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  12782. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  12783. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  12784. sum_total = sum_total + DSUMVALUE
  12785. var invoice_type_cn =null;
  12786. if (invoice_type =="00" ){
  12787. invoice_type_cn="销售发票";
  12788. }else if (invoice_type == "01") {
  12789. invoice_type_cn="更正(对冲)发票";
  12790. }else if (invoice_type == "02") {
  12791. invoice_type_cn="其它类型发票";
  12792. }
  12793. html += "_$ta";
  12794. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12795. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12796. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  12797. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12798. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12799. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  12800. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12801. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12802. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  12803. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  12804. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12805. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12806. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12807. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12808. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  12809. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  12810. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  12811. html += "_$tag";
  12812. }
  12813. html += "_$ta";
  12814. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12815. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12816. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12817. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12818. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12819. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12820. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12821. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12822. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12823. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12824. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12825. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12826. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12827. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12828. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12829. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12830. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12831. html += "_$tag_____________$tag_合计:_$tag___$tag";
  12832. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  12833. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12834. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12835. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12836. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12837. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12838. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12839. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12840. html += "_$tag";
  12841. $("#dataTable").html(html);
  12842. }else {
  12843. $("#dataTable").html("");
  12844. }
  12845. },
  12846. "error" : function(msg){
  12847. },
  12848. "complete": function(){
  12849. layer.close(tip);
  12850. }
  12851. });
  12852. });
  12853. Date.prototype.Format = function (fmt) {
  12854. var o = {
  12855. "M+": this.getMonth() + 1, //月份
  12856. "d+": this.getDate(), //日
  12857. "h+": this.getHours(), //小时
  12858. "m+": this.getMinutes(), //分
  12859. "s+": this.getSeconds(), //秒
  12860. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  12861. "S": this.getMilliseconds() //毫秒
  12862. };
  12863. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  12864. for (var k in o)
  12865. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  12866. return fmt;
  12867. }
  12868. $("#jrjc").change(function() {
  12869. if ($("#jrjc").prop('checked') == true){
  12870. $("#departmentId").removeAttr("disabled");
  12871. }else {
  12872. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12873. }
  12874. });
  12875. ----------------------------------- SOURCE END -------------------------------------
  12876. !STACK 0
  12877. java.lang.NullPointerException
  12878. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:53.561
  12879. !MESSAGE Exception occurred during problem detection:
  12880. ----------------------------------- SOURCE BEGIN -------------------------------------
  12881. (function(){WdatePicker();})();
  12882. (function(){WdatePicker();})();
  12883. (function(){Data.get();})();
  12884. (function(){Data.set();})();
  12885. (function(){search();})();
  12886. $(function(){
  12887. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12888. getfp();
  12889. });
  12890. var Data = {
  12891. "get" : function(){
  12892. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  12893. var tip = layer.load(2);
  12894. var result="";
  12895. var url = "getgyxml.do";
  12896. $.ajax({
  12897. "url" : url,
  12898. "data" : {
  12899. "start_date" : $("#dateBegin").val(),
  12900. "end_date" : $("#dateEnd").val()
  12901. },
  12902. "type" : "POST",
  12903. "dataType" : "json",
  12904. "success" : function(data) {
  12905. if(data != null && data != ""){
  12906. if ( data.status =="success"){
  12907. getfp();
  12908. alert("获取成功!");
  12909. }else {
  12910. alert(data.status);
  12911. }
  12912. }else {
  12913. alert("获取失败!");
  12914. }
  12915. },
  12916. "complete": function(){
  12917. layer.close(tip);
  12918. }
  12919. });
  12920. }else {
  12921. alert("请选择日期!");
  12922. }
  12923. },
  12924. "set" : function(){
  12925. if ( $("#fpid option:selected").text() !=""){
  12926. var tip = layer.load(2);
  12927. var gitem = $("#form1").serialize();
  12928. var jrjc;
  12929. if ($("#jrjc").prop('checked') == true){
  12930. jrjc = $("#departmentId").val();
  12931. }else {
  12932. jrjc ='N'
  12933. }
  12934. var url = "saverk.do";
  12935. $.ajax({
  12936. "url" : url,
  12937. "data" : {
  12938. "gitem" : gitem,
  12939. "jrjc" : jrjc
  12940. },
  12941. "type" : "POST",
  12942. "dataType" : "json",
  12943. "async" : true,
  12944. "success" : function(data) {
  12945. if(data.status =="success"){
  12946. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  12947. alert("入库成功!\n入库单号:"+data.rkdh+"");
  12948. }else {
  12949. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  12950. }
  12951. window.location.reload();
  12952. }else {
  12953. alert(msg);
  12954. }
  12955. },
  12956. "error": function(){
  12957. alert("确认失败!");
  12958. },
  12959. "complete": function(){
  12960. layer.close(tip);
  12961. }
  12962. });
  12963. }else {
  12964. alert("请选择发票!");
  12965. }
  12966. }
  12967. }
  12968. function getfp(){
  12969. var tip = layer.load(2);
  12970. var url = "getgyfp.do";
  12971. $.ajax({
  12972. "url" : url,
  12973. "type" : "POST",
  12974. "dataType" : "json",
  12975. "async" : true,
  12976. "success" : function(data) {
  12977. if(data != null && data != ""){
  12978. $("#fpid").empty();
  12979. $("#fpid").append("_$tag_____________$tag____");
  12980. for(var i = 0; i < data.length; i++){
  12981. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  12982. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  12983. }
  12984. }
  12985. },
  12986. "error" : function(msg){
  12987. },
  12988. "complete": function(){
  12989. layer.close(tip);
  12990. }
  12991. });
  12992. }
  12993. $("#fpid").change(function(){
  12994. var tip = layer.load(2);
  12995. var url = "getgyrkxx.do";
  12996. var sum_total=0;
  12997. $.ajax({
  12998. "url" : url,
  12999. "data" : {
  13000. "fpId" : $("#fpid").val()
  13001. },
  13002. "type" : "POST",
  13003. "dataType" : "json",
  13004. "async" : true,
  13005. "success" : function(data) {
  13006. $("#dataTable").html("");
  13007. if(data != null && data != ""){
  13008. var html = "";
  13009. for(var i = 0; i < data.length; i++){
  13010. var ID = data[i].id == null ? "" : data[i].id;
  13011. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  13012. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  13013. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  13014. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  13015. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  13016. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  13017. var GOODS = data[i].goods == null ? "" : data[i].goods;
  13018. var NAME = data[i].name == null ? "" : data[i].name;
  13019. var SPEC = data[i].spec == null ? "" : data[i].spec;
  13020. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  13021. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  13022. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  13023. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  13024. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  13025. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  13026. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  13027. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  13028. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  13029. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  13030. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  13031. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  13032. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  13033. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  13034. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  13035. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  13036. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  13037. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  13038. sum_total = sum_total + DSUMVALUE
  13039. var invoice_type_cn =null;
  13040. if (invoice_type =="00" ){
  13041. invoice_type_cn="销售发票";
  13042. }else if (invoice_type == "01") {
  13043. invoice_type_cn="更正(对冲)发票";
  13044. }else if (invoice_type == "02") {
  13045. invoice_type_cn="其它类型发票";
  13046. }
  13047. html += "_$ta";
  13048. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13049. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13050. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  13051. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  13052. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  13053. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  13054. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13055. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13056. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  13057. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  13058. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13059. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13060. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13061. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13062. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  13063. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  13064. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  13065. html += "_$tag";
  13066. }
  13067. html += "_$ta";
  13068. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13069. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13070. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13071. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13072. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13073. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13074. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13075. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13076. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13077. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13078. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13079. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13080. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13081. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13082. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13083. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13084. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13085. html += "_$tag_____________$tag_合计:_$tag___$tag";
  13086. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  13087. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13088. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13089. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13090. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13091. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13092. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13093. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13094. html += "_$tag";
  13095. $("#dataTable").html(html);
  13096. }else {
  13097. $("#dataTable").html("");
  13098. }
  13099. },
  13100. "error" : function(msg){
  13101. },
  13102. "complete": function(){
  13103. layer.close(tip);
  13104. }
  13105. });
  13106. });
  13107. Date.prototype.Format = function (fmt) {
  13108. var o = {
  13109. "M+": this.getMonth() + 1, //月份
  13110. "d+": this.getDate(), //日
  13111. "h+": this.getHours(), //小时
  13112. "m+": this.getMinutes(), //分
  13113. "s+": this.getSeconds(), //秒
  13114. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  13115. "S": this.getMilliseconds() //毫秒
  13116. };
  13117. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  13118. for (var k in o)
  13119. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  13120. return fmt;
  13121. }
  13122. $("#jrjc").change(function() {
  13123. if ($("#jrjc").prop('checked') == true){
  13124. $("#departmentId").removeAttr("disabled");
  13125. }else {
  13126. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13127. }
  13128. });
  13129. ----------------------------------- SOURCE END -------------------------------------
  13130. !STACK 0
  13131. java.lang.NullPointerException
  13132. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:53.562
  13133. !MESSAGE Error while processing working copy
  13134. !STACK 1
  13135. JavaScript Model Exception: java.lang.NullPointerException
  13136. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  13137. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  13138. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  13139. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  13140. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  13141. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  13142. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  13143. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  13144. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  13145. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  13146. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  13147. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  13148. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  13149. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  13150. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  13151. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  13152. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  13153. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  13154. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  13155. Caused by: java.lang.NullPointerException
  13156. Caused by: java.lang.NullPointerException
  13157. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:34:53.562
  13158. !MESSAGE java.lang.NullPointerException
  13159. !STACK 0
  13160. java.lang.NullPointerException
  13161. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:54.187
  13162. !MESSAGE Exception occurred during problem detection:
  13163. ----------------------------------- SOURCE BEGIN -------------------------------------
  13164. (function(){WdatePicker();})();
  13165. (function(){WdatePicker();})();
  13166. (function(){Data.get();})();
  13167. (function(){Data.set();})();
  13168. (function(){search();})();
  13169. $(function(){
  13170. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13171. getfp();
  13172. });
  13173. var Data = {
  13174. "get" : function(){
  13175. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  13176. var tip = layer.load(2);
  13177. var result="";
  13178. var url = "getgyxml.do";
  13179. $.ajax({
  13180. "url" : url,
  13181. "data" : {
  13182. "start_date" : $("#dateBegin").val(),
  13183. "end_date" : $("#dateEnd").val()
  13184. },
  13185. "type" : "POST",
  13186. "dataType" : "json",
  13187. "success" : function(data) {
  13188. if(data != null && data != ""){
  13189. if ( data.status =="success"){
  13190. getfp();
  13191. alert("获取成功!");
  13192. }else {
  13193. alert(data.status);
  13194. }
  13195. }else {
  13196. alert("获取失败!");
  13197. }
  13198. },
  13199. "complete": function(){
  13200. layer.close(tip);
  13201. }
  13202. });
  13203. }else {
  13204. alert("请选择日期!");
  13205. }
  13206. },
  13207. "set" : function(){
  13208. if ( $("#fpid option:selected").text() !=""){
  13209. var tip = layer.load(2);
  13210. var gitem = $("#form1").serialize();
  13211. var jrjc;
  13212. if ($("#jrjc").prop('checked') == true){
  13213. jrjc = $("#departmentId").val();
  13214. }else {
  13215. jrjc ='N'
  13216. }
  13217. var url = "saverk.do";
  13218. $.ajax({
  13219. "url" : url,
  13220. "data" : {
  13221. "gitem" : gitem,
  13222. "jrjc" : jrjc
  13223. },
  13224. "type" : "POST",
  13225. "dataType" : "json",
  13226. "async" : true,
  13227. "success" : function(data) {
  13228. if(data.status =="success"){
  13229. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  13230. alert("入库成功!\n入库单号:"+data.rkdh+"");
  13231. }else {
  13232. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  13233. }
  13234. window.location.reload();
  13235. }else {
  13236. alert(msg);
  13237. }
  13238. },
  13239. "error": function(){
  13240. alert("确认失败!");
  13241. },
  13242. "complete": function(){
  13243. layer.close(tip);
  13244. }
  13245. });
  13246. }else {
  13247. alert("请选择发票!");
  13248. }
  13249. }
  13250. }
  13251. function getfp(){
  13252. var tip = layer.load(2);
  13253. var url = "getgyfp.do";
  13254. $.ajax({
  13255. "url" : url,
  13256. "type" : "POST",
  13257. "dataType" : "json",
  13258. "async" : true,
  13259. "success" : function(data) {
  13260. if(data != null && data != ""){
  13261. $("#fpid").empty();
  13262. $("#fpid").append("_$tag_____________$tag____");
  13263. for(var i = 0; i < data.length; i++){
  13264. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  13265. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  13266. }
  13267. }
  13268. },
  13269. "error" : function(msg){
  13270. },
  13271. "complete": function(){
  13272. layer.close(tip);
  13273. }
  13274. });
  13275. }
  13276. $("#fpid").change(function(){
  13277. var tip = layer.load(2);
  13278. var url = "getgyrkxx.do";
  13279. var sum_total=0;
  13280. $.ajax({
  13281. "url" : url,
  13282. "data" : {
  13283. "fpId" : $("#fpid").val()
  13284. },
  13285. "type" : "POST",
  13286. "dataType" : "json",
  13287. "async" : true,
  13288. "success" : function(data) {
  13289. $("#dataTable").html("");
  13290. if(data != null && data != ""){
  13291. var html = "";
  13292. for(var i = 0; i < data.length; i++){
  13293. var ID = data[i].id == null ? "" : data[i].id;
  13294. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  13295. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  13296. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  13297. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  13298. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  13299. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  13300. var GOODS = data[i].goods == null ? "" : data[i].goods;
  13301. var NAME = data[i].name == null ? "" : data[i].name;
  13302. var SPEC = data[i].spec == null ? "" : data[i].spec;
  13303. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  13304. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  13305. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  13306. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  13307. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  13308. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  13309. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  13310. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  13311. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  13312. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  13313. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  13314. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  13315. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  13316. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  13317. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  13318. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  13319. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  13320. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  13321. sum_total = sum_total + DSUMVALUE
  13322. var invoice_type_cn =null;
  13323. if (invoice_type =="00" ){
  13324. invoice_type_cn="销售发票";
  13325. }else if (invoice_type == "01") {
  13326. invoice_type_cn="更正(对冲)发票";
  13327. }else if (invoice_type == "02") {
  13328. invoice_type_cn="其它类型发票";
  13329. }
  13330. html += "_$ta";
  13331. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13332. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13333. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  13334. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  13335. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  13336. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  13337. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13338. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13339. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  13340. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  13341. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13342. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13343. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13344. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13345. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  13346. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  13347. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  13348. html += "_$tag";
  13349. }
  13350. html += "_$ta";
  13351. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13352. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13353. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13354. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13355. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13356. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13357. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13358. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13359. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13360. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13361. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13362. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13363. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13364. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13365. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13366. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13367. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13368. html += "_$tag_____________$tag_合计:_$tag___$tag";
  13369. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  13370. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13371. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13372. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13373. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13374. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13375. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13376. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13377. html += "_$tag";
  13378. $("#dataTable").html(html);
  13379. }else {
  13380. $("#dataTable").html("");
  13381. }
  13382. },
  13383. "error" : function(msg){
  13384. },
  13385. "complete": function(){
  13386. layer.close(tip);
  13387. }
  13388. });
  13389. });
  13390. Date.prototype.Format = function (fmt) {
  13391. var o = {
  13392. "M+": this.getMonth() + 1, //月份
  13393. "d+": this.getDate(), //日
  13394. "h+": this.getHours(), //小时
  13395. "m+": this.getMinutes(), //分
  13396. "s+": this.getSeconds(), //秒
  13397. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  13398. "S": this.getMilliseconds() //毫秒
  13399. };
  13400. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  13401. for (var k in o)
  13402. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  13403. return fmt;
  13404. }
  13405. $("#jrjc").change(function() {
  13406. if ($("#jrjc").prop('checked') == true){
  13407. $("#departmentId").removeAttr("disabled");
  13408. }else {
  13409. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13410. }
  13411. });
  13412. ----------------------------------- SOURCE END -------------------------------------
  13413. !STACK 0
  13414. java.lang.NullPointerException
  13415. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:55.223
  13416. !MESSAGE Exception occurred during problem detection:
  13417. ----------------------------------- SOURCE BEGIN -------------------------------------
  13418. (function(){WdatePicker();})();
  13419. (function(){WdatePicker();})();
  13420. (function(){Data.get();})();
  13421. (function(){Data.set();})();
  13422. (function(){search();})();
  13423. $(function(){
  13424. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13425. getfp();
  13426. });
  13427. var Data = {
  13428. "get" : function(){
  13429. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  13430. var tip = layer.load(2);
  13431. var result="";
  13432. var url = "getgyxml.do";
  13433. $.ajax({
  13434. "url" : url,
  13435. "data" : {
  13436. "start_date" : $("#dateBegin").val(),
  13437. "end_date" : $("#dateEnd").val()
  13438. },
  13439. "type" : "POST",
  13440. "dataType" : "json",
  13441. "success" : function(data) {
  13442. if(data != null && data != ""){
  13443. if ( data.status =="success"){
  13444. getfp();
  13445. alert("获取成功!");
  13446. }else {
  13447. alert(data.status);
  13448. }
  13449. }else {
  13450. alert("获取失败!");
  13451. }
  13452. },
  13453. "complete": function(){
  13454. layer.close(tip);
  13455. }
  13456. });
  13457. }else {
  13458. alert("请选择日期!");
  13459. }
  13460. },
  13461. "set" : function(){
  13462. if ( $("#fpid option:selected").text() !=""){
  13463. var tip = layer.load(2);
  13464. var gitem = $("#form1").serialize();
  13465. var jrjc;
  13466. if ($("#jrjc").prop('checked') == true){
  13467. jrjc = $("#departmentId").val();
  13468. }else {
  13469. jrjc ='N'
  13470. }
  13471. var url = "saverk.do";
  13472. $.ajax({
  13473. "url" : url,
  13474. "data" : {
  13475. "gitem" : gitem,
  13476. "jrjc" : jrjc
  13477. },
  13478. "type" : "POST",
  13479. "dataType" : "json",
  13480. "async" : true,
  13481. "success" : function(data) {
  13482. if(data.status =="success"){
  13483. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  13484. alert("入库成功!\n入库单号:"+data.rkdh+"");
  13485. }else {
  13486. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  13487. }
  13488. window.location.reload();
  13489. }else {
  13490. alert(msg);
  13491. }
  13492. },
  13493. "error": function(){
  13494. alert("确认失败!");
  13495. },
  13496. "complete": function(){
  13497. layer.close(tip);
  13498. }
  13499. });
  13500. }else {
  13501. alert("请选择发票!");
  13502. }
  13503. }
  13504. }
  13505. function getfp(){
  13506. var tip = layer.load(2);
  13507. var url = "getgyfp.do";
  13508. $.ajax({
  13509. "url" : url,
  13510. "type" : "POST",
  13511. "dataType" : "json",
  13512. "async" : true,
  13513. "success" : function(data) {
  13514. if(data != null && data != ""){
  13515. $("#fpid").empty();
  13516. $("#fpid").append("_$tag_____________$tag____");
  13517. for(var i = 0; i < data.length; i++){
  13518. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  13519. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  13520. }
  13521. }
  13522. },
  13523. "error" : function(msg){
  13524. },
  13525. "complete": function(){
  13526. layer.close(tip);
  13527. }
  13528. });
  13529. }
  13530. $("#fpid").change(function(){
  13531. var tip = layer.load(2);
  13532. var url = "getgyrkxx.do";
  13533. var sum_total=0;
  13534. $.ajax({
  13535. "url" : url,
  13536. "data" : {
  13537. "fpId" : $("#fpid").val()
  13538. },
  13539. "type" : "POST",
  13540. "dataType" : "json",
  13541. "async" : true,
  13542. "success" : function(data) {
  13543. $("#dataTable").html("");
  13544. if(data != null && data != ""){
  13545. var html = "";
  13546. for(var i = 0; i < data.length; i++){
  13547. var ID = data[i].id == null ? "" : data[i].id;
  13548. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  13549. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  13550. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  13551. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  13552. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  13553. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  13554. var GOODS = data[i].goods == null ? "" : data[i].goods;
  13555. var NAME = data[i].name == null ? "" : data[i].name;
  13556. var SPEC = data[i].spec == null ? "" : data[i].spec;
  13557. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  13558. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  13559. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  13560. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  13561. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  13562. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  13563. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  13564. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  13565. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  13566. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  13567. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  13568. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  13569. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  13570. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  13571. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  13572. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  13573. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  13574. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  13575. sum_total = sum_total + DSUMVALUE
  13576. var invoice_type_cn =null;
  13577. if (invoice_type =="00" ){
  13578. invoice_type_cn="销售发票";
  13579. }else if (invoice_type == "01") {
  13580. invoice_type_cn="更正(对冲)发票";
  13581. }else if (invoice_type == "02") {
  13582. invoice_type_cn="其它类型发票";
  13583. }
  13584. html += "_$ta";
  13585. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13586. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13587. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  13588. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  13589. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  13590. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  13591. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13592. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13593. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  13594. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  13595. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13596. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13597. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13598. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13599. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  13600. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  13601. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  13602. html += "_$tag";
  13603. }
  13604. html += "_$ta";
  13605. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13606. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13607. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13608. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13609. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13610. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13611. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13612. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13613. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13614. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13615. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13616. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13617. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13618. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13619. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13620. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13621. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13622. html += "_$tag_____________$tag_合计:_$tag___$tag";
  13623. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  13624. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13625. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13626. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13627. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13628. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13629. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13630. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13631. html += "_$tag";
  13632. $("#dataTable").html(html);
  13633. }else {
  13634. $("#dataTable").html("");
  13635. }
  13636. },
  13637. "error" : function(msg){
  13638. },
  13639. "complete": function(){
  13640. layer.close(tip);
  13641. }
  13642. });
  13643. });
  13644. Date.prototype.Format = function (fmt) {
  13645. var o = {
  13646. "M+": this.getMonth() + 1, //月份
  13647. "d+": this.getDate(), //日
  13648. "h+": this.getHours(), //小时
  13649. "m+": this.getMinutes(), //分
  13650. "s+": this.getSeconds(), //秒
  13651. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  13652. "S": this.getMilliseconds() //毫秒
  13653. };
  13654. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  13655. for (var k in o)
  13656. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  13657. return fmt;
  13658. }
  13659. $("#jrjc").change(function() {
  13660. if ($("#jrjc").prop('checked') == true){
  13661. $("#departmentId").removeAttr("disabled");
  13662. }else {
  13663. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13664. }
  13665. });
  13666. ----------------------------------- SOURCE END -------------------------------------
  13667. !STACK 0
  13668. java.lang.NullPointerException
  13669. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:55.224
  13670. !MESSAGE Error while processing working copy
  13671. !STACK 1
  13672. JavaScript Model Exception: java.lang.NullPointerException
  13673. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  13674. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  13675. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  13676. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  13677. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  13678. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  13679. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  13680. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  13681. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  13682. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  13683. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  13684. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  13685. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  13686. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  13687. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  13688. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  13689. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  13690. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  13691. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  13692. Caused by: java.lang.NullPointerException
  13693. Caused by: java.lang.NullPointerException
  13694. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:34:55.224
  13695. !MESSAGE java.lang.NullPointerException
  13696. !STACK 0
  13697. java.lang.NullPointerException
  13698. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:55.857
  13699. !MESSAGE Exception occurred during problem detection:
  13700. ----------------------------------- SOURCE BEGIN -------------------------------------
  13701. (function(){WdatePicker();})();
  13702. (function(){WdatePicker();})();
  13703. (function(){Data.get();})();
  13704. (function(){Data.set();})();
  13705. (function(){search();})();
  13706. $(function(){
  13707. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13708. getfp();
  13709. });
  13710. var Data = {
  13711. "get" : function(){
  13712. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  13713. var tip = layer.load(2);
  13714. var result="";
  13715. var url = "getgyxml.do";
  13716. $.ajax({
  13717. "url" : url,
  13718. "data" : {
  13719. "start_date" : $("#dateBegin").val(),
  13720. "end_date" : $("#dateEnd").val()
  13721. },
  13722. "type" : "POST",
  13723. "dataType" : "json",
  13724. "success" : function(data) {
  13725. if(data != null && data != ""){
  13726. if ( data.status =="success"){
  13727. getfp();
  13728. alert("获取成功!");
  13729. }else {
  13730. alert(data.status);
  13731. }
  13732. }else {
  13733. alert("获取失败!");
  13734. }
  13735. },
  13736. "complete": function(){
  13737. layer.close(tip);
  13738. }
  13739. });
  13740. }else {
  13741. alert("请选择日期!");
  13742. }
  13743. },
  13744. "set" : function(){
  13745. if ( $("#fpid option:selected").text() !=""){
  13746. var tip = layer.load(2);
  13747. var gitem = $("#form1").serialize();
  13748. var jrjc;
  13749. if ($("#jrjc").prop('checked') == true){
  13750. jrjc = $("#departmentId").val();
  13751. }else {
  13752. jrjc ='N'
  13753. }
  13754. var url = "saverk.do";
  13755. $.ajax({
  13756. "url" : url,
  13757. "data" : {
  13758. "gitem" : gitem,
  13759. "jrjc" : jrjc
  13760. },
  13761. "type" : "POST",
  13762. "dataType" : "json",
  13763. "async" : true,
  13764. "success" : function(data) {
  13765. if(data.status =="success"){
  13766. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  13767. alert("入库成功!\n入库单号:"+data.rkdh+"");
  13768. }else {
  13769. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  13770. }
  13771. window.location.reload();
  13772. }else {
  13773. alert(msg);
  13774. }
  13775. },
  13776. "error": function(){
  13777. alert("确认失败!");
  13778. },
  13779. "complete": function(){
  13780. layer.close(tip);
  13781. }
  13782. });
  13783. }else {
  13784. alert("请选择发票!");
  13785. }
  13786. }
  13787. }
  13788. function getfp(){
  13789. var tip = layer.load(2);
  13790. var url = "getgyfp.do";
  13791. $.ajax({
  13792. "url" : url,
  13793. "type" : "POST",
  13794. "dataType" : "json",
  13795. "async" : true,
  13796. "success" : function(data) {
  13797. if(data != null && data != ""){
  13798. $("#fpid").empty();
  13799. $("#fpid").append("_$tag_____________$tag____");
  13800. for(var i = 0; i < data.length; i++){
  13801. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  13802. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  13803. }
  13804. }
  13805. },
  13806. "error" : function(msg){
  13807. },
  13808. "complete": function(){
  13809. layer.close(tip);
  13810. }
  13811. });
  13812. }
  13813. $("#fpid").change(function(){
  13814. var tip = layer.load(2);
  13815. var url = "getgyrkxx.do";
  13816. var sum_total=0;
  13817. $.ajax({
  13818. "url" : url,
  13819. "data" : {
  13820. "fpId" : $("#fpid").val()
  13821. },
  13822. "type" : "POST",
  13823. "dataType" : "json",
  13824. "async" : true,
  13825. "success" : function(data) {
  13826. $("#dataTable").html("");
  13827. if(data != null && data != ""){
  13828. var html = "";
  13829. for(var i = 0; i < data.length; i++){
  13830. var ID = data[i].id == null ? "" : data[i].id;
  13831. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  13832. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  13833. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  13834. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  13835. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  13836. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  13837. var GOODS = data[i].goods == null ? "" : data[i].goods;
  13838. var NAME = data[i].name == null ? "" : data[i].name;
  13839. var SPEC = data[i].spec == null ? "" : data[i].spec;
  13840. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  13841. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  13842. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  13843. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  13844. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  13845. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  13846. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  13847. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  13848. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  13849. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  13850. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  13851. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  13852. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  13853. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  13854. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  13855. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  13856. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  13857. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  13858. sum_total = sum_total + DSUMVALUE
  13859. var invoice_type_cn =null;
  13860. if (invoice_type =="00" ){
  13861. invoice_type_cn="销售发票";
  13862. }else if (invoice_type == "01") {
  13863. invoice_type_cn="更正(对冲)发票";
  13864. }else if (invoice_type == "02") {
  13865. invoice_type_cn="其它类型发票";
  13866. }
  13867. html += "_$ta";
  13868. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13869. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13870. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  13871. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  13872. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  13873. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  13874. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13875. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13876. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  13877. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  13878. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13879. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13880. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13881. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13882. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  13883. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  13884. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  13885. html += "_$tag";
  13886. }
  13887. html += "_$ta";
  13888. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13889. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13890. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13891. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13892. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13893. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13894. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13895. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13896. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13897. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13898. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13899. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13900. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13901. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13902. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13903. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13904. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13905. html += "_$tag_____________$tag_合计:_$tag___$tag";
  13906. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  13907. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13908. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13909. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13910. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13911. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13912. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13913. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13914. html += "_$tag";
  13915. $("#dataTable").html(html);
  13916. }else {
  13917. $("#dataTable").html("");
  13918. }
  13919. },
  13920. "error" : function(msg){
  13921. },
  13922. "complete": function(){
  13923. layer.close(tip);
  13924. }
  13925. });
  13926. });
  13927. Date.prototype.Format = function (fmt) {
  13928. var o = {
  13929. "M+": this.getMonth() + 1, //月份
  13930. "d+": this.getDate(), //日
  13931. "h+": this.getHours(), //小时
  13932. "m+": this.getMinutes(), //分
  13933. "s+": this.getSeconds(), //秒
  13934. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  13935. "S": this.getMilliseconds() //毫秒
  13936. };
  13937. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  13938. for (var k in o)
  13939. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  13940. return fmt;
  13941. }
  13942. $("#jrjc").change(function() {
  13943. if ($("#jrjc").prop('checked') == true){
  13944. $("#departmentId").removeAttr("disabled");
  13945. }else {
  13946. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13947. }
  13948. });
  13949. ----------------------------------- SOURCE END -------------------------------------
  13950. !STACK 0
  13951. java.lang.NullPointerException
  13952. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:56.682
  13953. !MESSAGE Exception occurred during problem detection:
  13954. ----------------------------------- SOURCE BEGIN -------------------------------------
  13955. (function(){WdatePicker();})();
  13956. (function(){WdatePicker();})();
  13957. (function(){Data.get();})();
  13958. (function(){Data.set();})();
  13959. (function(){search();})();
  13960. $(function(){
  13961. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13962. getfp();
  13963. });
  13964. var Data = {
  13965. "get" : function(){
  13966. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  13967. var tip = layer.load(2);
  13968. var result="";
  13969. var url = "getgyxml.do";
  13970. $.ajax({
  13971. "url" : url,
  13972. "data" : {
  13973. "start_date" : $("#dateBegin").val(),
  13974. "end_date" : $("#dateEnd").val()
  13975. },
  13976. "type" : "POST",
  13977. "dataType" : "json",
  13978. "success" : function(data) {
  13979. if(data != null && data != ""){
  13980. if ( data.status =="success"){
  13981. getfp();
  13982. alert("获取成功!");
  13983. }else {
  13984. alert(data.status);
  13985. }
  13986. }else {
  13987. alert("获取失败!");
  13988. }
  13989. },
  13990. "complete": function(){
  13991. layer.close(tip);
  13992. }
  13993. });
  13994. }else {
  13995. alert("请选择日期!");
  13996. }
  13997. },
  13998. "set" : function(){
  13999. if ( $("#fpid option:selected").text() !=""){
  14000. var tip = layer.load(2);
  14001. var gitem = $("#form1").serialize();
  14002. var jrjc;
  14003. if ($("#jrjc").prop('checked') == true){
  14004. jrjc = $("#departmentId").val();
  14005. }else {
  14006. jrjc ='N'
  14007. }
  14008. var url = "saverk.do";
  14009. $.ajax({
  14010. "url" : url,
  14011. "data" : {
  14012. "gitem" : gitem,
  14013. "jrjc" : jrjc
  14014. },
  14015. "type" : "POST",
  14016. "dataType" : "json",
  14017. "async" : true,
  14018. "success" : function(data) {
  14019. if(data.status =="success"){
  14020. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  14021. alert("入库成功!\n入库单号:"+data.rkdh+"");
  14022. }else {
  14023. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  14024. }
  14025. window.location.reload();
  14026. }else {
  14027. alert(msg);
  14028. }
  14029. },
  14030. "error": function(){
  14031. alert("确认失败!");
  14032. },
  14033. "complete": function(){
  14034. layer.close(tip);
  14035. }
  14036. });
  14037. }else {
  14038. alert("请选择发票!");
  14039. }
  14040. }
  14041. }
  14042. function getfp(){
  14043. var tip = layer.load(2);
  14044. var url = "getgyfp.do";
  14045. $.ajax({
  14046. "url" : url,
  14047. "type" : "POST",
  14048. "dataType" : "json",
  14049. "async" : true,
  14050. "success" : function(data) {
  14051. if(data != null && data != ""){
  14052. $("#fpid").empty();
  14053. $("#fpid").append("_$tag_____________$tag____");
  14054. for(var i = 0; i < data.length; i++){
  14055. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  14056. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  14057. }
  14058. }
  14059. },
  14060. "error" : function(msg){
  14061. },
  14062. "complete": function(){
  14063. layer.close(tip);
  14064. }
  14065. });
  14066. }
  14067. $("#fpid").change(function(){
  14068. var tip = layer.load(2);
  14069. var url = "getgyrkxx.do";
  14070. var sum_total=0;
  14071. $.ajax({
  14072. "url" : url,
  14073. "data" : {
  14074. "fpId" : $("#fpid").val()
  14075. },
  14076. "type" : "POST",
  14077. "dataType" : "json",
  14078. "async" : true,
  14079. "success" : function(data) {
  14080. $("#dataTable").html("");
  14081. if(data != null && data != ""){
  14082. var html = "";
  14083. for(var i = 0; i < data.length; i++){
  14084. var ID = data[i].id == null ? "" : data[i].id;
  14085. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  14086. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  14087. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  14088. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  14089. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  14090. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  14091. var GOODS = data[i].goods == null ? "" : data[i].goods;
  14092. var NAME = data[i].name == null ? "" : data[i].name;
  14093. var SPEC = data[i].spec == null ? "" : data[i].spec;
  14094. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  14095. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  14096. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  14097. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  14098. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  14099. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  14100. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  14101. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  14102. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  14103. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  14104. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  14105. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  14106. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  14107. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  14108. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  14109. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  14110. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  14111. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  14112. sum_total = sum_total + DSUMVALUE
  14113. var invoice_type_cn =null;
  14114. if (invoice_type =="00" ){
  14115. invoice_type_cn="销售发票";
  14116. }else if (invoice_type == "01") {
  14117. invoice_type_cn="更正(对冲)发票";
  14118. }else if (invoice_type == "02") {
  14119. invoice_type_cn="其它类型发票";
  14120. }
  14121. html += "_$ta";
  14122. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  14123. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  14124. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  14125. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  14126. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  14127. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  14128. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  14129. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  14130. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  14131. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  14132. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  14133. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  14134. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  14135. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  14136. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  14137. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  14138. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  14139. html += "_$tag";
  14140. }
  14141. html += "_$ta";
  14142. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14143. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14144. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14145. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14146. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14147. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14148. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14149. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14150. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14151. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14152. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14153. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14154. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14155. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14156. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14157. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14158. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14159. html += "_$tag_____________$tag_合计:_$tag___$tag";
  14160. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  14161. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14162. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14163. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14164. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14165. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14166. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14167. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14168. html += "_$tag";
  14169. $("#dataTable").html(html);
  14170. }else {
  14171. $("#dataTable").html("");
  14172. }
  14173. },
  14174. "error" : function(msg){
  14175. },
  14176. "complete": function(){
  14177. layer.close(tip);
  14178. }
  14179. });
  14180. });
  14181. Date.prototype.Format = function (fmt) {
  14182. var o = {
  14183. "M+": this.getMonth() + 1, //月份
  14184. "d+": this.getDate(), //日
  14185. "h+": this.getHours(), //小时
  14186. "m+": this.getMinutes(), //分
  14187. "s+": this.getSeconds(), //秒
  14188. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  14189. "S": this.getMilliseconds() //毫秒
  14190. };
  14191. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  14192. for (var k in o)
  14193. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  14194. return fmt;
  14195. }
  14196. $("#jrjc").change(function() {
  14197. if ($("#jrjc").prop('checked') == true){
  14198. $("#departmentId").removeAttr("disabled");
  14199. }else {
  14200. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  14201. }
  14202. });
  14203. ----------------------------------- SOURCE END -------------------------------------
  14204. !STACK 0
  14205. java.lang.NullPointerException
  14206. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:56.682
  14207. !MESSAGE Error while processing working copy
  14208. !STACK 1
  14209. JavaScript Model Exception: java.lang.NullPointerException
  14210. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  14211. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  14212. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  14213. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  14214. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  14215. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  14216. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  14217. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  14218. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  14219. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  14220. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  14221. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  14222. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  14223. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  14224. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  14225. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  14226. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  14227. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  14228. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  14229. Caused by: java.lang.NullPointerException
  14230. Caused by: java.lang.NullPointerException
  14231. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:34:56.683
  14232. !MESSAGE java.lang.NullPointerException
  14233. !STACK 0
  14234. java.lang.NullPointerException
  14235. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:57.299
  14236. !MESSAGE Exception occurred during problem detection:
  14237. ----------------------------------- SOURCE BEGIN -------------------------------------
  14238. (function(){WdatePicker();})();
  14239. (function(){WdatePicker();})();
  14240. (function(){Data.get();})();
  14241. (function(){Data.set();})();
  14242. (function(){search();})();
  14243. $(function(){
  14244. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  14245. getfp();
  14246. });
  14247. var Data = {
  14248. "get" : function(){
  14249. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  14250. var tip = layer.load(2);
  14251. var result="";
  14252. var url = "getgyxml.do";
  14253. $.ajax({
  14254. "url" : url,
  14255. "data" : {
  14256. "start_date" : $("#dateBegin").val(),
  14257. "end_date" : $("#dateEnd").val()
  14258. },
  14259. "type" : "POST",
  14260. "dataType" : "json",
  14261. "success" : function(data) {
  14262. if(data != null && data != ""){
  14263. if ( data.status =="success"){
  14264. getfp();
  14265. alert("获取成功!");
  14266. }else {
  14267. alert(data.status);
  14268. }
  14269. }else {
  14270. alert("获取失败!");
  14271. }
  14272. },
  14273. "complete": function(){
  14274. layer.close(tip);
  14275. }
  14276. });
  14277. }else {
  14278. alert("请选择日期!");
  14279. }
  14280. },
  14281. "set" : function(){
  14282. if ( $("#fpid option:selected").text() !=""){
  14283. var tip = layer.load(2);
  14284. var gitem = $("#form1").serialize();
  14285. var jrjc;
  14286. if ($("#jrjc").prop('checked') == true){
  14287. jrjc = $("#departmentId").val();
  14288. }else {
  14289. jrjc ='N'
  14290. }
  14291. var url = "saverk.do";
  14292. $.ajax({
  14293. "url" : url,
  14294. "data" : {
  14295. "gitem" : gitem,
  14296. "jrjc" : jrjc
  14297. },
  14298. "type" : "POST",
  14299. "dataType" : "json",
  14300. "async" : true,
  14301. "success" : function(data) {
  14302. if(data.status =="success"){
  14303. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  14304. alert("入库成功!\n入库单号:"+data.rkdh+"");
  14305. }else {
  14306. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  14307. }
  14308. window.location.reload();
  14309. }else {
  14310. alert(msg);
  14311. }
  14312. },
  14313. "error": function(){
  14314. alert("确认失败!");
  14315. },
  14316. "complete": function(){
  14317. layer.close(tip);
  14318. }
  14319. });
  14320. }else {
  14321. alert("请选择发票!");
  14322. }
  14323. }
  14324. }
  14325. function getfp(){
  14326. var tip = layer.load(2);
  14327. var url = "getgyfp.do";
  14328. $.ajax({
  14329. "url" : url,
  14330. "type" : "POST",
  14331. "dataType" : "json",
  14332. "async" : true,
  14333. "success" : function(data) {
  14334. if(data != null && data != ""){
  14335. $("#fpid").empty();
  14336. $("#fpid").append("_$tag_____________$tag____");
  14337. for(var i = 0; i < data.length; i++){
  14338. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  14339. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  14340. }
  14341. }
  14342. },
  14343. "error" : function(msg){
  14344. },
  14345. "complete": function(){
  14346. layer.close(tip);
  14347. }
  14348. });
  14349. }
  14350. $("#fpid").change(function(){
  14351. var tip = layer.load(2);
  14352. var url = "getgyrkxx.do";
  14353. var sum_total=0;
  14354. $.ajax({
  14355. "url" : url,
  14356. "data" : {
  14357. "fpId" : $("#fpid").val()
  14358. },
  14359. "type" : "POST",
  14360. "dataType" : "json",
  14361. "async" : true,
  14362. "success" : function(data) {
  14363. $("#dataTable").html("");
  14364. if(data != null && data != ""){
  14365. var html = "";
  14366. for(var i = 0; i < data.length; i++){
  14367. var ID = data[i].id == null ? "" : data[i].id;
  14368. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  14369. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  14370. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  14371. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  14372. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  14373. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  14374. var GOODS = data[i].goods == null ? "" : data[i].goods;
  14375. var NAME = data[i].name == null ? "" : data[i].name;
  14376. var SPEC = data[i].spec == null ? "" : data[i].spec;
  14377. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  14378. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  14379. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  14380. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  14381. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  14382. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  14383. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  14384. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  14385. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  14386. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  14387. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  14388. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  14389. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  14390. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  14391. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  14392. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  14393. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  14394. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  14395. sum_total = sum_total + DSUMVALUE
  14396. var invoice_type_cn =null;
  14397. if (invoice_type =="00" ){
  14398. invoice_type_cn="销售发票";
  14399. }else if (invoice_type == "01") {
  14400. invoice_type_cn="更正(对冲)发票";
  14401. }else if (invoice_type == "02") {
  14402. invoice_type_cn="其它类型发票";
  14403. }
  14404. html += "_$ta";
  14405. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  14406. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  14407. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  14408. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  14409. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  14410. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  14411. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  14412. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  14413. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  14414. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  14415. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  14416. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  14417. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  14418. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  14419. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  14420. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  14421. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  14422. html += "_$tag";
  14423. }
  14424. html += "_$ta";
  14425. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14426. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14427. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14428. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14429. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14430. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14431. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14432. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14433. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14434. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14435. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14436. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14437. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14438. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14439. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14440. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14441. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14442. html += "_$tag_____________$tag_合计:_$tag___$tag";
  14443. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  14444. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14445. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14446. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14447. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14448. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14449. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14450. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14451. html += "_$tag";
  14452. $("#dataTable").html(html);
  14453. }else {
  14454. $("#dataTable").html("");
  14455. }
  14456. },
  14457. "error" : function(msg){
  14458. },
  14459. "complete": function(){
  14460. layer.close(tip);
  14461. }
  14462. });
  14463. });
  14464. Date.prototype.Format = function (fmt) {
  14465. var o = {
  14466. "M+": this.getMonth() + 1, //月份
  14467. "d+": this.getDate(), //日
  14468. "h+": this.getHours(), //小时
  14469. "m+": this.getMinutes(), //分
  14470. "s+": this.getSeconds(), //秒
  14471. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  14472. "S": this.getMilliseconds() //毫秒
  14473. };
  14474. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  14475. for (var k in o)
  14476. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  14477. return fmt;
  14478. }
  14479. $("#jrjc").change(function() {
  14480. if ($("#jrjc").prop('checked') == true){
  14481. $("#departmentId").removeAttr("disabled");
  14482. }else {
  14483. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  14484. }
  14485. });
  14486. ----------------------------------- SOURCE END -------------------------------------
  14487. !STACK 0
  14488. java.lang.NullPointerException