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

66 lines
2.7 KiB

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
Inherits="System.Web.Mvc.ViewPage<QMAPP.MD.Web.Models.PbomItemModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
Bom信息列表
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%=Html.QPList() %>
<%=Html.QDateGrid<QMAPP.MD.Web.Models.PbomItemModel>(Model)%>
<%=Html.QPEnd() %>
<%=Html.Hidden("selectKey")%>
<%=Html.HiddenFor(p => p.PBOM_CODE)%>
<%=Html.HiddenFor(p => p.MATERIAL_CODE)%>
<%=Html.HiddenFor(p => p.PID)%>
<%=Html.Hidden("PBOM_CODE_PAR")%>
<%=Html.Hidden("MATERIAL_CODE_PAR")%>
<script language="javascript" type="text/javascript">
//添加
function Add() {
var PBOM_CODE = $("#PBOM_CODE").val();
var MATERIAL_CODE = $("#MATERIAL_CODE").val();
openAppWindow1('Bom明细添加', 'PbomItemEdit?PBOM_CODE_PAR=' + PBOM_CODE + '&MATERIAL_CODE_PAR=' + MATERIAL_CODE, '580', '420');
}
//删除
function Delete() {
var ids = getSelectKey();
var idsPbomcode = $('#PBOM_CODE').val();
var materialCode = $('#MATERIAL_CODE').val();
if (ids == "") {
MSI("提示", "至少选择一条记录");
return;
}
if (ids.indexOf(":") > 0) {
MSI("提示", "每次只能删除一条记录");
return;
}
else {
document.getElementById("selectKey").value = ids;
document.getElementById("PBOM_CODE_PAR").value = idsPbomcode;
document.getElementById("MATERIAL_CODE_PAR").value = materialCode;
MSQ("提示", "确定要删除选中的记录吗?", function () {
submitByButton("PbomItemDelete");
})
}
}
//返回
function Return() {
var returnUrl = "/Pbom/List";
window.location.href = returnUrl;
}
</script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
<table cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<%=Html.QTButtonAdd("Pbom", "PbomItemEdit", "Add()", QMAPP.Common.Web.SystemLimit.isLimt)%>
<%=Html.QTButtonDelete("Pbom", "PbomItemDelete", "Delete()", QMAPP.Common.Web.SystemLimit.isLimt)%>
<%=Html.QTButton("return", "List", QMFrameWork.WebUI.IconCls.back, "Return();", (s, f) => { return true; })%>
</td>
</tr>
</table>
</asp:Content>