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

80 lines
3.6 KiB

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master" Inherits="System.Web.Mvc.ViewPage<QMAPP.Web.Models.Sys.FlowSetModel>"%>
<%@ Import Namespace="QMAPP.Web.Models.Sys" %>
<%@ Import Namespace="QMAPP.Web.Models.Sys" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
添加联系人
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<table id="editTable">
<tr>
<td colspan="2">
<table width="90%">
<tr>
<td>
<div id="p" class="easyui-panel" title="机构" style="width: 370px; height: 308px;
padding: 0px; border: 1">
<% List<OrgaizationModel> orgaizationList = Model.orgaizationList;
List<ZPFlowModel> zpFlowList = Model.zpFlowList; %>
<ul style="list-style-type:none;">
<%foreach (OrgaizationModel om in orgaizationList)
{
bool check = false;
if (zpFlowList != null && zpFlowList.Count > 0)
{
ZPFlowModel tm = zpFlowList.Find(p => p.SDept == om.OrgaID);
if (tm != null)
{
check = true;
}
}
%>
<li>
<%if (check)
{ %>
<input type="checkbox" value="<%=om.OrgaID %>" checked='checked'/> <%=om.OrgaDESC%>
<%}
else
{ %>
<input type="checkbox" value="<%=om.OrgaID %>" "<%=check%>"/> <%=om.OrgaDESC%>
<%} %>
</li>
<%} %>
</ul>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<%=Html.HiddenFor(p => p.FlowLevel)%>
<%=Html.Hidden("selectKey") %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
<%=Html.QTButton("ok", "save", QMFrameWork.WebUI.IconCls.save, "Save()", (s, f) => { return true; })%>
<%=Html.QTButton("cancel", "save", "close", "parent.closeAppWindow1();return false;", (s, f) => { return true; })%>
</td>
</tr>
</table>
<script type="text/javascript">
//确定添加联系人,返回到通知管理编辑页
function Save() {
var orga = [];
$("input[type=checkbox]").each(function () {
if ($(this).prop('checked')) {
orga.push($(this).val());
}
});
$("#selectKey").val(orga.join(":"));
submitByButton("SaveSelectOrganization");
}
</script>
</asp:Content>