1212
This commit is contained in:
@@ -229,6 +229,7 @@
|
||||
var menuID = '<%= Menu1.ClientID %>';
|
||||
var grid1ClientID = '<%=Grid1.ClientID%>'
|
||||
var window1ClientID = '<%= Window1.ClientID %>';
|
||||
var ptpId = '<%=this.PTP_ID%>';
|
||||
// 返回false,来阻止浏览器右键菜单
|
||||
function onRowContextMenu(event, rowId) {
|
||||
F(menuID).show(); //showAt(event.pageX, event.pageY);
|
||||
@@ -238,9 +239,21 @@
|
||||
__doPostBack(null, 'reloadGrid');
|
||||
}
|
||||
function updateGridRow(rowId, values) {
|
||||
|
||||
|
||||
// var allCode = "";
|
||||
var grid = F(grid1ClientID);
|
||||
|
||||
//var selectedCell = grid.getSelectedCell();
|
||||
//var selStrCode = grid.getCellValue(selectedCell[0], "WeldJointCode");
|
||||
//if (values) {
|
||||
// allCode = values["WeldJointCode"];
|
||||
// console.log('allCode=' + allCode)
|
||||
//}
|
||||
//if (selStrCode && selStrCode != "全部")
|
||||
//{
|
||||
// allCode +=","+selStrCode;
|
||||
//}
|
||||
//// allCode = allCode.substring(0, allCode.length - 1);
|
||||
//values["WeldJointCode"] = allCode;
|
||||
// cancelEdit用来取消编辑
|
||||
grid.cancelEdit();
|
||||
|
||||
@@ -254,7 +267,7 @@
|
||||
if (selectedCell) {
|
||||
var wnd = F(window1ClientID);
|
||||
// 由于需要在顶层页面中弹出,所以不能设置 ./grideditor_selectfromwindow_clientscript_iframe.aspx,必须通过 baseUrl 来绝对定位
|
||||
wnd.show(F.baseUrl + "WeldingProcess/TestPackageManage/selectJointCode.aspx?rowId=" + selectedCell[0] + "&jointcode=" + selStrCode);
|
||||
wnd.show(F.baseUrl + "WeldingProcess/TestPackageManage/selectJointCode.aspx?rowId=" + selectedCell[0] + "&jointcode=" + selStrCode + "&ptpId=" + ptpId);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user