<%@ 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.FLAG_CSP)%> </th> <td> <%=Html.QC(p => p.FLAG_CSP)%> </td> </tr> <tr> <th align="right"> <%=Html.QV(p => p.MFRS)%> </th> <td> <%=Html.QC(p => p.MFRS)%> </td> </tr> <tr> <th align="right"> <%=Html.QV(p => p.PROPERTY_CODE)%> </th> <td> <%=Html.QC(p => p.PROPERTY_CODE)%> </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.UP_SQ_NUM)%> </th> <td> <%=Html.QC(p => p.UP_SQ_NUM)%> </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.REMARK)%> </th> <td> <%=Html.QC(p => p.REMARK)%> </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.CREATEDATE)%> <%=Html.HiddenFor(p => p.CREATEUSER)%> <%=Html.HiddenFor(p => p.UPDATEDATE)%> <%=Html.HiddenFor(p => p.UPDATEUSER)%> <%=Html.QPEnd() %> <script type="text/javascript"> $(function () { //编辑页面绑定工作中心下拉列表 var pbomRoute = $("#PBOM_CODE").val(); var routeCode = $("#ROUTE_CODE").val(); if (routeCode != "") { $('#GMP').combobox({ url: "/Dict/GetRouteWorkCellComboxSource?routeCode=" + routeCode, editable: 'false', valueField: 'WORKCELL_CODE', textField: 'WORKCELL_NAME' }); } if (pbomRoute != "") { $('#UP_SQ_NUM').combobox({ url: "/Dict/GetBomItemUpSqNumComboxSource?pbomRoute=" + pbomRoute, editable: 'false', valueField: 'SEQ_NUM', textField: 'MATERIAL_CODE' }); } }); function Save() { var PBOM_CODE = $("#PBOM_CODE").val(); if (isValidate() == false) { return false; } // if (PRODUCTQUANTITY == 0) { // MSI("提示", "零件数量不能为0!"); // return false; // } submitByButton("PbomItemSave?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("Pbom", "PbomItemSave", "return Save();")%> <%=Html.QTButtonBack("close", "PbomItem", "parent.closeAppWindow1();return false;")%> </td> </tr> </table> </asp:Content>