!SESSION 2018-06-21 08:47:35.535 ----------------------------------------------- eclipse.buildId=4.4.2.M20150204-1700 java.version=1.7.0_80 java.vendor=Oracle Corporation BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=zh_CN Framework arguments: -product org.eclipse.epp.package.jee.product Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product This is a continuation of log file F:\zhcx\.metadata\.bak_8.log Created Time: 2018-06-21 09:31:42.442 !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:42.442 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag_________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:42.442 !MESSAGE Error while processing working copy !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100) at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865) at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327) at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754) at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310) at org.eclipse.wst.jsdt.web.ui.internal.hyperlink.JSDTHyperlinkDetector.detectHyperlinks(JSDTHyperlinkDetector.java:176) at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80) at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:289) at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:261) at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:469) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603) at org.eclipse.equinox.launcher.Main.run(Main.java:1465) at org.eclipse.equinox.launcher.Main.main(Main.java:1438) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:31:42.443 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:43.497 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag_________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:43.879 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag_________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:43.880 !MESSAGE Error while processing working copy !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100) at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865) at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327) at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754) at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310) at org.eclipse.wst.jsdt.web.ui.internal.hyperlink.JSDTHyperlinkDetector.detectHyperlinks(JSDTHyperlinkDetector.java:176) at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80) at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:289) at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:261) at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:469) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603) at org.eclipse.equinox.launcher.Main.run(Main.java:1465) at org.eclipse.equinox.launcher.Main.main(Main.java:1438) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:31:43.880 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:45.168 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag_________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:45.692 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag_________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:45.693 !MESSAGE Error while processing working copy !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100) at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865) at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327) at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754) at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310) at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120) at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142) at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:31:45.693 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:46.763 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag_________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:47.172 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag_________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:47.172 !MESSAGE Error while processing working copy !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100) at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865) at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327) at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754) at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310) at org.eclipse.wst.jsdt.web.ui.internal.hyperlink.JSDTHyperlinkDetector.detectHyperlinks(JSDTHyperlinkDetector.java:176) at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80) at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:289) at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:261) at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:469) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603) at org.eclipse.equinox.launcher.Main.run(Main.java:1465) at org.eclipse.equinox.launcher.Main.main(Main.java:1438) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:31:47.173 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:48.210 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag_________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:48.664 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag_________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:48.665 !MESSAGE Error while processing working copy !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100) at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865) at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327) at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754) at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310) at org.eclipse.wst.jsdt.web.ui.internal.hyperlink.JSDTHyperlinkDetector.detectHyperlinks(JSDTHyperlinkDetector.java:176) at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80) at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:289) at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:261) at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:469) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603) at org.eclipse.equinox.launcher.Main.run(Main.java:1465) at org.eclipse.equinox.launcher.Main.main(Main.java:1438) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:31:48.665 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:49.314 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag_________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:50.154 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:50.154 !MESSAGE Error while processing working copy !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100) at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865) at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327) at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754) at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310) at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120) at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142) at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:31:50.154 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:50.846 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:51.250 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:31:51.250 !MESSAGE java.lang.NullPointerException !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117) at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177) at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96) at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742) at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262) at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269) at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321) at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258) at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:31:51.250 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:55.337 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:55.337 !MESSAGE Error while processing working copy !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100) at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865) at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327) at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754) at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310) at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120) at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142) at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:31:55.337 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:56.051 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:32:00.653 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:32:00.653 !MESSAGE java.lang.NullPointerException !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117) at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177) at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96) at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742) at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262) at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269) at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321) at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258) at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:32:00.653 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:32:03.299 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:32:03.299 !MESSAGE java.lang.NullPointerException !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117) at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177) at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96) at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742) at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262) at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269) at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321) at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258) at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:32:03.300 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:32:05.228 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:32:05.228 !MESSAGE java.lang.NullPointerException !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117) at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177) at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96) at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742) at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262) at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269) at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321) at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258) at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:32:05.229 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:32:07.616 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:32:07.617 !MESSAGE java.lang.NullPointerException !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117) at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177) at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96) at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742) at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262) at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269) at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321) at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258) at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:32:07.617 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:32:10.510 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:32:10.511 !MESSAGE java.lang.NullPointerException !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117) at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177) at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96) at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742) at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262) at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269) at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321) at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258) at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:32:10.511 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:32:16.178 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:32:16.179 !MESSAGE java.lang.NullPointerException !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117) at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177) at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96) at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742) at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262) at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269) at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321) at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258) at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:32:16.179 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:32:17.579 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:32:17.580 !MESSAGE java.lang.NullPointerException !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117) at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177) at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96) at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742) at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262) at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269) at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321) at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258) at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:32:17.580 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:32:19.495 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:32:19.496 !MESSAGE java.lang.NullPointerException !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117) at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177) at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96) at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742) at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262) at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269) at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321) at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258) at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:32:19.496 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:32:21.371 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:32:21.371 !MESSAGE java.lang.NullPointerException !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117) at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177) at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96) at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742) at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262) at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269) at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321) at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258) at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:32:21.371 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:32:23.033 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:32:23.033 !MESSAGE java.lang.NullPointerException !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117) at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177) at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96) at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742) at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262) at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269) at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321) at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258) at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:32:23.033 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:32:24.926 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:32:24.927 !MESSAGE java.lang.NullPointerException !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117) at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177) at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96) at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742) at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262) at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269) at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321) at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258) at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:32:24.927 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:32:26.345 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:32:26.345 !MESSAGE java.lang.NullPointerException !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117) at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177) at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96) at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742) at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262) at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269) at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321) at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258) at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:32:26.345 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:32:27.752 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:32:27.753 !MESSAGE java.lang.NullPointerException !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117) at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177) at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96) at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742) at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262) at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269) at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321) at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258) at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:32:27.753 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:33:10.130 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:33:10.130 !MESSAGE java.lang.NullPointerException !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117) at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177) at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96) at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742) at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262) at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269) at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321) at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258) at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:33:10.130 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:33:48.847 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:33:48.848 !MESSAGE Error while processing working copy !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100) at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865) at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327) at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754) at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310) at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120) at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142) at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:33:48.848 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:33:49.522 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:33:52.539 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:33:52.540 !MESSAGE Error while processing working copy !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100) at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865) at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327) at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754) at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310) at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120) at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142) at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:33:52.540 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:33:57.637 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:33:57.638 !MESSAGE Error while processing working copy !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100) at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865) at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327) at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754) at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310) at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120) at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142) at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:33:57.638 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:33:58.343 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:33:59.279 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:33:59.280 !MESSAGE java.lang.NullPointerException !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117) at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177) at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96) at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742) at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262) at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269) at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321) at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258) at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:33:59.280 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:33:59.988 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:34:00.004 !MESSAGE Error while processing working copy !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100) at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865) at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327) at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754) at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310) at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120) at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142) at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:34:00.004 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:34:01.205 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:34:01.522 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:34:01.523 !MESSAGE java.lang.NullPointerException !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117) at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177) at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96) at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742) at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262) at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269) at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321) at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258) at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:34:01.523 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:34:02.392 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:34:02.393 !MESSAGE Error while processing working copy !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100) at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865) at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327) at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754) at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310) at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120) at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142) at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:34:02.393 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:34:03.379 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:34:21.410 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:34:21.411 !MESSAGE Error while processing working copy !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100) at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865) at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327) at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754) at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310) at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120) at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142) at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:34:21.411 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:34:22.465 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:34:36.357 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:34:36.358 !MESSAGE Error while processing working copy !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100) at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865) at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327) at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754) at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310) at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120) at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142) at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:34:36.358 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:34:37.387 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:34:38.003 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:34:38.004 !MESSAGE Error while processing working copy !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100) at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865) at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327) at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754) at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310) at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120) at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142) at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:34:38.004 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:34:38.699 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:34:55.575 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:34:55.576 !MESSAGE Error while processing working copy !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100) at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865) at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327) at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754) at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310) at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120) at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142) at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:34:55.576 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:34:56.229 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status ="success"){ alert("入库成功!"); window.location.reload(); }else { alert(msg); } }, "error": function(){ alert("确认失败!"); }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择发票!"); } } } function getfp(){ var tip = layer.load(2); var url = "getgyfp.do"; $.ajax({ "url" : url, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data != null && data != ""){ $("#fpid").empty(); $("#fpid").append("_$tag_____________$tag____"); for(var i = 0; i < data.length; i++){ var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO; $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____"); } } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); } $("#fpid").change(function(){ var tip = layer.load(2); var url = "getgyrkxx.do"; var sum_total=0; $.ajax({ "url" : url, "data" : { "fpId" : $("#fpid").val() }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { $("#dataTable").html(""); if(data != null && data != ""){ var html = ""; for(var i = 0; i < data.length; i++){ var ID = data[i].id == null ? "" : data[i].id; var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno; var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid; var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd"); var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode; var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode; var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname; var GOODS = data[i].goods == null ? "" : data[i].goods; var NAME = data[i].name == null ? "" : data[i].name; var SPEC = data[i].spec == null ? "" : data[i].spec; var PRODUCER = data[i].producer == null ? "" : data[i].producer; var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno; var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty; var DPRC = data[i].dprc == null ? "" : data[i].dprc; var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc; var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc; var LOTNO = data[i].lotno == null ? "" : data[i].lotno; var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd"); var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue; var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt; var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid; var GRPNO = data[i].grpno == null ? "" : data[i].grpno; var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy; var PROADD = data[i].proadd == null ? "" : data[i].proadd; var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code; var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type; sum_total = sum_total + DPRC var invoice_type_cn =null; if (invoice_type =="00" ){ invoice_type_cn="销售发票"; }else if (invoice_type == "01") { invoice_type_cn="更正(对冲)发票"; }else if (invoice_type == "02") { invoice_type_cn="其它类型发票"; } html += "_$ta"; html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag"; html += "_$tag"; } html += "_$ta"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag_________________________________________________________________合计:_$tag"; html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag_____________$tag__________________________________________________________________$tag"; html += "_$tag"; $("#dataTable").html(html); }else { $("#dataTable").html(""); } }, "error" : function(msg){ }, "complete": function(){ layer.close(tip); } }); }); Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } $("#jrjc").change(function() { if ($("#jrjc").prop('checked') == true){ $("#departmentId").removeAttr("disabled"); }else { $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); } }); ----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException