<%@ 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.QPEdit("Bom明细添加", string.IsNullOrEmpty(Model.PID) ? QMFrameWork.WebUI.panelType.Add : QMFrameWork.WebUI.panelType.Update)%> <table id="editTable"> <tr> <td> <table> <tr> <th align="right"> <%=Html.QV(p => p.MATERIAL_CODE)%> </th> <td> <%=Html.QC(p => p.MATERIAL_CODE)%> <script type="text/javascript" language="javascript"> $(function () { $('#MATERIAL_CODE').combotree({ panelHeight: '230', panelWidth: '500', onBeforeSelect: function (node) { if (!$(this).tree('isLeaf', node.target)) { return false; } } }); }) </script> </td> </tr> <tr> <th align="right"> <%=Html.QV(p => p.GMP)%> </th> <td> <%=Html.QC(p => p.GMP)%> </td> </tr> <tr> <th align="right"> <%=Html.QV(p => p.UNIT_SUM)%> </th> <td> <%=Html.QC(p => p.UNIT_SUM)%> </td> </tr> <%--<tr> <th align="right"> <%=Html.QV(p => p.SEQ_NUM)%> </th> <td> <%=Html.QC(p => p.SEQ_NUM)%> </td> </tr> <tr> <th align="right"> <%=Html.QV(p => p.PBOM_CODE)%> </th> <td> <%=Html.QC(p => p.PBOM_CODE)%> </td> </tr>--%> </table> </td> </tr> </table> <%=Html.HiddenFor(p => p.PID)%> <%=Html.HiddenFor(p => p.FLGDEL)%> <%=Html.HiddenFor(p => p.PBOM_CODE)%> <%=Html.HiddenFor(p => p.ROUTE_CODE)%> <%=Html.HiddenFor(p => p.FACTORY_CODE)%> <%=Html.HiddenFor(p => p.SEQ_NUM)%> <%=Html.HiddenFor(p => p.UP_SQ_NUM)%> <%=Html.HiddenFor(p => p.isEdit)%> <%=Html.HiddenFor(p => p.CREATEDATE)%> <%=Html.HiddenFor(p => p.CREATEUSER)%> <%=Html.HiddenFor(p => p.UPDATEDATE)%> <%=Html.HiddenFor(p => p.UPDATEUSER)%> <%=Html.QPEnd() %> <script type="text/javascript"> $(function () { //编辑页面绑定工序下拉列表 //debugger; var routeCode = $("#ROUTE_CODE").val(); if (routeCode != "") { $('#GMP').combobox({ url: "/Dict/GetRouteWorkCellComboxSource?routeCode=" + routeCode, editable: 'false', valueField: 'WORKCELL_CODE', textField: 'WORKCELL_NAME' }); } }); function Save() { //debugger; var PBOM_CODE = $("#PBOM_CODE").val(); if (isValidate() == false) { return false; } // if (PRODUCTQUANTITY == 0) { // MSI("提示", "零件数量不能为0!"); // return false; // } submitByButton("PbomItemTreeSave?PBOM_CODE=" + PBOM_CODE); } </script> </asp:Content> <asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server"> <table width="100%" cellpadding="0" cellspacing="0"> <tr> <td> <%=Html.QTButtonSave("PbomItem", "PbomItemTreeSave", "return Save();")%> <%=Html.QTButtonBack("close", "PbomItem", "parent.closeAppWindow1();return false;")%> </td> </tr> </table> </asp:Content>