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

138 lines
4.9 KiB

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master" Inherits="System.Web.Mvc.ViewPage<QMAPP.Web.Models.Sys.UserListModel>" %>
<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><%=Html.QV(p=>p.LoginUserID) %></th>
<td><%=Html.QC(p => p.LoginUserID)%>
</td>
<th><%=Html.QV(p=>p.UserName) %></th>
<td><%=Html.QC(p => p.UserName)%></td>
<th><%=Html.QV(p=>p.OrgaID) %></th><td><%=Html.QC(p => p.OrgaID)%></td>
<th><%=Html.QV(p=>p.ActivateFlg) %></th><td><%=Html.QC(p => p.ActivateFlg)%></td>
</tr>
</table>
<%=Html.QPEnd()%>
<%=Html.QPList() %>
<%=Html.QDateGrid<QMAPP.Web.Models.Sys.UserListModel>(Model)%>
<%=Html.QPEnd() %>
<%=Html.Hidden("selectKey")%>
<%=Html.Hidden("fileName") %>
<script language="javascript" type="text/javascript">
//增加用户信息
function Add() {
openAppWindow1('添加用户', 'UserEdit', '550', '480');
}
//修改用户信息
function Edit() {
var ids = getSelectKey();
if (ids == "") {
MSI("提示", "请选择修改记录。");
return;
}
if (ids.indexOf(":") > 0) {
MSI("提示", "每次只能修改一条记录。");
return;
}
openAppWindow1('用户信息', 'UserEdit?UserID=' + ids, '550', '480');
}
//删除
function Delete() {
var ids = getSelectKey();
if (ids == "") {
MSI("错误", "至少选择一个用户信息!");
}
else {
document.getElementById("selectKey").value = ids;
MSQ("提示", "确定要删除选中的记录吗?", function () {
submitByButton("UserDelete");
})
}
}
//业务权限
function SetBusinessPower() {
var ids = getSelectKey();
if (ids == "") {
MSI("提示", "请选择记录。");
return;
}
if (ids.indexOf(":") > 0) {
MSI("提示", "每次只能选择一条记录。");
return;
}
openAppWindow1('设置业务权限', 'SetUserBusiPower?userID=' + ids, '520', '480');
}
//设置密码
function SetPwd() {
var ids = getSelectKey();
if (ids == "") {
MSI("提示", "请选择一条记录。");
return;
}
if (ids.indexOf(":") > 0) {
MSI("提示", "每次只能选择一条记录。");
return;
}
openAppWindow1('用户信息', "/User/SetPassword?userID=" + ids, '400', '200');
}
//应用查询模板
function ApplyTemplate(templateID) {
_showProgress();
submitByButton("/User/UserList?templateID=" + templateID);
}
//取消应用查询模板
function RemoveTemplate() {
_showProgress();
submitByButton("/User/UserList");
}
//导出
function Export() {
document.getElementById("selectKey").value = getSelectKey();
submitByButton("ExportExcel");
}
//导入
function Import() {
var fileName = window.showModalDialog("/File/UploadFile", "", "dialogHeight: 200px; dialogWidth: 400px; center: Yes; help: Yes;status: Yes;");
if (fileName == null)
return;
document.getElementById("fileName").value = fileName;
//处理等待
_showProgress();
submitByButton("ImportExcel");
}
</script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
<table id="EditTable" cellpadding=0 cellspacing=0>
<tr>
<td align="center">
<%=Html.QTButtonSearch("User", "UserList", "List(1)", QMAPP.Common.Web.SystemLimit.isLimt)%>
<%=Html.QTButtonAdd("User", "UserAdd", "Add();", QMAPP.Common.Web.SystemLimit.isLimt)%>
<%=Html.QTButtonUpdate("User", "UserEdit", "Edit()", QMAPP.Common.Web.SystemLimit.isLimt)%>
<%=Html.QTButtonDelete("User", "UserDelete", "Delete()", QMAPP.Common.Web.SystemLimit.isLimt)%>
<%=Html.QTButton("setPwd", "SetPassword", "pwd", "SetPwd()", QMAPP.Common.Web.SystemLimit.isLimt)%>
<%=Html.QTButton("export", "ExportExcel", QMFrameWork.WebUI.IconCls.redo, "Export()", QMAPP.Common.Web.SystemLimit.isLimt)%>
</td>
</tr>
</table>
</asp:Content>