|
|
|
|
var commonGridObj_wfstep;
|
|
|
|
|
|
|
|
|
|
function createGrid(){
|
|
|
|
|
//header
|
|
|
|
|
var headerArgs_workflow = new Array("<input type=\"checkbox\" id=\"ck_all\" onclick=\"checkAll(commonGridObj_workflow)\" />","系统名称","显示名称","关联模块","步骤信息","创建人","创建时间","状态","排序值","是否已删除");
|
|
|
|
|
//width
|
|
|
|
|
var widthArgs_workflow = new Array("40","150","150","120","120","150","150","70","70","70");
|
|
|
|
|
//column align
|
|
|
|
|
var colAlignArgs_workflow = new Array("center","center","center","center","center","center","center","center","center","center");
|
|
|
|
|
//column sort
|
|
|
|
|
var colSortArgs_workflow = new Array("na","str","str","str","str","str","str","str","str","str");
|
|
|
|
|
//column type
|
|
|
|
|
var colTypeArgs_workflow = new Array("ch","ro","ro","ro","ro","ro","ro","ch","ro","ch");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commonGridObj_wfstep = new TGridCommon("mygrid_container_wfstep","form1",headerArgs_workflow,widthArgs_workflow,colAlignArgs_workflow,colSortArgs_workflow,colTypeArgs_workflow);
|
|
|
|
|
|
|
|
|
|
commonGridObj_wfstep.setResponseUrl("WorkFlowGridSource.aspx");
|
|
|
|
|
commonGridObj_wfstep.setRequest("WorkFlowGridSource.aspx?handle=workflowlist");
|
|
|
|
|
commonGridObj_wfstep.setSourceType("json");
|
|
|
|
|
commonGridObj_wfstep.setSkin("xp");
|
|
|
|
|
commonGridObj_wfstep.setImageUrl("../images/");
|
|
|
|
|
commonGridObj_wfstep.initGrid();
|
|
|
|
|
commonGridObj_wfstep.bind();
|
|
|
|
|
|
|
|
|
|
commonGridObj_wfstep.getGridObj().attachEvent("onEditCell",function(stage,rId,cInd,nValue,oValue){
|
|
|
|
|
if(stage == 0){
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
commonGridObj_wfstep.getGridObj().attachEvent("onRowSelect", function(id,ind){
|
|
|
|
|
var rId = commonGridObj_wfstep.getGridObj().getSelectedRowId();
|
|
|
|
|
var openSet = "height=270, width=500, toolbar=no, menubar=no,scrollbars=no, resizable=1,location=no, status=no,Top= " +(screen.height-710)/2 + ",Left= "+(screen.width-800)/2
|
|
|
|
|
var openType = "_blank";
|
|
|
|
|
|
|
|
|
|
var openUrl = "Edit.aspx?flowid="+rId+"&handle=edit";
|
|
|
|
|
window.open (openUrl,openType,openSet);
|
|
|
|
|
});
|
|
|
|
|
}
|