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

175 lines
5.8 KiB

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
Inherits="System.Web.Mvc.ViewPage<QMAPP.Web.Models.Sys.UserEntrustModel>" %>
<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.ENTRUSTUSERID)%>
</th>
<td>
<table>
<tr>
<td>
<%=Html.QMyPerceptTextboxFor(p => p.ENTRUSTUSER, p => p.ENTRUSTUSERNAME, "userlist", "SelectEntrustUser", null)%>
</td>
<td>
<%=Html.QReadOnlyTextboxFor(p=>p.ENTRUSTUSERNAME) %>
</td>
</tr>
</table>
<%=Html.HiddenFor(p=>p.ENTRUSTUSERID) %>
</td>
<th>
<%=Html.QV(p => p.AGENTUSERID)%>
</th>
<td>
<table>
<tr>
<td>
<%=Html.QMyPerceptTextboxFor(p => p.AGENTUSER, p => p.AGENTUSERNAME, "userlist", "SelectAgentUser", null)%>
</td>
<td>
<%=Html.QReadOnlyTextboxFor(p=>p.AGENTUSERNAME) %>
</td>
</tr>
</table>
<%=Html.HiddenFor(p => p.AGENTUSERID)%>
</td>
<th>
委托日期
</th>
<td>
<%=Html.QC(p=>p.STARTDATE) %>
</td>
<th>
</th>
<td>
<%=Html.QC(p=>p.ENDDATE) %>
</td>
</tr>
</table>
<%=Html.QPEnd()%>
<%=Html.QPList() %>
<%=Html.QDateGrid<QMAPP.Web.Models.Sys.UserEntrustModel>(Model)%>
<%=Html.QPEnd() %>
<%=Html.Hidden("selectKey")%>
<script language="javascript" type="text/javascript">
//查询
function Search() {
if ($("#STARTDATE").val() != "" && $("#ENDDATE").val() != "") {
var minDays = DateDiff($("#STARTDATE").val(), $("#ENDDATE").val());
if (minDays < 0) {
MSI("提示", "截至时间不能早于开始时间!");
return false;
}
}
List();
}
//添加
function add() {
openAppWindow1("添加委托授权", 'Edit', '550', '480');
}
//修改
function Update() {
var ids = getSelectKey();
if (ids == "") {
MSI(MsgNormalTitle, NothingSelectTitle);
return;
}
if (ids.indexOf(":") > 0) {
MSI(MsgNormalTitle, OnlyOneTitle);
return;
}
document.getElementById("selectKey").value = ids;
openAppWindow1("修改委托授权", 'Edit?id=' + ids, '550', '480');
}
//删除
function Delete() {
var ids = getSelectKey();
if (ids == "") {
MSI(MsgNormalTitle, AtLeastOneTitle);
}
else {
document.getElementById("selectKey").value = ids;
MSQ(MsgNormalTitle, FixDeleteTitle, function () {
submitByButton("Delete");
})
}
}
//业务权限
function SetBusinessPower() {
var ids = getSelectKey();
if (ids == "") {
MSI("提示", "请选择记录。");
return;
}
if (ids.indexOf(":") > 0) {
MSI("提示", "每次只能选择一条记录。");
return;
}
openAppWindow1('设置业务权限', 'SetBusiPower?id=' + ids, '520', '480');
}
//导出
function Export() {
document.getElementById("selectKey").value = getSelectKey();
submitByButton("ExportExcel");
}
//选择委托用户
function SelectEntrustUser(data) {
if (data != null) {
if (data.id == $("#ENTRUSTUSERID").val())
return;
$("#ENTRUSTUSERID").val(data.id);
}
else {
if ($("#ENTRUSTUSERID").val() == "")
return;
$("#ENTRUSTUSERID").val("");
}
}
//选择代理用户
function SelectAgentUser(data) {
if (data != null) {
if (data.id == $("#AGENTUSERID").val())
return;
$("#AGENTUSERID").val(data.id);
}
else {
if ($("#AGENTUSERID").val() == "")
return;
$("#AGENTUSERID").val("");
}
}
</script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
<table cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<%=Html.QTButtonSearch("Entrust", "List", "Search()")%>
<%=Html.QTButtonAdd("Entrust", "Add", "add()")%>
<%=Html.QTButtonUpdate("Entrust", "Update", "Update()")%>
<%=Html.QTButtonDelete("Entrust", "Delete", "Delete()")%>
<%=Html.QTButton("export", "ExportExcel",QMFrameWork.WebUI.IconCls.redo, "Export()", (s, f) => { return true; })%>
<%--<%=Html.QTButton("help", "", "help", "SysHelp('01150000','UserEntrustList')", (s, f) => { return true; })%> --%>
</td>
</tr>
</table>
</asp:Content>