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

111 lines
4.1 KiB

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.Basic.BomHdrModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
Bom信息列表
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%=Html.QPSeach(80,true) %>
<table id="condiTable">
<tr>
<th align="right">
<%=Html.QV(p => p.MATERIAL_CODE)%>
</th>
<td>
<%=Html.QC(p => p.MATERIAL_CODE)%>
</td>
<th align="right">
<%=Html.QV(p => p.DEL_FLG)%>
</th>
<td>
<%=Html.QC(p => p.DEL_FLG)%>
</td>
<th align="right">
<%=Html.QV(p => p.BOM_VERSION)%>
</th>
<td>
<%=Html.QC(p => p.BOM_VERSION)%>
</td>
<th align="right">
<%=Html.QV(p => p.NODE_TYPE)%>
</th>
<td>
<%=Html.QC(p => p.NODE_TYPE)%>
</td>
</tr>
</table>
<div style="left: 1px; position: relative;"></div>
<%=Html.QPEnd()%>
<%=Html.QPList() %>
<%=Html.QDateGrid<QMAPP.FJC.Web.Models.Basic.BomHdrModel>(Model)%>
<%=Html.QPEnd() %>
<%=Html.Hidden("selectKey")%>
<script language="javascript" type="text/javascript">
//添加
function Add() {
openAppWindow1('Bom信息添加', 'BomHdrEdit', '350', '360');
}
//修改
function Update() {
var ids = getSelectKey();
if (ids == "") {
MSI("提示", "请选择修改记录。");
return;
}
if (ids.indexOf(":") > 0) {
MSI("提示", "每次只能修改一条记录。");
return;
}
document.getElementById("selectKey").value = ids;
openAppWindow1('Bom信息修改', 'BomHdrEdit?PID=' + ids, '350', '360');
}
//删除
function Delete() {
var ids = getSelectKey();
if (ids == "") {
MSI("错误", "至少选择一条记录");
}
else {
document.getElementById("selectKey").value = ids;
MSQ("提示", "确定要删除选中的记录吗?", function () {
submitByButton("BomHdrDelete");
})
}
}
//配置Bom信息
function BomHdrConfig() {
var ids = getSelectKey();
if (ids == "") {
MSI("提示", "请选择要配置的Bom。");
return;
};
if (ids.indexOf(":") > 0) {
MSI("提示", "每次只能选择一个Bom进行配置。");
return;
}
var row = $('#QDateGrid').datagrid('getSelected');
// if (row.MATERIAL_LAYER == 0) {
// MSI("提示", "该Bom层级为0,不允许添加Bom明细。");
// return;
// }
document.getElementById("selectKey").value = ids;
window.location.href = "/BomHdr/BomHdrConfig?BOM_HDR_PID=" + ids + "&MATERIAL_CODE=" + row.MATERIAL_CODE;
}
</script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
<table cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<%=Html.QTButtonSearch("BomHdr", "BomHdrList", "List(1)", QMAPP.Common.Web.SystemLimit.isLimt)%>
<%=Html.QTButtonAdd("BomHdr", "BomHdrEdit", "Add()", QMAPP.Common.Web.SystemLimit.isLimt)%>
<%=Html.QTButtonDelete("BomHdr", "BomHdrDelete", "Delete()", QMAPP.Common.Web.SystemLimit.isLimt)%>
<%=Html.QTButton("BomHdrConfig", "BomHdrConfig", QMFrameWork.WebUI.IconCls.add, "BomHdrConfig()", QMAPP.Common.Web.SystemLimit.isLimt)%>
</td>
</tr>
</table>
</asp:Content>