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.
60 lines
2.4 KiB
60 lines
2.4 KiB
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
|
|
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.Basic.BomDetailModel>" %>
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
|
Bom信息列表
|
|
</asp:Content>
|
|
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
|
<%=Html.QPList() %>
|
|
<%=Html.QDateGrid<QMAPP.FJC.Web.Models.Basic.BomDetailModel>(Model)%>
|
|
<%=Html.QPEnd() %>
|
|
<%=Html.Hidden("selectKey")%>
|
|
<%=Html.HiddenFor(p => p.BOM_HDR_PID)%>
|
|
<%=Html.HiddenFor(p => p.MATERIAL_CODE)%>
|
|
<%=Html.HiddenFor(p => p.PID)%>
|
|
<script language="javascript" type="text/javascript">
|
|
|
|
//添加
|
|
function Add() {
|
|
var BOM_HDR_PID = $("#BOM_HDR_PID").val();
|
|
var MATERIAL_CODE = $("#MATERIAL_CODE").val();
|
|
openAppWindow1('Bom明细添加', 'BomHdrConfigEdit?BOM_HDR_PID=' + BOM_HDR_PID + '&MATERIAL_CODE=' + MATERIAL_CODE, '350', '360');
|
|
}
|
|
//删除
|
|
function Delete() {
|
|
var ids = getSelectKey();
|
|
if (ids == "") {
|
|
MSI("提示", "至少选择一条记录");
|
|
return;
|
|
}
|
|
if (ids.indexOf(":") > 0) {
|
|
MSI("提示", "每次只能删除一条记录");
|
|
return;
|
|
}
|
|
else {
|
|
document.getElementById("selectKey").value = ids;
|
|
MSQ("提示", "确定要删除选中的记录吗?", function () {
|
|
submitByButton("BomDetailDelete");
|
|
})
|
|
}
|
|
}
|
|
//返回
|
|
function Return() {
|
|
var returnUrl = "/BomHdr/BomHdrList";
|
|
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("BomHdr", "BomDetailEdit", "Add()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
<%=Html.QTButtonDelete("BomHdr", "BomDetailDelete", "Delete()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
<%=Html.QTButton("return", "BomHdrList", QMFrameWork.WebUI.IconCls.back, "Return();", (s, f) => { return true; })%>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</asp:Content>
|
|
|
|
|