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

97 lines
4.0 KiB

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master" Inherits="System.Web.Mvc.ViewPage<QMAPP.Web.Models.Sys.FlowSetModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
支持交互流程设置
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<table id="tblFlow" style="width: 360px;overflow: auto">
<thead>
<tr>
<th field="FLOWNODE">流程结点</th>
<th field="FLOWUSER">相关机构</th>
<th field="FLOWACTION"></th>
</tr>
</thead>
<tbody>
<tr>
<td>1级结点</td>
<td><input class="easyui-validatebox" style="width:240px" type="text" value="<%=Model.FlowLevel1 %>" /></td>
<td><a IconCls="icon-set" class="easyui-linkbutton" href="#" plain="true" onclick="AddUser(1);" title="设置"></a></td>
</tr>
<tr>
<td>2级结点</td>
<td><input class="easyui-validatebox" style="width:240px" type="text" value="<%=Model.FlowLevel2 %>" /></td>
<td><a IconCls="icon-set" class="easyui-linkbutton" href="#" plain="true" onclick="AddUser(2);" title="设置"></a></td>
</tr>
<tr>
<td>3级结点</td>
<td><input class="easyui-validatebox" style="width:240px" type="text" value="<%=Model.FlowLevel3 %>" /></td>
<td><a IconCls="icon-set" class="easyui-linkbutton" href="#" plain="true" onclick="AddUser(3);" title="设置"></a></td>
</tr>
<%--<tr>
<td>4级结点</td>
<td><input class="easyui-validatebox" style="width:240px" type="text" value="超级管理员" /></td>
<td><a IconCls="icon-set" class="easyui-linkbutton" href="#" plain="true" title="设置"></a></td>
</tr>
<%
for (int i = 5; i <= 10; i++)
{%>
<tr>
<td><%=i.ToString()%>级结点</td>
<td><input class="easyui-validatebox" style="width:240px" type="text" /></td>
<td><a IconCls="icon-set" class="easyui-linkbutton" href="#" plain="true" title="设置"></a></td>
</tr>
<% }
%> --%>
</tbody>
</table>
<input type="hidden" name="FlowLevel" id="FlowLevel" />
<script language="javascript" type="text/javascript">
$(function () {
$('#tblFlow').datagrid({ singleSelect: true });
});
//添加组织机构下的人员
function AddUser(FlowLevel) {
$("#FlowLevel").val(FlowLevel);
//获取当前结点下的人员字符串
openAppWindow1('机构', '/WorkFlow/GetCurrentUserFlowLevel?FlowLevel=' + FlowLevel, '400', '400');
}
//保存选择的用户
function saveUser(strUserID, strUserName) {
if (strUserID != "") {
$.ajax({
type: "POST",
url: "/WorkFlow/SaveUser",
async: false,
data: { SendAim: strUserID, FlowLevel: $("#FlowLevel").val() },
success: function (msg) {
if (msg) {
alert("保存成功!");
submitByButton("SIFlowSetList");
} else {
alert("保存失败!");
}
}
});
}
}
//刷新页面
function updatePage() {
submitByButton("SIFlowSetList");
}
</script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
<table width="100%" cellpadding=0 cellspacing=0>
<tr>
<td>
<%=Html.QTButton("help", "", "help", "SysHelp('Support040000','SIFlowSetList')", (s, f) => { return true; })%>
</td>
</tr>
</table>
</asp:Content>