import { Component, OnInit } from '@angular/core';

@Component({
  templateUrl: 'courier.component.html',
  styleUrls: ['./courier.component.scss']
})

export class CourierComponent implements OnInit {
  show = false;
  closed = false;
  public myModal;
  public myModalData;
  courier: any;
  constructor() { }
  ngOnInit(){
       this.courier = [
      {
        courierName: 'Documents',
        docketNo: '234dsf',
        type: 'Received',
        comments: 'Documents Details',
        receiveBy: 'sss',
        sendTo: 'KR Univ',
        status: 'sent',
        date: '20/07/2018',
        qt: 120,
        weight: '12kgm',
        amt : 120
      },
      {
        courierName: 'Answer Booklets',
        docketNo: '43526345',
        type: 'Dispatched',
        comments: 'answer booklets details',
        receiveBy: 'asd',
        sendTo: 'SC 2',
        status: 'received by SC',
        date: '28/06/2018',
        qt: 120,
        weight: '12kgm',
        amt : 120
      },
      {
        courierName: 'Forms',
        docketNo: '8855435',
        type: 'Dispatched',
        comments: 'details',
        receiveBy: 'abc',
        sendTo: 'SC 1',
        status: 'Sent by SC',
        date: '12/06/2018',
        qt: 120,
        weight: '12kgm',
        amt : 120
      }
    ]
  }

  getModelWindowDetails(stuCent) {
    this.myModalData = stuCent||null;
  }
  editDocuments(){
     this.show = !this.show;
  }

}
