<!-- 信息正文页面 -->
<ion-view cache-view="false">

	<ion-nav-title>
		<h1 class="headerOfGroup title">{{::title}}</h1>
	</ion-nav-title>

  	<ion-nav-buttons side="left">
  		<button class="button icon-left ion-ios-arrow-back button-clear sino-back-button" sino-nav-direction="back" sino-go-back-button>返回</button>
  		<i class="button button-icon icon ion-ios-reloading" ng-show="loading"></i>
  	</ion-nav-buttons>

	<ion-content  scroll="true">

		<div id="detail-from">
			<div class="add-info pro-time">
				<span ng-show="creTime">{{::creTime}}</span>
			</div>
			<div class="detail-subject"> {{::subject}}</div>

			<div class="add-info-detail">
				<span class="add-info-left add-left" ng-show="dept">承办单位：{{::dept}}</span>
				<span class="add-info-right add-right" ng-show="fileCode">文号：{{::fileCode}}</span>
			</div>
      <!-- 发文 -->
			<sino-file file-name="content" title="title" show-title="showTitle" not-show-button="true" class="article-text" ng-if="flag == 'fawen'"></sino-file>
      <!-- 收文 -->
      <sino-file file-name="id" title="title" show-title="showTitle" not-show-button="true" in-archives="true" class="article-text" ng-if="flag == 'shouwen'"></sino-file>
 			<div class="add-info-detail add-bottom">
				<span class="add-info-left" ng-show="needGrade">紧急程度：{{::needGrade}}</span>
			</div>
		</div>

    <sino-affix
      record-id="{{::id}}"
      table-name="ARCHIVES_IN_ZHENGWEN"
      title="正文"
      ng-if="flag === 'shouwen'">
    </sino-affix>

    <!-- 发文中有附件 -->
    <sino-affix
      record-id="{{::id}}"
      table-name="ARCHIVES_OUT_AFFIX"
      title="附件"
      ng-if="flag === 'fawen'">
    </sino-affix>

    <!-- 收文中有附件 -->
    <sino-affix
      record-id="{{::id}}"
      table-name="ARCHIVES_IN_AFFIX"
      title="附件"
      ng-if="flag === 'shouwen'">
    </sino-affix>
	</ion-content>
</ion-view>
