!SESSION 2018-10-31 14:12:29.335 ----------------------------------------------- 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_0.log Created Time: 2018-10-31 14:17:57.819 !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:17:57.820 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status =="success"){ 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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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___$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_____________$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 at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1737) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1703) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding$9.performAction(SourceTypeBinding.java:1496) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.performActionOnLinkedBindings(SourceTypeBinding.java:2519) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.methods(SourceTypeBinding.java:1468) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodBinding.ensureBindingsAreComplete(MethodBinding.java:773) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.findMethod(Scope.java:686) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1686) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79) at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263) at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488) at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171) at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79) at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488) at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171) at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79) at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431) at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89) at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:469) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findVariable(MethodScope.java:457) at org.eclipse.wst.jsdt.internal.compiler.lookup.BlockScope.findMethod(BlockScope.java:262) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:517) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263) at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241) at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolve(LocalDeclaration.java:153) at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89) at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFields(SourceTypeBinding.java:396) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:260) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:195) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildFieldsAndMethods(CompilationUnitScope.java:246) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:431) at org.eclipse.wst.jsdt.internal.compiler.Compiler.resolve(Compiler.java:659) at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:273) 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.searchAllTypeNames(BasicSearchEngine.java:1108) at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllTypeNames(BasicSearchEngine.java:945) at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findTypes(SearchableEnvironment.java:416) at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:785) 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) !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:17:59.173 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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___$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_____________$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 at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1737) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1703) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding$9.performAction(SourceTypeBinding.java:1496) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.performActionOnLinkedBindings(SourceTypeBinding.java:2519) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.methods(SourceTypeBinding.java:1468) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodBinding.ensureBindingsAreComplete(MethodBinding.java:773) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.findMethod(Scope.java:686) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1686) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79) at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263) at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488) at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171) at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79) at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488) at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171) at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79) at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431) at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89) at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:469) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findVariable(MethodScope.java:457) at org.eclipse.wst.jsdt.internal.compiler.lookup.BlockScope.findMethod(BlockScope.java:262) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:517) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263) at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241) at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolve(LocalDeclaration.java:153) at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89) at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFields(SourceTypeBinding.java:396) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:260) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:195) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildFieldsAndMethods(CompilationUnitScope.java:246) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:431) at org.eclipse.wst.jsdt.internal.compiler.Compiler.resolve(Compiler.java:659) at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:273) 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) !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:17:59.174 !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 at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1737) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1703) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding$9.performAction(SourceTypeBinding.java:1496) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.performActionOnLinkedBindings(SourceTypeBinding.java:2519) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.methods(SourceTypeBinding.java:1468) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodBinding.ensureBindingsAreComplete(MethodBinding.java:773) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.findMethod(Scope.java:686) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1686) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79) at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263) at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488) at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171) at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79) at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488) at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171) at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79) at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431) at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89) at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:469) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findVariable(MethodScope.java:457) at org.eclipse.wst.jsdt.internal.compiler.lookup.BlockScope.findMethod(BlockScope.java:262) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:517) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263) at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241) at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolve(LocalDeclaration.java:153) at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89) at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFields(SourceTypeBinding.java:396) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:260) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:195) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildFieldsAndMethods(CompilationUnitScope.java:246) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:431) at org.eclipse.wst.jsdt.internal.compiler.Compiler.resolve(Compiler.java:659) at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:273) ... 18 more Caused by: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1737) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1703) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding$9.performAction(SourceTypeBinding.java:1496) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.performActionOnLinkedBindings(SourceTypeBinding.java:2519) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.methods(SourceTypeBinding.java:1468) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodBinding.ensureBindingsAreComplete(MethodBinding.java:773) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.findMethod(Scope.java:686) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1686) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79) at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263) at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488) at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171) at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79) at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488) at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171) at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79) at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431) at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89) at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:469) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findVariable(MethodScope.java:457) at org.eclipse.wst.jsdt.internal.compiler.lookup.BlockScope.findMethod(BlockScope.java:262) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:517) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263) at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241) at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolve(LocalDeclaration.java:153) at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89) at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFields(SourceTypeBinding.java:396) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:260) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:195) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildFieldsAndMethods(CompilationUnitScope.java:246) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:431) at org.eclipse.wst.jsdt.internal.compiler.Compiler.resolve(Compiler.java:659) at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:273) 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) !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-10-31 14:17:59.174 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1737) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1703) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding$9.performAction(SourceTypeBinding.java:1496) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.performActionOnLinkedBindings(SourceTypeBinding.java:2519) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.methods(SourceTypeBinding.java:1468) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodBinding.ensureBindingsAreComplete(MethodBinding.java:773) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.findMethod(Scope.java:686) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1686) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79) at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263) at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488) at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171) at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79) at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488) at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171) at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79) at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431) at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89) at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:469) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findVariable(MethodScope.java:457) at org.eclipse.wst.jsdt.internal.compiler.lookup.BlockScope.findMethod(BlockScope.java:262) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:517) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263) at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241) at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolve(LocalDeclaration.java:153) at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89) at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFields(SourceTypeBinding.java:396) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:260) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:195) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildFieldsAndMethods(CompilationUnitScope.java:246) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:431) at org.eclipse.wst.jsdt.internal.compiler.Compiler.resolve(Compiler.java:659) at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:273) 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) !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:18:00.436 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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___$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_____________$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 at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1737) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1703) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding$9.performAction(SourceTypeBinding.java:1496) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.performActionOnLinkedBindings(SourceTypeBinding.java:2519) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.methods(SourceTypeBinding.java:1468) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodBinding.ensureBindingsAreComplete(MethodBinding.java:773) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.findMethod(Scope.java:686) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1686) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79) at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263) at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488) at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171) at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79) at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488) at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171) at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79) at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431) at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89) at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:469) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findVariable(MethodScope.java:457) at org.eclipse.wst.jsdt.internal.compiler.lookup.BlockScope.findMethod(BlockScope.java:262) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:517) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263) at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241) at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolve(LocalDeclaration.java:153) at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89) at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFields(SourceTypeBinding.java:396) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:260) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:195) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildFieldsAndMethods(CompilationUnitScope.java:246) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:431) at org.eclipse.wst.jsdt.internal.compiler.Compiler.resolve(Compiler.java:659) at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:273) 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.searchAllTypeNames(BasicSearchEngine.java:1108) at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllTypeNames(BasicSearchEngine.java:945) at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findTypes(SearchableEnvironment.java:416) at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:785) 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) !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:18:01.594 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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___$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_____________$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 at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1737) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1703) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding$9.performAction(SourceTypeBinding.java:1496) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.performActionOnLinkedBindings(SourceTypeBinding.java:2519) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.methods(SourceTypeBinding.java:1468) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodBinding.ensureBindingsAreComplete(MethodBinding.java:773) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.findMethod(Scope.java:686) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1686) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79) at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263) at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488) at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171) at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79) at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488) at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171) at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79) at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431) at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89) at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:469) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findVariable(MethodScope.java:457) at org.eclipse.wst.jsdt.internal.compiler.lookup.BlockScope.findMethod(BlockScope.java:262) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:517) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263) at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241) at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolve(LocalDeclaration.java:153) at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89) at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFields(SourceTypeBinding.java:396) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:260) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:195) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildFieldsAndMethods(CompilationUnitScope.java:246) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:431) at org.eclipse.wst.jsdt.internal.compiler.Compiler.resolve(Compiler.java:659) at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:273) 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) !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:18:01.595 !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 at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1737) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1703) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding$9.performAction(SourceTypeBinding.java:1496) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.performActionOnLinkedBindings(SourceTypeBinding.java:2519) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.methods(SourceTypeBinding.java:1468) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodBinding.ensureBindingsAreComplete(MethodBinding.java:773) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.findMethod(Scope.java:686) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1686) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79) at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263) at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488) at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171) at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79) at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488) at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171) at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79) at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431) at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89) at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:469) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findVariable(MethodScope.java:457) at org.eclipse.wst.jsdt.internal.compiler.lookup.BlockScope.findMethod(BlockScope.java:262) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:517) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263) at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241) at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolve(LocalDeclaration.java:153) at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89) at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFields(SourceTypeBinding.java:396) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:260) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:195) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildFieldsAndMethods(CompilationUnitScope.java:246) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:431) at org.eclipse.wst.jsdt.internal.compiler.Compiler.resolve(Compiler.java:659) at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:273) ... 18 more Caused by: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1737) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1703) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding$9.performAction(SourceTypeBinding.java:1496) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.performActionOnLinkedBindings(SourceTypeBinding.java:2519) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.methods(SourceTypeBinding.java:1468) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodBinding.ensureBindingsAreComplete(MethodBinding.java:773) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.findMethod(Scope.java:686) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1686) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79) at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263) at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488) at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171) at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79) at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488) at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171) at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79) at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431) at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89) at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:469) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findVariable(MethodScope.java:457) at org.eclipse.wst.jsdt.internal.compiler.lookup.BlockScope.findMethod(BlockScope.java:262) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:517) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263) at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241) at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolve(LocalDeclaration.java:153) at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89) at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFields(SourceTypeBinding.java:396) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:260) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:195) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildFieldsAndMethods(CompilationUnitScope.java:246) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:431) at org.eclipse.wst.jsdt.internal.compiler.Compiler.resolve(Compiler.java:659) at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:273) 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) !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-10-31 14:18:01.595 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1737) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1703) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding$9.performAction(SourceTypeBinding.java:1496) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.performActionOnLinkedBindings(SourceTypeBinding.java:2519) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.methods(SourceTypeBinding.java:1468) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodBinding.ensureBindingsAreComplete(MethodBinding.java:773) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.findMethod(Scope.java:686) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1686) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79) at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263) at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488) at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171) at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79) at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488) at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171) at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79) at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431) at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89) at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:469) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findVariable(MethodScope.java:457) at org.eclipse.wst.jsdt.internal.compiler.lookup.BlockScope.findMethod(BlockScope.java:262) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:517) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263) at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241) at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolve(LocalDeclaration.java:153) at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89) at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFields(SourceTypeBinding.java:396) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:260) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:195) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildFieldsAndMethods(CompilationUnitScope.java:246) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:431) at org.eclipse.wst.jsdt.internal.compiler.Compiler.resolve(Compiler.java:659) at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:273) 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) !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:18:02.855 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status =="success"){ 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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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___$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_____________$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 at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1737) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1703) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding$9.performAction(SourceTypeBinding.java:1496) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.performActionOnLinkedBindings(SourceTypeBinding.java:2519) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.methods(SourceTypeBinding.java:1468) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodBinding.ensureBindingsAreComplete(MethodBinding.java:773) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.findMethod(Scope.java:686) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1686) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79) at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263) at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488) at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171) at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79) at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488) at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171) at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79) at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431) at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89) at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:469) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findVariable(MethodScope.java:457) at org.eclipse.wst.jsdt.internal.compiler.lookup.BlockScope.findMethod(BlockScope.java:262) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:517) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263) at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241) at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolve(LocalDeclaration.java:153) at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89) at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462) at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129) at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372) at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538) at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568) at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFields(SourceTypeBinding.java:396) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:260) at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:195) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildFieldsAndMethods(CompilationUnitScope.java:246) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:431) at org.eclipse.wst.jsdt.internal.compiler.Compiler.resolve(Compiler.java:659) at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:273) 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.searchAllTypeNames(BasicSearchEngine.java:1108) at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllTypeNames(BasicSearchEngine.java:945) at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findTypes(SearchableEnvironment.java:416) at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:785) 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) !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:18:05.011 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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___$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_____________$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-10-31 14:18:05.074 !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-10-31 14:18:05.075 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:18:06.536 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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___$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_____________$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-10-31 14:18:07.321 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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___$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_____________$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-10-31 14:18:07.322 !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-10-31 14:18:07.322 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:18:08.108 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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___$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_____________$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-10-31 14:18:08.116 !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-10-31 14:18:08.117 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:18:09.546 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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___$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_____________$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-10-31 14:18:10.624 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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___$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_____________$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-10-31 14:18:10.625 !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-10-31 14:18:10.625 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:18:11.765 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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___$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_____________$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-10-31 14:18:12.538 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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___$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_____________$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-10-31 14:18:12.539 !MESSAGE Error while processing working copy !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100) at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865) at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327) at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754) at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310) at org.eclipse.wst.jsdt.web.ui.internal.hyperlink.JSDTHyperlinkDetector.detectHyperlinks(JSDTHyperlinkDetector.java:176) at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80) at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:289) at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:261) at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:469) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603) at org.eclipse.equinox.launcher.Main.run(Main.java:1465) at org.eclipse.equinox.launcher.Main.main(Main.java:1438) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-10-31 14:18:12.539 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:18:13.336 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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___$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_____________$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-10-31 14:18:14.006 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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___$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_____________$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-10-31 14:18:14.006 !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-10-31 14:18:14.007 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:18:16.495 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status =="success"){ 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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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___$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_____________$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-10-31 14:18:16.496 !MESSAGE java.lang.NullPointerException !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117) at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177) at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96) at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742) at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380) at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262) at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269) at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321) at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258) at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-10-31 14:18:16.496 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:20:33.776 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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___$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_____________$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-10-31 14:20:33.776 !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-10-31 14:20:33.776 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:20:34.512 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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___$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_____________$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-10-31 14:20:35.642 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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___$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_____________$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-10-31 14:20:35.642 !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-10-31 14:20:35.642 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:20:36.540 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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___$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_____________$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-10-31 14:20:38.924 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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___$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_____________$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-10-31 14:20:38.925 !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-10-31 14:20:38.925 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:20:39.606 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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___$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_____________$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-10-31 14:20:59.902 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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___$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_____________$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-10-31 14:20:59.903 !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-10-31 14:20:59.903 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:00.579 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status =="success"){ 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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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___$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_____________$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-10-31 14:21:01.695 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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___$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_____________$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-10-31 14:21:01.696 !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-10-31 14:21:01.696 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:02.388 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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___$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_____________$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-10-31 14:21:03.193 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status =="success"){ 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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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___$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_____________$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-10-31 14:21:03.194 !MESSAGE Error while processing working copy !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100) at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865) at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327) at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754) at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310) at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120) at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142) at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-10-31 14:21:03.194 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:03.840 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status =="success"){ 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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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___$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_____________$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-10-31 14:21:07.802 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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___$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_____________$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-10-31 14:21:07.803 !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-10-31 14:21:07.803 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:08.865 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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___$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_____________$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-10-31 14:21:09.273 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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___$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_____________$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-10-31 14:21:09.273 !MESSAGE Error while processing working copy !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100) at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865) at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327) at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754) at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310) at org.eclipse.wst.jsdt.web.ui.internal.hyperlink.JSDTHyperlinkDetector.detectHyperlinks(JSDTHyperlinkDetector.java:176) at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80) at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:289) at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:261) at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:469) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603) at org.eclipse.equinox.launcher.Main.run(Main.java:1465) at org.eclipse.equinox.launcher.Main.main(Main.java:1438) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-10-31 14:21:09.274 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:10.388 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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___$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_____________$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-10-31 14:21:13.074 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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___$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_____________$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-10-31 14:21:13.075 !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-10-31 14:21:13.075 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:14.137 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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___$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_____________$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-10-31 14:21:15.976 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status =="success"){ 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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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___$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_____________$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-10-31 14:21:15.976 !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-10-31 14:21:15.977 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:17.155 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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___$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_____________$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-10-31 14:21:17.481 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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"; } html += "_$ta"; 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_____________$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-10-31 14:21:17.481 !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-10-31 14:21:17.481 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:19.149 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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"; } html += "_$ta"; 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_____________$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-10-31 14:21:19.149 !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-10-31 14:21:19.149 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:39.755 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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"; } html += "_$ta"; 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_____________$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-10-31 14:21:39.755 !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-10-31 14:21:39.755 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:40.810 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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"; } html += "_$ta"; 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_____________$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-10-31 14:21:43.894 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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"; } html += "_$ta"; 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_____________$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-10-31 14:21:43.895 !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-10-31 14:21:43.895 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:44.976 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- (function(){WdatePicker();})(); (function(){WdatePicker();})(); (function(){Data.get();})(); (function(){Data.set();})(); (function(){search();})(); $(function(){ $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;"); getfp(); }); var Data = { "get" : function(){ if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){ var tip = layer.load(2); var result=""; var url = "getgyxml.do"; $.ajax({ "url" : url, "data" : { "start_date" : $("#dateBegin").val(), "end_date" : $("#dateEnd").val() }, "type" : "POST", "dataType" : "json", "success" : function(data) { if(data != null && data != ""){ if ( data.status =="success"){ getfp(); alert("获取成功!"); }else { alert(data.status); } }else { alert("获取失败!"); } }, "complete": function(){ layer.close(tip); } }); }else { alert("请选择日期!"); } }, "set" : function(){ if ( $("#fpid option:selected").text() !=""){ var tip = layer.load(2); var gitem = $("#form1").serialize(); var jrjc; if ($("#jrjc").prop('checked') == true){ jrjc = $("#departmentId").val(); }else { jrjc ='N' } var url = "saverk.do"; $.ajax({ "url" : url, "data" : { "gitem" : gitem, "jrjc" : jrjc }, "type" : "POST", "dataType" : "json", "async" : true, "success" : function(data) { if(data.status =="success"){ 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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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"; } html += "_$ta"; 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_____________$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-10-31 14:21:45.793 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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"; } html += "_$ta"; 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_____________$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-10-31 14:21:45.794 !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-10-31 14:21:45.794 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:46.915 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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"; } html += "_$ta"; 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_____________$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-10-31 14:21:47.426 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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"; } html += "_$ta"; 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_____________$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-10-31 14:21:47.427 !MESSAGE Error while processing working copy !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100) at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865) at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327) at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754) at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310) at org.eclipse.wst.jsdt.web.ui.internal.hyperlink.JSDTHyperlinkDetector.detectHyperlinks(JSDTHyperlinkDetector.java:176) at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80) at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:289) at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:261) at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:469) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603) at org.eclipse.equinox.launcher.Main.run(Main.java:1465) at org.eclipse.equinox.launcher.Main.main(Main.java:1438) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-10-31 14:21:47.427 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:48.446 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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"; } html += "_$ta"; 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_____________$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-10-31 14:21:48.849 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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"; } html += "_$ta"; 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_____________$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-10-31 14:21:48.849 !MESSAGE Error while processing working copy !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100) at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865) at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327) at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754) at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310) at org.eclipse.wst.jsdt.web.ui.internal.hyperlink.JSDTHyperlinkDetector.detectHyperlinks(JSDTHyperlinkDetector.java:176) at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80) at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:289) at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:261) at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:469) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603) at org.eclipse.equinox.launcher.Main.run(Main.java:1465) at org.eclipse.equinox.launcher.Main.main(Main.java:1438) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-10-31 14:21:48.850 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:49.841 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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"; } html += "_$ta"; 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_____________$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-10-31 14:21:50.346 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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"; } html += "_$ta"; 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_____________$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-10-31 14:21:50.347 !MESSAGE Error while processing working copy !STACK 1 JavaScript Model Exception: java.lang.NullPointerException at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244) at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241) at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100) at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865) at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520) at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343) at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327) at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754) at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167) at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330) at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310) at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120) at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142) at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166) Caused by: java.lang.NullPointerException Caused by: java.lang.NullPointerException !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-10-31 14:21:50.347 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:51.066 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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"; } html += "_$ta"; 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_____________$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-10-31 14:21:51.917 !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(data.status); } }, "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; var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit; 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"; } html += "_$ta"; 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_____________$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