principal-dashboard-lib-v2 0.0.9 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -307,6 +307,7 @@
307
307
  //----------// terminalIP and terminalLocation
308
308
  for (var i_3 = 0; i_3 < schoolTerminalMatrix.length; i_3++) {
309
309
  if (terminalIP === schoolTerminalMatrix[i_3].terminalKey) {
310
+ // console.log("schoolTerminalMatrix[i].terminalKey",terminalIP,schoolTerminalMatrix[i]);
310
311
  terminalLocation = schoolTerminalMatrix[i_3].location;
311
312
  }
312
313
  }
@@ -351,6 +352,7 @@
351
352
  var dataTableforChart = new Array();
352
353
  dataTableforChart = [];
353
354
  if (this.userConsoleData) {
355
+ console.log("this.userConsoleData", this.userConsoleData);
354
356
  for (var i = 0; i < this.userConsoleData.length; i++) {
355
357
  var userData = [this.userConsoleData[i].terminalLocation, this.userConsoleData[i].startTime, this.userConsoleData[i].endTime];
356
358
  dataTableforChart.push(userData);
@@ -646,7 +648,7 @@
646
648
  this.isChartView = true;
647
649
  }
648
650
  ChartheaderComponent.prototype.ngOnInit = function () {
649
- this.libVersion = "0.0.18";
651
+ this.libVersion = "0.0.19";
650
652
  // this.myIcon = document.getElementById('myIconImg');
651
653
  // this.changeChatType()
652
654
  };
@@ -1288,6 +1290,7 @@
1288
1290
  };
1289
1291
  ChartviewComponent.prototype.userWiseCurrentData = function () {
1290
1292
  var chartDataUserWise = this.pdService.userWiseChartData();
1293
+ console.log("chartDataUserWise", chartDataUserWise);
1291
1294
  if (chartDataUserWise.length > 0) {
1292
1295
  this.myChartDataMatrix = chartDataUserWise;
1293
1296
  this.updateChart();
@@ -1306,6 +1309,7 @@
1306
1309
  };
1307
1310
  ChartviewComponent.prototype.classRoomWiseCurrentData = function () {
1308
1311
  var classRoomdata = this.pdService.classRoomWiseChartData();
1312
+ console.log("classRoomdata", classRoomdata);
1309
1313
  if (classRoomdata && classRoomdata.length > 0) {
1310
1314
  this.myChartDataMatrix = classRoomdata;
1311
1315
  this.updateChart();
@@ -1884,13 +1888,19 @@
1884
1888
  // FOR EXCEL
1885
1889
  resourceArrayForExcel = [teacherName, teacherSubject, currentDate, startTime, endTime, duration, locationName, terminalIPAddress, subject, grade, chapter, teachingpoint, resourceTitle, resourceType, userID];
1886
1890
  resourceMatrixForExcel.push(resourceArrayForExcel);
1891
+ teacherName = '';
1892
+ teacherSubject = '';
1893
+ currentDate = '';
1894
+ startTime = '';
1895
+ endTime = '';
1896
+ locationName = '';
1897
+ terminalIPAddress = '';
1898
+ duration = '';
1887
1899
  }
1888
1900
  }
1889
1901
  }
1890
1902
  }
1891
1903
  }
1892
- // console.log("resourceMatrixForExcel",[...new Set(resourceMatrixForExcel)]);
1893
- // console.log("resourceMatrixForExcel",resourceMatrixForExcel);
1894
1904
  return resourceMatrixForExcel;
1895
1905
  };
1896
1906
  ExceldataService.prototype.deatilUsage_Excel = function (resourceMatrixForExcel) {
@@ -1905,7 +1915,7 @@
1905
1915
  Date: resourceMatrixForExcel[i][2],
1906
1916
  startTime: resourceMatrixForExcel[i][3],
1907
1917
  endTime: resourceMatrixForExcel[i][4],
1908
- duration: resourceMatrixForExcel[i][5],
1918
+ "duration(mins)": resourceMatrixForExcel[i][5],
1909
1919
  location: resourceMatrixForExcel[i][6],
1910
1920
  IP: resourceMatrixForExcel[i][7],
1911
1921
  subjectTitle: resourceMatrixForExcel[i][8],
@@ -1941,6 +1951,8 @@
1941
1951
  grades = [];
1942
1952
  subjectTought = [];
1943
1953
  duration = 0;
1954
+ // console.log("userMetadataList[i]",userMetadataList);
1955
+ // console.log("resourceMatrixForExcel[i]",[...new Set(resourceMatrixForExcel)]);
1944
1956
  for (var j = 0; j < resourceMatrixForExcel.length; j++) {
1945
1957
  if (userMetadataList[i].userId === resourceMatrixForExcel[j][14]) {
1946
1958
  if (resourceMatrixForExcel[j][12] != '') {
@@ -1949,7 +1961,9 @@
1949
1961
  if (resourceMatrixForExcel[j][13] != '') {
1950
1962
  resourceTypeList.push(resourceMatrixForExcel[j][13]);
1951
1963
  }
1952
- duration = duration + resourceMatrixForExcel[j][5];
1964
+ if (resourceMatrixForExcel[j][5] != '') {
1965
+ duration = duration + resourceMatrixForExcel[j][5];
1966
+ }
1953
1967
  classRooms.push(resourceMatrixForExcel[j][6]);
1954
1968
  datesAccess.push(resourceMatrixForExcel[j][2]);
1955
1969
  grades.push(resourceMatrixForExcel[j][9]);
@@ -2031,7 +2045,7 @@
2031
2045
  // Sr_No: i+1,
2032
2046
  Name: userObjectList[i].Name,
2033
2047
  Subjects_taught: userObjectList[i].Subjects,
2034
- Duration: userObjectList[i].duration,
2048
+ " Duration(mins)": userObjectList[i].duration,
2035
2049
  ClassRooms: userObjectList[i].ClassRooms,
2036
2050
  DaysAccsessed: userObjectList[i].DayAccess,
2037
2051
  DatesAccess: userObjectList[i].DatesAccess,