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

101 lines
3.5 KiB

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master" Inherits="System.Web.Mvc.ViewPage<QMAPP.Web.Models.Sys.ParaAuthorityPortModel>" %>
<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="mytable" cellpadding=0 cellspacing=0 align="center">
<tr>
<td>
<table align="center">
<tr>
<th align=right><%=Html.QV(p=>p.ParaDESC) %></th><td><%=Html.QC(p => p.ParaDESC)%></td>
<th align=right><%=Html.QV(p => p.ParaType)%></th><td><%=Html.QC(p => p.ParaType)%></td>
</tr>
<tr>
<th align=right><%=Html.QV(p=>p.OrgaDESC) %></th><td><%=Html.QC(p => p.OrgaID)%></td>
<th align=right><%=Html.QV(p=>p.UserName) %></th><td><%=Html.QC(p => p.UserID)%></td>
</tr>
</table>
</td>
</tr>
</table>
<%=Html.HiddenFor(p => p.ParaID)%>
<%=Html.HiddenFor(p=>p.isEdit) %>
<%=Html.HiddenFor(p=>p.CreateUser) %>
<%=Html.HiddenFor(p=>p.CreateTime) %>
<%=Html.HiddenFor(p=>p.UpdateUser) %>
<%=Html.HiddenFor(p=>p.UpdateTime) %>
<%=Html.QPEnd() %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
<table width="100%" cellpadding=0 cellspacing=0>
<tr>
<td align="center">
<%=Html.QTButtonSave("ParaAuthorityPort", "ParaSave", "Save()")%>
<%=Html.QTButton("close", "ParaAuthorityPort", "parent.closeAppWindow1();return false;", (s, f) => { return true; })%>
</td>
</tr>
</table>
<script type="text/javascript">
$(function () {
if (document.getElementById("OrgaID").value == "") {
$('#OrgaID').combobox({
url: '/Dict/GetOrgaList',
editable: 'false',
valueField: 'OrgaID',
textField: 'OrgaDESC',
onSelect: function () {
var val = $('#OrgaID').combobox('getValue');
$('#UserID').combobox({
url: '/Dict/GetOrgaUserList?orgaID=' + val,
editable: 'false',
valueField: 'UserID',
textField: 'UserName'
});
}
});
} else {
$('#OrgaID').combobox({
url: '/Dict/GetOrgaList',
editable: 'false',
valueField: 'OrgaID',
textField: 'OrgaDESC'
});
$('#UserID').combobox({
url: '/Dict/GetOrgaUserList?orgaID=' + document.getElementById("OrgaID").value,
editable: 'false',
valueField: 'UserID',
textField: 'UserName'
});
}
})
//保存
function Save() {
//校验基本信息合法性
if (isValidate() == false) {
return false;
}
submitByButton("ParaSave");
}
//组织机构树
function Tree() {
//展示组织机构树
if (isValidate() == false) {
return false;
}
submitByButton("OrgaizationTree");
}
</script>
</asp:Content>