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.
260 lines
10 KiB
260 lines
10 KiB
4 years ago
|
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
|
||
|
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.Basic.MachineInfoModel>" %>
|
||
|
|
||
|
<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.FACTORY_CODE) %>
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.FACTORY_CODE)%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th align="right">
|
||
|
<%=Html.QV(p=>p.MACHINECODDE) %>
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.MACHINECODDE)%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th align="right">
|
||
|
<%=Html.QV(p=>p.MACHINENAME) %>
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.MACHINENAME)%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<%-- <tr>
|
||
|
<th align="right">
|
||
|
<%=Html.QV(p=>p.MACHINENAME_SHORT) %>
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.MACHINENAME_SHORT)%>
|
||
|
</td>
|
||
|
</tr>--%>
|
||
|
<tr>
|
||
|
<th align="right">
|
||
|
<%=Html.QV(p=>p.ISCONTROL) %>
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.ISCONTROL)%>
|
||
|
</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.WORKCELL_CODE)%>
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.WORKCELL_CODE)%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th align="right">
|
||
|
<%=Html.QV(p => p.WORKLOC_CODE)%>
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.WORKLOC_CODE)%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th align="right">
|
||
|
<%=Html.QV(p=>p.IPADDRESS) %>
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.IPADDRESS)%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th align="right">
|
||
|
<%=Html.QV(p=>p.TERMINALPORT) %>
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.TERMINALPORT)%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th align="right">
|
||
|
<%=Html.QV(p=>p.MEMO) %>
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.MEMO)%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<%=Html.HiddenFor(p => p.PID)%>
|
||
|
<%=Html.HiddenFor(p => p.MACHINENUM)%>
|
||
|
<%=Html.HiddenFor(p => p.OPERATETYPE)%>
|
||
|
<%=Html.HiddenFor(p => p.USERNAME)%>
|
||
|
<%=Html.HiddenFor(p => p.PASSWORD)%>
|
||
|
<%=Html.HiddenFor(p => p.EQUIPMENT_TYPE_CODE)%>
|
||
|
<%=Html.HiddenFor(p => p.EQUIPMENT_DIRECTORY)%>
|
||
|
<%=Html.HiddenFor(p => p.CREATEDATE)%>
|
||
|
<%=Html.HiddenFor(p => p.CREATEUSER)%>
|
||
|
<%=Html.HiddenFor(p => p.UPDATEDATE)%>
|
||
|
<%=Html.HiddenFor(p => p.UPDATEUSER)%>
|
||
|
<%=Html.HiddenFor(p => p.MATERAILPORT)%>
|
||
|
<%=Html.HiddenFor(p => p.MATERAILINDEX)%>
|
||
|
<%=Html.HiddenFor(p => p.WORKCELL_CODE)%>
|
||
|
<%=Html.HiddenFor(p => p.WORKLOC_CODE)%>
|
||
|
<%=Html.HiddenFor(p => p.WORKCELL_NAME)%>
|
||
|
<%=Html.HiddenFor(p => p.WORKLOC_NAME)%>
|
||
|
<%=Html.QPEnd() %>
|
||
|
|
||
|
<script language="javascript" type="text/javascript">
|
||
|
$(function () {
|
||
|
//修改时:赋值
|
||
|
var selectCode = $('#FACTORY_CODE').combobox('getValue');
|
||
|
if (selectCode != "") {
|
||
|
//工序赋值
|
||
|
var workCenterCode = "";
|
||
|
$('#WORKCELL_CODE').combobox({
|
||
|
url: "/Dict/GetFactoryWorkCellComboxSource?factoryCode=" + selectCode + "&workCenterCode=" + workCenterCode,
|
||
|
editable: 'false',
|
||
|
valueField: 'WORKCELL_CODE',
|
||
|
textField: 'WORKCELL_NAME'
|
||
|
});
|
||
|
$('#WORKCELL_CODE').combobox("setText", $('#WORKCELL_NAME').val());
|
||
|
//工位赋值
|
||
|
var workCellCode = $('#WORKCELL_CODE').combobox('getValue');
|
||
|
if (workCellCode != "") {
|
||
|
//获取下拉数据源
|
||
|
$('#WORKLOC_CODE').combobox({
|
||
|
url: "/Dict/GetWorkLocFromWorkCellComboxSource?workCellCode=" + workCellCode,
|
||
|
editable: 'false',
|
||
|
valueField: 'WORKLOC_CODE',
|
||
|
textField: 'WORKLOC_NAME'
|
||
|
});
|
||
|
$('#WORKLOC_CODE').combobox("setText", $('#WORKLOC_NAME').val());
|
||
|
}
|
||
|
else {
|
||
|
$('#WORKLOC_CODE').combobox("setText", "");
|
||
|
}
|
||
|
}
|
||
|
else {
|
||
|
$('#WORKCELL_CODE').combobox("setText", "");
|
||
|
}
|
||
|
//新增时:级联
|
||
|
$('#FACTORY_CODE').combobox({
|
||
|
onSelect: function () {
|
||
|
var factoryCode = $('#FACTORY_CODE').combobox('getValue');
|
||
|
if (factoryCode != "") {
|
||
|
//工序赋值
|
||
|
var workCenterCode = "";
|
||
|
$('#WORKCELL_CODE').combobox({
|
||
|
url: "/Dict/GetFactoryWorkCellComboxSource?factoryCode=" + factoryCode + "&workCenterCode=" + workCenterCode,
|
||
|
editable: 'false',
|
||
|
valueField: 'WORKCELL_CODE',
|
||
|
textField: 'WORKCELL_NAME'
|
||
|
});
|
||
|
$('#WORKCELL_CODE').combobox("setText", "");
|
||
|
}
|
||
|
else {
|
||
|
//清空工序下拉框
|
||
|
var emptyData = [{ 'WORKCELL_CODE': "", 'WORKCELL_NAME': ""}];
|
||
|
$('#WORKCELL_CODE').combobox("loadData", emptyData);
|
||
|
$('#WORKCELL_CODE').combobox("select", "");
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
//工位
|
||
|
$('#WORKCELL_CODE').combobox({
|
||
|
onSelect: function () {
|
||
|
var workCellCode = $('#WORKCELL_CODE').combobox('getValue');
|
||
|
if (workCellCode != "") {
|
||
|
//获取工位下拉数据源
|
||
|
$('#WORKLOC_CODE').combobox({
|
||
|
url: "/Dict/GetWorkLocFromWorkCellComboxSource?workCellCode=" + workCellCode,
|
||
|
editable: 'false',
|
||
|
valueField: 'WORKLOC_CODE',
|
||
|
textField: 'WORKLOC_NAME'
|
||
|
});
|
||
|
$('#WORKLOC_CODE').combobox("setValue", "");
|
||
|
}
|
||
|
else {
|
||
|
//清空工序下拉框
|
||
|
var plantData = [{ 'WORKLOC_CODE': "", 'WORKLOC_NAME': ""}];
|
||
|
$('#WORKLOC_CODE').combobox("loadData", plantData);
|
||
|
$('#WORKLOC_CODE').combobox("select", "");
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
});
|
||
|
$(function () {
|
||
|
|
||
|
$('#FACTORY_CODE').combobox({
|
||
|
panelWidth: '350'
|
||
|
|
||
|
});
|
||
|
|
||
|
});
|
||
|
// $(function () {
|
||
|
// //工序级联工位
|
||
|
// $('#WORKCELL_CODE').combobox({
|
||
|
// onSelect: function () {
|
||
|
// var workCellCode = $('#WORKCELL_CODE').combobox('getValue');
|
||
|
// if (workCellCode != "") {
|
||
|
// //获取工位下拉数据源
|
||
|
// $('#WORKLOC_CODE').combobox({
|
||
|
// url: "/Dict/GetWorkLocFromWorkCellComboxSource?workCellCode=" + workCellCode,
|
||
|
// editable: 'false',
|
||
|
// valueField: 'WORKLOC_CODE',
|
||
|
// textField: 'WORKLOC_NAME'
|
||
|
// });
|
||
|
// $('#WORKLOC_CODE').combobox("setValue", "");
|
||
|
// }
|
||
|
// else {
|
||
|
// //清空工序下拉框
|
||
|
// var plantData = [{ 'WORKLOC_CODE': "", 'WORKLOC_NAME': ""}];
|
||
|
// $('#WORKLOC_CODE').combobox("loadData", plantData);
|
||
|
// $('#WORKLOC_CODE').combobox("select", "");
|
||
|
// }
|
||
|
// }
|
||
|
// });
|
||
|
// });
|
||
|
|
||
|
|
||
|
</script>
|
||
|
|
||
|
</asp:Content>
|
||
|
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
|
||
|
<table width="100%" cellpadding="0" cellspacing="0">
|
||
|
<tr>
|
||
|
<td>
|
||
|
<%=Html.QTButtonSave("User", "Save", "return Save();")%>
|
||
|
<%=Html.QTButtonBack("close", "List", "parent.closeAppWindow1();return false;")%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<script type="text/javascript">
|
||
|
|
||
|
function Save() {
|
||
|
if (isValidate() == false) {
|
||
|
return false;
|
||
|
}
|
||
|
submitByButton("Save");
|
||
|
}
|
||
|
</script>
|
||
|
</asp:Content>
|
||
|
|