<!-- 待阅事宜列表页面 -->
<ion-view cache-view="false">
  <ion-nav-title>
    <h1 class="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>

  <sino-list-tabs name="dbsy">
    <sino-list-pane title="待办" cache-array="dbsyGroupCtrl.todos">
      <a class="item item-avatar" ng-repeat="item in dbsyGroupCtrl.todos.items " ng-click="dbsyGroupCtrl.toDetail(item.dbsy)">
        <sino-person-photo
          class="size_40x40 item-image"
          user-id="{{item | prewriteidfilter}}">
        </sino-person-photo>
        <h2>{{item.dbsy.title}}</h2>
        <div>
          <p>文件类型：<span>{{item.dbsy.typeName}}</span></p>
          <p ng-if="item.dbsy.userName">前一节点：<span>{{item.dbsy.userName}}</span></p>
          <p>报送时间：{{item.dbsy.time}}</p>
        </div>
      </a>
    </sino-list-pane>

    <sino-list-pane title="已办理" cache-array="dbsyGroupCtrl.relatedList">
      <a class="item item-avatar"
        ng-repeat="item in dbsyGroupCtrl.relatedList.items"
        ng-click="dbsyGroupCtrl.toDetail(item)"
        sino-list-pane-cache-item="dbsyGroupCtrl.relatedList">
        <sino-person-photo user-id="{{item.userId }}"></sino-person-photo>

        <h2><span>{{item.title}}</span></h2>
        <p>
          文件类型：<span>{{item.typeName}}</span><br/>
          拟稿人：<span>{{item.userName}}</span><br/>
          <span>拟稿时间：{{item.time}}</span>
        </p>
      </a>
    </sino-list-pane>
  </sino-list-tabs>
</ion-view>
