.bak_2.log 982 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437
  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_1.log
  9. Created Time: 2018-07-23 09:30:49.274
  10. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:30:49.274
  11. !MESSAGE Error while processing working copy
  12. !STACK 1
  13. JavaScript Model Exception: java.lang.NullPointerException
  14. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  15. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  16. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  17. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  18. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  19. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  20. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  21. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  22. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  23. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  24. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  25. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  26. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  27. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  28. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  29. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  30. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  31. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  32. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  33. Caused by: java.lang.NullPointerException
  34. Caused by: java.lang.NullPointerException
  35. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:30:49.275
  36. !MESSAGE java.lang.NullPointerException
  37. !STACK 0
  38. java.lang.NullPointerException
  39. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:30:50.323
  40. !MESSAGE Exception occurred during problem detection:
  41. ----------------------------------- SOURCE BEGIN -------------------------------------
  42. (function(){WdatePicker();})();
  43. (function(){WdatePicker();})();
  44. (function(){Data.get();})();
  45. (function(){Data.set();})();
  46. (function(){search();})();
  47. $(function(){
  48. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  49. getfp();
  50. });
  51. var Data = {
  52. "get" : function(){
  53. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  54. var tip = layer.load(2);
  55. var result="";
  56. var url = "getgyxml.do";
  57. $.ajax({
  58. "url" : url,
  59. "data" : {
  60. "start_date" : $("#dateBegin").val(),
  61. "end_date" : $("#dateEnd").val()
  62. },
  63. "type" : "POST",
  64. "dataType" : "json",
  65. "success" : function(data) {
  66. if(data != null && data != ""){
  67. if ( data.status =="success"){
  68. getfp();
  69. alert("获取成功!");
  70. }else {
  71. alert(data.status);
  72. }
  73. }else {
  74. alert("获取失败!");
  75. }
  76. },
  77. "complete": function(){
  78. layer.close(tip);
  79. }
  80. });
  81. }else {
  82. alert("请选择日期!");
  83. }
  84. },
  85. "set" : function(){
  86. if ( $("#fpid option:selected").text() !=""){
  87. var tip = layer.load(2);
  88. var gitem = $("#form1").serialize();
  89. var jrjc;
  90. if ($("#jrjc").prop('checked') == true){
  91. jrjc = $("#departmentId").val();
  92. }else {
  93. jrjc ='N'
  94. }
  95. var url = "saverk.do";
  96. $.ajax({
  97. "url" : url,
  98. "data" : {
  99. "gitem" : gitem,
  100. "jrjc" : jrjc
  101. },
  102. "type" : "POST",
  103. "dataType" : "json",
  104. "async" : true,
  105. "success" : function(data) {
  106. if(data.status =="success"){
  107. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  108. alert("入库成功!\n入库单号:"+data.rkdh+"");
  109. }else {
  110. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  111. }
  112. window.location.reload();
  113. }else {
  114. alert(msg);
  115. }
  116. },
  117. "error": function(){
  118. alert("确认失败!");
  119. },
  120. "complete": function(){
  121. layer.close(tip);
  122. }
  123. });
  124. }else {
  125. alert("请选择发票!");
  126. }
  127. }
  128. }
  129. function getfp(){
  130. var tip = layer.load(2);
  131. var url = "getgyfp.do";
  132. $.ajax({
  133. "url" : url,
  134. "type" : "POST",
  135. "dataType" : "json",
  136. "async" : true,
  137. "success" : function(data) {
  138. if(data != null && data != ""){
  139. $("#fpid").empty();
  140. $("#fpid").append("_$tag_____________$tag____");
  141. for(var i = 0; i < data.length; i++){
  142. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  143. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  144. }
  145. }
  146. },
  147. "error" : function(msg){
  148. },
  149. "complete": function(){
  150. layer.close(tip);
  151. }
  152. });
  153. }
  154. $("#fpid").change(function(){
  155. var tip = layer.load(2);
  156. var url = "getgyrkxx.do";
  157. var sum_total=0;
  158. $.ajax({
  159. "url" : url,
  160. "data" : {
  161. "fpId" : $("#fpid").val()
  162. },
  163. "type" : "POST",
  164. "dataType" : "json",
  165. "async" : true,
  166. "success" : function(data) {
  167. $("#dataTable").html("");
  168. if(data != null && data != ""){
  169. var html = "";
  170. for(var i = 0; i < data.length; i++){
  171. var ID = data[i].id == null ? "" : data[i].id;
  172. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  173. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  174. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  175. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  176. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  177. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  178. var GOODS = data[i].goods == null ? "" : data[i].goods;
  179. var NAME = data[i].name == null ? "" : data[i].name;
  180. var SPEC = data[i].spec == null ? "" : data[i].spec;
  181. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  182. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  183. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  184. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  185. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  186. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  187. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  188. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  189. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  190. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  191. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  192. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  193. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  194. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  195. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  196. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  197. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  198. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  199. sum_total = sum_total + DSUMVALUE
  200. var invoice_type_cn =null;
  201. if (invoice_type =="00" ){
  202. invoice_type_cn="销售发票";
  203. }else if (invoice_type == "01") {
  204. invoice_type_cn="更正(对冲)发票";
  205. }else if (invoice_type == "02") {
  206. invoice_type_cn="其它类型发票";
  207. }
  208. html += "_$ta";
  209. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  210. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  211. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  212. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  213. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  214. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  215. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  216. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  217. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  218. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  219. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  220. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  221. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  222. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  223. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  224. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  225. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  226. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  227. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  228. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  229. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  230. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  231. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  232. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  233. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  234. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  235. html += "_$tag";
  236. }
  237. html += "_$ta";
  238. html += "_$tag_____________$tag____________________________________________________________________$tag";
  239. html += "_$tag_____________$tag____________________________________________________________________$tag";
  240. html += "_$tag_____________$tag____________________________________________________________________$tag";
  241. html += "_$tag_____________$tag____________________________________________________________________$tag";
  242. html += "_$tag_____________$tag____________________________________________________________________$tag";
  243. html += "_$tag_____________$tag____________________________________________________________________$tag";
  244. html += "_$tag_____________$tag____________________________________________________________________$tag";
  245. html += "_$tag_____________$tag____________________________________________________________________$tag";
  246. html += "_$tag_____________$tag____________________________________________________________________$tag";
  247. html += "_$tag_____________$tag____________________________________________________________________$tag";
  248. html += "_$tag_____________$tag____________________________________________________________________$tag";
  249. html += "_$tag_____________$tag____________________________________________________________________$tag";
  250. html += "_$tag_____________$tag____________________________________________________________________$tag";
  251. html += "_$tag_____________$tag____________________________________________________________________$tag";
  252. html += "_$tag_____________$tag____________________________________________________________________$tag";
  253. html += "_$tag_____________$tag____________________________________________________________________$tag";
  254. html += "_$tag_____________$tag____________________________________________________________________$tag";
  255. html += "_$tag_____________$tag_合计:_$tag___$tag";
  256. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  257. html += "_$tag_____________$tag____________________________________________________________________$tag";
  258. html += "_$tag_____________$tag____________________________________________________________________$tag";
  259. html += "_$tag_____________$tag____________________________________________________________________$tag";
  260. html += "_$tag_____________$tag____________________________________________________________________$tag";
  261. html += "_$tag_____________$tag____________________________________________________________________$tag";
  262. html += "_$tag_____________$tag____________________________________________________________________$tag";
  263. html += "_$tag_____________$tag____________________________________________________________________$tag";
  264. html += "_$tag";
  265. $("#dataTable").html(html);
  266. }else {
  267. $("#dataTable").html("");
  268. }
  269. },
  270. "error" : function(msg){
  271. },
  272. "complete": function(){
  273. layer.close(tip);
  274. }
  275. });
  276. });
  277. Date.prototype.Format = function (fmt) {
  278. var o = {
  279. "M+": this.getMonth() + 1, //月份
  280. "d+": this.getDate(), //日
  281. "h+": this.getHours(), //小时
  282. "m+": this.getMinutes(), //分
  283. "s+": this.getSeconds(), //秒
  284. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  285. "S": this.getMilliseconds() //毫秒
  286. };
  287. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  288. for (var k in o)
  289. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  290. return fmt;
  291. }
  292. $("#jrjc").change(function() {
  293. if ($("#jrjc").prop('checked') == true){
  294. $("#departmentId").removeAttr("disabled");
  295. }else {
  296. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  297. }
  298. });
  299. ----------------------------------- SOURCE END -------------------------------------
  300. !STACK 0
  301. java.lang.NullPointerException
  302. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:31:11.804
  303. !MESSAGE Exception occurred during problem detection:
  304. ----------------------------------- SOURCE BEGIN -------------------------------------
  305. (function(){WdatePicker();})();
  306. (function(){WdatePicker();})();
  307. (function(){Data.get();})();
  308. (function(){Data.set();})();
  309. (function(){search();})();
  310. $(function(){
  311. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  312. getfp();
  313. });
  314. var Data = {
  315. "get" : function(){
  316. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  317. var tip = layer.load(2);
  318. var result="";
  319. var url = "getgyxml.do";
  320. $.ajax({
  321. "url" : url,
  322. "data" : {
  323. "start_date" : $("#dateBegin").val(),
  324. "end_date" : $("#dateEnd").val()
  325. },
  326. "type" : "POST",
  327. "dataType" : "json",
  328. "success" : function(data) {
  329. if(data != null && data != ""){
  330. if ( data.status =="success"){
  331. getfp();
  332. alert("获取成功!");
  333. }else {
  334. alert(data.status);
  335. }
  336. }else {
  337. alert("获取失败!");
  338. }
  339. },
  340. "complete": function(){
  341. layer.close(tip);
  342. }
  343. });
  344. }else {
  345. alert("请选择日期!");
  346. }
  347. },
  348. "set" : function(){
  349. if ( $("#fpid option:selected").text() !=""){
  350. var tip = layer.load(2);
  351. var gitem = $("#form1").serialize();
  352. var jrjc;
  353. if ($("#jrjc").prop('checked') == true){
  354. jrjc = $("#departmentId").val();
  355. }else {
  356. jrjc ='N'
  357. }
  358. var url = "saverk.do";
  359. $.ajax({
  360. "url" : url,
  361. "data" : {
  362. "gitem" : gitem,
  363. "jrjc" : jrjc
  364. },
  365. "type" : "POST",
  366. "dataType" : "json",
  367. "async" : true,
  368. "success" : function(data) {
  369. if(data.status =="success"){
  370. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  371. alert("入库成功!\n入库单号:"+data.rkdh+"");
  372. }else {
  373. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  374. }
  375. window.location.reload();
  376. }else {
  377. alert(msg);
  378. }
  379. },
  380. "error": function(){
  381. alert("确认失败!");
  382. },
  383. "complete": function(){
  384. layer.close(tip);
  385. }
  386. });
  387. }else {
  388. alert("请选择发票!");
  389. }
  390. }
  391. }
  392. function getfp(){
  393. var tip = layer.load(2);
  394. var url = "getgyfp.do";
  395. $.ajax({
  396. "url" : url,
  397. "type" : "POST",
  398. "dataType" : "json",
  399. "async" : true,
  400. "success" : function(data) {
  401. if(data != null && data != ""){
  402. $("#fpid").empty();
  403. $("#fpid").append("_$tag_____________$tag____");
  404. for(var i = 0; i < data.length; i++){
  405. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  406. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  407. }
  408. }
  409. },
  410. "error" : function(msg){
  411. },
  412. "complete": function(){
  413. layer.close(tip);
  414. }
  415. });
  416. }
  417. $("#fpid").change(function(){
  418. var tip = layer.load(2);
  419. var url = "getgyrkxx.do";
  420. var sum_total=0;
  421. $.ajax({
  422. "url" : url,
  423. "data" : {
  424. "fpId" : $("#fpid").val()
  425. },
  426. "type" : "POST",
  427. "dataType" : "json",
  428. "async" : true,
  429. "success" : function(data) {
  430. $("#dataTable").html("");
  431. if(data != null && data != ""){
  432. var html = "";
  433. for(var i = 0; i < data.length; i++){
  434. var ID = data[i].id == null ? "" : data[i].id;
  435. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  436. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  437. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  438. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  439. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  440. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  441. var GOODS = data[i].goods == null ? "" : data[i].goods;
  442. var NAME = data[i].name == null ? "" : data[i].name;
  443. var SPEC = data[i].spec == null ? "" : data[i].spec;
  444. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  445. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  446. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  447. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  448. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  449. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  450. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  451. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  452. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  453. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  454. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  455. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  456. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  457. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  458. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  459. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  460. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  461. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  462. sum_total = sum_total + DSUMVALUE
  463. var invoice_type_cn =null;
  464. if (invoice_type =="00" ){
  465. invoice_type_cn="销售发票";
  466. }else if (invoice_type == "01") {
  467. invoice_type_cn="更正(对冲)发票";
  468. }else if (invoice_type == "02") {
  469. invoice_type_cn="其它类型发票";
  470. }
  471. html += "_$ta";
  472. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  473. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  474. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  475. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  476. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  477. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  478. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  479. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  480. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  481. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  482. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  483. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  484. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  485. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  486. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  487. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  488. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  489. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  490. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  491. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  492. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  493. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  494. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  495. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  496. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  497. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  498. html += "_$tag";
  499. }
  500. html += "_$ta";
  501. html += "_$tag_____________$tag____________________________________________________________________$tag";
  502. html += "_$tag_____________$tag____________________________________________________________________$tag";
  503. html += "_$tag_____________$tag____________________________________________________________________$tag";
  504. html += "_$tag_____________$tag____________________________________________________________________$tag";
  505. html += "_$tag_____________$tag____________________________________________________________________$tag";
  506. html += "_$tag_____________$tag____________________________________________________________________$tag";
  507. html += "_$tag_____________$tag____________________________________________________________________$tag";
  508. html += "_$tag_____________$tag____________________________________________________________________$tag";
  509. html += "_$tag_____________$tag____________________________________________________________________$tag";
  510. html += "_$tag_____________$tag____________________________________________________________________$tag";
  511. html += "_$tag_____________$tag____________________________________________________________________$tag";
  512. html += "_$tag_____________$tag____________________________________________________________________$tag";
  513. html += "_$tag_____________$tag____________________________________________________________________$tag";
  514. html += "_$tag_____________$tag____________________________________________________________________$tag";
  515. html += "_$tag_____________$tag____________________________________________________________________$tag";
  516. html += "_$tag_____________$tag____________________________________________________________________$tag";
  517. html += "_$tag_____________$tag____________________________________________________________________$tag";
  518. html += "_$tag_____________$tag_合计:_$tag___$tag";
  519. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  520. html += "_$tag_____________$tag____________________________________________________________________$tag";
  521. html += "_$tag_____________$tag____________________________________________________________________$tag";
  522. html += "_$tag_____________$tag____________________________________________________________________$tag";
  523. html += "_$tag_____________$tag____________________________________________________________________$tag";
  524. html += "_$tag_____________$tag____________________________________________________________________$tag";
  525. html += "_$tag_____________$tag____________________________________________________________________$tag";
  526. html += "_$tag_____________$tag____________________________________________________________________$tag";
  527. html += "_$tag";
  528. $("#dataTable").html(html);
  529. }else {
  530. $("#dataTable").html("");
  531. }
  532. },
  533. "error" : function(msg){
  534. },
  535. "complete": function(){
  536. layer.close(tip);
  537. }
  538. });
  539. });
  540. Date.prototype.Format = function (fmt) {
  541. var o = {
  542. "M+": this.getMonth() + 1, //月份
  543. "d+": this.getDate(), //日
  544. "h+": this.getHours(), //小时
  545. "m+": this.getMinutes(), //分
  546. "s+": this.getSeconds(), //秒
  547. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  548. "S": this.getMilliseconds() //毫秒
  549. };
  550. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  551. for (var k in o)
  552. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  553. return fmt;
  554. }
  555. $("#jrjc").change(function() {
  556. if ($("#jrjc").prop('checked') == true){
  557. $("#departmentId").removeAttr("disabled");
  558. }else {
  559. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  560. }
  561. });
  562. ----------------------------------- SOURCE END -------------------------------------
  563. !STACK 0
  564. java.lang.NullPointerException
  565. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:31:11.804
  566. !MESSAGE Error while processing working copy
  567. !STACK 1
  568. JavaScript Model Exception: java.lang.NullPointerException
  569. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  570. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  571. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  572. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  573. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  574. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  575. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  576. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  577. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  578. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  579. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  580. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  581. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  582. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  583. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  584. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  585. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  586. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  587. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  588. Caused by: java.lang.NullPointerException
  589. Caused by: java.lang.NullPointerException
  590. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:31:11.804
  591. !MESSAGE java.lang.NullPointerException
  592. !STACK 0
  593. java.lang.NullPointerException
  594. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:31:12.519
  595. !MESSAGE Exception occurred during problem detection:
  596. ----------------------------------- SOURCE BEGIN -------------------------------------
  597. (function(){WdatePicker();})();
  598. (function(){WdatePicker();})();
  599. (function(){Data.get();})();
  600. (function(){Data.set();})();
  601. (function(){search();})();
  602. $(function(){
  603. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  604. getfp();
  605. });
  606. var Data = {
  607. "get" : function(){
  608. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  609. var tip = layer.load(2);
  610. var result="";
  611. var url = "getgyxml.do";
  612. $.ajax({
  613. "url" : url,
  614. "data" : {
  615. "start_date" : $("#dateBegin").val(),
  616. "end_date" : $("#dateEnd").val()
  617. },
  618. "type" : "POST",
  619. "dataType" : "json",
  620. "success" : function(data) {
  621. if(data != null && data != ""){
  622. if ( data.status =="success"){
  623. getfp();
  624. alert("获取成功!");
  625. }else {
  626. alert(data.status);
  627. }
  628. }else {
  629. alert("获取失败!");
  630. }
  631. },
  632. "complete": function(){
  633. layer.close(tip);
  634. }
  635. });
  636. }else {
  637. alert("请选择日期!");
  638. }
  639. },
  640. "set" : function(){
  641. if ( $("#fpid option:selected").text() !=""){
  642. var tip = layer.load(2);
  643. var gitem = $("#form1").serialize();
  644. var jrjc;
  645. if ($("#jrjc").prop('checked') == true){
  646. jrjc = $("#departmentId").val();
  647. }else {
  648. jrjc ='N'
  649. }
  650. var url = "saverk.do";
  651. $.ajax({
  652. "url" : url,
  653. "data" : {
  654. "gitem" : gitem,
  655. "jrjc" : jrjc
  656. },
  657. "type" : "POST",
  658. "dataType" : "json",
  659. "async" : true,
  660. "success" : function(data) {
  661. if(data.status =="success"){
  662. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  663. alert("入库成功!\n入库单号:"+data.rkdh+"");
  664. }else {
  665. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  666. }
  667. window.location.reload();
  668. }else {
  669. alert(msg);
  670. }
  671. },
  672. "error": function(){
  673. alert("确认失败!");
  674. },
  675. "complete": function(){
  676. layer.close(tip);
  677. }
  678. });
  679. }else {
  680. alert("请选择发票!");
  681. }
  682. }
  683. }
  684. function getfp(){
  685. var tip = layer.load(2);
  686. var url = "getgyfp.do";
  687. $.ajax({
  688. "url" : url,
  689. "type" : "POST",
  690. "dataType" : "json",
  691. "async" : true,
  692. "success" : function(data) {
  693. if(data != null && data != ""){
  694. $("#fpid").empty();
  695. $("#fpid").append("_$tag_____________$tag____");
  696. for(var i = 0; i < data.length; i++){
  697. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  698. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  699. }
  700. }
  701. },
  702. "error" : function(msg){
  703. },
  704. "complete": function(){
  705. layer.close(tip);
  706. }
  707. });
  708. }
  709. $("#fpid").change(function(){
  710. var tip = layer.load(2);
  711. var url = "getgyrkxx.do";
  712. var sum_total=0;
  713. $.ajax({
  714. "url" : url,
  715. "data" : {
  716. "fpId" : $("#fpid").val()
  717. },
  718. "type" : "POST",
  719. "dataType" : "json",
  720. "async" : true,
  721. "success" : function(data) {
  722. $("#dataTable").html("");
  723. if(data != null && data != ""){
  724. var html = "";
  725. for(var i = 0; i < data.length; i++){
  726. var ID = data[i].id == null ? "" : data[i].id;
  727. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  728. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  729. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  730. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  731. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  732. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  733. var GOODS = data[i].goods == null ? "" : data[i].goods;
  734. var NAME = data[i].name == null ? "" : data[i].name;
  735. var SPEC = data[i].spec == null ? "" : data[i].spec;
  736. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  737. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  738. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  739. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  740. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  741. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  742. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  743. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  744. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  745. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  746. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  747. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  748. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  749. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  750. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  751. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  752. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  753. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  754. sum_total = sum_total + DSUMVALUE
  755. var invoice_type_cn =null;
  756. if (invoice_type =="00" ){
  757. invoice_type_cn="销售发票";
  758. }else if (invoice_type == "01") {
  759. invoice_type_cn="更正(对冲)发票";
  760. }else if (invoice_type == "02") {
  761. invoice_type_cn="其它类型发票";
  762. }
  763. html += "_$ta";
  764. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  765. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  766. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  767. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  768. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  769. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  770. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  771. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  772. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  773. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  774. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  775. html += "_$tag_____________$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_____________$tag______________________________________________________________________________________________________________________$tag";
  781. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  782. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  783. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  784. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  785. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  786. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  787. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  788. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  789. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  790. html += "_$tag";
  791. }
  792. html += "_$ta";
  793. html += "_$tag_____________$tag____________________________________________________________________$tag";
  794. html += "_$tag_____________$tag____________________________________________________________________$tag";
  795. html += "_$tag_____________$tag____________________________________________________________________$tag";
  796. html += "_$tag_____________$tag____________________________________________________________________$tag";
  797. html += "_$tag_____________$tag____________________________________________________________________$tag";
  798. html += "_$tag_____________$tag____________________________________________________________________$tag";
  799. html += "_$tag_____________$tag____________________________________________________________________$tag";
  800. html += "_$tag_____________$tag____________________________________________________________________$tag";
  801. html += "_$tag_____________$tag____________________________________________________________________$tag";
  802. html += "_$tag_____________$tag____________________________________________________________________$tag";
  803. html += "_$tag_____________$tag____________________________________________________________________$tag";
  804. html += "_$tag_____________$tag____________________________________________________________________$tag";
  805. html += "_$tag_____________$tag____________________________________________________________________$tag";
  806. html += "_$tag_____________$tag____________________________________________________________________$tag";
  807. html += "_$tag_____________$tag____________________________________________________________________$tag";
  808. html += "_$tag_____________$tag____________________________________________________________________$tag";
  809. html += "_$tag_____________$tag____________________________________________________________________$tag";
  810. html += "_$tag_____________$tag_合计:_$tag___$tag";
  811. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  812. html += "_$tag_____________$tag____________________________________________________________________$tag";
  813. html += "_$tag_____________$tag____________________________________________________________________$tag";
  814. html += "_$tag_____________$tag____________________________________________________________________$tag";
  815. html += "_$tag_____________$tag____________________________________________________________________$tag";
  816. html += "_$tag_____________$tag____________________________________________________________________$tag";
  817. html += "_$tag_____________$tag____________________________________________________________________$tag";
  818. html += "_$tag_____________$tag____________________________________________________________________$tag";
  819. html += "_$tag";
  820. $("#dataTable").html(html);
  821. }else {
  822. $("#dataTable").html("");
  823. }
  824. },
  825. "error" : function(msg){
  826. },
  827. "complete": function(){
  828. layer.close(tip);
  829. }
  830. });
  831. });
  832. Date.prototype.Format = function (fmt) {
  833. var o = {
  834. "M+": this.getMonth() + 1, //月份
  835. "d+": this.getDate(), //日
  836. "h+": this.getHours(), //小时
  837. "m+": this.getMinutes(), //分
  838. "s+": this.getSeconds(), //秒
  839. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  840. "S": this.getMilliseconds() //毫秒
  841. };
  842. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  843. for (var k in o)
  844. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  845. return fmt;
  846. }
  847. $("#jrjc").change(function() {
  848. if ($("#jrjc").prop('checked') == true){
  849. $("#departmentId").removeAttr("disabled");
  850. }else {
  851. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  852. }
  853. });
  854. ----------------------------------- SOURCE END -------------------------------------
  855. !STACK 0
  856. java.lang.NullPointerException
  857. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:31:14.680
  858. !MESSAGE Exception occurred during problem detection:
  859. ----------------------------------- SOURCE BEGIN -------------------------------------
  860. (function(){WdatePicker();})();
  861. (function(){WdatePicker();})();
  862. (function(){Data.get();})();
  863. (function(){Data.set();})();
  864. (function(){search();})();
  865. $(function(){
  866. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  867. getfp();
  868. });
  869. var Data = {
  870. "get" : function(){
  871. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  872. var tip = layer.load(2);
  873. var result="";
  874. var url = "getgyxml.do";
  875. $.ajax({
  876. "url" : url,
  877. "data" : {
  878. "start_date" : $("#dateBegin").val(),
  879. "end_date" : $("#dateEnd").val()
  880. },
  881. "type" : "POST",
  882. "dataType" : "json",
  883. "success" : function(data) {
  884. if(data != null && data != ""){
  885. if ( data.status =="success"){
  886. getfp();
  887. alert("获取成功!");
  888. }else {
  889. alert(data.status);
  890. }
  891. }else {
  892. alert("获取失败!");
  893. }
  894. },
  895. "complete": function(){
  896. layer.close(tip);
  897. }
  898. });
  899. }else {
  900. alert("请选择日期!");
  901. }
  902. },
  903. "set" : function(){
  904. if ( $("#fpid option:selected").text() !=""){
  905. var tip = layer.load(2);
  906. var gitem = $("#form1").serialize();
  907. var jrjc;
  908. if ($("#jrjc").prop('checked') == true){
  909. jrjc = $("#departmentId").val();
  910. }else {
  911. jrjc ='N'
  912. }
  913. var url = "saverk.do";
  914. $.ajax({
  915. "url" : url,
  916. "data" : {
  917. "gitem" : gitem,
  918. "jrjc" : jrjc
  919. },
  920. "type" : "POST",
  921. "dataType" : "json",
  922. "async" : true,
  923. "success" : function(data) {
  924. if(data.status =="success"){
  925. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  926. alert("入库成功!\n入库单号:"+data.rkdh+"");
  927. }else {
  928. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  929. }
  930. window.location.reload();
  931. }else {
  932. alert(msg);
  933. }
  934. },
  935. "error": function(){
  936. alert("确认失败!");
  937. },
  938. "complete": function(){
  939. layer.close(tip);
  940. }
  941. });
  942. }else {
  943. alert("请选择发票!");
  944. }
  945. }
  946. }
  947. function getfp(){
  948. var tip = layer.load(2);
  949. var url = "getgyfp.do";
  950. $.ajax({
  951. "url" : url,
  952. "type" : "POST",
  953. "dataType" : "json",
  954. "async" : true,
  955. "success" : function(data) {
  956. if(data != null && data != ""){
  957. $("#fpid").empty();
  958. $("#fpid").append("_$tag_____________$tag____");
  959. for(var i = 0; i < data.length; i++){
  960. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  961. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  962. }
  963. }
  964. },
  965. "error" : function(msg){
  966. },
  967. "complete": function(){
  968. layer.close(tip);
  969. }
  970. });
  971. }
  972. $("#fpid").change(function(){
  973. var tip = layer.load(2);
  974. var url = "getgyrkxx.do";
  975. var sum_total=0;
  976. $.ajax({
  977. "url" : url,
  978. "data" : {
  979. "fpId" : $("#fpid").val()
  980. },
  981. "type" : "POST",
  982. "dataType" : "json",
  983. "async" : true,
  984. "success" : function(data) {
  985. $("#dataTable").html("");
  986. if(data != null && data != ""){
  987. var html = "";
  988. for(var i = 0; i < data.length; i++){
  989. var ID = data[i].id == null ? "" : data[i].id;
  990. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  991. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  992. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  993. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  994. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  995. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  996. var GOODS = data[i].goods == null ? "" : data[i].goods;
  997. var NAME = data[i].name == null ? "" : data[i].name;
  998. var SPEC = data[i].spec == null ? "" : data[i].spec;
  999. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  1000. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  1001. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  1002. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  1003. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  1004. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  1005. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  1006. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  1007. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  1008. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  1009. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  1010. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  1011. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  1012. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  1013. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  1014. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  1015. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  1016. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  1017. sum_total = sum_total + DSUMVALUE
  1018. var invoice_type_cn =null;
  1019. if (invoice_type =="00" ){
  1020. invoice_type_cn="销售发票";
  1021. }else if (invoice_type == "01") {
  1022. invoice_type_cn="更正(对冲)发票";
  1023. }else if (invoice_type == "02") {
  1024. invoice_type_cn="其它类型发票";
  1025. }
  1026. html += "_$ta";
  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_____________$tag___________________________________________________________________________________________________________________________$tag";
  1043. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1044. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1045. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1046. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1047. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  1048. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  1049. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  1050. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1051. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1052. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  1053. html += "_$tag";
  1054. }
  1055. html += "_$ta";
  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";
  1063. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1064. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1065. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1066. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1067. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1068. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1069. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1070. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1071. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1072. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1073. html += "_$tag_____________$tag_合计:_$tag___$tag";
  1074. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  1075. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1076. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1077. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1078. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1079. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1080. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1081. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1082. html += "_$tag";
  1083. $("#dataTable").html(html);
  1084. }else {
  1085. $("#dataTable").html("");
  1086. }
  1087. },
  1088. "error" : function(msg){
  1089. },
  1090. "complete": function(){
  1091. layer.close(tip);
  1092. }
  1093. });
  1094. });
  1095. Date.prototype.Format = function (fmt) {
  1096. var o = {
  1097. "M+": this.getMonth() + 1, //月份
  1098. "d+": this.getDate(), //日
  1099. "h+": this.getHours(), //小时
  1100. "m+": this.getMinutes(), //分
  1101. "s+": this.getSeconds(), //秒
  1102. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  1103. "S": this.getMilliseconds() //毫秒
  1104. };
  1105. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  1106. for (var k in o)
  1107. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  1108. return fmt;
  1109. }
  1110. $("#jrjc").change(function() {
  1111. if ($("#jrjc").prop('checked') == true){
  1112. $("#departmentId").removeAttr("disabled");
  1113. }else {
  1114. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1115. }
  1116. });
  1117. ----------------------------------- SOURCE END -------------------------------------
  1118. !STACK 0
  1119. java.lang.NullPointerException
  1120. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:31:14.681
  1121. !MESSAGE Error while processing working copy
  1122. !STACK 1
  1123. JavaScript Model Exception: java.lang.NullPointerException
  1124. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  1125. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  1126. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  1127. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  1128. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  1129. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  1130. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  1131. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  1132. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  1133. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  1134. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  1135. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  1136. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  1137. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  1138. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  1139. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  1140. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  1141. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  1142. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  1143. Caused by: java.lang.NullPointerException
  1144. Caused by: java.lang.NullPointerException
  1145. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:31:14.681
  1146. !MESSAGE java.lang.NullPointerException
  1147. !STACK 0
  1148. java.lang.NullPointerException
  1149. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:31:15.401
  1150. !MESSAGE Exception occurred during problem detection:
  1151. ----------------------------------- SOURCE BEGIN -------------------------------------
  1152. (function(){WdatePicker();})();
  1153. (function(){WdatePicker();})();
  1154. (function(){Data.get();})();
  1155. (function(){Data.set();})();
  1156. (function(){search();})();
  1157. $(function(){
  1158. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1159. getfp();
  1160. });
  1161. var Data = {
  1162. "get" : function(){
  1163. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  1164. var tip = layer.load(2);
  1165. var result="";
  1166. var url = "getgyxml.do";
  1167. $.ajax({
  1168. "url" : url,
  1169. "data" : {
  1170. "start_date" : $("#dateBegin").val(),
  1171. "end_date" : $("#dateEnd").val()
  1172. },
  1173. "type" : "POST",
  1174. "dataType" : "json",
  1175. "success" : function(data) {
  1176. if(data != null && data != ""){
  1177. if ( data.status =="success"){
  1178. getfp();
  1179. alert("获取成功!");
  1180. }else {
  1181. alert(data.status);
  1182. }
  1183. }else {
  1184. alert("获取失败!");
  1185. }
  1186. },
  1187. "complete": function(){
  1188. layer.close(tip);
  1189. }
  1190. });
  1191. }else {
  1192. alert("请选择日期!");
  1193. }
  1194. },
  1195. "set" : function(){
  1196. if ( $("#fpid option:selected").text() !=""){
  1197. var tip = layer.load(2);
  1198. var gitem = $("#form1").serialize();
  1199. var jrjc;
  1200. if ($("#jrjc").prop('checked') == true){
  1201. jrjc = $("#departmentId").val();
  1202. }else {
  1203. jrjc ='N'
  1204. }
  1205. var url = "saverk.do";
  1206. $.ajax({
  1207. "url" : url,
  1208. "data" : {
  1209. "gitem" : gitem,
  1210. "jrjc" : jrjc
  1211. },
  1212. "type" : "POST",
  1213. "dataType" : "json",
  1214. "async" : true,
  1215. "success" : function(data) {
  1216. if(data.status =="success"){
  1217. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  1218. alert("入库成功!\n入库单号:"+data.rkdh+"");
  1219. }else {
  1220. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  1221. }
  1222. window.location.reload();
  1223. }else {
  1224. alert(msg);
  1225. }
  1226. },
  1227. "error": function(){
  1228. alert("确认失败!");
  1229. },
  1230. "complete": function(){
  1231. layer.close(tip);
  1232. }
  1233. });
  1234. }else {
  1235. alert("请选择发票!");
  1236. }
  1237. }
  1238. }
  1239. function getfp(){
  1240. var tip = layer.load(2);
  1241. var url = "getgyfp.do";
  1242. $.ajax({
  1243. "url" : url,
  1244. "type" : "POST",
  1245. "dataType" : "json",
  1246. "async" : true,
  1247. "success" : function(data) {
  1248. if(data != null && data != ""){
  1249. $("#fpid").empty();
  1250. $("#fpid").append("_$tag_____________$tag____");
  1251. for(var i = 0; i < data.length; i++){
  1252. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  1253. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  1254. }
  1255. }
  1256. },
  1257. "error" : function(msg){
  1258. },
  1259. "complete": function(){
  1260. layer.close(tip);
  1261. }
  1262. });
  1263. }
  1264. $("#fpid").change(function(){
  1265. var tip = layer.load(2);
  1266. var url = "getgyrkxx.do";
  1267. var sum_total=0;
  1268. $.ajax({
  1269. "url" : url,
  1270. "data" : {
  1271. "fpId" : $("#fpid").val()
  1272. },
  1273. "type" : "POST",
  1274. "dataType" : "json",
  1275. "async" : true,
  1276. "success" : function(data) {
  1277. $("#dataTable").html("");
  1278. if(data != null && data != ""){
  1279. var html = "";
  1280. for(var i = 0; i < data.length; i++){
  1281. var ID = data[i].id == null ? "" : data[i].id;
  1282. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  1283. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  1284. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  1285. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  1286. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  1287. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  1288. var GOODS = data[i].goods == null ? "" : data[i].goods;
  1289. var NAME = data[i].name == null ? "" : data[i].name;
  1290. var SPEC = data[i].spec == null ? "" : data[i].spec;
  1291. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  1292. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  1293. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  1294. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  1295. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  1296. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  1297. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  1298. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  1299. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  1300. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  1301. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  1302. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  1303. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  1304. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  1305. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  1306. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  1307. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  1308. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  1309. sum_total = sum_total + DSUMVALUE
  1310. var invoice_type_cn =null;
  1311. if (invoice_type =="00" ){
  1312. invoice_type_cn="销售发票";
  1313. }else if (invoice_type == "01") {
  1314. invoice_type_cn="更正(对冲)发票";
  1315. }else if (invoice_type == "02") {
  1316. invoice_type_cn="其它类型发票";
  1317. }
  1318. html += "_$ta";
  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_____________$tag_____________________________________________________________________________________________________________________________$tag";
  1331. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1332. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1333. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  1334. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  1335. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1336. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1337. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1338. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1339. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  1340. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  1341. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  1342. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1343. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1344. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  1345. html += "_$tag";
  1346. }
  1347. html += "_$ta";
  1348. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1349. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1350. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1351. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1352. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1353. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1354. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1355. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1356. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1357. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1358. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1359. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1360. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1361. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1362. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1363. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1364. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1365. html += "_$tag_____________$tag_合计:_$tag___$tag";
  1366. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  1367. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1368. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1369. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1370. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1371. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1372. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1373. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1374. html += "_$tag";
  1375. $("#dataTable").html(html);
  1376. }else {
  1377. $("#dataTable").html("");
  1378. }
  1379. },
  1380. "error" : function(msg){
  1381. },
  1382. "complete": function(){
  1383. layer.close(tip);
  1384. }
  1385. });
  1386. });
  1387. Date.prototype.Format = function (fmt) {
  1388. var o = {
  1389. "M+": this.getMonth() + 1, //月份
  1390. "d+": this.getDate(), //日
  1391. "h+": this.getHours(), //小时
  1392. "m+": this.getMinutes(), //分
  1393. "s+": this.getSeconds(), //秒
  1394. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  1395. "S": this.getMilliseconds() //毫秒
  1396. };
  1397. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  1398. for (var k in o)
  1399. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  1400. return fmt;
  1401. }
  1402. $("#jrjc").change(function() {
  1403. if ($("#jrjc").prop('checked') == true){
  1404. $("#departmentId").removeAttr("disabled");
  1405. }else {
  1406. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1407. }
  1408. });
  1409. ----------------------------------- SOURCE END -------------------------------------
  1410. !STACK 0
  1411. java.lang.NullPointerException
  1412. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:31:20.112
  1413. !MESSAGE Exception occurred during problem detection:
  1414. ----------------------------------- SOURCE BEGIN -------------------------------------
  1415. (function(){WdatePicker();})();
  1416. (function(){WdatePicker();})();
  1417. (function(){Data.get();})();
  1418. (function(){Data.set();})();
  1419. (function(){search();})();
  1420. $(function(){
  1421. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1422. getfp();
  1423. });
  1424. var Data = {
  1425. "get" : function(){
  1426. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  1427. var tip = layer.load(2);
  1428. var result="";
  1429. var url = "getgyxml.do";
  1430. $.ajax({
  1431. "url" : url,
  1432. "data" : {
  1433. "start_date" : $("#dateBegin").val(),
  1434. "end_date" : $("#dateEnd").val()
  1435. },
  1436. "type" : "POST",
  1437. "dataType" : "json",
  1438. "success" : function(data) {
  1439. if(data != null && data != ""){
  1440. if ( data.status =="success"){
  1441. getfp();
  1442. alert("获取成功!");
  1443. }else {
  1444. alert(data.status);
  1445. }
  1446. }else {
  1447. alert("获取失败!");
  1448. }
  1449. },
  1450. "complete": function(){
  1451. layer.close(tip);
  1452. }
  1453. });
  1454. }else {
  1455. alert("请选择日期!");
  1456. }
  1457. },
  1458. "set" : function(){
  1459. if ( $("#fpid option:selected").text() !=""){
  1460. var tip = layer.load(2);
  1461. var gitem = $("#form1").serialize();
  1462. var jrjc;
  1463. if ($("#jrjc").prop('checked') == true){
  1464. jrjc = $("#departmentId").val();
  1465. }else {
  1466. jrjc ='N'
  1467. }
  1468. var url = "saverk.do";
  1469. $.ajax({
  1470. "url" : url,
  1471. "data" : {
  1472. "gitem" : gitem,
  1473. "jrjc" : jrjc
  1474. },
  1475. "type" : "POST",
  1476. "dataType" : "json",
  1477. "async" : true,
  1478. "success" : function(data) {
  1479. if(data.status =="success"){
  1480. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  1481. alert("入库成功!\n入库单号:"+data.rkdh+"");
  1482. }else {
  1483. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  1484. }
  1485. window.location.reload();
  1486. }else {
  1487. alert(msg);
  1488. }
  1489. },
  1490. "error": function(){
  1491. alert("确认失败!");
  1492. },
  1493. "complete": function(){
  1494. layer.close(tip);
  1495. }
  1496. });
  1497. }else {
  1498. alert("请选择发票!");
  1499. }
  1500. }
  1501. }
  1502. function getfp(){
  1503. var tip = layer.load(2);
  1504. var url = "getgyfp.do";
  1505. $.ajax({
  1506. "url" : url,
  1507. "type" : "POST",
  1508. "dataType" : "json",
  1509. "async" : true,
  1510. "success" : function(data) {
  1511. if(data != null && data != ""){
  1512. $("#fpid").empty();
  1513. $("#fpid").append("_$tag_____________$tag____");
  1514. for(var i = 0; i < data.length; i++){
  1515. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  1516. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  1517. }
  1518. }
  1519. },
  1520. "error" : function(msg){
  1521. },
  1522. "complete": function(){
  1523. layer.close(tip);
  1524. }
  1525. });
  1526. }
  1527. $("#fpid").change(function(){
  1528. var tip = layer.load(2);
  1529. var url = "getgyrkxx.do";
  1530. var sum_total=0;
  1531. $.ajax({
  1532. "url" : url,
  1533. "data" : {
  1534. "fpId" : $("#fpid").val()
  1535. },
  1536. "type" : "POST",
  1537. "dataType" : "json",
  1538. "async" : true,
  1539. "success" : function(data) {
  1540. $("#dataTable").html("");
  1541. if(data != null && data != ""){
  1542. var html = "";
  1543. for(var i = 0; i < data.length; i++){
  1544. var ID = data[i].id == null ? "" : data[i].id;
  1545. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  1546. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  1547. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  1548. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  1549. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  1550. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  1551. var GOODS = data[i].goods == null ? "" : data[i].goods;
  1552. var NAME = data[i].name == null ? "" : data[i].name;
  1553. var SPEC = data[i].spec == null ? "" : data[i].spec;
  1554. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  1555. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  1556. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  1557. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  1558. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  1559. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  1560. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  1561. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  1562. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  1563. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  1564. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  1565. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  1566. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  1567. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  1568. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  1569. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  1570. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  1571. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  1572. sum_total = sum_total + DSUMVALUE
  1573. var invoice_type_cn =null;
  1574. if (invoice_type =="00" ){
  1575. invoice_type_cn="销售发票";
  1576. }else if (invoice_type == "01") {
  1577. invoice_type_cn="更正(对冲)发票";
  1578. }else if (invoice_type == "02") {
  1579. invoice_type_cn="其它类型发票";
  1580. }
  1581. html += "_$ta";
  1582. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  1583. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1584. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1585. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1586. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1587. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  1588. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1589. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1590. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  1591. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  1592. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  1593. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1594. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1595. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  1596. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  1597. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1598. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1599. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1600. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1601. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  1602. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  1603. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  1604. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1605. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1606. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  1607. html += "_$tag";
  1608. }
  1609. html += "_$ta";
  1610. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1611. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1612. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1613. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1614. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1615. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1616. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1617. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1618. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1619. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1620. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1621. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1622. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1623. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1624. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1625. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1626. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1627. html += "_$tag_____________$tag_合计:_$tag___$tag";
  1628. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  1629. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1630. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1631. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1632. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1633. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1634. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1635. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1636. html += "_$tag";
  1637. $("#dataTable").html(html);
  1638. }else {
  1639. $("#dataTable").html("");
  1640. }
  1641. },
  1642. "error" : function(msg){
  1643. },
  1644. "complete": function(){
  1645. layer.close(tip);
  1646. }
  1647. });
  1648. });
  1649. Date.prototype.Format = function (fmt) {
  1650. var o = {
  1651. "M+": this.getMonth() + 1, //月份
  1652. "d+": this.getDate(), //日
  1653. "h+": this.getHours(), //小时
  1654. "m+": this.getMinutes(), //分
  1655. "s+": this.getSeconds(), //秒
  1656. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  1657. "S": this.getMilliseconds() //毫秒
  1658. };
  1659. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  1660. for (var k in o)
  1661. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  1662. return fmt;
  1663. }
  1664. $("#jrjc").change(function() {
  1665. if ($("#jrjc").prop('checked') == true){
  1666. $("#departmentId").removeAttr("disabled");
  1667. }else {
  1668. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1669. }
  1670. });
  1671. ----------------------------------- SOURCE END -------------------------------------
  1672. !STACK 0
  1673. java.lang.NullPointerException
  1674. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-07-23 09:31:20.112
  1675. !MESSAGE java.lang.NullPointerException
  1676. !STACK 1
  1677. JavaScript Model Exception: java.lang.NullPointerException
  1678. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  1679. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  1680. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  1681. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  1682. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  1683. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  1684. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  1685. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  1686. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  1687. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  1688. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  1689. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  1690. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  1691. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  1692. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  1693. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  1694. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  1695. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  1696. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  1697. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  1698. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  1699. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  1700. Caused by: java.lang.NullPointerException
  1701. Caused by: java.lang.NullPointerException
  1702. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:31:20.113
  1703. !MESSAGE java.lang.NullPointerException
  1704. !STACK 0
  1705. java.lang.NullPointerException
  1706. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:31:21.631
  1707. !MESSAGE Exception occurred during problem detection:
  1708. ----------------------------------- SOURCE BEGIN -------------------------------------
  1709. (function(){WdatePicker();})();
  1710. (function(){WdatePicker();})();
  1711. (function(){Data.get();})();
  1712. (function(){Data.set();})();
  1713. (function(){search();})();
  1714. $(function(){
  1715. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1716. getfp();
  1717. });
  1718. var Data = {
  1719. "get" : function(){
  1720. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  1721. var tip = layer.load(2);
  1722. var result="";
  1723. var url = "getgyxml.do";
  1724. $.ajax({
  1725. "url" : url,
  1726. "data" : {
  1727. "start_date" : $("#dateBegin").val(),
  1728. "end_date" : $("#dateEnd").val()
  1729. },
  1730. "type" : "POST",
  1731. "dataType" : "json",
  1732. "success" : function(data) {
  1733. if(data != null && data != ""){
  1734. if ( data.status =="success"){
  1735. getfp();
  1736. alert("获取成功!");
  1737. }else {
  1738. alert(data.status);
  1739. }
  1740. }else {
  1741. alert("获取失败!");
  1742. }
  1743. },
  1744. "complete": function(){
  1745. layer.close(tip);
  1746. }
  1747. });
  1748. }else {
  1749. alert("请选择日期!");
  1750. }
  1751. },
  1752. "set" : function(){
  1753. if ( $("#fpid option:selected").text() !=""){
  1754. var tip = layer.load(2);
  1755. var gitem = $("#form1").serialize();
  1756. var jrjc;
  1757. if ($("#jrjc").prop('checked') == true){
  1758. jrjc = $("#departmentId").val();
  1759. }else {
  1760. jrjc ='N'
  1761. }
  1762. var url = "saverk.do";
  1763. $.ajax({
  1764. "url" : url,
  1765. "data" : {
  1766. "gitem" : gitem,
  1767. "jrjc" : jrjc
  1768. },
  1769. "type" : "POST",
  1770. "dataType" : "json",
  1771. "async" : true,
  1772. "success" : function(data) {
  1773. if(data.status =="success"){
  1774. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  1775. alert("入库成功!\n入库单号:"+data.rkdh+"");
  1776. }else {
  1777. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  1778. }
  1779. window.location.reload();
  1780. }else {
  1781. alert(msg);
  1782. }
  1783. },
  1784. "error": function(){
  1785. alert("确认失败!");
  1786. },
  1787. "complete": function(){
  1788. layer.close(tip);
  1789. }
  1790. });
  1791. }else {
  1792. alert("请选择发票!");
  1793. }
  1794. }
  1795. }
  1796. function getfp(){
  1797. var tip = layer.load(2);
  1798. var url = "getgyfp.do";
  1799. $.ajax({
  1800. "url" : url,
  1801. "type" : "POST",
  1802. "dataType" : "json",
  1803. "async" : true,
  1804. "success" : function(data) {
  1805. if(data != null && data != ""){
  1806. $("#fpid").empty();
  1807. $("#fpid").append("_$tag_____________$tag____");
  1808. for(var i = 0; i < data.length; i++){
  1809. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  1810. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  1811. }
  1812. }
  1813. },
  1814. "error" : function(msg){
  1815. },
  1816. "complete": function(){
  1817. layer.close(tip);
  1818. }
  1819. });
  1820. }
  1821. $("#fpid").change(function(){
  1822. var tip = layer.load(2);
  1823. var url = "getgyrkxx.do";
  1824. var sum_total=0;
  1825. $.ajax({
  1826. "url" : url,
  1827. "data" : {
  1828. "fpId" : $("#fpid").val()
  1829. },
  1830. "type" : "POST",
  1831. "dataType" : "json",
  1832. "async" : true,
  1833. "success" : function(data) {
  1834. $("#dataTable").html("");
  1835. if(data != null && data != ""){
  1836. var html = "";
  1837. for(var i = 0; i < data.length; i++){
  1838. var ID = data[i].id == null ? "" : data[i].id;
  1839. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  1840. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  1841. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  1842. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  1843. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  1844. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  1845. var GOODS = data[i].goods == null ? "" : data[i].goods;
  1846. var NAME = data[i].name == null ? "" : data[i].name;
  1847. var SPEC = data[i].spec == null ? "" : data[i].spec;
  1848. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  1849. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  1850. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  1851. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  1852. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  1853. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  1854. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  1855. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  1856. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  1857. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  1858. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  1859. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  1860. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  1861. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  1862. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  1863. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  1864. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  1865. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  1866. sum_total = sum_total + DSUMVALUE
  1867. var invoice_type_cn =null;
  1868. if (invoice_type =="00" ){
  1869. invoice_type_cn="销售发票";
  1870. }else if (invoice_type == "01") {
  1871. invoice_type_cn="更正(对冲)发票";
  1872. }else if (invoice_type == "02") {
  1873. invoice_type_cn="其它类型发票";
  1874. }
  1875. html += "_$ta";
  1876. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  1877. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1878. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1879. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1880. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1881. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  1882. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1883. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1884. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  1885. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  1886. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  1887. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1888. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1889. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  1890. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  1891. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1892. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1893. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1894. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1895. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  1896. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  1897. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  1898. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1899. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1900. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  1901. html += "_$tag";
  1902. }
  1903. html += "_$ta";
  1904. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1905. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1906. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1907. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1908. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1909. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1910. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1911. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1912. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1913. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1914. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1915. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1916. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1917. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1918. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1919. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1920. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1921. html += "_$tag_____________$tag_合计:_$tag___$tag";
  1922. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  1923. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1924. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1925. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1926. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1927. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1928. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1929. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1930. html += "_$tag";
  1931. $("#dataTable").html(html);
  1932. }else {
  1933. $("#dataTable").html("");
  1934. }
  1935. },
  1936. "error" : function(msg){
  1937. },
  1938. "complete": function(){
  1939. layer.close(tip);
  1940. }
  1941. });
  1942. });
  1943. Date.prototype.Format = function (fmt) {
  1944. var o = {
  1945. "M+": this.getMonth() + 1, //月份
  1946. "d+": this.getDate(), //日
  1947. "h+": this.getHours(), //小时
  1948. "m+": this.getMinutes(), //分
  1949. "s+": this.getSeconds(), //秒
  1950. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  1951. "S": this.getMilliseconds() //毫秒
  1952. };
  1953. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  1954. for (var k in o)
  1955. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  1956. return fmt;
  1957. }
  1958. $("#jrjc").change(function() {
  1959. if ($("#jrjc").prop('checked') == true){
  1960. $("#departmentId").removeAttr("disabled");
  1961. }else {
  1962. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1963. }
  1964. });
  1965. ----------------------------------- SOURCE END -------------------------------------
  1966. !STACK 0
  1967. java.lang.NullPointerException
  1968. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:31:21.631
  1969. !MESSAGE Error while processing working copy
  1970. !STACK 1
  1971. JavaScript Model Exception: java.lang.NullPointerException
  1972. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  1973. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  1974. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  1975. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  1976. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  1977. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  1978. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  1979. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  1980. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  1981. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  1982. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  1983. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  1984. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  1985. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  1986. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  1987. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  1988. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  1989. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  1990. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  1991. Caused by: java.lang.NullPointerException
  1992. Caused by: java.lang.NullPointerException
  1993. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:31:21.631
  1994. !MESSAGE java.lang.NullPointerException
  1995. !STACK 0
  1996. java.lang.NullPointerException
  1997. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:31:22.681
  1998. !MESSAGE Exception occurred during problem detection:
  1999. ----------------------------------- SOURCE BEGIN -------------------------------------
  2000. (function(){WdatePicker();})();
  2001. (function(){WdatePicker();})();
  2002. (function(){Data.get();})();
  2003. (function(){Data.set();})();
  2004. (function(){search();})();
  2005. $(function(){
  2006. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2007. getfp();
  2008. });
  2009. var Data = {
  2010. "get" : function(){
  2011. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  2012. var tip = layer.load(2);
  2013. var result="";
  2014. var url = "getgyxml.do";
  2015. $.ajax({
  2016. "url" : url,
  2017. "data" : {
  2018. "start_date" : $("#dateBegin").val(),
  2019. "end_date" : $("#dateEnd").val()
  2020. },
  2021. "type" : "POST",
  2022. "dataType" : "json",
  2023. "success" : function(data) {
  2024. if(data != null && data != ""){
  2025. if ( data.status =="success"){
  2026. getfp();
  2027. alert("获取成功!");
  2028. }else {
  2029. alert(data.status);
  2030. }
  2031. }else {
  2032. alert("获取失败!");
  2033. }
  2034. },
  2035. "complete": function(){
  2036. layer.close(tip);
  2037. }
  2038. });
  2039. }else {
  2040. alert("请选择日期!");
  2041. }
  2042. },
  2043. "set" : function(){
  2044. if ( $("#fpid option:selected").text() !=""){
  2045. var tip = layer.load(2);
  2046. var gitem = $("#form1").serialize();
  2047. var jrjc;
  2048. if ($("#jrjc").prop('checked') == true){
  2049. jrjc = $("#departmentId").val();
  2050. }else {
  2051. jrjc ='N'
  2052. }
  2053. var url = "saverk.do";
  2054. $.ajax({
  2055. "url" : url,
  2056. "data" : {
  2057. "gitem" : gitem,
  2058. "jrjc" : jrjc
  2059. },
  2060. "type" : "POST",
  2061. "dataType" : "json",
  2062. "async" : true,
  2063. "success" : function(data) {
  2064. if(data.status =="success"){
  2065. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  2066. alert("入库成功!\n入库单号:"+data.rkdh+"");
  2067. }else {
  2068. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  2069. }
  2070. window.location.reload();
  2071. }else {
  2072. alert(msg);
  2073. }
  2074. },
  2075. "error": function(){
  2076. alert("确认失败!");
  2077. },
  2078. "complete": function(){
  2079. layer.close(tip);
  2080. }
  2081. });
  2082. }else {
  2083. alert("请选择发票!");
  2084. }
  2085. }
  2086. }
  2087. function getfp(){
  2088. var tip = layer.load(2);
  2089. var url = "getgyfp.do";
  2090. $.ajax({
  2091. "url" : url,
  2092. "type" : "POST",
  2093. "dataType" : "json",
  2094. "async" : true,
  2095. "success" : function(data) {
  2096. if(data != null && data != ""){
  2097. $("#fpid").empty();
  2098. $("#fpid").append("_$tag_____________$tag____");
  2099. for(var i = 0; i < data.length; i++){
  2100. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  2101. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  2102. }
  2103. }
  2104. },
  2105. "error" : function(msg){
  2106. },
  2107. "complete": function(){
  2108. layer.close(tip);
  2109. }
  2110. });
  2111. }
  2112. $("#fpid").change(function(){
  2113. var tip = layer.load(2);
  2114. var url = "getgyrkxx.do";
  2115. var sum_total=0;
  2116. $.ajax({
  2117. "url" : url,
  2118. "data" : {
  2119. "fpId" : $("#fpid").val()
  2120. },
  2121. "type" : "POST",
  2122. "dataType" : "json",
  2123. "async" : true,
  2124. "success" : function(data) {
  2125. $("#dataTable").html("");
  2126. if(data != null && data != ""){
  2127. var html = "";
  2128. for(var i = 0; i < data.length; i++){
  2129. var ID = data[i].id == null ? "" : data[i].id;
  2130. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  2131. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  2132. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  2133. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  2134. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  2135. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  2136. var GOODS = data[i].goods == null ? "" : data[i].goods;
  2137. var NAME = data[i].name == null ? "" : data[i].name;
  2138. var SPEC = data[i].spec == null ? "" : data[i].spec;
  2139. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  2140. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  2141. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  2142. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  2143. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  2144. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  2145. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  2146. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  2147. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  2148. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  2149. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  2150. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  2151. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  2152. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  2153. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  2154. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  2155. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  2156. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  2157. sum_total = sum_total + DSUMVALUE
  2158. var invoice_type_cn =null;
  2159. if (invoice_type =="00" ){
  2160. invoice_type_cn="销售发票";
  2161. }else if (invoice_type == "01") {
  2162. invoice_type_cn="更正(对冲)发票";
  2163. }else if (invoice_type == "02") {
  2164. invoice_type_cn="其它类型发票";
  2165. }
  2166. html += "_$ta";
  2167. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  2168. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2169. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2170. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2171. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2172. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  2173. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2174. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2175. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2176. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2177. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  2178. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2179. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2180. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  2181. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  2182. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2183. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2184. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2185. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2186. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  2187. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  2188. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  2189. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2190. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2191. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  2192. html += "_$tag";
  2193. }
  2194. html += "_$ta";
  2195. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2196. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2197. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2198. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2199. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2200. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2201. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2202. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2203. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2204. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2205. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2206. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2207. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2208. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2209. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2210. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2211. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2212. html += "_$tag_____________$tag_合计:_$tag___$tag";
  2213. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  2214. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2215. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2216. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2217. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2218. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2219. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2220. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2221. html += "_$tag";
  2222. $("#dataTable").html(html);
  2223. }else {
  2224. $("#dataTable").html("");
  2225. }
  2226. },
  2227. "error" : function(msg){
  2228. },
  2229. "complete": function(){
  2230. layer.close(tip);
  2231. }
  2232. });
  2233. });
  2234. Date.prototype.Format = function (fmt) {
  2235. var o = {
  2236. "M+": this.getMonth() + 1, //月份
  2237. "d+": this.getDate(), //日
  2238. "h+": this.getHours(), //小时
  2239. "m+": this.getMinutes(), //分
  2240. "s+": this.getSeconds(), //秒
  2241. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  2242. "S": this.getMilliseconds() //毫秒
  2243. };
  2244. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  2245. for (var k in o)
  2246. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  2247. return fmt;
  2248. }
  2249. $("#jrjc").change(function() {
  2250. if ($("#jrjc").prop('checked') == true){
  2251. $("#departmentId").removeAttr("disabled");
  2252. }else {
  2253. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2254. }
  2255. });
  2256. ----------------------------------- SOURCE END -------------------------------------
  2257. !STACK 0
  2258. java.lang.NullPointerException
  2259. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:31:23.159
  2260. !MESSAGE Exception occurred during problem detection:
  2261. ----------------------------------- SOURCE BEGIN -------------------------------------
  2262. (function(){WdatePicker();})();
  2263. (function(){WdatePicker();})();
  2264. (function(){Data.get();})();
  2265. (function(){Data.set();})();
  2266. (function(){search();})();
  2267. $(function(){
  2268. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2269. getfp();
  2270. });
  2271. var Data = {
  2272. "get" : function(){
  2273. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  2274. var tip = layer.load(2);
  2275. var result="";
  2276. var url = "getgyxml.do";
  2277. $.ajax({
  2278. "url" : url,
  2279. "data" : {
  2280. "start_date" : $("#dateBegin").val(),
  2281. "end_date" : $("#dateEnd").val()
  2282. },
  2283. "type" : "POST",
  2284. "dataType" : "json",
  2285. "success" : function(data) {
  2286. if(data != null && data != ""){
  2287. if ( data.status =="success"){
  2288. getfp();
  2289. alert("获取成功!");
  2290. }else {
  2291. alert(data.status);
  2292. }
  2293. }else {
  2294. alert("获取失败!");
  2295. }
  2296. },
  2297. "complete": function(){
  2298. layer.close(tip);
  2299. }
  2300. });
  2301. }else {
  2302. alert("请选择日期!");
  2303. }
  2304. },
  2305. "set" : function(){
  2306. if ( $("#fpid option:selected").text() !=""){
  2307. var tip = layer.load(2);
  2308. var gitem = $("#form1").serialize();
  2309. var jrjc;
  2310. if ($("#jrjc").prop('checked') == true){
  2311. jrjc = $("#departmentId").val();
  2312. }else {
  2313. jrjc ='N'
  2314. }
  2315. var url = "saverk.do";
  2316. $.ajax({
  2317. "url" : url,
  2318. "data" : {
  2319. "gitem" : gitem,
  2320. "jrjc" : jrjc
  2321. },
  2322. "type" : "POST",
  2323. "dataType" : "json",
  2324. "async" : true,
  2325. "success" : function(data) {
  2326. if(data.status =="success"){
  2327. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  2328. alert("入库成功!\n入库单号:"+data.rkdh+"");
  2329. }else {
  2330. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  2331. }
  2332. window.location.reload();
  2333. }else {
  2334. alert(msg);
  2335. }
  2336. },
  2337. "error": function(){
  2338. alert("确认失败!");
  2339. },
  2340. "complete": function(){
  2341. layer.close(tip);
  2342. }
  2343. });
  2344. }else {
  2345. alert("请选择发票!");
  2346. }
  2347. }
  2348. }
  2349. function getfp(){
  2350. var tip = layer.load(2);
  2351. var url = "getgyfp.do";
  2352. $.ajax({
  2353. "url" : url,
  2354. "type" : "POST",
  2355. "dataType" : "json",
  2356. "async" : true,
  2357. "success" : function(data) {
  2358. if(data != null && data != ""){
  2359. $("#fpid").empty();
  2360. $("#fpid").append("_$tag_____________$tag____");
  2361. for(var i = 0; i < data.length; i++){
  2362. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  2363. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  2364. }
  2365. }
  2366. },
  2367. "error" : function(msg){
  2368. },
  2369. "complete": function(){
  2370. layer.close(tip);
  2371. }
  2372. });
  2373. }
  2374. $("#fpid").change(function(){
  2375. var tip = layer.load(2);
  2376. var url = "getgyrkxx.do";
  2377. var sum_total=0;
  2378. $.ajax({
  2379. "url" : url,
  2380. "data" : {
  2381. "fpId" : $("#fpid").val()
  2382. },
  2383. "type" : "POST",
  2384. "dataType" : "json",
  2385. "async" : true,
  2386. "success" : function(data) {
  2387. $("#dataTable").html("");
  2388. if(data != null && data != ""){
  2389. var html = "";
  2390. for(var i = 0; i < data.length; i++){
  2391. var ID = data[i].id == null ? "" : data[i].id;
  2392. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  2393. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  2394. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  2395. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  2396. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  2397. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  2398. var GOODS = data[i].goods == null ? "" : data[i].goods;
  2399. var NAME = data[i].name == null ? "" : data[i].name;
  2400. var SPEC = data[i].spec == null ? "" : data[i].spec;
  2401. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  2402. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  2403. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  2404. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  2405. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  2406. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  2407. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  2408. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  2409. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  2410. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  2411. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  2412. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  2413. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  2414. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  2415. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  2416. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  2417. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  2418. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  2419. sum_total = sum_total + DSUMVALUE
  2420. var invoice_type_cn =null;
  2421. if (invoice_type =="00" ){
  2422. invoice_type_cn="销售发票";
  2423. }else if (invoice_type == "01") {
  2424. invoice_type_cn="更正(对冲)发票";
  2425. }else if (invoice_type == "02") {
  2426. invoice_type_cn="其它类型发票";
  2427. }
  2428. html += "_$ta";
  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";
  2445. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2446. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2447. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2448. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  2449. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  2450. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  2451. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2452. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2453. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  2454. html += "_$tag";
  2455. }
  2456. html += "_$ta";
  2457. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2458. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2459. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2460. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2461. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2462. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2463. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2464. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2465. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2466. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2467. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2468. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2469. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2470. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2471. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2472. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2473. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2474. html += "_$tag_____________$tag_合计:_$tag___$tag";
  2475. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  2476. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2477. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2478. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2479. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2480. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2481. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2482. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2483. html += "_$tag";
  2484. $("#dataTable").html(html);
  2485. }else {
  2486. $("#dataTable").html("");
  2487. }
  2488. },
  2489. "error" : function(msg){
  2490. },
  2491. "complete": function(){
  2492. layer.close(tip);
  2493. }
  2494. });
  2495. });
  2496. Date.prototype.Format = function (fmt) {
  2497. var o = {
  2498. "M+": this.getMonth() + 1, //月份
  2499. "d+": this.getDate(), //日
  2500. "h+": this.getHours(), //小时
  2501. "m+": this.getMinutes(), //分
  2502. "s+": this.getSeconds(), //秒
  2503. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  2504. "S": this.getMilliseconds() //毫秒
  2505. };
  2506. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  2507. for (var k in o)
  2508. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  2509. return fmt;
  2510. }
  2511. $("#jrjc").change(function() {
  2512. if ($("#jrjc").prop('checked') == true){
  2513. $("#departmentId").removeAttr("disabled");
  2514. }else {
  2515. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2516. }
  2517. });
  2518. ----------------------------------- SOURCE END -------------------------------------
  2519. !STACK 0
  2520. java.lang.NullPointerException
  2521. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:31:23.159
  2522. !MESSAGE Error while processing working copy
  2523. !STACK 1
  2524. JavaScript Model Exception: java.lang.NullPointerException
  2525. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  2526. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  2527. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  2528. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  2529. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  2530. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  2531. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  2532. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  2533. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  2534. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  2535. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  2536. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  2537. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  2538. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  2539. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  2540. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  2541. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  2542. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  2543. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  2544. Caused by: java.lang.NullPointerException
  2545. Caused by: java.lang.NullPointerException
  2546. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:31:23.160
  2547. !MESSAGE java.lang.NullPointerException
  2548. !STACK 0
  2549. java.lang.NullPointerException
  2550. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:31:23.800
  2551. !MESSAGE Exception occurred during problem detection:
  2552. ----------------------------------- SOURCE BEGIN -------------------------------------
  2553. (function(){WdatePicker();})();
  2554. (function(){WdatePicker();})();
  2555. (function(){Data.get();})();
  2556. (function(){Data.set();})();
  2557. (function(){search();})();
  2558. $(function(){
  2559. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2560. getfp();
  2561. });
  2562. var Data = {
  2563. "get" : function(){
  2564. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  2565. var tip = layer.load(2);
  2566. var result="";
  2567. var url = "getgyxml.do";
  2568. $.ajax({
  2569. "url" : url,
  2570. "data" : {
  2571. "start_date" : $("#dateBegin").val(),
  2572. "end_date" : $("#dateEnd").val()
  2573. },
  2574. "type" : "POST",
  2575. "dataType" : "json",
  2576. "success" : function(data) {
  2577. if(data != null && data != ""){
  2578. if ( data.status =="success"){
  2579. getfp();
  2580. alert("获取成功!");
  2581. }else {
  2582. alert(data.status);
  2583. }
  2584. }else {
  2585. alert("获取失败!");
  2586. }
  2587. },
  2588. "complete": function(){
  2589. layer.close(tip);
  2590. }
  2591. });
  2592. }else {
  2593. alert("请选择日期!");
  2594. }
  2595. },
  2596. "set" : function(){
  2597. if ( $("#fpid option:selected").text() !=""){
  2598. var tip = layer.load(2);
  2599. var gitem = $("#form1").serialize();
  2600. var jrjc;
  2601. if ($("#jrjc").prop('checked') == true){
  2602. jrjc = $("#departmentId").val();
  2603. }else {
  2604. jrjc ='N'
  2605. }
  2606. var url = "saverk.do";
  2607. $.ajax({
  2608. "url" : url,
  2609. "data" : {
  2610. "gitem" : gitem,
  2611. "jrjc" : jrjc
  2612. },
  2613. "type" : "POST",
  2614. "dataType" : "json",
  2615. "async" : true,
  2616. "success" : function(data) {
  2617. if(data.status =="success"){
  2618. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  2619. alert("入库成功!\n入库单号:"+data.rkdh+"");
  2620. }else {
  2621. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  2622. }
  2623. window.location.reload();
  2624. }else {
  2625. alert(msg);
  2626. }
  2627. },
  2628. "error": function(){
  2629. alert("确认失败!");
  2630. },
  2631. "complete": function(){
  2632. layer.close(tip);
  2633. }
  2634. });
  2635. }else {
  2636. alert("请选择发票!");
  2637. }
  2638. }
  2639. }
  2640. function getfp(){
  2641. var tip = layer.load(2);
  2642. var url = "getgyfp.do";
  2643. $.ajax({
  2644. "url" : url,
  2645. "type" : "POST",
  2646. "dataType" : "json",
  2647. "async" : true,
  2648. "success" : function(data) {
  2649. if(data != null && data != ""){
  2650. $("#fpid").empty();
  2651. $("#fpid").append("_$tag_____________$tag____");
  2652. for(var i = 0; i < data.length; i++){
  2653. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  2654. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  2655. }
  2656. }
  2657. },
  2658. "error" : function(msg){
  2659. },
  2660. "complete": function(){
  2661. layer.close(tip);
  2662. }
  2663. });
  2664. }
  2665. $("#fpid").change(function(){
  2666. var tip = layer.load(2);
  2667. var url = "getgyrkxx.do";
  2668. var sum_total=0;
  2669. $.ajax({
  2670. "url" : url,
  2671. "data" : {
  2672. "fpId" : $("#fpid").val()
  2673. },
  2674. "type" : "POST",
  2675. "dataType" : "json",
  2676. "async" : true,
  2677. "success" : function(data) {
  2678. $("#dataTable").html("");
  2679. if(data != null && data != ""){
  2680. var html = "";
  2681. for(var i = 0; i < data.length; i++){
  2682. var ID = data[i].id == null ? "" : data[i].id;
  2683. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  2684. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  2685. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  2686. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  2687. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  2688. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  2689. var GOODS = data[i].goods == null ? "" : data[i].goods;
  2690. var NAME = data[i].name == null ? "" : data[i].name;
  2691. var SPEC = data[i].spec == null ? "" : data[i].spec;
  2692. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  2693. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  2694. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  2695. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  2696. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  2697. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  2698. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  2699. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  2700. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  2701. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  2702. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  2703. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  2704. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  2705. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  2706. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  2707. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  2708. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  2709. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  2710. sum_total = sum_total + DSUMVALUE
  2711. var invoice_type_cn =null;
  2712. if (invoice_type =="00" ){
  2713. invoice_type_cn="销售发票";
  2714. }else if (invoice_type == "01") {
  2715. invoice_type_cn="更正(对冲)发票";
  2716. }else if (invoice_type == "02") {
  2717. invoice_type_cn="其它类型发票";
  2718. }
  2719. html += "_$ta";
  2720. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  2721. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2722. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2723. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2724. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2725. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  2726. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2727. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2728. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2729. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2730. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  2731. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2732. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2733. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  2734. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  2735. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2736. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2737. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2738. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2739. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  2740. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  2741. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  2742. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2743. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2744. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  2745. html += "_$tag";
  2746. }
  2747. html += "_$ta";
  2748. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2749. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2750. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2751. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2752. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2753. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2754. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2755. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2756. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2757. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2758. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2759. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2760. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2761. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2762. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2763. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2764. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2765. html += "_$tag_____________$tag_合计:_$tag___$tag";
  2766. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  2767. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2768. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2769. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2770. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2771. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2772. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2773. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2774. html += "_$tag";
  2775. $("#dataTable").html(html);
  2776. }else {
  2777. $("#dataTable").html("");
  2778. }
  2779. },
  2780. "error" : function(msg){
  2781. },
  2782. "complete": function(){
  2783. layer.close(tip);
  2784. }
  2785. });
  2786. });
  2787. Date.prototype.Format = function (fmt) {
  2788. var o = {
  2789. "M+": this.getMonth() + 1, //月份
  2790. "d+": this.getDate(), //日
  2791. "h+": this.getHours(), //小时
  2792. "m+": this.getMinutes(), //分
  2793. "s+": this.getSeconds(), //秒
  2794. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  2795. "S": this.getMilliseconds() //毫秒
  2796. };
  2797. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  2798. for (var k in o)
  2799. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  2800. return fmt;
  2801. }
  2802. $("#jrjc").change(function() {
  2803. if ($("#jrjc").prop('checked') == true){
  2804. $("#departmentId").removeAttr("disabled");
  2805. }else {
  2806. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2807. }
  2808. });
  2809. ----------------------------------- SOURCE END -------------------------------------
  2810. !STACK 0
  2811. java.lang.NullPointerException
  2812. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:31:26.973
  2813. !MESSAGE Exception occurred during problem detection:
  2814. ----------------------------------- SOURCE BEGIN -------------------------------------
  2815. (function(){WdatePicker();})();
  2816. (function(){WdatePicker();})();
  2817. (function(){Data.get();})();
  2818. (function(){Data.set();})();
  2819. (function(){search();})();
  2820. $(function(){
  2821. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2822. getfp();
  2823. });
  2824. var Data = {
  2825. "get" : function(){
  2826. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  2827. var tip = layer.load(2);
  2828. var result="";
  2829. var url = "getgyxml.do";
  2830. $.ajax({
  2831. "url" : url,
  2832. "data" : {
  2833. "start_date" : $("#dateBegin").val(),
  2834. "end_date" : $("#dateEnd").val()
  2835. },
  2836. "type" : "POST",
  2837. "dataType" : "json",
  2838. "success" : function(data) {
  2839. if(data != null && data != ""){
  2840. if ( data.status =="success"){
  2841. getfp();
  2842. alert("获取成功!");
  2843. }else {
  2844. alert(data.status);
  2845. }
  2846. }else {
  2847. alert("获取失败!");
  2848. }
  2849. },
  2850. "complete": function(){
  2851. layer.close(tip);
  2852. }
  2853. });
  2854. }else {
  2855. alert("请选择日期!");
  2856. }
  2857. },
  2858. "set" : function(){
  2859. if ( $("#fpid option:selected").text() !=""){
  2860. var tip = layer.load(2);
  2861. var gitem = $("#form1").serialize();
  2862. var jrjc;
  2863. if ($("#jrjc").prop('checked') == true){
  2864. jrjc = $("#departmentId").val();
  2865. }else {
  2866. jrjc ='N'
  2867. }
  2868. var url = "saverk.do";
  2869. $.ajax({
  2870. "url" : url,
  2871. "data" : {
  2872. "gitem" : gitem,
  2873. "jrjc" : jrjc
  2874. },
  2875. "type" : "POST",
  2876. "dataType" : "json",
  2877. "async" : true,
  2878. "success" : function(data) {
  2879. if(data.status =="success"){
  2880. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  2881. alert("入库成功!\n入库单号:"+data.rkdh+"");
  2882. }else {
  2883. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  2884. }
  2885. window.location.reload();
  2886. }else {
  2887. alert(msg);
  2888. }
  2889. },
  2890. "error": function(){
  2891. alert("确认失败!");
  2892. },
  2893. "complete": function(){
  2894. layer.close(tip);
  2895. }
  2896. });
  2897. }else {
  2898. alert("请选择发票!");
  2899. }
  2900. }
  2901. }
  2902. function getfp(){
  2903. var tip = layer.load(2);
  2904. var url = "getgyfp.do";
  2905. $.ajax({
  2906. "url" : url,
  2907. "type" : "POST",
  2908. "dataType" : "json",
  2909. "async" : true,
  2910. "success" : function(data) {
  2911. if(data != null && data != ""){
  2912. $("#fpid").empty();
  2913. $("#fpid").append("_$tag_____________$tag____");
  2914. for(var i = 0; i < data.length; i++){
  2915. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  2916. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  2917. }
  2918. }
  2919. },
  2920. "error" : function(msg){
  2921. },
  2922. "complete": function(){
  2923. layer.close(tip);
  2924. }
  2925. });
  2926. }
  2927. $("#fpid").change(function(){
  2928. var tip = layer.load(2);
  2929. var url = "getgyrkxx.do";
  2930. var sum_total=0;
  2931. $.ajax({
  2932. "url" : url,
  2933. "data" : {
  2934. "fpId" : $("#fpid").val()
  2935. },
  2936. "type" : "POST",
  2937. "dataType" : "json",
  2938. "async" : true,
  2939. "success" : function(data) {
  2940. $("#dataTable").html("");
  2941. if(data != null && data != ""){
  2942. var html = "";
  2943. for(var i = 0; i < data.length; i++){
  2944. var ID = data[i].id == null ? "" : data[i].id;
  2945. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  2946. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  2947. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  2948. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  2949. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  2950. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  2951. var GOODS = data[i].goods == null ? "" : data[i].goods;
  2952. var NAME = data[i].name == null ? "" : data[i].name;
  2953. var SPEC = data[i].spec == null ? "" : data[i].spec;
  2954. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  2955. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  2956. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  2957. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  2958. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  2959. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  2960. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  2961. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  2962. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  2963. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  2964. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  2965. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  2966. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  2967. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  2968. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  2969. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  2970. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  2971. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  2972. sum_total = sum_total + DSUMVALUE
  2973. var invoice_type_cn =null;
  2974. if (invoice_type =="00" ){
  2975. invoice_type_cn="销售发票";
  2976. }else if (invoice_type == "01") {
  2977. invoice_type_cn="更正(对冲)发票";
  2978. }else if (invoice_type == "02") {
  2979. invoice_type_cn="其它类型发票";
  2980. }
  2981. html += "_$ta";
  2982. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  2983. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2984. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2985. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2986. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2987. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  2988. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2989. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2990. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2991. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2992. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  2993. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2994. html += "_$tag_____________$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_____________$tag________________________________________________________________________________________________________________________________$tag";
  3002. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  3003. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  3004. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3005. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3006. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  3007. html += "_$tag";
  3008. }
  3009. html += "_$ta";
  3010. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3011. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3012. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3013. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3014. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3015. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3016. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3017. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3018. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3019. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3020. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3021. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3022. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3023. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3024. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3025. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3026. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3027. html += "_$tag_____________$tag_合计:_$tag___$tag";
  3028. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  3029. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3030. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3031. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3032. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3033. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3034. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3035. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3036. html += "_$tag";
  3037. $("#dataTable").html(html);
  3038. }else {
  3039. $("#dataTable").html("");
  3040. }
  3041. },
  3042. "error" : function(msg){
  3043. },
  3044. "complete": function(){
  3045. layer.close(tip);
  3046. }
  3047. });
  3048. });
  3049. Date.prototype.Format = function (fmt) {
  3050. var o = {
  3051. "M+": this.getMonth() + 1, //月份
  3052. "d+": this.getDate(), //日
  3053. "h+": this.getHours(), //小时
  3054. "m+": this.getMinutes(), //分
  3055. "s+": this.getSeconds(), //秒
  3056. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  3057. "S": this.getMilliseconds() //毫秒
  3058. };
  3059. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  3060. for (var k in o)
  3061. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  3062. return fmt;
  3063. }
  3064. $("#jrjc").change(function() {
  3065. if ($("#jrjc").prop('checked') == true){
  3066. $("#departmentId").removeAttr("disabled");
  3067. }else {
  3068. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3069. }
  3070. });
  3071. ----------------------------------- SOURCE END -------------------------------------
  3072. !STACK 0
  3073. java.lang.NullPointerException
  3074. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:31:26.973
  3075. !MESSAGE Error while processing working copy
  3076. !STACK 1
  3077. JavaScript Model Exception: java.lang.NullPointerException
  3078. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  3079. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  3080. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  3081. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  3082. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  3083. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  3084. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  3085. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  3086. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  3087. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  3088. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  3089. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  3090. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  3091. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  3092. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  3093. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  3094. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  3095. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  3096. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  3097. Caused by: java.lang.NullPointerException
  3098. Caused by: java.lang.NullPointerException
  3099. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:31:26.973
  3100. !MESSAGE java.lang.NullPointerException
  3101. !STACK 0
  3102. java.lang.NullPointerException
  3103. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:31:27.604
  3104. !MESSAGE Exception occurred during problem detection:
  3105. ----------------------------------- SOURCE BEGIN -------------------------------------
  3106. (function(){WdatePicker();})();
  3107. (function(){WdatePicker();})();
  3108. (function(){Data.get();})();
  3109. (function(){Data.set();})();
  3110. (function(){search();})();
  3111. $(function(){
  3112. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3113. getfp();
  3114. });
  3115. var Data = {
  3116. "get" : function(){
  3117. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  3118. var tip = layer.load(2);
  3119. var result="";
  3120. var url = "getgyxml.do";
  3121. $.ajax({
  3122. "url" : url,
  3123. "data" : {
  3124. "start_date" : $("#dateBegin").val(),
  3125. "end_date" : $("#dateEnd").val()
  3126. },
  3127. "type" : "POST",
  3128. "dataType" : "json",
  3129. "success" : function(data) {
  3130. if(data != null && data != ""){
  3131. if ( data.status =="success"){
  3132. getfp();
  3133. alert("获取成功!");
  3134. }else {
  3135. alert(data.status);
  3136. }
  3137. }else {
  3138. alert("获取失败!");
  3139. }
  3140. },
  3141. "complete": function(){
  3142. layer.close(tip);
  3143. }
  3144. });
  3145. }else {
  3146. alert("请选择日期!");
  3147. }
  3148. },
  3149. "set" : function(){
  3150. if ( $("#fpid option:selected").text() !=""){
  3151. var tip = layer.load(2);
  3152. var gitem = $("#form1").serialize();
  3153. var jrjc;
  3154. if ($("#jrjc").prop('checked') == true){
  3155. jrjc = $("#departmentId").val();
  3156. }else {
  3157. jrjc ='N'
  3158. }
  3159. var url = "saverk.do";
  3160. $.ajax({
  3161. "url" : url,
  3162. "data" : {
  3163. "gitem" : gitem,
  3164. "jrjc" : jrjc
  3165. },
  3166. "type" : "POST",
  3167. "dataType" : "json",
  3168. "async" : true,
  3169. "success" : function(data) {
  3170. if(data.status =="success"){
  3171. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  3172. alert("入库成功!\n入库单号:"+data.rkdh+"");
  3173. }else {
  3174. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  3175. }
  3176. window.location.reload();
  3177. }else {
  3178. alert(msg);
  3179. }
  3180. },
  3181. "error": function(){
  3182. alert("确认失败!");
  3183. },
  3184. "complete": function(){
  3185. layer.close(tip);
  3186. }
  3187. });
  3188. }else {
  3189. alert("请选择发票!");
  3190. }
  3191. }
  3192. }
  3193. function getfp(){
  3194. var tip = layer.load(2);
  3195. var url = "getgyfp.do";
  3196. $.ajax({
  3197. "url" : url,
  3198. "type" : "POST",
  3199. "dataType" : "json",
  3200. "async" : true,
  3201. "success" : function(data) {
  3202. if(data != null && data != ""){
  3203. $("#fpid").empty();
  3204. $("#fpid").append("_$tag_____________$tag____");
  3205. for(var i = 0; i < data.length; i++){
  3206. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  3207. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  3208. }
  3209. }
  3210. },
  3211. "error" : function(msg){
  3212. },
  3213. "complete": function(){
  3214. layer.close(tip);
  3215. }
  3216. });
  3217. }
  3218. $("#fpid").change(function(){
  3219. var tip = layer.load(2);
  3220. var url = "getgyrkxx.do";
  3221. var sum_total=0;
  3222. $.ajax({
  3223. "url" : url,
  3224. "data" : {
  3225. "fpId" : $("#fpid").val()
  3226. },
  3227. "type" : "POST",
  3228. "dataType" : "json",
  3229. "async" : true,
  3230. "success" : function(data) {
  3231. $("#dataTable").html("");
  3232. if(data != null && data != ""){
  3233. var html = "";
  3234. for(var i = 0; i < data.length; i++){
  3235. var ID = data[i].id == null ? "" : data[i].id;
  3236. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  3237. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  3238. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  3239. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  3240. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  3241. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  3242. var GOODS = data[i].goods == null ? "" : data[i].goods;
  3243. var NAME = data[i].name == null ? "" : data[i].name;
  3244. var SPEC = data[i].spec == null ? "" : data[i].spec;
  3245. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  3246. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  3247. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  3248. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  3249. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  3250. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  3251. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  3252. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  3253. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  3254. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  3255. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  3256. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  3257. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  3258. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  3259. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  3260. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  3261. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  3262. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  3263. sum_total = sum_total + DSUMVALUE
  3264. var invoice_type_cn =null;
  3265. if (invoice_type =="00" ){
  3266. invoice_type_cn="销售发票";
  3267. }else if (invoice_type == "01") {
  3268. invoice_type_cn="更正(对冲)发票";
  3269. }else if (invoice_type == "02") {
  3270. invoice_type_cn="其它类型发票";
  3271. }
  3272. html += "_$ta";
  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";
  3284. html += "_$tag_____________$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_____________$tag________________________________________________________________________________________________________________________________$tag";
  3293. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  3294. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  3295. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3296. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3297. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  3298. html += "_$tag";
  3299. }
  3300. html += "_$ta";
  3301. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3302. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3303. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3304. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3305. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3306. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3307. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3308. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3309. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3310. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3311. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3312. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3313. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3314. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3315. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3316. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3317. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3318. html += "_$tag_____________$tag_合计:_$tag___$tag";
  3319. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  3320. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3321. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3322. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3323. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3324. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3325. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3326. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3327. html += "_$tag";
  3328. $("#dataTable").html(html);
  3329. }else {
  3330. $("#dataTable").html("");
  3331. }
  3332. },
  3333. "error" : function(msg){
  3334. },
  3335. "complete": function(){
  3336. layer.close(tip);
  3337. }
  3338. });
  3339. });
  3340. Date.prototype.Format = function (fmt) {
  3341. var o = {
  3342. "M+": this.getMonth() + 1, //月份
  3343. "d+": this.getDate(), //日
  3344. "h+": this.getHours(), //小时
  3345. "m+": this.getMinutes(), //分
  3346. "s+": this.getSeconds(), //秒
  3347. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  3348. "S": this.getMilliseconds() //毫秒
  3349. };
  3350. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  3351. for (var k in o)
  3352. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  3353. return fmt;
  3354. }
  3355. $("#jrjc").change(function() {
  3356. if ($("#jrjc").prop('checked') == true){
  3357. $("#departmentId").removeAttr("disabled");
  3358. }else {
  3359. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3360. }
  3361. });
  3362. ----------------------------------- SOURCE END -------------------------------------
  3363. !STACK 0
  3364. java.lang.NullPointerException
  3365. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:31:37.983
  3366. !MESSAGE Exception occurred during problem detection:
  3367. ----------------------------------- SOURCE BEGIN -------------------------------------
  3368. (function(){WdatePicker();})();
  3369. (function(){WdatePicker();})();
  3370. (function(){Data.get();})();
  3371. (function(){Data.set();})();
  3372. (function(){search();})();
  3373. $(function(){
  3374. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3375. getfp();
  3376. });
  3377. var Data = {
  3378. "get" : function(){
  3379. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  3380. var tip = layer.load(2);
  3381. var result="";
  3382. var url = "getgyxml.do";
  3383. $.ajax({
  3384. "url" : url,
  3385. "data" : {
  3386. "start_date" : $("#dateBegin").val(),
  3387. "end_date" : $("#dateEnd").val()
  3388. },
  3389. "type" : "POST",
  3390. "dataType" : "json",
  3391. "success" : function(data) {
  3392. if(data != null && data != ""){
  3393. if ( data.status =="success"){
  3394. getfp();
  3395. alert("获取成功!");
  3396. }else {
  3397. alert(data.status);
  3398. }
  3399. }else {
  3400. alert("获取失败!");
  3401. }
  3402. },
  3403. "complete": function(){
  3404. layer.close(tip);
  3405. }
  3406. });
  3407. }else {
  3408. alert("请选择日期!");
  3409. }
  3410. },
  3411. "set" : function(){
  3412. if ( $("#fpid option:selected").text() !=""){
  3413. var tip = layer.load(2);
  3414. var gitem = $("#form1").serialize();
  3415. var jrjc;
  3416. if ($("#jrjc").prop('checked') == true){
  3417. jrjc = $("#departmentId").val();
  3418. }else {
  3419. jrjc ='N'
  3420. }
  3421. var url = "saverk.do";
  3422. $.ajax({
  3423. "url" : url,
  3424. "data" : {
  3425. "gitem" : gitem,
  3426. "jrjc" : jrjc
  3427. },
  3428. "type" : "POST",
  3429. "dataType" : "json",
  3430. "async" : true,
  3431. "success" : function(data) {
  3432. if(data.status =="success"){
  3433. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  3434. alert("入库成功!\n入库单号:"+data.rkdh+"");
  3435. }else {
  3436. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  3437. }
  3438. window.location.reload();
  3439. }else {
  3440. alert(msg);
  3441. }
  3442. },
  3443. "error": function(){
  3444. alert("确认失败!");
  3445. },
  3446. "complete": function(){
  3447. layer.close(tip);
  3448. }
  3449. });
  3450. }else {
  3451. alert("请选择发票!");
  3452. }
  3453. }
  3454. }
  3455. function getfp(){
  3456. var tip = layer.load(2);
  3457. var url = "getgyfp.do";
  3458. $.ajax({
  3459. "url" : url,
  3460. "type" : "POST",
  3461. "dataType" : "json",
  3462. "async" : true,
  3463. "success" : function(data) {
  3464. if(data != null && data != ""){
  3465. $("#fpid").empty();
  3466. $("#fpid").append("_$tag_____________$tag____");
  3467. for(var i = 0; i < data.length; i++){
  3468. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  3469. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  3470. }
  3471. }
  3472. },
  3473. "error" : function(msg){
  3474. },
  3475. "complete": function(){
  3476. layer.close(tip);
  3477. }
  3478. });
  3479. }
  3480. $("#fpid").change(function(){
  3481. var tip = layer.load(2);
  3482. var url = "getgyrkxx.do";
  3483. var sum_total=0;
  3484. $.ajax({
  3485. "url" : url,
  3486. "data" : {
  3487. "fpId" : $("#fpid").val()
  3488. },
  3489. "type" : "POST",
  3490. "dataType" : "json",
  3491. "async" : true,
  3492. "success" : function(data) {
  3493. $("#dataTable").html("");
  3494. if(data != null && data != ""){
  3495. var html = "";
  3496. for(var i = 0; i < data.length; i++){
  3497. var ID = data[i].id == null ? "" : data[i].id;
  3498. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  3499. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  3500. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  3501. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  3502. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  3503. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  3504. var GOODS = data[i].goods == null ? "" : data[i].goods;
  3505. var NAME = data[i].name == null ? "" : data[i].name;
  3506. var SPEC = data[i].spec == null ? "" : data[i].spec;
  3507. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  3508. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  3509. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  3510. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  3511. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  3512. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  3513. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  3514. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  3515. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  3516. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  3517. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  3518. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  3519. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  3520. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  3521. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  3522. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  3523. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  3524. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  3525. sum_total = sum_total + DSUMVALUE
  3526. var invoice_type_cn =null;
  3527. if (invoice_type =="00" ){
  3528. invoice_type_cn="销售发票";
  3529. }else if (invoice_type == "01") {
  3530. invoice_type_cn="更正(对冲)发票";
  3531. }else if (invoice_type == "02") {
  3532. invoice_type_cn="其它类型发票";
  3533. }
  3534. html += "_$ta";
  3535. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  3536. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3537. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3538. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  3539. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3540. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3541. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3542. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3543. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  3544. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3545. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3546. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  3547. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  3548. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3549. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3550. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3551. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3552. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  3553. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  3554. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  3555. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3556. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3557. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  3558. html += "_$tag";
  3559. }
  3560. html += "_$ta";
  3561. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3562. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3563. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3564. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3565. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3566. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3567. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3568. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3569. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3570. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3571. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3572. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3573. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3574. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3575. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3576. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3577. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3578. html += "_$tag_____________$tag_合计:_$tag___$tag";
  3579. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  3580. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3581. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3582. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3583. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3584. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3585. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3586. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3587. html += "_$tag";
  3588. $("#dataTable").html(html);
  3589. }else {
  3590. $("#dataTable").html("");
  3591. }
  3592. },
  3593. "error" : function(msg){
  3594. },
  3595. "complete": function(){
  3596. layer.close(tip);
  3597. }
  3598. });
  3599. });
  3600. Date.prototype.Format = function (fmt) {
  3601. var o = {
  3602. "M+": this.getMonth() + 1, //月份
  3603. "d+": this.getDate(), //日
  3604. "h+": this.getHours(), //小时
  3605. "m+": this.getMinutes(), //分
  3606. "s+": this.getSeconds(), //秒
  3607. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  3608. "S": this.getMilliseconds() //毫秒
  3609. };
  3610. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  3611. for (var k in o)
  3612. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  3613. return fmt;
  3614. }
  3615. $("#jrjc").change(function() {
  3616. if ($("#jrjc").prop('checked') == true){
  3617. $("#departmentId").removeAttr("disabled");
  3618. }else {
  3619. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3620. }
  3621. });
  3622. ----------------------------------- SOURCE END -------------------------------------
  3623. !STACK 0
  3624. java.lang.NullPointerException
  3625. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-07-23 09:31:37.984
  3626. !MESSAGE java.lang.NullPointerException
  3627. !STACK 1
  3628. JavaScript Model Exception: java.lang.NullPointerException
  3629. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  3630. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  3631. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  3632. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  3633. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  3634. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  3635. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  3636. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  3637. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  3638. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  3639. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  3640. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  3641. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  3642. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  3643. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  3644. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  3645. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  3646. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  3647. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  3648. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  3649. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  3650. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  3651. Caused by: java.lang.NullPointerException
  3652. Caused by: java.lang.NullPointerException
  3653. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:31:37.984
  3654. !MESSAGE java.lang.NullPointerException
  3655. !STACK 0
  3656. java.lang.NullPointerException
  3657. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:31:39.391
  3658. !MESSAGE Exception occurred during problem detection:
  3659. ----------------------------------- SOURCE BEGIN -------------------------------------
  3660. (function(){WdatePicker();})();
  3661. (function(){WdatePicker();})();
  3662. (function(){Data.get();})();
  3663. (function(){Data.set();})();
  3664. (function(){search();})();
  3665. $(function(){
  3666. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3667. getfp();
  3668. });
  3669. var Data = {
  3670. "get" : function(){
  3671. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  3672. var tip = layer.load(2);
  3673. var result="";
  3674. var url = "getgyxml.do";
  3675. $.ajax({
  3676. "url" : url,
  3677. "data" : {
  3678. "start_date" : $("#dateBegin").val(),
  3679. "end_date" : $("#dateEnd").val()
  3680. },
  3681. "type" : "POST",
  3682. "dataType" : "json",
  3683. "success" : function(data) {
  3684. if(data != null && data != ""){
  3685. if ( data.status =="success"){
  3686. getfp();
  3687. alert("获取成功!");
  3688. }else {
  3689. alert(data.status);
  3690. }
  3691. }else {
  3692. alert("获取失败!");
  3693. }
  3694. },
  3695. "complete": function(){
  3696. layer.close(tip);
  3697. }
  3698. });
  3699. }else {
  3700. alert("请选择日期!");
  3701. }
  3702. },
  3703. "set" : function(){
  3704. if ( $("#fpid option:selected").text() !=""){
  3705. var tip = layer.load(2);
  3706. var gitem = $("#form1").serialize();
  3707. var jrjc;
  3708. if ($("#jrjc").prop('checked') == true){
  3709. jrjc = $("#departmentId").val();
  3710. }else {
  3711. jrjc ='N'
  3712. }
  3713. var url = "saverk.do";
  3714. $.ajax({
  3715. "url" : url,
  3716. "data" : {
  3717. "gitem" : gitem,
  3718. "jrjc" : jrjc
  3719. },
  3720. "type" : "POST",
  3721. "dataType" : "json",
  3722. "async" : true,
  3723. "success" : function(data) {
  3724. if(data.status =="success"){
  3725. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  3726. alert("入库成功!\n入库单号:"+data.rkdh+"");
  3727. }else {
  3728. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  3729. }
  3730. window.location.reload();
  3731. }else {
  3732. alert(msg);
  3733. }
  3734. },
  3735. "error": function(){
  3736. alert("确认失败!");
  3737. },
  3738. "complete": function(){
  3739. layer.close(tip);
  3740. }
  3741. });
  3742. }else {
  3743. alert("请选择发票!");
  3744. }
  3745. }
  3746. }
  3747. function getfp(){
  3748. var tip = layer.load(2);
  3749. var url = "getgyfp.do";
  3750. $.ajax({
  3751. "url" : url,
  3752. "type" : "POST",
  3753. "dataType" : "json",
  3754. "async" : true,
  3755. "success" : function(data) {
  3756. if(data != null && data != ""){
  3757. $("#fpid").empty();
  3758. $("#fpid").append("_$tag_____________$tag____");
  3759. for(var i = 0; i < data.length; i++){
  3760. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  3761. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  3762. }
  3763. }
  3764. },
  3765. "error" : function(msg){
  3766. },
  3767. "complete": function(){
  3768. layer.close(tip);
  3769. }
  3770. });
  3771. }
  3772. $("#fpid").change(function(){
  3773. var tip = layer.load(2);
  3774. var url = "getgyrkxx.do";
  3775. var sum_total=0;
  3776. $.ajax({
  3777. "url" : url,
  3778. "data" : {
  3779. "fpId" : $("#fpid").val()
  3780. },
  3781. "type" : "POST",
  3782. "dataType" : "json",
  3783. "async" : true,
  3784. "success" : function(data) {
  3785. $("#dataTable").html("");
  3786. if(data != null && data != ""){
  3787. var html = "";
  3788. for(var i = 0; i < data.length; i++){
  3789. var ID = data[i].id == null ? "" : data[i].id;
  3790. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  3791. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  3792. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  3793. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  3794. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  3795. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  3796. var GOODS = data[i].goods == null ? "" : data[i].goods;
  3797. var NAME = data[i].name == null ? "" : data[i].name;
  3798. var SPEC = data[i].spec == null ? "" : data[i].spec;
  3799. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  3800. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  3801. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  3802. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  3803. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  3804. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  3805. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  3806. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  3807. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  3808. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  3809. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  3810. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  3811. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  3812. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  3813. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  3814. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  3815. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  3816. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  3817. sum_total = sum_total + DSUMVALUE
  3818. var invoice_type_cn =null;
  3819. if (invoice_type =="00" ){
  3820. invoice_type_cn="销售发票";
  3821. }else if (invoice_type == "01") {
  3822. invoice_type_cn="更正(对冲)发票";
  3823. }else if (invoice_type == "02") {
  3824. invoice_type_cn="其它类型发票";
  3825. }
  3826. html += "_$ta";
  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_____________$tag__________________________________________________________________________________________________________________________$tag";
  3842. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3843. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3844. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  3845. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  3846. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  3847. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3848. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3849. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  3850. html += "_$tag";
  3851. }
  3852. html += "_$ta";
  3853. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3854. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3855. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3856. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3857. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3858. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3859. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3860. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3861. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3862. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3863. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3864. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3865. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3866. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3867. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3868. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3869. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3870. html += "_$tag_____________$tag_合计:_$tag___$tag";
  3871. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  3872. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3873. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3874. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3875. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3876. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3877. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3878. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3879. html += "_$tag";
  3880. $("#dataTable").html(html);
  3881. }else {
  3882. $("#dataTable").html("");
  3883. }
  3884. },
  3885. "error" : function(msg){
  3886. },
  3887. "complete": function(){
  3888. layer.close(tip);
  3889. }
  3890. });
  3891. });
  3892. Date.prototype.Format = function (fmt) {
  3893. var o = {
  3894. "M+": this.getMonth() + 1, //月份
  3895. "d+": this.getDate(), //日
  3896. "h+": this.getHours(), //小时
  3897. "m+": this.getMinutes(), //分
  3898. "s+": this.getSeconds(), //秒
  3899. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  3900. "S": this.getMilliseconds() //毫秒
  3901. };
  3902. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  3903. for (var k in o)
  3904. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  3905. return fmt;
  3906. }
  3907. $("#jrjc").change(function() {
  3908. if ($("#jrjc").prop('checked') == true){
  3909. $("#departmentId").removeAttr("disabled");
  3910. }else {
  3911. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3912. }
  3913. });
  3914. ----------------------------------- SOURCE END -------------------------------------
  3915. !STACK 0
  3916. java.lang.NullPointerException
  3917. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-07-23 09:31:39.392
  3918. !MESSAGE java.lang.NullPointerException
  3919. !STACK 1
  3920. JavaScript Model Exception: java.lang.NullPointerException
  3921. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  3922. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  3923. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  3924. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  3925. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  3926. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  3927. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  3928. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  3929. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  3930. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  3931. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  3932. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  3933. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  3934. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  3935. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  3936. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  3937. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  3938. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  3939. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  3940. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  3941. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  3942. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  3943. Caused by: java.lang.NullPointerException
  3944. Caused by: java.lang.NullPointerException
  3945. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:31:39.392
  3946. !MESSAGE java.lang.NullPointerException
  3947. !STACK 0
  3948. java.lang.NullPointerException
  3949. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:31:39.793
  3950. !MESSAGE Exception occurred during problem detection:
  3951. ----------------------------------- SOURCE BEGIN -------------------------------------
  3952. (function(){WdatePicker();})();
  3953. (function(){WdatePicker();})();
  3954. (function(){Data.get();})();
  3955. (function(){Data.set();})();
  3956. (function(){search();})();
  3957. $(function(){
  3958. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3959. getfp();
  3960. });
  3961. var Data = {
  3962. "get" : function(){
  3963. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  3964. var tip = layer.load(2);
  3965. var result="";
  3966. var url = "getgyxml.do";
  3967. $.ajax({
  3968. "url" : url,
  3969. "data" : {
  3970. "start_date" : $("#dateBegin").val(),
  3971. "end_date" : $("#dateEnd").val()
  3972. },
  3973. "type" : "POST",
  3974. "dataType" : "json",
  3975. "success" : function(data) {
  3976. if(data != null && data != ""){
  3977. if ( data.status =="success"){
  3978. getfp();
  3979. alert("获取成功!");
  3980. }else {
  3981. alert(data.status);
  3982. }
  3983. }else {
  3984. alert("获取失败!");
  3985. }
  3986. },
  3987. "complete": function(){
  3988. layer.close(tip);
  3989. }
  3990. });
  3991. }else {
  3992. alert("请选择日期!");
  3993. }
  3994. },
  3995. "set" : function(){
  3996. if ( $("#fpid option:selected").text() !=""){
  3997. var tip = layer.load(2);
  3998. var gitem = $("#form1").serialize();
  3999. var jrjc;
  4000. if ($("#jrjc").prop('checked') == true){
  4001. jrjc = $("#departmentId").val();
  4002. }else {
  4003. jrjc ='N'
  4004. }
  4005. var url = "saverk.do";
  4006. $.ajax({
  4007. "url" : url,
  4008. "data" : {
  4009. "gitem" : gitem,
  4010. "jrjc" : jrjc
  4011. },
  4012. "type" : "POST",
  4013. "dataType" : "json",
  4014. "async" : true,
  4015. "success" : function(data) {
  4016. if(data.status =="success"){
  4017. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  4018. alert("入库成功!\n入库单号:"+data.rkdh+"");
  4019. }else {
  4020. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  4021. }
  4022. window.location.reload();
  4023. }else {
  4024. alert(msg);
  4025. }
  4026. },
  4027. "error": function(){
  4028. alert("确认失败!");
  4029. },
  4030. "complete": function(){
  4031. layer.close(tip);
  4032. }
  4033. });
  4034. }else {
  4035. alert("请选择发票!");
  4036. }
  4037. }
  4038. }
  4039. function getfp(){
  4040. var tip = layer.load(2);
  4041. var url = "getgyfp.do";
  4042. $.ajax({
  4043. "url" : url,
  4044. "type" : "POST",
  4045. "dataType" : "json",
  4046. "async" : true,
  4047. "success" : function(data) {
  4048. if(data != null && data != ""){
  4049. $("#fpid").empty();
  4050. $("#fpid").append("_$tag_____________$tag____");
  4051. for(var i = 0; i < data.length; i++){
  4052. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  4053. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  4054. }
  4055. }
  4056. },
  4057. "error" : function(msg){
  4058. },
  4059. "complete": function(){
  4060. layer.close(tip);
  4061. }
  4062. });
  4063. }
  4064. $("#fpid").change(function(){
  4065. var tip = layer.load(2);
  4066. var url = "getgyrkxx.do";
  4067. var sum_total=0;
  4068. $.ajax({
  4069. "url" : url,
  4070. "data" : {
  4071. "fpId" : $("#fpid").val()
  4072. },
  4073. "type" : "POST",
  4074. "dataType" : "json",
  4075. "async" : true,
  4076. "success" : function(data) {
  4077. $("#dataTable").html("");
  4078. if(data != null && data != ""){
  4079. var html = "";
  4080. for(var i = 0; i < data.length; i++){
  4081. var ID = data[i].id == null ? "" : data[i].id;
  4082. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  4083. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  4084. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  4085. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  4086. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  4087. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  4088. var GOODS = data[i].goods == null ? "" : data[i].goods;
  4089. var NAME = data[i].name == null ? "" : data[i].name;
  4090. var SPEC = data[i].spec == null ? "" : data[i].spec;
  4091. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  4092. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  4093. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  4094. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  4095. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  4096. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  4097. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  4098. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  4099. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  4100. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  4101. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  4102. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  4103. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  4104. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  4105. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  4106. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  4107. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  4108. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  4109. sum_total = sum_total + DSUMVALUE
  4110. var invoice_type_cn =null;
  4111. if (invoice_type =="00" ){
  4112. invoice_type_cn="销售发票";
  4113. }else if (invoice_type == "01") {
  4114. invoice_type_cn="更正(对冲)发票";
  4115. }else if (invoice_type == "02") {
  4116. invoice_type_cn="其它类型发票";
  4117. }
  4118. html += "_$ta";
  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_____________$tag____________________________________________________________________________________________________________________________$tag";
  4129. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4130. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  4131. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  4132. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4133. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4134. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4135. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4136. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  4137. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  4138. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  4139. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4140. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4141. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  4142. html += "_$tag";
  4143. }
  4144. html += "_$ta";
  4145. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4146. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4147. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4148. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4149. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4150. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4151. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4152. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4153. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4154. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4155. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4156. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4157. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4158. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4159. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4160. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4161. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4162. html += "_$tag_____________$tag_合计:_$tag___$tag";
  4163. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  4164. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4165. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4166. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4167. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4168. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4169. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4170. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4171. html += "_$tag";
  4172. $("#dataTable").html(html);
  4173. }else {
  4174. $("#dataTable").html("");
  4175. }
  4176. },
  4177. "error" : function(msg){
  4178. },
  4179. "complete": function(){
  4180. layer.close(tip);
  4181. }
  4182. });
  4183. });
  4184. Date.prototype.Format = function (fmt) {
  4185. var o = {
  4186. "M+": this.getMonth() + 1, //月份
  4187. "d+": this.getDate(), //日
  4188. "h+": this.getHours(), //小时
  4189. "m+": this.getMinutes(), //分
  4190. "s+": this.getSeconds(), //秒
  4191. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  4192. "S": this.getMilliseconds() //毫秒
  4193. };
  4194. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  4195. for (var k in o)
  4196. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  4197. return fmt;
  4198. }
  4199. $("#jrjc").change(function() {
  4200. if ($("#jrjc").prop('checked') == true){
  4201. $("#departmentId").removeAttr("disabled");
  4202. }else {
  4203. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4204. }
  4205. });
  4206. ----------------------------------- SOURCE END -------------------------------------
  4207. !STACK 0
  4208. java.lang.NullPointerException
  4209. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:31:39.794
  4210. !MESSAGE Error while processing working copy
  4211. !STACK 1
  4212. JavaScript Model Exception: java.lang.NullPointerException
  4213. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  4214. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  4215. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  4216. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  4217. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  4218. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  4219. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  4220. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  4221. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  4222. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  4223. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  4224. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  4225. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  4226. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  4227. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  4228. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  4229. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  4230. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  4231. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  4232. Caused by: java.lang.NullPointerException
  4233. Caused by: java.lang.NullPointerException
  4234. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:31:39.794
  4235. !MESSAGE java.lang.NullPointerException
  4236. !STACK 0
  4237. java.lang.NullPointerException
  4238. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:31:40.751
  4239. !MESSAGE Exception occurred during problem detection:
  4240. ----------------------------------- SOURCE BEGIN -------------------------------------
  4241. (function(){WdatePicker();})();
  4242. (function(){WdatePicker();})();
  4243. (function(){Data.get();})();
  4244. (function(){Data.set();})();
  4245. (function(){search();})();
  4246. $(function(){
  4247. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4248. getfp();
  4249. });
  4250. var Data = {
  4251. "get" : function(){
  4252. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  4253. var tip = layer.load(2);
  4254. var result="";
  4255. var url = "getgyxml.do";
  4256. $.ajax({
  4257. "url" : url,
  4258. "data" : {
  4259. "start_date" : $("#dateBegin").val(),
  4260. "end_date" : $("#dateEnd").val()
  4261. },
  4262. "type" : "POST",
  4263. "dataType" : "json",
  4264. "success" : function(data) {
  4265. if(data != null && data != ""){
  4266. if ( data.status =="success"){
  4267. getfp();
  4268. alert("获取成功!");
  4269. }else {
  4270. alert(data.status);
  4271. }
  4272. }else {
  4273. alert("获取失败!");
  4274. }
  4275. },
  4276. "complete": function(){
  4277. layer.close(tip);
  4278. }
  4279. });
  4280. }else {
  4281. alert("请选择日期!");
  4282. }
  4283. },
  4284. "set" : function(){
  4285. if ( $("#fpid option:selected").text() !=""){
  4286. var tip = layer.load(2);
  4287. var gitem = $("#form1").serialize();
  4288. var jrjc;
  4289. if ($("#jrjc").prop('checked') == true){
  4290. jrjc = $("#departmentId").val();
  4291. }else {
  4292. jrjc ='N'
  4293. }
  4294. var url = "saverk.do";
  4295. $.ajax({
  4296. "url" : url,
  4297. "data" : {
  4298. "gitem" : gitem,
  4299. "jrjc" : jrjc
  4300. },
  4301. "type" : "POST",
  4302. "dataType" : "json",
  4303. "async" : true,
  4304. "success" : function(data) {
  4305. if(data.status =="success"){
  4306. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  4307. alert("入库成功!\n入库单号:"+data.rkdh+"");
  4308. }else {
  4309. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  4310. }
  4311. window.location.reload();
  4312. }else {
  4313. alert(msg);
  4314. }
  4315. },
  4316. "error": function(){
  4317. alert("确认失败!");
  4318. },
  4319. "complete": function(){
  4320. layer.close(tip);
  4321. }
  4322. });
  4323. }else {
  4324. alert("请选择发票!");
  4325. }
  4326. }
  4327. }
  4328. function getfp(){
  4329. var tip = layer.load(2);
  4330. var url = "getgyfp.do";
  4331. $.ajax({
  4332. "url" : url,
  4333. "type" : "POST",
  4334. "dataType" : "json",
  4335. "async" : true,
  4336. "success" : function(data) {
  4337. if(data != null && data != ""){
  4338. $("#fpid").empty();
  4339. $("#fpid").append("_$tag_____________$tag____");
  4340. for(var i = 0; i < data.length; i++){
  4341. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  4342. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  4343. }
  4344. }
  4345. },
  4346. "error" : function(msg){
  4347. },
  4348. "complete": function(){
  4349. layer.close(tip);
  4350. }
  4351. });
  4352. }
  4353. $("#fpid").change(function(){
  4354. var tip = layer.load(2);
  4355. var url = "getgyrkxx.do";
  4356. var sum_total=0;
  4357. $.ajax({
  4358. "url" : url,
  4359. "data" : {
  4360. "fpId" : $("#fpid").val()
  4361. },
  4362. "type" : "POST",
  4363. "dataType" : "json",
  4364. "async" : true,
  4365. "success" : function(data) {
  4366. $("#dataTable").html("");
  4367. if(data != null && data != ""){
  4368. var html = "";
  4369. for(var i = 0; i < data.length; i++){
  4370. var ID = data[i].id == null ? "" : data[i].id;
  4371. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  4372. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  4373. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  4374. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  4375. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  4376. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  4377. var GOODS = data[i].goods == null ? "" : data[i].goods;
  4378. var NAME = data[i].name == null ? "" : data[i].name;
  4379. var SPEC = data[i].spec == null ? "" : data[i].spec;
  4380. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  4381. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  4382. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  4383. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  4384. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  4385. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  4386. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  4387. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  4388. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  4389. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  4390. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  4391. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  4392. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  4393. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  4394. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  4395. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  4396. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  4397. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  4398. sum_total = sum_total + DSUMVALUE
  4399. var invoice_type_cn =null;
  4400. if (invoice_type =="00" ){
  4401. invoice_type_cn="销售发票";
  4402. }else if (invoice_type == "01") {
  4403. invoice_type_cn="更正(对冲)发票";
  4404. }else if (invoice_type == "02") {
  4405. invoice_type_cn="其它类型发票";
  4406. }
  4407. html += "_$ta";
  4408. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  4409. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4410. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4411. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  4412. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4413. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4414. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4415. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4416. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  4417. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4418. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4419. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  4420. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  4421. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4422. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4423. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4424. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4425. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  4426. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  4427. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  4428. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4429. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4430. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  4431. html += "_$tag";
  4432. }
  4433. html += "_$ta";
  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_____________$tag____________________________________________________________________$tag";
  4442. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4443. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4444. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4445. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4446. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4447. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4448. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4449. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4450. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4451. html += "_$tag_____________$tag_合计:_$tag___$tag";
  4452. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  4453. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4454. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4455. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4456. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4457. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4458. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4459. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4460. html += "_$tag";
  4461. $("#dataTable").html(html);
  4462. }else {
  4463. $("#dataTable").html("");
  4464. }
  4465. },
  4466. "error" : function(msg){
  4467. },
  4468. "complete": function(){
  4469. layer.close(tip);
  4470. }
  4471. });
  4472. });
  4473. Date.prototype.Format = function (fmt) {
  4474. var o = {
  4475. "M+": this.getMonth() + 1, //月份
  4476. "d+": this.getDate(), //日
  4477. "h+": this.getHours(), //小时
  4478. "m+": this.getMinutes(), //分
  4479. "s+": this.getSeconds(), //秒
  4480. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  4481. "S": this.getMilliseconds() //毫秒
  4482. };
  4483. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  4484. for (var k in o)
  4485. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  4486. return fmt;
  4487. }
  4488. $("#jrjc").change(function() {
  4489. if ($("#jrjc").prop('checked') == true){
  4490. $("#departmentId").removeAttr("disabled");
  4491. }else {
  4492. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4493. }
  4494. });
  4495. ----------------------------------- SOURCE END -------------------------------------
  4496. !STACK 0
  4497. java.lang.NullPointerException
  4498. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:31:41.339
  4499. !MESSAGE Exception occurred during problem detection:
  4500. ----------------------------------- SOURCE BEGIN -------------------------------------
  4501. (function(){WdatePicker();})();
  4502. (function(){WdatePicker();})();
  4503. (function(){Data.get();})();
  4504. (function(){Data.set();})();
  4505. (function(){search();})();
  4506. $(function(){
  4507. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4508. getfp();
  4509. });
  4510. var Data = {
  4511. "get" : function(){
  4512. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  4513. var tip = layer.load(2);
  4514. var result="";
  4515. var url = "getgyxml.do";
  4516. $.ajax({
  4517. "url" : url,
  4518. "data" : {
  4519. "start_date" : $("#dateBegin").val(),
  4520. "end_date" : $("#dateEnd").val()
  4521. },
  4522. "type" : "POST",
  4523. "dataType" : "json",
  4524. "success" : function(data) {
  4525. if(data != null && data != ""){
  4526. if ( data.status =="success"){
  4527. getfp();
  4528. alert("获取成功!");
  4529. }else {
  4530. alert(data.status);
  4531. }
  4532. }else {
  4533. alert("获取失败!");
  4534. }
  4535. },
  4536. "complete": function(){
  4537. layer.close(tip);
  4538. }
  4539. });
  4540. }else {
  4541. alert("请选择日期!");
  4542. }
  4543. },
  4544. "set" : function(){
  4545. if ( $("#fpid option:selected").text() !=""){
  4546. var tip = layer.load(2);
  4547. var gitem = $("#form1").serialize();
  4548. var jrjc;
  4549. if ($("#jrjc").prop('checked') == true){
  4550. jrjc = $("#departmentId").val();
  4551. }else {
  4552. jrjc ='N'
  4553. }
  4554. var url = "saverk.do";
  4555. $.ajax({
  4556. "url" : url,
  4557. "data" : {
  4558. "gitem" : gitem,
  4559. "jrjc" : jrjc
  4560. },
  4561. "type" : "POST",
  4562. "dataType" : "json",
  4563. "async" : true,
  4564. "success" : function(data) {
  4565. if(data.status =="success"){
  4566. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  4567. alert("入库成功!\n入库单号:"+data.rkdh+"");
  4568. }else {
  4569. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  4570. }
  4571. window.location.reload();
  4572. }else {
  4573. alert(msg);
  4574. }
  4575. },
  4576. "error": function(){
  4577. alert("确认失败!");
  4578. },
  4579. "complete": function(){
  4580. layer.close(tip);
  4581. }
  4582. });
  4583. }else {
  4584. alert("请选择发票!");
  4585. }
  4586. }
  4587. }
  4588. function getfp(){
  4589. var tip = layer.load(2);
  4590. var url = "getgyfp.do";
  4591. $.ajax({
  4592. "url" : url,
  4593. "type" : "POST",
  4594. "dataType" : "json",
  4595. "async" : true,
  4596. "success" : function(data) {
  4597. if(data != null && data != ""){
  4598. $("#fpid").empty();
  4599. $("#fpid").append("_$tag_____________$tag____");
  4600. for(var i = 0; i < data.length; i++){
  4601. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  4602. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  4603. }
  4604. }
  4605. },
  4606. "error" : function(msg){
  4607. },
  4608. "complete": function(){
  4609. layer.close(tip);
  4610. }
  4611. });
  4612. }
  4613. $("#fpid").change(function(){
  4614. var tip = layer.load(2);
  4615. var url = "getgyrkxx.do";
  4616. var sum_total=0;
  4617. $.ajax({
  4618. "url" : url,
  4619. "data" : {
  4620. "fpId" : $("#fpid").val()
  4621. },
  4622. "type" : "POST",
  4623. "dataType" : "json",
  4624. "async" : true,
  4625. "success" : function(data) {
  4626. $("#dataTable").html("");
  4627. if(data != null && data != ""){
  4628. var html = "";
  4629. for(var i = 0; i < data.length; i++){
  4630. var ID = data[i].id == null ? "" : data[i].id;
  4631. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  4632. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  4633. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  4634. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  4635. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  4636. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  4637. var GOODS = data[i].goods == null ? "" : data[i].goods;
  4638. var NAME = data[i].name == null ? "" : data[i].name;
  4639. var SPEC = data[i].spec == null ? "" : data[i].spec;
  4640. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  4641. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  4642. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  4643. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  4644. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  4645. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  4646. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  4647. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  4648. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  4649. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  4650. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  4651. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  4652. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  4653. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  4654. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  4655. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  4656. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  4657. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  4658. sum_total = sum_total + DSUMVALUE
  4659. var invoice_type_cn =null;
  4660. if (invoice_type =="00" ){
  4661. invoice_type_cn="销售发票";
  4662. }else if (invoice_type == "01") {
  4663. invoice_type_cn="更正(对冲)发票";
  4664. }else if (invoice_type == "02") {
  4665. invoice_type_cn="其它类型发票";
  4666. }
  4667. html += "_$ta";
  4668. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  4669. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  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";
  4688. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4689. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4690. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  4691. html += "_$tag";
  4692. }
  4693. html += "_$ta";
  4694. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4695. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4696. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4697. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4698. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4699. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4700. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4701. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4702. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4703. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4704. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4705. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4706. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4707. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4708. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4709. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4710. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4711. html += "_$tag_____________$tag_合计:_$tag___$tag";
  4712. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  4713. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4714. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4715. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4716. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4717. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4718. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4719. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4720. html += "_$tag";
  4721. $("#dataTable").html(html);
  4722. }else {
  4723. $("#dataTable").html("");
  4724. }
  4725. },
  4726. "error" : function(msg){
  4727. },
  4728. "complete": function(){
  4729. layer.close(tip);
  4730. }
  4731. });
  4732. });
  4733. Date.prototype.Format = function (fmt) {
  4734. var o = {
  4735. "M+": this.getMonth() + 1, //月份
  4736. "d+": this.getDate(), //日
  4737. "h+": this.getHours(), //小时
  4738. "m+": this.getMinutes(), //分
  4739. "s+": this.getSeconds(), //秒
  4740. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  4741. "S": this.getMilliseconds() //毫秒
  4742. };
  4743. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  4744. for (var k in o)
  4745. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  4746. return fmt;
  4747. }
  4748. $("#jrjc").change(function() {
  4749. if ($("#jrjc").prop('checked') == true){
  4750. $("#departmentId").removeAttr("disabled");
  4751. }else {
  4752. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4753. }
  4754. });
  4755. ----------------------------------- SOURCE END -------------------------------------
  4756. !STACK 0
  4757. java.lang.NullPointerException
  4758. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:31:41.339
  4759. !MESSAGE Error while processing working copy
  4760. !STACK 1
  4761. JavaScript Model Exception: java.lang.NullPointerException
  4762. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  4763. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  4764. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  4765. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  4766. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  4767. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  4768. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  4769. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  4770. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  4771. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  4772. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  4773. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  4774. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  4775. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  4776. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  4777. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  4778. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  4779. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  4780. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  4781. Caused by: java.lang.NullPointerException
  4782. Caused by: java.lang.NullPointerException
  4783. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:31:41.339
  4784. !MESSAGE java.lang.NullPointerException
  4785. !STACK 0
  4786. java.lang.NullPointerException
  4787. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:31:42.306
  4788. !MESSAGE Exception occurred during problem detection:
  4789. ----------------------------------- SOURCE BEGIN -------------------------------------
  4790. (function(){WdatePicker();})();
  4791. (function(){WdatePicker();})();
  4792. (function(){Data.get();})();
  4793. (function(){Data.set();})();
  4794. (function(){search();})();
  4795. $(function(){
  4796. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4797. getfp();
  4798. });
  4799. var Data = {
  4800. "get" : function(){
  4801. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  4802. var tip = layer.load(2);
  4803. var result="";
  4804. var url = "getgyxml.do";
  4805. $.ajax({
  4806. "url" : url,
  4807. "data" : {
  4808. "start_date" : $("#dateBegin").val(),
  4809. "end_date" : $("#dateEnd").val()
  4810. },
  4811. "type" : "POST",
  4812. "dataType" : "json",
  4813. "success" : function(data) {
  4814. if(data != null && data != ""){
  4815. if ( data.status =="success"){
  4816. getfp();
  4817. alert("获取成功!");
  4818. }else {
  4819. alert(data.status);
  4820. }
  4821. }else {
  4822. alert("获取失败!");
  4823. }
  4824. },
  4825. "complete": function(){
  4826. layer.close(tip);
  4827. }
  4828. });
  4829. }else {
  4830. alert("请选择日期!");
  4831. }
  4832. },
  4833. "set" : function(){
  4834. if ( $("#fpid option:selected").text() !=""){
  4835. var tip = layer.load(2);
  4836. var gitem = $("#form1").serialize();
  4837. var jrjc;
  4838. if ($("#jrjc").prop('checked') == true){
  4839. jrjc = $("#departmentId").val();
  4840. }else {
  4841. jrjc ='N'
  4842. }
  4843. var url = "saverk.do";
  4844. $.ajax({
  4845. "url" : url,
  4846. "data" : {
  4847. "gitem" : gitem,
  4848. "jrjc" : jrjc
  4849. },
  4850. "type" : "POST",
  4851. "dataType" : "json",
  4852. "async" : true,
  4853. "success" : function(data) {
  4854. if(data.status =="success"){
  4855. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  4856. alert("入库成功!\n入库单号:"+data.rkdh+"");
  4857. }else {
  4858. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  4859. }
  4860. window.location.reload();
  4861. }else {
  4862. alert(msg);
  4863. }
  4864. },
  4865. "error": function(){
  4866. alert("确认失败!");
  4867. },
  4868. "complete": function(){
  4869. layer.close(tip);
  4870. }
  4871. });
  4872. }else {
  4873. alert("请选择发票!");
  4874. }
  4875. }
  4876. }
  4877. function getfp(){
  4878. var tip = layer.load(2);
  4879. var url = "getgyfp.do";
  4880. $.ajax({
  4881. "url" : url,
  4882. "type" : "POST",
  4883. "dataType" : "json",
  4884. "async" : true,
  4885. "success" : function(data) {
  4886. if(data != null && data != ""){
  4887. $("#fpid").empty();
  4888. $("#fpid").append("_$tag_____________$tag____");
  4889. for(var i = 0; i < data.length; i++){
  4890. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  4891. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  4892. }
  4893. }
  4894. },
  4895. "error" : function(msg){
  4896. },
  4897. "complete": function(){
  4898. layer.close(tip);
  4899. }
  4900. });
  4901. }
  4902. $("#fpid").change(function(){
  4903. var tip = layer.load(2);
  4904. var url = "getgyrkxx.do";
  4905. var sum_total=0;
  4906. $.ajax({
  4907. "url" : url,
  4908. "data" : {
  4909. "fpId" : $("#fpid").val()
  4910. },
  4911. "type" : "POST",
  4912. "dataType" : "json",
  4913. "async" : true,
  4914. "success" : function(data) {
  4915. $("#dataTable").html("");
  4916. if(data != null && data != ""){
  4917. var html = "";
  4918. for(var i = 0; i < data.length; i++){
  4919. var ID = data[i].id == null ? "" : data[i].id;
  4920. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  4921. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  4922. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  4923. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  4924. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  4925. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  4926. var GOODS = data[i].goods == null ? "" : data[i].goods;
  4927. var NAME = data[i].name == null ? "" : data[i].name;
  4928. var SPEC = data[i].spec == null ? "" : data[i].spec;
  4929. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  4930. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  4931. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  4932. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  4933. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  4934. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  4935. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  4936. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  4937. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  4938. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  4939. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  4940. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  4941. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  4942. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  4943. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  4944. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  4945. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  4946. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  4947. sum_total = sum_total + DSUMVALUE
  4948. var invoice_type_cn =null;
  4949. if (invoice_type =="00" ){
  4950. invoice_type_cn="销售发票";
  4951. }else if (invoice_type == "01") {
  4952. invoice_type_cn="更正(对冲)发票";
  4953. }else if (invoice_type == "02") {
  4954. invoice_type_cn="其它类型发票";
  4955. }
  4956. html += "_$ta";
  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";
  4972. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4973. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4974. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  4975. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  4976. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  4977. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4978. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4979. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  4980. html += "_$tag";
  4981. }
  4982. html += "_$ta";
  4983. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4984. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4985. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4986. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4987. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4988. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4989. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4990. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4991. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4992. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4993. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4994. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4995. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4996. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4997. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4998. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4999. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5000. html += "_$tag_____________$tag_合计:_$tag___$tag";
  5001. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  5002. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5003. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5004. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5005. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5006. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5007. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5008. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5009. html += "_$tag";
  5010. $("#dataTable").html(html);
  5011. }else {
  5012. $("#dataTable").html("");
  5013. }
  5014. },
  5015. "error" : function(msg){
  5016. },
  5017. "complete": function(){
  5018. layer.close(tip);
  5019. }
  5020. });
  5021. });
  5022. Date.prototype.Format = function (fmt) {
  5023. var o = {
  5024. "M+": this.getMonth() + 1, //月份
  5025. "d+": this.getDate(), //日
  5026. "h+": this.getHours(), //小时
  5027. "m+": this.getMinutes(), //分
  5028. "s+": this.getSeconds(), //秒
  5029. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  5030. "S": this.getMilliseconds() //毫秒
  5031. };
  5032. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  5033. for (var k in o)
  5034. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  5035. return fmt;
  5036. }
  5037. $("#jrjc").change(function() {
  5038. if ($("#jrjc").prop('checked') == true){
  5039. $("#departmentId").removeAttr("disabled");
  5040. }else {
  5041. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5042. }
  5043. });
  5044. ----------------------------------- SOURCE END -------------------------------------
  5045. !STACK 0
  5046. java.lang.NullPointerException
  5047. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:31:47.651
  5048. !MESSAGE Exception occurred during problem detection:
  5049. ----------------------------------- SOURCE BEGIN -------------------------------------
  5050. (function(){WdatePicker();})();
  5051. (function(){WdatePicker();})();
  5052. (function(){Data.get();})();
  5053. (function(){Data.set();})();
  5054. (function(){search();})();
  5055. $(function(){
  5056. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5057. getfp();
  5058. });
  5059. var Data = {
  5060. "get" : function(){
  5061. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  5062. var tip = layer.load(2);
  5063. var result="";
  5064. var url = "getgyxml.do";
  5065. $.ajax({
  5066. "url" : url,
  5067. "data" : {
  5068. "start_date" : $("#dateBegin").val(),
  5069. "end_date" : $("#dateEnd").val()
  5070. },
  5071. "type" : "POST",
  5072. "dataType" : "json",
  5073. "success" : function(data) {
  5074. if(data != null && data != ""){
  5075. if ( data.status =="success"){
  5076. getfp();
  5077. alert("获取成功!");
  5078. }else {
  5079. alert(data.status);
  5080. }
  5081. }else {
  5082. alert("获取失败!");
  5083. }
  5084. },
  5085. "complete": function(){
  5086. layer.close(tip);
  5087. }
  5088. });
  5089. }else {
  5090. alert("请选择日期!");
  5091. }
  5092. },
  5093. "set" : function(){
  5094. if ( $("#fpid option:selected").text() !=""){
  5095. var tip = layer.load(2);
  5096. var gitem = $("#form1").serialize();
  5097. var jrjc;
  5098. if ($("#jrjc").prop('checked') == true){
  5099. jrjc = $("#departmentId").val();
  5100. }else {
  5101. jrjc ='N'
  5102. }
  5103. var url = "saverk.do";
  5104. $.ajax({
  5105. "url" : url,
  5106. "data" : {
  5107. "gitem" : gitem,
  5108. "jrjc" : jrjc
  5109. },
  5110. "type" : "POST",
  5111. "dataType" : "json",
  5112. "async" : true,
  5113. "success" : function(data) {
  5114. if(data.status =="success"){
  5115. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  5116. alert("入库成功!\n入库单号:"+data.rkdh+"");
  5117. }else {
  5118. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  5119. }
  5120. window.location.reload();
  5121. }else {
  5122. alert(msg);
  5123. }
  5124. },
  5125. "error": function(){
  5126. alert("确认失败!");
  5127. },
  5128. "complete": function(){
  5129. layer.close(tip);
  5130. }
  5131. });
  5132. }else {
  5133. alert("请选择发票!");
  5134. }
  5135. }
  5136. }
  5137. function getfp(){
  5138. var tip = layer.load(2);
  5139. var url = "getgyfp.do";
  5140. $.ajax({
  5141. "url" : url,
  5142. "type" : "POST",
  5143. "dataType" : "json",
  5144. "async" : true,
  5145. "success" : function(data) {
  5146. if(data != null && data != ""){
  5147. $("#fpid").empty();
  5148. $("#fpid").append("_$tag_____________$tag____");
  5149. for(var i = 0; i < data.length; i++){
  5150. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  5151. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  5152. }
  5153. }
  5154. },
  5155. "error" : function(msg){
  5156. },
  5157. "complete": function(){
  5158. layer.close(tip);
  5159. }
  5160. });
  5161. }
  5162. $("#fpid").change(function(){
  5163. var tip = layer.load(2);
  5164. var url = "getgyrkxx.do";
  5165. var sum_total=0;
  5166. $.ajax({
  5167. "url" : url,
  5168. "data" : {
  5169. "fpId" : $("#fpid").val()
  5170. },
  5171. "type" : "POST",
  5172. "dataType" : "json",
  5173. "async" : true,
  5174. "success" : function(data) {
  5175. $("#dataTable").html("");
  5176. if(data != null && data != ""){
  5177. var html = "";
  5178. for(var i = 0; i < data.length; i++){
  5179. var ID = data[i].id == null ? "" : data[i].id;
  5180. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  5181. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  5182. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  5183. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  5184. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  5185. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  5186. var GOODS = data[i].goods == null ? "" : data[i].goods;
  5187. var NAME = data[i].name == null ? "" : data[i].name;
  5188. var SPEC = data[i].spec == null ? "" : data[i].spec;
  5189. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  5190. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  5191. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  5192. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  5193. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  5194. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  5195. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  5196. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  5197. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  5198. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  5199. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  5200. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  5201. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  5202. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  5203. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  5204. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  5205. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  5206. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  5207. sum_total = sum_total + DSUMVALUE
  5208. var invoice_type_cn =null;
  5209. if (invoice_type =="00" ){
  5210. invoice_type_cn="销售发票";
  5211. }else if (invoice_type == "01") {
  5212. invoice_type_cn="更正(对冲)发票";
  5213. }else if (invoice_type == "02") {
  5214. invoice_type_cn="其它类型发票";
  5215. }
  5216. html += "_$ta";
  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";
  5227. html += "_$tag_____________$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_____________$tag______________________________________________________________________________________________________________________________________$tag";
  5236. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5237. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5238. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  5239. html += "_$tag";
  5240. }
  5241. html += "_$ta";
  5242. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5243. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5244. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5245. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5246. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5247. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5248. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5249. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5250. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5251. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5252. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5253. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5254. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5255. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5256. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5257. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5258. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5259. html += "_$tag_____________$tag_合计:_$tag___$tag";
  5260. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  5261. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5262. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5263. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5264. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5265. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5266. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5267. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5268. html += "_$tag";
  5269. $("#dataTable").html(html);
  5270. }else {
  5271. $("#dataTable").html("");
  5272. }
  5273. },
  5274. "error" : function(msg){
  5275. },
  5276. "complete": function(){
  5277. layer.close(tip);
  5278. }
  5279. });
  5280. });
  5281. Date.prototype.Format = function (fmt) {
  5282. var o = {
  5283. "M+": this.getMonth() + 1, //月份
  5284. "d+": this.getDate(), //日
  5285. "h+": this.getHours(), //小时
  5286. "m+": this.getMinutes(), //分
  5287. "s+": this.getSeconds(), //秒
  5288. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  5289. "S": this.getMilliseconds() //毫秒
  5290. };
  5291. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  5292. for (var k in o)
  5293. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  5294. return fmt;
  5295. }
  5296. $("#jrjc").change(function() {
  5297. if ($("#jrjc").prop('checked') == true){
  5298. $("#departmentId").removeAttr("disabled");
  5299. }else {
  5300. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5301. }
  5302. });
  5303. ----------------------------------- SOURCE END -------------------------------------
  5304. !STACK 0
  5305. java.lang.NullPointerException
  5306. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-07-23 09:31:47.652
  5307. !MESSAGE java.lang.NullPointerException
  5308. !STACK 1
  5309. JavaScript Model Exception: java.lang.NullPointerException
  5310. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  5311. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  5312. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  5313. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  5314. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  5315. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  5316. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  5317. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  5318. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  5319. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  5320. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  5321. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  5322. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  5323. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  5324. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  5325. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  5326. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  5327. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  5328. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  5329. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  5330. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  5331. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  5332. Caused by: java.lang.NullPointerException
  5333. Caused by: java.lang.NullPointerException
  5334. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:31:47.652
  5335. !MESSAGE java.lang.NullPointerException
  5336. !STACK 0
  5337. java.lang.NullPointerException
  5338. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:31:50.191
  5339. !MESSAGE Exception occurred during problem detection:
  5340. ----------------------------------- SOURCE BEGIN -------------------------------------
  5341. (function(){WdatePicker();})();
  5342. (function(){WdatePicker();})();
  5343. (function(){Data.get();})();
  5344. (function(){Data.set();})();
  5345. (function(){search();})();
  5346. $(function(){
  5347. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5348. getfp();
  5349. });
  5350. var Data = {
  5351. "get" : function(){
  5352. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  5353. var tip = layer.load(2);
  5354. var result="";
  5355. var url = "getgyxml.do";
  5356. $.ajax({
  5357. "url" : url,
  5358. "data" : {
  5359. "start_date" : $("#dateBegin").val(),
  5360. "end_date" : $("#dateEnd").val()
  5361. },
  5362. "type" : "POST",
  5363. "dataType" : "json",
  5364. "success" : function(data) {
  5365. if(data != null && data != ""){
  5366. if ( data.status =="success"){
  5367. getfp();
  5368. alert("获取成功!");
  5369. }else {
  5370. alert(data.status);
  5371. }
  5372. }else {
  5373. alert("获取失败!");
  5374. }
  5375. },
  5376. "complete": function(){
  5377. layer.close(tip);
  5378. }
  5379. });
  5380. }else {
  5381. alert("请选择日期!");
  5382. }
  5383. },
  5384. "set" : function(){
  5385. if ( $("#fpid option:selected").text() !=""){
  5386. var tip = layer.load(2);
  5387. var gitem = $("#form1").serialize();
  5388. var jrjc;
  5389. if ($("#jrjc").prop('checked') == true){
  5390. jrjc = $("#departmentId").val();
  5391. }else {
  5392. jrjc ='N'
  5393. }
  5394. var url = "saverk.do";
  5395. $.ajax({
  5396. "url" : url,
  5397. "data" : {
  5398. "gitem" : gitem,
  5399. "jrjc" : jrjc
  5400. },
  5401. "type" : "POST",
  5402. "dataType" : "json",
  5403. "async" : true,
  5404. "success" : function(data) {
  5405. if(data.status =="success"){
  5406. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  5407. alert("入库成功!\n入库单号:"+data.rkdh+"");
  5408. }else {
  5409. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  5410. }
  5411. window.location.reload();
  5412. }else {
  5413. alert(msg);
  5414. }
  5415. },
  5416. "error": function(){
  5417. alert("确认失败!");
  5418. },
  5419. "complete": function(){
  5420. layer.close(tip);
  5421. }
  5422. });
  5423. }else {
  5424. alert("请选择发票!");
  5425. }
  5426. }
  5427. }
  5428. function getfp(){
  5429. var tip = layer.load(2);
  5430. var url = "getgyfp.do";
  5431. $.ajax({
  5432. "url" : url,
  5433. "type" : "POST",
  5434. "dataType" : "json",
  5435. "async" : true,
  5436. "success" : function(data) {
  5437. if(data != null && data != ""){
  5438. $("#fpid").empty();
  5439. $("#fpid").append("_$tag_____________$tag____");
  5440. for(var i = 0; i < data.length; i++){
  5441. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  5442. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  5443. }
  5444. }
  5445. },
  5446. "error" : function(msg){
  5447. },
  5448. "complete": function(){
  5449. layer.close(tip);
  5450. }
  5451. });
  5452. }
  5453. $("#fpid").change(function(){
  5454. var tip = layer.load(2);
  5455. var url = "getgyrkxx.do";
  5456. var sum_total=0;
  5457. $.ajax({
  5458. "url" : url,
  5459. "data" : {
  5460. "fpId" : $("#fpid").val()
  5461. },
  5462. "type" : "POST",
  5463. "dataType" : "json",
  5464. "async" : true,
  5465. "success" : function(data) {
  5466. $("#dataTable").html("");
  5467. if(data != null && data != ""){
  5468. var html = "";
  5469. for(var i = 0; i < data.length; i++){
  5470. var ID = data[i].id == null ? "" : data[i].id;
  5471. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  5472. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  5473. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  5474. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  5475. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  5476. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  5477. var GOODS = data[i].goods == null ? "" : data[i].goods;
  5478. var NAME = data[i].name == null ? "" : data[i].name;
  5479. var SPEC = data[i].spec == null ? "" : data[i].spec;
  5480. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  5481. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  5482. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  5483. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  5484. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  5485. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  5486. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  5487. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  5488. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  5489. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  5490. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  5491. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  5492. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  5493. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  5494. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  5495. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  5496. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  5497. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  5498. sum_total = sum_total + DSUMVALUE
  5499. var invoice_type_cn =null;
  5500. if (invoice_type =="00" ){
  5501. invoice_type_cn="销售发票";
  5502. }else if (invoice_type == "01") {
  5503. invoice_type_cn="更正(对冲)发票";
  5504. }else if (invoice_type == "02") {
  5505. invoice_type_cn="其它类型发票";
  5506. }
  5507. html += "_$ta";
  5508. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  5509. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5510. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5511. html += "_$tag_____________$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_____________$tag___________________________________________________________________________________________________________________________$tag";
  5520. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5521. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5522. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5523. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5524. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  5525. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  5526. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  5527. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5528. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5529. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  5530. html += "_$tag";
  5531. }
  5532. html += "_$ta";
  5533. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5534. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5535. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5536. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5537. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5538. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5539. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5540. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5541. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5542. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5543. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5544. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5545. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5546. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5547. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5548. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5549. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5550. html += "_$tag_____________$tag_合计:_$tag___$tag";
  5551. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  5552. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5553. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5554. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5555. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5556. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5557. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5558. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5559. html += "_$tag";
  5560. $("#dataTable").html(html);
  5561. }else {
  5562. $("#dataTable").html("");
  5563. }
  5564. },
  5565. "error" : function(msg){
  5566. },
  5567. "complete": function(){
  5568. layer.close(tip);
  5569. }
  5570. });
  5571. });
  5572. Date.prototype.Format = function (fmt) {
  5573. var o = {
  5574. "M+": this.getMonth() + 1, //月份
  5575. "d+": this.getDate(), //日
  5576. "h+": this.getHours(), //小时
  5577. "m+": this.getMinutes(), //分
  5578. "s+": this.getSeconds(), //秒
  5579. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  5580. "S": this.getMilliseconds() //毫秒
  5581. };
  5582. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  5583. for (var k in o)
  5584. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  5585. return fmt;
  5586. }
  5587. $("#jrjc").change(function() {
  5588. if ($("#jrjc").prop('checked') == true){
  5589. $("#departmentId").removeAttr("disabled");
  5590. }else {
  5591. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5592. }
  5593. });
  5594. ----------------------------------- SOURCE END -------------------------------------
  5595. !STACK 0
  5596. java.lang.NullPointerException
  5597. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:31:50.192
  5598. !MESSAGE Error while processing working copy
  5599. !STACK 1
  5600. JavaScript Model Exception: java.lang.NullPointerException
  5601. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  5602. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  5603. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  5604. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  5605. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  5606. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  5607. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  5608. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  5609. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  5610. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  5611. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  5612. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  5613. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  5614. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  5615. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  5616. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  5617. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  5618. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  5619. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  5620. Caused by: java.lang.NullPointerException
  5621. Caused by: java.lang.NullPointerException
  5622. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:31:50.192
  5623. !MESSAGE java.lang.NullPointerException
  5624. !STACK 0
  5625. java.lang.NullPointerException
  5626. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:31:51.243
  5627. !MESSAGE Exception occurred during problem detection:
  5628. ----------------------------------- SOURCE BEGIN -------------------------------------
  5629. (function(){WdatePicker();})();
  5630. (function(){WdatePicker();})();
  5631. (function(){Data.get();})();
  5632. (function(){Data.set();})();
  5633. (function(){search();})();
  5634. $(function(){
  5635. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5636. getfp();
  5637. });
  5638. var Data = {
  5639. "get" : function(){
  5640. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  5641. var tip = layer.load(2);
  5642. var result="";
  5643. var url = "getgyxml.do";
  5644. $.ajax({
  5645. "url" : url,
  5646. "data" : {
  5647. "start_date" : $("#dateBegin").val(),
  5648. "end_date" : $("#dateEnd").val()
  5649. },
  5650. "type" : "POST",
  5651. "dataType" : "json",
  5652. "success" : function(data) {
  5653. if(data != null && data != ""){
  5654. if ( data.status =="success"){
  5655. getfp();
  5656. alert("获取成功!");
  5657. }else {
  5658. alert(data.status);
  5659. }
  5660. }else {
  5661. alert("获取失败!");
  5662. }
  5663. },
  5664. "complete": function(){
  5665. layer.close(tip);
  5666. }
  5667. });
  5668. }else {
  5669. alert("请选择日期!");
  5670. }
  5671. },
  5672. "set" : function(){
  5673. if ( $("#fpid option:selected").text() !=""){
  5674. var tip = layer.load(2);
  5675. var gitem = $("#form1").serialize();
  5676. var jrjc;
  5677. if ($("#jrjc").prop('checked') == true){
  5678. jrjc = $("#departmentId").val();
  5679. }else {
  5680. jrjc ='N'
  5681. }
  5682. var url = "saverk.do";
  5683. $.ajax({
  5684. "url" : url,
  5685. "data" : {
  5686. "gitem" : gitem,
  5687. "jrjc" : jrjc
  5688. },
  5689. "type" : "POST",
  5690. "dataType" : "json",
  5691. "async" : true,
  5692. "success" : function(data) {
  5693. if(data.status =="success"){
  5694. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  5695. alert("入库成功!\n入库单号:"+data.rkdh+"");
  5696. }else {
  5697. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  5698. }
  5699. window.location.reload();
  5700. }else {
  5701. alert(msg);
  5702. }
  5703. },
  5704. "error": function(){
  5705. alert("确认失败!");
  5706. },
  5707. "complete": function(){
  5708. layer.close(tip);
  5709. }
  5710. });
  5711. }else {
  5712. alert("请选择发票!");
  5713. }
  5714. }
  5715. }
  5716. function getfp(){
  5717. var tip = layer.load(2);
  5718. var url = "getgyfp.do";
  5719. $.ajax({
  5720. "url" : url,
  5721. "type" : "POST",
  5722. "dataType" : "json",
  5723. "async" : true,
  5724. "success" : function(data) {
  5725. if(data != null && data != ""){
  5726. $("#fpid").empty();
  5727. $("#fpid").append("_$tag_____________$tag____");
  5728. for(var i = 0; i < data.length; i++){
  5729. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  5730. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  5731. }
  5732. }
  5733. },
  5734. "error" : function(msg){
  5735. },
  5736. "complete": function(){
  5737. layer.close(tip);
  5738. }
  5739. });
  5740. }
  5741. $("#fpid").change(function(){
  5742. var tip = layer.load(2);
  5743. var url = "getgyrkxx.do";
  5744. var sum_total=0;
  5745. $.ajax({
  5746. "url" : url,
  5747. "data" : {
  5748. "fpId" : $("#fpid").val()
  5749. },
  5750. "type" : "POST",
  5751. "dataType" : "json",
  5752. "async" : true,
  5753. "success" : function(data) {
  5754. $("#dataTable").html("");
  5755. if(data != null && data != ""){
  5756. var html = "";
  5757. for(var i = 0; i < data.length; i++){
  5758. var ID = data[i].id == null ? "" : data[i].id;
  5759. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  5760. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  5761. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  5762. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  5763. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  5764. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  5765. var GOODS = data[i].goods == null ? "" : data[i].goods;
  5766. var NAME = data[i].name == null ? "" : data[i].name;
  5767. var SPEC = data[i].spec == null ? "" : data[i].spec;
  5768. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  5769. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  5770. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  5771. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  5772. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  5773. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  5774. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  5775. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  5776. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  5777. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  5778. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  5779. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  5780. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  5781. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  5782. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  5783. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  5784. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  5785. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  5786. sum_total = sum_total + DSUMVALUE
  5787. var invoice_type_cn =null;
  5788. if (invoice_type =="00" ){
  5789. invoice_type_cn="销售发票";
  5790. }else if (invoice_type == "01") {
  5791. invoice_type_cn="更正(对冲)发票";
  5792. }else if (invoice_type == "02") {
  5793. invoice_type_cn="其它类型发票";
  5794. }
  5795. html += "_$ta";
  5796. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  5797. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5798. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5799. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  5800. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5801. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5802. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5803. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  5804. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5805. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5806. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  5807. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  5808. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5809. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5810. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5811. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5812. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  5813. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  5814. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  5815. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5816. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5817. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  5818. html += "_$tag";
  5819. }
  5820. html += "_$ta";
  5821. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5822. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5823. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5824. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5825. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5826. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5827. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5828. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5829. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5830. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5831. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5832. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5833. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5834. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5835. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5836. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5837. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5838. html += "_$tag_____________$tag_合计:_$tag___$tag";
  5839. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  5840. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5841. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5842. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5843. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5844. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5845. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5846. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5847. html += "_$tag";
  5848. $("#dataTable").html(html);
  5849. }else {
  5850. $("#dataTable").html("");
  5851. }
  5852. },
  5853. "error" : function(msg){
  5854. },
  5855. "complete": function(){
  5856. layer.close(tip);
  5857. }
  5858. });
  5859. });
  5860. Date.prototype.Format = function (fmt) {
  5861. var o = {
  5862. "M+": this.getMonth() + 1, //月份
  5863. "d+": this.getDate(), //日
  5864. "h+": this.getHours(), //小时
  5865. "m+": this.getMinutes(), //分
  5866. "s+": this.getSeconds(), //秒
  5867. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  5868. "S": this.getMilliseconds() //毫秒
  5869. };
  5870. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  5871. for (var k in o)
  5872. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  5873. return fmt;
  5874. }
  5875. $("#jrjc").change(function() {
  5876. if ($("#jrjc").prop('checked') == true){
  5877. $("#departmentId").removeAttr("disabled");
  5878. }else {
  5879. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5880. }
  5881. });
  5882. ----------------------------------- SOURCE END -------------------------------------
  5883. !STACK 0
  5884. java.lang.NullPointerException
  5885. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:31:54.882
  5886. !MESSAGE Exception occurred during problem detection:
  5887. ----------------------------------- SOURCE BEGIN -------------------------------------
  5888. (function(){WdatePicker();})();
  5889. (function(){WdatePicker();})();
  5890. (function(){Data.get();})();
  5891. (function(){Data.set();})();
  5892. (function(){search();})();
  5893. $(function(){
  5894. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5895. getfp();
  5896. });
  5897. var Data = {
  5898. "get" : function(){
  5899. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  5900. var tip = layer.load(2);
  5901. var result="";
  5902. var url = "getgyxml.do";
  5903. $.ajax({
  5904. "url" : url,
  5905. "data" : {
  5906. "start_date" : $("#dateBegin").val(),
  5907. "end_date" : $("#dateEnd").val()
  5908. },
  5909. "type" : "POST",
  5910. "dataType" : "json",
  5911. "success" : function(data) {
  5912. if(data != null && data != ""){
  5913. if ( data.status =="success"){
  5914. getfp();
  5915. alert("获取成功!");
  5916. }else {
  5917. alert(data.status);
  5918. }
  5919. }else {
  5920. alert("获取失败!");
  5921. }
  5922. },
  5923. "complete": function(){
  5924. layer.close(tip);
  5925. }
  5926. });
  5927. }else {
  5928. alert("请选择日期!");
  5929. }
  5930. },
  5931. "set" : function(){
  5932. if ( $("#fpid option:selected").text() !=""){
  5933. var tip = layer.load(2);
  5934. var gitem = $("#form1").serialize();
  5935. var jrjc;
  5936. if ($("#jrjc").prop('checked') == true){
  5937. jrjc = $("#departmentId").val();
  5938. }else {
  5939. jrjc ='N'
  5940. }
  5941. var url = "saverk.do";
  5942. $.ajax({
  5943. "url" : url,
  5944. "data" : {
  5945. "gitem" : gitem,
  5946. "jrjc" : jrjc
  5947. },
  5948. "type" : "POST",
  5949. "dataType" : "json",
  5950. "async" : true,
  5951. "success" : function(data) {
  5952. if(data.status =="success"){
  5953. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  5954. alert("入库成功!\n入库单号:"+data.rkdh+"");
  5955. }else {
  5956. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  5957. }
  5958. window.location.reload();
  5959. }else {
  5960. alert(msg);
  5961. }
  5962. },
  5963. "error": function(){
  5964. alert("确认失败!");
  5965. },
  5966. "complete": function(){
  5967. layer.close(tip);
  5968. }
  5969. });
  5970. }else {
  5971. alert("请选择发票!");
  5972. }
  5973. }
  5974. }
  5975. function getfp(){
  5976. var tip = layer.load(2);
  5977. var url = "getgyfp.do";
  5978. $.ajax({
  5979. "url" : url,
  5980. "type" : "POST",
  5981. "dataType" : "json",
  5982. "async" : true,
  5983. "success" : function(data) {
  5984. if(data != null && data != ""){
  5985. $("#fpid").empty();
  5986. $("#fpid").append("_$tag_____________$tag____");
  5987. for(var i = 0; i < data.length; i++){
  5988. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  5989. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  5990. }
  5991. }
  5992. },
  5993. "error" : function(msg){
  5994. },
  5995. "complete": function(){
  5996. layer.close(tip);
  5997. }
  5998. });
  5999. }
  6000. $("#fpid").change(function(){
  6001. var tip = layer.load(2);
  6002. var url = "getgyrkxx.do";
  6003. var sum_total=0;
  6004. $.ajax({
  6005. "url" : url,
  6006. "data" : {
  6007. "fpId" : $("#fpid").val()
  6008. },
  6009. "type" : "POST",
  6010. "dataType" : "json",
  6011. "async" : true,
  6012. "success" : function(data) {
  6013. $("#dataTable").html("");
  6014. if(data != null && data != ""){
  6015. var html = "";
  6016. for(var i = 0; i < data.length; i++){
  6017. var ID = data[i].id == null ? "" : data[i].id;
  6018. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  6019. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  6020. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  6021. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  6022. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  6023. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  6024. var GOODS = data[i].goods == null ? "" : data[i].goods;
  6025. var NAME = data[i].name == null ? "" : data[i].name;
  6026. var SPEC = data[i].spec == null ? "" : data[i].spec;
  6027. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  6028. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  6029. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  6030. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  6031. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  6032. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  6033. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  6034. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  6035. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  6036. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  6037. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  6038. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  6039. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  6040. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  6041. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  6042. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  6043. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  6044. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  6045. sum_total = sum_total + DSUMVALUE
  6046. var invoice_type_cn =null;
  6047. if (invoice_type =="00" ){
  6048. invoice_type_cn="销售发票";
  6049. }else if (invoice_type == "01") {
  6050. invoice_type_cn="更正(对冲)发票";
  6051. }else if (invoice_type == "02") {
  6052. invoice_type_cn="其它类型发票";
  6053. }
  6054. html += "_$ta";
  6055. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  6056. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6057. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6058. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  6059. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6060. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6061. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6062. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  6063. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6064. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6065. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  6066. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  6067. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6068. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6069. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6070. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6071. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  6072. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6073. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  6074. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  6075. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6076. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6077. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  6078. html += "_$tag";
  6079. }
  6080. html += "_$ta";
  6081. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6082. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6083. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6084. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6085. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6086. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6087. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6088. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6089. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6090. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6091. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6092. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6093. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6094. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6095. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6096. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6097. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6098. html += "_$tag_____________$tag_合计:_$tag___$tag";
  6099. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  6100. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6101. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6102. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6103. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6104. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6105. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6106. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6107. html += "_$tag";
  6108. $("#dataTable").html(html);
  6109. }else {
  6110. $("#dataTable").html("");
  6111. }
  6112. },
  6113. "error" : function(msg){
  6114. },
  6115. "complete": function(){
  6116. layer.close(tip);
  6117. }
  6118. });
  6119. });
  6120. Date.prototype.Format = function (fmt) {
  6121. var o = {
  6122. "M+": this.getMonth() + 1, //月份
  6123. "d+": this.getDate(), //日
  6124. "h+": this.getHours(), //小时
  6125. "m+": this.getMinutes(), //分
  6126. "s+": this.getSeconds(), //秒
  6127. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  6128. "S": this.getMilliseconds() //毫秒
  6129. };
  6130. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  6131. for (var k in o)
  6132. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  6133. return fmt;
  6134. }
  6135. $("#jrjc").change(function() {
  6136. if ($("#jrjc").prop('checked') == true){
  6137. $("#departmentId").removeAttr("disabled");
  6138. }else {
  6139. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6140. }
  6141. });
  6142. ----------------------------------- SOURCE END -------------------------------------
  6143. !STACK 0
  6144. java.lang.NullPointerException
  6145. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-07-23 09:31:54.883
  6146. !MESSAGE java.lang.NullPointerException
  6147. !STACK 1
  6148. JavaScript Model Exception: java.lang.NullPointerException
  6149. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  6150. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  6151. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  6152. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  6153. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  6154. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  6155. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  6156. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  6157. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  6158. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  6159. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  6160. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  6161. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  6162. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  6163. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  6164. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  6165. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  6166. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  6167. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  6168. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  6169. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  6170. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  6171. Caused by: java.lang.NullPointerException
  6172. Caused by: java.lang.NullPointerException
  6173. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:31:54.883
  6174. !MESSAGE java.lang.NullPointerException
  6175. !STACK 0
  6176. java.lang.NullPointerException
  6177. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:31:55.443
  6178. !MESSAGE Exception occurred during problem detection:
  6179. ----------------------------------- SOURCE BEGIN -------------------------------------
  6180. (function(){WdatePicker();})();
  6181. (function(){WdatePicker();})();
  6182. (function(){Data.get();})();
  6183. (function(){Data.set();})();
  6184. (function(){search();})();
  6185. $(function(){
  6186. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6187. getfp();
  6188. });
  6189. var Data = {
  6190. "get" : function(){
  6191. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  6192. var tip = layer.load(2);
  6193. var result="";
  6194. var url = "getgyxml.do";
  6195. $.ajax({
  6196. "url" : url,
  6197. "data" : {
  6198. "start_date" : $("#dateBegin").val(),
  6199. "end_date" : $("#dateEnd").val()
  6200. },
  6201. "type" : "POST",
  6202. "dataType" : "json",
  6203. "success" : function(data) {
  6204. if(data != null && data != ""){
  6205. if ( data.status =="success"){
  6206. getfp();
  6207. alert("获取成功!");
  6208. }else {
  6209. alert(data.status);
  6210. }
  6211. }else {
  6212. alert("获取失败!");
  6213. }
  6214. },
  6215. "complete": function(){
  6216. layer.close(tip);
  6217. }
  6218. });
  6219. }else {
  6220. alert("请选择日期!");
  6221. }
  6222. },
  6223. "set" : function(){
  6224. if ( $("#fpid option:selected").text() !=""){
  6225. var tip = layer.load(2);
  6226. var gitem = $("#form1").serialize();
  6227. var jrjc;
  6228. if ($("#jrjc").prop('checked') == true){
  6229. jrjc = $("#departmentId").val();
  6230. }else {
  6231. jrjc ='N'
  6232. }
  6233. var url = "saverk.do";
  6234. $.ajax({
  6235. "url" : url,
  6236. "data" : {
  6237. "gitem" : gitem,
  6238. "jrjc" : jrjc
  6239. },
  6240. "type" : "POST",
  6241. "dataType" : "json",
  6242. "async" : true,
  6243. "success" : function(data) {
  6244. if(data.status =="success"){
  6245. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  6246. alert("入库成功!\n入库单号:"+data.rkdh+"");
  6247. }else {
  6248. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  6249. }
  6250. window.location.reload();
  6251. }else {
  6252. alert(msg);
  6253. }
  6254. },
  6255. "error": function(){
  6256. alert("确认失败!");
  6257. },
  6258. "complete": function(){
  6259. layer.close(tip);
  6260. }
  6261. });
  6262. }else {
  6263. alert("请选择发票!");
  6264. }
  6265. }
  6266. }
  6267. function getfp(){
  6268. var tip = layer.load(2);
  6269. var url = "getgyfp.do";
  6270. $.ajax({
  6271. "url" : url,
  6272. "type" : "POST",
  6273. "dataType" : "json",
  6274. "async" : true,
  6275. "success" : function(data) {
  6276. if(data != null && data != ""){
  6277. $("#fpid").empty();
  6278. $("#fpid").append("_$tag_____________$tag____");
  6279. for(var i = 0; i < data.length; i++){
  6280. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  6281. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  6282. }
  6283. }
  6284. },
  6285. "error" : function(msg){
  6286. },
  6287. "complete": function(){
  6288. layer.close(tip);
  6289. }
  6290. });
  6291. }
  6292. $("#fpid").change(function(){
  6293. var tip = layer.load(2);
  6294. var url = "getgyrkxx.do";
  6295. var sum_total=0;
  6296. $.ajax({
  6297. "url" : url,
  6298. "data" : {
  6299. "fpId" : $("#fpid").val()
  6300. },
  6301. "type" : "POST",
  6302. "dataType" : "json",
  6303. "async" : true,
  6304. "success" : function(data) {
  6305. $("#dataTable").html("");
  6306. if(data != null && data != ""){
  6307. var html = "";
  6308. for(var i = 0; i < data.length; i++){
  6309. var ID = data[i].id == null ? "" : data[i].id;
  6310. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  6311. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  6312. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  6313. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  6314. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  6315. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  6316. var GOODS = data[i].goods == null ? "" : data[i].goods;
  6317. var NAME = data[i].name == null ? "" : data[i].name;
  6318. var SPEC = data[i].spec == null ? "" : data[i].spec;
  6319. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  6320. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  6321. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  6322. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  6323. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  6324. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  6325. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  6326. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  6327. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  6328. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  6329. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  6330. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  6331. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  6332. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  6333. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  6334. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  6335. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  6336. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  6337. sum_total = sum_total + DSUMVALUE
  6338. var invoice_type_cn =null;
  6339. if (invoice_type =="00" ){
  6340. invoice_type_cn="销售发票";
  6341. }else if (invoice_type == "01") {
  6342. invoice_type_cn="更正(对冲)发票";
  6343. }else if (invoice_type == "02") {
  6344. invoice_type_cn="其它类型发票";
  6345. }
  6346. html += "_$ta";
  6347. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  6348. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6349. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6350. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  6351. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6352. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6353. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6354. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  6355. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6356. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6357. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  6358. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  6359. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6360. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6361. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6362. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6363. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  6364. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6365. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  6366. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  6367. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6368. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6369. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  6370. html += "_$tag";
  6371. }
  6372. html += "_$ta";
  6373. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6374. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6375. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6376. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6377. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6378. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6379. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6380. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6381. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6382. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6383. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6384. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6385. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6386. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6387. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6388. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6389. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6390. html += "_$tag_____________$tag_合计:_$tag___$tag";
  6391. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  6392. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6393. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6394. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6395. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6396. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6397. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6398. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6399. html += "_$tag";
  6400. $("#dataTable").html(html);
  6401. }else {
  6402. $("#dataTable").html("");
  6403. }
  6404. },
  6405. "error" : function(msg){
  6406. },
  6407. "complete": function(){
  6408. layer.close(tip);
  6409. }
  6410. });
  6411. });
  6412. Date.prototype.Format = function (fmt) {
  6413. var o = {
  6414. "M+": this.getMonth() + 1, //月份
  6415. "d+": this.getDate(), //日
  6416. "h+": this.getHours(), //小时
  6417. "m+": this.getMinutes(), //分
  6418. "s+": this.getSeconds(), //秒
  6419. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  6420. "S": this.getMilliseconds() //毫秒
  6421. };
  6422. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  6423. for (var k in o)
  6424. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  6425. return fmt;
  6426. }
  6427. $("#jrjc").change(function() {
  6428. if ($("#jrjc").prop('checked') == true){
  6429. $("#departmentId").removeAttr("disabled");
  6430. }else {
  6431. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6432. }
  6433. });
  6434. ----------------------------------- SOURCE END -------------------------------------
  6435. !STACK 0
  6436. java.lang.NullPointerException
  6437. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:31:55.444
  6438. !MESSAGE Error while processing working copy
  6439. !STACK 1
  6440. JavaScript Model Exception: java.lang.NullPointerException
  6441. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  6442. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  6443. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  6444. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  6445. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  6446. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  6447. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  6448. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  6449. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  6450. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  6451. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  6452. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  6453. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  6454. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  6455. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  6456. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  6457. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  6458. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  6459. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  6460. Caused by: java.lang.NullPointerException
  6461. Caused by: java.lang.NullPointerException
  6462. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:31:55.444
  6463. !MESSAGE java.lang.NullPointerException
  6464. !STACK 0
  6465. java.lang.NullPointerException
  6466. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:31:56.380
  6467. !MESSAGE Exception occurred during problem detection:
  6468. ----------------------------------- SOURCE BEGIN -------------------------------------
  6469. (function(){WdatePicker();})();
  6470. (function(){WdatePicker();})();
  6471. (function(){Data.get();})();
  6472. (function(){Data.set();})();
  6473. (function(){search();})();
  6474. $(function(){
  6475. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6476. getfp();
  6477. });
  6478. var Data = {
  6479. "get" : function(){
  6480. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  6481. var tip = layer.load(2);
  6482. var result="";
  6483. var url = "getgyxml.do";
  6484. $.ajax({
  6485. "url" : url,
  6486. "data" : {
  6487. "start_date" : $("#dateBegin").val(),
  6488. "end_date" : $("#dateEnd").val()
  6489. },
  6490. "type" : "POST",
  6491. "dataType" : "json",
  6492. "success" : function(data) {
  6493. if(data != null && data != ""){
  6494. if ( data.status =="success"){
  6495. getfp();
  6496. alert("获取成功!");
  6497. }else {
  6498. alert(data.status);
  6499. }
  6500. }else {
  6501. alert("获取失败!");
  6502. }
  6503. },
  6504. "complete": function(){
  6505. layer.close(tip);
  6506. }
  6507. });
  6508. }else {
  6509. alert("请选择日期!");
  6510. }
  6511. },
  6512. "set" : function(){
  6513. if ( $("#fpid option:selected").text() !=""){
  6514. var tip = layer.load(2);
  6515. var gitem = $("#form1").serialize();
  6516. var jrjc;
  6517. if ($("#jrjc").prop('checked') == true){
  6518. jrjc = $("#departmentId").val();
  6519. }else {
  6520. jrjc ='N'
  6521. }
  6522. var url = "saverk.do";
  6523. $.ajax({
  6524. "url" : url,
  6525. "data" : {
  6526. "gitem" : gitem,
  6527. "jrjc" : jrjc
  6528. },
  6529. "type" : "POST",
  6530. "dataType" : "json",
  6531. "async" : true,
  6532. "success" : function(data) {
  6533. if(data.status =="success"){
  6534. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  6535. alert("入库成功!\n入库单号:"+data.rkdh+"");
  6536. }else {
  6537. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  6538. }
  6539. window.location.reload();
  6540. }else {
  6541. alert(msg);
  6542. }
  6543. },
  6544. "error": function(){
  6545. alert("确认失败!");
  6546. },
  6547. "complete": function(){
  6548. layer.close(tip);
  6549. }
  6550. });
  6551. }else {
  6552. alert("请选择发票!");
  6553. }
  6554. }
  6555. }
  6556. function getfp(){
  6557. var tip = layer.load(2);
  6558. var url = "getgyfp.do";
  6559. $.ajax({
  6560. "url" : url,
  6561. "type" : "POST",
  6562. "dataType" : "json",
  6563. "async" : true,
  6564. "success" : function(data) {
  6565. if(data != null && data != ""){
  6566. $("#fpid").empty();
  6567. $("#fpid").append("_$tag_____________$tag____");
  6568. for(var i = 0; i < data.length; i++){
  6569. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  6570. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  6571. }
  6572. }
  6573. },
  6574. "error" : function(msg){
  6575. },
  6576. "complete": function(){
  6577. layer.close(tip);
  6578. }
  6579. });
  6580. }
  6581. $("#fpid").change(function(){
  6582. var tip = layer.load(2);
  6583. var url = "getgyrkxx.do";
  6584. var sum_total=0;
  6585. $.ajax({
  6586. "url" : url,
  6587. "data" : {
  6588. "fpId" : $("#fpid").val()
  6589. },
  6590. "type" : "POST",
  6591. "dataType" : "json",
  6592. "async" : true,
  6593. "success" : function(data) {
  6594. $("#dataTable").html("");
  6595. if(data != null && data != ""){
  6596. var html = "";
  6597. for(var i = 0; i < data.length; i++){
  6598. var ID = data[i].id == null ? "" : data[i].id;
  6599. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  6600. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  6601. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  6602. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  6603. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  6604. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  6605. var GOODS = data[i].goods == null ? "" : data[i].goods;
  6606. var NAME = data[i].name == null ? "" : data[i].name;
  6607. var SPEC = data[i].spec == null ? "" : data[i].spec;
  6608. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  6609. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  6610. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  6611. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  6612. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  6613. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  6614. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  6615. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  6616. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  6617. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  6618. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  6619. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  6620. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  6621. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  6622. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  6623. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  6624. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  6625. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  6626. sum_total = sum_total + DSUMVALUE
  6627. var invoice_type_cn =null;
  6628. if (invoice_type =="00" ){
  6629. invoice_type_cn="销售发票";
  6630. }else if (invoice_type == "01") {
  6631. invoice_type_cn="更正(对冲)发票";
  6632. }else if (invoice_type == "02") {
  6633. invoice_type_cn="其它类型发票";
  6634. }
  6635. html += "_$ta";
  6636. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  6637. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6638. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6639. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  6640. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6641. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6642. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6643. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  6644. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6645. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6646. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  6647. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  6648. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6649. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6650. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6651. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6652. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  6653. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6654. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  6655. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  6656. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6657. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6658. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  6659. html += "_$tag";
  6660. }
  6661. html += "_$ta";
  6662. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6663. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6664. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6665. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6666. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6667. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6668. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6669. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6670. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6671. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6672. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6673. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6674. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6675. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6676. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6677. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6678. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6679. html += "_$tag_____________$tag_合计:_$tag___$tag";
  6680. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  6681. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6682. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6683. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6684. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6685. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6686. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6687. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6688. html += "_$tag";
  6689. $("#dataTable").html(html);
  6690. }else {
  6691. $("#dataTable").html("");
  6692. }
  6693. },
  6694. "error" : function(msg){
  6695. },
  6696. "complete": function(){
  6697. layer.close(tip);
  6698. }
  6699. });
  6700. });
  6701. Date.prototype.Format = function (fmt) {
  6702. var o = {
  6703. "M+": this.getMonth() + 1, //月份
  6704. "d+": this.getDate(), //日
  6705. "h+": this.getHours(), //小时
  6706. "m+": this.getMinutes(), //分
  6707. "s+": this.getSeconds(), //秒
  6708. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  6709. "S": this.getMilliseconds() //毫秒
  6710. };
  6711. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  6712. for (var k in o)
  6713. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  6714. return fmt;
  6715. }
  6716. $("#jrjc").change(function() {
  6717. if ($("#jrjc").prop('checked') == true){
  6718. $("#departmentId").removeAttr("disabled");
  6719. }else {
  6720. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6721. }
  6722. });
  6723. ----------------------------------- SOURCE END -------------------------------------
  6724. !STACK 0
  6725. java.lang.NullPointerException
  6726. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:31:57.644
  6727. !MESSAGE Exception occurred during problem detection:
  6728. ----------------------------------- SOURCE BEGIN -------------------------------------
  6729. (function(){WdatePicker();})();
  6730. (function(){WdatePicker();})();
  6731. (function(){Data.get();})();
  6732. (function(){Data.set();})();
  6733. (function(){search();})();
  6734. $(function(){
  6735. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6736. getfp();
  6737. });
  6738. var Data = {
  6739. "get" : function(){
  6740. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  6741. var tip = layer.load(2);
  6742. var result="";
  6743. var url = "getgyxml.do";
  6744. $.ajax({
  6745. "url" : url,
  6746. "data" : {
  6747. "start_date" : $("#dateBegin").val(),
  6748. "end_date" : $("#dateEnd").val()
  6749. },
  6750. "type" : "POST",
  6751. "dataType" : "json",
  6752. "success" : function(data) {
  6753. if(data != null && data != ""){
  6754. if ( data.status =="success"){
  6755. getfp();
  6756. alert("获取成功!");
  6757. }else {
  6758. alert(data.status);
  6759. }
  6760. }else {
  6761. alert("获取失败!");
  6762. }
  6763. },
  6764. "complete": function(){
  6765. layer.close(tip);
  6766. }
  6767. });
  6768. }else {
  6769. alert("请选择日期!");
  6770. }
  6771. },
  6772. "set" : function(){
  6773. if ( $("#fpid option:selected").text() !=""){
  6774. var tip = layer.load(2);
  6775. var gitem = $("#form1").serialize();
  6776. var jrjc;
  6777. if ($("#jrjc").prop('checked') == true){
  6778. jrjc = $("#departmentId").val();
  6779. }else {
  6780. jrjc ='N'
  6781. }
  6782. var url = "saverk.do";
  6783. $.ajax({
  6784. "url" : url,
  6785. "data" : {
  6786. "gitem" : gitem,
  6787. "jrjc" : jrjc
  6788. },
  6789. "type" : "POST",
  6790. "dataType" : "json",
  6791. "async" : true,
  6792. "success" : function(data) {
  6793. if(data.status =="success"){
  6794. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  6795. alert("入库成功!\n入库单号:"+data.rkdh+"");
  6796. }else {
  6797. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  6798. }
  6799. window.location.reload();
  6800. }else {
  6801. alert(msg);
  6802. }
  6803. },
  6804. "error": function(){
  6805. alert("确认失败!");
  6806. },
  6807. "complete": function(){
  6808. layer.close(tip);
  6809. }
  6810. });
  6811. }else {
  6812. alert("请选择发票!");
  6813. }
  6814. }
  6815. }
  6816. function getfp(){
  6817. var tip = layer.load(2);
  6818. var url = "getgyfp.do";
  6819. $.ajax({
  6820. "url" : url,
  6821. "type" : "POST",
  6822. "dataType" : "json",
  6823. "async" : true,
  6824. "success" : function(data) {
  6825. if(data != null && data != ""){
  6826. $("#fpid").empty();
  6827. $("#fpid").append("_$tag_____________$tag____");
  6828. for(var i = 0; i < data.length; i++){
  6829. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  6830. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  6831. }
  6832. }
  6833. },
  6834. "error" : function(msg){
  6835. },
  6836. "complete": function(){
  6837. layer.close(tip);
  6838. }
  6839. });
  6840. }
  6841. $("#fpid").change(function(){
  6842. var tip = layer.load(2);
  6843. var url = "getgyrkxx.do";
  6844. var sum_total=0;
  6845. $.ajax({
  6846. "url" : url,
  6847. "data" : {
  6848. "fpId" : $("#fpid").val()
  6849. },
  6850. "type" : "POST",
  6851. "dataType" : "json",
  6852. "async" : true,
  6853. "success" : function(data) {
  6854. $("#dataTable").html("");
  6855. if(data != null && data != ""){
  6856. var html = "";
  6857. for(var i = 0; i < data.length; i++){
  6858. var ID = data[i].id == null ? "" : data[i].id;
  6859. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  6860. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  6861. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  6862. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  6863. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  6864. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  6865. var GOODS = data[i].goods == null ? "" : data[i].goods;
  6866. var NAME = data[i].name == null ? "" : data[i].name;
  6867. var SPEC = data[i].spec == null ? "" : data[i].spec;
  6868. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  6869. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  6870. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  6871. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  6872. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  6873. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  6874. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  6875. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  6876. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  6877. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  6878. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  6879. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  6880. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  6881. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  6882. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  6883. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  6884. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  6885. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  6886. sum_total = sum_total + DSUMVALUE
  6887. var invoice_type_cn =null;
  6888. if (invoice_type =="00" ){
  6889. invoice_type_cn="销售发票";
  6890. }else if (invoice_type == "01") {
  6891. invoice_type_cn="更正(对冲)发票";
  6892. }else if (invoice_type == "02") {
  6893. invoice_type_cn="其它类型发票";
  6894. }
  6895. html += "_$ta";
  6896. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  6897. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6898. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6899. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  6900. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6901. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6902. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6903. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  6904. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6905. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6906. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  6907. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  6908. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6909. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6910. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6911. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6912. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  6913. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6914. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  6915. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  6916. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6917. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6918. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  6919. html += "_$tag";
  6920. }
  6921. html += "_$ta";
  6922. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6923. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6924. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6925. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6926. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6927. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6928. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6929. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6930. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6931. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6932. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6933. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6934. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6935. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6936. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6937. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6938. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6939. html += "_$tag_____________$tag_合计:_$tag___$tag";
  6940. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  6941. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6942. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6943. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6944. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6945. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6946. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6947. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6948. html += "_$tag";
  6949. $("#dataTable").html(html);
  6950. }else {
  6951. $("#dataTable").html("");
  6952. }
  6953. },
  6954. "error" : function(msg){
  6955. },
  6956. "complete": function(){
  6957. layer.close(tip);
  6958. }
  6959. });
  6960. });
  6961. Date.prototype.Format = function (fmt) {
  6962. var o = {
  6963. "M+": this.getMonth() + 1, //月份
  6964. "d+": this.getDate(), //日
  6965. "h+": this.getHours(), //小时
  6966. "m+": this.getMinutes(), //分
  6967. "s+": this.getSeconds(), //秒
  6968. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  6969. "S": this.getMilliseconds() //毫秒
  6970. };
  6971. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  6972. for (var k in o)
  6973. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  6974. return fmt;
  6975. }
  6976. $("#jrjc").change(function() {
  6977. if ($("#jrjc").prop('checked') == true){
  6978. $("#departmentId").removeAttr("disabled");
  6979. }else {
  6980. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6981. }
  6982. });
  6983. ----------------------------------- SOURCE END -------------------------------------
  6984. !STACK 0
  6985. java.lang.NullPointerException
  6986. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:31:57.644
  6987. !MESSAGE Error while processing working copy
  6988. !STACK 1
  6989. JavaScript Model Exception: java.lang.NullPointerException
  6990. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  6991. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  6992. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  6993. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  6994. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  6995. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  6996. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  6997. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  6998. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  6999. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  7000. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  7001. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  7002. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  7003. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  7004. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  7005. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  7006. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  7007. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  7008. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  7009. Caused by: java.lang.NullPointerException
  7010. Caused by: java.lang.NullPointerException
  7011. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:31:57.645
  7012. !MESSAGE java.lang.NullPointerException
  7013. !STACK 0
  7014. java.lang.NullPointerException
  7015. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:31:58.606
  7016. !MESSAGE Exception occurred during problem detection:
  7017. ----------------------------------- SOURCE BEGIN -------------------------------------
  7018. (function(){WdatePicker();})();
  7019. (function(){WdatePicker();})();
  7020. (function(){Data.get();})();
  7021. (function(){Data.set();})();
  7022. (function(){search();})();
  7023. $(function(){
  7024. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7025. getfp();
  7026. });
  7027. var Data = {
  7028. "get" : function(){
  7029. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  7030. var tip = layer.load(2);
  7031. var result="";
  7032. var url = "getgyxml.do";
  7033. $.ajax({
  7034. "url" : url,
  7035. "data" : {
  7036. "start_date" : $("#dateBegin").val(),
  7037. "end_date" : $("#dateEnd").val()
  7038. },
  7039. "type" : "POST",
  7040. "dataType" : "json",
  7041. "success" : function(data) {
  7042. if(data != null && data != ""){
  7043. if ( data.status =="success"){
  7044. getfp();
  7045. alert("获取成功!");
  7046. }else {
  7047. alert(data.status);
  7048. }
  7049. }else {
  7050. alert("获取失败!");
  7051. }
  7052. },
  7053. "complete": function(){
  7054. layer.close(tip);
  7055. }
  7056. });
  7057. }else {
  7058. alert("请选择日期!");
  7059. }
  7060. },
  7061. "set" : function(){
  7062. if ( $("#fpid option:selected").text() !=""){
  7063. var tip = layer.load(2);
  7064. var gitem = $("#form1").serialize();
  7065. var jrjc;
  7066. if ($("#jrjc").prop('checked') == true){
  7067. jrjc = $("#departmentId").val();
  7068. }else {
  7069. jrjc ='N'
  7070. }
  7071. var url = "saverk.do";
  7072. $.ajax({
  7073. "url" : url,
  7074. "data" : {
  7075. "gitem" : gitem,
  7076. "jrjc" : jrjc
  7077. },
  7078. "type" : "POST",
  7079. "dataType" : "json",
  7080. "async" : true,
  7081. "success" : function(data) {
  7082. if(data.status =="success"){
  7083. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  7084. alert("入库成功!\n入库单号:"+data.rkdh+"");
  7085. }else {
  7086. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  7087. }
  7088. window.location.reload();
  7089. }else {
  7090. alert(msg);
  7091. }
  7092. },
  7093. "error": function(){
  7094. alert("确认失败!");
  7095. },
  7096. "complete": function(){
  7097. layer.close(tip);
  7098. }
  7099. });
  7100. }else {
  7101. alert("请选择发票!");
  7102. }
  7103. }
  7104. }
  7105. function getfp(){
  7106. var tip = layer.load(2);
  7107. var url = "getgyfp.do";
  7108. $.ajax({
  7109. "url" : url,
  7110. "type" : "POST",
  7111. "dataType" : "json",
  7112. "async" : true,
  7113. "success" : function(data) {
  7114. if(data != null && data != ""){
  7115. $("#fpid").empty();
  7116. $("#fpid").append("_$tag_____________$tag____");
  7117. for(var i = 0; i < data.length; i++){
  7118. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  7119. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  7120. }
  7121. }
  7122. },
  7123. "error" : function(msg){
  7124. },
  7125. "complete": function(){
  7126. layer.close(tip);
  7127. }
  7128. });
  7129. }
  7130. $("#fpid").change(function(){
  7131. var tip = layer.load(2);
  7132. var url = "getgyrkxx.do";
  7133. var sum_total=0;
  7134. $.ajax({
  7135. "url" : url,
  7136. "data" : {
  7137. "fpId" : $("#fpid").val()
  7138. },
  7139. "type" : "POST",
  7140. "dataType" : "json",
  7141. "async" : true,
  7142. "success" : function(data) {
  7143. $("#dataTable").html("");
  7144. if(data != null && data != ""){
  7145. var html = "";
  7146. for(var i = 0; i < data.length; i++){
  7147. var ID = data[i].id == null ? "" : data[i].id;
  7148. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  7149. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  7150. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  7151. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  7152. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  7153. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  7154. var GOODS = data[i].goods == null ? "" : data[i].goods;
  7155. var NAME = data[i].name == null ? "" : data[i].name;
  7156. var SPEC = data[i].spec == null ? "" : data[i].spec;
  7157. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  7158. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  7159. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  7160. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  7161. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  7162. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  7163. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  7164. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  7165. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  7166. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  7167. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  7168. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  7169. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  7170. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  7171. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  7172. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  7173. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  7174. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  7175. sum_total = sum_total + DSUMVALUE
  7176. var invoice_type_cn =null;
  7177. if (invoice_type =="00" ){
  7178. invoice_type_cn="销售发票";
  7179. }else if (invoice_type == "01") {
  7180. invoice_type_cn="更正(对冲)发票";
  7181. }else if (invoice_type == "02") {
  7182. invoice_type_cn="其它类型发票";
  7183. }
  7184. html += "_$ta";
  7185. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  7186. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7187. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7188. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  7189. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7190. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  7191. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  7192. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  7193. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7194. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7195. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  7196. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  7197. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7198. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7199. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7200. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7201. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  7202. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7203. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  7204. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  7205. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7206. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7207. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  7208. html += "_$tag";
  7209. }
  7210. html += "_$ta";
  7211. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7212. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7213. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7214. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7215. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7216. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7217. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7218. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7219. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7220. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7221. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7222. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7223. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7224. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7225. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7226. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7227. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7228. html += "_$tag_____________$tag_合计:_$tag___$tag";
  7229. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  7230. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7231. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7232. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7233. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7234. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7235. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7236. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7237. html += "_$tag";
  7238. $("#dataTable").html(html);
  7239. }else {
  7240. $("#dataTable").html("");
  7241. }
  7242. },
  7243. "error" : function(msg){
  7244. },
  7245. "complete": function(){
  7246. layer.close(tip);
  7247. }
  7248. });
  7249. });
  7250. Date.prototype.Format = function (fmt) {
  7251. var o = {
  7252. "M+": this.getMonth() + 1, //月份
  7253. "d+": this.getDate(), //日
  7254. "h+": this.getHours(), //小时
  7255. "m+": this.getMinutes(), //分
  7256. "s+": this.getSeconds(), //秒
  7257. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  7258. "S": this.getMilliseconds() //毫秒
  7259. };
  7260. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  7261. for (var k in o)
  7262. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  7263. return fmt;
  7264. }
  7265. $("#jrjc").change(function() {
  7266. if ($("#jrjc").prop('checked') == true){
  7267. $("#departmentId").removeAttr("disabled");
  7268. }else {
  7269. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7270. }
  7271. });
  7272. ----------------------------------- SOURCE END -------------------------------------
  7273. !STACK 0
  7274. java.lang.NullPointerException
  7275. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:31:59.287
  7276. !MESSAGE Exception occurred during problem detection:
  7277. ----------------------------------- SOURCE BEGIN -------------------------------------
  7278. (function(){WdatePicker();})();
  7279. (function(){WdatePicker();})();
  7280. (function(){Data.get();})();
  7281. (function(){Data.set();})();
  7282. (function(){search();})();
  7283. $(function(){
  7284. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7285. getfp();
  7286. });
  7287. var Data = {
  7288. "get" : function(){
  7289. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  7290. var tip = layer.load(2);
  7291. var result="";
  7292. var url = "getgyxml.do";
  7293. $.ajax({
  7294. "url" : url,
  7295. "data" : {
  7296. "start_date" : $("#dateBegin").val(),
  7297. "end_date" : $("#dateEnd").val()
  7298. },
  7299. "type" : "POST",
  7300. "dataType" : "json",
  7301. "success" : function(data) {
  7302. if(data != null && data != ""){
  7303. if ( data.status =="success"){
  7304. getfp();
  7305. alert("获取成功!");
  7306. }else {
  7307. alert(data.status);
  7308. }
  7309. }else {
  7310. alert("获取失败!");
  7311. }
  7312. },
  7313. "complete": function(){
  7314. layer.close(tip);
  7315. }
  7316. });
  7317. }else {
  7318. alert("请选择日期!");
  7319. }
  7320. },
  7321. "set" : function(){
  7322. if ( $("#fpid option:selected").text() !=""){
  7323. var tip = layer.load(2);
  7324. var gitem = $("#form1").serialize();
  7325. var jrjc;
  7326. if ($("#jrjc").prop('checked') == true){
  7327. jrjc = $("#departmentId").val();
  7328. }else {
  7329. jrjc ='N'
  7330. }
  7331. var url = "saverk.do";
  7332. $.ajax({
  7333. "url" : url,
  7334. "data" : {
  7335. "gitem" : gitem,
  7336. "jrjc" : jrjc
  7337. },
  7338. "type" : "POST",
  7339. "dataType" : "json",
  7340. "async" : true,
  7341. "success" : function(data) {
  7342. if(data.status =="success"){
  7343. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  7344. alert("入库成功!\n入库单号:"+data.rkdh+"");
  7345. }else {
  7346. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  7347. }
  7348. window.location.reload();
  7349. }else {
  7350. alert(msg);
  7351. }
  7352. },
  7353. "error": function(){
  7354. alert("确认失败!");
  7355. },
  7356. "complete": function(){
  7357. layer.close(tip);
  7358. }
  7359. });
  7360. }else {
  7361. alert("请选择发票!");
  7362. }
  7363. }
  7364. }
  7365. function getfp(){
  7366. var tip = layer.load(2);
  7367. var url = "getgyfp.do";
  7368. $.ajax({
  7369. "url" : url,
  7370. "type" : "POST",
  7371. "dataType" : "json",
  7372. "async" : true,
  7373. "success" : function(data) {
  7374. if(data != null && data != ""){
  7375. $("#fpid").empty();
  7376. $("#fpid").append("_$tag_____________$tag____");
  7377. for(var i = 0; i < data.length; i++){
  7378. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  7379. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  7380. }
  7381. }
  7382. },
  7383. "error" : function(msg){
  7384. },
  7385. "complete": function(){
  7386. layer.close(tip);
  7387. }
  7388. });
  7389. }
  7390. $("#fpid").change(function(){
  7391. var tip = layer.load(2);
  7392. var url = "getgyrkxx.do";
  7393. var sum_total=0;
  7394. $.ajax({
  7395. "url" : url,
  7396. "data" : {
  7397. "fpId" : $("#fpid").val()
  7398. },
  7399. "type" : "POST",
  7400. "dataType" : "json",
  7401. "async" : true,
  7402. "success" : function(data) {
  7403. $("#dataTable").html("");
  7404. if(data != null && data != ""){
  7405. var html = "";
  7406. for(var i = 0; i < data.length; i++){
  7407. var ID = data[i].id == null ? "" : data[i].id;
  7408. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  7409. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  7410. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  7411. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  7412. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  7413. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  7414. var GOODS = data[i].goods == null ? "" : data[i].goods;
  7415. var NAME = data[i].name == null ? "" : data[i].name;
  7416. var SPEC = data[i].spec == null ? "" : data[i].spec;
  7417. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  7418. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  7419. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  7420. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  7421. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  7422. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  7423. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  7424. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  7425. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  7426. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  7427. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  7428. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  7429. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  7430. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  7431. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  7432. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  7433. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  7434. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  7435. sum_total = sum_total + DSUMVALUE
  7436. var invoice_type_cn =null;
  7437. if (invoice_type =="00" ){
  7438. invoice_type_cn="销售发票";
  7439. }else if (invoice_type == "01") {
  7440. invoice_type_cn="更正(对冲)发票";
  7441. }else if (invoice_type == "02") {
  7442. invoice_type_cn="其它类型发票";
  7443. }
  7444. html += "_$ta";
  7445. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  7446. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7447. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7448. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  7449. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7450. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  7451. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  7452. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  7453. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7454. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7455. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  7456. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  7457. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7458. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7459. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7460. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7461. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  7462. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7463. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  7464. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  7465. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7466. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7467. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  7468. html += "_$tag";
  7469. }
  7470. html += "_$ta";
  7471. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7472. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7473. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7474. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7475. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7476. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7477. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7478. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7479. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7480. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7481. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7482. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7483. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7484. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7485. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7486. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7487. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7488. html += "_$tag_____________$tag_合计:_$tag___$tag";
  7489. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  7490. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7491. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7492. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7493. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7494. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7495. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7496. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7497. html += "_$tag";
  7498. $("#dataTable").html(html);
  7499. }else {
  7500. $("#dataTable").html("");
  7501. }
  7502. },
  7503. "error" : function(msg){
  7504. },
  7505. "complete": function(){
  7506. layer.close(tip);
  7507. }
  7508. });
  7509. });
  7510. Date.prototype.Format = function (fmt) {
  7511. var o = {
  7512. "M+": this.getMonth() + 1, //月份
  7513. "d+": this.getDate(), //日
  7514. "h+": this.getHours(), //小时
  7515. "m+": this.getMinutes(), //分
  7516. "s+": this.getSeconds(), //秒
  7517. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  7518. "S": this.getMilliseconds() //毫秒
  7519. };
  7520. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  7521. for (var k in o)
  7522. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  7523. return fmt;
  7524. }
  7525. $("#jrjc").change(function() {
  7526. if ($("#jrjc").prop('checked') == true){
  7527. $("#departmentId").removeAttr("disabled");
  7528. }else {
  7529. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7530. }
  7531. });
  7532. ----------------------------------- SOURCE END -------------------------------------
  7533. !STACK 0
  7534. java.lang.NullPointerException
  7535. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:31:59.288
  7536. !MESSAGE Error while processing working copy
  7537. !STACK 1
  7538. JavaScript Model Exception: java.lang.NullPointerException
  7539. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  7540. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  7541. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  7542. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  7543. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  7544. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  7545. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  7546. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  7547. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  7548. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  7549. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  7550. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  7551. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  7552. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  7553. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  7554. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  7555. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  7556. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  7557. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  7558. Caused by: java.lang.NullPointerException
  7559. Caused by: java.lang.NullPointerException
  7560. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:31:59.288
  7561. !MESSAGE java.lang.NullPointerException
  7562. !STACK 0
  7563. java.lang.NullPointerException
  7564. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:00.329
  7565. !MESSAGE Exception occurred during problem detection:
  7566. ----------------------------------- SOURCE BEGIN -------------------------------------
  7567. (function(){WdatePicker();})();
  7568. (function(){WdatePicker();})();
  7569. (function(){Data.get();})();
  7570. (function(){Data.set();})();
  7571. (function(){search();})();
  7572. $(function(){
  7573. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7574. getfp();
  7575. });
  7576. var Data = {
  7577. "get" : function(){
  7578. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  7579. var tip = layer.load(2);
  7580. var result="";
  7581. var url = "getgyxml.do";
  7582. $.ajax({
  7583. "url" : url,
  7584. "data" : {
  7585. "start_date" : $("#dateBegin").val(),
  7586. "end_date" : $("#dateEnd").val()
  7587. },
  7588. "type" : "POST",
  7589. "dataType" : "json",
  7590. "success" : function(data) {
  7591. if(data != null && data != ""){
  7592. if ( data.status =="success"){
  7593. getfp();
  7594. alert("获取成功!");
  7595. }else {
  7596. alert(data.status);
  7597. }
  7598. }else {
  7599. alert("获取失败!");
  7600. }
  7601. },
  7602. "complete": function(){
  7603. layer.close(tip);
  7604. }
  7605. });
  7606. }else {
  7607. alert("请选择日期!");
  7608. }
  7609. },
  7610. "set" : function(){
  7611. if ( $("#fpid option:selected").text() !=""){
  7612. var tip = layer.load(2);
  7613. var gitem = $("#form1").serialize();
  7614. var jrjc;
  7615. if ($("#jrjc").prop('checked') == true){
  7616. jrjc = $("#departmentId").val();
  7617. }else {
  7618. jrjc ='N'
  7619. }
  7620. var url = "saverk.do";
  7621. $.ajax({
  7622. "url" : url,
  7623. "data" : {
  7624. "gitem" : gitem,
  7625. "jrjc" : jrjc
  7626. },
  7627. "type" : "POST",
  7628. "dataType" : "json",
  7629. "async" : true,
  7630. "success" : function(data) {
  7631. if(data.status =="success"){
  7632. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  7633. alert("入库成功!\n入库单号:"+data.rkdh+"");
  7634. }else {
  7635. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  7636. }
  7637. window.location.reload();
  7638. }else {
  7639. alert(msg);
  7640. }
  7641. },
  7642. "error": function(){
  7643. alert("确认失败!");
  7644. },
  7645. "complete": function(){
  7646. layer.close(tip);
  7647. }
  7648. });
  7649. }else {
  7650. alert("请选择发票!");
  7651. }
  7652. }
  7653. }
  7654. function getfp(){
  7655. var tip = layer.load(2);
  7656. var url = "getgyfp.do";
  7657. $.ajax({
  7658. "url" : url,
  7659. "type" : "POST",
  7660. "dataType" : "json",
  7661. "async" : true,
  7662. "success" : function(data) {
  7663. if(data != null && data != ""){
  7664. $("#fpid").empty();
  7665. $("#fpid").append("_$tag_____________$tag____");
  7666. for(var i = 0; i < data.length; i++){
  7667. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  7668. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  7669. }
  7670. }
  7671. },
  7672. "error" : function(msg){
  7673. },
  7674. "complete": function(){
  7675. layer.close(tip);
  7676. }
  7677. });
  7678. }
  7679. $("#fpid").change(function(){
  7680. var tip = layer.load(2);
  7681. var url = "getgyrkxx.do";
  7682. var sum_total=0;
  7683. $.ajax({
  7684. "url" : url,
  7685. "data" : {
  7686. "fpId" : $("#fpid").val()
  7687. },
  7688. "type" : "POST",
  7689. "dataType" : "json",
  7690. "async" : true,
  7691. "success" : function(data) {
  7692. $("#dataTable").html("");
  7693. if(data != null && data != ""){
  7694. var html = "";
  7695. for(var i = 0; i < data.length; i++){
  7696. var ID = data[i].id == null ? "" : data[i].id;
  7697. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  7698. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  7699. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  7700. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  7701. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  7702. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  7703. var GOODS = data[i].goods == null ? "" : data[i].goods;
  7704. var NAME = data[i].name == null ? "" : data[i].name;
  7705. var SPEC = data[i].spec == null ? "" : data[i].spec;
  7706. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  7707. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  7708. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  7709. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  7710. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  7711. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  7712. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  7713. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  7714. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  7715. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  7716. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  7717. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  7718. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  7719. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  7720. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  7721. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  7722. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  7723. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  7724. sum_total = sum_total + DSUMVALUE
  7725. var invoice_type_cn =null;
  7726. if (invoice_type =="00" ){
  7727. invoice_type_cn="销售发票";
  7728. }else if (invoice_type == "01") {
  7729. invoice_type_cn="更正(对冲)发票";
  7730. }else if (invoice_type == "02") {
  7731. invoice_type_cn="其它类型发票";
  7732. }
  7733. html += "_$ta";
  7734. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  7735. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7736. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7737. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  7738. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7739. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  7740. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  7741. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  7742. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7743. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7744. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  7745. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  7746. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7747. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7748. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7749. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7750. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  7751. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7752. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  7753. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  7754. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7755. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7756. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  7757. html += "_$tag";
  7758. }
  7759. html += "_$ta";
  7760. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7761. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7762. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7763. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7764. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7765. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7766. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7767. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7768. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7769. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7770. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7771. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7772. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7773. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7774. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7775. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7776. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7777. html += "_$tag_____________$tag_合计:_$tag___$tag";
  7778. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  7779. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7780. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7781. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7782. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7783. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7784. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7785. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7786. html += "_$tag";
  7787. $("#dataTable").html(html);
  7788. }else {
  7789. $("#dataTable").html("");
  7790. }
  7791. },
  7792. "error" : function(msg){
  7793. },
  7794. "complete": function(){
  7795. layer.close(tip);
  7796. }
  7797. });
  7798. });
  7799. Date.prototype.Format = function (fmt) {
  7800. var o = {
  7801. "M+": this.getMonth() + 1, //月份
  7802. "d+": this.getDate(), //日
  7803. "h+": this.getHours(), //小时
  7804. "m+": this.getMinutes(), //分
  7805. "s+": this.getSeconds(), //秒
  7806. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  7807. "S": this.getMilliseconds() //毫秒
  7808. };
  7809. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  7810. for (var k in o)
  7811. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  7812. return fmt;
  7813. }
  7814. $("#jrjc").change(function() {
  7815. if ($("#jrjc").prop('checked') == true){
  7816. $("#departmentId").removeAttr("disabled");
  7817. }else {
  7818. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7819. }
  7820. });
  7821. ----------------------------------- SOURCE END -------------------------------------
  7822. !STACK 0
  7823. java.lang.NullPointerException
  7824. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:01.891
  7825. !MESSAGE Exception occurred during problem detection:
  7826. ----------------------------------- SOURCE BEGIN -------------------------------------
  7827. (function(){WdatePicker();})();
  7828. (function(){WdatePicker();})();
  7829. (function(){Data.get();})();
  7830. (function(){Data.set();})();
  7831. (function(){search();})();
  7832. $(function(){
  7833. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7834. getfp();
  7835. });
  7836. var Data = {
  7837. "get" : function(){
  7838. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  7839. var tip = layer.load(2);
  7840. var result="";
  7841. var url = "getgyxml.do";
  7842. $.ajax({
  7843. "url" : url,
  7844. "data" : {
  7845. "start_date" : $("#dateBegin").val(),
  7846. "end_date" : $("#dateEnd").val()
  7847. },
  7848. "type" : "POST",
  7849. "dataType" : "json",
  7850. "success" : function(data) {
  7851. if(data != null && data != ""){
  7852. if ( data.status =="success"){
  7853. getfp();
  7854. alert("获取成功!");
  7855. }else {
  7856. alert(data.status);
  7857. }
  7858. }else {
  7859. alert("获取失败!");
  7860. }
  7861. },
  7862. "complete": function(){
  7863. layer.close(tip);
  7864. }
  7865. });
  7866. }else {
  7867. alert("请选择日期!");
  7868. }
  7869. },
  7870. "set" : function(){
  7871. if ( $("#fpid option:selected").text() !=""){
  7872. var tip = layer.load(2);
  7873. var gitem = $("#form1").serialize();
  7874. var jrjc;
  7875. if ($("#jrjc").prop('checked') == true){
  7876. jrjc = $("#departmentId").val();
  7877. }else {
  7878. jrjc ='N'
  7879. }
  7880. var url = "saverk.do";
  7881. $.ajax({
  7882. "url" : url,
  7883. "data" : {
  7884. "gitem" : gitem,
  7885. "jrjc" : jrjc
  7886. },
  7887. "type" : "POST",
  7888. "dataType" : "json",
  7889. "async" : true,
  7890. "success" : function(data) {
  7891. if(data.status =="success"){
  7892. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  7893. alert("入库成功!\n入库单号:"+data.rkdh+"");
  7894. }else {
  7895. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  7896. }
  7897. window.location.reload();
  7898. }else {
  7899. alert(msg);
  7900. }
  7901. },
  7902. "error": function(){
  7903. alert("确认失败!");
  7904. },
  7905. "complete": function(){
  7906. layer.close(tip);
  7907. }
  7908. });
  7909. }else {
  7910. alert("请选择发票!");
  7911. }
  7912. }
  7913. }
  7914. function getfp(){
  7915. var tip = layer.load(2);
  7916. var url = "getgyfp.do";
  7917. $.ajax({
  7918. "url" : url,
  7919. "type" : "POST",
  7920. "dataType" : "json",
  7921. "async" : true,
  7922. "success" : function(data) {
  7923. if(data != null && data != ""){
  7924. $("#fpid").empty();
  7925. $("#fpid").append("_$tag_____________$tag____");
  7926. for(var i = 0; i < data.length; i++){
  7927. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  7928. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  7929. }
  7930. }
  7931. },
  7932. "error" : function(msg){
  7933. },
  7934. "complete": function(){
  7935. layer.close(tip);
  7936. }
  7937. });
  7938. }
  7939. $("#fpid").change(function(){
  7940. var tip = layer.load(2);
  7941. var url = "getgyrkxx.do";
  7942. var sum_total=0;
  7943. $.ajax({
  7944. "url" : url,
  7945. "data" : {
  7946. "fpId" : $("#fpid").val()
  7947. },
  7948. "type" : "POST",
  7949. "dataType" : "json",
  7950. "async" : true,
  7951. "success" : function(data) {
  7952. $("#dataTable").html("");
  7953. if(data != null && data != ""){
  7954. var html = "";
  7955. for(var i = 0; i < data.length; i++){
  7956. var ID = data[i].id == null ? "" : data[i].id;
  7957. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  7958. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  7959. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  7960. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  7961. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  7962. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  7963. var GOODS = data[i].goods == null ? "" : data[i].goods;
  7964. var NAME = data[i].name == null ? "" : data[i].name;
  7965. var SPEC = data[i].spec == null ? "" : data[i].spec;
  7966. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  7967. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  7968. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  7969. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  7970. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  7971. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  7972. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  7973. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  7974. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  7975. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  7976. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  7977. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  7978. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  7979. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  7980. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  7981. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  7982. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  7983. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  7984. sum_total = sum_total + DSUMVALUE
  7985. var invoice_type_cn =null;
  7986. if (invoice_type =="00" ){
  7987. invoice_type_cn="销售发票";
  7988. }else if (invoice_type == "01") {
  7989. invoice_type_cn="更正(对冲)发票";
  7990. }else if (invoice_type == "02") {
  7991. invoice_type_cn="其它类型发票";
  7992. }
  7993. html += "_$ta";
  7994. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  7995. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7996. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7997. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  7998. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7999. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8000. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8001. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  8002. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8003. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8004. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  8005. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  8006. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8007. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8008. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8009. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8010. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  8011. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8012. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  8013. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  8014. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8015. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8016. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  8017. html += "_$tag";
  8018. }
  8019. html += "_$ta";
  8020. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8021. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8022. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8023. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8024. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8025. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8026. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8027. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8028. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8029. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8030. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8031. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8032. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8033. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8034. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8035. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8036. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8037. html += "_$tag_____________$tag_合计:_$tag___$tag";
  8038. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  8039. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8040. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8041. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8042. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8043. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8044. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8045. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8046. html += "_$tag";
  8047. $("#dataTable").html(html);
  8048. }else {
  8049. $("#dataTable").html("");
  8050. }
  8051. },
  8052. "error" : function(msg){
  8053. },
  8054. "complete": function(){
  8055. layer.close(tip);
  8056. }
  8057. });
  8058. });
  8059. Date.prototype.Format = function (fmt) {
  8060. var o = {
  8061. "M+": this.getMonth() + 1, //月份
  8062. "d+": this.getDate(), //日
  8063. "h+": this.getHours(), //小时
  8064. "m+": this.getMinutes(), //分
  8065. "s+": this.getSeconds(), //秒
  8066. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  8067. "S": this.getMilliseconds() //毫秒
  8068. };
  8069. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  8070. for (var k in o)
  8071. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  8072. return fmt;
  8073. }
  8074. $("#jrjc").change(function() {
  8075. if ($("#jrjc").prop('checked') == true){
  8076. $("#departmentId").removeAttr("disabled");
  8077. }else {
  8078. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8079. }
  8080. });
  8081. ----------------------------------- SOURCE END -------------------------------------
  8082. !STACK 0
  8083. java.lang.NullPointerException
  8084. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-07-23 09:32:01.892
  8085. !MESSAGE java.lang.NullPointerException
  8086. !STACK 1
  8087. JavaScript Model Exception: java.lang.NullPointerException
  8088. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  8089. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  8090. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  8091. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  8092. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  8093. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  8094. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  8095. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  8096. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  8097. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  8098. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  8099. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  8100. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  8101. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  8102. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  8103. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  8104. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  8105. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  8106. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  8107. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  8108. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  8109. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  8110. Caused by: java.lang.NullPointerException
  8111. Caused by: java.lang.NullPointerException
  8112. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:32:01.892
  8113. !MESSAGE java.lang.NullPointerException
  8114. !STACK 0
  8115. java.lang.NullPointerException
  8116. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:02.292
  8117. !MESSAGE Exception occurred during problem detection:
  8118. ----------------------------------- SOURCE BEGIN -------------------------------------
  8119. (function(){WdatePicker();})();
  8120. (function(){WdatePicker();})();
  8121. (function(){Data.get();})();
  8122. (function(){Data.set();})();
  8123. (function(){search();})();
  8124. $(function(){
  8125. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8126. getfp();
  8127. });
  8128. var Data = {
  8129. "get" : function(){
  8130. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  8131. var tip = layer.load(2);
  8132. var result="";
  8133. var url = "getgyxml.do";
  8134. $.ajax({
  8135. "url" : url,
  8136. "data" : {
  8137. "start_date" : $("#dateBegin").val(),
  8138. "end_date" : $("#dateEnd").val()
  8139. },
  8140. "type" : "POST",
  8141. "dataType" : "json",
  8142. "success" : function(data) {
  8143. if(data != null && data != ""){
  8144. if ( data.status =="success"){
  8145. getfp();
  8146. alert("获取成功!");
  8147. }else {
  8148. alert(data.status);
  8149. }
  8150. }else {
  8151. alert("获取失败!");
  8152. }
  8153. },
  8154. "complete": function(){
  8155. layer.close(tip);
  8156. }
  8157. });
  8158. }else {
  8159. alert("请选择日期!");
  8160. }
  8161. },
  8162. "set" : function(){
  8163. if ( $("#fpid option:selected").text() !=""){
  8164. var tip = layer.load(2);
  8165. var gitem = $("#form1").serialize();
  8166. var jrjc;
  8167. if ($("#jrjc").prop('checked') == true){
  8168. jrjc = $("#departmentId").val();
  8169. }else {
  8170. jrjc ='N'
  8171. }
  8172. var url = "saverk.do";
  8173. $.ajax({
  8174. "url" : url,
  8175. "data" : {
  8176. "gitem" : gitem,
  8177. "jrjc" : jrjc
  8178. },
  8179. "type" : "POST",
  8180. "dataType" : "json",
  8181. "async" : true,
  8182. "success" : function(data) {
  8183. if(data.status =="success"){
  8184. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  8185. alert("入库成功!\n入库单号:"+data.rkdh+"");
  8186. }else {
  8187. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  8188. }
  8189. window.location.reload();
  8190. }else {
  8191. alert(msg);
  8192. }
  8193. },
  8194. "error": function(){
  8195. alert("确认失败!");
  8196. },
  8197. "complete": function(){
  8198. layer.close(tip);
  8199. }
  8200. });
  8201. }else {
  8202. alert("请选择发票!");
  8203. }
  8204. }
  8205. }
  8206. function getfp(){
  8207. var tip = layer.load(2);
  8208. var url = "getgyfp.do";
  8209. $.ajax({
  8210. "url" : url,
  8211. "type" : "POST",
  8212. "dataType" : "json",
  8213. "async" : true,
  8214. "success" : function(data) {
  8215. if(data != null && data != ""){
  8216. $("#fpid").empty();
  8217. $("#fpid").append("_$tag_____________$tag____");
  8218. for(var i = 0; i < data.length; i++){
  8219. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  8220. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  8221. }
  8222. }
  8223. },
  8224. "error" : function(msg){
  8225. },
  8226. "complete": function(){
  8227. layer.close(tip);
  8228. }
  8229. });
  8230. }
  8231. $("#fpid").change(function(){
  8232. var tip = layer.load(2);
  8233. var url = "getgyrkxx.do";
  8234. var sum_total=0;
  8235. $.ajax({
  8236. "url" : url,
  8237. "data" : {
  8238. "fpId" : $("#fpid").val()
  8239. },
  8240. "type" : "POST",
  8241. "dataType" : "json",
  8242. "async" : true,
  8243. "success" : function(data) {
  8244. $("#dataTable").html("");
  8245. if(data != null && data != ""){
  8246. var html = "";
  8247. for(var i = 0; i < data.length; i++){
  8248. var ID = data[i].id == null ? "" : data[i].id;
  8249. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  8250. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  8251. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  8252. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  8253. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  8254. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  8255. var GOODS = data[i].goods == null ? "" : data[i].goods;
  8256. var NAME = data[i].name == null ? "" : data[i].name;
  8257. var SPEC = data[i].spec == null ? "" : data[i].spec;
  8258. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  8259. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  8260. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  8261. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  8262. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  8263. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  8264. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  8265. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  8266. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  8267. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  8268. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  8269. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  8270. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  8271. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  8272. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  8273. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  8274. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  8275. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  8276. sum_total = sum_total + DSUMVALUE
  8277. var invoice_type_cn =null;
  8278. if (invoice_type =="00" ){
  8279. invoice_type_cn="销售发票";
  8280. }else if (invoice_type == "01") {
  8281. invoice_type_cn="更正(对冲)发票";
  8282. }else if (invoice_type == "02") {
  8283. invoice_type_cn="其它类型发票";
  8284. }
  8285. html += "_$ta";
  8286. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  8287. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8288. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8289. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  8290. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8291. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8292. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8293. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  8294. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8295. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8296. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  8297. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  8298. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8299. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8300. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8301. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8302. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  8303. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8304. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  8305. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  8306. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8307. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8308. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  8309. html += "_$tag";
  8310. }
  8311. html += "_$ta";
  8312. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8313. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8314. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8315. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8316. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8317. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8318. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8319. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8320. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8321. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8322. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8323. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8324. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8325. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8326. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8327. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8328. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8329. html += "_$tag_____________$tag_合计:_$tag___$tag";
  8330. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  8331. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8332. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8333. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8334. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8335. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8336. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8337. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8338. html += "_$tag";
  8339. $("#dataTable").html(html);
  8340. }else {
  8341. $("#dataTable").html("");
  8342. }
  8343. },
  8344. "error" : function(msg){
  8345. },
  8346. "complete": function(){
  8347. layer.close(tip);
  8348. }
  8349. });
  8350. });
  8351. Date.prototype.Format = function (fmt) {
  8352. var o = {
  8353. "M+": this.getMonth() + 1, //月份
  8354. "d+": this.getDate(), //日
  8355. "h+": this.getHours(), //小时
  8356. "m+": this.getMinutes(), //分
  8357. "s+": this.getSeconds(), //秒
  8358. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  8359. "S": this.getMilliseconds() //毫秒
  8360. };
  8361. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  8362. for (var k in o)
  8363. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  8364. return fmt;
  8365. }
  8366. $("#jrjc").change(function() {
  8367. if ($("#jrjc").prop('checked') == true){
  8368. $("#departmentId").removeAttr("disabled");
  8369. }else {
  8370. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8371. }
  8372. });
  8373. ----------------------------------- SOURCE END -------------------------------------
  8374. !STACK 0
  8375. java.lang.NullPointerException
  8376. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:02.292
  8377. !MESSAGE Error while processing working copy
  8378. !STACK 1
  8379. JavaScript Model Exception: java.lang.NullPointerException
  8380. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  8381. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  8382. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  8383. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  8384. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  8385. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  8386. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  8387. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  8388. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  8389. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  8390. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  8391. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  8392. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  8393. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  8394. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  8395. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  8396. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  8397. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  8398. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  8399. Caused by: java.lang.NullPointerException
  8400. Caused by: java.lang.NullPointerException
  8401. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:32:02.292
  8402. !MESSAGE java.lang.NullPointerException
  8403. !STACK 0
  8404. java.lang.NullPointerException
  8405. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:03.338
  8406. !MESSAGE Exception occurred during problem detection:
  8407. ----------------------------------- SOURCE BEGIN -------------------------------------
  8408. (function(){WdatePicker();})();
  8409. (function(){WdatePicker();})();
  8410. (function(){Data.get();})();
  8411. (function(){Data.set();})();
  8412. (function(){search();})();
  8413. $(function(){
  8414. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8415. getfp();
  8416. });
  8417. var Data = {
  8418. "get" : function(){
  8419. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  8420. var tip = layer.load(2);
  8421. var result="";
  8422. var url = "getgyxml.do";
  8423. $.ajax({
  8424. "url" : url,
  8425. "data" : {
  8426. "start_date" : $("#dateBegin").val(),
  8427. "end_date" : $("#dateEnd").val()
  8428. },
  8429. "type" : "POST",
  8430. "dataType" : "json",
  8431. "success" : function(data) {
  8432. if(data != null && data != ""){
  8433. if ( data.status =="success"){
  8434. getfp();
  8435. alert("获取成功!");
  8436. }else {
  8437. alert(data.status);
  8438. }
  8439. }else {
  8440. alert("获取失败!");
  8441. }
  8442. },
  8443. "complete": function(){
  8444. layer.close(tip);
  8445. }
  8446. });
  8447. }else {
  8448. alert("请选择日期!");
  8449. }
  8450. },
  8451. "set" : function(){
  8452. if ( $("#fpid option:selected").text() !=""){
  8453. var tip = layer.load(2);
  8454. var gitem = $("#form1").serialize();
  8455. var jrjc;
  8456. if ($("#jrjc").prop('checked') == true){
  8457. jrjc = $("#departmentId").val();
  8458. }else {
  8459. jrjc ='N'
  8460. }
  8461. var url = "saverk.do";
  8462. $.ajax({
  8463. "url" : url,
  8464. "data" : {
  8465. "gitem" : gitem,
  8466. "jrjc" : jrjc
  8467. },
  8468. "type" : "POST",
  8469. "dataType" : "json",
  8470. "async" : true,
  8471. "success" : function(data) {
  8472. if(data.status =="success"){
  8473. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  8474. alert("入库成功!\n入库单号:"+data.rkdh+"");
  8475. }else {
  8476. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  8477. }
  8478. window.location.reload();
  8479. }else {
  8480. alert(msg);
  8481. }
  8482. },
  8483. "error": function(){
  8484. alert("确认失败!");
  8485. },
  8486. "complete": function(){
  8487. layer.close(tip);
  8488. }
  8489. });
  8490. }else {
  8491. alert("请选择发票!");
  8492. }
  8493. }
  8494. }
  8495. function getfp(){
  8496. var tip = layer.load(2);
  8497. var url = "getgyfp.do";
  8498. $.ajax({
  8499. "url" : url,
  8500. "type" : "POST",
  8501. "dataType" : "json",
  8502. "async" : true,
  8503. "success" : function(data) {
  8504. if(data != null && data != ""){
  8505. $("#fpid").empty();
  8506. $("#fpid").append("_$tag_____________$tag____");
  8507. for(var i = 0; i < data.length; i++){
  8508. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  8509. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  8510. }
  8511. }
  8512. },
  8513. "error" : function(msg){
  8514. },
  8515. "complete": function(){
  8516. layer.close(tip);
  8517. }
  8518. });
  8519. }
  8520. $("#fpid").change(function(){
  8521. var tip = layer.load(2);
  8522. var url = "getgyrkxx.do";
  8523. var sum_total=0;
  8524. $.ajax({
  8525. "url" : url,
  8526. "data" : {
  8527. "fpId" : $("#fpid").val()
  8528. },
  8529. "type" : "POST",
  8530. "dataType" : "json",
  8531. "async" : true,
  8532. "success" : function(data) {
  8533. $("#dataTable").html("");
  8534. if(data != null && data != ""){
  8535. var html = "";
  8536. for(var i = 0; i < data.length; i++){
  8537. var ID = data[i].id == null ? "" : data[i].id;
  8538. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  8539. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  8540. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  8541. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  8542. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  8543. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  8544. var GOODS = data[i].goods == null ? "" : data[i].goods;
  8545. var NAME = data[i].name == null ? "" : data[i].name;
  8546. var SPEC = data[i].spec == null ? "" : data[i].spec;
  8547. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  8548. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  8549. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  8550. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  8551. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  8552. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  8553. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  8554. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  8555. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  8556. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  8557. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  8558. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  8559. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  8560. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  8561. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  8562. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  8563. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  8564. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  8565. sum_total = sum_total + DSUMVALUE
  8566. var invoice_type_cn =null;
  8567. if (invoice_type =="00" ){
  8568. invoice_type_cn="销售发票";
  8569. }else if (invoice_type == "01") {
  8570. invoice_type_cn="更正(对冲)发票";
  8571. }else if (invoice_type == "02") {
  8572. invoice_type_cn="其它类型发票";
  8573. }
  8574. html += "_$ta";
  8575. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  8576. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8577. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8578. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  8579. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8580. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8581. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8582. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  8583. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8584. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8585. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  8586. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  8587. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8588. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8589. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8590. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8591. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  8592. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8593. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  8594. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  8595. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8596. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8597. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  8598. html += "_$tag";
  8599. }
  8600. html += "_$ta";
  8601. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8602. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8603. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8604. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8605. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8606. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8607. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8608. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8609. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8610. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8611. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8612. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8613. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8614. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8615. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8616. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8617. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8618. html += "_$tag_____________$tag_合计:_$tag___$tag";
  8619. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  8620. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8621. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8622. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8623. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8624. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8625. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8626. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8627. html += "_$tag";
  8628. $("#dataTable").html(html);
  8629. }else {
  8630. $("#dataTable").html("");
  8631. }
  8632. },
  8633. "error" : function(msg){
  8634. },
  8635. "complete": function(){
  8636. layer.close(tip);
  8637. }
  8638. });
  8639. });
  8640. Date.prototype.Format = function (fmt) {
  8641. var o = {
  8642. "M+": this.getMonth() + 1, //月份
  8643. "d+": this.getDate(), //日
  8644. "h+": this.getHours(), //小时
  8645. "m+": this.getMinutes(), //分
  8646. "s+": this.getSeconds(), //秒
  8647. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  8648. "S": this.getMilliseconds() //毫秒
  8649. };
  8650. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  8651. for (var k in o)
  8652. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  8653. return fmt;
  8654. }
  8655. $("#jrjc").change(function() {
  8656. if ($("#jrjc").prop('checked') == true){
  8657. $("#departmentId").removeAttr("disabled");
  8658. }else {
  8659. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8660. }
  8661. });
  8662. ----------------------------------- SOURCE END -------------------------------------
  8663. !STACK 0
  8664. java.lang.NullPointerException
  8665. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:05.305
  8666. !MESSAGE Exception occurred during problem detection:
  8667. ----------------------------------- SOURCE BEGIN -------------------------------------
  8668. (function(){WdatePicker();})();
  8669. (function(){WdatePicker();})();
  8670. (function(){Data.get();})();
  8671. (function(){Data.set();})();
  8672. (function(){search();})();
  8673. $(function(){
  8674. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8675. getfp();
  8676. });
  8677. var Data = {
  8678. "get" : function(){
  8679. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  8680. var tip = layer.load(2);
  8681. var result="";
  8682. var url = "getgyxml.do";
  8683. $.ajax({
  8684. "url" : url,
  8685. "data" : {
  8686. "start_date" : $("#dateBegin").val(),
  8687. "end_date" : $("#dateEnd").val()
  8688. },
  8689. "type" : "POST",
  8690. "dataType" : "json",
  8691. "success" : function(data) {
  8692. if(data != null && data != ""){
  8693. if ( data.status =="success"){
  8694. getfp();
  8695. alert("获取成功!");
  8696. }else {
  8697. alert(data.status);
  8698. }
  8699. }else {
  8700. alert("获取失败!");
  8701. }
  8702. },
  8703. "complete": function(){
  8704. layer.close(tip);
  8705. }
  8706. });
  8707. }else {
  8708. alert("请选择日期!");
  8709. }
  8710. },
  8711. "set" : function(){
  8712. if ( $("#fpid option:selected").text() !=""){
  8713. var tip = layer.load(2);
  8714. var gitem = $("#form1").serialize();
  8715. var jrjc;
  8716. if ($("#jrjc").prop('checked') == true){
  8717. jrjc = $("#departmentId").val();
  8718. }else {
  8719. jrjc ='N'
  8720. }
  8721. var url = "saverk.do";
  8722. $.ajax({
  8723. "url" : url,
  8724. "data" : {
  8725. "gitem" : gitem,
  8726. "jrjc" : jrjc
  8727. },
  8728. "type" : "POST",
  8729. "dataType" : "json",
  8730. "async" : true,
  8731. "success" : function(data) {
  8732. if(data.status =="success"){
  8733. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  8734. alert("入库成功!\n入库单号:"+data.rkdh+"");
  8735. }else {
  8736. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  8737. }
  8738. window.location.reload();
  8739. }else {
  8740. alert(msg);
  8741. }
  8742. },
  8743. "error": function(){
  8744. alert("确认失败!");
  8745. },
  8746. "complete": function(){
  8747. layer.close(tip);
  8748. }
  8749. });
  8750. }else {
  8751. alert("请选择发票!");
  8752. }
  8753. }
  8754. }
  8755. function getfp(){
  8756. var tip = layer.load(2);
  8757. var url = "getgyfp.do";
  8758. $.ajax({
  8759. "url" : url,
  8760. "type" : "POST",
  8761. "dataType" : "json",
  8762. "async" : true,
  8763. "success" : function(data) {
  8764. if(data != null && data != ""){
  8765. $("#fpid").empty();
  8766. $("#fpid").append("_$tag_____________$tag____");
  8767. for(var i = 0; i < data.length; i++){
  8768. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  8769. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  8770. }
  8771. }
  8772. },
  8773. "error" : function(msg){
  8774. },
  8775. "complete": function(){
  8776. layer.close(tip);
  8777. }
  8778. });
  8779. }
  8780. $("#fpid").change(function(){
  8781. var tip = layer.load(2);
  8782. var url = "getgyrkxx.do";
  8783. var sum_total=0;
  8784. $.ajax({
  8785. "url" : url,
  8786. "data" : {
  8787. "fpId" : $("#fpid").val()
  8788. },
  8789. "type" : "POST",
  8790. "dataType" : "json",
  8791. "async" : true,
  8792. "success" : function(data) {
  8793. $("#dataTable").html("");
  8794. if(data != null && data != ""){
  8795. var html = "";
  8796. for(var i = 0; i < data.length; i++){
  8797. var ID = data[i].id == null ? "" : data[i].id;
  8798. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  8799. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  8800. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  8801. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  8802. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  8803. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  8804. var GOODS = data[i].goods == null ? "" : data[i].goods;
  8805. var NAME = data[i].name == null ? "" : data[i].name;
  8806. var SPEC = data[i].spec == null ? "" : data[i].spec;
  8807. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  8808. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  8809. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  8810. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  8811. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  8812. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  8813. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  8814. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  8815. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  8816. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  8817. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  8818. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  8819. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  8820. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  8821. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  8822. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  8823. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  8824. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  8825. sum_total = sum_total + DSUMVALUE
  8826. var invoice_type_cn =null;
  8827. if (invoice_type =="00" ){
  8828. invoice_type_cn="销售发票";
  8829. }else if (invoice_type == "01") {
  8830. invoice_type_cn="更正(对冲)发票";
  8831. }else if (invoice_type == "02") {
  8832. invoice_type_cn="其它类型发票";
  8833. }
  8834. html += "_$ta";
  8835. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  8836. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8837. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8838. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  8839. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8840. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8841. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8842. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  8843. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8844. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8845. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  8846. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  8847. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8848. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8849. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8850. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8851. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  8852. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8853. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  8854. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  8855. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8856. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8857. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  8858. html += "_$tag";
  8859. }
  8860. html += "_$ta";
  8861. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8862. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8863. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8864. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8865. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8866. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8867. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8868. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8869. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8870. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8871. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8872. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8873. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8874. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8875. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8876. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8877. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8878. html += "_$tag_____________$tag_合计:_$tag___$tag";
  8879. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  8880. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8881. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8882. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8883. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8884. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8885. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8886. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8887. html += "_$tag";
  8888. $("#dataTable").html(html);
  8889. }else {
  8890. $("#dataTable").html("");
  8891. }
  8892. },
  8893. "error" : function(msg){
  8894. },
  8895. "complete": function(){
  8896. layer.close(tip);
  8897. }
  8898. });
  8899. });
  8900. Date.prototype.Format = function (fmt) {
  8901. var o = {
  8902. "M+": this.getMonth() + 1, //月份
  8903. "d+": this.getDate(), //日
  8904. "h+": this.getHours(), //小时
  8905. "m+": this.getMinutes(), //分
  8906. "s+": this.getSeconds(), //秒
  8907. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  8908. "S": this.getMilliseconds() //毫秒
  8909. };
  8910. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  8911. for (var k in o)
  8912. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  8913. return fmt;
  8914. }
  8915. $("#jrjc").change(function() {
  8916. if ($("#jrjc").prop('checked') == true){
  8917. $("#departmentId").removeAttr("disabled");
  8918. }else {
  8919. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8920. }
  8921. });
  8922. ----------------------------------- SOURCE END -------------------------------------
  8923. !STACK 0
  8924. java.lang.NullPointerException
  8925. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:05.306
  8926. !MESSAGE Error while processing working copy
  8927. !STACK 1
  8928. JavaScript Model Exception: java.lang.NullPointerException
  8929. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  8930. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  8931. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  8932. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  8933. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  8934. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  8935. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  8936. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  8937. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  8938. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  8939. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  8940. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  8941. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  8942. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  8943. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  8944. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  8945. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  8946. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  8947. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  8948. Caused by: java.lang.NullPointerException
  8949. Caused by: java.lang.NullPointerException
  8950. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:32:05.306
  8951. !MESSAGE java.lang.NullPointerException
  8952. !STACK 0
  8953. java.lang.NullPointerException
  8954. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:06.363
  8955. !MESSAGE Exception occurred during problem detection:
  8956. ----------------------------------- SOURCE BEGIN -------------------------------------
  8957. (function(){WdatePicker();})();
  8958. (function(){WdatePicker();})();
  8959. (function(){Data.get();})();
  8960. (function(){Data.set();})();
  8961. (function(){search();})();
  8962. $(function(){
  8963. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8964. getfp();
  8965. });
  8966. var Data = {
  8967. "get" : function(){
  8968. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  8969. var tip = layer.load(2);
  8970. var result="";
  8971. var url = "getgyxml.do";
  8972. $.ajax({
  8973. "url" : url,
  8974. "data" : {
  8975. "start_date" : $("#dateBegin").val(),
  8976. "end_date" : $("#dateEnd").val()
  8977. },
  8978. "type" : "POST",
  8979. "dataType" : "json",
  8980. "success" : function(data) {
  8981. if(data != null && data != ""){
  8982. if ( data.status =="success"){
  8983. getfp();
  8984. alert("获取成功!");
  8985. }else {
  8986. alert(data.status);
  8987. }
  8988. }else {
  8989. alert("获取失败!");
  8990. }
  8991. },
  8992. "complete": function(){
  8993. layer.close(tip);
  8994. }
  8995. });
  8996. }else {
  8997. alert("请选择日期!");
  8998. }
  8999. },
  9000. "set" : function(){
  9001. if ( $("#fpid option:selected").text() !=""){
  9002. var tip = layer.load(2);
  9003. var gitem = $("#form1").serialize();
  9004. var jrjc;
  9005. if ($("#jrjc").prop('checked') == true){
  9006. jrjc = $("#departmentId").val();
  9007. }else {
  9008. jrjc ='N'
  9009. }
  9010. var url = "saverk.do";
  9011. $.ajax({
  9012. "url" : url,
  9013. "data" : {
  9014. "gitem" : gitem,
  9015. "jrjc" : jrjc
  9016. },
  9017. "type" : "POST",
  9018. "dataType" : "json",
  9019. "async" : true,
  9020. "success" : function(data) {
  9021. if(data.status =="success"){
  9022. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  9023. alert("入库成功!\n入库单号:"+data.rkdh+"");
  9024. }else {
  9025. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  9026. }
  9027. window.location.reload();
  9028. }else {
  9029. alert(msg);
  9030. }
  9031. },
  9032. "error": function(){
  9033. alert("确认失败!");
  9034. },
  9035. "complete": function(){
  9036. layer.close(tip);
  9037. }
  9038. });
  9039. }else {
  9040. alert("请选择发票!");
  9041. }
  9042. }
  9043. }
  9044. function getfp(){
  9045. var tip = layer.load(2);
  9046. var url = "getgyfp.do";
  9047. $.ajax({
  9048. "url" : url,
  9049. "type" : "POST",
  9050. "dataType" : "json",
  9051. "async" : true,
  9052. "success" : function(data) {
  9053. if(data != null && data != ""){
  9054. $("#fpid").empty();
  9055. $("#fpid").append("_$tag_____________$tag____");
  9056. for(var i = 0; i < data.length; i++){
  9057. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  9058. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  9059. }
  9060. }
  9061. },
  9062. "error" : function(msg){
  9063. },
  9064. "complete": function(){
  9065. layer.close(tip);
  9066. }
  9067. });
  9068. }
  9069. $("#fpid").change(function(){
  9070. var tip = layer.load(2);
  9071. var url = "getgyrkxx.do";
  9072. var sum_total=0;
  9073. $.ajax({
  9074. "url" : url,
  9075. "data" : {
  9076. "fpId" : $("#fpid").val()
  9077. },
  9078. "type" : "POST",
  9079. "dataType" : "json",
  9080. "async" : true,
  9081. "success" : function(data) {
  9082. $("#dataTable").html("");
  9083. if(data != null && data != ""){
  9084. var html = "";
  9085. for(var i = 0; i < data.length; i++){
  9086. var ID = data[i].id == null ? "" : data[i].id;
  9087. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  9088. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  9089. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  9090. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  9091. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  9092. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  9093. var GOODS = data[i].goods == null ? "" : data[i].goods;
  9094. var NAME = data[i].name == null ? "" : data[i].name;
  9095. var SPEC = data[i].spec == null ? "" : data[i].spec;
  9096. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  9097. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  9098. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  9099. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  9100. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  9101. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  9102. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  9103. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  9104. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  9105. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  9106. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  9107. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  9108. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  9109. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  9110. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  9111. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  9112. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  9113. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  9114. sum_total = sum_total + DSUMVALUE
  9115. var invoice_type_cn =null;
  9116. if (invoice_type =="00" ){
  9117. invoice_type_cn="销售发票";
  9118. }else if (invoice_type == "01") {
  9119. invoice_type_cn="更正(对冲)发票";
  9120. }else if (invoice_type == "02") {
  9121. invoice_type_cn="其它类型发票";
  9122. }
  9123. html += "_$ta";
  9124. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  9125. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9126. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9127. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  9128. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9129. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9130. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9131. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  9132. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9133. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9134. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  9135. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  9136. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9137. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9138. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9139. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9140. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  9141. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9142. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  9143. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  9144. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9145. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9146. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  9147. html += "_$tag";
  9148. }
  9149. html += "_$ta";
  9150. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9151. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9152. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9153. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9154. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9155. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9156. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9157. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9158. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9159. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9160. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9161. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9162. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9163. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9164. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9165. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9166. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9167. html += "_$tag_____________$tag_合计:_$tag___$tag";
  9168. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  9169. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9170. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9171. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9172. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9173. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9174. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9175. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9176. html += "_$tag";
  9177. $("#dataTable").html(html);
  9178. }else {
  9179. $("#dataTable").html("");
  9180. }
  9181. },
  9182. "error" : function(msg){
  9183. },
  9184. "complete": function(){
  9185. layer.close(tip);
  9186. }
  9187. });
  9188. });
  9189. Date.prototype.Format = function (fmt) {
  9190. var o = {
  9191. "M+": this.getMonth() + 1, //月份
  9192. "d+": this.getDate(), //日
  9193. "h+": this.getHours(), //小时
  9194. "m+": this.getMinutes(), //分
  9195. "s+": this.getSeconds(), //秒
  9196. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  9197. "S": this.getMilliseconds() //毫秒
  9198. };
  9199. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  9200. for (var k in o)
  9201. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  9202. return fmt;
  9203. }
  9204. $("#jrjc").change(function() {
  9205. if ($("#jrjc").prop('checked') == true){
  9206. $("#departmentId").removeAttr("disabled");
  9207. }else {
  9208. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9209. }
  9210. });
  9211. ----------------------------------- SOURCE END -------------------------------------
  9212. !STACK 0
  9213. java.lang.NullPointerException
  9214. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:13.200
  9215. !MESSAGE Exception occurred during problem detection:
  9216. ----------------------------------- SOURCE BEGIN -------------------------------------
  9217. (function(){WdatePicker();})();
  9218. (function(){WdatePicker();})();
  9219. (function(){Data.get();})();
  9220. (function(){Data.set();})();
  9221. (function(){search();})();
  9222. $(function(){
  9223. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9224. getfp();
  9225. });
  9226. var Data = {
  9227. "get" : function(){
  9228. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  9229. var tip = layer.load(2);
  9230. var result="";
  9231. var url = "getgyxml.do";
  9232. $.ajax({
  9233. "url" : url,
  9234. "data" : {
  9235. "start_date" : $("#dateBegin").val(),
  9236. "end_date" : $("#dateEnd").val()
  9237. },
  9238. "type" : "POST",
  9239. "dataType" : "json",
  9240. "success" : function(data) {
  9241. if(data != null && data != ""){
  9242. if ( data.status =="success"){
  9243. getfp();
  9244. alert("获取成功!");
  9245. }else {
  9246. alert(data.status);
  9247. }
  9248. }else {
  9249. alert("获取失败!");
  9250. }
  9251. },
  9252. "complete": function(){
  9253. layer.close(tip);
  9254. }
  9255. });
  9256. }else {
  9257. alert("请选择日期!");
  9258. }
  9259. },
  9260. "set" : function(){
  9261. if ( $("#fpid option:selected").text() !=""){
  9262. var tip = layer.load(2);
  9263. var gitem = $("#form1").serialize();
  9264. var jrjc;
  9265. if ($("#jrjc").prop('checked') == true){
  9266. jrjc = $("#departmentId").val();
  9267. }else {
  9268. jrjc ='N'
  9269. }
  9270. var url = "saverk.do";
  9271. $.ajax({
  9272. "url" : url,
  9273. "data" : {
  9274. "gitem" : gitem,
  9275. "jrjc" : jrjc
  9276. },
  9277. "type" : "POST",
  9278. "dataType" : "json",
  9279. "async" : true,
  9280. "success" : function(data) {
  9281. if(data.status =="success"){
  9282. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  9283. alert("入库成功!\n入库单号:"+data.rkdh+"");
  9284. }else {
  9285. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  9286. }
  9287. window.location.reload();
  9288. }else {
  9289. alert(msg);
  9290. }
  9291. },
  9292. "error": function(){
  9293. alert("确认失败!");
  9294. },
  9295. "complete": function(){
  9296. layer.close(tip);
  9297. }
  9298. });
  9299. }else {
  9300. alert("请选择发票!");
  9301. }
  9302. }
  9303. }
  9304. function getfp(){
  9305. var tip = layer.load(2);
  9306. var url = "getgyfp.do";
  9307. $.ajax({
  9308. "url" : url,
  9309. "type" : "POST",
  9310. "dataType" : "json",
  9311. "async" : true,
  9312. "success" : function(data) {
  9313. if(data != null && data != ""){
  9314. $("#fpid").empty();
  9315. $("#fpid").append("_$tag_____________$tag____");
  9316. for(var i = 0; i < data.length; i++){
  9317. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  9318. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  9319. }
  9320. }
  9321. },
  9322. "error" : function(msg){
  9323. },
  9324. "complete": function(){
  9325. layer.close(tip);
  9326. }
  9327. });
  9328. }
  9329. $("#fpid").change(function(){
  9330. var tip = layer.load(2);
  9331. var url = "getgyrkxx.do";
  9332. var sum_total=0;
  9333. $.ajax({
  9334. "url" : url,
  9335. "data" : {
  9336. "fpId" : $("#fpid").val()
  9337. },
  9338. "type" : "POST",
  9339. "dataType" : "json",
  9340. "async" : true,
  9341. "success" : function(data) {
  9342. $("#dataTable").html("");
  9343. if(data != null && data != ""){
  9344. var html = "";
  9345. for(var i = 0; i < data.length; i++){
  9346. var ID = data[i].id == null ? "" : data[i].id;
  9347. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  9348. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  9349. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  9350. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  9351. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  9352. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  9353. var GOODS = data[i].goods == null ? "" : data[i].goods;
  9354. var NAME = data[i].name == null ? "" : data[i].name;
  9355. var SPEC = data[i].spec == null ? "" : data[i].spec;
  9356. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  9357. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  9358. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  9359. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  9360. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  9361. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  9362. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  9363. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  9364. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  9365. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  9366. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  9367. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  9368. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  9369. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  9370. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  9371. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  9372. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  9373. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  9374. sum_total = sum_total + DSUMVALUE
  9375. var invoice_type_cn =null;
  9376. if (invoice_type =="00" ){
  9377. invoice_type_cn="销售发票";
  9378. }else if (invoice_type == "01") {
  9379. invoice_type_cn="更正(对冲)发票";
  9380. }else if (invoice_type == "02") {
  9381. invoice_type_cn="其它类型发票";
  9382. }
  9383. html += "_$ta";
  9384. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  9385. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9386. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9387. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  9388. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9389. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9390. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9391. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  9392. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9393. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9394. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  9395. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  9396. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9397. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9398. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9399. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9400. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  9401. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9402. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  9403. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  9404. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9405. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9406. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  9407. html += "_$tag";
  9408. }
  9409. html += "_$ta";
  9410. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9411. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9412. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9413. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9414. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9415. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9416. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9417. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9418. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9419. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9420. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9421. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9422. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9423. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9424. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9425. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9426. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9427. html += "_$tag_____________$tag_合计:_$tag___$tag";
  9428. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  9429. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9430. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9431. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9432. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9433. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9434. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9435. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9436. html += "_$tag";
  9437. $("#dataTable").html(html);
  9438. }else {
  9439. $("#dataTable").html("");
  9440. }
  9441. },
  9442. "error" : function(msg){
  9443. },
  9444. "complete": function(){
  9445. layer.close(tip);
  9446. }
  9447. });
  9448. });
  9449. Date.prototype.Format = function (fmt) {
  9450. var o = {
  9451. "M+": this.getMonth() + 1, //月份
  9452. "d+": this.getDate(), //日
  9453. "h+": this.getHours(), //小时
  9454. "m+": this.getMinutes(), //分
  9455. "s+": this.getSeconds(), //秒
  9456. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  9457. "S": this.getMilliseconds() //毫秒
  9458. };
  9459. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  9460. for (var k in o)
  9461. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  9462. return fmt;
  9463. }
  9464. $("#jrjc").change(function() {
  9465. if ($("#jrjc").prop('checked') == true){
  9466. $("#departmentId").removeAttr("disabled");
  9467. }else {
  9468. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9469. }
  9470. });
  9471. ----------------------------------- SOURCE END -------------------------------------
  9472. !STACK 0
  9473. java.lang.NullPointerException
  9474. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:13.201
  9475. !MESSAGE Error while processing working copy
  9476. !STACK 1
  9477. JavaScript Model Exception: java.lang.NullPointerException
  9478. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  9479. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  9480. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  9481. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  9482. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  9483. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  9484. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  9485. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  9486. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  9487. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  9488. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  9489. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  9490. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  9491. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  9492. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  9493. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  9494. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  9495. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  9496. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  9497. Caused by: java.lang.NullPointerException
  9498. Caused by: java.lang.NullPointerException
  9499. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:32:13.201
  9500. !MESSAGE java.lang.NullPointerException
  9501. !STACK 0
  9502. java.lang.NullPointerException
  9503. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:14.264
  9504. !MESSAGE Exception occurred during problem detection:
  9505. ----------------------------------- SOURCE BEGIN -------------------------------------
  9506. (function(){WdatePicker();})();
  9507. (function(){WdatePicker();})();
  9508. (function(){Data.get();})();
  9509. (function(){Data.set();})();
  9510. (function(){search();})();
  9511. $(function(){
  9512. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9513. getfp();
  9514. });
  9515. var Data = {
  9516. "get" : function(){
  9517. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  9518. var tip = layer.load(2);
  9519. var result="";
  9520. var url = "getgyxml.do";
  9521. $.ajax({
  9522. "url" : url,
  9523. "data" : {
  9524. "start_date" : $("#dateBegin").val(),
  9525. "end_date" : $("#dateEnd").val()
  9526. },
  9527. "type" : "POST",
  9528. "dataType" : "json",
  9529. "success" : function(data) {
  9530. if(data != null && data != ""){
  9531. if ( data.status =="success"){
  9532. getfp();
  9533. alert("获取成功!");
  9534. }else {
  9535. alert(data.status);
  9536. }
  9537. }else {
  9538. alert("获取失败!");
  9539. }
  9540. },
  9541. "complete": function(){
  9542. layer.close(tip);
  9543. }
  9544. });
  9545. }else {
  9546. alert("请选择日期!");
  9547. }
  9548. },
  9549. "set" : function(){
  9550. if ( $("#fpid option:selected").text() !=""){
  9551. var tip = layer.load(2);
  9552. var gitem = $("#form1").serialize();
  9553. var jrjc;
  9554. if ($("#jrjc").prop('checked') == true){
  9555. jrjc = $("#departmentId").val();
  9556. }else {
  9557. jrjc ='N'
  9558. }
  9559. var url = "saverk.do";
  9560. $.ajax({
  9561. "url" : url,
  9562. "data" : {
  9563. "gitem" : gitem,
  9564. "jrjc" : jrjc
  9565. },
  9566. "type" : "POST",
  9567. "dataType" : "json",
  9568. "async" : true,
  9569. "success" : function(data) {
  9570. if(data.status =="success"){
  9571. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  9572. alert("入库成功!\n入库单号:"+data.rkdh+"");
  9573. }else {
  9574. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  9575. }
  9576. window.location.reload();
  9577. }else {
  9578. alert(msg);
  9579. }
  9580. },
  9581. "error": function(){
  9582. alert("确认失败!");
  9583. },
  9584. "complete": function(){
  9585. layer.close(tip);
  9586. }
  9587. });
  9588. }else {
  9589. alert("请选择发票!");
  9590. }
  9591. }
  9592. }
  9593. function getfp(){
  9594. var tip = layer.load(2);
  9595. var url = "getgyfp.do";
  9596. $.ajax({
  9597. "url" : url,
  9598. "type" : "POST",
  9599. "dataType" : "json",
  9600. "async" : true,
  9601. "success" : function(data) {
  9602. if(data != null && data != ""){
  9603. $("#fpid").empty();
  9604. $("#fpid").append("_$tag_____________$tag____");
  9605. for(var i = 0; i < data.length; i++){
  9606. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  9607. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  9608. }
  9609. }
  9610. },
  9611. "error" : function(msg){
  9612. },
  9613. "complete": function(){
  9614. layer.close(tip);
  9615. }
  9616. });
  9617. }
  9618. $("#fpid").change(function(){
  9619. var tip = layer.load(2);
  9620. var url = "getgyrkxx.do";
  9621. var sum_total=0;
  9622. $.ajax({
  9623. "url" : url,
  9624. "data" : {
  9625. "fpId" : $("#fpid").val()
  9626. },
  9627. "type" : "POST",
  9628. "dataType" : "json",
  9629. "async" : true,
  9630. "success" : function(data) {
  9631. $("#dataTable").html("");
  9632. if(data != null && data != ""){
  9633. var html = "";
  9634. for(var i = 0; i < data.length; i++){
  9635. var ID = data[i].id == null ? "" : data[i].id;
  9636. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  9637. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  9638. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  9639. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  9640. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  9641. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  9642. var GOODS = data[i].goods == null ? "" : data[i].goods;
  9643. var NAME = data[i].name == null ? "" : data[i].name;
  9644. var SPEC = data[i].spec == null ? "" : data[i].spec;
  9645. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  9646. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  9647. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  9648. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  9649. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  9650. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  9651. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  9652. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  9653. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  9654. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  9655. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  9656. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  9657. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  9658. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  9659. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  9660. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  9661. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  9662. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  9663. sum_total = sum_total + DSUMVALUE
  9664. var invoice_type_cn =null;
  9665. if (invoice_type =="00" ){
  9666. invoice_type_cn="销售发票";
  9667. }else if (invoice_type == "01") {
  9668. invoice_type_cn="更正(对冲)发票";
  9669. }else if (invoice_type == "02") {
  9670. invoice_type_cn="其它类型发票";
  9671. }
  9672. html += "_$ta";
  9673. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  9674. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9675. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9676. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  9677. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9678. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9679. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9680. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  9681. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9682. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9683. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  9684. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  9685. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9686. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9687. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9688. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9689. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  9690. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9691. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  9692. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  9693. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9694. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9695. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  9696. html += "_$tag";
  9697. }
  9698. html += "_$ta";
  9699. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9700. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9701. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9702. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9703. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9704. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9705. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9706. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9707. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9708. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9709. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9710. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9711. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9712. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9713. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9714. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9715. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9716. html += "_$tag_____________$tag_合计:_$tag___$tag";
  9717. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  9718. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9719. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9720. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9721. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9722. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9723. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9724. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9725. html += "_$tag";
  9726. $("#dataTable").html(html);
  9727. }else {
  9728. $("#dataTable").html("");
  9729. }
  9730. },
  9731. "error" : function(msg){
  9732. },
  9733. "complete": function(){
  9734. layer.close(tip);
  9735. }
  9736. });
  9737. });
  9738. Date.prototype.Format = function (fmt) {
  9739. var o = {
  9740. "M+": this.getMonth() + 1, //月份
  9741. "d+": this.getDate(), //日
  9742. "h+": this.getHours(), //小时
  9743. "m+": this.getMinutes(), //分
  9744. "s+": this.getSeconds(), //秒
  9745. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  9746. "S": this.getMilliseconds() //毫秒
  9747. };
  9748. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  9749. for (var k in o)
  9750. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  9751. return fmt;
  9752. }
  9753. $("#jrjc").change(function() {
  9754. if ($("#jrjc").prop('checked') == true){
  9755. $("#departmentId").removeAttr("disabled");
  9756. }else {
  9757. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9758. }
  9759. });
  9760. ----------------------------------- SOURCE END -------------------------------------
  9761. !STACK 0
  9762. java.lang.NullPointerException
  9763. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:14.924
  9764. !MESSAGE Exception occurred during problem detection:
  9765. ----------------------------------- SOURCE BEGIN -------------------------------------
  9766. (function(){WdatePicker();})();
  9767. (function(){WdatePicker();})();
  9768. (function(){Data.get();})();
  9769. (function(){Data.set();})();
  9770. (function(){search();})();
  9771. $(function(){
  9772. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9773. getfp();
  9774. });
  9775. var Data = {
  9776. "get" : function(){
  9777. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  9778. var tip = layer.load(2);
  9779. var result="";
  9780. var url = "getgyxml.do";
  9781. $.ajax({
  9782. "url" : url,
  9783. "data" : {
  9784. "start_date" : $("#dateBegin").val(),
  9785. "end_date" : $("#dateEnd").val()
  9786. },
  9787. "type" : "POST",
  9788. "dataType" : "json",
  9789. "success" : function(data) {
  9790. if(data != null && data != ""){
  9791. if ( data.status =="success"){
  9792. getfp();
  9793. alert("获取成功!");
  9794. }else {
  9795. alert(data.status);
  9796. }
  9797. }else {
  9798. alert("获取失败!");
  9799. }
  9800. },
  9801. "complete": function(){
  9802. layer.close(tip);
  9803. }
  9804. });
  9805. }else {
  9806. alert("请选择日期!");
  9807. }
  9808. },
  9809. "set" : function(){
  9810. if ( $("#fpid option:selected").text() !=""){
  9811. var tip = layer.load(2);
  9812. var gitem = $("#form1").serialize();
  9813. var jrjc;
  9814. if ($("#jrjc").prop('checked') == true){
  9815. jrjc = $("#departmentId").val();
  9816. }else {
  9817. jrjc ='N'
  9818. }
  9819. var url = "saverk.do";
  9820. $.ajax({
  9821. "url" : url,
  9822. "data" : {
  9823. "gitem" : gitem,
  9824. "jrjc" : jrjc
  9825. },
  9826. "type" : "POST",
  9827. "dataType" : "json",
  9828. "async" : true,
  9829. "success" : function(data) {
  9830. if(data.status =="success"){
  9831. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  9832. alert("入库成功!\n入库单号:"+data.rkdh+"");
  9833. }else {
  9834. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  9835. }
  9836. window.location.reload();
  9837. }else {
  9838. alert(msg);
  9839. }
  9840. },
  9841. "error": function(){
  9842. alert("确认失败!");
  9843. },
  9844. "complete": function(){
  9845. layer.close(tip);
  9846. }
  9847. });
  9848. }else {
  9849. alert("请选择发票!");
  9850. }
  9851. }
  9852. }
  9853. function getfp(){
  9854. var tip = layer.load(2);
  9855. var url = "getgyfp.do";
  9856. $.ajax({
  9857. "url" : url,
  9858. "type" : "POST",
  9859. "dataType" : "json",
  9860. "async" : true,
  9861. "success" : function(data) {
  9862. if(data != null && data != ""){
  9863. $("#fpid").empty();
  9864. $("#fpid").append("_$tag_____________$tag____");
  9865. for(var i = 0; i < data.length; i++){
  9866. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  9867. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  9868. }
  9869. }
  9870. },
  9871. "error" : function(msg){
  9872. },
  9873. "complete": function(){
  9874. layer.close(tip);
  9875. }
  9876. });
  9877. }
  9878. $("#fpid").change(function(){
  9879. var tip = layer.load(2);
  9880. var url = "getgyrkxx.do";
  9881. var sum_total=0;
  9882. $.ajax({
  9883. "url" : url,
  9884. "data" : {
  9885. "fpId" : $("#fpid").val()
  9886. },
  9887. "type" : "POST",
  9888. "dataType" : "json",
  9889. "async" : true,
  9890. "success" : function(data) {
  9891. $("#dataTable").html("");
  9892. if(data != null && data != ""){
  9893. var html = "";
  9894. for(var i = 0; i < data.length; i++){
  9895. var ID = data[i].id == null ? "" : data[i].id;
  9896. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  9897. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  9898. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  9899. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  9900. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  9901. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  9902. var GOODS = data[i].goods == null ? "" : data[i].goods;
  9903. var NAME = data[i].name == null ? "" : data[i].name;
  9904. var SPEC = data[i].spec == null ? "" : data[i].spec;
  9905. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  9906. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  9907. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  9908. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  9909. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  9910. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  9911. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  9912. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  9913. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  9914. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  9915. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  9916. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  9917. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  9918. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  9919. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  9920. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  9921. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  9922. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  9923. sum_total = sum_total + DSUMVALUE
  9924. var invoice_type_cn =null;
  9925. if (invoice_type =="00" ){
  9926. invoice_type_cn="销售发票";
  9927. }else if (invoice_type == "01") {
  9928. invoice_type_cn="更正(对冲)发票";
  9929. }else if (invoice_type == "02") {
  9930. invoice_type_cn="其它类型发票";
  9931. }
  9932. html += "_$ta";
  9933. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  9934. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9935. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9936. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  9937. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9938. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9939. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9940. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  9941. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9942. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9943. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  9944. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  9945. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9946. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9947. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9948. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9949. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  9950. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9951. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  9952. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  9953. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9954. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9955. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  9956. html += "_$tag";
  9957. }
  9958. html += "_$ta";
  9959. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9960. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9961. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9962. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9963. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9964. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9965. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9966. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9967. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9968. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9969. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9970. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9971. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9972. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9973. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9974. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9975. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9976. html += "_$tag_____________$tag_合计:_$tag___$tag";
  9977. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  9978. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9979. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9980. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9981. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9982. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9983. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9984. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9985. html += "_$tag";
  9986. $("#dataTable").html(html);
  9987. }else {
  9988. $("#dataTable").html("");
  9989. }
  9990. },
  9991. "error" : function(msg){
  9992. },
  9993. "complete": function(){
  9994. layer.close(tip);
  9995. }
  9996. });
  9997. });
  9998. Date.prototype.Format = function (fmt) {
  9999. var o = {
  10000. "M+": this.getMonth() + 1, //月份
  10001. "d+": this.getDate(), //日
  10002. "h+": this.getHours(), //小时
  10003. "m+": this.getMinutes(), //分
  10004. "s+": this.getSeconds(), //秒
  10005. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  10006. "S": this.getMilliseconds() //毫秒
  10007. };
  10008. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  10009. for (var k in o)
  10010. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  10011. return fmt;
  10012. }
  10013. $("#jrjc").change(function() {
  10014. if ($("#jrjc").prop('checked') == true){
  10015. $("#departmentId").removeAttr("disabled");
  10016. }else {
  10017. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10018. }
  10019. });
  10020. ----------------------------------- SOURCE END -------------------------------------
  10021. !STACK 0
  10022. java.lang.NullPointerException
  10023. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:14.925
  10024. !MESSAGE Error while processing working copy
  10025. !STACK 1
  10026. JavaScript Model Exception: java.lang.NullPointerException
  10027. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  10028. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  10029. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  10030. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  10031. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  10032. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  10033. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  10034. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  10035. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  10036. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  10037. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  10038. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  10039. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  10040. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  10041. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  10042. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  10043. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  10044. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  10045. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  10046. Caused by: java.lang.NullPointerException
  10047. Caused by: java.lang.NullPointerException
  10048. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:32:14.925
  10049. !MESSAGE java.lang.NullPointerException
  10050. !STACK 0
  10051. java.lang.NullPointerException
  10052. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:15.975
  10053. !MESSAGE Exception occurred during problem detection:
  10054. ----------------------------------- SOURCE BEGIN -------------------------------------
  10055. (function(){WdatePicker();})();
  10056. (function(){WdatePicker();})();
  10057. (function(){Data.get();})();
  10058. (function(){Data.set();})();
  10059. (function(){search();})();
  10060. $(function(){
  10061. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10062. getfp();
  10063. });
  10064. var Data = {
  10065. "get" : function(){
  10066. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  10067. var tip = layer.load(2);
  10068. var result="";
  10069. var url = "getgyxml.do";
  10070. $.ajax({
  10071. "url" : url,
  10072. "data" : {
  10073. "start_date" : $("#dateBegin").val(),
  10074. "end_date" : $("#dateEnd").val()
  10075. },
  10076. "type" : "POST",
  10077. "dataType" : "json",
  10078. "success" : function(data) {
  10079. if(data != null && data != ""){
  10080. if ( data.status =="success"){
  10081. getfp();
  10082. alert("获取成功!");
  10083. }else {
  10084. alert(data.status);
  10085. }
  10086. }else {
  10087. alert("获取失败!");
  10088. }
  10089. },
  10090. "complete": function(){
  10091. layer.close(tip);
  10092. }
  10093. });
  10094. }else {
  10095. alert("请选择日期!");
  10096. }
  10097. },
  10098. "set" : function(){
  10099. if ( $("#fpid option:selected").text() !=""){
  10100. var tip = layer.load(2);
  10101. var gitem = $("#form1").serialize();
  10102. var jrjc;
  10103. if ($("#jrjc").prop('checked') == true){
  10104. jrjc = $("#departmentId").val();
  10105. }else {
  10106. jrjc ='N'
  10107. }
  10108. var url = "saverk.do";
  10109. $.ajax({
  10110. "url" : url,
  10111. "data" : {
  10112. "gitem" : gitem,
  10113. "jrjc" : jrjc
  10114. },
  10115. "type" : "POST",
  10116. "dataType" : "json",
  10117. "async" : true,
  10118. "success" : function(data) {
  10119. if(data.status =="success"){
  10120. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  10121. alert("入库成功!\n入库单号:"+data.rkdh+"");
  10122. }else {
  10123. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  10124. }
  10125. window.location.reload();
  10126. }else {
  10127. alert(msg);
  10128. }
  10129. },
  10130. "error": function(){
  10131. alert("确认失败!");
  10132. },
  10133. "complete": function(){
  10134. layer.close(tip);
  10135. }
  10136. });
  10137. }else {
  10138. alert("请选择发票!");
  10139. }
  10140. }
  10141. }
  10142. function getfp(){
  10143. var tip = layer.load(2);
  10144. var url = "getgyfp.do";
  10145. $.ajax({
  10146. "url" : url,
  10147. "type" : "POST",
  10148. "dataType" : "json",
  10149. "async" : true,
  10150. "success" : function(data) {
  10151. if(data != null && data != ""){
  10152. $("#fpid").empty();
  10153. $("#fpid").append("_$tag_____________$tag____");
  10154. for(var i = 0; i < data.length; i++){
  10155. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  10156. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  10157. }
  10158. }
  10159. },
  10160. "error" : function(msg){
  10161. },
  10162. "complete": function(){
  10163. layer.close(tip);
  10164. }
  10165. });
  10166. }
  10167. $("#fpid").change(function(){
  10168. var tip = layer.load(2);
  10169. var url = "getgyrkxx.do";
  10170. var sum_total=0;
  10171. $.ajax({
  10172. "url" : url,
  10173. "data" : {
  10174. "fpId" : $("#fpid").val()
  10175. },
  10176. "type" : "POST",
  10177. "dataType" : "json",
  10178. "async" : true,
  10179. "success" : function(data) {
  10180. $("#dataTable").html("");
  10181. if(data != null && data != ""){
  10182. var html = "";
  10183. for(var i = 0; i < data.length; i++){
  10184. var ID = data[i].id == null ? "" : data[i].id;
  10185. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  10186. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  10187. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  10188. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  10189. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  10190. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  10191. var GOODS = data[i].goods == null ? "" : data[i].goods;
  10192. var NAME = data[i].name == null ? "" : data[i].name;
  10193. var SPEC = data[i].spec == null ? "" : data[i].spec;
  10194. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  10195. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  10196. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  10197. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  10198. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  10199. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  10200. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  10201. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  10202. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  10203. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  10204. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  10205. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  10206. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  10207. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  10208. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  10209. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  10210. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  10211. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  10212. sum_total = sum_total + DSUMVALUE
  10213. var invoice_type_cn =null;
  10214. if (invoice_type =="00" ){
  10215. invoice_type_cn="销售发票";
  10216. }else if (invoice_type == "01") {
  10217. invoice_type_cn="更正(对冲)发票";
  10218. }else if (invoice_type == "02") {
  10219. invoice_type_cn="其它类型发票";
  10220. }
  10221. html += "_$ta";
  10222. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  10223. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10224. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10225. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  10226. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10227. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10228. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10229. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  10230. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10231. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10232. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  10233. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  10234. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10235. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10236. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10237. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10238. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  10239. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10240. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  10241. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  10242. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10243. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10244. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  10245. html += "_$tag";
  10246. }
  10247. html += "_$ta";
  10248. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10249. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10250. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10251. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10252. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10253. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10254. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10255. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10256. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10257. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10258. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10259. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10260. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10261. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10262. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10263. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10264. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10265. html += "_$tag_____________$tag_合计:_$tag___$tag";
  10266. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  10267. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10268. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10269. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10270. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10271. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10272. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10273. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10274. html += "_$tag";
  10275. $("#dataTable").html(html);
  10276. }else {
  10277. $("#dataTable").html("");
  10278. }
  10279. },
  10280. "error" : function(msg){
  10281. },
  10282. "complete": function(){
  10283. layer.close(tip);
  10284. }
  10285. });
  10286. });
  10287. Date.prototype.Format = function (fmt) {
  10288. var o = {
  10289. "M+": this.getMonth() + 1, //月份
  10290. "d+": this.getDate(), //日
  10291. "h+": this.getHours(), //小时
  10292. "m+": this.getMinutes(), //分
  10293. "s+": this.getSeconds(), //秒
  10294. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  10295. "S": this.getMilliseconds() //毫秒
  10296. };
  10297. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  10298. for (var k in o)
  10299. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  10300. return fmt;
  10301. }
  10302. $("#jrjc").change(function() {
  10303. if ($("#jrjc").prop('checked') == true){
  10304. $("#departmentId").removeAttr("disabled");
  10305. }else {
  10306. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10307. }
  10308. });
  10309. ----------------------------------- SOURCE END -------------------------------------
  10310. !STACK 0
  10311. java.lang.NullPointerException
  10312. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:17.044
  10313. !MESSAGE Exception occurred during problem detection:
  10314. ----------------------------------- SOURCE BEGIN -------------------------------------
  10315. (function(){WdatePicker();})();
  10316. (function(){WdatePicker();})();
  10317. (function(){Data.get();})();
  10318. (function(){Data.set();})();
  10319. (function(){search();})();
  10320. $(function(){
  10321. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10322. getfp();
  10323. });
  10324. var Data = {
  10325. "get" : function(){
  10326. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  10327. var tip = layer.load(2);
  10328. var result="";
  10329. var url = "getgyxml.do";
  10330. $.ajax({
  10331. "url" : url,
  10332. "data" : {
  10333. "start_date" : $("#dateBegin").val(),
  10334. "end_date" : $("#dateEnd").val()
  10335. },
  10336. "type" : "POST",
  10337. "dataType" : "json",
  10338. "success" : function(data) {
  10339. if(data != null && data != ""){
  10340. if ( data.status =="success"){
  10341. getfp();
  10342. alert("获取成功!");
  10343. }else {
  10344. alert(data.status);
  10345. }
  10346. }else {
  10347. alert("获取失败!");
  10348. }
  10349. },
  10350. "complete": function(){
  10351. layer.close(tip);
  10352. }
  10353. });
  10354. }else {
  10355. alert("请选择日期!");
  10356. }
  10357. },
  10358. "set" : function(){
  10359. if ( $("#fpid option:selected").text() !=""){
  10360. var tip = layer.load(2);
  10361. var gitem = $("#form1").serialize();
  10362. var jrjc;
  10363. if ($("#jrjc").prop('checked') == true){
  10364. jrjc = $("#departmentId").val();
  10365. }else {
  10366. jrjc ='N'
  10367. }
  10368. var url = "saverk.do";
  10369. $.ajax({
  10370. "url" : url,
  10371. "data" : {
  10372. "gitem" : gitem,
  10373. "jrjc" : jrjc
  10374. },
  10375. "type" : "POST",
  10376. "dataType" : "json",
  10377. "async" : true,
  10378. "success" : function(data) {
  10379. if(data.status =="success"){
  10380. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  10381. alert("入库成功!\n入库单号:"+data.rkdh+"");
  10382. }else {
  10383. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  10384. }
  10385. window.location.reload();
  10386. }else {
  10387. alert(msg);
  10388. }
  10389. },
  10390. "error": function(){
  10391. alert("确认失败!");
  10392. },
  10393. "complete": function(){
  10394. layer.close(tip);
  10395. }
  10396. });
  10397. }else {
  10398. alert("请选择发票!");
  10399. }
  10400. }
  10401. }
  10402. function getfp(){
  10403. var tip = layer.load(2);
  10404. var url = "getgyfp.do";
  10405. $.ajax({
  10406. "url" : url,
  10407. "type" : "POST",
  10408. "dataType" : "json",
  10409. "async" : true,
  10410. "success" : function(data) {
  10411. if(data != null && data != ""){
  10412. $("#fpid").empty();
  10413. $("#fpid").append("_$tag_____________$tag____");
  10414. for(var i = 0; i < data.length; i++){
  10415. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  10416. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  10417. }
  10418. }
  10419. },
  10420. "error" : function(msg){
  10421. },
  10422. "complete": function(){
  10423. layer.close(tip);
  10424. }
  10425. });
  10426. }
  10427. $("#fpid").change(function(){
  10428. var tip = layer.load(2);
  10429. var url = "getgyrkxx.do";
  10430. var sum_total=0;
  10431. $.ajax({
  10432. "url" : url,
  10433. "data" : {
  10434. "fpId" : $("#fpid").val()
  10435. },
  10436. "type" : "POST",
  10437. "dataType" : "json",
  10438. "async" : true,
  10439. "success" : function(data) {
  10440. $("#dataTable").html("");
  10441. if(data != null && data != ""){
  10442. var html = "";
  10443. for(var i = 0; i < data.length; i++){
  10444. var ID = data[i].id == null ? "" : data[i].id;
  10445. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  10446. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  10447. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  10448. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  10449. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  10450. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  10451. var GOODS = data[i].goods == null ? "" : data[i].goods;
  10452. var NAME = data[i].name == null ? "" : data[i].name;
  10453. var SPEC = data[i].spec == null ? "" : data[i].spec;
  10454. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  10455. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  10456. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  10457. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  10458. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  10459. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  10460. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  10461. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  10462. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  10463. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  10464. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  10465. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  10466. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  10467. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  10468. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  10469. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  10470. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  10471. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  10472. sum_total = sum_total + DSUMVALUE
  10473. var invoice_type_cn =null;
  10474. if (invoice_type =="00" ){
  10475. invoice_type_cn="销售发票";
  10476. }else if (invoice_type == "01") {
  10477. invoice_type_cn="更正(对冲)发票";
  10478. }else if (invoice_type == "02") {
  10479. invoice_type_cn="其它类型发票";
  10480. }
  10481. html += "_$ta";
  10482. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  10483. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10484. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10485. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  10486. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10487. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10488. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10489. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  10490. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10491. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10492. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  10493. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  10494. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10495. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10496. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10497. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10498. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  10499. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10500. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  10501. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  10502. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10503. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10504. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  10505. html += "_$tag";
  10506. }
  10507. html += "_$ta";
  10508. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10509. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10510. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10511. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10512. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10513. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10514. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10515. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10516. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10517. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10518. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10519. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10520. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10521. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10522. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10523. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10524. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10525. html += "_$tag_____________$tag_合计:_$tag___$tag";
  10526. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  10527. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10528. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10529. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10530. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10531. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10532. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10533. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10534. html += "_$tag";
  10535. $("#dataTable").html(html);
  10536. }else {
  10537. $("#dataTable").html("");
  10538. }
  10539. },
  10540. "error" : function(msg){
  10541. },
  10542. "complete": function(){
  10543. layer.close(tip);
  10544. }
  10545. });
  10546. });
  10547. Date.prototype.Format = function (fmt) {
  10548. var o = {
  10549. "M+": this.getMonth() + 1, //月份
  10550. "d+": this.getDate(), //日
  10551. "h+": this.getHours(), //小时
  10552. "m+": this.getMinutes(), //分
  10553. "s+": this.getSeconds(), //秒
  10554. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  10555. "S": this.getMilliseconds() //毫秒
  10556. };
  10557. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  10558. for (var k in o)
  10559. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  10560. return fmt;
  10561. }
  10562. $("#jrjc").change(function() {
  10563. if ($("#jrjc").prop('checked') == true){
  10564. $("#departmentId").removeAttr("disabled");
  10565. }else {
  10566. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10567. }
  10568. });
  10569. ----------------------------------- SOURCE END -------------------------------------
  10570. !STACK 0
  10571. java.lang.NullPointerException
  10572. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:17.045
  10573. !MESSAGE Error while processing working copy
  10574. !STACK 1
  10575. JavaScript Model Exception: java.lang.NullPointerException
  10576. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  10577. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  10578. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  10579. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  10580. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  10581. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  10582. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  10583. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  10584. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  10585. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  10586. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  10587. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  10588. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  10589. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  10590. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  10591. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  10592. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  10593. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  10594. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  10595. Caused by: java.lang.NullPointerException
  10596. Caused by: java.lang.NullPointerException
  10597. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:32:17.045
  10598. !MESSAGE java.lang.NullPointerException
  10599. !STACK 0
  10600. java.lang.NullPointerException
  10601. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:18.087
  10602. !MESSAGE Exception occurred during problem detection:
  10603. ----------------------------------- SOURCE BEGIN -------------------------------------
  10604. (function(){WdatePicker();})();
  10605. (function(){WdatePicker();})();
  10606. (function(){Data.get();})();
  10607. (function(){Data.set();})();
  10608. (function(){search();})();
  10609. $(function(){
  10610. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10611. getfp();
  10612. });
  10613. var Data = {
  10614. "get" : function(){
  10615. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  10616. var tip = layer.load(2);
  10617. var result="";
  10618. var url = "getgyxml.do";
  10619. $.ajax({
  10620. "url" : url,
  10621. "data" : {
  10622. "start_date" : $("#dateBegin").val(),
  10623. "end_date" : $("#dateEnd").val()
  10624. },
  10625. "type" : "POST",
  10626. "dataType" : "json",
  10627. "success" : function(data) {
  10628. if(data != null && data != ""){
  10629. if ( data.status =="success"){
  10630. getfp();
  10631. alert("获取成功!");
  10632. }else {
  10633. alert(data.status);
  10634. }
  10635. }else {
  10636. alert("获取失败!");
  10637. }
  10638. },
  10639. "complete": function(){
  10640. layer.close(tip);
  10641. }
  10642. });
  10643. }else {
  10644. alert("请选择日期!");
  10645. }
  10646. },
  10647. "set" : function(){
  10648. if ( $("#fpid option:selected").text() !=""){
  10649. var tip = layer.load(2);
  10650. var gitem = $("#form1").serialize();
  10651. var jrjc;
  10652. if ($("#jrjc").prop('checked') == true){
  10653. jrjc = $("#departmentId").val();
  10654. }else {
  10655. jrjc ='N'
  10656. }
  10657. var url = "saverk.do";
  10658. $.ajax({
  10659. "url" : url,
  10660. "data" : {
  10661. "gitem" : gitem,
  10662. "jrjc" : jrjc
  10663. },
  10664. "type" : "POST",
  10665. "dataType" : "json",
  10666. "async" : true,
  10667. "success" : function(data) {
  10668. if(data.status =="success"){
  10669. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  10670. alert("入库成功!\n入库单号:"+data.rkdh+"");
  10671. }else {
  10672. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  10673. }
  10674. window.location.reload();
  10675. }else {
  10676. alert(msg);
  10677. }
  10678. },
  10679. "error": function(){
  10680. alert("确认失败!");
  10681. },
  10682. "complete": function(){
  10683. layer.close(tip);
  10684. }
  10685. });
  10686. }else {
  10687. alert("请选择发票!");
  10688. }
  10689. }
  10690. }
  10691. function getfp(){
  10692. var tip = layer.load(2);
  10693. var url = "getgyfp.do";
  10694. $.ajax({
  10695. "url" : url,
  10696. "type" : "POST",
  10697. "dataType" : "json",
  10698. "async" : true,
  10699. "success" : function(data) {
  10700. if(data != null && data != ""){
  10701. $("#fpid").empty();
  10702. $("#fpid").append("_$tag_____________$tag____");
  10703. for(var i = 0; i < data.length; i++){
  10704. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  10705. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  10706. }
  10707. }
  10708. },
  10709. "error" : function(msg){
  10710. },
  10711. "complete": function(){
  10712. layer.close(tip);
  10713. }
  10714. });
  10715. }
  10716. $("#fpid").change(function(){
  10717. var tip = layer.load(2);
  10718. var url = "getgyrkxx.do";
  10719. var sum_total=0;
  10720. $.ajax({
  10721. "url" : url,
  10722. "data" : {
  10723. "fpId" : $("#fpid").val()
  10724. },
  10725. "type" : "POST",
  10726. "dataType" : "json",
  10727. "async" : true,
  10728. "success" : function(data) {
  10729. $("#dataTable").html("");
  10730. if(data != null && data != ""){
  10731. var html = "";
  10732. for(var i = 0; i < data.length; i++){
  10733. var ID = data[i].id == null ? "" : data[i].id;
  10734. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  10735. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  10736. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  10737. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  10738. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  10739. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  10740. var GOODS = data[i].goods == null ? "" : data[i].goods;
  10741. var NAME = data[i].name == null ? "" : data[i].name;
  10742. var SPEC = data[i].spec == null ? "" : data[i].spec;
  10743. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  10744. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  10745. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  10746. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  10747. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  10748. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  10749. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  10750. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  10751. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  10752. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  10753. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  10754. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  10755. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  10756. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  10757. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  10758. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  10759. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  10760. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  10761. sum_total = sum_total + DSUMVALUE
  10762. var invoice_type_cn =null;
  10763. if (invoice_type =="00" ){
  10764. invoice_type_cn="销售发票";
  10765. }else if (invoice_type == "01") {
  10766. invoice_type_cn="更正(对冲)发票";
  10767. }else if (invoice_type == "02") {
  10768. invoice_type_cn="其它类型发票";
  10769. }
  10770. html += "_$ta";
  10771. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  10772. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10773. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10774. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  10775. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10776. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10777. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10778. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  10779. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10780. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10781. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  10782. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  10783. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10784. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10785. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10786. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10787. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  10788. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10789. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  10790. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  10791. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10792. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10793. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  10794. html += "_$tag";
  10795. }
  10796. html += "_$ta";
  10797. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10798. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10799. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10800. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10801. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10802. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10803. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10804. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10805. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10806. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10807. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10808. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10809. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10810. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10811. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10812. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10813. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10814. html += "_$tag_____________$tag_合计:_$tag___$tag";
  10815. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  10816. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10817. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10818. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10819. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10820. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10821. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10822. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10823. html += "_$tag";
  10824. $("#dataTable").html(html);
  10825. }else {
  10826. $("#dataTable").html("");
  10827. }
  10828. },
  10829. "error" : function(msg){
  10830. },
  10831. "complete": function(){
  10832. layer.close(tip);
  10833. }
  10834. });
  10835. });
  10836. Date.prototype.Format = function (fmt) {
  10837. var o = {
  10838. "M+": this.getMonth() + 1, //月份
  10839. "d+": this.getDate(), //日
  10840. "h+": this.getHours(), //小时
  10841. "m+": this.getMinutes(), //分
  10842. "s+": this.getSeconds(), //秒
  10843. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  10844. "S": this.getMilliseconds() //毫秒
  10845. };
  10846. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  10847. for (var k in o)
  10848. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  10849. return fmt;
  10850. }
  10851. $("#jrjc").change(function() {
  10852. if ($("#jrjc").prop('checked') == true){
  10853. $("#departmentId").removeAttr("disabled");
  10854. }else {
  10855. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10856. }
  10857. });
  10858. ----------------------------------- SOURCE END -------------------------------------
  10859. !STACK 0
  10860. java.lang.NullPointerException
  10861. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:19.495
  10862. !MESSAGE Exception occurred during problem detection:
  10863. ----------------------------------- SOURCE BEGIN -------------------------------------
  10864. (function(){WdatePicker();})();
  10865. (function(){WdatePicker();})();
  10866. (function(){Data.get();})();
  10867. (function(){Data.set();})();
  10868. (function(){search();})();
  10869. $(function(){
  10870. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10871. getfp();
  10872. });
  10873. var Data = {
  10874. "get" : function(){
  10875. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  10876. var tip = layer.load(2);
  10877. var result="";
  10878. var url = "getgyxml.do";
  10879. $.ajax({
  10880. "url" : url,
  10881. "data" : {
  10882. "start_date" : $("#dateBegin").val(),
  10883. "end_date" : $("#dateEnd").val()
  10884. },
  10885. "type" : "POST",
  10886. "dataType" : "json",
  10887. "success" : function(data) {
  10888. if(data != null && data != ""){
  10889. if ( data.status =="success"){
  10890. getfp();
  10891. alert("获取成功!");
  10892. }else {
  10893. alert(data.status);
  10894. }
  10895. }else {
  10896. alert("获取失败!");
  10897. }
  10898. },
  10899. "complete": function(){
  10900. layer.close(tip);
  10901. }
  10902. });
  10903. }else {
  10904. alert("请选择日期!");
  10905. }
  10906. },
  10907. "set" : function(){
  10908. if ( $("#fpid option:selected").text() !=""){
  10909. var tip = layer.load(2);
  10910. var gitem = $("#form1").serialize();
  10911. var jrjc;
  10912. if ($("#jrjc").prop('checked') == true){
  10913. jrjc = $("#departmentId").val();
  10914. }else {
  10915. jrjc ='N'
  10916. }
  10917. var url = "saverk.do";
  10918. $.ajax({
  10919. "url" : url,
  10920. "data" : {
  10921. "gitem" : gitem,
  10922. "jrjc" : jrjc
  10923. },
  10924. "type" : "POST",
  10925. "dataType" : "json",
  10926. "async" : true,
  10927. "success" : function(data) {
  10928. if(data.status =="success"){
  10929. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  10930. alert("入库成功!\n入库单号:"+data.rkdh+"");
  10931. }else {
  10932. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  10933. }
  10934. window.location.reload();
  10935. }else {
  10936. alert(msg);
  10937. }
  10938. },
  10939. "error": function(){
  10940. alert("确认失败!");
  10941. },
  10942. "complete": function(){
  10943. layer.close(tip);
  10944. }
  10945. });
  10946. }else {
  10947. alert("请选择发票!");
  10948. }
  10949. }
  10950. }
  10951. function getfp(){
  10952. var tip = layer.load(2);
  10953. var url = "getgyfp.do";
  10954. $.ajax({
  10955. "url" : url,
  10956. "type" : "POST",
  10957. "dataType" : "json",
  10958. "async" : true,
  10959. "success" : function(data) {
  10960. if(data != null && data != ""){
  10961. $("#fpid").empty();
  10962. $("#fpid").append("_$tag_____________$tag____");
  10963. for(var i = 0; i < data.length; i++){
  10964. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  10965. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  10966. }
  10967. }
  10968. },
  10969. "error" : function(msg){
  10970. },
  10971. "complete": function(){
  10972. layer.close(tip);
  10973. }
  10974. });
  10975. }
  10976. $("#fpid").change(function(){
  10977. var tip = layer.load(2);
  10978. var url = "getgyrkxx.do";
  10979. var sum_total=0;
  10980. $.ajax({
  10981. "url" : url,
  10982. "data" : {
  10983. "fpId" : $("#fpid").val()
  10984. },
  10985. "type" : "POST",
  10986. "dataType" : "json",
  10987. "async" : true,
  10988. "success" : function(data) {
  10989. $("#dataTable").html("");
  10990. if(data != null && data != ""){
  10991. var html = "";
  10992. for(var i = 0; i < data.length; i++){
  10993. var ID = data[i].id == null ? "" : data[i].id;
  10994. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  10995. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  10996. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  10997. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  10998. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  10999. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  11000. var GOODS = data[i].goods == null ? "" : data[i].goods;
  11001. var NAME = data[i].name == null ? "" : data[i].name;
  11002. var SPEC = data[i].spec == null ? "" : data[i].spec;
  11003. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  11004. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  11005. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  11006. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  11007. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  11008. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  11009. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  11010. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  11011. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  11012. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  11013. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  11014. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  11015. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  11016. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  11017. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  11018. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  11019. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  11020. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  11021. sum_total = sum_total + DSUMVALUE
  11022. var invoice_type_cn =null;
  11023. if (invoice_type =="00" ){
  11024. invoice_type_cn="销售发票";
  11025. }else if (invoice_type == "01") {
  11026. invoice_type_cn="更正(对冲)发票";
  11027. }else if (invoice_type == "02") {
  11028. invoice_type_cn="其它类型发票";
  11029. }
  11030. html += "_$ta";
  11031. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  11032. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11033. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11034. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  11035. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11036. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11037. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11038. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  11039. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11040. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11041. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  11042. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  11043. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11044. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11045. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11046. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11047. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  11048. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11049. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  11050. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  11051. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11052. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11053. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  11054. html += "_$tag";
  11055. }
  11056. html += "_$ta";
  11057. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11058. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11059. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11060. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11061. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11062. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11063. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11064. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11065. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11066. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11067. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11068. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11069. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11070. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11071. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11072. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11073. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11074. html += "_$tag_____________$tag_合计:_$tag___$tag";
  11075. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  11076. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11077. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11078. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11079. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11080. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11081. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11082. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11083. html += "_$tag";
  11084. $("#dataTable").html(html);
  11085. }else {
  11086. $("#dataTable").html("");
  11087. }
  11088. },
  11089. "error" : function(msg){
  11090. },
  11091. "complete": function(){
  11092. layer.close(tip);
  11093. }
  11094. });
  11095. });
  11096. Date.prototype.Format = function (fmt) {
  11097. var o = {
  11098. "M+": this.getMonth() + 1, //月份
  11099. "d+": this.getDate(), //日
  11100. "h+": this.getHours(), //小时
  11101. "m+": this.getMinutes(), //分
  11102. "s+": this.getSeconds(), //秒
  11103. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  11104. "S": this.getMilliseconds() //毫秒
  11105. };
  11106. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  11107. for (var k in o)
  11108. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  11109. return fmt;
  11110. }
  11111. $("#jrjc").change(function() {
  11112. if ($("#jrjc").prop('checked') == true){
  11113. $("#departmentId").removeAttr("disabled");
  11114. }else {
  11115. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11116. }
  11117. });
  11118. ----------------------------------- SOURCE END -------------------------------------
  11119. !STACK 0
  11120. java.lang.NullPointerException
  11121. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:19.496
  11122. !MESSAGE Error while processing working copy
  11123. !STACK 1
  11124. JavaScript Model Exception: java.lang.NullPointerException
  11125. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  11126. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  11127. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  11128. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  11129. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  11130. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  11131. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  11132. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  11133. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  11134. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  11135. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  11136. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  11137. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  11138. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  11139. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  11140. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  11141. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  11142. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  11143. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  11144. Caused by: java.lang.NullPointerException
  11145. Caused by: java.lang.NullPointerException
  11146. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:32:19.496
  11147. !MESSAGE java.lang.NullPointerException
  11148. !STACK 0
  11149. java.lang.NullPointerException
  11150. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:20.517
  11151. !MESSAGE Exception occurred during problem detection:
  11152. ----------------------------------- SOURCE BEGIN -------------------------------------
  11153. (function(){WdatePicker();})();
  11154. (function(){WdatePicker();})();
  11155. (function(){Data.get();})();
  11156. (function(){Data.set();})();
  11157. (function(){search();})();
  11158. $(function(){
  11159. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11160. getfp();
  11161. });
  11162. var Data = {
  11163. "get" : function(){
  11164. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  11165. var tip = layer.load(2);
  11166. var result="";
  11167. var url = "getgyxml.do";
  11168. $.ajax({
  11169. "url" : url,
  11170. "data" : {
  11171. "start_date" : $("#dateBegin").val(),
  11172. "end_date" : $("#dateEnd").val()
  11173. },
  11174. "type" : "POST",
  11175. "dataType" : "json",
  11176. "success" : function(data) {
  11177. if(data != null && data != ""){
  11178. if ( data.status =="success"){
  11179. getfp();
  11180. alert("获取成功!");
  11181. }else {
  11182. alert(data.status);
  11183. }
  11184. }else {
  11185. alert("获取失败!");
  11186. }
  11187. },
  11188. "complete": function(){
  11189. layer.close(tip);
  11190. }
  11191. });
  11192. }else {
  11193. alert("请选择日期!");
  11194. }
  11195. },
  11196. "set" : function(){
  11197. if ( $("#fpid option:selected").text() !=""){
  11198. var tip = layer.load(2);
  11199. var gitem = $("#form1").serialize();
  11200. var jrjc;
  11201. if ($("#jrjc").prop('checked') == true){
  11202. jrjc = $("#departmentId").val();
  11203. }else {
  11204. jrjc ='N'
  11205. }
  11206. var url = "saverk.do";
  11207. $.ajax({
  11208. "url" : url,
  11209. "data" : {
  11210. "gitem" : gitem,
  11211. "jrjc" : jrjc
  11212. },
  11213. "type" : "POST",
  11214. "dataType" : "json",
  11215. "async" : true,
  11216. "success" : function(data) {
  11217. if(data.status =="success"){
  11218. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  11219. alert("入库成功!\n入库单号:"+data.rkdh+"");
  11220. }else {
  11221. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  11222. }
  11223. window.location.reload();
  11224. }else {
  11225. alert(msg);
  11226. }
  11227. },
  11228. "error": function(){
  11229. alert("确认失败!");
  11230. },
  11231. "complete": function(){
  11232. layer.close(tip);
  11233. }
  11234. });
  11235. }else {
  11236. alert("请选择发票!");
  11237. }
  11238. }
  11239. }
  11240. function getfp(){
  11241. var tip = layer.load(2);
  11242. var url = "getgyfp.do";
  11243. $.ajax({
  11244. "url" : url,
  11245. "type" : "POST",
  11246. "dataType" : "json",
  11247. "async" : true,
  11248. "success" : function(data) {
  11249. if(data != null && data != ""){
  11250. $("#fpid").empty();
  11251. $("#fpid").append("_$tag_____________$tag____");
  11252. for(var i = 0; i < data.length; i++){
  11253. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  11254. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  11255. }
  11256. }
  11257. },
  11258. "error" : function(msg){
  11259. },
  11260. "complete": function(){
  11261. layer.close(tip);
  11262. }
  11263. });
  11264. }
  11265. $("#fpid").change(function(){
  11266. var tip = layer.load(2);
  11267. var url = "getgyrkxx.do";
  11268. var sum_total=0;
  11269. $.ajax({
  11270. "url" : url,
  11271. "data" : {
  11272. "fpId" : $("#fpid").val()
  11273. },
  11274. "type" : "POST",
  11275. "dataType" : "json",
  11276. "async" : true,
  11277. "success" : function(data) {
  11278. $("#dataTable").html("");
  11279. if(data != null && data != ""){
  11280. var html = "";
  11281. for(var i = 0; i < data.length; i++){
  11282. var ID = data[i].id == null ? "" : data[i].id;
  11283. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  11284. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  11285. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  11286. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  11287. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  11288. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  11289. var GOODS = data[i].goods == null ? "" : data[i].goods;
  11290. var NAME = data[i].name == null ? "" : data[i].name;
  11291. var SPEC = data[i].spec == null ? "" : data[i].spec;
  11292. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  11293. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  11294. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  11295. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  11296. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  11297. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  11298. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  11299. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  11300. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  11301. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  11302. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  11303. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  11304. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  11305. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  11306. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  11307. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  11308. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  11309. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  11310. sum_total = sum_total + DSUMVALUE
  11311. var invoice_type_cn =null;
  11312. if (invoice_type =="00" ){
  11313. invoice_type_cn="销售发票";
  11314. }else if (invoice_type == "01") {
  11315. invoice_type_cn="更正(对冲)发票";
  11316. }else if (invoice_type == "02") {
  11317. invoice_type_cn="其它类型发票";
  11318. }
  11319. html += "_$ta";
  11320. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  11321. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11322. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11323. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  11324. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11325. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11326. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11327. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  11328. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11329. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11330. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  11331. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  11332. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11333. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11334. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11335. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11336. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  11337. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11338. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  11339. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  11340. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11341. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11342. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  11343. html += "_$tag";
  11344. }
  11345. html += "_$ta";
  11346. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11347. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11348. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11349. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11350. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11351. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11352. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11353. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11354. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11355. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11356. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11357. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11358. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11359. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11360. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11361. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11362. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11363. html += "_$tag_____________$tag_合计:_$tag___$tag";
  11364. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  11365. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11366. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11367. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11368. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11369. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11370. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11371. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11372. html += "_$tag";
  11373. $("#dataTable").html(html);
  11374. }else {
  11375. $("#dataTable").html("");
  11376. }
  11377. },
  11378. "error" : function(msg){
  11379. },
  11380. "complete": function(){
  11381. layer.close(tip);
  11382. }
  11383. });
  11384. });
  11385. Date.prototype.Format = function (fmt) {
  11386. var o = {
  11387. "M+": this.getMonth() + 1, //月份
  11388. "d+": this.getDate(), //日
  11389. "h+": this.getHours(), //小时
  11390. "m+": this.getMinutes(), //分
  11391. "s+": this.getSeconds(), //秒
  11392. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  11393. "S": this.getMilliseconds() //毫秒
  11394. };
  11395. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  11396. for (var k in o)
  11397. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  11398. return fmt;
  11399. }
  11400. $("#jrjc").change(function() {
  11401. if ($("#jrjc").prop('checked') == true){
  11402. $("#departmentId").removeAttr("disabled");
  11403. }else {
  11404. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11405. }
  11406. });
  11407. ----------------------------------- SOURCE END -------------------------------------
  11408. !STACK 0
  11409. java.lang.NullPointerException
  11410. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:21.281
  11411. !MESSAGE Exception occurred during problem detection:
  11412. ----------------------------------- SOURCE BEGIN -------------------------------------
  11413. (function(){WdatePicker();})();
  11414. (function(){WdatePicker();})();
  11415. (function(){Data.get();})();
  11416. (function(){Data.set();})();
  11417. (function(){search();})();
  11418. $(function(){
  11419. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11420. getfp();
  11421. });
  11422. var Data = {
  11423. "get" : function(){
  11424. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  11425. var tip = layer.load(2);
  11426. var result="";
  11427. var url = "getgyxml.do";
  11428. $.ajax({
  11429. "url" : url,
  11430. "data" : {
  11431. "start_date" : $("#dateBegin").val(),
  11432. "end_date" : $("#dateEnd").val()
  11433. },
  11434. "type" : "POST",
  11435. "dataType" : "json",
  11436. "success" : function(data) {
  11437. if(data != null && data != ""){
  11438. if ( data.status =="success"){
  11439. getfp();
  11440. alert("获取成功!");
  11441. }else {
  11442. alert(data.status);
  11443. }
  11444. }else {
  11445. alert("获取失败!");
  11446. }
  11447. },
  11448. "complete": function(){
  11449. layer.close(tip);
  11450. }
  11451. });
  11452. }else {
  11453. alert("请选择日期!");
  11454. }
  11455. },
  11456. "set" : function(){
  11457. if ( $("#fpid option:selected").text() !=""){
  11458. var tip = layer.load(2);
  11459. var gitem = $("#form1").serialize();
  11460. var jrjc;
  11461. if ($("#jrjc").prop('checked') == true){
  11462. jrjc = $("#departmentId").val();
  11463. }else {
  11464. jrjc ='N'
  11465. }
  11466. var url = "saverk.do";
  11467. $.ajax({
  11468. "url" : url,
  11469. "data" : {
  11470. "gitem" : gitem,
  11471. "jrjc" : jrjc
  11472. },
  11473. "type" : "POST",
  11474. "dataType" : "json",
  11475. "async" : true,
  11476. "success" : function(data) {
  11477. if(data.status =="success"){
  11478. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  11479. alert("入库成功!\n入库单号:"+data.rkdh+"");
  11480. }else {
  11481. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  11482. }
  11483. window.location.reload();
  11484. }else {
  11485. alert(msg);
  11486. }
  11487. },
  11488. "error": function(){
  11489. alert("确认失败!");
  11490. },
  11491. "complete": function(){
  11492. layer.close(tip);
  11493. }
  11494. });
  11495. }else {
  11496. alert("请选择发票!");
  11497. }
  11498. }
  11499. }
  11500. function getfp(){
  11501. var tip = layer.load(2);
  11502. var url = "getgyfp.do";
  11503. $.ajax({
  11504. "url" : url,
  11505. "type" : "POST",
  11506. "dataType" : "json",
  11507. "async" : true,
  11508. "success" : function(data) {
  11509. if(data != null && data != ""){
  11510. $("#fpid").empty();
  11511. $("#fpid").append("_$tag_____________$tag____");
  11512. for(var i = 0; i < data.length; i++){
  11513. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  11514. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  11515. }
  11516. }
  11517. },
  11518. "error" : function(msg){
  11519. },
  11520. "complete": function(){
  11521. layer.close(tip);
  11522. }
  11523. });
  11524. }
  11525. $("#fpid").change(function(){
  11526. var tip = layer.load(2);
  11527. var url = "getgyrkxx.do";
  11528. var sum_total=0;
  11529. $.ajax({
  11530. "url" : url,
  11531. "data" : {
  11532. "fpId" : $("#fpid").val()
  11533. },
  11534. "type" : "POST",
  11535. "dataType" : "json",
  11536. "async" : true,
  11537. "success" : function(data) {
  11538. $("#dataTable").html("");
  11539. if(data != null && data != ""){
  11540. var html = "";
  11541. for(var i = 0; i < data.length; i++){
  11542. var ID = data[i].id == null ? "" : data[i].id;
  11543. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  11544. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  11545. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  11546. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  11547. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  11548. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  11549. var GOODS = data[i].goods == null ? "" : data[i].goods;
  11550. var NAME = data[i].name == null ? "" : data[i].name;
  11551. var SPEC = data[i].spec == null ? "" : data[i].spec;
  11552. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  11553. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  11554. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  11555. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  11556. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  11557. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  11558. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  11559. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  11560. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  11561. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  11562. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  11563. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  11564. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  11565. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  11566. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  11567. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  11568. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  11569. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  11570. sum_total = sum_total + DSUMVALUE
  11571. var invoice_type_cn =null;
  11572. if (invoice_type =="00" ){
  11573. invoice_type_cn="销售发票";
  11574. }else if (invoice_type == "01") {
  11575. invoice_type_cn="更正(对冲)发票";
  11576. }else if (invoice_type == "02") {
  11577. invoice_type_cn="其它类型发票";
  11578. }
  11579. html += "_$ta";
  11580. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  11581. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11582. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11583. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  11584. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11585. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11586. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11587. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  11588. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11589. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11590. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  11591. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  11592. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11593. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11594. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11595. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11596. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  11597. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11598. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  11599. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  11600. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11601. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11602. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  11603. html += "_$tag";
  11604. }
  11605. html += "_$ta";
  11606. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11607. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11608. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11609. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11610. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11611. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11612. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11613. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11614. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11615. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11616. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11617. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11618. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11619. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11620. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11621. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11622. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11623. html += "_$tag_____________$tag_合计:_$tag___$tag";
  11624. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  11625. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11626. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11627. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11628. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11629. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11630. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11631. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11632. html += "_$tag";
  11633. $("#dataTable").html(html);
  11634. }else {
  11635. $("#dataTable").html("");
  11636. }
  11637. },
  11638. "error" : function(msg){
  11639. },
  11640. "complete": function(){
  11641. layer.close(tip);
  11642. }
  11643. });
  11644. });
  11645. Date.prototype.Format = function (fmt) {
  11646. var o = {
  11647. "M+": this.getMonth() + 1, //月份
  11648. "d+": this.getDate(), //日
  11649. "h+": this.getHours(), //小时
  11650. "m+": this.getMinutes(), //分
  11651. "s+": this.getSeconds(), //秒
  11652. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  11653. "S": this.getMilliseconds() //毫秒
  11654. };
  11655. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  11656. for (var k in o)
  11657. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  11658. return fmt;
  11659. }
  11660. $("#jrjc").change(function() {
  11661. if ($("#jrjc").prop('checked') == true){
  11662. $("#departmentId").removeAttr("disabled");
  11663. }else {
  11664. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11665. }
  11666. });
  11667. ----------------------------------- SOURCE END -------------------------------------
  11668. !STACK 0
  11669. java.lang.NullPointerException
  11670. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:21.281
  11671. !MESSAGE Error while processing working copy
  11672. !STACK 1
  11673. JavaScript Model Exception: java.lang.NullPointerException
  11674. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  11675. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  11676. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  11677. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  11678. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  11679. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  11680. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  11681. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  11682. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  11683. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  11684. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  11685. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  11686. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  11687. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  11688. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  11689. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  11690. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  11691. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  11692. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  11693. Caused by: java.lang.NullPointerException
  11694. Caused by: java.lang.NullPointerException
  11695. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:32:21.281
  11696. !MESSAGE java.lang.NullPointerException
  11697. !STACK 0
  11698. java.lang.NullPointerException
  11699. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:22.327
  11700. !MESSAGE Exception occurred during problem detection:
  11701. ----------------------------------- SOURCE BEGIN -------------------------------------
  11702. (function(){WdatePicker();})();
  11703. (function(){WdatePicker();})();
  11704. (function(){Data.get();})();
  11705. (function(){Data.set();})();
  11706. (function(){search();})();
  11707. $(function(){
  11708. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11709. getfp();
  11710. });
  11711. var Data = {
  11712. "get" : function(){
  11713. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  11714. var tip = layer.load(2);
  11715. var result="";
  11716. var url = "getgyxml.do";
  11717. $.ajax({
  11718. "url" : url,
  11719. "data" : {
  11720. "start_date" : $("#dateBegin").val(),
  11721. "end_date" : $("#dateEnd").val()
  11722. },
  11723. "type" : "POST",
  11724. "dataType" : "json",
  11725. "success" : function(data) {
  11726. if(data != null && data != ""){
  11727. if ( data.status =="success"){
  11728. getfp();
  11729. alert("获取成功!");
  11730. }else {
  11731. alert(data.status);
  11732. }
  11733. }else {
  11734. alert("获取失败!");
  11735. }
  11736. },
  11737. "complete": function(){
  11738. layer.close(tip);
  11739. }
  11740. });
  11741. }else {
  11742. alert("请选择日期!");
  11743. }
  11744. },
  11745. "set" : function(){
  11746. if ( $("#fpid option:selected").text() !=""){
  11747. var tip = layer.load(2);
  11748. var gitem = $("#form1").serialize();
  11749. var jrjc;
  11750. if ($("#jrjc").prop('checked') == true){
  11751. jrjc = $("#departmentId").val();
  11752. }else {
  11753. jrjc ='N'
  11754. }
  11755. var url = "saverk.do";
  11756. $.ajax({
  11757. "url" : url,
  11758. "data" : {
  11759. "gitem" : gitem,
  11760. "jrjc" : jrjc
  11761. },
  11762. "type" : "POST",
  11763. "dataType" : "json",
  11764. "async" : true,
  11765. "success" : function(data) {
  11766. if(data.status =="success"){
  11767. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  11768. alert("入库成功!\n入库单号:"+data.rkdh+"");
  11769. }else {
  11770. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  11771. }
  11772. window.location.reload();
  11773. }else {
  11774. alert(msg);
  11775. }
  11776. },
  11777. "error": function(){
  11778. alert("确认失败!");
  11779. },
  11780. "complete": function(){
  11781. layer.close(tip);
  11782. }
  11783. });
  11784. }else {
  11785. alert("请选择发票!");
  11786. }
  11787. }
  11788. }
  11789. function getfp(){
  11790. var tip = layer.load(2);
  11791. var url = "getgyfp.do";
  11792. $.ajax({
  11793. "url" : url,
  11794. "type" : "POST",
  11795. "dataType" : "json",
  11796. "async" : true,
  11797. "success" : function(data) {
  11798. if(data != null && data != ""){
  11799. $("#fpid").empty();
  11800. $("#fpid").append("_$tag_____________$tag____");
  11801. for(var i = 0; i < data.length; i++){
  11802. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  11803. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  11804. }
  11805. }
  11806. },
  11807. "error" : function(msg){
  11808. },
  11809. "complete": function(){
  11810. layer.close(tip);
  11811. }
  11812. });
  11813. }
  11814. $("#fpid").change(function(){
  11815. var tip = layer.load(2);
  11816. var url = "getgyrkxx.do";
  11817. var sum_total=0;
  11818. $.ajax({
  11819. "url" : url,
  11820. "data" : {
  11821. "fpId" : $("#fpid").val()
  11822. },
  11823. "type" : "POST",
  11824. "dataType" : "json",
  11825. "async" : true,
  11826. "success" : function(data) {
  11827. $("#dataTable").html("");
  11828. if(data != null && data != ""){
  11829. var html = "";
  11830. for(var i = 0; i < data.length; i++){
  11831. var ID = data[i].id == null ? "" : data[i].id;
  11832. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  11833. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  11834. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  11835. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  11836. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  11837. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  11838. var GOODS = data[i].goods == null ? "" : data[i].goods;
  11839. var NAME = data[i].name == null ? "" : data[i].name;
  11840. var SPEC = data[i].spec == null ? "" : data[i].spec;
  11841. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  11842. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  11843. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  11844. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  11845. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  11846. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  11847. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  11848. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  11849. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  11850. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  11851. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  11852. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  11853. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  11854. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  11855. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  11856. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  11857. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  11858. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  11859. sum_total = sum_total + DSUMVALUE
  11860. var invoice_type_cn =null;
  11861. if (invoice_type =="00" ){
  11862. invoice_type_cn="销售发票";
  11863. }else if (invoice_type == "01") {
  11864. invoice_type_cn="更正(对冲)发票";
  11865. }else if (invoice_type == "02") {
  11866. invoice_type_cn="其它类型发票";
  11867. }
  11868. html += "_$ta";
  11869. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  11870. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11871. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11872. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  11873. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11874. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11875. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11876. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  11877. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11878. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11879. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  11880. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  11881. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11882. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11883. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11884. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11885. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  11886. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11887. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  11888. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  11889. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11890. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11891. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  11892. html += "_$tag";
  11893. }
  11894. html += "_$ta";
  11895. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11896. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11897. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11898. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11899. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11900. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11901. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11902. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11903. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11904. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11905. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11906. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11907. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11908. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11909. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11910. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11911. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11912. html += "_$tag_____________$tag_合计:_$tag___$tag";
  11913. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  11914. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11915. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11916. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11917. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11918. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11919. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11920. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11921. html += "_$tag";
  11922. $("#dataTable").html(html);
  11923. }else {
  11924. $("#dataTable").html("");
  11925. }
  11926. },
  11927. "error" : function(msg){
  11928. },
  11929. "complete": function(){
  11930. layer.close(tip);
  11931. }
  11932. });
  11933. });
  11934. Date.prototype.Format = function (fmt) {
  11935. var o = {
  11936. "M+": this.getMonth() + 1, //月份
  11937. "d+": this.getDate(), //日
  11938. "h+": this.getHours(), //小时
  11939. "m+": this.getMinutes(), //分
  11940. "s+": this.getSeconds(), //秒
  11941. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  11942. "S": this.getMilliseconds() //毫秒
  11943. };
  11944. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  11945. for (var k in o)
  11946. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  11947. return fmt;
  11948. }
  11949. $("#jrjc").change(function() {
  11950. if ($("#jrjc").prop('checked') == true){
  11951. $("#departmentId").removeAttr("disabled");
  11952. }else {
  11953. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11954. }
  11955. });
  11956. ----------------------------------- SOURCE END -------------------------------------
  11957. !STACK 0
  11958. java.lang.NullPointerException
  11959. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:22.985
  11960. !MESSAGE Exception occurred during problem detection:
  11961. ----------------------------------- SOURCE BEGIN -------------------------------------
  11962. (function(){WdatePicker();})();
  11963. (function(){WdatePicker();})();
  11964. (function(){Data.get();})();
  11965. (function(){Data.set();})();
  11966. (function(){search();})();
  11967. $(function(){
  11968. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11969. getfp();
  11970. });
  11971. var Data = {
  11972. "get" : function(){
  11973. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  11974. var tip = layer.load(2);
  11975. var result="";
  11976. var url = "getgyxml.do";
  11977. $.ajax({
  11978. "url" : url,
  11979. "data" : {
  11980. "start_date" : $("#dateBegin").val(),
  11981. "end_date" : $("#dateEnd").val()
  11982. },
  11983. "type" : "POST",
  11984. "dataType" : "json",
  11985. "success" : function(data) {
  11986. if(data != null && data != ""){
  11987. if ( data.status =="success"){
  11988. getfp();
  11989. alert("获取成功!");
  11990. }else {
  11991. alert(data.status);
  11992. }
  11993. }else {
  11994. alert("获取失败!");
  11995. }
  11996. },
  11997. "complete": function(){
  11998. layer.close(tip);
  11999. }
  12000. });
  12001. }else {
  12002. alert("请选择日期!");
  12003. }
  12004. },
  12005. "set" : function(){
  12006. if ( $("#fpid option:selected").text() !=""){
  12007. var tip = layer.load(2);
  12008. var gitem = $("#form1").serialize();
  12009. var jrjc;
  12010. if ($("#jrjc").prop('checked') == true){
  12011. jrjc = $("#departmentId").val();
  12012. }else {
  12013. jrjc ='N'
  12014. }
  12015. var url = "saverk.do";
  12016. $.ajax({
  12017. "url" : url,
  12018. "data" : {
  12019. "gitem" : gitem,
  12020. "jrjc" : jrjc
  12021. },
  12022. "type" : "POST",
  12023. "dataType" : "json",
  12024. "async" : true,
  12025. "success" : function(data) {
  12026. if(data.status =="success"){
  12027. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  12028. alert("入库成功!\n入库单号:"+data.rkdh+"");
  12029. }else {
  12030. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  12031. }
  12032. window.location.reload();
  12033. }else {
  12034. alert(msg);
  12035. }
  12036. },
  12037. "error": function(){
  12038. alert("确认失败!");
  12039. },
  12040. "complete": function(){
  12041. layer.close(tip);
  12042. }
  12043. });
  12044. }else {
  12045. alert("请选择发票!");
  12046. }
  12047. }
  12048. }
  12049. function getfp(){
  12050. var tip = layer.load(2);
  12051. var url = "getgyfp.do";
  12052. $.ajax({
  12053. "url" : url,
  12054. "type" : "POST",
  12055. "dataType" : "json",
  12056. "async" : true,
  12057. "success" : function(data) {
  12058. if(data != null && data != ""){
  12059. $("#fpid").empty();
  12060. $("#fpid").append("_$tag_____________$tag____");
  12061. for(var i = 0; i < data.length; i++){
  12062. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  12063. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  12064. }
  12065. }
  12066. },
  12067. "error" : function(msg){
  12068. },
  12069. "complete": function(){
  12070. layer.close(tip);
  12071. }
  12072. });
  12073. }
  12074. $("#fpid").change(function(){
  12075. var tip = layer.load(2);
  12076. var url = "getgyrkxx.do";
  12077. var sum_total=0;
  12078. $.ajax({
  12079. "url" : url,
  12080. "data" : {
  12081. "fpId" : $("#fpid").val()
  12082. },
  12083. "type" : "POST",
  12084. "dataType" : "json",
  12085. "async" : true,
  12086. "success" : function(data) {
  12087. $("#dataTable").html("");
  12088. if(data != null && data != ""){
  12089. var html = "";
  12090. for(var i = 0; i < data.length; i++){
  12091. var ID = data[i].id == null ? "" : data[i].id;
  12092. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  12093. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  12094. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  12095. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  12096. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  12097. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  12098. var GOODS = data[i].goods == null ? "" : data[i].goods;
  12099. var NAME = data[i].name == null ? "" : data[i].name;
  12100. var SPEC = data[i].spec == null ? "" : data[i].spec;
  12101. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  12102. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  12103. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  12104. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  12105. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  12106. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  12107. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  12108. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  12109. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  12110. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  12111. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  12112. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  12113. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  12114. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  12115. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  12116. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  12117. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  12118. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  12119. sum_total = sum_total + DSUMVALUE
  12120. var invoice_type_cn =null;
  12121. if (invoice_type =="00" ){
  12122. invoice_type_cn="销售发票";
  12123. }else if (invoice_type == "01") {
  12124. invoice_type_cn="更正(对冲)发票";
  12125. }else if (invoice_type == "02") {
  12126. invoice_type_cn="其它类型发票";
  12127. }
  12128. html += "_$ta";
  12129. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  12130. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12131. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12132. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  12133. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12134. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12135. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12136. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  12137. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12138. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12139. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  12140. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  12141. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12142. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12143. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12144. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12145. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  12146. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12147. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  12148. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  12149. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12150. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12151. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  12152. html += "_$tag";
  12153. }
  12154. html += "_$ta";
  12155. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12156. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12157. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12158. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12159. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12160. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12161. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12162. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12163. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12164. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12165. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12166. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12167. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12168. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12169. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12170. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12171. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12172. html += "_$tag_____________$tag_合计:_$tag___$tag";
  12173. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  12174. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12175. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12176. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12177. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12178. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12179. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12180. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12181. html += "_$tag";
  12182. $("#dataTable").html(html);
  12183. }else {
  12184. $("#dataTable").html("");
  12185. }
  12186. },
  12187. "error" : function(msg){
  12188. },
  12189. "complete": function(){
  12190. layer.close(tip);
  12191. }
  12192. });
  12193. });
  12194. Date.prototype.Format = function (fmt) {
  12195. var o = {
  12196. "M+": this.getMonth() + 1, //月份
  12197. "d+": this.getDate(), //日
  12198. "h+": this.getHours(), //小时
  12199. "m+": this.getMinutes(), //分
  12200. "s+": this.getSeconds(), //秒
  12201. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  12202. "S": this.getMilliseconds() //毫秒
  12203. };
  12204. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  12205. for (var k in o)
  12206. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  12207. return fmt;
  12208. }
  12209. $("#jrjc").change(function() {
  12210. if ($("#jrjc").prop('checked') == true){
  12211. $("#departmentId").removeAttr("disabled");
  12212. }else {
  12213. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12214. }
  12215. });
  12216. ----------------------------------- SOURCE END -------------------------------------
  12217. !STACK 0
  12218. java.lang.NullPointerException
  12219. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:22.986
  12220. !MESSAGE Error while processing working copy
  12221. !STACK 1
  12222. JavaScript Model Exception: java.lang.NullPointerException
  12223. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  12224. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  12225. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  12226. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  12227. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  12228. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  12229. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  12230. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  12231. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  12232. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  12233. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  12234. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  12235. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  12236. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  12237. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  12238. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  12239. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  12240. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  12241. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  12242. Caused by: java.lang.NullPointerException
  12243. Caused by: java.lang.NullPointerException
  12244. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:32:22.986
  12245. !MESSAGE java.lang.NullPointerException
  12246. !STACK 0
  12247. java.lang.NullPointerException
  12248. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:24.010
  12249. !MESSAGE Exception occurred during problem detection:
  12250. ----------------------------------- SOURCE BEGIN -------------------------------------
  12251. (function(){WdatePicker();})();
  12252. (function(){WdatePicker();})();
  12253. (function(){Data.get();})();
  12254. (function(){Data.set();})();
  12255. (function(){search();})();
  12256. $(function(){
  12257. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12258. getfp();
  12259. });
  12260. var Data = {
  12261. "get" : function(){
  12262. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  12263. var tip = layer.load(2);
  12264. var result="";
  12265. var url = "getgyxml.do";
  12266. $.ajax({
  12267. "url" : url,
  12268. "data" : {
  12269. "start_date" : $("#dateBegin").val(),
  12270. "end_date" : $("#dateEnd").val()
  12271. },
  12272. "type" : "POST",
  12273. "dataType" : "json",
  12274. "success" : function(data) {
  12275. if(data != null && data != ""){
  12276. if ( data.status =="success"){
  12277. getfp();
  12278. alert("获取成功!");
  12279. }else {
  12280. alert(data.status);
  12281. }
  12282. }else {
  12283. alert("获取失败!");
  12284. }
  12285. },
  12286. "complete": function(){
  12287. layer.close(tip);
  12288. }
  12289. });
  12290. }else {
  12291. alert("请选择日期!");
  12292. }
  12293. },
  12294. "set" : function(){
  12295. if ( $("#fpid option:selected").text() !=""){
  12296. var tip = layer.load(2);
  12297. var gitem = $("#form1").serialize();
  12298. var jrjc;
  12299. if ($("#jrjc").prop('checked') == true){
  12300. jrjc = $("#departmentId").val();
  12301. }else {
  12302. jrjc ='N'
  12303. }
  12304. var url = "saverk.do";
  12305. $.ajax({
  12306. "url" : url,
  12307. "data" : {
  12308. "gitem" : gitem,
  12309. "jrjc" : jrjc
  12310. },
  12311. "type" : "POST",
  12312. "dataType" : "json",
  12313. "async" : true,
  12314. "success" : function(data) {
  12315. if(data.status =="success"){
  12316. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  12317. alert("入库成功!\n入库单号:"+data.rkdh+"");
  12318. }else {
  12319. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  12320. }
  12321. window.location.reload();
  12322. }else {
  12323. alert(msg);
  12324. }
  12325. },
  12326. "error": function(){
  12327. alert("确认失败!");
  12328. },
  12329. "complete": function(){
  12330. layer.close(tip);
  12331. }
  12332. });
  12333. }else {
  12334. alert("请选择发票!");
  12335. }
  12336. }
  12337. }
  12338. function getfp(){
  12339. var tip = layer.load(2);
  12340. var url = "getgyfp.do";
  12341. $.ajax({
  12342. "url" : url,
  12343. "type" : "POST",
  12344. "dataType" : "json",
  12345. "async" : true,
  12346. "success" : function(data) {
  12347. if(data != null && data != ""){
  12348. $("#fpid").empty();
  12349. $("#fpid").append("_$tag_____________$tag____");
  12350. for(var i = 0; i < data.length; i++){
  12351. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  12352. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  12353. }
  12354. }
  12355. },
  12356. "error" : function(msg){
  12357. },
  12358. "complete": function(){
  12359. layer.close(tip);
  12360. }
  12361. });
  12362. }
  12363. $("#fpid").change(function(){
  12364. var tip = layer.load(2);
  12365. var url = "getgyrkxx.do";
  12366. var sum_total=0;
  12367. $.ajax({
  12368. "url" : url,
  12369. "data" : {
  12370. "fpId" : $("#fpid").val()
  12371. },
  12372. "type" : "POST",
  12373. "dataType" : "json",
  12374. "async" : true,
  12375. "success" : function(data) {
  12376. $("#dataTable").html("");
  12377. if(data != null && data != ""){
  12378. var html = "";
  12379. for(var i = 0; i < data.length; i++){
  12380. var ID = data[i].id == null ? "" : data[i].id;
  12381. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  12382. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  12383. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  12384. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  12385. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  12386. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  12387. var GOODS = data[i].goods == null ? "" : data[i].goods;
  12388. var NAME = data[i].name == null ? "" : data[i].name;
  12389. var SPEC = data[i].spec == null ? "" : data[i].spec;
  12390. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  12391. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  12392. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  12393. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  12394. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  12395. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  12396. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  12397. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  12398. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  12399. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  12400. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  12401. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  12402. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  12403. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  12404. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  12405. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  12406. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  12407. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  12408. sum_total = sum_total + DSUMVALUE
  12409. var invoice_type_cn =null;
  12410. if (invoice_type =="00" ){
  12411. invoice_type_cn="销售发票";
  12412. }else if (invoice_type == "01") {
  12413. invoice_type_cn="更正(对冲)发票";
  12414. }else if (invoice_type == "02") {
  12415. invoice_type_cn="其它类型发票";
  12416. }
  12417. html += "_$ta";
  12418. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  12419. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12420. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12421. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  12422. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12423. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12424. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12425. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  12426. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12427. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12428. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  12429. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  12430. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12431. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12432. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12433. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12434. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  12435. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12436. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  12437. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  12438. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12439. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12440. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  12441. html += "_$tag";
  12442. }
  12443. html += "_$ta";
  12444. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12445. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12446. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12447. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12448. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12449. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12450. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12451. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12452. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12453. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12454. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12455. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12456. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12457. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12458. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12459. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12460. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12461. html += "_$tag_____________$tag_合计:_$tag___$tag";
  12462. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  12463. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12464. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12465. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12466. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12467. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12468. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12469. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12470. html += "_$tag";
  12471. $("#dataTable").html(html);
  12472. }else {
  12473. $("#dataTable").html("");
  12474. }
  12475. },
  12476. "error" : function(msg){
  12477. },
  12478. "complete": function(){
  12479. layer.close(tip);
  12480. }
  12481. });
  12482. });
  12483. Date.prototype.Format = function (fmt) {
  12484. var o = {
  12485. "M+": this.getMonth() + 1, //月份
  12486. "d+": this.getDate(), //日
  12487. "h+": this.getHours(), //小时
  12488. "m+": this.getMinutes(), //分
  12489. "s+": this.getSeconds(), //秒
  12490. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  12491. "S": this.getMilliseconds() //毫秒
  12492. };
  12493. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  12494. for (var k in o)
  12495. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  12496. return fmt;
  12497. }
  12498. $("#jrjc").change(function() {
  12499. if ($("#jrjc").prop('checked') == true){
  12500. $("#departmentId").removeAttr("disabled");
  12501. }else {
  12502. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12503. }
  12504. });
  12505. ----------------------------------- SOURCE END -------------------------------------
  12506. !STACK 0
  12507. java.lang.NullPointerException
  12508. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:26.388
  12509. !MESSAGE Exception occurred during problem detection:
  12510. ----------------------------------- SOURCE BEGIN -------------------------------------
  12511. (function(){WdatePicker();})();
  12512. (function(){WdatePicker();})();
  12513. (function(){Data.get();})();
  12514. (function(){Data.set();})();
  12515. (function(){search();})();
  12516. $(function(){
  12517. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12518. getfp();
  12519. });
  12520. var Data = {
  12521. "get" : function(){
  12522. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  12523. var tip = layer.load(2);
  12524. var result="";
  12525. var url = "getgyxml.do";
  12526. $.ajax({
  12527. "url" : url,
  12528. "data" : {
  12529. "start_date" : $("#dateBegin").val(),
  12530. "end_date" : $("#dateEnd").val()
  12531. },
  12532. "type" : "POST",
  12533. "dataType" : "json",
  12534. "success" : function(data) {
  12535. if(data != null && data != ""){
  12536. if ( data.status =="success"){
  12537. getfp();
  12538. alert("获取成功!");
  12539. }else {
  12540. alert(data.status);
  12541. }
  12542. }else {
  12543. alert("获取失败!");
  12544. }
  12545. },
  12546. "complete": function(){
  12547. layer.close(tip);
  12548. }
  12549. });
  12550. }else {
  12551. alert("请选择日期!");
  12552. }
  12553. },
  12554. "set" : function(){
  12555. if ( $("#fpid option:selected").text() !=""){
  12556. var tip = layer.load(2);
  12557. var gitem = $("#form1").serialize();
  12558. var jrjc;
  12559. if ($("#jrjc").prop('checked') == true){
  12560. jrjc = $("#departmentId").val();
  12561. }else {
  12562. jrjc ='N'
  12563. }
  12564. var url = "saverk.do";
  12565. $.ajax({
  12566. "url" : url,
  12567. "data" : {
  12568. "gitem" : gitem,
  12569. "jrjc" : jrjc
  12570. },
  12571. "type" : "POST",
  12572. "dataType" : "json",
  12573. "async" : true,
  12574. "success" : function(data) {
  12575. if(data.status =="success"){
  12576. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  12577. alert("入库成功!\n入库单号:"+data.rkdh+"");
  12578. }else {
  12579. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  12580. }
  12581. window.location.reload();
  12582. }else {
  12583. alert(msg);
  12584. }
  12585. },
  12586. "error": function(){
  12587. alert("确认失败!");
  12588. },
  12589. "complete": function(){
  12590. layer.close(tip);
  12591. }
  12592. });
  12593. }else {
  12594. alert("请选择发票!");
  12595. }
  12596. }
  12597. }
  12598. function getfp(){
  12599. var tip = layer.load(2);
  12600. var url = "getgyfp.do";
  12601. $.ajax({
  12602. "url" : url,
  12603. "type" : "POST",
  12604. "dataType" : "json",
  12605. "async" : true,
  12606. "success" : function(data) {
  12607. if(data != null && data != ""){
  12608. $("#fpid").empty();
  12609. $("#fpid").append("_$tag_____________$tag____");
  12610. for(var i = 0; i < data.length; i++){
  12611. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  12612. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  12613. }
  12614. }
  12615. },
  12616. "error" : function(msg){
  12617. },
  12618. "complete": function(){
  12619. layer.close(tip);
  12620. }
  12621. });
  12622. }
  12623. $("#fpid").change(function(){
  12624. var tip = layer.load(2);
  12625. var url = "getgyrkxx.do";
  12626. var sum_total=0;
  12627. $.ajax({
  12628. "url" : url,
  12629. "data" : {
  12630. "fpId" : $("#fpid").val()
  12631. },
  12632. "type" : "POST",
  12633. "dataType" : "json",
  12634. "async" : true,
  12635. "success" : function(data) {
  12636. $("#dataTable").html("");
  12637. if(data != null && data != ""){
  12638. var html = "";
  12639. for(var i = 0; i < data.length; i++){
  12640. var ID = data[i].id == null ? "" : data[i].id;
  12641. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  12642. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  12643. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  12644. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  12645. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  12646. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  12647. var GOODS = data[i].goods == null ? "" : data[i].goods;
  12648. var NAME = data[i].name == null ? "" : data[i].name;
  12649. var SPEC = data[i].spec == null ? "" : data[i].spec;
  12650. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  12651. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  12652. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  12653. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  12654. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  12655. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  12656. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  12657. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  12658. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  12659. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  12660. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  12661. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  12662. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  12663. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  12664. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  12665. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  12666. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  12667. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  12668. sum_total = sum_total + DSUMVALUE
  12669. var invoice_type_cn =null;
  12670. if (invoice_type =="00" ){
  12671. invoice_type_cn="销售发票";
  12672. }else if (invoice_type == "01") {
  12673. invoice_type_cn="更正(对冲)发票";
  12674. }else if (invoice_type == "02") {
  12675. invoice_type_cn="其它类型发票";
  12676. }
  12677. html += "_$ta";
  12678. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  12679. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12680. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12681. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  12682. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12683. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12684. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12685. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  12686. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12687. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12688. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  12689. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  12690. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12691. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12692. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12693. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12694. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  12695. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12696. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  12697. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  12698. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12699. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12700. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  12701. html += "_$tag";
  12702. }
  12703. html += "_$ta";
  12704. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12705. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12706. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12707. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12708. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12709. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12710. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12711. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12712. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12713. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12714. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12715. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12716. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12717. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12718. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12719. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12720. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12721. html += "_$tag_____________$tag_合计:_$tag___$tag";
  12722. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  12723. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12724. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12725. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12726. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12727. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12728. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12729. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12730. html += "_$tag";
  12731. $("#dataTable").html(html);
  12732. }else {
  12733. $("#dataTable").html("");
  12734. }
  12735. },
  12736. "error" : function(msg){
  12737. },
  12738. "complete": function(){
  12739. layer.close(tip);
  12740. }
  12741. });
  12742. });
  12743. Date.prototype.Format = function (fmt) {
  12744. var o = {
  12745. "M+": this.getMonth() + 1, //月份
  12746. "d+": this.getDate(), //日
  12747. "h+": this.getHours(), //小时
  12748. "m+": this.getMinutes(), //分
  12749. "s+": this.getSeconds(), //秒
  12750. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  12751. "S": this.getMilliseconds() //毫秒
  12752. };
  12753. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  12754. for (var k in o)
  12755. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  12756. return fmt;
  12757. }
  12758. $("#jrjc").change(function() {
  12759. if ($("#jrjc").prop('checked') == true){
  12760. $("#departmentId").removeAttr("disabled");
  12761. }else {
  12762. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12763. }
  12764. });
  12765. ----------------------------------- SOURCE END -------------------------------------
  12766. !STACK 0
  12767. java.lang.NullPointerException
  12768. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:26.388
  12769. !MESSAGE Error while processing working copy
  12770. !STACK 1
  12771. JavaScript Model Exception: java.lang.NullPointerException
  12772. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  12773. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  12774. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  12775. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  12776. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  12777. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  12778. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  12779. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  12780. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  12781. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  12782. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  12783. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  12784. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  12785. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  12786. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  12787. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  12788. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  12789. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  12790. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  12791. Caused by: java.lang.NullPointerException
  12792. Caused by: java.lang.NullPointerException
  12793. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:32:26.389
  12794. !MESSAGE java.lang.NullPointerException
  12795. !STACK 0
  12796. java.lang.NullPointerException
  12797. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:27.487
  12798. !MESSAGE Exception occurred during problem detection:
  12799. ----------------------------------- SOURCE BEGIN -------------------------------------
  12800. (function(){WdatePicker();})();
  12801. (function(){WdatePicker();})();
  12802. (function(){Data.get();})();
  12803. (function(){Data.set();})();
  12804. (function(){search();})();
  12805. $(function(){
  12806. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12807. getfp();
  12808. });
  12809. var Data = {
  12810. "get" : function(){
  12811. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  12812. var tip = layer.load(2);
  12813. var result="";
  12814. var url = "getgyxml.do";
  12815. $.ajax({
  12816. "url" : url,
  12817. "data" : {
  12818. "start_date" : $("#dateBegin").val(),
  12819. "end_date" : $("#dateEnd").val()
  12820. },
  12821. "type" : "POST",
  12822. "dataType" : "json",
  12823. "success" : function(data) {
  12824. if(data != null && data != ""){
  12825. if ( data.status =="success"){
  12826. getfp();
  12827. alert("获取成功!");
  12828. }else {
  12829. alert(data.status);
  12830. }
  12831. }else {
  12832. alert("获取失败!");
  12833. }
  12834. },
  12835. "complete": function(){
  12836. layer.close(tip);
  12837. }
  12838. });
  12839. }else {
  12840. alert("请选择日期!");
  12841. }
  12842. },
  12843. "set" : function(){
  12844. if ( $("#fpid option:selected").text() !=""){
  12845. var tip = layer.load(2);
  12846. var gitem = $("#form1").serialize();
  12847. var jrjc;
  12848. if ($("#jrjc").prop('checked') == true){
  12849. jrjc = $("#departmentId").val();
  12850. }else {
  12851. jrjc ='N'
  12852. }
  12853. var url = "saverk.do";
  12854. $.ajax({
  12855. "url" : url,
  12856. "data" : {
  12857. "gitem" : gitem,
  12858. "jrjc" : jrjc
  12859. },
  12860. "type" : "POST",
  12861. "dataType" : "json",
  12862. "async" : true,
  12863. "success" : function(data) {
  12864. if(data.status =="success"){
  12865. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  12866. alert("入库成功!\n入库单号:"+data.rkdh+"");
  12867. }else {
  12868. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  12869. }
  12870. window.location.reload();
  12871. }else {
  12872. alert(msg);
  12873. }
  12874. },
  12875. "error": function(){
  12876. alert("确认失败!");
  12877. },
  12878. "complete": function(){
  12879. layer.close(tip);
  12880. }
  12881. });
  12882. }else {
  12883. alert("请选择发票!");
  12884. }
  12885. }
  12886. }
  12887. function getfp(){
  12888. var tip = layer.load(2);
  12889. var url = "getgyfp.do";
  12890. $.ajax({
  12891. "url" : url,
  12892. "type" : "POST",
  12893. "dataType" : "json",
  12894. "async" : true,
  12895. "success" : function(data) {
  12896. if(data != null && data != ""){
  12897. $("#fpid").empty();
  12898. $("#fpid").append("_$tag_____________$tag____");
  12899. for(var i = 0; i < data.length; i++){
  12900. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  12901. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  12902. }
  12903. }
  12904. },
  12905. "error" : function(msg){
  12906. },
  12907. "complete": function(){
  12908. layer.close(tip);
  12909. }
  12910. });
  12911. }
  12912. $("#fpid").change(function(){
  12913. var tip = layer.load(2);
  12914. var url = "getgyrkxx.do";
  12915. var sum_total=0;
  12916. $.ajax({
  12917. "url" : url,
  12918. "data" : {
  12919. "fpId" : $("#fpid").val()
  12920. },
  12921. "type" : "POST",
  12922. "dataType" : "json",
  12923. "async" : true,
  12924. "success" : function(data) {
  12925. $("#dataTable").html("");
  12926. if(data != null && data != ""){
  12927. var html = "";
  12928. for(var i = 0; i < data.length; i++){
  12929. var ID = data[i].id == null ? "" : data[i].id;
  12930. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  12931. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  12932. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  12933. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  12934. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  12935. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  12936. var GOODS = data[i].goods == null ? "" : data[i].goods;
  12937. var NAME = data[i].name == null ? "" : data[i].name;
  12938. var SPEC = data[i].spec == null ? "" : data[i].spec;
  12939. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  12940. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  12941. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  12942. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  12943. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  12944. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  12945. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  12946. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  12947. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  12948. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  12949. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  12950. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  12951. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  12952. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  12953. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  12954. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  12955. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  12956. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  12957. sum_total = sum_total + DSUMVALUE
  12958. var invoice_type_cn =null;
  12959. if (invoice_type =="00" ){
  12960. invoice_type_cn="销售发票";
  12961. }else if (invoice_type == "01") {
  12962. invoice_type_cn="更正(对冲)发票";
  12963. }else if (invoice_type == "02") {
  12964. invoice_type_cn="其它类型发票";
  12965. }
  12966. html += "_$ta";
  12967. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  12968. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12969. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12970. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  12971. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12972. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12973. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12974. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  12975. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12976. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12977. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  12978. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  12979. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12980. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12981. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12982. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12983. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  12984. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12985. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  12986. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  12987. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12988. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12989. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  12990. html += "_$tag";
  12991. }
  12992. html += "_$ta";
  12993. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12994. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12995. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12996. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12997. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12998. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12999. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13000. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13001. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13002. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13003. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13004. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13005. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13006. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13007. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13008. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13009. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13010. html += "_$tag_____________$tag_合计:_$tag___$tag";
  13011. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  13012. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13013. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13014. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13015. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13016. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13017. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13018. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13019. html += "_$tag";
  13020. $("#dataTable").html(html);
  13021. }else {
  13022. $("#dataTable").html("");
  13023. }
  13024. },
  13025. "error" : function(msg){
  13026. },
  13027. "complete": function(){
  13028. layer.close(tip);
  13029. }
  13030. });
  13031. });
  13032. Date.prototype.Format = function (fmt) {
  13033. var o = {
  13034. "M+": this.getMonth() + 1, //月份
  13035. "d+": this.getDate(), //日
  13036. "h+": this.getHours(), //小时
  13037. "m+": this.getMinutes(), //分
  13038. "s+": this.getSeconds(), //秒
  13039. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  13040. "S": this.getMilliseconds() //毫秒
  13041. };
  13042. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  13043. for (var k in o)
  13044. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  13045. return fmt;
  13046. }
  13047. $("#jrjc").change(function() {
  13048. if ($("#jrjc").prop('checked') == true){
  13049. $("#departmentId").removeAttr("disabled");
  13050. }else {
  13051. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13052. }
  13053. });
  13054. ----------------------------------- SOURCE END -------------------------------------
  13055. !STACK 0
  13056. java.lang.NullPointerException
  13057. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:28.206
  13058. !MESSAGE Exception occurred during problem detection:
  13059. ----------------------------------- SOURCE BEGIN -------------------------------------
  13060. (function(){WdatePicker();})();
  13061. (function(){WdatePicker();})();
  13062. (function(){Data.get();})();
  13063. (function(){Data.set();})();
  13064. (function(){search();})();
  13065. $(function(){
  13066. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13067. getfp();
  13068. });
  13069. var Data = {
  13070. "get" : function(){
  13071. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  13072. var tip = layer.load(2);
  13073. var result="";
  13074. var url = "getgyxml.do";
  13075. $.ajax({
  13076. "url" : url,
  13077. "data" : {
  13078. "start_date" : $("#dateBegin").val(),
  13079. "end_date" : $("#dateEnd").val()
  13080. },
  13081. "type" : "POST",
  13082. "dataType" : "json",
  13083. "success" : function(data) {
  13084. if(data != null && data != ""){
  13085. if ( data.status =="success"){
  13086. getfp();
  13087. alert("获取成功!");
  13088. }else {
  13089. alert(data.status);
  13090. }
  13091. }else {
  13092. alert("获取失败!");
  13093. }
  13094. },
  13095. "complete": function(){
  13096. layer.close(tip);
  13097. }
  13098. });
  13099. }else {
  13100. alert("请选择日期!");
  13101. }
  13102. },
  13103. "set" : function(){
  13104. if ( $("#fpid option:selected").text() !=""){
  13105. var tip = layer.load(2);
  13106. var gitem = $("#form1").serialize();
  13107. var jrjc;
  13108. if ($("#jrjc").prop('checked') == true){
  13109. jrjc = $("#departmentId").val();
  13110. }else {
  13111. jrjc ='N'
  13112. }
  13113. var url = "saverk.do";
  13114. $.ajax({
  13115. "url" : url,
  13116. "data" : {
  13117. "gitem" : gitem,
  13118. "jrjc" : jrjc
  13119. },
  13120. "type" : "POST",
  13121. "dataType" : "json",
  13122. "async" : true,
  13123. "success" : function(data) {
  13124. if(data.status =="success"){
  13125. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  13126. alert("入库成功!\n入库单号:"+data.rkdh+"");
  13127. }else {
  13128. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  13129. }
  13130. window.location.reload();
  13131. }else {
  13132. alert(msg);
  13133. }
  13134. },
  13135. "error": function(){
  13136. alert("确认失败!");
  13137. },
  13138. "complete": function(){
  13139. layer.close(tip);
  13140. }
  13141. });
  13142. }else {
  13143. alert("请选择发票!");
  13144. }
  13145. }
  13146. }
  13147. function getfp(){
  13148. var tip = layer.load(2);
  13149. var url = "getgyfp.do";
  13150. $.ajax({
  13151. "url" : url,
  13152. "type" : "POST",
  13153. "dataType" : "json",
  13154. "async" : true,
  13155. "success" : function(data) {
  13156. if(data != null && data != ""){
  13157. $("#fpid").empty();
  13158. $("#fpid").append("_$tag_____________$tag____");
  13159. for(var i = 0; i < data.length; i++){
  13160. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  13161. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  13162. }
  13163. }
  13164. },
  13165. "error" : function(msg){
  13166. },
  13167. "complete": function(){
  13168. layer.close(tip);
  13169. }
  13170. });
  13171. }
  13172. $("#fpid").change(function(){
  13173. var tip = layer.load(2);
  13174. var url = "getgyrkxx.do";
  13175. var sum_total=0;
  13176. $.ajax({
  13177. "url" : url,
  13178. "data" : {
  13179. "fpId" : $("#fpid").val()
  13180. },
  13181. "type" : "POST",
  13182. "dataType" : "json",
  13183. "async" : true,
  13184. "success" : function(data) {
  13185. $("#dataTable").html("");
  13186. if(data != null && data != ""){
  13187. var html = "";
  13188. for(var i = 0; i < data.length; i++){
  13189. var ID = data[i].id == null ? "" : data[i].id;
  13190. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  13191. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  13192. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  13193. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  13194. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  13195. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  13196. var GOODS = data[i].goods == null ? "" : data[i].goods;
  13197. var NAME = data[i].name == null ? "" : data[i].name;
  13198. var SPEC = data[i].spec == null ? "" : data[i].spec;
  13199. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  13200. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  13201. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  13202. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  13203. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  13204. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  13205. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  13206. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  13207. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  13208. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  13209. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  13210. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  13211. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  13212. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  13213. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  13214. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  13215. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  13216. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  13217. sum_total = sum_total + DSUMVALUE
  13218. var invoice_type_cn =null;
  13219. if (invoice_type =="00" ){
  13220. invoice_type_cn="销售发票";
  13221. }else if (invoice_type == "01") {
  13222. invoice_type_cn="更正(对冲)发票";
  13223. }else if (invoice_type == "02") {
  13224. invoice_type_cn="其它类型发票";
  13225. }
  13226. html += "_$ta";
  13227. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  13228. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13229. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13230. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  13231. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13232. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  13233. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  13234. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  13235. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13236. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13237. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  13238. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  13239. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13240. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13241. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13242. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13243. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  13244. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13245. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  13246. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  13247. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13248. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13249. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  13250. html += "_$tag";
  13251. }
  13252. html += "_$ta";
  13253. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13254. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13255. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13256. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13257. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13258. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13259. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13260. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13261. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13262. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13263. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13264. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13265. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13266. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13267. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13268. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13269. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13270. html += "_$tag_____________$tag_合计:_$tag___$tag";
  13271. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  13272. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13273. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13274. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13275. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13276. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13277. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13278. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13279. html += "_$tag";
  13280. $("#dataTable").html(html);
  13281. }else {
  13282. $("#dataTable").html("");
  13283. }
  13284. },
  13285. "error" : function(msg){
  13286. },
  13287. "complete": function(){
  13288. layer.close(tip);
  13289. }
  13290. });
  13291. });
  13292. Date.prototype.Format = function (fmt) {
  13293. var o = {
  13294. "M+": this.getMonth() + 1, //月份
  13295. "d+": this.getDate(), //日
  13296. "h+": this.getHours(), //小时
  13297. "m+": this.getMinutes(), //分
  13298. "s+": this.getSeconds(), //秒
  13299. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  13300. "S": this.getMilliseconds() //毫秒
  13301. };
  13302. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  13303. for (var k in o)
  13304. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  13305. return fmt;
  13306. }
  13307. $("#jrjc").change(function() {
  13308. if ($("#jrjc").prop('checked') == true){
  13309. $("#departmentId").removeAttr("disabled");
  13310. }else {
  13311. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13312. }
  13313. });
  13314. ----------------------------------- SOURCE END -------------------------------------
  13315. !STACK 0
  13316. java.lang.NullPointerException
  13317. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:28.207
  13318. !MESSAGE Error while processing working copy
  13319. !STACK 1
  13320. JavaScript Model Exception: java.lang.NullPointerException
  13321. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  13322. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  13323. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  13324. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  13325. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  13326. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  13327. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  13328. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  13329. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  13330. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  13331. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  13332. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  13333. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  13334. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  13335. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  13336. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  13337. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  13338. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  13339. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  13340. Caused by: java.lang.NullPointerException
  13341. Caused by: java.lang.NullPointerException
  13342. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:32:28.207
  13343. !MESSAGE java.lang.NullPointerException
  13344. !STACK 0
  13345. java.lang.NullPointerException
  13346. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:29.334
  13347. !MESSAGE Exception occurred during problem detection:
  13348. ----------------------------------- SOURCE BEGIN -------------------------------------
  13349. (function(){WdatePicker();})();
  13350. (function(){WdatePicker();})();
  13351. (function(){Data.get();})();
  13352. (function(){Data.set();})();
  13353. (function(){search();})();
  13354. $(function(){
  13355. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13356. getfp();
  13357. });
  13358. var Data = {
  13359. "get" : function(){
  13360. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  13361. var tip = layer.load(2);
  13362. var result="";
  13363. var url = "getgyxml.do";
  13364. $.ajax({
  13365. "url" : url,
  13366. "data" : {
  13367. "start_date" : $("#dateBegin").val(),
  13368. "end_date" : $("#dateEnd").val()
  13369. },
  13370. "type" : "POST",
  13371. "dataType" : "json",
  13372. "success" : function(data) {
  13373. if(data != null && data != ""){
  13374. if ( data.status =="success"){
  13375. getfp();
  13376. alert("获取成功!");
  13377. }else {
  13378. alert(data.status);
  13379. }
  13380. }else {
  13381. alert("获取失败!");
  13382. }
  13383. },
  13384. "complete": function(){
  13385. layer.close(tip);
  13386. }
  13387. });
  13388. }else {
  13389. alert("请选择日期!");
  13390. }
  13391. },
  13392. "set" : function(){
  13393. if ( $("#fpid option:selected").text() !=""){
  13394. var tip = layer.load(2);
  13395. var gitem = $("#form1").serialize();
  13396. var jrjc;
  13397. if ($("#jrjc").prop('checked') == true){
  13398. jrjc = $("#departmentId").val();
  13399. }else {
  13400. jrjc ='N'
  13401. }
  13402. var url = "saverk.do";
  13403. $.ajax({
  13404. "url" : url,
  13405. "data" : {
  13406. "gitem" : gitem,
  13407. "jrjc" : jrjc
  13408. },
  13409. "type" : "POST",
  13410. "dataType" : "json",
  13411. "async" : true,
  13412. "success" : function(data) {
  13413. if(data.status =="success"){
  13414. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  13415. alert("入库成功!\n入库单号:"+data.rkdh+"");
  13416. }else {
  13417. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  13418. }
  13419. window.location.reload();
  13420. }else {
  13421. alert(msg);
  13422. }
  13423. },
  13424. "error": function(){
  13425. alert("确认失败!");
  13426. },
  13427. "complete": function(){
  13428. layer.close(tip);
  13429. }
  13430. });
  13431. }else {
  13432. alert("请选择发票!");
  13433. }
  13434. }
  13435. }
  13436. function getfp(){
  13437. var tip = layer.load(2);
  13438. var url = "getgyfp.do";
  13439. $.ajax({
  13440. "url" : url,
  13441. "type" : "POST",
  13442. "dataType" : "json",
  13443. "async" : true,
  13444. "success" : function(data) {
  13445. if(data != null && data != ""){
  13446. $("#fpid").empty();
  13447. $("#fpid").append("_$tag_____________$tag____");
  13448. for(var i = 0; i < data.length; i++){
  13449. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  13450. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  13451. }
  13452. }
  13453. },
  13454. "error" : function(msg){
  13455. },
  13456. "complete": function(){
  13457. layer.close(tip);
  13458. }
  13459. });
  13460. }
  13461. $("#fpid").change(function(){
  13462. var tip = layer.load(2);
  13463. var url = "getgyrkxx.do";
  13464. var sum_total=0;
  13465. $.ajax({
  13466. "url" : url,
  13467. "data" : {
  13468. "fpId" : $("#fpid").val()
  13469. },
  13470. "type" : "POST",
  13471. "dataType" : "json",
  13472. "async" : true,
  13473. "success" : function(data) {
  13474. $("#dataTable").html("");
  13475. if(data != null && data != ""){
  13476. var html = "";
  13477. for(var i = 0; i < data.length; i++){
  13478. var ID = data[i].id == null ? "" : data[i].id;
  13479. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  13480. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  13481. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  13482. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  13483. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  13484. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  13485. var GOODS = data[i].goods == null ? "" : data[i].goods;
  13486. var NAME = data[i].name == null ? "" : data[i].name;
  13487. var SPEC = data[i].spec == null ? "" : data[i].spec;
  13488. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  13489. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  13490. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  13491. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  13492. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  13493. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  13494. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  13495. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  13496. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  13497. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  13498. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  13499. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  13500. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  13501. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  13502. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  13503. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  13504. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  13505. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  13506. sum_total = sum_total + DSUMVALUE
  13507. var invoice_type_cn =null;
  13508. if (invoice_type =="00" ){
  13509. invoice_type_cn="销售发票";
  13510. }else if (invoice_type == "01") {
  13511. invoice_type_cn="更正(对冲)发票";
  13512. }else if (invoice_type == "02") {
  13513. invoice_type_cn="其它类型发票";
  13514. }
  13515. html += "_$ta";
  13516. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  13517. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13518. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13519. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  13520. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13521. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  13522. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  13523. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  13524. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13525. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13526. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  13527. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  13528. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13529. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13530. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13531. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13532. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  13533. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13534. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  13535. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  13536. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13537. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13538. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  13539. html += "_$tag";
  13540. }
  13541. html += "_$ta";
  13542. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13543. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13544. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13545. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13546. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13547. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13548. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13549. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13550. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13551. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13552. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13553. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13554. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13555. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13556. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13557. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13558. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13559. html += "_$tag_____________$tag_合计:_$tag___$tag";
  13560. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  13561. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13562. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13563. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13564. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13565. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13566. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13567. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13568. html += "_$tag";
  13569. $("#dataTable").html(html);
  13570. }else {
  13571. $("#dataTable").html("");
  13572. }
  13573. },
  13574. "error" : function(msg){
  13575. },
  13576. "complete": function(){
  13577. layer.close(tip);
  13578. }
  13579. });
  13580. });
  13581. Date.prototype.Format = function (fmt) {
  13582. var o = {
  13583. "M+": this.getMonth() + 1, //月份
  13584. "d+": this.getDate(), //日
  13585. "h+": this.getHours(), //小时
  13586. "m+": this.getMinutes(), //分
  13587. "s+": this.getSeconds(), //秒
  13588. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  13589. "S": this.getMilliseconds() //毫秒
  13590. };
  13591. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  13592. for (var k in o)
  13593. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  13594. return fmt;
  13595. }
  13596. $("#jrjc").change(function() {
  13597. if ($("#jrjc").prop('checked') == true){
  13598. $("#departmentId").removeAttr("disabled");
  13599. }else {
  13600. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13601. }
  13602. });
  13603. ----------------------------------- SOURCE END -------------------------------------
  13604. !STACK 0
  13605. java.lang.NullPointerException
  13606. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:34.733
  13607. !MESSAGE Exception occurred during problem detection:
  13608. ----------------------------------- SOURCE BEGIN -------------------------------------
  13609. (function(){WdatePicker();})();
  13610. (function(){WdatePicker();})();
  13611. (function(){Data.get();})();
  13612. (function(){Data.set();})();
  13613. (function(){search();})();
  13614. $(function(){
  13615. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13616. getfp();
  13617. });
  13618. var Data = {
  13619. "get" : function(){
  13620. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  13621. var tip = layer.load(2);
  13622. var result="";
  13623. var url = "getgyxml.do";
  13624. $.ajax({
  13625. "url" : url,
  13626. "data" : {
  13627. "start_date" : $("#dateBegin").val(),
  13628. "end_date" : $("#dateEnd").val()
  13629. },
  13630. "type" : "POST",
  13631. "dataType" : "json",
  13632. "success" : function(data) {
  13633. if(data != null && data != ""){
  13634. if ( data.status =="success"){
  13635. getfp();
  13636. alert("获取成功!");
  13637. }else {
  13638. alert(data.status);
  13639. }
  13640. }else {
  13641. alert("获取失败!");
  13642. }
  13643. },
  13644. "complete": function(){
  13645. layer.close(tip);
  13646. }
  13647. });
  13648. }else {
  13649. alert("请选择日期!");
  13650. }
  13651. },
  13652. "set" : function(){
  13653. if ( $("#fpid option:selected").text() !=""){
  13654. var tip = layer.load(2);
  13655. var gitem = $("#form1").serialize();
  13656. var jrjc;
  13657. if ($("#jrjc").prop('checked') == true){
  13658. jrjc = $("#departmentId").val();
  13659. }else {
  13660. jrjc ='N'
  13661. }
  13662. var url = "saverk.do";
  13663. $.ajax({
  13664. "url" : url,
  13665. "data" : {
  13666. "gitem" : gitem,
  13667. "jrjc" : jrjc
  13668. },
  13669. "type" : "POST",
  13670. "dataType" : "json",
  13671. "async" : true,
  13672. "success" : function(data) {
  13673. if(data.status =="success"){
  13674. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  13675. alert("入库成功!\n入库单号:"+data.rkdh+"");
  13676. }else {
  13677. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  13678. }
  13679. window.location.reload();
  13680. }else {
  13681. alert(msg);
  13682. }
  13683. },
  13684. "error": function(){
  13685. alert("确认失败!");
  13686. },
  13687. "complete": function(){
  13688. layer.close(tip);
  13689. }
  13690. });
  13691. }else {
  13692. alert("请选择发票!");
  13693. }
  13694. }
  13695. }
  13696. function getfp(){
  13697. var tip = layer.load(2);
  13698. var url = "getgyfp.do";
  13699. $.ajax({
  13700. "url" : url,
  13701. "type" : "POST",
  13702. "dataType" : "json",
  13703. "async" : true,
  13704. "success" : function(data) {
  13705. if(data != null && data != ""){
  13706. $("#fpid").empty();
  13707. $("#fpid").append("_$tag_____________$tag____");
  13708. for(var i = 0; i < data.length; i++){
  13709. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  13710. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  13711. }
  13712. }
  13713. },
  13714. "error" : function(msg){
  13715. },
  13716. "complete": function(){
  13717. layer.close(tip);
  13718. }
  13719. });
  13720. }
  13721. $("#fpid").change(function(){
  13722. var tip = layer.load(2);
  13723. var url = "getgyrkxx.do";
  13724. var sum_total=0;
  13725. $.ajax({
  13726. "url" : url,
  13727. "data" : {
  13728. "fpId" : $("#fpid").val()
  13729. },
  13730. "type" : "POST",
  13731. "dataType" : "json",
  13732. "async" : true,
  13733. "success" : function(data) {
  13734. $("#dataTable").html("");
  13735. if(data != null && data != ""){
  13736. var html = "";
  13737. for(var i = 0; i < data.length; i++){
  13738. var ID = data[i].id == null ? "" : data[i].id;
  13739. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  13740. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  13741. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  13742. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  13743. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  13744. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  13745. var GOODS = data[i].goods == null ? "" : data[i].goods;
  13746. var NAME = data[i].name == null ? "" : data[i].name;
  13747. var SPEC = data[i].spec == null ? "" : data[i].spec;
  13748. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  13749. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  13750. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  13751. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  13752. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  13753. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  13754. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  13755. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  13756. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  13757. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  13758. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  13759. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  13760. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  13761. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  13762. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  13763. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  13764. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  13765. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  13766. sum_total = sum_total + DSUMVALUE
  13767. var invoice_type_cn =null;
  13768. if (invoice_type =="00" ){
  13769. invoice_type_cn="销售发票";
  13770. }else if (invoice_type == "01") {
  13771. invoice_type_cn="更正(对冲)发票";
  13772. }else if (invoice_type == "02") {
  13773. invoice_type_cn="其它类型发票";
  13774. }
  13775. html += "_$ta";
  13776. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  13777. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13778. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13779. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  13780. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13781. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  13782. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  13783. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  13784. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13785. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13786. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  13787. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  13788. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13789. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13790. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13791. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13792. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  13793. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13794. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  13795. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  13796. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13797. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13798. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  13799. html += "_$tag";
  13800. }
  13801. html += "_$ta";
  13802. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13803. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13804. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13805. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13806. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13807. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13808. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13809. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13810. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13811. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13812. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13813. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13814. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13815. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13816. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13817. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13818. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13819. html += "_$tag_____________$tag_合计:_$tag___$tag";
  13820. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  13821. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13822. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13823. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13824. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13825. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13826. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13827. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13828. html += "_$tag";
  13829. $("#dataTable").html(html);
  13830. }else {
  13831. $("#dataTable").html("");
  13832. }
  13833. },
  13834. "error" : function(msg){
  13835. },
  13836. "complete": function(){
  13837. layer.close(tip);
  13838. }
  13839. });
  13840. });
  13841. Date.prototype.Format = function (fmt) {
  13842. var o = {
  13843. "M+": this.getMonth() + 1, //月份
  13844. "d+": this.getDate(), //日
  13845. "h+": this.getHours(), //小时
  13846. "m+": this.getMinutes(), //分
  13847. "s+": this.getSeconds(), //秒
  13848. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  13849. "S": this.getMilliseconds() //毫秒
  13850. };
  13851. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  13852. for (var k in o)
  13853. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  13854. return fmt;
  13855. }
  13856. $("#jrjc").change(function() {
  13857. if ($("#jrjc").prop('checked') == true){
  13858. $("#departmentId").removeAttr("disabled");
  13859. }else {
  13860. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13861. }
  13862. });
  13863. ----------------------------------- SOURCE END -------------------------------------
  13864. !STACK 0
  13865. java.lang.NullPointerException
  13866. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:34.734
  13867. !MESSAGE Error while processing working copy
  13868. !STACK 1
  13869. JavaScript Model Exception: java.lang.NullPointerException
  13870. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  13871. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  13872. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  13873. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  13874. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  13875. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  13876. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  13877. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  13878. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  13879. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  13880. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  13881. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  13882. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  13883. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  13884. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  13885. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  13886. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  13887. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  13888. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  13889. Caused by: java.lang.NullPointerException
  13890. Caused by: java.lang.NullPointerException
  13891. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:32:34.734
  13892. !MESSAGE java.lang.NullPointerException
  13893. !STACK 0
  13894. java.lang.NullPointerException
  13895. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:35.394
  13896. !MESSAGE Exception occurred during problem detection:
  13897. ----------------------------------- SOURCE BEGIN -------------------------------------
  13898. (function(){WdatePicker();})();
  13899. (function(){WdatePicker();})();
  13900. (function(){Data.get();})();
  13901. (function(){Data.set();})();
  13902. (function(){search();})();
  13903. $(function(){
  13904. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13905. getfp();
  13906. });
  13907. var Data = {
  13908. "get" : function(){
  13909. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  13910. var tip = layer.load(2);
  13911. var result="";
  13912. var url = "getgyxml.do";
  13913. $.ajax({
  13914. "url" : url,
  13915. "data" : {
  13916. "start_date" : $("#dateBegin").val(),
  13917. "end_date" : $("#dateEnd").val()
  13918. },
  13919. "type" : "POST",
  13920. "dataType" : "json",
  13921. "success" : function(data) {
  13922. if(data != null && data != ""){
  13923. if ( data.status =="success"){
  13924. getfp();
  13925. alert("获取成功!");
  13926. }else {
  13927. alert(data.status);
  13928. }
  13929. }else {
  13930. alert("获取失败!");
  13931. }
  13932. },
  13933. "complete": function(){
  13934. layer.close(tip);
  13935. }
  13936. });
  13937. }else {
  13938. alert("请选择日期!");
  13939. }
  13940. },
  13941. "set" : function(){
  13942. if ( $("#fpid option:selected").text() !=""){
  13943. var tip = layer.load(2);
  13944. var gitem = $("#form1").serialize();
  13945. var jrjc;
  13946. if ($("#jrjc").prop('checked') == true){
  13947. jrjc = $("#departmentId").val();
  13948. }else {
  13949. jrjc ='N'
  13950. }
  13951. var url = "saverk.do";
  13952. $.ajax({
  13953. "url" : url,
  13954. "data" : {
  13955. "gitem" : gitem,
  13956. "jrjc" : jrjc
  13957. },
  13958. "type" : "POST",
  13959. "dataType" : "json",
  13960. "async" : true,
  13961. "success" : function(data) {
  13962. if(data.status =="success"){
  13963. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  13964. alert("入库成功!\n入库单号:"+data.rkdh+"");
  13965. }else {
  13966. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  13967. }
  13968. window.location.reload();
  13969. }else {
  13970. alert(msg);
  13971. }
  13972. },
  13973. "error": function(){
  13974. alert("确认失败!");
  13975. },
  13976. "complete": function(){
  13977. layer.close(tip);
  13978. }
  13979. });
  13980. }else {
  13981. alert("请选择发票!");
  13982. }
  13983. }
  13984. }
  13985. function getfp(){
  13986. var tip = layer.load(2);
  13987. var url = "getgyfp.do";
  13988. $.ajax({
  13989. "url" : url,
  13990. "type" : "POST",
  13991. "dataType" : "json",
  13992. "async" : true,
  13993. "success" : function(data) {
  13994. if(data != null && data != ""){
  13995. $("#fpid").empty();
  13996. $("#fpid").append("_$tag_____________$tag____");
  13997. for(var i = 0; i < data.length; i++){
  13998. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  13999. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  14000. }
  14001. }
  14002. },
  14003. "error" : function(msg){
  14004. },
  14005. "complete": function(){
  14006. layer.close(tip);
  14007. }
  14008. });
  14009. }
  14010. $("#fpid").change(function(){
  14011. var tip = layer.load(2);
  14012. var url = "getgyrkxx.do";
  14013. var sum_total=0;
  14014. $.ajax({
  14015. "url" : url,
  14016. "data" : {
  14017. "fpId" : $("#fpid").val()
  14018. },
  14019. "type" : "POST",
  14020. "dataType" : "json",
  14021. "async" : true,
  14022. "success" : function(data) {
  14023. $("#dataTable").html("");
  14024. if(data != null && data != ""){
  14025. var html = "";
  14026. for(var i = 0; i < data.length; i++){
  14027. var ID = data[i].id == null ? "" : data[i].id;
  14028. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  14029. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  14030. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  14031. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  14032. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  14033. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  14034. var GOODS = data[i].goods == null ? "" : data[i].goods;
  14035. var NAME = data[i].name == null ? "" : data[i].name;
  14036. var SPEC = data[i].spec == null ? "" : data[i].spec;
  14037. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  14038. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  14039. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  14040. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  14041. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  14042. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  14043. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  14044. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  14045. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  14046. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  14047. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  14048. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  14049. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  14050. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  14051. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  14052. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  14053. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  14054. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  14055. sum_total = sum_total + DSUMVALUE
  14056. var invoice_type_cn =null;
  14057. if (invoice_type =="00" ){
  14058. invoice_type_cn="销售发票";
  14059. }else if (invoice_type == "01") {
  14060. invoice_type_cn="更正(对冲)发票";
  14061. }else if (invoice_type == "02") {
  14062. invoice_type_cn="其它类型发票";
  14063. }
  14064. html += "_$ta";
  14065. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  14066. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  14067. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  14068. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  14069. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  14070. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  14071. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  14072. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  14073. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  14074. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  14075. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  14076. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  14077. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  14078. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  14079. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  14080. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  14081. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  14082. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  14083. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  14084. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  14085. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  14086. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  14087. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  14088. html += "_$tag";
  14089. }
  14090. html += "_$ta";
  14091. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14092. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14093. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14094. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14095. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14096. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14097. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14098. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14099. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14100. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14101. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14102. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14103. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14104. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14105. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14106. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14107. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14108. html += "_$tag_____________$tag_合计:_$tag___$tag";
  14109. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  14110. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14111. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14112. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14113. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14114. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14115. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14116. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14117. html += "_$tag";
  14118. $("#dataTable").html(html);
  14119. }else {
  14120. $("#dataTable").html("");
  14121. }
  14122. },
  14123. "error" : function(msg){
  14124. },
  14125. "complete": function(){
  14126. layer.close(tip);
  14127. }
  14128. });
  14129. });
  14130. Date.prototype.Format = function (fmt) {
  14131. var o = {
  14132. "M+": this.getMonth() + 1, //月份
  14133. "d+": this.getDate(), //日
  14134. "h+": this.getHours(), //小时
  14135. "m+": this.getMinutes(), //分
  14136. "s+": this.getSeconds(), //秒
  14137. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  14138. "S": this.getMilliseconds() //毫秒
  14139. };
  14140. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  14141. for (var k in o)
  14142. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  14143. return fmt;
  14144. }
  14145. $("#jrjc").change(function() {
  14146. if ($("#jrjc").prop('checked') == true){
  14147. $("#departmentId").removeAttr("disabled");
  14148. }else {
  14149. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  14150. }
  14151. });
  14152. ----------------------------------- SOURCE END -------------------------------------
  14153. !STACK 0
  14154. java.lang.NullPointerException