This commit is contained in:
jackchenyang
2024-05-23 13:29:09 +08:00
parent 0a06a9f562
commit 2b85402218
6 changed files with 27 additions and 8 deletions
@@ -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);
}
}