|
吉吉﹑ 发表于 2013-1-15 09:44
啥是生成的HTML代码知道吗?不是程序的源代码。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>
</title><!-- Powered by ExtAspNet v3.1.7 - ExtJS based ASP.NET 2.0 Controls with Full AJAX Support - http://extaspnet.codeplex.com/ -->
<link href="/SKY.WEB/WebResource.axd?d=9BkWOtJBHYLBSn-EJEP21UckKLZGtJIvzWvgg0r0Jg6HYn8aVHvaNKouu02UEZ6UF78EGYEpmBdCCN1DTrqMGkmkaihRQNtx2krwL3Hl4U_L6vZ1bx2Eb8XDsPI0vG8cd-hHLYpG9hT2HK_ZiquAzQ2&t=634776304622896373" rel="stylesheet" text="text/css"/>
</head>
<body>
<form name="form1" method="post" action="ManageAuditing.aspx?MCODE=S0302" id="form1">
<div>
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJLTU5MDk5NjM5ZBgBBR5fX0NvbnRyb2xzUmVxdWlyZVBvc3RCYWNrS2V5X18WFQUIRUdfUGFubGUFEEVHX1BhbmxlJEVHX0RhdGEFFUVHX1BhbmxlJEVUb29sQmFyJEFERAUWRUdfUGFubGUkRVRvb2xCYXIkRURJVAUYRUdfUGFubGUkRVRvb2xCYXIkREVMRVRFBRhFR19QYW5sZSRFVG9vbEJhciRPVVRQVVQFGEVHX1BhbmxlJEVUb29sQmFyJElNUE9SVAUXRUdfUGFubGUkRVRvb2xCYXIkUFJJTlQFBldfRWRpdAUTV19FZGl0JFdfRWRpdF9Gcm9tMQUpV19FZGl0JFdfRWRpdF9Gcm9tMSRFVEJfQVVESVRfVEVNUExBVEVfSUQFK1dfRWRpdCRXX0VkaXRfRnJvbTEkRVRCX0FVRElUX1RFTVBMQVRFX05BTUUFH1dfRWRpdCRXX0VkaXRfRnJvbTEkRUREX0lTU1RBUlQFH1dfRWRpdCRXX0VkaXRfRnJvbTEkRUREX0lTR1JFRUQFJ1dfRWRpdCRXX0VkaXRfRnJvbTEkRVRCX0FVRElUX1NURVBfU09SVAUkV19FZGl0JFdfRWRpdF9Gcm9tMSRFRERfQVVESVRfT0JKRUNUBSNXX0VkaXQkV19FZGl0X0Zyb20xJEVERF9SRVRVUk5fVFlQRQUiV19FZGl0JFdfRWRpdF9Gcm9tMSRFVEJfQVVESVRfTk9URQUTV19FZGl0JGN0bDAwJEVkaXRPSwUXV19FZGl0JGN0bDAwJEVkaXRDYW5jZWwFCVdfQ29tbWFuZPzUxfsW5Ze4Dp43EuR9QI3r4i1UhVOIKNg6NRLrCttI" />
</div>
<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['form1'];
if (!theForm) {
theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
//]]>
</script>
<div id='loading-mask'></div><div id='loading'><div class='loading-indicator'><img align='absmiddle' src='/SKY.WEB/WebResource.axd?d=RFAb0jhoG9XKX0yq0XUhlCqDYNpXGn0FmP93QBBbxrWIaaVZosgAQ6IzhgCf6CTN86Xk_5qkAk3Oqv4MLlnio8PISreB_XRAhp2hPqwFM1FQfK0jspkbm5VjElumaqox9VdZFkl2GJUkvhNw2MvKyg2&t=634776304622896373'/></div></div><div id="PM1_wrapper"></div>
<div id="EG_Panle_EG_Data_tpls" class="x-grid-tpls x-hide-display"></div>
<script src="/SKY.WEB/WebResource.axd?d=M-1mBNVrYSsjgWqcdKxEv6fVVzY2PSgLBqiK217G6oAJMeZje7YOtUBUTdbbBASEnJyVvPzYF53H42mmmws1caKU3S0r6mnfk6Ojo9XeYZwDmulU236CIYIdap4wzA0Z0&t=634776304622896373" type="text/javascript"></script>
<script src="/SKY.WEB/WebResource.axd?d=ci6t94ju1foJoqtJx_ote7BO-PW6ZdvEJWX179sMAFzNTnSO4IY80UcnKYbaAXkcO9zkzj1To28gC966tmQcggD9cZc4W6PeSiJpAt7xliixxBvfbQfmFA2bLxS8oRslCB6iVsJf0o4-CYC2FkybqA2&t=634776304622896373" type="text/javascript"></script>
<script src="/SKY.WEB/WebResource.axd?d=QdJFvay9xbAlQFsxmkhInfKxAngAJzYtWRaYw0xDh8aQm8el5vWp2KQn6APcEY3cGzkJexCS38G1QQxxJbkrPrLdKyiyjYxo7iYuZmpA4O3UO939BDHY4bFWisGY6aGa0&t=634776304622896373" type="text/javascript"></script>
<script src="/SKY.WEB/WebResource.axd?d=AB1ROOKKNFa5PmMM2f48PaHYQf7Mh-JUgjfMqFCQ8ovewn-sqwZhxraaBXFBtx4OgJWE3r_7k9SByJ68S1w68dSx7SuD4nf9gmGxqLdZWWMh0SSibp-IyB5hkVO0oEQv0&t=634776304622896373" type="text/javascript"></script>
<script src="/SKY.WEB/WebResource.axd?d=RyHr6Zz4z57DqgFqQigY6_fUt7xJOytGdg0M8HGQRDCJJBJGEROjW_5oTrfdtpQ6Sg8c5me0peRfi2gPBqIw_fyU2ce8OFCf9K-8AfOgMXbBAbD-jLktcym1UV3I9qwP0&t=634776304622896373" type="text/javascript"></script>
<script src="/SKY.WEB/WebResource.axd?d=lY4YDh_wMnOQNn5mbdfREVO7qpIwQlea-dkYfyCw-VXvYYueA2SkHKIQi7vYG4ODitdNAQk4RGGjwkWLd3QXHA6y8zHjExSvOvkBScj9787Ksq6KEkPop6hLBFQRPAoURupJYyTwHckVPlVHYHdMwA2&t=634776304622896373" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
Ext.onReady(function(){X.util.init('side',100,':',false,'/SKY.WEB/WebResource.axd?d=nHriyeAzonTwBS0lVRjOpZVbS6xAVOm29jXdKjLuPda-j6G3jKpcj3jSRuQGy3kqBp_CXWlNa5OGJOidsWnGKmOHN74DJjCliaKB_zCy_RaTxDeE1CMT9lxHwKJ3YpfL0&t=634776304622896373',true,true,'default',true);var x2_sm=new Ext.grid.CheckboxSelectionModel({singleSelect:false});var x2_store=new Ext.data.ArrayStore({fields:["DF_ID","DF_USERNAME","DF_IsStart","DF_IsGreed","DF_Sort","DF_USERPASSWORD","ct6","ct7","DF_ReturnType","DF_USERACCOUNT","DF_CreateUser","DF_CreateDate"]});var x2_cm=new Ext.grid.ColumnModel({columns:[new Ext.grid.RowNumberer(),x2_sm,{header:"流程序号",hidden:true,dataIndex:"DF_ID",id:"DF_ID"},{header:"流程名称",dataIndex:"DF_USERNAME",id:"DF_USERNAME",width:150},{header:"是否启动流程",dataIndex:"DF_IsStart",id:"DF_IsStart",width:100},{header:"是否启动绿色流程",dataIndex:"DF_IsGreed",id:"DF_IsGreed",width:120},{header:"排序号",dataIndex:"DF_Sort",id:"DF_Sort",width:60},{header:"适用类型",dataIndex:"DF_USERPASSWORD",id:"DF_USERPASSWORD",width:100},{header:"条件配置",dataIndex:"ct6",id:"ct6",width:100},{header:"环节版本管理",dataIndex:"ct7",id:"ct7",width:100},{header:"退回类型",dataIndex:"DF_ReturnType",id:"DF_ReturnType",width:120},{header:"流程描述",dataIndex:"DF_USERACCOUNT",id:"DF_USERACCOUNT",width:150},{header:"创建者",dataIndex:"DF_CreateUser",id:"DF_CreateUser",width:60},{header:"创建时间",dataIndex:"DF_CreateDate",id:"DF_CreateDate",width:120}],defaults:{width:100}});var x2_paging=new Ext.ux.SimplePagingToolbar({pageSize:20,pageIndex:0,recordCount:5,pageCount:1,x_startRowIndex:0,x_endRowIndex:4,displayInfo:true,onLoadPage:function(pageIndex){__doPostBack('EG_Panle$EG_Data','Page$'+pageIndex);}});var x2=new Ext.grid.GridPanel({x_state:{"EnableDrag":true},id:"W_Edit",renderTo:"W_Edit_wrapper",listeners:{render:function(comp){comp.tools.close.addListener('click', function(){X('W_Edit').box_hide();})}},width:350,items:[x10],tbar:x11,bodyStyle:"",border:true,autoHeight:true,animCollapse:true,collapsible:false,collapsed:false,title:"[W_Edit]",closeAction:"hide",plain:false,modal:true,draggable:true,minimizable:false,minHeight:100,minWidth:200,resizable:false,manager:X.window_default_group,box_property_target:"_self",box_property_guid:"x12_f369fb9c13f84004bc97dd7502356437",box_hide:function(){X.wnd.hide(this, '_self', false, 'W_Edit_Hidden', 'x12_f369fb9c13f84004bc97dd7502356437');},box_hide_refresh:function(){this.box_hide();window.location.reload();},box_hide_postback:function(argument){this.box_hide();__doPostBack('W_Edit',argument);},box_show:function(iframeUrl, windowTitle){X.wnd.show(this, iframeUrl, windowTitle, '', '', true, 'W_Edit_Hidden');},maximizable:false,closable:true,onEsc:function(){X('W_Edit').box_hide();}});X.util.appendFormNode('<div class="x-window-wrapper" id="W_Command_wrapper"></div>');X.util.setHiddenFieldValue('W_Command_Hidden','true');var x23=new Ext.Window({x_state:{},id:"W_Command",renderTo:"W_Command_wrapper",listeners:{render:function(comp){comp.tools.close.addListener('click', function(){X('W_Command').box_hide();})}},width:1024,height:550,bodyStyle:"",border:true,x_iframe:true,x_iframe_url:"",x_iframe_name:"x23_ef80fcb2df3e43259d9d791c71c7a9cc",x_iframe_loaded:false,animCollapse:true,collapsible:false,collapsed:false,title:"[W_Command]",closeAction:"hide",plain:false,modal:true,draggable:true,minimizable:false,minHeight:100,minWidth:200,resizable:false,manager:X.window_default_group,box_property_target:"_self",box_property_guid:"x23_ef80fcb2df3e43259d9d791c71c7a9cc",box_hide:function(){X.wnd.hide(this, '_self', true, 'W_Command_Hidden', 'x23_ef80fcb2df3e43259d9d791c71c7a9cc');},box_hide_refresh:function(){this.box_hide();window.location.reload();},box_hide_postback:function(argument){this.box_hide();__doPostBack('W_Command',argument);},box_show:function(iframeUrl, windowTitle){X.wnd.show(this, iframeUrl, windowTitle, '', '', true, 'W_Command_Hidden');},maximizable:false,closable:true,onEsc:function(){X('W_Command').box_hide();}});X.util.removePageLoading(false);var x1=new Ext.ux.FormViewport({x_state:{},id:"PM1",renderTo:"PM1_wrapper",layout:"fit",border:false,items:x0});X.ready();});//]]>
</script>
</form>
</body>
</html>
<script type="text/javascript">
// 页面第一个加载完毕后执行的函数
function onReady() {
var grid = X(gridClientID);
grid.addListener('rowcontextmenu', rightClickFn);
}
var gridClientID = 'EG_Panle_EG_Data'; //定义GRID
var rightClick = new Ext.menu.Menu(
{
id: 'rightClickCont',
items: [
{
cls: "x-btn-text-icon",
icon: "./res.axd?icon=Page",
handler: function () {
alert('123');
},
text: '预览订单'
}
]
});
//右键菜单代码关键部分
function rightClickFn(grid, rowindex, e) {
var model = grid.getSelectionModel();
model.selectRow(rowindex);
e.preventDefault();
rightClick.showAt(e.getXY());
}
|
|