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.
77 lines
2.8 KiB
77 lines
2.8 KiB
4 years ago
|
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
|
||
|
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.Basic.WorkCenterModel>" %>
|
||
|
|
||
|
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
||
|
配置设备信息
|
||
|
</asp:Content>
|
||
|
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
||
|
<%=Html.QPEdit("配置设备信息", string.IsNullOrEmpty(Model.isEdit) ? QMFrameWork.WebUI.panelType.Add : QMFrameWork.WebUI.panelType.Update)%>
|
||
|
<table id="editTable">
|
||
|
<tr>
|
||
|
<td valign="top">
|
||
|
<table style="height: 40px">
|
||
|
<tr>
|
||
|
<th align="right">
|
||
|
<%=Html.QV(p=>p.WORKCENTER_NAME) %>
|
||
|
</th>
|
||
|
<td disabled="true">
|
||
|
<%=Html.QC(p => p.WORKCENTER_NAME)%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top">
|
||
|
<div id="tab_set" style="width: 455px; height: 325px;">
|
||
|
<div id="tab_machine" title="设备" style="padding: 5px;" align="left">
|
||
|
<%=Html.QTreeView("TreeEquipment", "")%>
|
||
|
</div>
|
||
|
</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<%=Html.HiddenFor(p=>p.PID) %>
|
||
|
<%=Html.HiddenFor(p=>p.isEdit) %>
|
||
|
<%=Html.QPEnd() %>
|
||
|
<%=Html.Hidden("SelectedEquipment")%>
|
||
|
</asp:Content>
|
||
|
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
|
||
|
<table width="100%" cellpadding="0" cellspacing="0">
|
||
|
<tr>
|
||
|
<td>
|
||
|
<%=Html.QTButtonSave("User", "UserSave", "Save()")%>
|
||
|
<%=Html.QTButton("close", "UserList", "close", "parent.closeAppWindow1();return false;", (s, f) => { return true; })%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<script type="text/javascript">
|
||
|
$(function () {
|
||
|
$('#tab_set').tabs({
|
||
|
});
|
||
|
//初始化区域
|
||
|
$.ajax({
|
||
|
url: "/WorkCenter/GetTreeWcWithEquipment?PID=" + $('#PID').val(),
|
||
|
success: function (ret) {
|
||
|
treedata = eval("(" + ret + ")");
|
||
|
$("#TreeEquipment").tree({ data: treedata });
|
||
|
},
|
||
|
error: function (err) {
|
||
|
alert(err);
|
||
|
}
|
||
|
});
|
||
|
});
|
||
|
//保存
|
||
|
function Save() {
|
||
|
//校验基本信息合法性
|
||
|
if (isValidate() == false) {
|
||
|
return false;
|
||
|
}
|
||
|
//接收区域
|
||
|
document.getElementById("SelectedEquipment").value = getTreeIDTreeEquipment();
|
||
|
submitByButton("DataPowerSave");
|
||
|
}
|
||
|
|
||
|
</script>
|
||
|
</asp:Content>
|