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.
192 lines
7.5 KiB
192 lines
7.5 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.QPSeach(80,true) %>
|
||
|
<table id="condiTable">
|
||
|
<tr>
|
||
|
<th align="right">
|
||
|
<%=Html.QV(p => p.BINDING_TYPE)%>
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.BINDING_TYPE)%>
|
||
|
</td>
|
||
|
<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>
|
||
|
<th align="right">
|
||
|
<%=Html.QV(p => p.IS_MATERIAL_CODE)%>
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.IS_MATERIAL_CODE)%>
|
||
|
</td>
|
||
|
<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: '230',
|
||
|
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: '230',
|
||
|
panelWidth: '500',
|
||
|
onBeforeSelect: function (node) {
|
||
|
if (!$(this).tree('isLeaf', node.target)) {
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
})
|
||
|
</script>
|
||
|
</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<%=Html.QPEnd()%>
|
||
|
<%=Html.QPList() %>
|
||
|
<%=Html.QDateGrid<QMAPP.MD.Web.Models.MaterialBindingModel>(Model)%>
|
||
|
<%=Html.QPEnd() %>
|
||
|
<%=Html.Hidden("selectKey")%>
|
||
|
<%=Html.Hidden("fileName") %>
|
||
|
<script language="javascript" 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 () {
|
||
|
// //物料类型选择事件-赋值
|
||
|
// $('#TARGET_MATERIAL_CLASS').combobox({
|
||
|
// onSelect: function () {
|
||
|
// var btValue = $('#TARGET_MATERIAL_CLASS').combobox('getValue');
|
||
|
// if (btValue !== "") {
|
||
|
// $('#MATERIAL_CODE').val = btValue;
|
||
|
// }
|
||
|
// }
|
||
|
// });
|
||
|
// });
|
||
|
|
||
|
//添加
|
||
|
function Add() {
|
||
|
|
||
|
openAppWindow1('物料信息绑定关系添加', 'Edit', '350', '380');
|
||
|
}
|
||
|
|
||
|
//删除
|
||
|
function Delete() {
|
||
|
var ids = getSelectKey();
|
||
|
if (ids == "") {
|
||
|
MSI("错误", "至少选择一条记录");
|
||
|
}
|
||
|
else {
|
||
|
document.getElementById("selectKey").value = ids;
|
||
|
MSQ("提示", "确定要删除选中的记录吗?", function () {
|
||
|
submitByButton("Delete");
|
||
|
})
|
||
|
}
|
||
|
}
|
||
|
|
||
|
</script>
|
||
|
</asp:Content>
|
||
|
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
|
||
|
<table cellpadding="0" cellspacing="0">
|
||
|
<tr>
|
||
|
<td align="center">
|
||
|
<%=Html.QTButtonSearch("MaterialBinding", "List", "List(1)", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
||
|
<%=Html.QTButtonAdd("MaterialBinding", "Add", "Add()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
||
|
<%=Html.QTButtonDelete("MaterialBinding", "Delete", "Delete()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</asp:Content>
|