!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_7.log Created Time: 2018-06-21 09:30:37.228 !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:37.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.core 4 4 2018-06-21 09:30:38.018 !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:30:38.018 !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:30:38.018 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:40.622 !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:30:40.623 !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:30:40.623 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:41.275 !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:30:41.952 !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:30:41.953 !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:30:41.953 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:43.736 !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:30:43.737 !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:30:43.737 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:44.385 !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:30:45.957 !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:30:45.957 !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:30:45.958 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:48.970 !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:30:48.971 !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:30:48.971 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:49.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.core 4 4 2018-06-21 09:30:50.215 !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:30:50.215 !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:30:50.215 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:50.550 !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:30:50.550 !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:30:50.551 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:51.566 !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:30:53.420 !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:30:53.421 !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:30:53.421 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:53.820 !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:30:53.820 !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:30:53.821 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:54.781 !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:30:57.193 !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:30:57.194 !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:30:57.194 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:58.255 !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:30:58.967 !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:30:58.967 !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:30:58.967 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:00.009 !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:02.078 !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:02.079 !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:02.079 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:03.113 !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:03.729 !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:03.729 !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:03.730 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:04.416 !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:04.417 !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:04.417 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:05.358 !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:05.785 !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:05.786 !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:05.786 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:06.840 !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:07.207 !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:07.208 !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:07.208 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:07.558 !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:07.558 !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:07.558 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:08.602 !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:11.757 !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:11.757 !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:11.758 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:16.192 !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:16.193 !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:16.193 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:17.855 !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:17.856 !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:17.856 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:24.347 !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:24.347 !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:24.348 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:25.017 !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:26.984 !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:26.985 !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:26.985 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:28.364 !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:28.365 !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:28.365 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:29.744 !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:29.745 !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:29.745 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:34.855 !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:34.856 !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:34.856 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:35.886 !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:36.277 !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:36.278 !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:36.278 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:37.376 !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:37.940 !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:37.940 !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:37.940 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:38.976 !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:39.368 !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:39.368 !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:39.369 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:40.479 !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:40.883 !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:40.884 !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:40.884 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:41.996 !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