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.
92 lines
3.4 KiB
92 lines
3.4 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.QPSeach(80,true) %>
|
|
<table id="condiTable">
|
|
<tr>
|
|
<th align=right><%=Html.QV(p=>p.ParaDESC) %></th>
|
|
<td><%=Html.QC(p => p.ParaDESC)%>
|
|
</td>
|
|
<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>
|
|
<th align=right><%=Html.QV(p => p.ParaType)%></th><td><%=Html.QC(p => p.ParaType)%></td>
|
|
</tr>
|
|
</table>
|
|
<%=Html.QPEnd()%>
|
|
<%=Html.QPList() %>
|
|
<%=Html.QDateGrid<QMAPP.Web.Models.Sys.ParaAuthorityPortModel>(Model)%>
|
|
<%=Html.QPEnd() %>
|
|
<%=Html.Hidden("selectKey")%>
|
|
|
|
<script language="javascript">
|
|
$(function () {
|
|
$('#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'
|
|
});
|
|
}
|
|
});
|
|
|
|
})
|
|
//增加参数信息
|
|
function Add() {
|
|
openAppWindow1('参数信息', 'ParaEdit', '500', '460');
|
|
}
|
|
//修改参数信息
|
|
function Edit() {
|
|
var ids = getSelectKey();
|
|
if (ids == "") {
|
|
MSI("提示", "请选择修改记录。");
|
|
return;
|
|
}
|
|
if (ids.indexOf(":") > 0) {
|
|
MSI("提示", "每次只能修改一条记录。");
|
|
return;
|
|
}
|
|
|
|
openAppWindow1('参数信息', 'ParaEdit?ParaID=' + ids, '500', '460');
|
|
}
|
|
//删除
|
|
function Delete() {
|
|
var ids = getSelectKey();
|
|
|
|
if (ids == "") {
|
|
MSI("错误", "至少选择一个参数信息!");
|
|
}
|
|
else {
|
|
document.getElementById("selectKey").value = ids;
|
|
MSQ("提示", "确定要删除选中的记录吗?", function () {
|
|
submitByButton("ParaDelete");
|
|
})
|
|
}
|
|
}
|
|
|
|
</script>
|
|
</asp:Content>
|
|
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
|
|
<table id="EditTable" cellpadding=0 cellspacing=0>
|
|
<tr>
|
|
<td align="center">
|
|
<%=Html.QTButtonSearch("ParaAuthorityPort", "ParaList", "List(1)")%>
|
|
<%=Html.QTButtonAdd("ParaAuthorityPort", "ParaEdit", "Add();", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
<%=Html.QTButtonUpdate("ParaAuthorityPort", "ParaEdit", "Edit()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
<%=Html.QTButtonDelete("ParaAuthorityPort", "ParaDelete", "Delete()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</asp:Content>
|
|
|