From 26a6344f38fe12f2b4351dd69c325b41954253ce Mon Sep 17 00:00:00 2001 From: gayathri1990 Date: Fri, 10 Aug 2018 15:58:57 +0530 Subject: [PATCH] studymaterial stock --- .../studymaterialstock.component.html | 16 +++++++-- .../studymaterialstock.component.ts | 33 ++++++++++++++++--- 2 files changed, 42 insertions(+), 7 deletions(-) diff --git a/src/app/views/studymaterial/studymaterialstock/studymaterialstock.component.html b/src/app/views/studymaterial/studymaterialstock/studymaterialstock.component.html index 45f7c96..6a0e564 100644 --- a/src/app/views/studymaterial/studymaterialstock/studymaterialstock.component.html +++ b/src/app/views/studymaterial/studymaterialstock/studymaterialstock.component.html @@ -76,19 +76,29 @@ Action - - + + {{stock.universityname}} {{stock.coursename}} {{stock.semyear}} {{stock.registration}} {{stock.stock}} - + + + + Date + Details + Incoming + Outgoing + Balance on Hand + + + diff --git a/src/app/views/studymaterial/studymaterialstock/studymaterialstock.component.ts b/src/app/views/studymaterial/studymaterialstock/studymaterialstock.component.ts index b9b31cc..bf75a3d 100644 --- a/src/app/views/studymaterial/studymaterialstock/studymaterialstock.component.ts +++ b/src/app/views/studymaterial/studymaterialstock/studymaterialstock.component.ts @@ -11,6 +11,7 @@ export class StudymaterialstockComponent implements OnInit { public myModal; public myModalData; studymaterialDetails: any; + stockdetails:any; constructor() { } ngOnInit() { @@ -37,11 +38,35 @@ export class StudymaterialstockComponent implements OnInit { stock: '80' } ] + + this.stockdetails = [ + { + date: '10/08/2018', + details: 'MCA', + incoming: '100', + outgoing: '30', + balanceonhand: '70' + }, + { + date: '12/08/2018', + details: 'MCA', + incoming: '60', + outgoing: '30', + balanceonhand: '30' + }, + { + date: '14/08/2018', + details: 'MCA', + incoming: '50', + outgoing: '0', + balanceonhand: '50' + } + ] } - getModelWindowDetails(stuCent) { - this.myModalData = stuCent||null; - } - viewstock(){ + viewId: any; + viewstock(i){ + this.viewId = i; this.show = !this.show; + } } \ No newline at end of file