var commonGridObj_orderlist; var comboVESSEL;//船名 var comboVOYNO;//航次 var comboOP;//操作人员 var s0=""; var sortName = ""; var sortIndex = ""; var newHeaderArgs; var newWidthArgs; var newColAlignArgs; var newColSortArgs; var newColTypeArgs; //两端去空格函数 String.prototype.trim = function() { return this.replace(/(^\s*)|(\s*$)/g, ""); } function $(id){ return document.getElementById(id); } function createGrid(type) { //获取自定义列表样式 //if (document.getElementById("origOpSeai") == null) { var url = "../UserSettings/UserGridSource/OrigCwVouchersOpSeaiListGrid.js?uid="+newGuid(); var loader = dhtmlxAjax.getSync(url); var jsVal = loader.xmlDoc.responseText; var oHead = document.getElementsByTagName('head').item(0); var oScript = document.createElement( "script" ); oScript.language = "javascript"; oScript.type = "text/javascript"; oScript.id = "origOpSeai"; oScript.defer = true; oScript.text = jsVal; oHead.appendChild(oScript); //} // var searchJson = ""; if(type == 2){ var _begintime = $("txt_beginetd").value.trim(); if(_begintime.trim() != ""){ if(!validateDateTime(_begintime)){ alert("起始时间格式错误"); return; } } var _endtime = $("txt_endetd").value.trim(); if(_endtime.trim() != ""){ if(!validateDateTime(_endtime)){ alert("结束时间格式错误"); return; } } var _vessel = $("h_vessel").value.trim(); var _voyno = $("h_voyno").value.trim(); var _sale = $("h_sale").value.trim(); var _checkno = $("txt_no").value.trim(); var _checkno2 = $("txt_no2").value.trim(); var _mblno = $("txt_mblno").value.trim(); var _accdate = $("txt_accdate").value.trim(); var _accdate2 = $("txt_accdate2").value.trim(); var _vouno = $("txt_vouno").value.trim(); var _vouno2 = $("txt_vouno2").value.trim(); var searchJson = ""; //begin searchJson +="{"; searchJson += "["; //如果查询条件设置了起始时间和结束时间则判断结束时间是否大于起始时间 if(_begintime != "" && _endtime != ""){ if(_begintime.length > 9 && _endtime.length > 9){ var status = DateTimeEqual(_begintime,_endtime); if(status == 0){ searchJson += "\"btime\":\""+_begintime+"\"," searchJson += "\"etime\":\""+_endtime+"\"," }else if(status == -1){ alert("时间设置错误,起始时间不能大于结束时间,请修改!"); return; } // else if(status == -2){ // alert("时间设置错误,起始时间不能等于结束时间,请修改!"); // return; // } } else{ alert("时间格式有问题,长度应大于9个字符,请修改!"); return; } }else{ searchJson += "\"btime\":\""+_begintime+"\"," searchJson += "\"etime\":\""+_endtime+"\"," } searchJson += "\"vessel\":\""+_vessel+"\","; searchJson += "\"voyno\":\""+_voyno+"\","; searchJson += "\"accdate\":\"" + _accdate + "\","; searchJson += "\"accdate2\":\"" + _accdate2 + "\","; searchJson += "\"vouno\":\"" + _vouno + "\","; searchJson += "\"vouno2\":\"" + _vouno2 + "\","; searchJson += "\"sale\":\"" + _sale + "\","; searchJson += "\"no\":\""+_checkno+"\","; searchJson += "\"no2\":\"" + _checkno2 + "\","; searchJson += "\"mblno\":\"" + _mblno + "\","; searchJson += "\"cbisvou\":\"" + $("cbISVOU").checked + "\""; searchJson += "]"; searchJson +="}"; } s0=""; var strCNTR = dhtmlxAjax.getSync("../FeeCodes/TopCtnAdapter.aspx?cntr=cntr&val="+newGuid()); var sCNTR = strCNTR.xmlDoc.responseText; var jsonCtnObj = null; if(sCNTR.trim() != ""){ jsonCtnObj = eval('(' + sCNTR + ')'); for(var i=0;i 1 && commonGridObj_orderlist.sortType.length > 1){ if(searchcacheName != ""){ commonGridObj_orderlist.setRequest("CwVouchersOpSeaiListGridSource.aspx?handle=list&show_page=15&cur_page=1&uid="+commonGridObj_orderlist.newGuid()+"&sort="+commonGridObj_orderlist.sortValue+"&sortindex="+commonGridObj_orderlist.sortType+"&cntr="+s0+"&searchcachename="+searchcacheName); }else{ if(searchJson.trim() != ""){ commonGridObj_orderlist.setRequest("CwVouchersOpSeaiListGridSource.aspx?handle=list&show_page=15&cur_page=1&search="+escape(searchJson)+"&uid="+commonGridObj_orderlist.newGuid()+"&sort="+commonGridObj_orderlist.sortValue+"&sortindex="+commonGridObj_orderlist.sortType+"&cntr="+s0); }else{ commonGridObj_orderlist.setRequest("CwVouchersOpSeaiListGridSource.aspx?handle=list&show_page=15&cur_page=1&uid="+commonGridObj_orderlist.newGuid()+"&sort="+commonGridObj_orderlist.sortValue+"&sortindex="+commonGridObj_orderlist.sortType+"&cntr="+s0); } } }else{ if(searchcacheName != ""){ commonGridObj_orderlist.setRequest("CwVouchersOpSeaiListGridSource.aspx?handle=list&show_page=15&cur_page=1&uid="+commonGridObj_orderlist.newGuid()+"&sort=etd&sortindex=desc"+"&cntr="+s0+"&searchcachename="+searchcacheName); }else{ if(searchJson.trim() != ""){ commonGridObj_orderlist.setRequest("CwVouchersOpSeaiListGridSource.aspx?handle=list&show_page=15&cur_page=1&search="+escape(searchJson)+"&uid="+commonGridObj_orderlist.newGuid()+"&sort=etd&sortindex=desc"+"&cntr="+s0); }else{ commonGridObj_orderlist.setRequest("CwVouchersOpSeaiListGridSource.aspx?handle=list&show_page=15&cur_page=1&uid="+commonGridObj_orderlist.newGuid()+"&sort=etd&sortindex=desc"+"&cntr="+s0); } } } if(searchcacheName != ""){ commonGridObj_orderlist.setMultiple("&searchcachename="+searchcacheName); } commonGridObj_orderlist.setSourceType("json"); commonGridObj_orderlist.setSkin("xp"); commonGridObj_orderlist.setImageUrl("../images/"); commonGridObj_orderlist.loadafter = true; commonGridObj_orderlist.after = function () { var url = "../UserSettings/UserGridSource/OrigCwVouchersOpSeaiListGrid.js?uid=" + newGuid(); var loader = dhtmlxAjax.getSync(url); var jsVal = loader.xmlDoc.responseText; var oHead = document.getElementsByTagName('head').item(0); var oScript = document.createElement("script"); oScript.language = "javascript"; oScript.type = "text/javascript"; oScript.id = "origOpSeai"; oScript.defer = true; oScript.text = jsVal; oHead.appendChild(oScript); // var arg = new Array(); if(newColSortArgs.length == colSortArgs_orderlist.length){ for(var i=0;i 0){ isEqual = -1;//起始时间大于结束时间 }else if(Date.parse(begin) - Date.parse(end) == 0){ isEqual = -2;//起始时间与结束时间相等 } return isEqual; } //根据条件查询付费申请信息 function search(){ createGrid(2); } String.prototype.trim = function() { return this.replace(/(^\s*)|(\s*$)/g,""); } function searchMultiple(){ printMessageBox(event); } function editOpSeai(){ var selArg = new Array(); var iCount = 0; for(var i=0;i" + "" + "
"+content+"
"; var v_top=(document.body.clientHeight-mesW.clientHeight)/2; v_top+=document.documentElement.scrollTop; styleStr="top:"+(v_top-180)+"px;left:"+(document.body.clientWidth/2-mesW.clientWidth/2)+"px;position:absolute;width:700px;margin-left:-300px;left:50%;z-index:9999;"; mesW.style.cssText=styleStr; document.body.appendChild(mesW); } //让背景渐渐变暗 function showBackground(obj,endInt){ if(isIe){ obj.filters.alpha.opacity+=5; if(obj.filters.alpha.opacity" + "