You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DS7/DSWeb/js/FeeCodeList.js

54 lines
2.6 KiB
JavaScript

2 years ago
var commonGridObj_feecode;
var comboCustomer;//委托单位
function $(id){
return document.getElementById(id);
}
function createGrid(){
//header
var headerArgs_feecode = new Array("","费用代码","系统名称","描述信息","默认币别","是否海运","是否空运","默认计费标准","默认收费客户类型","默认付费客户类型","创建人","创建时间");
//width
var widthArgs_feecode = new Array("70","120","70","70","70","70","150","150","150","150","110","200");
//column align
var colAlignArgs_feecode = new Array("center","center","center","center","center","center","center","center","center","center","center","center");
//column sort
var colSortArgs_feecode = new Array("na","txt","txt","txt","txt","txt","txt","txt","txt","txt","txt","txt");
//column type
var colTypeArgs_feecode = new Array("ch","ro","ro","ro","ro","ch","ch","co","co","ro","ro","ro");
commonGridObj_feecode = new TGridCommon("mygrid_container_feecode","form1",headerArgs_feecode,widthArgs_feecode,colAlignArgs_feecode,colSortArgs_feecode,colTypeArgs_feecode);
commonGridObj_feecode.setResponseUrl("FeeCodeGridSource.aspx");
commonGridObj_feecode.setRequest("FeeCodeGridSource.aspx?handle=codelist&show_page=15&cur_page=1&uid="+commonGridObj_feecode.newGuid());
commonGridObj_feecode.setSourceType("json");
commonGridObj_feecode.setSkin("xp");
commonGridObj_feecode.setImageUrl("../images/");
commonGridObj_feecode.initGrid();
commonGridObj_feecode.bind();
commonGridObj_feecode.initPageByHandle("codelist");
// commonGridObj_feecode.getGridObj().attachEvent("onRowSelect", function(id,ind){
// var openSet = "height=490, width=1000, toolbar=no, menubar=no,scrollbars=no, resizable=no,location=no, status=no,Top= " +(screen.height-490)/2 + ",Left= "+(screen.width-1000)/2
// var openType = "_blank";
//
// var openUrl = "SettlementEdit.aspx?handle=edit&id="+id;
// window.open (openUrl,openType,openSet);
//
// });
//
// commonGridObj_feecode.clickEvent = function(){
// commonGridObj_feecode.getGridObj().attachEvent("onRowSelect", function(id,ind){
// var openSet = "height=490, width=1000, toolbar=no, menubar=no,scrollbars=no, resizable=no,location=no, status=no,Top= " +(screen.height-490)/2 + ",Left= "+(screen.width-1000)/2
// var openType = "_blank";
//
// var openUrl = "SettlementEdit.aspx?handle=edit&id="+id;
// window.open (openUrl,openType,openSet);
//
// });
// }
}