天津投入产出系统后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
1.1 KiB

<%@ Control Language="C#"
Inherits="System.Web.Mvc.ViewUserControl<QMAPP.FJC.Web.Models.ParameterQuery.ParameterQueryModel>" %>
<th data-options="field:'PRODUCTCODE',width:150">
零件条码
</th>
<th data-options="field:'CREATEDATE',width:120">
加工日期
</th>
<th data-options="field:'MOLDNUMBER',width:100">
模架
</th>
<th data-options="field:'FILE_NAME',width:100,formatter:filecell">
文件名
</th>
<script type="text/javascript">
function filecell(value, row, index) {
return "<a href='javascript:;' onclick='openfile(\"" + encodeURI(row.FILE_PATH) + "\",\"" + row.PRODUCTCODE + "\")' target='_blank' >" + value + "</a>";
//return "<a href='"+row.FILE_PATH+"' target='_blank' >"+value+"</a>";
}
function openfile(path, name) {
var form = $("<form id='openfile' action='LaserFileReader' method='post'></form>");
form.append("<input name='path' value='" + path + "'>");
form.append("<input name='name' value='" + name + "'>");
$(document.body).append(form);
form.submit();
$("#openfile").remove();
} </script>