!SESSION 2018-07-23 08:52:12.560 ----------------------------------------------- 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_2.log Created Time: 2018-07-23 09:32:35.795 !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:35.796 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:32:35.796 !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-07-23 09:32:35.796 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:36.702 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:32:40.573 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:32:40.573 !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-07-23 09:32:40.573 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:48.380 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:32:48.381 !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-07-23 09:32:48.381 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:32:49.316 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:33:09.443 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:33:09.444 !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-07-23 09:33:09.444 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:10.461 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:33:11.268 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:33:11.269 !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-07-23 09:33:11.269 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:11.890 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:33:14.853 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:33:14.853 !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-07-23 09:33:14.854 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:18.216 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:33:18.216 !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-07-23 09:33:18.216 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:19.552 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:33:19.552 !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-07-23 09:33:19.552 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:23.425 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:33:23.426 !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-07-23 09:33:23.426 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:40.025 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:33:40.026 !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-07-23 09:33:40.026 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:48.249 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:33:48.250 !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-07-23 09:33:48.250 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:49.505 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:33:50.460 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:33:50.460 !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-07-23 09:33:50.460 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:51.487 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:33:52.542 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:33:52.543 !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-07-23 09:33:52.543 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:53.572 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:33:53.978 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:33:53.979 !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-07-23 09:33:53.979 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:55.024 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:33:55.505 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:33:55.506 !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-07-23 09:33:55.506 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:56.539 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status =="success"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:33:56.963 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:33:56.963 !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-07-23 09:33:56.964 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:33:57.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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:34:23.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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:34:23.377 !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-07-23 09:34:23.377 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:24.390 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:34:25.817 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:34:25.817 !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-07-23 09:34:25.817 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:26.693 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:34:26.693 !MESSAGE Error while processing working copy !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100) at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865) at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327) at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754) at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310) at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120) at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142) at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-07-23 09:34:26.693 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:27.317 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:34:29.998 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:34:29.998 !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-07-23 09:34:29.999 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:32.878 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:34:32.878 !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-07-23 09:34:32.878 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:33.507 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:34:35.417 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:34:35.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-07-23 09:34:35.417 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:36.057 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:34:37.427 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:34:37.428 !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-07-23 09:34:37.428 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:38.345 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status =="success"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:34:39.859 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:34:39.859 !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-07-23 09:34:39.860 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:40.898 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:34:43.770 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:34:43.771 !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-07-23 09:34:43.771 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:44.794 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:34:48.317 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:34:48.318 !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-07-23 09:34:48.318 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:49.752 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status =="success"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:34:49.752 !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-07-23 09:34:49.753 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:50.751 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:34:52.040 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:34:52.041 !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-07-23 09:34:52.041 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:53.052 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:34:53.561 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:34:53.562 !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-07-23 09:34:53.562 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:54.187 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:34:55.223 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:34:55.224 !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-07-23 09:34:55.224 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:55.857 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:34:56.682 !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"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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-07-23 09:34:56.682 !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-07-23 09:34:56.683 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-07-23 09:34:57.299 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status =="success"){ if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){ alert("入库成功!\n入库单号:"+data.rkdh+""); }else { alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+""); } 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; var ITEMID = data[i].itemId == null ? "" : data[i].itemId; var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice; sum_total = sum_total + DSUMVALUE 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"; } 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___$tag"; html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag"; html += "_$tag_____________$tag____________________________________________________________________$tag"; html += "_$tag_____________$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