天津投入产出系统后端
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.

112 lines
3.9 KiB

3 years ago
 <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
Inherits="System.Web.Mvc.ViewPage<QMAPP.MD.Web.Models.DefectDictModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
<%--缺陷信息列表--%>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%=Html.QPSeach(100,true) %>
<table id="condiTable">
<tr>
<th align="right">
<%=Html.QV(p=>p.MFGCODE) %>
</th>
<td>
<%=Html.QC(p => p.MFGCODE)%>
</td>
<th align="right">
<%=Html.QV(p=>p.TYPE_CODE) %>
</th>
<td>
<%=Html.QC(p => p.TYPE_CODE)%>
</td>
3 years ago
</tr>
</table>
<div style="left: 1px; position: relative;"></div>
<%=Html.QPEnd()%>
<%=Html.QPList() %>
<%=Html.QDateGrid<QMAPP.MD.Web.Models.DefectDictModel>(Model)%>
<%=Html.QPEnd() %>
<%=Html.Hidden("PID")%>
<%=Html.Hidden("selectKey")%>
<%=Html.Hidden("fileName")%>
<script language="javascript" type="text/javascript">
//添加
function Add() {
openAppWindow1('缺陷信息添加', 'Edit', '400', '400');
}
//修改
3 years ago
function Edit() {
3 years ago
var ids = getSelectKey();
if (ids == "") {
MSI("提示", "请选择修改记录。");
return;
}
if (ids.indexOf(":") > 0) {
MSI("提示", "每次只能修改一条记录。");
return;
}
document.getElementById("selectKey").value = ids;
openAppWindow1('缺陷信息修改', 'Edit?PID=' + ids, '400', '400');
}
//删除
function Delete() {
var ids = getSelectKey();
if (ids == "") {
MSI("错误", "至少选择一条记录");
}
else {
document.getElementById("selectKey").value = ids;
MSQ("提示",
"确定要删除选中的记录吗?",
function() {
submitByButton("Delete");
});
}
}
$(function () {
$('#FACTORY_CODE').combobox({
panelWidth: '350'
});
});
//下载模板
function getTemplate() {
submitByButton("GetTemplate");
}
//导入
function Import() {
var fileName = window.showModalDialog("/File/UploadFile", "", "dialogHeight: 200px; dialogWidth: 300px; center: Yes; help: Yes;status: Yes;");
//
if (fileName == null)
return;
document.getElementById("fileName").value = fileName;
submitByButton("ImportExcel");
//处理等待
//alert(fileName);
}
</script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
<table cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<%=Html.QTButtonSearch("DefectDict", "List", "List(1)", QMAPP.Common.Web.SystemLimit.isLimt)%>
<%=Html.QTButtonAdd("DefectDict", "Add", "Add()", QMAPP.Common.Web.SystemLimit.isLimt)%>
3 years ago
<%=Html.QTButtonUpdate("DefectDict", "Edit", "Edit()", QMAPP.Common.Web.SystemLimit.isLimt)%>
3 years ago
<%=Html.QTButtonDelete("DefectDict", "Delete", "Delete()", QMAPP.Common.Web.SystemLimit.isLimt)%>
<%-- <%=Html.QTButton("import", "ImportExcel", QMFrameWork.WebUI.IconCls.undo, "Import()", QMAPP.Common.Web.SystemLimit.isLimt)%>
<%=Html.QTButton("template", "TemplateExcel", QMFrameWork.WebUI.IconCls.template, "getTemplate()", QMAPP.Common.Web.SystemLimit.isLimt)%> --%>
</td>
</tr>
</table>
</asp:Content>