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

157 lines
5.9 KiB

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
Inherits="System.Web.Mvc.ViewPage<QMAPP.MD.Web.Models.ParameterConfigEntityModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
加工信息参数
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%=Html.QPSeach(100,true) %>
<table id="condiTable">
<tr>
<th align="right">
<%=Html.QV(p=>p.MOLDNUMBER) %>
</th>
<td>
<%=Html.QC(p =>p.MOLDNUMBER)%>
</td>
<th align="right">
<%=Html.QV(p=>p.COLUMNCODE) %>
</th>
<td>
<%=Html.QC(p =>p.COLUMNCODE)%>
</td>
<th align="right">
<%=Html.QV(p=>p.PRODUCELINE) %>
</th>
<td>
<%=Html.QC(p => p.PRODUCELINE)%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p=>p.FACTORY_CODE) %>
</th>
<td>
<%=Html.QC(p => p.FACTORY_CODE)%>
</td>
<th align="right">
<%=Html.QV(p=>p.MACHINECODDE) %>
</th>
<td>
<%=Html.QC(p =>p.MACHINECODDE)%>
</td>
<th align="right">
<%=Html.QV(p=>p.COLUMNTYPE) %>
</th>
<td>
<%=Html.QC(p =>p.COLUMNTYPE)%>
</td>
</tr>
</table>
<%=Html.QPEnd()%>
<%=Html.QPList() %>
<%=Html.QDateGrid<QMAPP.MD.Web.Models.ParameterConfigEntityModel>(Model)%>
<%=Html.QPEnd() %>
<%=Html.Hidden("PID")%>
<%=Html.Hidden("selectKey")%>
<script language="javascript" type="text/javascript">
$(function () {
//工厂
$('#FACTORY_CODE').combobox({
onSelect: function () {
var selectCode = $('#FACTORY_CODE').combobox('getValue');
if (selectCode != "") {
//获取下拉数据源
// $('#PRODUCELINE').combobox({
// url: "/Dict/GetFactoryProjectComboxSource?factoryCode=" + selectCode,
// editable: 'false',
// valueField: 'PROJECT_CODE',
// textField: 'PROJECT_NAME'
// });
// $('#PRODUCELINE').combobox("setValue", "");
//设备
$('#MACHINECODDE').combobox({
url: "/Dict/GetFactoryMachineComboxSource?factoryCode=" + selectCode,
editable: 'false',
valueField: 'MACHINECODDE',
textField: 'MACHINENAME'
});
$('#MACHINECODDE').combobox("setValue", "");
}
else {
//清空工序下拉框
// var emptyData = [{ 'PROJECT_CODE': "", 'PROJECT_NAME': ""}];
// $('#PRODUCELINE').combobox("loadData", emptyData);
// $('#PRODUCELINE').combobox("select", "");
//清空工序下拉框
var emptyMachine = [{ 'MACHINECODDE': "", 'MACHINENAME': ""}];
$('#MACHINECODDE').combobox("loadData", emptyMachine);
$('#MACHINECODDE').combobox("select", "");
}
}
});
});
//添加
function Add() {
openAppWindow1('信息添加', 'Edit', '400', '350');
}
//修改
function Update() {
var ids = getSelectKey();
// alert(ids);
// return;
if (ids == "") {
MSI("提示", "请选择修改记录。");
return;
}
if (ids.indexOf(":") > 0) {
MSI("提示", "每次只能修改一条记录。");
return;
}
document.getElementById("selectKey").value = ids;
openAppWindow1('修改', 'Edit?PID=' + ids, '350', '350');
}
//删除
function Delete() {
var ids = getSelectKey();
if (ids == "") {
MSI("错误", "至少选择一条记录");
}
else {
document.getElementById("selectKey").value = ids;
MSQ("提示", "确定要删除选中的记录吗?", function () {
submitByButton("Delete");
})
}
}
$(function () {
$('#FACTORY_CODE').combobox({
panelWidth: '350'
});
});
</script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
<table cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<%=Html.QTButtonSearch("ParameterConfigEntity", "List", "List(1)", QMAPP.Common.Web.SystemLimit.isLimt)%>
<%=Html.QTButtonAdd("ParameterConfigEntity", "Add", "Add()", QMAPP.Common.Web.SystemLimit.isLimt)%>
<%=Html.QTButtonUpdate("ParameterConfigEntity", "Edit", "Update()", QMAPP.Common.Web.SystemLimit.isLimt)%>
<%=Html.QTButtonDelete("ParameterConfigEntity", "Delete", "Delete()", QMAPP.Common.Web.SystemLimit.isLimt)%>
</td>
</tr>
</table>
</asp:Content>