var commonGridObj_invoicepayedit; var comboCustomer;//委托单位 //var comboBank;//开户银行 //var comboAccount;//银行账户 var comboCurrency;//币别 var pressRecord; function $(id){ return document.getElementById(id); } function getObj(strClassName){ var tagArgs=document.getElementsByTagName("div"); var resultObj = null; for(var i = 0;i 0){ for(var i=0;i"; // result += "
海运出口
"; // result += "
委托方式
"; // result += "
主提单号
"; // result += "
分提单号
"; // result += "
委托编号
"; // result += "
录入人
"; // result += "
录入时间
"; var jsonCacheObj = null; var tempCache = ""; tempCache = $("h_opcache").value; //var dvOpSeae = getObj("row"); //var dvBottom = getObj("row lastrow"); var dvTable = getObj("table"); //var result = ""; //var bottomResult = ""; if(tempCache != null){ jsonCacheObj = eval('(' + tempCache + ')'); if(jsonCacheObj.opinfo.length){ result += "
"; result += "
"+jsonCacheObj.opinfo[0].oplb+"
"; result += "
委托方式
"; result += "
主提单号
"; result += "
分提单号
"; result += "
委托编号
"; result += "
录入人
"; result += "
录入时间
"; if(jsonCacheObj.opinfo.length == 1){ result += "
" result += "
+
"; result += "
"+jsonCacheObj.opinfo[0].bsno+"
"; result += "
"+jsonCacheObj.opinfo[0].bsstatus+"
"; result += "
"+jsonCacheObj.opinfo[0].mblno+"
"; result += "
"+jsonCacheObj.opinfo[0].hblno+"
"; result += "
"+jsonCacheObj.opinfo[0].custno+"
"; result += "
"+jsonCacheObj.opinfo[0].inputby+"
"; result += "
"+jsonCacheObj.opinfo[0].ctime+"
"; result += "
"; // dvOpSeae.style.display = "none"; // dvBottom.innerHTML = bottomResult; }else{ for(var i = 0;i" result += "
+
"; result += "
"+jsonCacheObj.opinfo[i].bsno+"
"; result += "
"+jsonCacheObj.opinfo[i].bsstatus+"
"; result += "
"+jsonCacheObj.opinfo[i].mblno+"
"; result += "
"+jsonCacheObj.opinfo[i].hblno+"
"; result += "
"+jsonCacheObj.opinfo[i].custno+"
"; result += "
"+jsonCacheObj.opinfo[i].inputby+"
"; result += "
"+jsonCacheObj.opinfo[i].ctime+"
"; result += ""; }else{ result += "
" result += "
+
"; result += "
"+jsonCacheObj.opinfo[i].bsno+"
"; result += "
"+jsonCacheObj.opinfo[i].bsstatus+"
"; result += "
"+jsonCacheObj.opinfo[i].mblno+"
"; result += "
"+jsonCacheObj.opinfo[i].hblno+"
"; result += "
"+jsonCacheObj.opinfo[i].custno+"
"; result += "
"+jsonCacheObj.opinfo[i].inputby+"
"; result += "
"+jsonCacheObj.opinfo[i].ctime+"
"; result += "
"; } } //dvOpSeae.innerHTML = result; } //result += ""; dvTable.innerHTML = result; } } } function createGrid(){ //header var headerArgs_invoiceappedit = new Array("","收/付","费用名称","结算单位","计费标准","单价","数量","金额","币别","汇率","申请开票金额","未申请开票金额"); //width var widthArgs_invoiceappedit = new Array("40","40","120","120","70","80","80","80","70","70","100","100"); //column align var colAlignArgs_invoiceappedit = new Array("center","center","center","center","center","center","center","center","center","center","center","center"); //column sort var colSortArgs_invoiceappedit = new Array("na","str","str","str","str","str","str","str","str","str","str","str"); //column type var colTypeArgs_invoiceappedit = new Array("ch","ro","ro","ro","ro","ro","ro","ro","ro","ro","ro","ro"); commonGridObj_invoicepayedit = new TGridCommon("mygrid_container_fee","form1",headerArgs_invoiceappedit,widthArgs_invoiceappedit,colAlignArgs_invoiceappedit,colSortArgs_invoiceappedit,colTypeArgs_invoiceappedit); commonGridObj_invoicepayedit.setResponseUrl("InvoiceApplicationGridSource.aspx"); var invoiceAppGID = $("h_invoiceappid").value; var invoiceBSNO = $("h_bsno").value; commonGridObj_invoicepayedit.setRequest("InvoiceApplicationGridSource.aspx?handle=invoiceappeditfee&invoiceappid="+invoiceAppGID+"&bsno="+invoiceBSNO); commonGridObj_invoicepayedit.setSourceType("json"); commonGridObj_invoicepayedit.setSkin("xp"); commonGridObj_invoicepayedit.setImageUrl("../images/"); commonGridObj_invoicepayedit.initGrid(); commonGridObj_invoicepayedit.bind(); commonGridObj_invoicepayedit.getGridObj().attachEvent("onEditCell",function(stage,rId,cInd,nValue,oValue){ if(stage == 0){ if(cInd == 2 || cInd == 3){ return false; }else{ return true; } } }); } function initComboCustomer(){ comboCustomer = dhtmlXComboFromSelect("sel_customer"); } //function initComboBank(){ // comboBank = dhtmlXComboFromSelect("sel_bank"); //} //function initComboAccount(){ // comboAccount = dhtmlXComboFromSelect("sel_account"); //} function initComboCurrency(){ comboCurrency = dhtmlXComboFromSelect("sel_currency"); } function createComboCurrency(){ if($("h_currency").value.trim() != ""){ comboCurrency.setComboText($("h_currency").value); comboCurrency.disable(true); } } //function createComboBank(){ // if($("h_bank").value.trim() != ""){ // comboBank.setComboText($("h_bank").value); // comboBank.disable(true); // } //} //function createComboAccount(){ // if($("h_account").value.trim() != ""){ // comboAccount.setComboText($("h_account").value); // comboAccount.disable(true); // } //} function createComboCustomer(){ if($("h_customer").value.trim() != ""){ comboCustomer.setComboText($("h_customer").value); comboCustomer.disable(true); } } String.prototype.trim = function() { return this.replace(/(^\s*)|(\s*$)/g,""); }