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.
181 lines
7.6 KiB
181 lines
7.6 KiB
4 years ago
|
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
|
||
|
Inherits="System.Web.Mvc.ViewPage<QMAPP.MD.Web.Models.MaterialBindingModel>" %>
|
||
|
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
||
|
物料信息绑定关系编辑
|
||
|
</asp:Content>
|
||
|
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
||
|
<%=Html.QPEdit("物料信息绑定关系编辑", string.IsNullOrEmpty(Model.PID) ? QMFrameWork.WebUI.panelType.Add : QMFrameWork.WebUI.panelType.Update)%>
|
||
|
<table id="editTable" cellpadding="0" cellspacing="0">
|
||
|
<tr>
|
||
|
<td>
|
||
|
<table>
|
||
|
<tr>
|
||
|
<th align="right">
|
||
|
<%=Html.QV(p => p.BINDING_TYPE)%>
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.BINDING_TYPE)%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th align="right">
|
||
|
<%=Html.QV(p => p.TARGET_CODE)%>
|
||
|
</th>
|
||
|
<td>
|
||
|
<div id="targetCode" >
|
||
|
<%=Html.QC(p => p.TARGET_CODE)%>
|
||
|
</div>
|
||
|
<div id="EQUIP" style="display: none">
|
||
|
<%=Html.QC(p => p.TARGET_EQUIP)%>
|
||
|
</div>
|
||
|
<div id="MOULD" style="display: none">
|
||
|
<%=Html.QC(p => p.TARGET_MOULD)%>
|
||
|
</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th align="right">
|
||
|
<%=Html.QV(p => p.IS_MATERIAL_CODE)%>
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.IS_MATERIAL_CODE)%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th align="right">
|
||
|
<%=Html.QV(p => p.MATERIAL_CODE)%>
|
||
|
</th>
|
||
|
<td>
|
||
|
<div id="MaterialCode" >
|
||
|
<%=Html.QC(p => p.MATERIAL_CODE)%>
|
||
|
</div>
|
||
|
<div id="tragetClass" style="display: none">
|
||
|
<%=Html.QC(p => p.TARGET_MATERIAL_CLASS)%>
|
||
|
<script type="text/javascript" language="javascript">
|
||
|
$(function () {
|
||
|
$('#TARGET_MATERIAL_CLASS').combotree({
|
||
|
panelHeight: '330',
|
||
|
panelWidth: '500',
|
||
|
onBeforeSelect: function (node) {
|
||
|
if (!$(this).tree('isLeaf', node.target)) {
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
})
|
||
|
</script>
|
||
|
</div>
|
||
|
<div id="tragetCode" style="display: none">
|
||
|
<%=Html.QC(p => p.TARGET_MATERIAL_CODE)%>
|
||
|
<script type="text/javascript" language="javascript">
|
||
|
$(function () {
|
||
|
$('#TARGET_MATERIAL_CODE').combotree({
|
||
|
panelHeight: '330',
|
||
|
panelWidth: '500',
|
||
|
onBeforeSelect: function (node) {
|
||
|
if (!$(this).tree('isLeaf', node.target)) {
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
})
|
||
|
</script>
|
||
|
</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<%=Html.HiddenFor(p => p.PID)%>
|
||
|
|
||
|
<%=Html.QPEnd() %>
|
||
|
<script type="text/javascript">
|
||
|
$(function () {
|
||
|
//绑定类型
|
||
|
$('#BINDING_TYPE').combobox({
|
||
|
onSelect: function () {
|
||
|
//debugger;
|
||
|
var btValue = $('#BINDING_TYPE').combobox('getValue');
|
||
|
var divDisplay1 = document.getElementById("EQUIP");
|
||
|
var divDisplay2 = document.getElementById("MOULD");
|
||
|
var divDisplay3 = document.getElementById("targetCode");
|
||
|
|
||
|
if (btValue != "") {
|
||
|
if (btValue == "EQUIP") {
|
||
|
divDisplay1.style.display = 'block';
|
||
|
divDisplay2.style.display = 'none';
|
||
|
divDisplay3.style.display = 'none';
|
||
|
}
|
||
|
else if (btValue == "MOULD") {
|
||
|
divDisplay1.style.display = 'none';
|
||
|
divDisplay2.style.display = 'block';
|
||
|
divDisplay3.style.display = 'none';
|
||
|
}
|
||
|
}
|
||
|
else {
|
||
|
divDisplay1.style.display = 'none';
|
||
|
divDisplay2.style.display = 'none';
|
||
|
divDisplay3.style.display = 'block';
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
});
|
||
|
|
||
|
$(function () {
|
||
|
//绑定物料号
|
||
|
$('#IS_MATERIAL_CODE').combobox({
|
||
|
onSelect: function () {
|
||
|
//debugger;
|
||
|
var btValue = $('#IS_MATERIAL_CODE').combobox('getValue');
|
||
|
var divDisplay1 = document.getElementById("tragetClass");
|
||
|
var divDisplay2 = document.getElementById("tragetCode");
|
||
|
var divDisplay3 = document.getElementById("MaterialCode");
|
||
|
|
||
|
if (btValue !== "") {
|
||
|
if (btValue == "0") {
|
||
|
divDisplay1.style.display = 'block';
|
||
|
divDisplay2.style.display = 'none';
|
||
|
divDisplay3.style.display = 'none';
|
||
|
}
|
||
|
else if (btValue == "1") {
|
||
|
divDisplay1.style.display = 'none';
|
||
|
divDisplay2.style.display = 'block';
|
||
|
divDisplay3.style.display = 'none';
|
||
|
}
|
||
|
}
|
||
|
else {
|
||
|
divDisplay1.style.display = 'none';
|
||
|
divDisplay2.style.display = 'none';
|
||
|
divDisplay3.style.display = 'block';
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
});
|
||
|
|
||
|
function Save() {
|
||
|
//debugger;
|
||
|
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("MaterialBinding", "Save", "return Save();")%>
|
||
|
<%=Html.QTButtonBack("close", "List", "parent.closeAppWindow1();return false;")%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</asp:Content>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|