Commit 220589b4f3a8bd793ff1362e4cc6fde074f987be

Authored by Utkarsh Singh
1 parent 7113c6ce

Committed updated files

Showing 34 changed files with 1203 additions and 554 deletions
400-SOURCECODE/AIAHTML5.Admin/app/app.component.js
... ... @@ -10,6 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10 10 };
11 11 var core_1 = require('@angular/core');
12 12 var application_service_1 = require('./services/application.service');
  13 +var update_user_service_1 = require('./services/update-user.service');
13 14 var AppComponent = (function () {
14 15 function AppComponent(application) {
15 16 this.application = application;
... ... @@ -27,7 +28,7 @@ var AppComponent = (function () {
27 28 core_1.Component({
28 29 selector: 'my-app',
29 30 templateUrl: './app/app.component.html',
30   - providers: [application_service_1.ApplicationService]
  31 + providers: [application_service_1.ApplicationService, update_user_service_1.UpdateUserService]
31 32 }),
32 33 __metadata('design:paramtypes', [application_service_1.ApplicationService])
33 34 ], AppComponent);
... ...
400-SOURCECODE/AIAHTML5.Admin/app/app.component.js.map
1   -{"version":3,"file":"app.component.js","sourceRoot":"","sources":["app.component.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,qBAAkC,eAAe,CAAC,CAAA;AAClD,oCAAiC,gCAAgC,CAAC,CAAA;AAOlE;IACI,sBAAoB,WAA+B;QAA/B,gBAAW,GAAX,WAAW,CAAoB;IAAI,CAAC;IAExD,+BAAQ,GAAR;QAAA,iBAOC;QANG,EAAE,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,WAAW,IAAI,IAAI,CAAC,CAAC,CAAC;YACvC,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAAC,SAAS,CAAC,UAAC,WAAW;gBACpE,KAAI,CAAC,WAAW,CAAC,WAAW,GAAG,WAAW,CAAC;gBAC3C,KAAI,CAAC,WAAW,CAAC,iBAAiB,GAAG,IAAI,CAAC;YAC9C,CAAC,CAAC,CAAC;QACP,CAAC;IACL,CAAC;IAfL;QAAC,gBAAS,CAAC;YACP,QAAQ,EAAE,QAAQ;YAClB,WAAW,EAAE,0BAA0B;YACvC,SAAS,EAAE,CAAC,wCAAkB,CAAC;SAClC,CAAC;;oBAAA;IAYF,mBAAC;AAAD,CAAC,AAXD,IAWC;AAXY,oBAAY,eAWxB,CAAA"}
2 1 \ No newline at end of file
  2 +{"version":3,"file":"app.component.js","sourceRoot":"","sources":["app.component.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,qBAAkC,eAAe,CAAC,CAAA;AAClD,oCAAmC,gCAAgC,CAAC,CAAA;AACpE,oCAAkC,gCAAgC,CAAC,CAAA;AAQnE;IACI,sBAAoB,WAA+B;QAA/B,gBAAW,GAAX,WAAW,CAAoB;IAAI,CAAC;IAExD,+BAAQ,GAAR;QAAA,iBAOC;QANG,EAAE,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,WAAW,IAAI,IAAI,CAAC,CAAC,CAAC;YACvC,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAAC,SAAS,CAAC,UAAC,WAAW;gBACpE,KAAI,CAAC,WAAW,CAAC,WAAW,GAAG,WAAW,CAAC;gBAC3C,KAAI,CAAC,WAAW,CAAC,iBAAiB,GAAG,IAAI,CAAC;YAC9C,CAAC,CAAC,CAAC;QACP,CAAC;IACL,CAAC;IAhBL;QAAC,gBAAS,CAAC;YACP,QAAQ,EAAE,QAAQ;YAClB,WAAW,EAAE,0BAA0B;YACvC,SAAS,EAAE,CAAC,wCAAkB,EAAE,uCAAiB,CAAC;SAErD,CAAC;;oBAAA;IAYF,mBAAC;AAAD,CAAC,AAXD,IAWC;AAXY,oBAAY,eAWxB,CAAA"}
3 3 \ No newline at end of file
... ...
400-SOURCECODE/AIAHTML5.Admin/app/app.component.ts
1   -import { Component, OnInit } from '@angular/core';
2   -import {ApplicationService} from './services/application.service';
3   -
4   -@Component({
5   - selector: 'my-app',
6   - templateUrl: './app/app.component.html',
7   - providers: [ApplicationService]
8   -})
9   -export class AppComponent implements OnInit {
10   - constructor(private application: ApplicationService) { }
11   -
12   - ngOnInit(): void {
13   - if (this.application.currentUser != null) {
14   - this.application.getAppSettings("Administration").subscribe((appSettings) => {
15   - this.application.appSettings = appSettings;
16   - this.application.appSettingsLoaded = true;
17   - });
18   - }
19   - }
20   -}
  1 +import { Component, OnInit } from '@angular/core';
  2 +import { ApplicationService } from './services/application.service';
  3 +import { UpdateUserService } from './services/update-user.service';
  4 +
  5 +@Component({
  6 + selector: 'my-app',
  7 + templateUrl: './app/app.component.html',
  8 + providers: [ApplicationService, UpdateUserService]
  9 +
  10 +})
  11 +export class AppComponent implements OnInit {
  12 + constructor(private application: ApplicationService) { }
  13 +
  14 + ngOnInit(): void {
  15 + if (this.application.currentUser != null) {
  16 + this.application.getAppSettings("Administration").subscribe((appSettings) => {
  17 + this.application.appSettings = appSettings;
  18 + this.application.appSettingsLoaded = true;
  19 + });
  20 + }
  21 + }
  22 +}
... ...
400-SOURCECODE/AIAHTML5.Admin/app/components/add-new-license.component.js
... ... @@ -282,7 +282,7 @@ var AddNewLicenseComponent = (function () {
282 282 var _this = this;
283 283 this.applicationService.getLicenseTypes().subscribe(function (licenses) {
284 284 _this.licenseTypes = JSON.parse(licenses);
285   - console.log('this.licenseTypes: ' + _this.licenseTypes);
  285 + //console.log('this.licenseTypes: ' + this.licenseTypes);
286 286 }, function (err) {
287 287 console.log(err);
288 288 });
... ...
400-SOURCECODE/AIAHTML5.Admin/app/components/add-new-license.component.js.map
1   -{"version":3,"file":"add-new-license.component.js","sourceRoot":"","sources":["add-new-license.component.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,qBAAwD,eAAe,CAAC,CAAA;AACxE,uBAAuB,iBAAiB,CAAC,CAAA;AACzC,oCAAmC,iCAAiC,CAAC,CAAA;AAGrE,sBAAgE,gBAAgB,CAAC,CAAA;AAYjF;IAmCI,sFAAsF;IAEtF,wJAAwJ;IAExJ,0JAA0J;IAG1J,gCAAoB,kBAAsC,EAAU,MAAc,EAAU,EAAe;QAAvF,uBAAkB,GAAlB,kBAA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AC,CACA,CAAC;IACV,CAAC;IAED,8CAAa,GAAb;QAAA,iBAQC;QAPG,IAAI,CAAC,kBAAkB,CAAC,YAAY,EAAE,CAAC,SAAS,CAAC,UAAA,SAAS;YACtD,KAAI,CAAC,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;YAC1C,sDAAsD;QAC1D,CAAC,EACG,UAAA,GAAG;YACC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACrB,CAAC,CAAC,CAAC;IACX,CAAC;IAED,sDAAqB,GAArB;QAAA,iBAQC;QAPG,IAAI,CAAC,kBAAkB,CAAC,oBAAoB,EAAE,CAAC,SAAS,CAAC,UAAA,SAAS;YAC9D,KAAI,CAAC,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;YAC1C,qDAAqD;QACzD,CAAC,EACG,UAAA,GAAG;YACC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACrB,CAAC,CAAC,CAAC;IACX,CAAC;IAED,iDAAgB,GAAhB;QAAA,iBAQC;QAPG,IAAI,CAAC,kBAAkB,CAAC,eAAe,EAAE,CAAC,SAAS,CAAC,UAAA,QAAQ;YACxD,KAAI,CAAC,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;YACzC,OAAO,CAAC,GAAG,CAAC,qBAAqB,GAAG,KAAI,CAAC,YAAY,CAAC,CAAC;QAC3D,CAAC,EACG,UAAA,GAAG;YACC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACrB,CAAC,CAAC,CAAC;IACX,CAAC;IA/TL;QAAC,gBAAS,CAAC;YACP,WAAW,EAAE,iDAAiD;SACjE,CAAC;;8BAAA;IA8TF,6BAAC;AAAD,CAAC,AA7TD,IA6TC;AA7TY,8BAAsB,yBA6TlC,CAAA"}
2 1 \ No newline at end of file
  2 +{"version":3,"file":"add-new-license.component.js","sourceRoot":"","sources":["add-new-license.component.ts"],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IACX,CAAC;IA/TL;QAAC,gBAAS,CAAC;YACP,WAAW,EAAE,iDAAiD;SACjE,CAAC;;8BAAA;IA8TF,6BAAC;AAAD,CAAC,AA7TD,IA6TC;AA7TY,8BAAsB,yBA6TlC,CAAA"}
3 3 \ No newline at end of file
... ...
400-SOURCECODE/AIAHTML5.Admin/app/components/add-new-license.component.ts
... ... @@ -326,7 +326,7 @@ export class AddNewLicenseComponent implements AfterViewInit, OnInit {
326 326 loadLicenseTypes(): void {
327 327 this.applicationService.getLicenseTypes().subscribe(licenses => {
328 328 this.licenseTypes = JSON.parse(licenses);
329   - console.log('this.licenseTypes: ' + this.licenseTypes);
  329 + //console.log('this.licenseTypes: ' + this.licenseTypes);
330 330 },
331 331 err => {
332 332 console.log(err);
... ...
400-SOURCECODE/AIAHTML5.Admin/app/components/update-profile.component.html
... ... @@ -27,12 +27,12 @@
27 27 <h5 class="text-center text-success"><strong>**To update your profile fill all the text fields carefully.</strong></h5>
28 28 <div class="panel-body">
29 29 <!-- form -->
30   - <form class="form-horizontal" [formGroup]="updateProfileForm" (ngSubmit)="submitForm(updateProfileForm.value)" novalidate>
  30 + <form class="form-horizontal" #f="ngForm" [formGroup]="updateProfileForm" novalidate> <!--(ngSubmit)="submitForm(updateProfileForm.value)" #upForm="ngForm" -->
31 31 <div class="form-group">
32 32 <label for="firstName" class="col-sm-4 control-label">First Name <span class="red">*</span> :</label>
33 33 <div class="col-sm-7">
34   - <input type="text" class="form-control" formControlName="firstName" id="firstName" placeholder="Maribel" required>
35   - </div>
  34 + <input type="text" class="form-control" formControlName="firstName" id="firstName" [(ngModel)]="firstName" placeholder="First Name" required> <!--[(ngModel)]="user.firstName"-->
  35 + </div><div>{{firstName}}</div>
36 36 <div *ngIf="formErrors.firstName" class="alert alert-danger">
37 37 {{ formErrors.firstName }}
38 38 </div>
... ... @@ -40,8 +40,8 @@
40 40 <div class="form-group">
41 41 <label for="lastName" class="col-sm-4 control-label">Last Name <span class="red">*</span> :</label>
42 42 <div class="col-sm-7">
43   - <input class="form-control" formControlName="lastName" id="lastName" placeholder="Brogden" required>
44   - </div>
  43 + <input class="form-control" formControlName="lastName" id="lastName" [(ngModel)]="lastName" placeholder="Last Name" required> <!--[(ngModel)]="user.lastName"-->
  44 + </div><div>{{lastName}}</div>
45 45 <div *ngIf="formErrors.lastName" class="alert alert-danger">
46 46 {{ formErrors.lastName }}
47 47 </div>
... ... @@ -49,15 +49,15 @@
49 49 <div class="form-group">
50 50 <label for="email" class="col-sm-4 control-label">Email Id <span class="red">*</span> :</label>
51 51 <div class="col-sm-7">
52   - <input class="form-control" formControlName="email" id="email" placeholder="mbrogden@adamcorp.com" required>
53   - </div>
  52 + <input class="form-control" formControlName="email" id="email" [(ngModel)]="email" placeholder="e.g. user@abc.com" required> <!--[(ngModel)]="user.email"-->
  53 + </div><div>{{email}}</div>
54 54 <div *ngIf="formErrors.email" class="alert alert-danger">
55 55 {{ formErrors.email }}
56 56 </div>
57 57 </div>
58 58 <div class="form-group">
59 59 <div class="col-sm-offset-4 col-sm-7 mar-top17">
60   - <button type="button" class="btn btn-primary btn-sm" data-toggle="modal" data-target="#mymodal"><i class="fa fa-check"></i> Update</button>
  60 + <button type="submit" class="btn btn-primary btn-sm" data-toggle="modal" (click)="UpdateProfile()" data-target="#mymodal"><i class="fa fa-check"></i> Update</button> <!--(click)="UpdateProfile(firstName.value,lastName.value, email.value)" (click)="save(upForm.value, upForm.valid)" -->
61 61 <!--cancel-button-->
62 62 <div class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" id="mymodal">
63 63 <div class="modal-dialog modal-sm" role="document">
... ... @@ -71,7 +71,7 @@
71 71 </div>
72 72 <div class="modal-footer">
73 73 <div class="row">
74   - <div class="col-sm-12"><button class="btn btn-primary btn-sm">Ok</button></div>
  74 + <div class="col-sm-12"><button class="btn btn-primary btn-sm" (click)="changeShowStatus()">Ok</button></div>
75 75 </div>
76 76 </div>
77 77  
... ...
400-SOURCECODE/AIAHTML5.Admin/app/components/update-profile.component.js
... ... @@ -11,6 +11,7 @@ var __metadata = (this &amp;&amp; this.__metadata) || function (k, v) {
11 11 var core_1 = require('@angular/core');
12 12 var router_1 = require('@angular/router');
13 13 var application_service_1 = require('../services/application.service');
  14 +var update_user_service_1 = require('../services/update-user.service');
14 15 var forms_1 = require('@angular/forms');
15 16 var UpdateProfileComponent = (function () {
16 17 //updateProfileForm: FormGroup({
... ... @@ -18,8 +19,9 @@ var UpdateProfileComponent = (function () {
18 19 // lastName: new FormControl(),
19 20 // email: new FormControl()
20 21 //});
21   - function UpdateProfileComponent(application, router, fb) {
  22 + function UpdateProfileComponent(application, updateService, router, fb) {
22 23 this.application = application;
  24 + this.updateService = updateService;
23 25 this.router = router;
24 26 this.fb = fb;
25 27 this.formErrors = {
... ... @@ -39,6 +41,11 @@ var UpdateProfileComponent = (function () {
39 41 'pattern': 'Email pattern is not valid.'
40 42 }
41 43 };
  44 + //this.uservice.UpdateUserProfile('Maribeld', 'Brogden', 'mbrogdenutk@adamcorp.com');
  45 + this.firstName = "";
  46 + this.lastName = "";
  47 + this.email = "";
  48 + this.showHide = false;
42 49 }
43 50 UpdateProfileComponent.prototype.ngAfterViewInit = function () {
44 51 this.initializeUIElements();
... ... @@ -97,11 +104,23 @@ var UpdateProfileComponent = (function () {
97 104 }
98 105 }
99 106 };
  107 + UpdateProfileComponent.prototype.UpdateProfile = function () {
  108 + debugger;
  109 + if (this.firstName != "" && this.lastName != "" && this.email != "") {
  110 + console.log("Inside Update-Profile-Component");
  111 + this.updateService.UpdateUserProfile2("Administration", this.firstName, this.lastName, this.email).subscribe(function (result) {
  112 + console.log('Completed');
  113 + });
  114 + }
  115 + };
  116 + UpdateProfileComponent.prototype.changeShowStatus = function () {
  117 + this.showHide = !this.showHide;
  118 + };
100 119 UpdateProfileComponent = __decorate([
101 120 core_1.Component({
102 121 templateUrl: './app/components/update-profile.component.html'
103 122 }),
104   - __metadata('design:paramtypes', [application_service_1.ApplicationService, router_1.Router, forms_1.FormBuilder])
  123 + __metadata('design:paramtypes', [application_service_1.ApplicationService, update_user_service_1.UpdateUserService, router_1.Router, forms_1.FormBuilder])
105 124 ], UpdateProfileComponent);
106 125 return UpdateProfileComponent;
107 126 }());
... ...
400-SOURCECODE/AIAHTML5.Admin/app/components/update-profile.component.js.map
1   -{"version":3,"file":"update-profile.component.js","sourceRoot":"","sources":["update-profile.component.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,qBAAiD,eAAe,CAAC,CAAA;AACjE,uBAAuB,iBAAiB,CAAC,CAAA;AACzC,oCAAmC,iCAAiC,CAAC,CAAA;AACrE,sBAAmD,gBAAgB,CAAC,CAAA;AAOpE;IAII,gCAAgC;IAChC,mCAAmC;IACnC,kCAAkC;IAClC,8BAA8B;IAC9B,KAAK;IAEL,gCAAoB,WAA+B,EAAU,MAAc,EAAU,EAAe;QAAhF,gBAAW,GAAX,WAAW,CAAoB;QAAU,WAAM,GAAN,MAAM,CAAQ;QAAU,OAAE,GAAF,EAAE,CAAa;QA0EpG,eAAU,GAAG;YACT,WAAW,EAAE,EAAE;YACf,UAAU,EAAE,EAAE;YACd,OAAO,EAAE,EAAE;SACd,CAAC;QAEF,uBAAkB,GAAG;YACjB,WAAW,EAAE;gBACT,UAAU,EAAE,yBAAyB;aACxC;YACD,UAAU,EAAE;gBACR,UAAU,EAAE,wBAAwB;aACvC;YACD,OAAO,EAAE;gBACL,UAAU,EAAE,oBAAoB;gBAChC,SAAS,EAAE,6BAA6B;aAC3C;SACJ,CAAA;IAzFD,CAAC;IAED,gDAAe,GAAf;QACI,IAAI,CAAC,oBAAoB,EAAE,CAAC;QAE5B,sBAAsB;QACtB,4CAA4C;QAC5C,uBAAuB;QACvB,iBAAiB;QACjB,kBAAkB;QAClB,oBAAoB;QACpB,uCAAuC;QACvC,gDAAgD;QAChD,WAAW;QACX,SAAS;QACT,4EAA4E;QAE5E,KAAK;QAEL,MAAM,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC;YACvB,MAAM,EAAE,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YAC5B,IAAM,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YAEhC,EAAE,CAAC,CAAC,OAAO,IAAI,OAAO,CAAC,KAAK,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;gBAC7C,IAAM,QAAQ,GAAG,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;gBAChD,GAAG,CAAC,CAAC,IAAM,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;oBAC/B,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,QAAQ,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;gBAClD,CAAC;YACL,CAAC;QACL,CAAC;IACL,CAAC;IArFL;QAAC,gBAAS,CAAC;YACP,WAAW,EAAE,gDAAgD;SAChE,CAAC;;8BAAA;IAuGF,6BAAC;AAAD,CAAC,AAtGD,IAsGC;AAtGY,8BAAsB,yBAsGlC,CAAA"}
2 1 \ No newline at end of file
  2 +{"version":3,"file":"update-profile.component.js","sourceRoot":"","sources":["update-profile.component.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,qBAAiD,eAAe,CAAC,CAAA;AACjE,uBAAuB,iBAAiB,CAAC,CAAA;AACzC,oCAAmC,iCAAiC,CAAC,CAAA;AACrE,oCAAkC,iCAAiC,CAAC,CAAA;AACpE,sBAAmD,gBAAgB,CAAC,CAAA;AAQpE;IAgBI,gCAAgC;IAChC,mCAAmC;IACnC,kCAAkC;IAClC,8BAA8B;IAC9B,KAAK;IAEL,gCAAoB,WAA+B,EAAU,aAAgC,EAAU,MAAc,EAAU,EAAe;QAA1H,gBAAW,GAAX,WAAW,CAAoB;QAAU,kBAAa,GAAb,aAAa,CAAmB;QAAU,WAAM,GAAN,MAAM,CAAQ;QAAU,OAAE,GAAF,EAAE,CAAa;QA+E9I,eAAU,GAAG;YACT,WAAW,EAAE,EAAE;YACf,UAAU,EAAE,EAAE;YACd,OAAO,EAAE,EAAE;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AC,IAAI,CAAC,SAAS,IAAI,EAAE,IAAI,IAAI,CAAC,QAAQ,IAAI,EAAE,IAAI,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,CAAC;YAClE,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,CAAC;YAE/C,IAAI,CAAC,aAAa,CAAC,kBAAkB,CAAC,gBAAgB,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,UAAC,MAAM;gBAChH,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;YAC7B,CAAC,CAAC,CAAC;QACP,CAAC;IACL,CAAC;IAED,iDAAgB,GAAhB;QACI,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;IACnC,CAAC;IAxIL;QAAC,gBAAS,CAAC;YACP,WAAW,EAAE,gDAAgD;SAChE,CAAC;;8BAAA;IAuIF,6BAAC;AAAD,CAAC,AAtID,IAsIC;AAtIY,8BAAsB,yBAsIlC,CAAA"}
3 3 \ No newline at end of file
... ...
400-SOURCECODE/AIAHTML5.Admin/app/components/update-profile.component.ts
1 1 ๏ปฟimport { Component, AfterViewInit, OnInit } from '@angular/core';
2 2 import { Router } from '@angular/router';
3 3 import { ApplicationService } from '../services/application.service';
  4 +import { UpdateUserService } from '../services/update-user.service';
4 5 import { FormBuilder, FormGroup, Validators } from '@angular/forms';
  6 +import { UserProfile } from '../model/data-model';
5 7  
6 8 declare var jQuery: any;
7 9  
... ... @@ -9,6 +11,18 @@ declare var jQuery: any;
9 11 templateUrl: './app/components/update-profile.component.html'
10 12 })
11 13 export class UpdateProfileComponent implements AfterViewInit, OnInit {
  14 + public user: UserProfile;
  15 + firstName: string;
  16 + lastName: string;
  17 + email: string;
  18 + serviceResult: string;
  19 + //userInfo = {
  20 + // this.userId,
  21 + // this.firstName,
  22 + // this.lastName,
  23 + // this.emailId
  24 + //};
  25 + showHide: boolean;
12 26  
13 27 updateProfileForm: FormGroup;
14 28  
... ... @@ -18,8 +32,13 @@ export class UpdateProfileComponent implements AfterViewInit, OnInit {
18 32 // email: new FormControl()
19 33 //});
20 34  
21   - constructor(private application: ApplicationService, private router: Router, private fb: FormBuilder) {
  35 + constructor(private application: ApplicationService, private updateService: UpdateUserService, private router: Router, private fb: FormBuilder) { //private uservice: UpdateUserService,
  36 + //this.uservice.UpdateUserProfile('Maribeld', 'Brogden', 'mbrogdenutk@adamcorp.com');
  37 + this.firstName = "";
  38 + this.lastName = "";
  39 + this.email = "";
22 40  
  41 + this.showHide = false;
23 42 }
24 43  
25 44 ngAfterViewInit(): void {
... ... @@ -110,4 +129,19 @@ export class UpdateProfileComponent implements AfterViewInit, OnInit {
110 129 'pattern': 'Email pattern is not valid.'
111 130 }
112 131 }
  132 +
  133 + UpdateProfile(): void {
  134 + debugger;
  135 + if (this.firstName != "" && this.lastName != "" && this.email != "") {
  136 + console.log("Inside Update-Profile-Component");
  137 +
  138 + this.updateService.UpdateUserProfile2("Administration", this.firstName, this.lastName, this.email).subscribe((result) => {
  139 + console.log('Completed');
  140 + });
  141 + }
  142 + }
  143 +
  144 + changeShowStatus() {
  145 + this.showHide = !this.showHide;
  146 + }
113 147 }
114 148 \ No newline at end of file
... ...
400-SOURCECODE/AIAHTML5.Admin/app/main.js
1 1 "use strict";
  2 +/*/// <reference path="../node_modules/angular2/typings/browser.d.ts" />*/
2 3 var platform_browser_dynamic_1 = require('@angular/platform-browser-dynamic');
3 4 var app_module_1 = require('./app.module');
4 5 platform_browser_dynamic_1.platformBrowserDynamic().bootstrapModule(app_module_1.AppModule);
... ...
400-SOURCECODE/AIAHTML5.Admin/app/main.js.map
1   -{"version":3,"file":"main.js","sourceRoot":"","sources":["main.ts"],"names":[],"mappings":";AAAA,yCAAuC,mCAAmC,CAAC,CAAA;AAE3E,2BAA0B,cAAc,CAAC,CAAA;AAEzC,iDAAsB,EAAE,CAAC,eAAe,CAAC,sBAAS,CAAC,CAAC"}
2 1 \ No newline at end of file
  2 +{"version":3,"file":"main.js","sourceRoot":"","sources":["main.ts"],"names":[],"mappings":";AAAA,0EAA0E;AAC1E,yCAAuC,mCAAmC,CAAC,CAAA;AAE3E,2BAA0B,cAAc,CAAC,CAAA;AAEzC,iDAAsB,EAAE,CAAC,eAAe,CAAC,sBAAS,CAAC,CAAC"}
3 3 \ No newline at end of file
... ...
400-SOURCECODE/AIAHTML5.Admin/app/main.ts
1   -import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
2   -
3   -import { AppModule } from './app.module';
4   -
5   -platformBrowserDynamic().bootstrapModule(AppModule);
  1 +/*/// <reference path="../node_modules/angular2/typings/browser.d.ts" />*/
  2 +import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
  3 +
  4 +import { AppModule } from './app.module';
  5 +
  6 +platformBrowserDynamic().bootstrapModule(AppModule);
... ...
400-SOURCECODE/AIAHTML5.Admin/app/model/data-model.js
... ... @@ -67,4 +67,10 @@ var Address = (function () {
67 67 return Address;
68 68 }());
69 69 exports.Address = Address;
  70 +var UserProfile = (function () {
  71 + function UserProfile() {
  72 + }
  73 + return UserProfile;
  74 +}());
  75 +exports.UserProfile = UserProfile;
70 76 //# sourceMappingURL=data-model.js.map
71 77 \ No newline at end of file
... ...
400-SOURCECODE/AIAHTML5.Admin/app/model/data-model.js.map
1   -{"version":3,"file":"data-model.js","sourceRoot":"","sources":["data-model.ts"],"names":[],"mappings":";AAAA;IAAA;IAGA,CAAC;IAAD,kBAAC;AAAD,CAAC,AAHD,IAGC;AAHY,mBAAW,cAGvB,CAAA;AAED;IAAA;IAGA,CAAC;IAAD,WAAC;AAAD,CAAC,AAHD,IAGC;AAHY,YAAI,OAGhB,CAAA;AAED;IAAA;IAIA,CAAC;IAAD,eAAC;AAAD,CAAC,AAJD,IAIC;AAJY,gBAAQ,WAIpB,CAAA;AAED;IAAA;IAGA,CAAC;IAAD,aAAC;AAAD,CAAC,AAHD,IAGC;AAHY,cA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Y,eAIxB,CAAA;AAED;IAAA;IAGA,CAAC;IAAD,iBAAC;AAAD,CAAC,AAHD,IAGC;AAHY,kBAAU,aAGtB,CAAA;AAED;IAAA;IAKA,CAAC;IAAD,iBAAC;AAAD,CAAC,AALD,IAKC;AALY,kBAAU,aAKtB,CAAA;AAED;IAAA;IAGA,CAAC;IAAD,qBAAC;AAAD,CAAC,AAHD,IAGC;AAHY,sBAAc,iBAG1B,CAAA;AAED;IAAA;IAQA,CAAC;IAAD,kBAAC;AAAD,CAAC,AARD,IAQC;AARY,mBAAW,cAQvB,CAAA;AAGD;IASI,cAAY,OAAe;QACvB,IAAI,CAAC,IAAI,GAAG,IAAI,KAAK,EAAU,CAAC;QAChC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC5B,CAAC;IACL,WAAC;AAAD,CAAC,AAbD,IAaC;AAbY,YAAI,OAahB,CAAA;AAGD;IAAA;IASA,CAAC;IAAD,cAAC;AAAD,CAAC,AATD,IASC;AATY,eAAO,UASnB,CAAA;AAED;IAAA;IAKA,CAAC;IAAD,kBAAC;AAAD,CAAC,AALD,IAKC;AALY,mBAAW,cAKvB,CAAA"}
3 3 \ No newline at end of file
... ...
400-SOURCECODE/AIAHTML5.Admin/app/model/data-model.ts
1   -๏ปฟexport class AppSettings {
2   - menu: Menu;
3   - footer: Footer;
4   -}
5   -
6   -export class Menu {
7   - menuType: string;
8   - menuItems: MenuItem[];
9   -}
10   -
11   -export class MenuItem {
12   - name: string;
13   - url: string;
14   - icon: string;
15   -}
16   -
17   -export class Footer {
18   - footerColumns: FooterColumn[];
19   - copyrightNotice: string;
20   -}
21   -
22   -export class FooterColumn {
23   - heading: string;
24   - showHeading: boolean;
25   - footerItems: FooterItem[];
26   -}
27   -
28   -export class FooterItem {
29   - name: string;
30   - url: string;
31   -}
32   -
33   -export class BannerItem {
34   - name: string;
35   - tagLine: string;
36   - bannerSettings: BannerSettings;
37   - apps: string[];
38   -}
39   -
40   -export class BannerSettings {
41   - show: boolean;
42   - callToAction: "string"
43   -}
44   -
45   -export class ContentItem {
46   - _id: string;
47   - contentType: string;
48   - releaseDate: Date;
49   - subject: string;
50   - summary: string;
51   - body: string;
52   - slug: string;
53   -}
54   -
55   -
56   -export class User {
57   - public _id: string;
58   - public id: string;
59   - public name: string;
60   - public mobileNumber: string;
61   - public emailAddress: string;
62   - public password: string;
63   - public role: string;
64   - public apps: Array<string>;
65   -
66   - constructor(appName: string) {
67   - this.apps = new Array<string>();
68   - this.apps.push(appName);
69   - }
70   -}
71   -
72   -
73   -export class Address {
74   - public name: string;
75   - public mobileNumber: string;
76   - public addressLine1: string;
77   - public addressLine2: string;
78   - public area: string;
79   - public city: string;
80   - public pinCode: string;
81   - public state: string;
82   -}
  1 +๏ปฟexport class AppSettings {
  2 + menu: Menu;
  3 + footer: Footer;
  4 +}
  5 +
  6 +export class Menu {
  7 + menuType: string;
  8 + menuItems: MenuItem[];
  9 +}
  10 +
  11 +export class MenuItem {
  12 + name: string;
  13 + url: string;
  14 + icon: string;
  15 +}
  16 +
  17 +export class Footer {
  18 + footerColumns: FooterColumn[];
  19 + copyrightNotice: string;
  20 +}
  21 +
  22 +export class FooterColumn {
  23 + heading: string;
  24 + showHeading: boolean;
  25 + footerItems: FooterItem[];
  26 +}
  27 +
  28 +export class FooterItem {
  29 + name: string;
  30 + url: string;
  31 +}
  32 +
  33 +export class BannerItem {
  34 + name: string;
  35 + tagLine: string;
  36 + bannerSettings: BannerSettings;
  37 + apps: string[];
  38 +}
  39 +
  40 +export class BannerSettings {
  41 + show: boolean;
  42 + callToAction: "string"
  43 +}
  44 +
  45 +export class ContentItem {
  46 + _id: string;
  47 + contentType: string;
  48 + releaseDate: Date;
  49 + subject: string;
  50 + summary: string;
  51 + body: string;
  52 + slug: string;
  53 +}
  54 +
  55 +
  56 +export class User {
  57 + public _id: string;
  58 + public name: string;
  59 + public mobileNumber: string;
  60 + public emailAddress: string;
  61 + public password: string;
  62 + public role: string;
  63 + public apps: Array<string>;
  64 +
  65 + constructor(appName: string) {
  66 + this.apps = new Array<string>();
  67 + this.apps.push(appName);
  68 + }
  69 +}
  70 +
  71 +
  72 +export class Address {
  73 + public name: string;
  74 + public mobileNumber: string;
  75 + public addressLine1: string;
  76 + public addressLine2: string;
  77 + public area: string;
  78 + public city: string;
  79 + public pinCode: string;
  80 + public state: string;
  81 +}
  82 +
  83 +export class UserProfile {
  84 + userId: number;
  85 + firstName: string;
  86 + lastName: string;
  87 + emailId: string;
  88 +}
... ...
400-SOURCECODE/AIAHTML5.Admin/app/services/application.service.js
... ... @@ -25,6 +25,10 @@ var ApplicationService = (function () {
25 25 this.loggedIn = true;
26 26 }
27 27 }
  28 + this.userId = 0;
  29 + this.firstName = "";
  30 + this.lastName = "";
  31 + this.emailId = "";
28 32 }
29 33 ApplicationService.prototype.getAppSettings = function (applicationName) {
30 34 var headers = new http_1.Headers();
... ...
400-SOURCECODE/AIAHTML5.Admin/app/services/application.service.js.map
1   -{"version":3,"file":"application.service.js","sourceRoot":"","sources":["application.service.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,qBAAyB,eAAe,CAAC,CAAA;AACzC,qBAAyD,eAAe,CAAC,CAAA;AACzE,uBAAyB,iBAAiB,CAAC,CAAA;AAE3C,2BAA2B,iBAAiB,CAAC,CAAA;AAC7C,QAAO,uBAAuB,CAAC,CAAA;AAC/B,QAAO,yBAAyB,CAAC,CAAA;AAWjC;IAMI,4BAAoB,IAAU,EAAU,MAAc;QAAlC,SAAI,GAAJ,IAAI,CAAM;QAAU,WAAM,GAAN,MAAM,CAAQ;QAClD,EAAE,CAAC,CAAC,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,CAAC,CAAC;YAC3B,IAAI,IAAI,GAAG,YAAY,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;YAE/C,EAAE,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC;gBACf,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,KAA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;QACI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,qDAAqD,CAAC;aACtE,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC;aACrB,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACjC,CAAC;IAEM,sCAAS,GAAhB;QACI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,+CAA+C,CAAC;aAChE,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC;aACrB,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACjC,CAAC;IAEM,yCAAY,GAAnB;QACI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,iDAAiD,CAAC;aAClE,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC;aACrB,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACjC,CAAC;IAEM,iDAAoB,GAA3B;QACI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,8DAA8D,CAAC;aAC/E,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC;aACrB,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACjC,CAAC;IAEM,4CAAe,GAAtB;QACI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,qDAAqD,CAAC;aACtE,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC;aACrB,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACjC,CAAC;IAxOL;QAAC,iBAAU,EAAE;;0BAAA;IAyOb,yBAAC;AAAD,CAAC,AAxOD,IAwOC;AAxOY,0BAAkB,qBAwO9B,CAAA"}
3 3 \ No newline at end of file
... ...
400-SOURCECODE/AIAHTML5.Admin/app/services/application.service.ts
1   -๏ปฟimport {Injectable} from '@angular/core';
2   -import { Http, Response, Headers, URLSearchParams } from '@angular/http';
3   -import { Router } from '@angular/router';
4   -
5   -import { Observable } from 'rxjs/Observable';
6   -import 'rxjs/add/operator/map';
7   -import 'rxjs/add/operator/catch';
8   -
9   -
10   -import { AppSettings, User } from '../model/data-model';
11   -import { State } from '../model/db-tables';
12   -import { AccountType } from '../model/db-tables';
13   -import { Country } from '../model/db-tables';
14   -import { SecurityQuestions } from '../model/db-tables';
15   -import { LicenseType } from '../model/db-tables';
16   -
17   -@Injectable()
18   -export class ApplicationService {
19   - appSettingsLoaded: boolean;
20   - appSettings: AppSettings;
21   - currentUser: User;
22   - loggedIn: boolean;
23   -
24   - constructor(private http: Http, private router: Router) {
25   - if (this.currentUser == null) {
26   - var user = localStorage.getItem("currentUser");
27   -
28   - if (user != null) {
29   - this.currentUser = JSON.parse(user);
30   - this.loggedIn = true;
31   - }
32   - }
33   -
34   - }
35   -
36   - public getAppSettings(applicationName: string): Observable<any> {
37   - var headers = new Headers();
38   - headers.append('Content-Type', 'application/json');
39   -
40   - let params = new URLSearchParams();
41   - params.set("applicationName", applicationName);
42   - params.set("userId", this.currentUser._id);
43   -
44   - return this.http.get('DentalDecks.Server/api/AppSettings', { headers: headers, search: params })
45   - .map(this.extractData)
46   - .catch(this.handleError);
47   - }
48   -
49   - public getMenuItemsWithNoChildren(menuItems: any): any {
50   - if (this.appSettingsLoaded) {
51   - let menuItemsSubset: Array<any> = new Array<any>();
52   - for (var i = 0; i < menuItems.length; i++) {
53   - if (menuItems[i].menuItems == null) {
54   - for (var j = 0; j < menuItems[i].roles.length; j++) {
55   - if (menuItems[i].roles[j] == this.currentUser.role) {
56   - menuItemsSubset.push(menuItems[i]);
57   - break;
58   - }
59   - }
60   - }
61   - }
62   - return menuItemsSubset;
63   - }
64   - }
65   -
66   - public getMenuItemsWithChildren(menuItems: any): any {
67   - if (this.appSettingsLoaded) {
68   - let menuItemsSubset: Array<any> = new Array<any>();
69   - for (var i = 0; i < menuItems.length; i++) {
70   - if (menuItems[i].menuItems != null) {
71   - for (var j = 0; j < menuItems[i].roles.length; j++) {
72   - if (menuItems[i].roles[j] == this.currentUser.role) {
73   - menuItemsSubset.push(menuItems[i]);
74   - break;
75   - }
76   - }
77   - }
78   - }
79   - return menuItemsSubset;
80   - }
81   - }
82   -
83   - public login(applicationName: string, username: string, password: string): Observable<any> {
84   - var headers = new Headers();
85   - headers.append('Content-Type', 'application/json');
86   -
87   - let params = new URLSearchParams();
88   - params.set("applicationName", applicationName);
89   - params.set("username", username);
90   - params.set("password", password);
91   -
92   - return this.http.get('DentalDecks.Server/api/Authenticate', { headers: headers, search: params })
93   - .map(this.extractData)
94   - .catch(this.handleError);
95   - }
96   -
97   - public logout(): void {
98   - this.currentUser = null;
99   - localStorage.removeItem("currentUser");
100   - this.router.navigate(['/login']);
101   - }
102   -
103   - public resetPassword(username: string): Observable<any> {
104   - var headers = new Headers();
105   - headers.append('Content-Type', 'application/json');
106   -
107   - let user: any = new Object();
108   - user.emailAddress = username;
109   -
110   - return this.http.post('DentalDecks.Server/api/Password', JSON.stringify(user), { headers: headers })
111   - .map(this.extractData)
112   - .catch(this.handleError);
113   - }
114   -
115   - public updatePassword(userId: string, password: string): Observable<any> {
116   - var headers = new Headers();
117   - headers.append('Content-Type', 'application/json');
118   -
119   - let user: any = new Object();
120   - user.userId = userId;
121   - user.password = password;
122   -
123   - return this.http.post('DentalDecks.Server/api/UpdatePassword', JSON.stringify(user), { headers: headers })
124   - .map(this.extractData)
125   - .catch(this.handleError);
126   - }
127   -
128   - public isResetPasswordExpired(userId: string): Observable<any> {
129   - var headers = new Headers();
130   - headers.append('Content-Type', 'application/json');
131   -
132   - let params = new URLSearchParams();
133   - params.set("userId", userId);
134   -
135   - return this.http.get('DentalDecks.Server/api/Password', { headers: headers, search: params })
136   - .map(this.extractData)
137   - .catch(this.handleError);
138   - }
139   -
140   - public getLongDate(date: any): string {
141   - let returnValue: Date = new Date(date);
142   - return returnValue.toLocaleDateString();
143   - }
144   -
145   - getDateTime(date: any): string {
146   - let orderDate: string = "";
147   - if (date != null && date != "")
148   - orderDate = new Date(date).toLocaleDateString() + " " + new Date(date).toLocaleTimeString();
149   -
150   - return orderDate;
151   - }
152   -
153   - getRelativeDate(date: any): string {
154   - if (date != null) {
155   - date = new Date(date);
156   -
157   - var delta = Math.round((+new Date - date) / 1000);
158   -
159   - var minute = 60,
160   - hour = minute * 60,
161   - day = hour * 24,
162   - week = day * 7;
163   -
164   - var fuzzy: string;
165   -
166   - if (delta < 30) {
167   - fuzzy = 'just now.';
168   - } else if (delta < minute) {
169   - fuzzy = delta + ' seconds ago.';
170   - } else if (delta < 2 * minute) {
171   - fuzzy = 'a minute ago.'
172   - } else if (delta < hour) {
173   - fuzzy = Math.floor(delta / minute) + ' minutes ago.';
174   - } else if (Math.floor(delta / hour) == 1) {
175   - fuzzy = '1 hour ago.'
176   - } else if (delta < day) {
177   - fuzzy = Math.floor(delta / hour) + ' hours ago.';
178   - } else if (delta < day * 2 && delta > day) {
179   - fuzzy = 'yesterday';
180   - } else {
181   - fuzzy = Math.floor(delta / (60 * 60 * 24)) + ' days ago';
182   - }
183   -
184   - return fuzzy;
185   - } else {
186   - return "";
187   - }
188   - }
189   -
190   - private extractData(res: Response) {
191   - let body = res.json();
192   - return body || {};
193   - }
194   - private handleError(error: Response | any) {
195   - // In a real world app, we might use a remote logging infrastructure
196   - let errMsg: string;
197   - if (error instanceof Response) {
198   - const body = error.json() || '';
199   - const err = body.error || JSON.stringify(body);
200   - errMsg = `${error.status} - ${error.statusText || ''} ${err}`;
201   - } else {
202   - errMsg = error.message ? error.message : error.toString();
203   - }
204   - console.error(errMsg);
205   - return Observable.throw(errMsg);
206   - }
207   -
208   - public getAccountTypes(): Observable<any> {
209   - return this.http.get('http://localhost:85/AIAHTML5.Server/api/accounttype')
210   - .map(this.extractData)
211   - .catch(this.handleError);
212   - }
213   -
214   - public getStates(): Observable<any> {
215   - return this.http.get('http://localhost:85/AIAHTML5.Server/api/state')
216   - .map(this.extractData)
217   - .catch(this.handleError);
218   - }
219   -
220   - public getCountries(): Observable<any> {
221   - return this.http.get('http://localhost:85/AIAHTML5.Server/api/country')
222   - .map(this.extractData)
223   - .catch(this.handleError);
224   - }
225   -
226   - public getSecurityQuestions(): Observable<any> {
227   - return this.http.get('http://localhost:85/AIAHTML5.Server/api/securityquestionlist')
228   - .map(this.extractData)
229   - .catch(this.handleError);
230   - }
231   -
232   - public getLicenseTypes(): Observable<any> {
233   - return this.http.get('http://localhost:85/AIAHTML5.Server/api/licensetype')
234   - .map(this.extractData)
235   - .catch(this.handleError);
236   - }
  1 +๏ปฟimport {Injectable} from '@angular/core';
  2 +import { Http, Response, Headers, RequestOptions, URLSearchParams } from '@angular/http';
  3 +import { Router } from '@angular/router';
  4 +
  5 +import { Observable } from 'rxjs/Observable';
  6 +import 'rxjs/add/operator/map';
  7 +import 'rxjs/add/operator/catch';
  8 +
  9 +
  10 +import { AppSettings, User, UserProfile } from '../model/data-model';
  11 +import { State } from '../model/db-tables';
  12 +import { AccountType } from '../model/db-tables';
  13 +import { Country } from '../model/db-tables';
  14 +import { SecurityQuestions } from '../model/db-tables';
  15 +import { LicenseType } from '../model/db-tables';
  16 +
  17 +@Injectable()
  18 +export class ApplicationService {
  19 + appSettingsLoaded: boolean;
  20 + appSettings: AppSettings;
  21 + currentUser: User;
  22 + loggedIn: boolean;
  23 +
  24 + userId: number;
  25 + firstName: string;
  26 + lastName: string;
  27 + emailId: string;
  28 + userInfo: UserProfile;
  29 +
  30 + apiUrl: "http://localhost:85/AIAHTML5.Server/api/";
  31 +
  32 + constructor(private http: Http, private router: Router) {
  33 + if (this.currentUser == null) {
  34 + var user = localStorage.getItem("currentUser");
  35 +
  36 + if (user != null) {
  37 + this.currentUser = JSON.parse(user);
  38 + this.loggedIn = true;
  39 + }
  40 + }
  41 +
  42 + this.userId = 0;
  43 + this.firstName = "";
  44 + this.lastName = "";
  45 + this.emailId = "";
  46 +
  47 + }
  48 +
  49 + public getAppSettings(applicationName: string): Observable<any> {
  50 + var headers = new Headers();
  51 + headers.append('Content-Type', 'application/json');
  52 +
  53 + let params = new URLSearchParams();
  54 + params.set("applicationName", applicationName);
  55 + params.set("userId", this.currentUser._id);
  56 +
  57 + return this.http.get('DentalDecks.Server/api/AppSettings', { headers: headers, search: params })
  58 + .map(this.extractData)
  59 + .catch(this.handleError);
  60 + }
  61 +
  62 + public getMenuItemsWithNoChildren(menuItems: any): any {
  63 + if (this.appSettingsLoaded) {
  64 + let menuItemsSubset: Array<any> = new Array<any>();
  65 + for (var i = 0; i < menuItems.length; i++) {
  66 + if (menuItems[i].menuItems == null) {
  67 + for (var j = 0; j < menuItems[i].roles.length; j++) {
  68 + if (menuItems[i].roles[j] == this.currentUser.role) {
  69 + menuItemsSubset.push(menuItems[i]);
  70 + break;
  71 + }
  72 + }
  73 + }
  74 + }
  75 + return menuItemsSubset;
  76 + }
  77 + }
  78 +
  79 + public getMenuItemsWithChildren(menuItems: any): any {
  80 + if (this.appSettingsLoaded) {
  81 + let menuItemsSubset: Array<any> = new Array<any>();
  82 + for (var i = 0; i < menuItems.length; i++) {
  83 + if (menuItems[i].menuItems != null) {
  84 + for (var j = 0; j < menuItems[i].roles.length; j++) {
  85 + if (menuItems[i].roles[j] == this.currentUser.role) {
  86 + menuItemsSubset.push(menuItems[i]);
  87 + break;
  88 + }
  89 + }
  90 + }
  91 + }
  92 + return menuItemsSubset;
  93 + }
  94 + }
  95 +
  96 + public login(applicationName: string, username: string, password: string): Observable<any> {
  97 + var headers = new Headers();
  98 + headers.append('Content-Type', 'application/json');
  99 +
  100 + let params = new URLSearchParams();
  101 + params.set("applicationName", applicationName);
  102 + params.set("username", username);
  103 + params.set("password", password);
  104 +
  105 + return this.http.get('DentalDecks.Server/api/Authenticate', { headers: headers, search: params })
  106 + .map(this.extractData)
  107 + .catch(this.handleError);
  108 + }
  109 +
  110 + public logout(): void {
  111 + this.currentUser = null;
  112 + localStorage.removeItem("currentUser");
  113 + this.router.navigate(['/login']);
  114 + }
  115 +
  116 + public resetPassword(username: string): Observable<any> {
  117 + var headers = new Headers();
  118 + headers.append('Content-Type', 'application/json');
  119 +
  120 + let user: any = new Object();
  121 + user.emailAddress = username;
  122 +
  123 + return this.http.post('DentalDecks.Server/api/Password', JSON.stringify(user), { headers: headers })
  124 + .map(this.extractData)
  125 + .catch(this.handleError);
  126 + }
  127 +
  128 + public updatePassword(userId: string, password: string): Observable<any> {
  129 + var headers = new Headers();
  130 + headers.append('Content-Type', 'application/json');
  131 +
  132 + let user: any = new Object();
  133 + user.userId = userId;
  134 + user.password = password;
  135 +
  136 + return this.http.post('DentalDecks.Server/api/UpdatePassword', JSON.stringify(user), { headers: headers })
  137 + .map(this.extractData)
  138 + .catch(this.handleError);
  139 + }
  140 +
  141 + public isResetPasswordExpired(userId: string): Observable<any> {
  142 + var headers = new Headers();
  143 + headers.append('Content-Type', 'application/json');
  144 +
  145 + let params = new URLSearchParams();
  146 + params.set("userId", userId);
  147 +
  148 + return this.http.get('DentalDecks.Server/api/Password', { headers: headers, search: params })
  149 + .map(this.extractData)
  150 + .catch(this.handleError);
  151 + }
  152 +
  153 + public getLongDate(date: any): string {
  154 + let returnValue: Date = new Date(date);
  155 + return returnValue.toLocaleDateString();
  156 + }
  157 +
  158 + getDateTime(date: any): string {
  159 + let orderDate: string = "";
  160 + if (date != null && date != "")
  161 + orderDate = new Date(date).toLocaleDateString() + " " + new Date(date).toLocaleTimeString();
  162 +
  163 + return orderDate;
  164 + }
  165 +
  166 + getRelativeDate(date: any): string {
  167 + if (date != null) {
  168 + date = new Date(date);
  169 +
  170 + var delta = Math.round((+new Date - date) / 1000);
  171 +
  172 + var minute = 60,
  173 + hour = minute * 60,
  174 + day = hour * 24,
  175 + week = day * 7;
  176 +
  177 + var fuzzy: string;
  178 +
  179 + if (delta < 30) {
  180 + fuzzy = 'just now.';
  181 + } else if (delta < minute) {
  182 + fuzzy = delta + ' seconds ago.';
  183 + } else if (delta < 2 * minute) {
  184 + fuzzy = 'a minute ago.'
  185 + } else if (delta < hour) {
  186 + fuzzy = Math.floor(delta / minute) + ' minutes ago.';
  187 + } else if (Math.floor(delta / hour) == 1) {
  188 + fuzzy = '1 hour ago.'
  189 + } else if (delta < day) {
  190 + fuzzy = Math.floor(delta / hour) + ' hours ago.';
  191 + } else if (delta < day * 2 && delta > day) {
  192 + fuzzy = 'yesterday';
  193 + } else {
  194 + fuzzy = Math.floor(delta / (60 * 60 * 24)) + ' days ago';
  195 + }
  196 +
  197 + return fuzzy;
  198 + } else {
  199 + return "";
  200 + }
  201 + }
  202 +
  203 + private extractData(res: Response) {
  204 + let body = res.json();
  205 + return body || {};
  206 + }
  207 + private handleError(error: Response | any) {
  208 + // In a real world app, we might use a remote logging infrastructure
  209 + let errMsg: string;
  210 + if (error instanceof Response) {
  211 + const body = error.json() || '';
  212 + const err = body.error || JSON.stringify(body);
  213 + errMsg = `${error.status} - ${error.statusText || ''} ${err}`;
  214 + } else {
  215 + errMsg = error.message ? error.message : error.toString();
  216 + }
  217 + console.error(errMsg);
  218 + return Observable.throw(errMsg);
  219 + }
  220 +
  221 + public getAccountTypes(): Observable<any> {
  222 + return this.http.get('http://localhost:85/AIAHTML5.Server/api/accounttype')
  223 + .map(this.extractData)
  224 + .catch(this.handleError);
  225 + }
  226 +
  227 + public getStates(): Observable<any> {
  228 + return this.http.get('http://localhost:85/AIAHTML5.Server/api/state')
  229 + .map(this.extractData)
  230 + .catch(this.handleError);
  231 + }
  232 +
  233 + public getCountries(): Observable<any> {
  234 + return this.http.get('http://localhost:85/AIAHTML5.Server/api/country')
  235 + .map(this.extractData)
  236 + .catch(this.handleError);
  237 + }
  238 +
  239 + public getSecurityQuestions(): Observable<any> {
  240 + return this.http.get('http://localhost:85/AIAHTML5.Server/api/securityquestionlist')
  241 + .map(this.extractData)
  242 + .catch(this.handleError);
  243 + }
  244 +
  245 + public getLicenseTypes(): Observable<any> {
  246 + return this.http.get('http://localhost:85/AIAHTML5.Server/api/licensetype')
  247 + .map(this.extractData)
  248 + .catch(this.handleError);
  249 + }
237 250 }
238 251 \ No newline at end of file
... ...
400-SOURCECODE/AIAHTML5.Admin/app/services/update-user.service.js 0 โ†’ 100644
  1 +"use strict";
  2 +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
  3 + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  4 + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  5 + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
  6 + return c > 3 && r && Object.defineProperty(target, key, r), r;
  7 +};
  8 +var __metadata = (this && this.__metadata) || function (k, v) {
  9 + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
  10 +};
  11 +var core_1 = require('@angular/core');
  12 +var http_1 = require('@angular/http');
  13 +var router_1 = require('@angular/router');
  14 +var Observable_1 = require('rxjs/Observable');
  15 +require('rxjs/add/operator/map');
  16 +require('rxjs/add/operator/catch');
  17 +//import { AppSettings, User } from '../model/data-model';
  18 +var UpdateUserService = (function () {
  19 + function UpdateUserService(http, router) {
  20 + //if (this.currentUser == null) {
  21 + // var user = localStorage.getItem("currentUser");
  22 + this.http = http;
  23 + this.router = router;
  24 + // if (user != null) {
  25 + // this.currentUser = JSON.parse(user);
  26 + // this.loggedIn = true;
  27 + // }
  28 + //}
  29 + this.userId = 0;
  30 + this.firstName = "";
  31 + this.lastName = "";
  32 + this.emailId = "";
  33 + }
  34 + UpdateUserService.prototype.extractData = function (res) {
  35 + var body = res.json();
  36 + return body || {};
  37 + };
  38 + UpdateUserService.prototype.handleError = function (error) {
  39 + // In a real world app, we might use a remote logging infrastructure
  40 + var errMsg;
  41 + if (error instanceof http_1.Response) {
  42 + var body = error.json() || '';
  43 + var err = body.error || JSON.stringify(body);
  44 + errMsg = error.status + " - " + (error.statusText || '') + " " + err;
  45 + }
  46 + else {
  47 + errMsg = error.message ? error.message : error.toString();
  48 + }
  49 + console.error(errMsg);
  50 + return Observable_1.Observable.throw(errMsg);
  51 + };
  52 + UpdateUserService.prototype.UpdateUserProfile = function (applicationName, strFirstName, strLastName, strEmailID) {
  53 + console.log('inside application service');
  54 + var usrID;
  55 + usrID = 1;
  56 + var headers = new http_1.Headers({ 'Content-Type': 'application/json' });
  57 + //let headers = new Headers();
  58 + //headers.append('Content-type', 'application/x-www-form-urlencoded');
  59 + var options = new http_1.RequestOptions({ headers: headers });
  60 + var body = JSON.stringify({ userId: usrID, emailId: strEmailID, firstName: strFirstName, lastName: strLastName });
  61 + console.log(body);
  62 + return this.http.post('http://localhost:85/AIAHTML5.Server/api/updateprofile', body, options)
  63 + .map(this.extractData)
  64 + .catch(this.handleError);
  65 + };
  66 + UpdateUserService.prototype.UpdateUserProfile2 = function (applicationName, strFirstName, strLastName, strEmailID) {
  67 + console.log('inside update-user service -2');
  68 + var usrID;
  69 + usrID = 1;
  70 + //let headers = new Headers({ 'Content-Type': 'application/json' });
  71 + var headers = new http_1.Headers();
  72 + headers.append('Content-type', 'application/x-www-form-urlencoded');
  73 + var options = new http_1.RequestOptions({ headers: headers });
  74 + var body = 'userId=' + usrID + '&emailId=' + strEmailID + '&firstName=' + strFirstName + '&lastName=' + strLastName;
  75 + console.log(body);
  76 + var urlSearchParams = new http_1.URLSearchParams();
  77 + urlSearchParams.append('userId', usrID.toString());
  78 + urlSearchParams.append('firstName', strFirstName);
  79 + urlSearchParams.append('lastName', strLastName);
  80 + urlSearchParams.append('emailId', strEmailID);
  81 + var body2 = urlSearchParams.toString();
  82 + return this.http.post('http://localhost:85/AIAHTML5.Server/api/updateprofile', body, options)
  83 + .map(function (response) {
  84 + console.log(response);
  85 + var body = response.json();
  86 + console.log(body);
  87 + })
  88 + .catch(this.logError);
  89 + };
  90 + UpdateUserService.prototype.extractData2 = function (res) {
  91 + var body = res.json();
  92 + console.log('ServiceResult: ' + body);
  93 + return body || {};
  94 + };
  95 + UpdateUserService.prototype.logError = function (error) {
  96 + console.log('ServiceError: ' + err);
  97 + };
  98 + UpdateUserService = __decorate([
  99 + core_1.Injectable(),
  100 + __metadata('design:paramtypes', [http_1.Http, router_1.Router])
  101 + ], UpdateUserService);
  102 + return UpdateUserService;
  103 +}());
  104 +exports.UpdateUserService = UpdateUserService;
  105 +//# sourceMappingURL=update-user.service.js.map
0 106 \ No newline at end of file
... ...
400-SOURCECODE/AIAHTML5.Admin/app/services/update-user.service.js.map 0 โ†’ 100644
  1 +{"version":3,"file":"update-user.service.js","sourceRoot":"","sources":["update-user.service.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,qBAA2B,eAAe,CAAC,CAAA;AAC3C,qBAAyE,eAAe,CAAC,CAAA;AACzF,uBAAuB,iBAAiB,CAAC,CAAA;AAEzC,2BAA2B,iBAAiB,CAAC,CAAA;AAC7C,QAAO,uBAAuB,CAAC,CAAA;AAC/B,QAAO,yBAAyB,CAAC,CAAA;AAGjC,0DAA0D;AAG1D;IAaI,2BAAoB,IAAU,EAAU,MAAc;QAClD,iCAAiC;QACjC,qDAAqD;QAFrC,SAAI,GAAJ,IAAI,CAAM;QAAU,WAAM,GAAN,MAAM,CAAQ;QAIlD,yBAAyB;QACzB,8CAA8C;QAC9C,+BAA+B;QAC/B,OAAO;QACP,GAAG;QACH,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QAChB,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;QACpB,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;QACnB,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;IAEtB,CAAC;IAEO,uCAAW,GAAnB,UAAoB,GAAa;QAC7B,IAAI,IAAI,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC;QACtB,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC;IACtB,CAAC;IACO,uCAAW,GAAnB,UAAoB,KAAqB;QACrC,oEAAoE;QACpE,IAAI,MAAc,CAAC;QACnB,EAAE,CAAC,CAAC,KAAK,YAAY,eAAQ,CAAC,CAAC,CAAC;YAC5B,IAAM,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OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACtB,CAAC,CAAC;aACD,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC9B,CAAC;IAEO,wCAAY,GAApB,UAAqB,GAAa;QAC9B,IAAI,IAAI,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC;QACtB,OAAO,CAAC,GAAG,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;QACtC,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC;IACtB,CAAC;IAED,oCAAQ,GAAR,UAAS,KAAqB;QAC1B,OAAO,CAAC,GAAG,CAAC,gBAAgB,GAAG,GAAG,CAAC,CAAC;IACxC,CAAC;IAtGL;QAAC,iBAAU,EAAE;;yBAAA;IAuGb,wBAAC;AAAD,CAAC,AAtGD,IAsGC;AAtGY,yBAAiB,oBAsG7B,CAAA"}
0 2 \ No newline at end of file
... ...
400-SOURCECODE/AIAHTML5.Admin/app/services/update-user.service.ts 0 โ†’ 100644
  1 +๏ปฟimport { Injectable } from '@angular/core';
  2 +import { Http, Response, Headers, RequestOptions, URLSearchParams } from '@angular/http';
  3 +import { Router } from '@angular/router';
  4 +
  5 +import { Observable } from 'rxjs/Observable';
  6 +import 'rxjs/add/operator/map';
  7 +import 'rxjs/add/operator/catch';
  8 +import { UserProfile } from '../model/data-model';
  9 +
  10 +//import { AppSettings, User } from '../model/data-model';
  11 +
  12 +@Injectable()
  13 +export class UpdateUserService {
  14 + //appSettingsLoaded: boolean;
  15 + //appSettings: AppSettings;
  16 + //currentUser: User;
  17 + //loggedIn: boolean;
  18 + userId: number;
  19 + firstName: string;
  20 + lastName: string;
  21 + emailId: string;
  22 + userInfo: UserProfile;
  23 +
  24 + private headers: Headers;
  25 +
  26 + constructor(private http: Http, private router: Router) {
  27 + //if (this.currentUser == null) {
  28 + // var user = localStorage.getItem("currentUser");
  29 +
  30 + // if (user != null) {
  31 + // this.currentUser = JSON.parse(user);
  32 + // this.loggedIn = true;
  33 + // }
  34 + //}
  35 + this.userId = 0;
  36 + this.firstName = "";
  37 + this.lastName = "";
  38 + this.emailId = "";
  39 +
  40 + }
  41 +
  42 + private extractData(res: Response) {
  43 + let body = res.json();
  44 + return body || {};
  45 + }
  46 + private handleError(error: Response | any) {
  47 + // In a real world app, we might use a remote logging infrastructure
  48 + let errMsg: string;
  49 + if (error instanceof Response) {
  50 + const body = error.json() || '';
  51 + const err = body.error || JSON.stringify(body);
  52 + errMsg = `${error.status} - ${error.statusText || ''} ${err}`;
  53 + } else {
  54 + errMsg = error.message ? error.message : error.toString();
  55 + }
  56 + console.error(errMsg);
  57 + return Observable.throw(errMsg);
  58 + }
  59 +
  60 + public UpdateUserProfile(applicationName: string, strFirstName: string, strLastName: string, strEmailID: string): Observable<any> {
  61 + console.log('inside application service');
  62 + let usrID: number;
  63 + usrID = 1;
  64 +
  65 + let headers = new Headers({ 'Content-Type': 'application/json' });
  66 + //let headers = new Headers();
  67 + //headers.append('Content-type', 'application/x-www-form-urlencoded');
  68 + let options = new RequestOptions({ headers: headers });
  69 +
  70 + let body = JSON.stringify({ userId: usrID, emailId: strEmailID, firstName: strFirstName, lastName: strLastName });
  71 +
  72 + console.log(body);
  73 + return this.http.post('http://localhost:85/AIAHTML5.Server/api/updateprofile', body, options)
  74 + .map(this.extractData)
  75 + .catch(this.handleError);
  76 + }
  77 +
  78 + public UpdateUserProfile2(applicationName: string, strFirstName: string, strLastName: string, strEmailID: string): Observable<any> {
  79 + console.log('inside update-user service -2');
  80 + let usrID: number;
  81 + usrID = 1;
  82 +
  83 + //let headers = new Headers({ 'Content-Type': 'application/json' });
  84 + let headers = new Headers();
  85 + headers.append('Content-type', 'application/x-www-form-urlencoded');
  86 + let options = new RequestOptions({ headers: headers });
  87 + let body = 'userId=' + usrID + '&emailId=' + strEmailID + '&firstName=' + strFirstName + '&lastName=' + strLastName;
  88 + console.log(body);
  89 +
  90 + let urlSearchParams = new URLSearchParams();
  91 + urlSearchParams.append('userId', usrID.toString());
  92 + urlSearchParams.append('firstName', strFirstName);
  93 + urlSearchParams.append('lastName', strLastName);
  94 + urlSearchParams.append('emailId', strEmailID);
  95 + let body2 = urlSearchParams.toString()
  96 +
  97 + return this.http.post('http://localhost:85/AIAHTML5.Server/api/updateprofile', body, options)
  98 + .map((response: Response) => {
  99 + console.log(response);
  100 + var body = response.json();
  101 + console.log(body);
  102 + })
  103 + .catch(this.logError);
  104 + }
  105 +
  106 + private extractData2(res: Response) {
  107 + let body = res.json();
  108 + console.log('ServiceResult: ' + body);
  109 + return body || {};
  110 + }
  111 +
  112 + logError(error: Response | any) {
  113 + console.log('ServiceError: ' + err);
  114 + }
  115 +}
0 116 \ No newline at end of file
... ...
400-SOURCECODE/AIAHTML5.Server/AIAHTML5.Server.csproj
... ... @@ -45,6 +45,9 @@
45 45 <WarningLevel>4</WarningLevel>
46 46 </PropertyGroup>
47 47 <ItemGroup>
  48 + <Reference Include="log4net">
  49 + <HintPath>..\packages\log4net.2.0.7\lib\net45-full\log4net.dll</HintPath>
  50 + </Reference>
48 51 <Reference Include="Microsoft.AI.Agent.Intercept, Version=2.0.6.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
49 52 <HintPath>..\packages\Microsoft.ApplicationInsights.Agent.Intercept.2.0.6\lib\net45\Microsoft.AI.Agent.Intercept.dll</HintPath>
50 53 <Private>True</Private>
... ... @@ -95,6 +98,10 @@
95 98 <HintPath>bin\MongoDB.Driver.GridFS.dll</HintPath>
96 99 </Reference>
97 100 <Reference Include="System.Net.Http" />
  101 + <Reference Include="System.Web.Cors, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
  102 + <HintPath>packages\Microsoft.AspNet.Cors.5.2.3\lib\net45\System.Web.Cors.dll</HintPath>
  103 + <Private>True</Private>
  104 + </Reference>
98 105 <Reference Include="System.Web.DynamicData" />
99 106 <Reference Include="System.Web.Entity" />
100 107 <Reference Include="System.Web.ApplicationServices" />
... ... @@ -104,6 +111,10 @@
104 111 <Reference Include="System.Core" />
105 112 <Reference Include="System.Data.DataSetExtensions" />
106 113 <Reference Include="System.Web.Extensions" />
  114 + <Reference Include="System.Web.Http.Cors, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
  115 + <HintPath>packages\Microsoft.AspNet.WebApi.Cors.5.2.3\lib\net45\System.Web.Http.Cors.dll</HintPath>
  116 + <Private>True</Private>
  117 + </Reference>
107 118 <Reference Include="System.Xml.Linq" />
108 119 <Reference Include="System.Drawing" />
109 120 <Reference Include="System.Web" />
... ... @@ -142,6 +153,7 @@
142 153 <Compile Include="Controllers\LicenseTypeController.cs" />
143 154 <Compile Include="Controllers\SecurityQuestionListController.cs" />
144 155 <Compile Include="Controllers\StateController.cs" />
  156 + <Compile Include="Controllers\UpdateProfileController.cs" />
145 157 <Compile Include="Global.asax.cs">
146 158 <DependentUpon>Global.asax</DependentUpon>
147 159 </Compile>
... ...
400-SOURCECODE/AIAHTML5.Server/App_Start/WebApiConfig.cs
... ... @@ -9,6 +9,7 @@ namespace DentalDecks.Server
9 9 {
10 10 public static void Register(HttpConfiguration config)
11 11 {
  12 + config.EnableCors();
12 13 // Web API configuration and services
13 14  
14 15 // Web API routes
... ... @@ -19,6 +20,9 @@ namespace DentalDecks.Server
19 20 routeTemplate: "api/{controller}/{id}",
20 21 defaults: new { id = RouteParameter.Optional }
21 22 );
  23 +
  24 + // Remove the XML formatter
  25 + config.Formatters.Remove(config.Formatters.XmlFormatter);
22 26 }
23 27 }
24 28 }
... ...
400-SOURCECODE/AIAHTML5.Server/Constants/AdminConstant.cs
... ... @@ -7,10 +7,13 @@ namespace AIAHTML5.Server.Constants
7 7 {
8 8 public class AdminConstant
9 9 {
10   - public const string KEY_ID = "id";
11   - public const string KEY_TITLE = "title";
12   - public const string TITLE_ALL = "All";
13   - public const string TITLE_SELECT = "Select";
  10 + public const string KEY_ID = "id";
  11 + public const string KEY_TITLE = "title";
  12 + public const string TITLE_ALL = "All";
  13 + public const string TITLE_SELECT = "Select";
14 14 public const string KEY_VALUE = "value";
  15 +
  16 + public const string SUCCESS = "Success";
  17 + public const string FAILED = "Failed";
15 18 }
16 19 }
17 20 \ No newline at end of file
... ...
400-SOURCECODE/AIAHTML5.Server/Controllers/UpdateProfileController.cs 0 โ†’ 100644
  1 +๏ปฟusing System;
  2 +using System.Collections.Generic;
  3 +using System.Linq;
  4 +using System.Net;
  5 +using System.Net.Http;
  6 +using System.Web.Http;
  7 +using Newtonsoft.Json;
  8 +using Newtonsoft.Json.Linq;
  9 +using AIAHTML5.Server.Models;
  10 +using System.Web.Http.Cors;
  11 +using System.Web.Cors;
  12 +using AIAHTML5.Server.Constants;
  13 +using log4net;
  14 +
  15 +namespace AIAHTML5.Server.Controllers
  16 +{
  17 + [EnableCors(origins: "http://localhost:85", headers: "*", methods: "*")]
  18 + public class UpdateProfileController : ApiController
  19 + {
  20 + DbModel objDbModel = new DbModel();
  21 +
  22 + // GET: api/UpdateProfile
  23 + public IEnumerable<string> Get()
  24 + {
  25 + return new string[] { "value1", "value2" };
  26 + }
  27 +
  28 + // GET: api/UpdateProfile/5
  29 + public HttpResponseMessage Get(int id)
  30 + {
  31 + //return "value";
  32 + return new HttpResponseMessage { StatusCode = HttpStatusCode.OK, Content = new StringContent("SUCCESS") };
  33 + }
  34 +
  35 + //POST: api/UpdateProfile
  36 + [EnableCors(origins: "http://localhost:85", headers: "*", methods: "*")]
  37 + public string Post([FromBody]JObject userInfo) //int userId, string fName, string lName, string email
  38 + {
  39 + ILog logger = log4net.LogManager.GetLogger((System.Reflection.MethodBase.GetCurrentMethod().DeclaringType));
  40 + int userId = Convert.ToInt32(userInfo["userId"]);
  41 + string fName = userInfo["firstName"].ToString();
  42 + string lName = userInfo["lastName"].ToString();
  43 + string email = userInfo["emailId"].ToString();
  44 +
  45 + int result = objDbModel.UpdateUserProfile(userId, email, fName, lName); //, 0
  46 +
  47 + if (result > 0)
  48 + return AdminConstant.SUCCESS;
  49 + else
  50 + return AdminConstant.FAILED;
  51 + }
  52 +
  53 + // DELETE: api/UpdateProfile/5
  54 + public void Delete(int id)
  55 + {
  56 + }
  57 + }
  58 +}
... ...
400-SOURCECODE/AIAHTML5.Server/Models/DbModel.cs
... ... @@ -11,13 +11,13 @@ namespace AIAHTML5.Server.Models
11 11 {
12 12 public class DbModel
13 13 {
14   - String dbConnsectionString = System.Configuration.ConfigurationManager.AppSettings["AIADatabaseV5Context"];
  14 + String dbConnectionString = System.Configuration.ConfigurationManager.AppSettings["AIADatabaseV5Context"];
15 15 SqlConnection connection;
16 16 SqlCommand command;
17 17  
18 18 private DataSet GetSQLData(string commandText, bool isSp)
19 19 {
20   - connection = new SqlConnection(dbConnsectionString);
  20 + connection = new SqlConnection(dbConnectionString);
21 21 if (isSp)
22 22 {
23 23 command = new SqlCommand(commandText, connection);
... ... @@ -36,7 +36,7 @@ namespace AIAHTML5.Server.Models
36 36  
37 37 private DataSet GetAllEditionForLicense(int licenseId)
38 38 {
39   - connection = new SqlConnection(dbConnsectionString);
  39 + connection = new SqlConnection(dbConnectionString);
40 40 command = new SqlCommand();
41 41 command.Connection = connection;
42 42 command.CommandText = "GetAllEditionForLicense";
... ... @@ -49,61 +49,61 @@ namespace AIAHTML5.Server.Models
49 49 return ds;
50 50 }
51 51  
52   - /// <summary>
53   - /// This function use to get all account type
54   - /// </summary>
55   - /// <returns>Array of all account type List</returns>
56   - public ArrayList GetAllAccountTypes()
57   - {
58   - ArrayList arrAccountType = new ArrayList();
59   - Hashtable hasAccountType = null;
60   - hasAccountType = new Hashtable();
61   - hasAccountType.Add(AdminConstant.KEY_ID, 0);
62   - hasAccountType.Add(AdminConstant.KEY_TITLE, AdminConstant.TITLE_SELECT);
63   - arrAccountType.Add(hasAccountType);
64   -
  52 + /// <summary>
  53 + /// This function use to get all account type
  54 + /// </summary>
  55 + /// <returns>Array of all account type List</returns>
  56 + public ArrayList GetAllAccountTypes()
  57 + {
  58 + ArrayList arrAccountType = new ArrayList();
  59 + Hashtable hasAccountType = null;
  60 + hasAccountType = new Hashtable();
  61 + hasAccountType.Add(AdminConstant.KEY_ID, 0);
  62 + hasAccountType.Add(AdminConstant.KEY_TITLE, AdminConstant.TITLE_SELECT);
  63 + arrAccountType.Add(hasAccountType);
  64 +
65 65 DataSet ds = GetSQLData("EC_GetAccountTypeList", true);
66 66 DataTable dt = ds.Tables[0];
67 67  
68   - foreach (DataRow drActType in dt.Rows)
69   - {
70   - hasAccountType = new Hashtable();
71   - hasAccountType.Add(AdminConstant.KEY_ID, drActType["Id"]);
72   - hasAccountType.Add(AdminConstant.KEY_TITLE, drActType["Title"]);
73   - arrAccountType.Add(hasAccountType);
74   - }
75   - return arrAccountType;
  68 + foreach (DataRow drActType in dt.Rows)
  69 + {
  70 + hasAccountType = new Hashtable();
  71 + hasAccountType.Add(AdminConstant.KEY_ID, drActType["Id"]);
  72 + hasAccountType.Add(AdminConstant.KEY_TITLE, drActType["Title"]);
  73 + arrAccountType.Add(hasAccountType);
  74 + }
  75 + return arrAccountType;
76 76 }
77 77  
78   - /// <summary>
79   - /// This function use to get all user type
80   - /// </summary>
81   - /// <returns>array of all User Type</returns>
82   - public ArrayList GetUserType()
83   - {
84   - ArrayList arrUserType = new ArrayList();
85   - Hashtable hasUserType = null;
86   - hasUserType = new Hashtable();
87   - hasUserType.Add(AdminConstant.KEY_ID, 0);
88   - hasUserType.Add(AdminConstant.KEY_TITLE, AdminConstant.TITLE_ALL);
  78 + /// <summary>
  79 + /// This function use to get all user type
  80 + /// </summary>
  81 + /// <returns>array of all User Type</returns>
  82 + public ArrayList GetUserType()
  83 + {
  84 + ArrayList arrUserType = new ArrayList();
  85 + Hashtable hasUserType = null;
  86 + hasUserType = new Hashtable();
  87 + hasUserType.Add(AdminConstant.KEY_ID, 0);
  88 + hasUserType.Add(AdminConstant.KEY_TITLE, AdminConstant.TITLE_ALL);
89 89 arrUserType.Add(hasUserType);
90 90  
91 91 DataSet ds = GetSQLData("", false); //Stored procedure not found
92 92 DataTable dt = ds.Tables[0];
93 93  
94 94 foreach (DataRow drUserType in dt.Rows)
95   - {
96   - hasUserType = new Hashtable();
97   - hasUserType.Add(AdminConstant.KEY_ID, drUserType["Id"]);
98   - hasUserType.Add(AdminConstant.KEY_TITLE, drUserType["Title"]);
99   - arrUserType.Add(hasUserType);
100   - }
101   - return arrUserType;
  95 + {
  96 + hasUserType = new Hashtable();
  97 + hasUserType.Add(AdminConstant.KEY_ID, drUserType["Id"]);
  98 + hasUserType.Add(AdminConstant.KEY_TITLE, drUserType["Title"]);
  99 + arrUserType.Add(hasUserType);
  100 + }
  101 + return arrUserType;
102 102 }
103 103  
104   - /// <summary>
105   - /// This function used to get all countries list
106   - /// </summary>
  104 + /// <summary>
  105 + /// This function used to get all countries list
  106 + /// </summary>
107 107 /// <returns>Array of all country List</returns>
108 108 public ArrayList GetAllCountries()
109 109 {
... ... @@ -163,116 +163,194 @@ namespace AIAHTML5.Server.Models
163 163 return arrCountry;
164 164 }
165 165  
166   - /// <summary>
167   - /// This function used to get all states (U.S.)
168   - /// </summary>
169   - /// <returns>Array of all state List</returns>
170   - public ArrayList GetAllUSStates()
171   - {
172   - ArrayList arrState = new ArrayList();
173   - Hashtable hasState = null;
174   - hasState = new Hashtable();
175   - hasState.Add(AdminConstant.KEY_ID, 0);
176   - hasState.Add(AdminConstant.KEY_TITLE, AdminConstant.TITLE_SELECT);
177   - arrState.Add(hasState);
178   -
179   - DataSet ds = GetSQLData("EC_GetStateList", true);
180   - DataTable dt = ds.Tables[0];
181   -
  166 + /// <summary>
  167 + /// This function used to get all states (U.S.)
  168 + /// </summary>
  169 + /// <returns>Array of all state List</returns>
  170 + public ArrayList GetAllUSStates()
  171 + {
  172 + ArrayList arrState = new ArrayList();
  173 + Hashtable hasState = null;
  174 + hasState = new Hashtable();
  175 + hasState.Add(AdminConstant.KEY_ID, 0);
  176 + hasState.Add(AdminConstant.KEY_TITLE, AdminConstant.TITLE_SELECT);
  177 + arrState.Add(hasState);
  178 +
  179 + DataSet ds = GetSQLData("EC_GetStateList", true);
  180 + DataTable dt = ds.Tables[0];
  181 +
182 182 foreach (DataRow drState in dt.Rows)
183 183 {
184 184 hasState = new Hashtable();
185 185 hasState.Add(AdminConstant.KEY_ID, drState["Id"]);
186 186 hasState.Add(AdminConstant.KEY_TITLE, drState["StateName"]);
187 187 arrState.Add(hasState);
188   - }
189   -
190   - return arrState;
  188 + }
  189 +
  190 + return arrState;
191 191 }
192 192  
193   - /// <summary>
194   - /// This function used to get all edition type with "All" at the 0 index
195   - /// </summary>
196   - /// <returns>array of all Edition Type</returns>
197   - public ArrayList GetAllEditionTypes()
198   - {
199   - ArrayList arrEditionType = new ArrayList();
200   - Hashtable hasEditionType = null;
201   - hasEditionType = new Hashtable();
202   - hasEditionType.Add(AdminConstant.KEY_ID, 0);
203   - hasEditionType.Add(AdminConstant.KEY_TITLE, AdminConstant.TITLE_ALL);
204   - arrEditionType.Add(hasEditionType);
205   -
206   - DataSet ds = GetSQLData("getEditionData", true);
207   - DataTable dt = ds.Tables[0];
208   -
209   - foreach (DataRow drEdition in dt.Rows)
210   - {
211   - hasEditionType = new Hashtable();
212   - hasEditionType.Add(AdminConstant.KEY_ID, drEdition["Id"]);
213   - hasEditionType.Add(AdminConstant.KEY_TITLE, drEdition["Title"]);
214   - arrEditionType.Add(hasEditionType);
215   - }
216   - return arrEditionType;
  193 + /// <summary>
  194 + /// This function used to get all edition type with "All" at the 0 index
  195 + /// </summary>
  196 + /// <returns>array of all Edition Type</returns>
  197 + public ArrayList GetAllEditionTypes()
  198 + {
  199 + ArrayList arrEditionType = new ArrayList();
  200 + Hashtable hasEditionType = null;
  201 + hasEditionType = new Hashtable();
  202 + hasEditionType.Add(AdminConstant.KEY_ID, 0);
  203 + hasEditionType.Add(AdminConstant.KEY_TITLE, AdminConstant.TITLE_ALL);
  204 + arrEditionType.Add(hasEditionType);
  205 +
  206 + DataSet ds = GetSQLData("getEditionData", true);
  207 + DataTable dt = ds.Tables[0];
  208 +
  209 + foreach (DataRow drEdition in dt.Rows)
  210 + {
  211 + hasEditionType = new Hashtable();
  212 + hasEditionType.Add(AdminConstant.KEY_ID, drEdition["Id"]);
  213 + hasEditionType.Add(AdminConstant.KEY_TITLE, drEdition["Title"]);
  214 + arrEditionType.Add(hasEditionType);
  215 + }
  216 + return arrEditionType;
217 217 }
218 218  
219   - /// <summary>
220   - /// This function used to get all Secuirty Question type
221   - /// </summary>
222   - /// <returns>array of all security question</returns>
223   - public ArrayList GetSecuirtyQuestionsList()
224   - {
225   - ArrayList arrQuestionType = new ArrayList();
226   - Hashtable hasQuestionType = new Hashtable();
227   - hasQuestionType.Add(AdminConstant.KEY_ID, 0);
228   - hasQuestionType.Add(AdminConstant.KEY_TITLE, AdminConstant.TITLE_SELECT);
229   - arrQuestionType.Add(hasQuestionType);
230   - DataSet ds = GetSQLData("EC_GetSecurityQuestionList", true);
231   - DataTable dt = ds.Tables[0];
232   -
233   - foreach (DataRow drSQ in dt.Rows)
234   - {
235   - hasQuestionType = new Hashtable();
236   - hasQuestionType.Add(AdminConstant.KEY_ID, drSQ["Id"]);
237   - hasQuestionType.Add(AdminConstant.KEY_TITLE, drSQ["Title"]);
238   - arrQuestionType.Add(hasQuestionType);
239   - }
240   - return arrQuestionType;
  219 + /// <summary>
  220 + /// This function used to get all Secuirty Question type
  221 + /// </summary>
  222 + /// <returns>array of all security question</returns>
  223 + public ArrayList GetSecuirtyQuestionsList()
  224 + {
  225 + ArrayList arrQuestionType = new ArrayList();
  226 + Hashtable hasQuestionType = new Hashtable();
  227 + hasQuestionType.Add(AdminConstant.KEY_ID, 0);
  228 + hasQuestionType.Add(AdminConstant.KEY_TITLE, AdminConstant.TITLE_SELECT);
  229 + arrQuestionType.Add(hasQuestionType);
  230 + DataSet ds = GetSQLData("EC_GetSecurityQuestionList", true);
  231 + DataTable dt = ds.Tables[0];
  232 +
  233 + foreach (DataRow drSQ in dt.Rows)
  234 + {
  235 + hasQuestionType = new Hashtable();
  236 + hasQuestionType.Add(AdminConstant.KEY_ID, drSQ["Id"]);
  237 + hasQuestionType.Add(AdminConstant.KEY_TITLE, drSQ["Title"]);
  238 + arrQuestionType.Add(hasQuestionType);
  239 + }
  240 + return arrQuestionType;
241 241 }
242 242  
243   - /// <summary>
244   - /// This function use to get all License type
245   - /// </summary>
246   - /// <returns>array of License Types</returns>
247   - public ArrayList GetAllLicenseType()
248   - {
249   - //ArrayList arrLicenseType = new ArrayList();
250   - //Hashtable hasLicenseType = null;
251   - //hasLicenseType = new Hashtable();
252   - //hasLicenseType.Add(HelperConst.KEY_ID, 0);
253   - //hasLicenseType.Add(HelperConst.KEY_TITLE, HelperConst.TITLE_ALL);
254   - //arrLicenseType.Add(hasLicenseType);
255   -
256   - ArrayList arrLicenseType = new ArrayList();
257   - Hashtable hasLicenseType = null;
258   - hasLicenseType = new Hashtable();
259   - hasLicenseType.Add(AdminConstant.KEY_ID, 0);
260   - hasLicenseType.Add(AdminConstant.KEY_TITLE, AdminConstant.TITLE_ALL);
  243 + /// <summary>
  244 + /// This function use to get all License type
  245 + /// </summary>
  246 + /// <returns>array of License Types</returns>
  247 + public ArrayList GetAllLicenseType()
  248 + {
  249 + //ArrayList arrLicenseType = new ArrayList();
  250 + //Hashtable hasLicenseType = null;
  251 + //hasLicenseType = new Hashtable();
  252 + //hasLicenseType.Add(HelperConst.KEY_ID, 0);
  253 + //hasLicenseType.Add(HelperConst.KEY_TITLE, HelperConst.TITLE_ALL);
  254 + //arrLicenseType.Add(hasLicenseType);
  255 +
  256 + ArrayList arrLicenseType = new ArrayList();
  257 + Hashtable hasLicenseType = null;
  258 + hasLicenseType = new Hashtable();
  259 + hasLicenseType.Add(AdminConstant.KEY_ID, 0);
  260 + hasLicenseType.Add(AdminConstant.KEY_TITLE, AdminConstant.TITLE_ALL);
261 261 arrLicenseType.Add(hasLicenseType);
262 262  
263 263 string sqlCommand = "SELECT lic.Id, lic.Title FROM LicenseType lic WHERE isActive=1";
264 264  
265   - DataSet ds = GetSQLData(sqlCommand, false);
266   - DataTable dt = ds.Tables[0];
267   -
  265 + DataSet ds = GetSQLData(sqlCommand, false);
  266 + DataTable dt = ds.Tables[0];
  267 +
268 268 foreach (DataRow drLicenseType in dt.Rows)
269   - {
270   - hasLicenseType = new Hashtable();
271   - hasLicenseType.Add(AdminConstant.KEY_ID, drLicenseType["Id"]);
272   - hasLicenseType.Add(AdminConstant.KEY_TITLE, drLicenseType["Title"]);
273   - arrLicenseType.Add(hasLicenseType);
274   - }
275   - return arrLicenseType;
  269 + {
  270 + hasLicenseType = new Hashtable();
  271 + hasLicenseType.Add(AdminConstant.KEY_ID, drLicenseType["Id"]);
  272 + hasLicenseType.Add(AdminConstant.KEY_TITLE, drLicenseType["Title"]);
  273 + arrLicenseType.Add(hasLicenseType);
  274 + }
  275 + return arrLicenseType;
  276 + }
  277 +
  278 + public int UpdateUserProfile(int intUserID, string strEmailID, string strFirstName, string strLastName) //, int intLicenseId
  279 + {
  280 + int rowsUpdated = 0;
  281 + int userId = 0;
  282 + string fName = string.Empty;
  283 + string lName = string.Empty;
  284 + string email = string.Empty;
  285 +
  286 + //foreach (KeyValuePair<string, object> obj in userInfo)
  287 + //{
  288 + // if (obj.Key == "")
  289 + // userId = Convert.ToInt32(obj.Value);
  290 + // if (obj.Key == "")
  291 + // fName = obj.Value.ToString();
  292 + // if (obj.Key == "")
  293 + // lName = obj.Value.ToString();
  294 + // if (obj.Key == "EMAIL")
  295 + // email = obj.Value.ToString();
  296 + //}
  297 +
  298 + try
  299 + {
  300 + using (connection = new SqlConnection(dbConnectionString))
  301 + {
  302 + using (command = connection.CreateCommand())
  303 + //new SqlCommand("UPDATE AIAUser SET FirstName = @FirstName, LastName = @LastName, EmailId = @EmailId, ModifierId = @ModifierId, ModifiedDate = GETDATE() WHERE(Id = @iUserId)", connection))
  304 + {
  305 + command.CommandText = "UPDATE AIAUser SET FirstName = @FirstName, LastName = @LastName, EmailId = @EmailId, ModifierId = @ModifierId, ModifiedDate = GETDATE() WHERE(Id = @iUserId)";
  306 + command.Parameters.AddWithValue("@FirstName", strFirstName);
  307 + command.Parameters.AddWithValue("@LastName", strLastName);
  308 + command.Parameters.AddWithValue("@EmailId", strEmailID);
  309 + command.Parameters.AddWithValue("@ModifierId", intUserID);
  310 + command.Parameters.AddWithValue("@iUserId", intUserID);
  311 +
  312 + connection.Open();
  313 + rowsUpdated = command.ExecuteNonQuery(); //rows number of record got updated
  314 + connection.Close();
  315 + }
  316 + }
  317 + }
  318 + catch (SqlException ex)
  319 + {
  320 + rowsUpdated = 0;
  321 + }
  322 + return rowsUpdated;
  323 + }
  324 +
  325 + public int UpdateUserProfile(int intUserID, string strEmailID, string strFirstName, string strLastName, int intLicenseId)
  326 + {
  327 + int rowsUpdated = 0;
  328 +
  329 + try
  330 + {
  331 + using (connection = new SqlConnection(dbConnectionString))
  332 + {
  333 + connection.Open();
  334 + using (SqlCommand cmd =
  335 + new SqlCommand("UPDATE AIAUser SET FirstName = @FirstName, LastName = @LastName, EmailId = @EmailId, ModifierId = @ModifierId, ModifiedDate = GETDATE() WHERE(Id = @iUserId)", connection))
  336 + {
  337 + cmd.Parameters.AddWithValue("@FirstName", strFirstName);
  338 + cmd.Parameters.AddWithValue("@LastName", strLastName);
  339 + cmd.Parameters.AddWithValue("@EmailId", strEmailID);
  340 + cmd.Parameters.AddWithValue("@ModifierId", intUserID);
  341 + cmd.Parameters.AddWithValue("@iUserId", intUserID);
  342 +
  343 + rowsUpdated = cmd.ExecuteNonQuery();
  344 +
  345 + //rows number of record got updated
  346 + }
  347 + }
  348 + }
  349 + catch (SqlException ex)
  350 + {
  351 + rowsUpdated = 0;
  352 + }
  353 + return rowsUpdated;
276 354 }
277 355 }
278 356 }
279 357 \ No newline at end of file
... ...
400-SOURCECODE/AIAHTML5.Server/Web.config
1   -๏ปฟ<?xml version="1.0" encoding="utf-8"?>
2   -<!--
3   - For more information on how to configure your ASP.NET application, please visit
4   - http://go.microsoft.com/fwlink/?LinkId=169433
5   - -->
6   -<configuration>
7   - <appSettings>
8   - <add key="EmailTo" value="" />
9   - <add key="Username" value="AKIAJGTXTGJA6C7YFQIQ" />
10   - <add key="SMTPServer" value="email-smtp.us-east-1.amazonaws.com" />
11   - <add key="SMTPPort" value="587" />
12   - <add key="Password" value="AqxIxBHv1XyadOfV/baNWbejTYpsPsviRAVXk9E8Z+X7" />
13   - <add key="from-email-address" value="support@oakstone.com"/>
14   - <add key="database" value="dental-decks"/>
15   - <add key="AIADatabaseV5Context" value="Data Source=192.168.90.53;Initial Catalog=AIADatabaseV5;User ID=AIA_Dev;Password=india123;"/>
16   - </appSettings>
17   - <system.web>
18   - <compilation debug="true" targetFramework="4.5.2" />
19   - <httpRuntime targetFramework="4.5.2" maxRequestLength="10240" />
20   - <httpModules>
21   - <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" />
22   - </httpModules>
23   - </system.web>
24   - <system.codedom>
25   - <compilers>
26   - <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701" />
27   - <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+" />
28   - </compilers>
29   - </system.codedom>
30   - <system.webServer>
31   - <security>
32   - <requestFiltering>
33   - <requestLimits maxAllowedContentLength="10485760" />
34   - </requestFiltering>
35   - </security>
36   - <validation validateIntegratedModeConfiguration="false" />
37   - <modules runAllManagedModulesForAllRequests="true">
38   - <remove name="WebDAVModule"/>
39   - <remove name="ApplicationInsightsWebTracking" />
40   - <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" preCondition="managedHandler" />
41   - </modules>
42   - <handlers>
43   - <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
44   - <remove name="OPTIONSVerbHandler" />
45   - <remove name="TRACEVerbHandler" />
46   - <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
47   - </handlers>
48   - </system.webServer>
  1 +๏ปฟ<?xml version="1.0" encoding="utf-8"?>
  2 +<!--
  3 + For more information on how to configure your ASP.NET application, please visit
  4 + http://go.microsoft.com/fwlink/?LinkId=169433
  5 + -->
  6 +<configuration>
  7 + <appSettings>
  8 + <add key="EmailTo" value="" />
  9 + <add key="Username" value="AKIAJGTXTGJA6C7YFQIQ" />
  10 + <add key="SMTPServer" value="email-smtp.us-east-1.amazonaws.com" />
  11 + <add key="SMTPPort" value="587" />
  12 + <add key="Password" value="AqxIxBHv1XyadOfV/baNWbejTYpsPsviRAVXk9E8Z+X7" />
  13 + <add key="from-email-address" value="support@oakstone.com"/>
  14 + <add key="database" value="dental-decks"/>
  15 + <add key="AIADatabaseV5Context" value="Data Source=192.168.90.53;Initial Catalog=AIADatabaseV5;User ID=AIA_Dev;Password=india123;"/>
  16 + </appSettings>
  17 + <system.web>
  18 + <compilation debug="true" targetFramework="4.5.2" />
  19 + <httpRuntime targetFramework="4.5.2" maxRequestLength="10240" />
  20 + <httpModules>
  21 + <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" />
  22 + </httpModules>
  23 + </system.web>
  24 + <system.codedom>
  25 + <compilers>
  26 + <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701" />
  27 + <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+" />
  28 + </compilers>
  29 + </system.codedom>
  30 + <system.webServer>
  31 + <security>
  32 + <requestFiltering>
  33 + <requestLimits maxAllowedContentLength="10485760" />
  34 + </requestFiltering>
  35 + </security>
  36 + <validation validateIntegratedModeConfiguration="false" />
  37 + <modules runAllManagedModulesForAllRequests="true">
  38 + <remove name="WebDAVModule"/>
  39 + <remove name="ApplicationInsightsWebTracking" />
  40 + <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" preCondition="managedHandler" />
  41 + </modules>
  42 + <handlers>
  43 + <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
  44 + <remove name="OPTIONSVerbHandler" />
  45 + <remove name="TRACEVerbHandler" />
  46 + <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
  47 + </handlers>
  48 + <httpProtocol>
  49 + <customHeaders>
  50 + <add name="Access-Control-Allow-Origin" value="http://localhost:85" />
  51 + </customHeaders>
  52 + </httpProtocol>
  53 + </system.webServer>
49 54 </configuration>
50 55 \ No newline at end of file
... ...
400-SOURCECODE/AIAHTML5.Server/packages.config
... ... @@ -7,9 +7,11 @@
7 7 <package id="Microsoft.ApplicationInsights.Web" version="2.2.0" targetFramework="net452" />
8 8 <package id="Microsoft.ApplicationInsights.WindowsServer" version="2.2.0" targetFramework="net452" />
9 9 <package id="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel" version="2.2.0" targetFramework="net452" />
  10 + <package id="Microsoft.AspNet.Cors" version="5.2.3" targetFramework="net452" />
10 11 <package id="Microsoft.AspNet.WebApi" version="5.2.3" targetFramework="net452" />
11 12 <package id="Microsoft.AspNet.WebApi.Client" version="5.2.3" targetFramework="net452" />
12 13 <package id="Microsoft.AspNet.WebApi.Core" version="5.2.3" targetFramework="net452" />
  14 + <package id="Microsoft.AspNet.WebApi.Cors" version="5.2.3" targetFramework="net452" />
13 15 <package id="Microsoft.AspNet.WebApi.WebHost" version="5.2.3" targetFramework="net452" />
14 16 <package id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="1.0.0" targetFramework="net452" />
15 17 <package id="Microsoft.Net.Compilers" version="1.0.0" targetFramework="net452" developmentDependency="true" />
... ...
400-SOURCECODE/AIAHTML5.Server/packages/Microsoft.AspNet.Cors.5.2.3/Microsoft.AspNet.Cors.5.2.3.nupkg 0 โ†’ 100644
No preview for this file type
400-SOURCECODE/AIAHTML5.Server/packages/Microsoft.AspNet.Cors.5.2.3/lib/net45/System.Web.Cors.dll 0 โ†’ 100644
No preview for this file type
400-SOURCECODE/AIAHTML5.Server/packages/Microsoft.AspNet.WebApi.Cors.5.2.3/Microsoft.AspNet.WebApi.Cors.5.2.3.nupkg 0 โ†’ 100644
No preview for this file type
400-SOURCECODE/AIAHTML5.Server/packages/Microsoft.AspNet.WebApi.Cors.5.2.3/lib/net45/System.Web.Http.Cors.dll 0 โ†’ 100644
No preview for this file type
400-SOURCECODE/AIAHTML5.Server/packages/Microsoft.AspNet.WebApi.Cors.5.2.3/lib/net45/System.Web.Http.Cors.xml 0 โ†’ 100644
  1 +๏ปฟ<?xml version="1.0" encoding="utf-8"?>
  2 +<doc>
  3 + <assembly>
  4 + <name>System.Web.Http.Cors</name>
  5 + </assembly>
  6 + <members>
  7 + <member name="T:System.Web.Http.CorsHttpConfigurationExtensions">
  8 + <summary>CORS-related extension methods for <see cref="T:System.Web.Http.HttpConfiguration" />.</summary>
  9 + </member>
  10 + <member name="M:System.Web.Http.CorsHttpConfigurationExtensions.EnableCors(System.Web.Http.HttpConfiguration)">
  11 + <summary>Enables the support for CORS.</summary>
  12 + <param name="httpConfiguration">The <see cref="T:System.Web.Http.HttpConfiguration" />.</param>
  13 + </member>
  14 + <member name="M:System.Web.Http.CorsHttpConfigurationExtensions.EnableCors(System.Web.Http.HttpConfiguration,System.Web.Http.Cors.ICorsPolicyProvider)">
  15 + <summary>Enables the support for CORS.</summary>
  16 + <param name="httpConfiguration">The <see cref="T:System.Web.Http.HttpConfiguration" />.</param>
  17 + <param name="defaultPolicyProvider">The default <see cref="T:System.Web.Http.Cors.ICorsPolicyProvider" />.</param>
  18 + <exception cref="T:System.ArgumentNullException">httpConfiguration</exception>
  19 + </member>
  20 + <member name="M:System.Web.Http.CorsHttpConfigurationExtensions.GetCorsEngine(System.Web.Http.HttpConfiguration)">
  21 + <summary>Gets the <see cref="T:System.Web.Cors.ICorsEngine" /> from the <see cref="T:System.Web.Http.HttpConfiguration" />.</summary>
  22 + <returns>The <see cref="T:System.Web.Cors.ICorsEngine" />.</returns>
  23 + <param name="httpConfiguration">The <see cref="T:System.Web.Http.HttpConfiguration" />.</param>
  24 + <exception cref="T:System.ArgumentNullException">httpConfiguration</exception>
  25 + </member>
  26 + <member name="M:System.Web.Http.CorsHttpConfigurationExtensions.GetCorsPolicyProviderFactory(System.Web.Http.HttpConfiguration)">
  27 + <summary>Gets the <see cref="T:System.Web.Http.Cors.ICorsPolicyProviderFactory" /> from the <see cref="T:System.Web.Http.HttpConfiguration" />.</summary>
  28 + <returns>The <see cref="T:System.Web.Http.Cors.ICorsPolicyProviderFactory" />.</returns>
  29 + <param name="httpConfiguration">The <see cref="T:System.Web.Http.HttpConfiguration" />.</param>
  30 + <exception cref="T:System.ArgumentNullException">httpConfiguration</exception>
  31 + </member>
  32 + <member name="M:System.Web.Http.CorsHttpConfigurationExtensions.SetCorsEngine(System.Web.Http.HttpConfiguration,System.Web.Cors.ICorsEngine)">
  33 + <summary>Sets the <see cref="T:System.Web.Cors.ICorsEngine" /> on the <see cref="T:System.Web.Http.HttpConfiguration" />.</summary>
  34 + <param name="httpConfiguration">The <see cref="T:System.Web.Http.HttpConfiguration" />.</param>
  35 + <param name="corsEngine">The <see cref="T:System.Web.Cors.ICorsEngine" />.</param>
  36 + <exception cref="T:System.ArgumentNullException">httpConfiguration or corsEngine</exception>
  37 + </member>
  38 + <member name="M:System.Web.Http.CorsHttpConfigurationExtensions.SetCorsPolicyProviderFactory(System.Web.Http.HttpConfiguration,System.Web.Http.Cors.ICorsPolicyProviderFactory)">
  39 + <summary>Sets the <see cref="T:System.Web.Http.Cors.ICorsPolicyProviderFactory" /> on the <see cref="T:System.Web.Http.HttpConfiguration" />.</summary>
  40 + <param name="httpConfiguration">The <see cref="T:System.Web.Http.HttpConfiguration" />.</param>
  41 + <param name="corsPolicyProviderFactory">The <see cref="T:System.Web.Http.Cors.ICorsPolicyProviderFactory" />.</param>
  42 + <exception cref="T:System.ArgumentNullException">httpConfiguration or corsPolicyProviderFactory</exception>
  43 + </member>
  44 + <member name="T:System.Web.Http.Cors.AttributeBasedPolicyProviderFactory">
  45 + <summary>An implementation of <see cref="T:System.Web.Http.Cors.ICorsPolicyProviderFactory" /> that returns the <see cref="T:System.Web.Http.Cors.ICorsPolicyProvider" /> from the controller or action attribute.</summary>
  46 + </member>
  47 + <member name="M:System.Web.Http.Cors.AttributeBasedPolicyProviderFactory.#ctor">
  48 + <summary>Initializes a new instance of the <see cref="T:System.Web.Http.Cors.AttributeBasedPolicyProviderFactory" /> class.</summary>
  49 + </member>
  50 + <member name="P:System.Web.Http.Cors.AttributeBasedPolicyProviderFactory.DefaultPolicyProvider">
  51 + <summary>Gets or sets the default <see cref="T:System.Web.Http.Cors.ICorsPolicyProvider" />.</summary>
  52 + <returns>The default <see cref="T:System.Web.Http.Cors.ICorsPolicyProvider" />.</returns>
  53 + </member>
  54 + <member name="M:System.Web.Http.Cors.AttributeBasedPolicyProviderFactory.GetCorsPolicyProvider(System.Net.Http.HttpRequestMessage)">
  55 + <summary>Gets the <see cref="T:System.Web.Http.Cors.ICorsPolicyProvider" /> for the request.</summary>
  56 + <returns>The <see cref="T:System.Web.Http.Cors.ICorsPolicyProvider" />.</returns>
  57 + <param name="request">The request.</param>
  58 + <exception cref="T:System.ArgumentNullException">request</exception>
  59 + </member>
  60 + <member name="T:System.Web.Http.Cors.CorsHttpRequestMessageExtensions">
  61 + <summary>CORS-related extension methods for <see cref="T:System.Net.Http.HttpRequestMessage" />.</summary>
  62 + </member>
  63 + <member name="M:System.Web.Http.Cors.CorsHttpRequestMessageExtensions.GetCorsRequestContext(System.Net.Http.HttpRequestMessage)">
  64 + <summary>Gets the <see cref="T:System.Web.Cors.CorsRequestContext" /> for a given request.</summary>
  65 + <returns>The <see cref="T:System.Web.Cors.CorsRequestContext" />.</returns>
  66 + <param name="request">The <see cref="T:System.Net.Http.HttpRequestMessage" />.</param>
  67 + <exception cref="T:System.ArgumentNullException">request</exception>
  68 + </member>
  69 + <member name="T:System.Web.Http.Cors.CorsHttpResponseMessageExtensions">
  70 + <summary>CORS-related extension methods for <see cref="T:System.Net.Http.HttpResponseMessage" />.</summary>
  71 + </member>
  72 + <member name="M:System.Web.Http.Cors.CorsHttpResponseMessageExtensions.WriteCorsHeaders(System.Net.Http.HttpResponseMessage,System.Web.Cors.CorsResult)">
  73 + <summary>Writes the CORS headers on the response.</summary>
  74 + <param name="response">The <see cref="T:System.Net.Http.HttpResponseMessage" />.</param>
  75 + <param name="corsResult">The <see cref="T:System.Web.Cors.CorsResult" />.</param>
  76 + <exception cref="T:System.ArgumentNullException">response or corsResult</exception>
  77 + </member>
  78 + <member name="T:System.Web.Http.Cors.CorsMessageHandler">
  79 + <summary>Custom <see cref="T:System.Net.Http.DelegatingHandler" /> for handling CORS requests.</summary>
  80 + </member>
  81 + <member name="M:System.Web.Http.Cors.CorsMessageHandler.#ctor(System.Web.Http.HttpConfiguration)">
  82 + <summary>Initializes a new instance of the <see cref="T:System.Web.Http.Cors.CorsMessageHandler" /> class.</summary>
  83 + <param name="httpConfiguration">The <see cref="T:System.Web.Http.HttpConfiguration" />.</param>
  84 + <exception cref="T:System.ArgumentNullException">httpConfiguration</exception>
  85 + </member>
  86 + <member name="M:System.Web.Http.Cors.CorsMessageHandler.HandleCorsPreflightRequestAsync(System.Net.Http.HttpRequestMessage,System.Web.Cors.CorsRequestContext,System.Threading.CancellationToken)">
  87 + <summary>Handles the preflight request specified by CORS.</summary>
  88 + <returns>The <see cref="T:System.Threading.Tasks.Task`1" /></returns>
  89 + <param name="request">The request.</param>
  90 + <param name="corsRequestContext">The cors request context.</param>
  91 + <param name="cancellationToken">The cancellation token.</param>
  92 + <exception cref="T:System.ArgumentNullException">request or corsRequestContext</exception>
  93 + </member>
  94 + <member name="M:System.Web.Http.Cors.CorsMessageHandler.HandleCorsRequestAsync(System.Net.Http.HttpRequestMessage,System.Web.Cors.CorsRequestContext,System.Threading.CancellationToken)">
  95 + <summary>Handles the actual CORS request.</summary>
  96 + <returns>The <see cref="T:System.Threading.Tasks.Task`1" />.</returns>
  97 + <param name="request">The <see cref="T:System.Net.Http.HttpRequestMessage" />.</param>
  98 + <param name="corsRequestContext">The <see cref="T:System.Web.Cors.CorsRequestContext" />.</param>
  99 + <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken" />.</param>
  100 + <exception cref="T:System.ArgumentNullException">request or corsRequestContext</exception>
  101 + </member>
  102 + <member name="M:System.Web.Http.Cors.CorsMessageHandler.SendAsync(System.Net.Http.HttpRequestMessage,System.Threading.CancellationToken)">
  103 + <summary>Sends an HTTP request to the inner handler to send to the server as an asynchronous operation.</summary>
  104 + <returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />. The task object representing the asynchronous operation.</returns>
  105 + <param name="request">The HTTP request message to send to the server.</param>
  106 + <param name="cancellationToken">A cancellation token to cancel operation.</param>
  107 + </member>
  108 + <member name="T:System.Web.Http.Cors.DisableCorsAttribute">
  109 + <summary>This class defines an attribute that can be applied to an action or a controller to disable CORS.</summary>
  110 + </member>
  111 + <member name="M:System.Web.Http.Cors.DisableCorsAttribute.#ctor">
  112 + <summary>Initializes a new instance of the <see cref="T:System.Web.Http.Cors.DisableCorsAttribute" /> class.</summary>
  113 + </member>
  114 + <member name="M:System.Web.Http.Cors.DisableCorsAttribute.GetCorsPolicyAsync(System.Net.Http.HttpRequestMessage,System.Threading.CancellationToken)">
  115 + <summary>Gets the CORS policy asynchronously.</summary>
  116 + <returns>The newly created task for this operation.</returns>
  117 + <param name="request">The request.</param>
  118 + <param name="cancellationToken">The cancellation token assigned for this task.</param>
  119 + </member>
  120 + <member name="T:System.Web.Http.Cors.EnableCorsAttribute">
  121 + <summary>This class defines an attribute that can be applied to an action or a controller to enable CORS. By default, it allows all origins, methods and headers.</summary>
  122 + </member>
  123 + <member name="M:System.Web.Http.Cors.EnableCorsAttribute.#ctor(System.String,System.String,System.String)">
  124 + <summary>Initializes a new instance of the <see cref="T:System.Web.Http.Cors.EnableCorsAttribute" /> class.</summary>
  125 + <param name="origins">Comma-separated list of origins that are allowed to access the resource. Use "*" to allow all.</param>
  126 + <param name="headers">Comma-separated list of headers that are supported by the resource. Use "*" to allow all. Use null or empty string to allow none.</param>
  127 + <param name="methods">Comma-separated list of methods that are supported by the resource. Use "*" to allow all. Use null or empty string to allow none.</param>
  128 + </member>
  129 + <member name="M:System.Web.Http.Cors.EnableCorsAttribute.#ctor(System.String,System.String,System.String,System.String)">
  130 + <summary>Initializes a new instance of the <see cref="T:System.Web.Http.Cors.EnableCorsAttribute" /> class.</summary>
  131 + <param name="origins">Comma-separated list of origins that are allowed to access the resource. Use "*" to allow all.</param>
  132 + <param name="headers">Comma-separated list of headers that are supported by the resource. Use "*" to allow all. Use null or empty string to allow none.</param>
  133 + <param name="methods">Comma-separated list of methods that are supported by the resource. Use "*" to allow all. Use null or empty string to allow none.</param>
  134 + <param name="exposedHeaders">Comma-separated list of headers that the resource might use and can be exposed. Use null or empty string to expose none.</param>
  135 + </member>
  136 + <member name="P:System.Web.Http.Cors.EnableCorsAttribute.ExposedHeaders">
  137 + <summary>Gets the headers that the resource might use and can be exposed.</summary>
  138 + </member>
  139 + <member name="M:System.Web.Http.Cors.EnableCorsAttribute.GetCorsPolicyAsync(System.Net.Http.HttpRequestMessage,System.Threading.CancellationToken)"></member>
  140 + <member name="P:System.Web.Http.Cors.EnableCorsAttribute.Headers">
  141 + <summary>Gets the headers that are supported by the resource.</summary>
  142 + </member>
  143 + <member name="P:System.Web.Http.Cors.EnableCorsAttribute.Methods">
  144 + <summary>Gets the methods that are supported by the resource.</summary>
  145 + </member>
  146 + <member name="P:System.Web.Http.Cors.EnableCorsAttribute.Origins">
  147 + <summary>Gets the origins that are allowed to access the resource.</summary>
  148 + </member>
  149 + <member name="P:System.Web.Http.Cors.EnableCorsAttribute.PreflightMaxAge">
  150 + <summary>Gets or sets the number of seconds the results of a preflight request can be cached.</summary>
  151 + </member>
  152 + <member name="P:System.Web.Http.Cors.EnableCorsAttribute.SupportsCredentials">
  153 + <summary>Gets or sets a value indicating whether the resource supports user credentials in the request.</summary>
  154 + </member>
  155 + <member name="T:System.Web.Http.Cors.ICorsPolicyProvider">
  156 + <summary>Provides an abstraction for getting the <see cref="T:System.Web.Cors.CorsPolicy" />.</summary>
  157 + </member>
  158 + <member name="M:System.Web.Http.Cors.ICorsPolicyProvider.GetCorsPolicyAsync(System.Net.Http.HttpRequestMessage,System.Threading.CancellationToken)">
  159 + <summary>Gets the <see cref="T:System.Web.Cors.CorsPolicy" />.</summary>
  160 + <returns>The <see cref="T:System.Web.Cors.CorsPolicy" />.</returns>
  161 + <param name="request">The request.</param>
  162 + <param name="cancellationToken">The cancellation token.</param>
  163 + </member>
  164 + <member name="T:System.Web.Http.Cors.ICorsPolicyProviderFactory">
  165 + <summary>Provides an abstraction for getting the <see cref="T:System.Web.Http.Cors.ICorsPolicyProvider" />.</summary>
  166 + </member>
  167 + <member name="M:System.Web.Http.Cors.ICorsPolicyProviderFactory.GetCorsPolicyProvider(System.Net.Http.HttpRequestMessage)">
  168 + <summary>Gets the <see cref="T:System.Web.Http.Cors.ICorsPolicyProvider" /> for the request.</summary>
  169 + <returns>The <see cref="T:System.Web.Http.Cors.ICorsPolicyProvider" />.</returns>
  170 + <param name="request">The request.</param>
  171 + </member>
  172 + <member name="T:System.Web.Http.Cors.Tracing.TraceCategories">
  173 + <summary>Category names traced by the default CORS tracing implementation.</summary>
  174 + </member>
  175 + <member name="F:System.Web.Http.Cors.Tracing.TraceCategories.CorsCategory">
  176 + <summary>The trace category for CORS-related events.</summary>
  177 + </member>
  178 + </members>
  179 +</doc>
0 180 \ No newline at end of file
... ...