<%@ page language="C#" autoeventwireup="true" inherits="MIS_ZLOA_AffairsList, App_Web_tkqthnmr" masterpagefile="~/Plat/Main.master" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<asp:Content runat="server" ContentPlaceHolderID="head">
<title>发文列表</title>
</asp:Content>
<asp:Content runat="server" ContentPlaceHolderID="Content">
<ol class="breadcrumb">
<li><a href="/Plat/Blog/">能力中心</a></li>
<li><a href="/Plat/OA/">OA办公</a></li>
<li><a href="AffairsList.aspx?view=<%:CurrentView %>"><asp:Label ID="Label1" runat="server" Text=""></asp:Label></a></li>
</ol>
<div style="margin-top:10px;">
<ZL:ExGridView runat="server" ID="EGV" AutoGenerateColumns="false" AllowPaging="true" PageSize="20"  EnableTheming="False" 
CssClass="table table-bordered table-hover table-striped" EmptyDataText="当前没有信息!!" OnPageIndexChanging="EGV_PageIndexChanging" OnRowCommand="EGV_RowCommand" >
  <Columns>
  <asp:BoundField HeaderText="ID" DataField="ID" />
  <asp:TemplateField HeaderText="发文类型" Visible="false">
	<ItemTemplate> <%#GetType(Eval("Type", "{0}")) %> </ItemTemplate>
  </asp:TemplateField>
  <asp:BoundField HeaderText="拟稿部门" DataField="Branch" />
  <asp:BoundField HeaderText="标题" DataField="Title" />
  <asp:TemplateField HeaderText="密级">
	<ItemTemplate> <%#GetSecret( Eval("Secret","{0}")) %> </ItemTemplate>
  </asp:TemplateField>
  <asp:TemplateField HeaderText="紧急程度">
	<ItemTemplate> <%# GetUrgency(Eval("Urgency","{0}")) %> </ItemTemplate>
  </asp:TemplateField>
  <asp:TemplateField HeaderText="重要程度">
	<ItemTemplate> <%# GetImport(Eval("Importance","{0}")) %> </ItemTemplate>
  </asp:TemplateField>
  <asp:TemplateField HeaderText="状态">
	<ItemTemplate> <%# GetStatus(Eval("Status","{0}")) %> </ItemTemplate>
  </asp:TemplateField>
  <asp:BoundField HeaderText="创建时间" DataField="CreateTime" />
  <asp:TemplateField HeaderText="操作">
	<ItemTemplate> <a href="ReadAffair.aspx?AppID=<%#Eval("ID") %>">详情</a>| <a href="javascript:;" onclick="openWin('<%#Eval("ID") %>');">分发</a> </ItemTemplate>
  </asp:TemplateField>
  </Columns>
  <PagerStyle HorizontalAlign="Center"/>
  <RowStyle Height="24px" HorizontalAlign="Center" />
</ZL:ExGridView>
</div>
<asp:Button runat="server" ID="singleBtn" OnClick="singleBtn_Click" style="display:none;"/>
<!--后台前测，前台只有提交请求权-->
<asp:HiddenField runat="server" ID="pageData" />
</asp:Content>
<asp:Content runat="server" ContentPlaceHolderID="ScriptContent">
<script type="text/javascript">
function openWin(v) {
var url = "<%=CustomerPageAction.customPath2+"Common/NodeList.aspx?ModelID="+ZoomLa.Components.OAConfig.ModelID%>";
var iTop = (window.screen.availHeight - 30 - 550) / 2;
var iLeft = (window.screen.availWidth - 10 - 960) / 2;
window.open(url, "_win", 'height=550, width=500,top=' + iTop + ',left=' + iLeft + ',toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no');
$("#pageData").val(v);
}
function ParentFunc(v) {
v = $("#pageData").val() + ":" + v;
$("#pageData").val(v);
$("#singleBtn").trigger("click");
}
</script>
</asp:Content>
