From 3a163a60a12a3ddf1a5343114134ace73ad45b1a Mon Sep 17 00:00:00 2001 From: gayathri1990 Date: Thu, 9 Aug 2018 16:22:31 +0530 Subject: [PATCH] studymaterial view --- .../allocatematerial.component.html | 120 ++++++++++++------ .../allocatematerial.component.ts | 38 +++++- .../receivedmaterial.component.html | 40 +++++- .../receivedmaterial.component.scss | 4 + .../receivedmaterial.component.ts | 5 + 5 files changed, 159 insertions(+), 48 deletions(-) diff --git a/src/app/views/studymaterial/allocatematerial/allocatematerial.component.html b/src/app/views/studymaterial/allocatematerial/allocatematerial.component.html index c19a71c..30d3b05 100644 --- a/src/app/views/studymaterial/allocatematerial/allocatematerial.component.html +++ b/src/app/views/studymaterial/allocatematerial/allocatematerial.component.html @@ -1,7 +1,8 @@ -
-
+ + +
View Allocation of Study Materials  
@@ -76,46 +77,17 @@ - - Center A - 1st Sem / 2018 - MCA - - 10 + + {{app.studycentername}} + {{app.sem}} + {{app.course}} + {{app.Quantity}} + sent - - Center B - 2nd Sem / 2018 - MBA - - 15 - - Received - - - - Center C - 3rd Sem / 2019 - BE - - 20 - - Received - - - - Center D - 4th Sem / 2019 - DE - - 34 - - Received - - + @@ -135,7 +107,76 @@
+
+ + + + Allocate Study Materials
@@ -285,4 +326,5 @@
-
\ No newline at end of file + + \ No newline at end of file diff --git a/src/app/views/studymaterial/allocatematerial/allocatematerial.component.ts b/src/app/views/studymaterial/allocatematerial/allocatematerial.component.ts index b27d3ad..3c425c0 100644 --- a/src/app/views/studymaterial/allocatematerial/allocatematerial.component.ts +++ b/src/app/views/studymaterial/allocatematerial/allocatematerial.component.ts @@ -7,9 +7,43 @@ import { Component, OnInit } from '@angular/core'; }) export class AllocatematerialComponent implements OnInit { - constructor() { } + show = false; + closed = false; + public myModal; + public myModalData; + studyMaterialDetails: any; + constructor() { } + ngOnInit(){ + this.studyMaterialDetails = [ + { + studycentername: 'Studycenter A', + sem:'1st Sem/2018', + course: 'BE', + Quantity: '30', + + }, + { + studycentername: 'Studycenter B', + sem:'2nd Sem/2018', + course: 'MCA', + Quantity: '10', + }, + { + studycentername: 'Studycenter C', + sem:'1st Sem/2018', + course: 'MBA', + Quantity: '20', + } + ] + } + - ngOnInit() { + getModelWindowDetails(stuCent) { + this.myModalData = stuCent||null; + } + editStudyCenter(){ + this.show = !this.show; } } + \ No newline at end of file diff --git a/src/app/views/studymaterial/receivedmaterial/receivedmaterial.component.html b/src/app/views/studymaterial/receivedmaterial/receivedmaterial.component.html index a27defa..8bb511b 100644 --- a/src/app/views/studymaterial/receivedmaterial/receivedmaterial.component.html +++ b/src/app/views/studymaterial/receivedmaterial/receivedmaterial.component.html @@ -10,6 +10,7 @@
+
@@ -70,7 +71,8 @@ University Name Course Name Sem/Year - Quantity + Received Quantity + Balance Quantity Received Date @@ -80,6 +82,7 @@ MCA 1st Sem 10 + 0 10/10/2018 @@ -87,6 +90,7 @@ MBA 2nd Sem 15 + 2 15/10/2018 @@ -94,6 +98,7 @@ BE 3rd Sem 20 + 0 10/11/2018 @@ -101,6 +106,7 @@ DE 4th sem 34 + 10 12/11/2018 @@ -133,9 +139,29 @@
+ +
+
+ + +
+ +
+
+ +
- +
- +
- +
- - + +
diff --git a/src/app/views/studymaterial/receivedmaterial/receivedmaterial.component.scss b/src/app/views/studymaterial/receivedmaterial/receivedmaterial.component.scss index e69de29..afeb7c4 100644 --- a/src/app/views/studymaterial/receivedmaterial/receivedmaterial.component.scss +++ b/src/app/views/studymaterial/receivedmaterial/receivedmaterial.component.scss @@ -0,0 +1,4 @@ + +.required{ + color:red; +} diff --git a/src/app/views/studymaterial/receivedmaterial/receivedmaterial.component.ts b/src/app/views/studymaterial/receivedmaterial/receivedmaterial.component.ts index d5e10d0..3e812e9 100644 --- a/src/app/views/studymaterial/receivedmaterial/receivedmaterial.component.ts +++ b/src/app/views/studymaterial/receivedmaterial/receivedmaterial.component.ts @@ -11,5 +11,10 @@ export class ReceivedmaterialComponent implements OnInit { ngOnInit() { } + ShowHideDiv(chkPassport) { + alert('hai'); + var dvPassport = document.getElementById("dvPassport"); + dvPassport.style.display = chkPassport.checked ? "block" : "none"; + } }