- 注册时间
- 2018-10-10
- 最后登录
- 2021-5-26
- 阅读权限
- 10
- 积分
- 47
- 精华
- 0
- 帖子
- 3
|
- currentWorkPlanTable.on("showrowdetail",function(e){
- var grid = e.sender,row = e.record,td = grid.getRowDetailCellEl(row),str = "";
- var newHtml = '<div id="editForm1"><table style="width:100%;" id="editForm1-table">';
- for(var i=0;i<hideColumnNameArr3.length;i++){
- var val = row[hideColumnNameArr3[i]];
- if(!val){ val = "" };
- if(hideColumnNameArr3[i] == "progressDescription"){//进展描述
- newHtml +='<tr>'
- + '<td style="width:150px;text-align:right;">'+ item3ColumnSet[hideColumnNameArr3[i]].internationalization +':</td>'
- + '<td style="width:150px;"><input property="editor" class="mini-textarea" name="'+ hideColumnNameArr3[i] +'" style="width: 100%;" /></td>'
- + '</tr>';
- }
- }
- newHtml+= '<tr>'
- + '<td style="text-align:center;padding-top:5px;" colspan="2">'
- + '<a class="Update_Button" href="javascript:updateRow();">更新</a> <a class="Cancel_Button" href="javascript:cancelRow();">取消</a>'
- + '</td>'
- + '</tr></table></div>';
- $("body").append(newHtml);
- var editForm = document.getElementById("editForm1");
- mini.parse();
- td.appendChild(editForm);
- })
- function cancelRow() {
- currentWorkPlanTable.hideAllRowDetail();;
- }
- function updateRow() {
- var form = new mini.Form("editForm1");
- var node=currentWorkPlanTable.getSelected();
- currentWorkPlanTable.updateRow(node,form.getData());
- $("#editForm1").remove();
- currentWorkPlanTable.hideAllRowDetail();
- }
复制代码 |
|