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

193 lines
7.9 KiB

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
Inherits="System.Web.Mvc.ViewPage<QMAPP.MD.Web.Models.PbomModel>" %>
<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)%>
<%
var editable = false;
if (string.IsNullOrEmpty(Model.PID))
{
editable = true;
}
%>
<table id="editTable" cellpadding="0" cellspacing="0">
<tr>
<td>
<table>
<tr>
<th align="right">
<%=Html.QV(p => p.FACTORY_CODE)%>
</th>
<td>
<%=Html.QC(p => p.FACTORY_CODE)%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p => p.PBOM_CODE)%>
</th>
<td>
<%=Html.QC(p => p.PBOM_CODE)%>
</td>
</tr>
<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: '244',
onBeforeSelect: function (node) {
if (!$(this).tree('isLeaf', node.target)) {
return false;
}
}
});
})
</script>
</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.ROUTE_CODE)%>
</th>
<td>
<%=Html.QC(p => p.ROUTE_CODE)%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p => p.STATUS)%>
</th>
<td>
<%=Html.QC(p => p.STATUS)%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p => p.EOA_DATE)%>
</th>
<td>
<%-- <%=Html.QC(p => p.EOA_DATE)%>--%>
<input id="EOA_DATE" name="EOA_DATE" value="<%=string.IsNullOrEmpty(Model.PID)?"":Model.EOA_DATE.ToString("yyyy-MM-dd") %>"
type="text" class="easyui-datebox" style="width:244px" required="required" <%=editable?"":"readonly =\"readonly\"" %> />
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p => p.EXP_DATE)%>
</th>
<td>
<%--<%=Html.QC(p => p.EXP_DATE)%>--%>
<input id="Text1" name="EXP_DATE" value="<%=string.IsNullOrEmpty(Model.PID)?"":Model.EXP_DATE.ToString("yyyy-MM-dd") %>"
type="text" class="easyui-datebox" style="width:244px" required="required" <%=editable?"":"readonly =\"readonly\"" %> />
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p => p.ITEM_NUM)%>
</th>
<td>
<%=Html.QC(p => p.ITEM_NUM)%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p => p.VER_NUM)%>
</th>
<td>
<%=Html.QC(p => p.VER_NUM)%>
</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.CREATEDATE)%>
<%=Html.HiddenFor(p => p.CREATEUSER)%>
<%=Html.HiddenFor(p => p.UPDATEDATE)%>
<%=Html.HiddenFor(p => p.UPDATEUSER)%>
<%=Html.HiddenFor(p => p.FLGDEL)%>
<%=Html.QPEnd() %>
<script type="text/javascript">
$(function () {
//工厂
$('#FACTORY_CODE').combobox({
onSelect: function () {
var selectCode = $('#FACTORY_CODE').combobox('getValue');
if (selectCode != "") {
//获取下拉数据源--物料号
$('#MATERIAL_CODE').combotree({
url: "/Dict/GetFactoryMaterialTree?factoryCode=" + selectCode,
editable: 'false',
});
$('#MATERIAL_CODE').combotree("setValue", "");
//获取下拉数据源--工艺路线
$('#ROUTE_CODE').combobox({
url: "/Dict/GetFactoryRouteComboxSource?factoryCode=" + selectCode,
editable: 'false',
valueField: 'ROUTE_CODE',
textField: 'ROUTE_NAME'
});
$('#ROUTE_CODE').combobox("setValue", "");
}
else {
//清空工序下拉框
$('#MATERIAL_CODE').combotree("loadData", "");
$('#MATERIAL_CODE').combotree("select", "");
//清空工序下拉框
var emptyData = [{ 'ROUTE_CODE': "", 'ROUTE_NAME': ""}];
$('#ROUTE_CODE').combobox("loadData", emptyData);
$('#ROUTE_CODE').combobox("select", "");
}
}
});
});
function Save() {
if (isValidate() == false) {
return false;
}
submitByButton("Save");
}
</script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
<%=Html.QTButtonSave("BomHdr", "Save", "return Save();")%>
<%=Html.QTButtonBack("close", "List", "parent.closeAppWindow1();return false;")%>
</td>
</tr>
</table>
</asp:Content>