Commit b7562317f7cc3029fb4f985741db2ba99e1f9bb7
1 parent
cc9a01a1
dist added
Showing
76 changed files
with
2647 additions
and
0 deletions
400-SOURCECODE/Admin/dist/out-tsc/e2e/app.e2e-spec.js
0 → 100644
1 | +"use strict"; | |
2 | +Object.defineProperty(exports, "__esModule", { value: true }); | |
3 | +var app_po_1 = require("./app.po"); | |
4 | +describe('aianew App', function () { | |
5 | + var page; | |
6 | + beforeEach(function () { | |
7 | + page = new app_po_1.AppPage(); | |
8 | + }); | |
9 | + it('should display welcome message', function () { | |
10 | + page.navigateTo(); | |
11 | + expect(page.getParagraphText()).toEqual('Welcome to app!'); | |
12 | + }); | |
13 | +}); | |
14 | +//# sourceMappingURL=app.e2e-spec.js.map | |
0 | 15 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/e2e/app.e2e-spec.js.map
0 → 100644
1 | +{"version":3,"file":"app.e2e-spec.js","sourceRoot":"","sources":["../../../e2e/app.e2e-spec.ts"],"names":[],"mappings":";;AAAA,mCAAmC;AAEnC,QAAQ,CAAC,YAAY,EAAE;IACrB,IAAI,IAAa,CAAC;IAElB,UAAU,CAAC;QACT,IAAI,GAAG,IAAI,gBAAO,EAAE,CAAC;IACvB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,gCAAgC,EAAE;QACnC,IAAI,CAAC,UAAU,EAAE,CAAC;QAClB,MAAM,CAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} | |
0 | 2 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/e2e/app.po.js
0 → 100644
1 | +"use strict"; | |
2 | +Object.defineProperty(exports, "__esModule", { value: true }); | |
3 | +var protractor_1 = require("protractor"); | |
4 | +var AppPage = /** @class */ (function () { | |
5 | + function AppPage() { | |
6 | + } | |
7 | + AppPage.prototype.navigateTo = function () { | |
8 | + return protractor_1.browser.get('/'); | |
9 | + }; | |
10 | + AppPage.prototype.getParagraphText = function () { | |
11 | + return protractor_1.element(protractor_1.by.css('app-root h1')).getText(); | |
12 | + }; | |
13 | + return AppPage; | |
14 | +}()); | |
15 | +exports.AppPage = AppPage; | |
16 | +//# sourceMappingURL=app.po.js.map | |
0 | 17 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/e2e/app.po.js.map
0 → 100644
1 | +{"version":3,"file":"app.po.js","sourceRoot":"","sources":["../../../e2e/app.po.ts"],"names":[],"mappings":";;AAAA,yCAAkD;AAElD;IAAA;IAQA,CAAC;IAPC,4BAAU,GAAV;QACE,MAAM,CAAC,oBAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC1B,CAAC;IAED,kCAAgB,GAAhB;QACE,MAAM,CAAC,oBAAO,CAAC,eAAE,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IAClD,CAAC;IACH,cAAC;AAAD,CAAC,AARD,IAQC;AARY,0BAAO"} | |
0 | 2 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/Shared/Confirm/confirm.component.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 | +Object.defineProperty(exports, "__esModule", { value: true }); | |
12 | +var core_1 = require("@angular/core"); | |
13 | +var confirm_service_1 = require("./confirm.service"); | |
14 | +var ng2_bs3_modal_1 = require("ng2-bs3-modal/ng2-bs3-modal"); | |
15 | +var KEY_ESC = 27; | |
16 | +var ConfirmComponent = /** @class */ (function () { | |
17 | + function ConfirmComponent(confirmService) { | |
18 | + this._defaults = { | |
19 | + type: 'reset', | |
20 | + message: 'Do you want to cancel your changes?', | |
21 | + cancelText: 'Cancel', | |
22 | + okText: 'OK' | |
23 | + }; | |
24 | + this.alertshow = false; | |
25 | + confirmService.activate = this.activate.bind(this); | |
26 | + } | |
27 | + ConfirmComponent.prototype._setLabels = function (message, type) { | |
28 | + if (message === void 0) { message = this._defaults.message; } | |
29 | + if (type === void 0) { type = this._defaults.type; } | |
30 | + // this.modalType = type; | |
31 | + this.type = type; | |
32 | + //this.alertshow = type == 'reset' ? true : false; | |
33 | + this.message = message; | |
34 | + this.okText = this._defaults.okText; | |
35 | + this.cancelText = this._defaults.cancelText; | |
36 | + }; | |
37 | + ConfirmComponent.prototype.activate = function (message, type) { | |
38 | + var _this = this; | |
39 | + if (message === void 0) { message = this._defaults.message; } | |
40 | + if (type === void 0) { type = this._defaults.type; } | |
41 | + this._setLabels(message, type); | |
42 | + var promise = new Promise(function (resolve) { | |
43 | + _this._show(resolve); | |
44 | + }); | |
45 | + return promise; | |
46 | + }; | |
47 | + ConfirmComponent.prototype._show = function (resolve) { | |
48 | + var _this = this; | |
49 | + document.onkeyup = null; | |
50 | + var yesOnClick = function (e) { return resolve(1); }; // 1 for yes | |
51 | + var noOnClick = function (e) { return resolve(2); }; // 2 for no | |
52 | + var cancelOnClick = function (e) { return resolve(3); }; // 3 for cancel | |
53 | + var yesResetClick = function (e) { return resolve(1); }; | |
54 | + var noResetClick = function (e) { return resolve(2); }; | |
55 | + var yesConfirmClick = function (e) { return resolve(6); }; // yes | |
56 | + var noConfirmClick = function (e) { return resolve(7); }; // NO | |
57 | + var okAlertClick = function (e) { return resolve(5); }; // for alert message | |
58 | + var closeAlertClick = function (e) { return resolve(8); }; // for alert message | |
59 | + if (!this._cancelButton || !this._okButton) | |
60 | + return; | |
61 | + //this._confirmElement.style.opacity = 0; | |
62 | + //this._confirmElement.style.zIndex = 9999; | |
63 | + this._cancelButton.onclick = (function (e) { | |
64 | + e.preventDefault(); | |
65 | + if (!cancelOnClick(e)) | |
66 | + _this._hideDialog(); | |
67 | + }); | |
68 | + this._okButton.onclick = (function (e) { | |
69 | + e.preventDefault(); | |
70 | + if (!yesOnClick(e)) | |
71 | + _this._hideDialog(); | |
72 | + }); | |
73 | + this._noButton.onclick = (function (e) { | |
74 | + e.preventDefault(); | |
75 | + if (!noOnClick(e)) | |
76 | + _this._hideDialog(); | |
77 | + }); | |
78 | + this._noResetButton.onclick = (function (e) { | |
79 | + e.preventDefault(); | |
80 | + if (!noResetClick(e)) | |
81 | + _this._hideDialog(); | |
82 | + }); | |
83 | + this._yesResetButton.onclick = (function (e) { | |
84 | + e.preventDefault(); | |
85 | + if (!yesResetClick(e)) | |
86 | + _this._hideDialog(); | |
87 | + }); | |
88 | + this._noConfirmButton.onclick = (function (e) { | |
89 | + e.preventDefault(); | |
90 | + if (!noConfirmClick(e)) | |
91 | + _this._hideDialog(); | |
92 | + }); | |
93 | + this._yesConfirmButton.onclick = (function (e) { | |
94 | + e.preventDefault(); | |
95 | + if (!yesConfirmClick(e)) | |
96 | + _this._hideDialog(); | |
97 | + }); | |
98 | + this._okAlert.onclick = (function (e) { | |
99 | + e.preventDefault(); | |
100 | + if (!okAlertClick(e)) | |
101 | + _this._hideDialog(); | |
102 | + }); | |
103 | + this._closeAlert.onclick = (function (e) { | |
104 | + e.preventDefault(); | |
105 | + if (!closeAlertClick(e)) | |
106 | + _this._hideDialog(); | |
107 | + }); | |
108 | + //this._confirmelement.onclick = () => { | |
109 | + // this._hidedialog(); | |
110 | + // return negativeonclick(null); | |
111 | + //}; | |
112 | + if (this.type.toString() == "close") { | |
113 | + this.closeModal.open('sm'); | |
114 | + return; | |
115 | + } | |
116 | + if (this.type.toString() == "reset") { | |
117 | + this.resetModal.open('sm'); | |
118 | + return; | |
119 | + } | |
120 | + if (this.type.toString() == "confirmModel") { | |
121 | + this.confirmModel.open('sm'); | |
122 | + return; | |
123 | + } | |
124 | + if (this.type.toString() == "alertMsg") { | |
125 | + //setTimeout(this.alertMessageModal.open('sm'), 60000); | |
126 | + clearTimeout(this.timer); | |
127 | + this.timer = setTimeout(function () { | |
128 | + _this.alertMessageModal.open('sm'); | |
129 | + }, 500); | |
130 | + return; | |
131 | + } | |
132 | + if (this.type.toString() == "alertMsg2") { | |
133 | + this.alertMessageModal.open('sm'); | |
134 | + return; | |
135 | + } | |
136 | + document.onkeyup = function (e) { | |
137 | + if (e.which == KEY_ESC) { | |
138 | + _this._hideDialog(); | |
139 | + return cancelOnClick(null); | |
140 | + } | |
141 | + }; | |
142 | + //this._confirmElement.style.opacity = 1; | |
143 | + }; | |
144 | + ConfirmComponent.prototype._hideDialog = function () { | |
145 | + if (this.type.toString() == "close") { | |
146 | + this.closeModal.close(); | |
147 | + return; | |
148 | + } | |
149 | + if (this.type.toString() == "reset") { | |
150 | + this.resetModal.close(); | |
151 | + return; | |
152 | + } | |
153 | + if (this.type.toString() == "confirmModel") { | |
154 | + this.confirmModel.close(); | |
155 | + return; | |
156 | + } | |
157 | + if (this.type.toString() == "alertMsg") { | |
158 | + this.alertMessageModal.close(); | |
159 | + return; | |
160 | + } | |
161 | + if (this.type.toString() == "alertMsg2") { | |
162 | + this.alertMessageModal.close(); | |
163 | + return; | |
164 | + } | |
165 | + }; | |
166 | + ConfirmComponent.prototype.ngOnInit = function () { | |
167 | + //this._confirmElement = document.getElementById('confirmationModal'); | |
168 | + this._cancelButton = document.getElementById('cancelButton'); | |
169 | + this._okButton = document.getElementById('okButton'); | |
170 | + this._noButton = document.getElementById('noButton'); | |
171 | + this._yesResetButton = document.getElementById('yesResetButton'); | |
172 | + this._noResetButton = document.getElementById('noResetButton'); | |
173 | + this._yesConfirmButton = document.getElementById('yesConfirmButton'); | |
174 | + this._noConfirmButton = document.getElementById('noConfirmButton'); | |
175 | + this._okAlert = document.getElementById('okAlert'); | |
176 | + this._closeAlert = document.getElementById('closeAlert'); | |
177 | + }; | |
178 | + __decorate([ | |
179 | + core_1.ViewChild("closeModal"), | |
180 | + __metadata("design:type", ng2_bs3_modal_1.ModalComponent) | |
181 | + ], ConfirmComponent.prototype, "closeModal", void 0); | |
182 | + __decorate([ | |
183 | + core_1.ViewChild("confirmModel"), | |
184 | + __metadata("design:type", ng2_bs3_modal_1.ModalComponent) | |
185 | + ], ConfirmComponent.prototype, "confirmModel", void 0); | |
186 | + __decorate([ | |
187 | + core_1.ViewChild("resetModal"), | |
188 | + __metadata("design:type", ng2_bs3_modal_1.ModalComponent) | |
189 | + ], ConfirmComponent.prototype, "resetModal", void 0); | |
190 | + __decorate([ | |
191 | + core_1.ViewChild("alertMessageModal"), | |
192 | + __metadata("design:type", ng2_bs3_modal_1.ModalComponent) | |
193 | + ], ConfirmComponent.prototype, "alertMessageModal", void 0); | |
194 | + ConfirmComponent = __decorate([ | |
195 | + core_1.Component({ | |
196 | + selector: 'modal-confirm', | |
197 | + templateUrl: './confirm.component.html', | |
198 | + }), | |
199 | + __metadata("design:paramtypes", [confirm_service_1.ConfirmService]) | |
200 | + ], ConfirmComponent); | |
201 | + return ConfirmComponent; | |
202 | +}()); | |
203 | +exports.ConfirmComponent = ConfirmComponent; | |
204 | +//# sourceMappingURL=confirm.component.js.map | |
0 | 205 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/Shared/Confirm/confirm.component.js.map
0 → 100644
1 | +{"version":3,"file":"confirm.component.js","sourceRoot":"","sources":["../../../../../../src/app/Shared/Confirm/confirm.component.ts"],"names":[],"mappings":";;;;;;;;;;;AAAC,sCAAsG;AACvG,qDAAiD;AACjD,6DAA6D;AAC7D,IAAM,OAAO,GAAG,EAAE,CAA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Z,8BAAc;+DAAC;IAtBzB,gBAAgB;QAJ5B,gBAAS,CAAC;YACP,QAAQ,EAAE,eAAe;YACzB,WAAW,EAAE,0BAA0B;SAC1C,CAAC;yCAmC6B,gCAAc;OAlChC,gBAAgB,CAiM5B;IAAD,uBAAC;CAAA,AAjMD,IAiMC;AAjMY,4CAAgB"} | |
0 | 2 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/Shared/Confirm/confirm.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 | +Object.defineProperty(exports, "__esModule", { value: true }); | |
9 | +var core_1 = require("@angular/core"); | |
10 | +var ConfirmService = /** @class */ (function () { | |
11 | + function ConfirmService() { | |
12 | + } | |
13 | + ConfirmService = __decorate([ | |
14 | + core_1.Injectable() | |
15 | + ], ConfirmService); | |
16 | + return ConfirmService; | |
17 | +}()); | |
18 | +exports.ConfirmService = ConfirmService; | |
19 | +//# sourceMappingURL=confirm.service.js.map | |
0 | 20 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/Shared/Confirm/confirm.service.js.map
0 → 100644
1 | +{"version":3,"file":"confirm.service.js","sourceRoot":"","sources":["../../../../../../src/app/Shared/Confirm/confirm.service.ts"],"names":[],"mappings":";;;;;;;;AAAA,sCAAyC;AAGzC;IAAA;IAEA,CAAC;IAFY,cAAc;QAD1B,iBAAU,EAAE;OACA,cAAc,CAE1B;IAAD,qBAAC;CAAA,AAFD,IAEC;AAFY,wCAAc"} | |
0 | 2 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/Shared/enum.js
0 → 100644
1 | +"use strict"; | |
2 | +Object.defineProperty(exports, "__esModule", { value: true }); | |
3 | +var DBOperation; | |
4 | +(function (DBOperation) { | |
5 | + DBOperation[DBOperation["create"] = 1] = "create"; | |
6 | + DBOperation[DBOperation["update"] = 2] = "update"; | |
7 | + DBOperation[DBOperation["delete"] = 3] = "delete"; | |
8 | +})(DBOperation = exports.DBOperation || (exports.DBOperation = {})); | |
9 | +//# sourceMappingURL=enum.js.map | |
0 | 10 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/Shared/enum.js.map
0 → 100644
400-SOURCECODE/Admin/dist/out-tsc/src/app/Shared/global.js
0 → 100644
1 | +"use strict"; | |
2 | +Object.defineProperty(exports, "__esModule", { value: true }); | |
3 | +var GlobalService = /** @class */ (function () { | |
4 | + function GlobalService() { | |
5 | + this.resourceBaseUrl = ""; | |
6 | + this.hostURL = ""; | |
7 | + this.UserId = 6; | |
8 | + this.UserType = 0; | |
9 | + this.AccountType = 0; | |
10 | + this.hostURL = window.location.hostname; | |
11 | + this.resourceBaseUrl = "http://192.168.84.242:97/User"; | |
12 | + } | |
13 | + return GlobalService; | |
14 | +}()); | |
15 | +exports.GlobalService = GlobalService; | |
16 | +//# sourceMappingURL=global.js.map | |
0 | 17 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/Shared/global.js.map
0 → 100644
1 | +{"version":3,"file":"global.js","sourceRoot":"","sources":["../../../../../src/app/Shared/global.ts"],"names":[],"mappings":";;AAAA;IAME;QALA,oBAAe,GAAW,EAAE,CAAC;QAC7B,YAAO,GAAW,EAAE,CAAC;QACrB,WAAM,GAAW,CAAC,CAAC;QACnB,aAAQ,GAAW,CAAC,CAAC;QACrB,gBAAW,GAAW,CAAC,CAAC;QAEtB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC;QACxC,IAAI,CAAC,eAAe,GAAG,+BAA+B,CAAC;IACzD,CAAC;IACH,oBAAC;AAAD,CAAC,AAVD,IAUC;AAVY,sCAAa"} | |
0 | 2 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/app.component.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 | +Object.defineProperty(exports, "__esModule", { value: true }); | |
12 | +var core_1 = require("@angular/core"); | |
13 | +var user_service_1 = require("./components/UserEntity/user.service"); | |
14 | +var managediscountcode_service_1 = require("./components/ManageDiscountCode/managediscountcode.service"); | |
15 | +var AppComponent = /** @class */ (function () { | |
16 | + function AppComponent(userservice) { | |
17 | + this.userservice = userservice; | |
18 | + } | |
19 | + AppComponent.prototype.ngOnInit = function () { }; | |
20 | + AppComponent = __decorate([ | |
21 | + core_1.Component({ | |
22 | + selector: 'app-component', | |
23 | + templateUrl: '../app/app.component.html', | |
24 | + providers: [user_service_1.UserService, managediscountcode_service_1.ManageDiscountCodeService] | |
25 | + }), | |
26 | + __metadata("design:paramtypes", [user_service_1.UserService]) | |
27 | + ], AppComponent); | |
28 | + return AppComponent; | |
29 | +}()); | |
30 | +exports.AppComponent = AppComponent; | |
31 | +//# sourceMappingURL=app.component.js.map | |
0 | 32 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/app.component.js.map
0 → 100644
1 | +{"version":3,"file":"app.component.js","sourceRoot":"","sources":["../../../../src/app/app.component.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAAkD;AAClD,qEAAmE;AACnE,yGAAuG;AAOvG;IAEE,sBAAoB,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;IAAI,CAAC;IAEjD,+BAAQ,GAAR,cAAmB,CAAC;IAJT,YAAY;QANxB,gBAAS,CAAC;YACT,QAAQ,EAAE,eAAe;YACzB,WAAW,EAAE,2BAA2B;YACxC,SAAS,EAAE,CAAC,0BAAW,EAAE,sDAAyB,CAAC;SACpD,CAAC;yCAIiC,0BAAW;OAFjC,YAAY,CAMxB;IAAD,mBAAC;CAAA,AAND,IAMC;AANY,oCAAY"} | |
0 | 2 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/app.component.spec.js
0 → 100644
1 | +"use strict"; | |
2 | +Object.defineProperty(exports, "__esModule", { value: true }); | |
3 | +var testing_1 = require("@angular/core/testing"); | |
4 | +var app_component_1 = require("./app.component"); | |
5 | +describe('AppComponent', function () { | |
6 | + beforeEach(testing_1.async(function () { | |
7 | + testing_1.TestBed.configureTestingModule({ | |
8 | + declarations: [ | |
9 | + app_component_1.AppComponent | |
10 | + ], | |
11 | + }).compileComponents(); | |
12 | + })); | |
13 | + it('should create the app', testing_1.async(function () { | |
14 | + var fixture = testing_1.TestBed.createComponent(app_component_1.AppComponent); | |
15 | + var app = fixture.debugElement.componentInstance; | |
16 | + expect(app).toBeTruthy(); | |
17 | + })); | |
18 | + it("should have as title 'app'", testing_1.async(function () { | |
19 | + var fixture = testing_1.TestBed.createComponent(app_component_1.AppComponent); | |
20 | + var app = fixture.debugElement.componentInstance; | |
21 | + expect(app.title).toEqual('app'); | |
22 | + })); | |
23 | + it('should render title in a h1 tag', testing_1.async(function () { | |
24 | + var fixture = testing_1.TestBed.createComponent(app_component_1.AppComponent); | |
25 | + fixture.detectChanges(); | |
26 | + var compiled = fixture.debugElement.nativeElement; | |
27 | + expect(compiled.querySelector('h1').textContent).toContain('Welcome to app!'); | |
28 | + })); | |
29 | +}); | |
30 | +//# sourceMappingURL=app.component.spec.js.map | |
0 | 31 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/app.component.spec.js.map
0 → 100644
1 | +{"version":3,"file":"app.component.spec.js","sourceRoot":"","sources":["../../../../src/app/app.component.spec.ts"],"names":[],"mappings":";;AAAA,iDAAuD;AAEvD,iDAA+C;AAE/C,QAAQ,CAAC,cAAc,EAAE;IACvB,UAAU,CAAC,eAAK,CAAC;QACf,iBAAO,CAAC,sBAAsB,CAAC;YAC7B,YAAY,EAAE;gBACZ,4BAAY;aACb;SACF,CAAC,CAAC,iBAAiB,EAAE,CAAC;IACzB,CAAC,CAAC,CAAC,CAAC;IAEJ,EAAE,CAAC,uBAAuB,EAAE,eAAK,CAAC;QAChC,IAAM,OAAO,GAAG,iBAAO,CAAC,eAAe,CAAC,4BAAY,CAAC,CAAC;QACtD,IAAM,GAAG,GAAG,OAAO,CAAC,YAAY,CAAC,iBAAiB,CAAC;QACnD,MAAM,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,CAAC;IAC3B,CAAC,CAAC,CAAC,CAAC;IAEJ,EAAE,CAAC,4BAA4B,EAAE,eAAK,CAAC;QACrC,IAAM,OAAO,GAAG,iBAAO,CAAC,eAAe,CAAC,4BAAY,CAAC,CAAC;QACtD,IAAM,GAAG,GAAG,OAAO,CAAC,YAAY,CAAC,iBAAiB,CAAC;QACnD,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC,CAAC;IAEJ,EAAE,CAAC,iCAAiC,EAAE,eAAK,CAAC;QAC1C,IAAM,OAAO,GAAG,iBAAO,CAAC,eAAe,CAAC,4BAAY,CAAC,CAAC;QACtD,OAAO,CAAC,aAAa,EAAE,CAAC;QACxB,IAAM,QAAQ,GAAG,OAAO,CAAC,YAAY,CAAC,aAAa,CAAC;QACpD,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;IAChF,CAAC,CAAC,CAAC,CAAC;AACN,CAAC,CAAC,CAAC"} | |
0 | 2 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/app.module.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 | +Object.defineProperty(exports, "__esModule", { value: true }); | |
9 | +var forms_1 = require("@angular/forms"); | |
10 | +var platform_browser_1 = require("@angular/platform-browser"); | |
11 | +var core_1 = require("@angular/core"); | |
12 | +var http_1 = require("@angular/common/http"); | |
13 | +var common_1 = require("@angular/common"); | |
14 | +var http_2 = require("@angular/http"); | |
15 | +var ng2_bs3_modal_1 = require("ng2-bs3-modal/ng2-bs3-modal"); | |
16 | +//import { ModalModule } from 'ngx-bootstrap/modal'; | |
17 | +var updateuserprofile_component_1 = require("./components/UserEntity/updateuserprofile.component"); | |
18 | +var changeuserpassword_component_1 = require("./components/UserEntity/changeuserpassword.component"); | |
19 | +var changeuserid_component_1 = require("./components/UserEntity/changeuserid.component"); | |
20 | +var users_component_1 = require("./components/UserEntity/users.component"); | |
21 | +var managediscountcode_component_1 = require("./components/ManageDiscountCode/managediscountcode.component"); | |
22 | +var app_component_1 = require("./app.component"); | |
23 | +var app_routing_module_1 = require("./app.routing.module"); | |
24 | +//import { AuthGuard } from '../app/authguard.service'; | |
25 | +//import { AuthService } from '../app/auth.service'; | |
26 | +//import { MyInterceptor } from '../app/token.interceptor'; | |
27 | +var global_1 = require("./Shared/global"); | |
28 | +var confirm_service_1 = require("./Shared/Confirm/confirm.service"); | |
29 | +var confirm_component_1 = require("./Shared/Confirm/confirm.component"); | |
30 | +var AppModule = /** @class */ (function () { | |
31 | + function AppModule() { | |
32 | + } | |
33 | + AppModule = __decorate([ | |
34 | + core_1.NgModule({ | |
35 | + declarations: [ | |
36 | + changeuserpassword_component_1.ChangeUserPassword, changeuserid_component_1.ChangeUserID, | |
37 | + updateuserprofile_component_1.UpdateUserProfile, users_component_1.UsersList, | |
38 | + managediscountcode_component_1.ManageDiscountCode, | |
39 | + app_component_1.AppComponent, confirm_component_1.ConfirmComponent | |
40 | + ], | |
41 | + imports: [ | |
42 | + platform_browser_1.BrowserModule, app_routing_module_1.AppRoutingModule, http_1.HttpClientModule, forms_1.FormsModule, forms_1.ReactiveFormsModule, http_2.HttpModule, ng2_bs3_modal_1.Ng2Bs3ModalModule //ModalModule.forRoot() | |
43 | + ], | |
44 | + providers: [global_1.GlobalService, confirm_service_1.ConfirmService, | |
45 | + //AuthService, | |
46 | + //AuthGuard, | |
47 | + //{ | |
48 | + // provide: HTTP_INTERCEPTORS, | |
49 | + // useClass: MyInterceptor, | |
50 | + // multi: true | |
51 | + //} | |
52 | + { provide: common_1.APP_BASE_HREF, useValue: '/' } | |
53 | + ], | |
54 | + bootstrap: [app_component_1.AppComponent] | |
55 | + }) | |
56 | + ], AppModule); | |
57 | + return AppModule; | |
58 | +}()); | |
59 | +exports.AppModule = AppModule; | |
60 | +//# sourceMappingURL=app.module.js.map | |
0 | 61 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/app.module.js.map
0 → 100644
1 | +{"version":3,"file":"app.module.js","sourceRoot":"","sources":["../../../../src/app/app.module.ts"],"names":[],"mappings":";;;;;;;;AAEA,wCAAkE;AAClE,8DAA0D;AAC1D,sCAAyC;AAEzC,6CAA2E;AAC3E,0CAAgD;AAChD,sCAA2C;AAC3C,6DAAgE;AAEhE,oDAAoD;AACpD,mGAAwF;AACxF,qGAA0F;AAC1F,yFAA8E;AAC9E,2EAAoE;AACpE,6GAAkG;AAClG,iDAA+C;AAC/C,2DAAwD;AACxD,uDAAuD;AACvD,oDAAoD;AACpD,2DAA2D;AAC3D,0CAAgD;AAChD,oEAAkE;AAClE,wEAAqE;AAyBrE;IAAA;IAAyB,CAAC;IAAb,SAAS;QAxBrB,eAAQ,CAAC;YACR,YAAY,EAAE;gBACZ,iDAAkB,EAAE,qCAAY;gBAChC,+CAAiB,EAAE,2BAAS;gBAC5B,iDAAkB;gBAClB,4BAAY,EAAE,oCAAgB;aAC/B;YACD,OAAO,EAAE;gBACP,gCAAa,EAAE,qCAAgB,EAAE,uBAAgB,EAAE,mBAAW,EAAE,2BAAmB,EAAE,iBAAU,EAAE,iCAAiB,CAAC,uBAAuB;aAC3I;YACD,SAAS,EAAE,CAAC,sBAAa,EAAE,gCAAc;gBACvC,cAAc;gBACd,YAAY;gBACZ,GAAG;gBACH,+BAA+B;gBAC/B,4BAA4B;gBAC5B,eAAe;gBACf,GAAG;gBACH,EAAE,OAAO,EAAE,sBAAa,EAAE,QAAQ,EAAE,GAAG,EAAE;aAE1C;YACD,SAAS,EAAE,CAAC,4BAAY,CAAC;SAC1B,CAAC;OAEW,SAAS,CAAI;IAAD,gBAAC;CAAA,AAA1B,IAA0B;AAAb,8BAAS"} | |
0 | 2 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/app.routing.module.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 | +Object.defineProperty(exports, "__esModule", { value: true }); | |
9 | +var core_1 = require("@angular/core"); | |
10 | +var router_1 = require("@angular/router"); | |
11 | +var updateuserprofile_component_1 = require("./components/UserEntity/updateuserprofile.component"); | |
12 | +var changeuserpassword_component_1 = require("./components/UserEntity/changeuserpassword.component"); | |
13 | +var changeuserid_component_1 = require("./components/UserEntity/changeuserid.component"); | |
14 | +var users_component_1 = require("./components/UserEntity/users.component"); | |
15 | +var managediscountcode_component_1 = require("./components/ManageDiscountCode/managediscountcode.component"); | |
16 | +//import { AuthGuard } from './authguard.service'; | |
17 | +var appRoutes = [ | |
18 | + //{ path: '', redirectTo:'updateuserprofile',pathMatch } | |
19 | + { path: 'updateuserprofile', component: updateuserprofile_component_1.UpdateUserProfile }, | |
20 | + { path: 'changeuserpassword', component: changeuserpassword_component_1.ChangeUserPassword }, | |
21 | + { path: 'changeuserid', component: changeuserid_component_1.ChangeUserID }, | |
22 | + { path: 'users', component: users_component_1.UsersList }, | |
23 | + { path: 'managediscountcode', component: managediscountcode_component_1.ManageDiscountCode }, | |
24 | +]; | |
25 | +var AppRoutingModule = /** @class */ (function () { | |
26 | + function AppRoutingModule() { | |
27 | + } | |
28 | + AppRoutingModule = __decorate([ | |
29 | + core_1.NgModule({ | |
30 | + imports: [ | |
31 | + router_1.RouterModule.forRoot(appRoutes, { enableTracing: true }) // <-- debugging purposes only | |
32 | + ], | |
33 | + exports: [ | |
34 | + router_1.RouterModule | |
35 | + ] | |
36 | + }) | |
37 | + ], AppRoutingModule); | |
38 | + return AppRoutingModule; | |
39 | +}()); | |
40 | +exports.AppRoutingModule = AppRoutingModule; | |
41 | +//# sourceMappingURL=app.routing.module.js.map | |
0 | 42 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/app.routing.module.js.map
0 → 100644
1 | +{"version":3,"file":"app.routing.module.js","sourceRoot":"","sources":["../../../../src/app/app.routing.module.ts"],"names":[],"mappings":";;;;;;;;AAAA,sCAAyC;AACzC,0CAAuD;AACvD,mGAAwF;AACxF,qGAA0F;AAC1F,yFAA8E;AAC9E,2EAAoE;AACpE,6GAAkG;AAClG,kDAAkD;AAElD,IAAM,SAAS,GAAW;IACxB,yDAAyD;IACzD,EAAE,IAAI,EAAE,mBAAmB,EAAE,SAAS,EAAE,+CAAiB,EAAE;IAC3D,EAAE,IAAI,EAAE,oBAAoB,EAAE,SAAS,EAAE,iDAAkB,EAAE;IAC7D,EAAE,IAAI,EAAE,cAAc,EAAE,SAAS,EAAE,qCAAY,EAAE;IACjD,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,2BAAS,EAAE;IACvC,EAAE,IAAI,EAAE,oBAAoB,EAAE,SAAS,EAAE,iDAAkB,EAAE;CAC9D,CAAC;AAWF;IAAA;IAAgC,CAAC;IAApB,gBAAgB;QAT5B,eAAQ,CAAC;YACR,OAAO,EAAE;gBACP,qBAAY,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC,8BAA8B;aACxF;YACD,OAAO,EAAE;gBACP,qBAAY;aACb;SACF,CAAC;OAEW,gBAAgB,CAAI;IAAD,uBAAC;CAAA,AAAjC,IAAiC;AAApB,4CAAgB"} | |
0 | 2 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/components/ChangePassword/changeuserpassword.component.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 | +Object.defineProperty(exports, "__esModule", { value: true }); | |
12 | +var core_1 = require("@angular/core"); | |
13 | +var changeuserpassword_service_1 = require("./changeuserpassword.service"); | |
14 | +var router_1 = require("@angular/router"); | |
15 | +var forms_1 = require("@angular/forms"); | |
16 | +var datamodel_1 = require("../UpdateProfile/datamodel"); | |
17 | +//import { Global } from '../../Shared/global'; | |
18 | +//import { DBOperation } from 'S'; | |
19 | +//import { Observable } from 'rxjs/Observable'; | |
20 | +var ChangeUserPassword = /** @class */ (function () { | |
21 | + function ChangeUserPassword(changeUserPasswordService, router, fb) { | |
22 | + this.changeUserPasswordService = changeUserPasswordService; | |
23 | + this.router = router; | |
24 | + this.fb = fb; | |
25 | + } | |
26 | + ChangeUserPassword.prototype.ngOnInit = function () { | |
27 | + this.user = new datamodel_1.User(); | |
28 | + this.alerts = ''; | |
29 | + this.changeUserPasswordFrm = this.fb.group({ | |
30 | + loginId: ['', forms_1.Validators.required], | |
31 | + oldPassword: ['', forms_1.Validators.required], | |
32 | + newPassword: ['', [forms_1.Validators.required, forms_1.Validators.minLength(8)]], | |
33 | + confirmPassword: ['', forms_1.Validators.required] | |
34 | + }); | |
35 | + this.GetUserById(); | |
36 | + }; | |
37 | + ChangeUserPassword.prototype.GetUserById = function () { | |
38 | + var _this = this; | |
39 | + this.changeUserPasswordService.GetUserById() | |
40 | + .subscribe(function (x) { _this.BindFormFields(x); }, function (error) { return _this.error = error; }); | |
41 | + }; | |
42 | + ChangeUserPassword.prototype.onFormSubmit = function () { | |
43 | + var _this = this; | |
44 | + if (this.user.Password != this.changeUserPasswordFrm.value.oldPassword) { | |
45 | + this.alerts = '<span>Old password is invalid</span>'; | |
46 | + } | |
47 | + if (this.changeUserPasswordFrm.value.newPassword != this.changeUserPasswordFrm.value.confirmPassword) { | |
48 | + this.alerts += '</br><span>New password and confirm password must be same</span>'; | |
49 | + } | |
50 | + if (this.alerts != '') { | |
51 | + this.user = this.changeUserPasswordFrm.value; | |
52 | + var obj = this.user; | |
53 | + return this.changeUserPasswordService.ChangeUserPassword(obj) | |
54 | + .subscribe(function (n) { return (_this.AfterInsertData(n)); }, function (error) { return _this.error = error; }); | |
55 | + } | |
56 | + }; | |
57 | + ChangeUserPassword.prototype.AfterInsertData = function (data) { | |
58 | + if (data.Status == "false") { | |
59 | + this.alerts = "<span>Password change unsuccessfull</span>"; | |
60 | + } | |
61 | + else { | |
62 | + this.alerts = "<span>Password changed successfully</span>"; | |
63 | + } | |
64 | + }; | |
65 | + ChangeUserPassword.prototype.BindFormFields = function (data) { | |
66 | + this.user = data[0]; | |
67 | + this.changeUserPasswordFrm.controls['loginId'].setValue(this.user.LoginId); | |
68 | + }; | |
69 | + ChangeUserPassword.prototype.ResetFormFields = function () { | |
70 | + this.changeUserPasswordFrm.reset(); | |
71 | + this.changeUserPasswordFrm.controls['loginId'].setValue(this.user.LoginId); | |
72 | + this.changeUserPasswordFrm.controls['oldPassword'].setValue(''); | |
73 | + this.changeUserPasswordFrm.controls['newPassword'].setValue(''); | |
74 | + this.changeUserPasswordFrm.controls['confirmPassword'].setValue(''); | |
75 | + this.alerts = ''; | |
76 | + }; | |
77 | + ChangeUserPassword = __decorate([ | |
78 | + core_1.Component({ | |
79 | + templateUrl: './changeuserpassword.component.html' | |
80 | + }), | |
81 | + __metadata("design:paramtypes", [changeuserpassword_service_1.ChangeUserPasswordService, router_1.Router, forms_1.FormBuilder]) | |
82 | + ], ChangeUserPassword); | |
83 | + return ChangeUserPassword; | |
84 | +}()); | |
85 | +exports.ChangeUserPassword = ChangeUserPassword; | |
86 | +//# sourceMappingURL=changeuserpassword.component.js.map | |
0 | 87 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/components/ChangePassword/changeuserpassword.component.js.map
0 → 100644
1 | +{"version":3,"file":"changeuserpassword.component.js","sourceRoot":"","sources":["../../../../../../src/app/components/ChangePassword/changeuserpassword.component.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAAiE;AACjE,2EAAyE;AACzE,0CAAyC;AACzC,wCAAiF;AACjF,wDAAkD;AAElD,+CAA+C;AAC/C,kCAAkC;AAClC,+CAA+C;AAM/C;IAOA,4BAAoB,yBAAoD,EAAU,MAAc,EAAU,EAAe;QAArG,8BAAyB,GAAzB,yBAAyB,CAA2B;QAAU,WAAM,GAAN,MAAM,CAAQ;QAAU,OAAE,GAAF,EAAE,CAAa;IAAI,CAAC;IAE1H,qCAAQ,GAAR;QACI,IAAI,CAAC,IAAI,GAAG,IAAI,gBAAI,EAAE,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;QACjB,IAAI,CAAC,qBAAqB,GAAG,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC;YACvC,OAAO,EAAE,CAAC,EAAE,EAAE,kBAAU,CAAC,QAAQ,CAAC;YAClC,WAAW,EAAE,CAAC,EAAE,EAAE,kBAAU,CAAC,QAAQ,CAAC;YACtC,WAAW,EAAE,CAAC,EAAE,EAAE,CAAC,kBAAU,CAAC,QAAQ,EAAE,kBAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;YACjE,eAAe,EAAE,CAAC,EAAE,EAAE,kBAAU,CAAC,QAAQ,CAAC;SAC7C,CAAC,CAAC;QACH,IAAI,CAAC,WAAW,EAAE,CAAC;IACvB,CAAC;IAED,wCAAW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CAAC,CAAC;YACzB,IAAI,CAAC,MAAM,GAAG,4CAA4C,CAAC;QAC/D,CAAC;QAAC,IAAI,CAAC,CAAC;YACJ,IAAI,CAAC,MAAM,GAAG,4CAA4C,CAAC;QAC/D,CAAC;IACL,CAAC;IAED,2CAAc,GAAd,UAAe,IAAI;QACf,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;QACpB,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC/E,CAAC;IAED,4CAAe,GAAf;QACI,IAAI,CAAC,qBAAqB,CAAC,KAAK,EAAE,CAAA;QAClC,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC3E,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QAChE,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QAChE,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QACpE,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;IACrB,CAAC;IA/DQ,kBAAkB;QAJ9B,gBAAS,CAAC;YACP,WAAW,EAAE,qCAAqC;SACrD,CAAC;yCAS6C,sDAAyB,EAAkB,eAAM,EAAc,mBAAW;OAP5G,kBAAkB,CAiE9B;IAAD,yBAAC;CAAA,AAjED,IAiEC;AAjEY,gDAAkB"} | |
0 | 2 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/components/ChangePassword/changeuserpassword.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 | +Object.defineProperty(exports, "__esModule", { value: true }); | |
12 | +var core_1 = require("@angular/core"); | |
13 | +//import { HttpClient, HttpParams, HttpRequest} from "@angular/common/http"; | |
14 | +var http_1 = require("@angular/http"); | |
15 | +require("rxjs/add/operator/map"); | |
16 | +require("rxjs/add/operator/catch"); | |
17 | +require("rxjs/add/observable/throw"); | |
18 | +require("rxjs/add/operator/do"); | |
19 | +var Observable_1 = require("rxjs/Observable"); | |
20 | +var global_1 = require("../../Shared/global"); | |
21 | +var ChangeUserPasswordService = /** @class */ (function () { | |
22 | + function ChangeUserPasswordService(http, commonService) { | |
23 | + this.http = http; | |
24 | + this.commonService = commonService; | |
25 | + } | |
26 | + //public GetUserById(Id: any): Observable<User> { | |
27 | + // return this.http.request<User>( | |
28 | + // 'GET', | |
29 | + // 'http://192.168.86.13:92/API/Api/Users/' + Id); | |
30 | + //} | |
31 | + //GetUserByLoginIdPassword(LoginId: string, Password: string): Observable<User> { | |
32 | + // return this.http.request<User>( | |
33 | + // 'GET', | |
34 | + // 'http://192.168.86.13:92/API/Api/Users/{LoginId=' + LoginId + '&Password=' + Password + '}'); | |
35 | + //} | |
36 | + //UpdateProfile(UserObj: User): Observable<any> { | |
37 | + // return this.http.request<any>( | |
38 | + // 'POST', | |
39 | + // 'http://192.168.86.13:92/API/Api/Users/UpdateProfile', | |
40 | + // { | |
41 | + // body: UserObj | |
42 | + // }); | |
43 | + //} | |
44 | + ChangeUserPasswordService.prototype.GetUserById = function () { | |
45 | + var _this = this; | |
46 | + return this.http.get(this.commonService.resourceBaseUrl + "/api/GetUserProfile/1") | |
47 | + .map(this.extractData) | |
48 | + .catch(function (res) { return _this.handleError(res); }); | |
49 | + ; | |
50 | + }; | |
51 | + ChangeUserPasswordService.prototype.ChangeUserPassword = function (obj) { | |
52 | + var _this = this; | |
53 | + //let options = new RequestOptions({ headers: this.headers }); | |
54 | + return this.http.post(this.commonService.resourceBaseUrl + "/api/ChangeUserPassword", obj) | |
55 | + .map(this.extractData) | |
56 | + .catch(function (res) { return _this.handleError(res); }); | |
57 | + }; | |
58 | + ChangeUserPasswordService.prototype.extractData = function (res) { | |
59 | + //debugger; | |
60 | + var body = res.json(); | |
61 | + return body; | |
62 | + }; | |
63 | + ChangeUserPasswordService.prototype.handleError = function (error) { | |
64 | + // In a real world app, we might use a remote logging infrastructure | |
65 | + // We'd also dig deeper into the error to get a better message | |
66 | + var errMsg = (error.message) ? error.message : | |
67 | + error.status ? error.status + " - " + error.statusText : 'Server error'; | |
68 | + console.error(errMsg); // log to console instead | |
69 | + return Observable_1.Observable.throw(errMsg); | |
70 | + }; | |
71 | + ChangeUserPasswordService = __decorate([ | |
72 | + core_1.Injectable(), | |
73 | + __metadata("design:paramtypes", [http_1.Http, global_1.GlobalService]) | |
74 | + ], ChangeUserPasswordService); | |
75 | + return ChangeUserPasswordService; | |
76 | +}()); | |
77 | +exports.ChangeUserPasswordService = ChangeUserPasswordService; | |
78 | +//# sourceMappingURL=changeuserpassword.service.js.map | |
0 | 79 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/components/ChangePassword/changeuserpassword.service.js.map
0 → 100644
1 | +{"version":3,"file":"changeuserpassword.service.js","sourceRoot":"","sources":["../../../../../../src/app/components/ChangePassword/changeuserpassword.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G,GAAG,CAAC,IAAI,EAAE,CAAC;QACtB,MAAM,CAAC,IAAI,CAAC;IACd,CAAC;IAED,+CAAW,GAAX,UAAY,KAAU;QACpB,oEAAoE;QACpE,8DAA8D;QAC9D,IAAI,MAAM,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YAC5C,KAAK,CAAC,MAAM,CAAC,CAAC,CAAI,KAAK,CAAC,MAAM,WAAM,KAAK,CAAC,UAAY,CAAC,CAAC,CAAC,cAAc,CAAC;QAC1E,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,yBAAyB;QAChD,MAAM,CAAC,uBAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAClC,CAAC;IAnDU,yBAAyB;QADrC,iBAAU,EAAE;yCAGe,WAAI,EAAyB,sBAAa;OAFzD,yBAAyB,CAiErC;IAAD,gCAAC;CAAA,AAjED,IAiEC;AAjEY,8DAAyB"} | |
0 | 2 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/components/ChangeUserID/UserInfo.js
0 → 100644
1 | +"use strict"; | |
2 | +Object.defineProperty(exports, "__esModule", { value: true }); | |
3 | +var UserInfo = /** @class */ (function () { | |
4 | + function UserInfo() { | |
5 | + } | |
6 | + return UserInfo; | |
7 | +}()); | |
8 | +exports.UserInfo = UserInfo; | |
9 | +//# sourceMappingURL=UserInfo.js.map | |
0 | 10 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/components/ChangeUserID/UserInfo.js.map
0 → 100644
400-SOURCECODE/Admin/dist/out-tsc/src/app/components/ChangeUserID/changeuserid.component.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 | +Object.defineProperty(exports, "__esModule", { value: true }); | |
12 | +var core_1 = require("@angular/core"); | |
13 | +var user_service_1 = require("../UpdateProfile/user.service"); | |
14 | +var router_1 = require("@angular/router"); | |
15 | +var forms_1 = require("@angular/forms"); | |
16 | +var UserInfo_1 = require("../ChangeUserID/UserInfo"); | |
17 | +var http_1 = require("@angular/http"); | |
18 | +var confirm_service_1 = require("../../Shared/Confirm/confirm.service"); | |
19 | +require("rxjs/Rx"); | |
20 | +require("rxjs/add/operator/map"); | |
21 | +require("rxjs/add/operator/filter"); | |
22 | +var ChangeUserID = /** @class */ (function () { | |
23 | + //@ViewChild("profileModal") | |
24 | + //profileModal: ModalComponent; | |
25 | + //errorMessage: any; | |
26 | + function ChangeUserID(userservice, router, fb, http, _confirmService) { | |
27 | + this.userservice = userservice; | |
28 | + this.router = router; | |
29 | + this.fb = fb; | |
30 | + this.http = http; | |
31 | + this._confirmService = _confirmService; | |
32 | + this.UserId = 1; | |
33 | + this.baseUrl = "User"; | |
34 | + this.emailPattern = "^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$"; | |
35 | + //extractData(res: Response) { | |
36 | + // //debugger; | |
37 | + // let body = res.json(); | |
38 | + // return body; | |
39 | + //} | |
40 | + //handleError(error: any) { | |
41 | + // // In a real world app, we might use a remote logging infrastructure | |
42 | + // // We'd also dig deeper into the error to get a better message | |
43 | + // let errMsg = (error.message) ? error.message : | |
44 | + // error.status ? `${error.status} - ${error.statusText}` : 'Server error'; | |
45 | + // console.error(errMsg); // log to console instead | |
46 | + // return Observable.throw(errMsg); | |
47 | + //} | |
48 | + this.validationMessages = { | |
49 | + 'firstName': { | |
50 | + 'required': 'First name is required.' | |
51 | + }, | |
52 | + 'lastName': { | |
53 | + 'required': 'Last name is required.' | |
54 | + }, | |
55 | + 'email': { | |
56 | + 'required': 'Email is required.', | |
57 | + 'pattern': 'Email pattern is not valid.' | |
58 | + } | |
59 | + }; | |
60 | + } | |
61 | + ChangeUserID.prototype.ngOnInit = function () { | |
62 | + this.user = new UserInfo_1.UserInfo(); | |
63 | + this.alerts = ''; | |
64 | + //this.userservice.GetUserById(this.UserId); | |
65 | + this.ChangeUserIdFrm = this.fb.group({ | |
66 | + id: [''], | |
67 | + loginid: ['', forms_1.Validators.required], | |
68 | + newloginid: ['', forms_1.Validators.required], | |
69 | + confirmloginid: ['', forms_1.Validators.required] | |
70 | + // LastName: [''], | |
71 | + // Gender: ['', Validators.required], | |
72 | + // Email: [''] | |
73 | + }); | |
74 | + this.GetUserById(); | |
75 | + }; | |
76 | + //ngAfterviewint() { | |
77 | + // this.LoadUsers(); | |
78 | + //} | |
79 | + //getCustomerById(UserId) { | |
80 | + // return this.userservice.GetUserById(UserId) | |
81 | + // .map((response: Response) => response.json()) | |
82 | + // .catch(this._errorHandler) | |
83 | + //} | |
84 | + //formErrors = { | |
85 | + // 'firstName': '', | |
86 | + // 'lastName': '', | |
87 | + // 'email': '' | |
88 | + //}; | |
89 | + ChangeUserID.prototype.GetUserById = function () { | |
90 | + var _this = this; | |
91 | + this.userservice.GetUserById() | |
92 | + .subscribe(function (x) { console.log(x); _this.bindUsers(x); }, function (error) { return _this.error = error; }); | |
93 | + }; | |
94 | + ChangeUserID.prototype.UpdateUserProfile = function () { | |
95 | + var _this = this; | |
96 | + // debugger; | |
97 | + this.user = this.ChangeUserIdFrm.value; | |
98 | + //if(this.user.) | |
99 | + console.log(this.user); | |
100 | + var obj = this.user; | |
101 | + if (this.ChangeUserIdFrm.valid) { | |
102 | + return this.userservice.UpdateUserProfileById(obj) | |
103 | + .subscribe(function (n) { return (_this.AfterInsertData(n)); }, function (error) { return _this.error = error; }); | |
104 | + } | |
105 | + }; | |
106 | + ChangeUserID.prototype.AfterInsertData = function (data) { | |
107 | + //debugger; | |
108 | + if (data.Status == "False") { | |
109 | + // this._confirmService.activate(data.ResponseMessage, "alertMsg"); | |
110 | + //setTimeout(() => this.amCode.nativeElement.focus(), 0); | |
111 | + // this.closeflag = false; | |
112 | + return false; | |
113 | + } | |
114 | + else { | |
115 | + this.status = true; | |
116 | + debugger; | |
117 | + this._confirmService.activate("User Profile Updated Successfully.", "alertMsg"); | |
118 | + //this.profileModal.open(); | |
119 | + // this.submitted = false; | |
120 | + // this.GetAllAcctMgr(); | |
121 | + // this.DisableAllControls(); | |
122 | + // this.AccountManagerID.enable(); | |
123 | + // let accountManagerID: string = data.Id == null ? "" : data.Id.toString(); | |
124 | + // console.log(accountManagerID); | |
125 | + // this.GetAcctMgr(Number(accountManagerID)); | |
126 | + //this.GetAccountManagerListOptions(false); | |
127 | + // this.defautValue = data.id; | |
128 | + // this.BtnReset = true; | |
129 | + // this.BtnSave = true; | |
130 | + // this.BtnEdit = false; | |
131 | + // this.BtnNew = false; | |
132 | + // this.BtnDelete = false; | |
133 | + // this.Abbrevtion = this.Abbrev.value; | |
134 | + // setTimeout(() => this.AMform.controls["AccountManagerID"].setValue(accountManagerID.toString()), 1000); | |
135 | + // setTimeout(() => this.AMform.markAsPristine(), 2000); | |
136 | + } | |
137 | + //if (this.closeflag) { | |
138 | + // this.close.emit(null); | |
139 | + //} | |
140 | + //else { | |
141 | + //} | |
142 | + }; | |
143 | + ChangeUserID.prototype.bindUsers = function (data) { | |
144 | + debugger; | |
145 | + //console.log(data); | |
146 | + //alert(JSON.stringify(data)); | |
147 | + this.user = data[0]; | |
148 | + console.log(this.user); | |
149 | + this.ChangeUserIdFrm.controls['id'].setValue(this.user.Id); | |
150 | + this.ChangeUserIdFrm.controls['loginid'].setValue(this.user.LoginId); | |
151 | + this.ChangeUserIdFrm.controls['newloginid'].setValue(''); | |
152 | + this.ChangeUserIdFrm.controls['confirmloginid'].setValue(''); | |
153 | + // this.GetClientListOptions(false); | |
154 | + // this.GetCrossRefClientListOptions(false); | |
155 | + }; | |
156 | + ChangeUserID = __decorate([ | |
157 | + core_1.Component({ | |
158 | + templateUrl: './changeuserid.component.html' // '../../../../../wwwroot/html/UpdateProfile/updateuserprofile.component.html' | |
159 | + }), | |
160 | + __metadata("design:paramtypes", [user_service_1.UserService, router_1.Router, forms_1.FormBuilder, http_1.Http, | |
161 | + confirm_service_1.ConfirmService]) | |
162 | + ], ChangeUserID); | |
163 | + return ChangeUserID; | |
164 | +}()); | |
165 | +exports.ChangeUserID = ChangeUserID; | |
166 | +//# sourceMappingURL=changeuserid.component.js.map | |
0 | 167 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/components/ChangeUserID/changeuserid.component.js.map
0 → 100644
1 | +{"version":3,"file":"changeuserid.component.js","sourceRoot":"","sources":["../../../../../../src/app/components/ChangeUserID/changeuserid.component.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAA2E;AAE3E,8DAA4D;AAC5D,0CAAyC;AACzC,wCAAiF;AAEjF,qDAAoD;AACpD,sCAA+C;AAI/C,wEAAsE;AACtE,mBAAiB;AACjB,iCAA+B;AAC/B,oCAAkC;AAOlC;IAgBE,4BAA4B;IAC5B,+BAA+B;IAC/B,oBAAoB;IACpB,sBAAoB,WAAwB,EAAU,MAAc,EAAU,EAAe,EAAU,IAAU,EACvG,eAA+B;QADrB,gBAAW,GAAX,WAAW,CAAa;QAAU,WAAM,GAAN,MAAM,CAAQ;QAAU,OAAE,GAAF,EAAE,CAAa;QAAU,SAAI,GAAJ,IAAI,CAAM;QACvG,oBAAe,GAAf,eAAe,CAAgB;QAnBzC,WAAM,GAAS,CAAC,CAAC;QAQjB,YAAO,GAAW,MAAM,CAAC;QAMzB,iB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| ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/components/ChangeUserID/changeuserid.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 | +Object.defineProperty(exports, "__esModule", { value: true }); | |
12 | +var core_1 = require("@angular/core"); | |
13 | +//import { HttpClient, HttpParams, HttpRequest} from "@angular/common/http"; | |
14 | +var http_1 = require("@angular/http"); | |
15 | +require("rxjs/add/operator/map"); | |
16 | +require("rxjs/add/operator/catch"); | |
17 | +require("rxjs/add/observable/throw"); | |
18 | +require("rxjs/add/operator/do"); | |
19 | +var Observable_1 = require("rxjs/Observable"); | |
20 | +var global_1 = require("../../Shared/global"); | |
21 | +var ChangeUserIDService = /** @class */ (function () { | |
22 | + function ChangeUserIDService(http, commonService) { | |
23 | + this.http = http; | |
24 | + this.commonService = commonService; | |
25 | + } | |
26 | + ChangeUserIDService.prototype.GetUserById = function () { | |
27 | + var _this = this; | |
28 | + return this.http.get(this.commonService.resourceBaseUrl + "/api/GetUserProfile/1") | |
29 | + .map(this.extractData) | |
30 | + .catch(function (res) { return _this.handleError(res); }); | |
31 | + ; | |
32 | + }; | |
33 | + ChangeUserIDService.prototype.UpdateUserProfileById = function (obj) { | |
34 | + var _this = this; | |
35 | + //let options = new RequestOptions({ headers: this.headers }); | |
36 | + return this.http.post(this.commonService.resourceBaseUrl + "/api/UpdateProfile", obj) | |
37 | + .map(this.extractData) | |
38 | + .catch(function (res) { return _this.handleError(res); }); | |
39 | + }; | |
40 | + ChangeUserIDService.prototype.extractData = function (res) { | |
41 | + //debugger; | |
42 | + var body = res.json(); | |
43 | + return body; | |
44 | + }; | |
45 | + ChangeUserIDService.prototype.handleError = function (error) { | |
46 | + // In a real world app, we might use a remote logging infrastructure | |
47 | + // We'd also dig deeper into the error to get a better message | |
48 | + var errMsg = (error.message) ? error.message : | |
49 | + error.status ? error.status + " - " + error.statusText : 'Server error'; | |
50 | + console.error(errMsg); // log to console instead | |
51 | + return Observable_1.Observable.throw(errMsg); | |
52 | + }; | |
53 | + ChangeUserIDService = __decorate([ | |
54 | + core_1.Injectable(), | |
55 | + __metadata("design:paramtypes", [http_1.Http, global_1.GlobalService]) | |
56 | + ], ChangeUserIDService); | |
57 | + return ChangeUserIDService; | |
58 | +}()); | |
59 | +exports.ChangeUserIDService = ChangeUserIDService; | |
60 | +//# sourceMappingURL=changeuserid.service.js.map | |
0 | 61 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/components/ChangeUserID/changeuserid.service.js.map
0 → 100644
1 | +{"version":3,"file":"changeuserid.service.js","sourceRoot":"","sources":["../../../../../../src/app/components/ChangeUserID/changeuserid.service.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAAmD;AACnD,4EAA4E;AAC5E,sCAAoF;AACpF,iCAA+B;AAC/B,mCAAiC;AACjC,qCAAmC;AAEnC,gCAA8B;AAC9B,8CAA6C;AAC7C,8CAAoD;AAEpD;IAEE,6BAAoB,IAAU,EAAU,aAA4B;QAAhD,SAAI,GAAJ,IAAI,CAAM;QAAU,kBAAa,GAAb,aAAa,CAAe;IAAK,CAAC;IAE1E,yCAAW,GAAX;QAAA,iBAMC;QAJC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,aAAa,CAA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0 | 2 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/components/ManageDiscountCode/managediscountcode.component.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 | +Object.defineProperty(exports, "__esModule", { value: true }); | |
12 | +var core_1 = require("@angular/core"); | |
13 | +var managediscountcode_service_1 = require("./managediscountcode.service"); | |
14 | +var router_1 = require("@angular/router"); | |
15 | +var forms_1 = require("@angular/forms"); | |
16 | +var datamodel_1 = require("../UserEntity/datamodel"); | |
17 | +//import { Global } from '../../Shared/global'; | |
18 | +//import { DBOperation } from 'S'; | |
19 | +//import { Observable } from 'rxjs/Observable'; | |
20 | +var ManageDiscountCode = /** @class */ (function () { | |
21 | + function ManageDiscountCode(manageDiscountCodeService, router, fb) { | |
22 | + this.manageDiscountCodeService = manageDiscountCodeService; | |
23 | + this.router = router; | |
24 | + this.fb = fb; | |
25 | + this.Mode = 'Manage'; | |
26 | + this.divClass = ''; | |
27 | + this.topPos = '2000px'; | |
28 | + this.bsValue = new Date(); | |
29 | + } | |
30 | + ManageDiscountCode.prototype.ngOnInit = function () { | |
31 | + this.divClass = 'col-sm-12'; | |
32 | + this.discountCode = new datamodel_1.DiscountCode(); | |
33 | + this.alerts = ''; | |
34 | + this.manageDiscountCodeFrm = this.fb.group({ | |
35 | + searchDiscountCode: [''], | |
36 | + searchStartDate: [''], | |
37 | + searchEndDate: [''], | |
38 | + discountCodes: this.fb.array([]) | |
39 | + }); | |
40 | + this.insertUpdateDiscountCodeFrm = this.fb.group({ | |
41 | + discountId: [''], | |
42 | + discountCode: ['', forms_1.Validators.required], | |
43 | + startDate: ['', forms_1.Validators.required], | |
44 | + endDate: ['', forms_1.Validators.required], | |
45 | + percentage: ['', forms_1.Validators.required], | |
46 | + isActive: [''] | |
47 | + }); | |
48 | + this.SearchDiscountCodes(); | |
49 | + }; | |
50 | + ManageDiscountCode.prototype.SearchDiscountCodes = function () { | |
51 | + var _this = this; | |
52 | + console.log(this.manageDiscountCodeFrm.controls['searchDiscountCode'].value + ', ' + | |
53 | + this.manageDiscountCodeFrm.controls['searchStartDate'].value + ', ' + | |
54 | + this.manageDiscountCodeFrm.controls['searchEndDate'].value); | |
55 | + this.manageDiscountCodeService.GetDiscountCodes({ | |
56 | + discountCode: this.manageDiscountCodeFrm.controls['searchDiscountCode'].value, | |
57 | + startDate: this.manageDiscountCodeFrm.controls['searchStartDate'].value, | |
58 | + endDate: this.manageDiscountCodeFrm.controls['searchEndDate'].value | |
59 | + }) | |
60 | + .subscribe(function (x) { _this.BindFormFields(x); }, function (error) { return _this.error = error; }); | |
61 | + }; | |
62 | + ManageDiscountCode.prototype.InsertUpdateDiscountCode = function () { | |
63 | + var _this = this; | |
64 | + console.log('InsertUpdateDiscountCode'); | |
65 | + this.alerts = ''; | |
66 | + if (this.alerts == '') { | |
67 | + var obj = this.insertUpdateDiscountCodeFrm.value; | |
68 | + return this.manageDiscountCodeService.InsertDiscountCode(obj) | |
69 | + .subscribe(function (n) { return (_this.AfterInsertData(n)); }, function (error) { return _this.error = error; }); | |
70 | + } | |
71 | + }; | |
72 | + ManageDiscountCode.prototype.AfterInsertData = function (data) { | |
73 | + if (data.Status == "false") { | |
74 | + this.alerts = "<span>Password change unsuccessfully</span>"; | |
75 | + } | |
76 | + else { | |
77 | + this.alerts = "<span>Password changed successfully</span>"; | |
78 | + } | |
79 | + }; | |
80 | + ManageDiscountCode.prototype.BindFormFields = function (data) { | |
81 | + this.discountCodes = data; | |
82 | + this.manageDiscountCodeFrm.setControl('discountCodes', this.fb.array(this.discountCodes)); | |
83 | + }; | |
84 | + ManageDiscountCode.prototype.ResetFormFields = function () { | |
85 | + this.manageDiscountCodeFrm.reset(); | |
86 | + //this.manageDiscountCodeFrm.controls['loginId'].setValue(this.user.LoginId); | |
87 | + //this.manageDiscountCodeFrm.controls['oldPassword'].setValue(''); | |
88 | + //this.manageDiscountCodeFrm.controls['newPassword'].setValue(''); | |
89 | + //this.manageDiscountCodeFrm.controls['confirmPassword'].setValue(''); | |
90 | + this.alerts = ''; | |
91 | + }; | |
92 | + ManageDiscountCode.prototype.AddDiscountCode = function () { | |
93 | + this.Mode = 'Add'; | |
94 | + this.topPos = '100px'; | |
95 | + this.divClass = 'col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2 col-lg-6 col-lg-offset-3'; | |
96 | + }; | |
97 | + ManageDiscountCode.prototype.EditDiscountCode = function () { | |
98 | + this.Mode = 'Edit'; | |
99 | + this.topPos = '100px'; | |
100 | + this.divClass = 'col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2 col-lg-6 col-lg-offset-3'; | |
101 | + }; | |
102 | + ManageDiscountCode.prototype.CancelAddEdit = function () { | |
103 | + this.Mode = 'Manage'; | |
104 | + this.topPos = '2000px'; | |
105 | + this.divClass = 'col-sm-12'; | |
106 | + }; | |
107 | + ManageDiscountCode = __decorate([ | |
108 | + core_1.Component({ | |
109 | + templateUrl: './managediscountcode.component.html' | |
110 | + }), | |
111 | + __metadata("design:paramtypes", [managediscountcode_service_1.ManageDiscountCodeService, router_1.Router, forms_1.FormBuilder]) | |
112 | + ], ManageDiscountCode); | |
113 | + return ManageDiscountCode; | |
114 | +}()); | |
115 | +exports.ManageDiscountCode = ManageDiscountCode; | |
116 | +//# sourceMappingURL=managediscountcode.component.js.map | |
0 | 117 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/components/ManageDiscountCode/managediscountcode.component.js.map
0 → 100644
1 | +{"version":3,"file":"managediscountcode.component.js","sourceRoot":"","sources":["../../../../../../src/app/components/ManageDiscountCode/managediscountcode.component.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAA8F;AAC9F,2EAAyE;AACzE,0CAAyC;AACzC,wCAAiF;AACjF,qDAAuD;AAIvD,+CAA+C;AAC/C,kCAAkC;AAClC,+CAA+C;AAM/C;IAaA,4BAAoB,yBAAoD,EAAU,MAAc,EAAU,EAAe;QAArG,8BAAyB,GAAzB,yBAAyB,CAA2B;QAAU,WAAM,GAAN,MAAM,CAAQ;QAAU,OAAE,GAAF,EAAE,CAAa;QAXzH,SAAI,GAAW,QAAQ,CAAC;QAOxB,aAAQ,GAAW,EAAE,CAAC;QACtB,WAAM,GAAW,QAAQ,CAAC;QAC1B,YAAO,GAAS,IAAI,IAAI,EAAE,CAAC;IAEkG,CAAC;IAE1H,qCAAQ,GAAR;QACI,IAAI,CAAC,QAAQ,GAAG,WAAW,CAAC;QAC5B,IAAI,CAAC,YAAY,GAAG,IAAI,wBAAY,EAAE,CAAC;QACvC,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;QACjB,IAAI,CAAC,qBAAqB,GAAG,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC;YACvC,kBAAkB,EAAE,CAAC,EAAE,CAAC;YACxB,eAAe,EAAE,CAAC,EAAE,CAAC;YACrB,aAAa,EAAE,CAAC,EAAE,CAAC;YACnB,aAAa,EAAE,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;SACnC,CAAC,CAAC;QACH,IAAI,CAAC,2BAA2B,GAAG,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC;YAC7C,UAAU,EAAE,CAAC,EAAE,CAAC;YAChB,YAAY,EAAE,CAAC,EAAE,EAAE,kBAAU,CA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;IAClG,CAAC;IAED,6CAAgB,GAAhB;QACI,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC;QACnB,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC;QACtB,IAAI,CAAC,QAAQ,GAAG,6EAA6E,CAAC;IAClG,CAAC;IAED,0CAAa,GAAb;QACI,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,WAAW,CAAC;IAChC,CAAC;IApGQ,kBAAkB;QAJ9B,gBAAS,CAAC;YACP,WAAW,EAAE,qCAAqC;SACrD,CAAC;yCAe6C,sDAAyB,EAAkB,eAAM,EAAc,mBAAW;OAb5G,kBAAkB,CAqG9B;IAAD,yBAAC;CAAA,AArGD,IAqGC;AArGY,gDAAkB"} | |
0 | 2 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/components/ManageDiscountCode/managediscountcode.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 | +Object.defineProperty(exports, "__esModule", { value: true }); | |
12 | +var core_1 = require("@angular/core"); | |
13 | +//import { HttpClient, HttpParams, HttpRequest} from "@angular/common/http"; | |
14 | +var http_1 = require("@angular/http"); | |
15 | +require("rxjs/add/operator/map"); | |
16 | +require("rxjs/add/operator/catch"); | |
17 | +require("rxjs/add/observable/throw"); | |
18 | +require("rxjs/add/operator/do"); | |
19 | +var Observable_1 = require("rxjs/Observable"); | |
20 | +var global_1 = require("../../Shared/global"); | |
21 | +var ManageDiscountCodeService = /** @class */ (function () { | |
22 | + function ManageDiscountCodeService(http, commonService) { | |
23 | + this.http = http; | |
24 | + this.commonService = commonService; | |
25 | + } | |
26 | + //public GetUserById(Id: any): Observable<User> { | |
27 | + // return this.http.request<User>( | |
28 | + // 'GET', | |
29 | + // 'http://192.168.86.13:92/API/Api/Users/' + Id); | |
30 | + //} | |
31 | + //GetUserByLoginIdPassword(LoginId: string, Password: string): Observable<User> { | |
32 | + // return this.http.request<User>( | |
33 | + // 'GET', | |
34 | + // 'http://192.168.86.13:92/API/Api/Users/{LoginId=' + LoginId + '&Password=' + Password + '}'); | |
35 | + //} | |
36 | + //UpdateProfile(UserObj: User): Observable<any> { | |
37 | + // return this.http.request<any>( | |
38 | + // 'POST', | |
39 | + // 'http://192.168.86.13:92/API/Api/Users/UpdateProfile', | |
40 | + // { | |
41 | + // body: UserObj | |
42 | + // }); | |
43 | + //} | |
44 | + ManageDiscountCodeService.prototype.GetDiscountCodes = function (obj) { | |
45 | + var _this = this; | |
46 | + if (obj.startDate == '') { | |
47 | + obj.startDate = '1/1/1'; | |
48 | + } | |
49 | + if (obj.endDate == '') { | |
50 | + obj.endDate = '1/1/9999'; | |
51 | + } | |
52 | + return this.http.get(this.commonService.resourceBaseUrl + "/api/GetDiscountCodes?discountCode=" | |
53 | + + obj.discountCode + "&startDate=" + obj.startDate + "&endDate=" + obj.endDate) | |
54 | + .map(this.extractData) | |
55 | + .catch(function (res) { return _this.handleError(res); }); | |
56 | + }; | |
57 | + ManageDiscountCodeService.prototype.InsertDiscountCode = function (obj) { | |
58 | + var _this = this; | |
59 | + //let options = new RequestOptions({ headers: this.headers }); | |
60 | + var jsonData = { 'id': obj.userId, 'newPassword': obj.newPassword }; | |
61 | + console.log(obj); | |
62 | + var headers = new http_1.Headers({ | |
63 | + 'Content-Type': 'application/json' | |
64 | + }); | |
65 | + return this.http.post(this.commonService.resourceBaseUrl + "/api/ChangeUserPassword", JSON.stringify(jsonData), { headers: headers }) | |
66 | + .map(this.extractData) | |
67 | + .catch(function (res) { return _this.handleError(res); }); | |
68 | + }; | |
69 | + ManageDiscountCodeService.prototype.UpdateDiscountCode = function (obj) { | |
70 | + var _this = this; | |
71 | + //let options = new RequestOptions({ headers: this.headers }); | |
72 | + var jsonData = { 'id': obj.userId, 'newPassword': obj.newPassword }; | |
73 | + console.log(obj); | |
74 | + var headers = new http_1.Headers({ | |
75 | + 'Content-Type': 'application/json' | |
76 | + }); | |
77 | + return this.http.post(this.commonService.resourceBaseUrl + "/api/ChangeUserPassword", JSON.stringify(jsonData), { headers: headers }) | |
78 | + .map(this.extractData) | |
79 | + .catch(function (res) { return _this.handleError(res); }); | |
80 | + }; | |
81 | + ManageDiscountCodeService.prototype.extractData = function (res) { | |
82 | + //debugger; | |
83 | + var body = res.json(); | |
84 | + return body; | |
85 | + }; | |
86 | + ManageDiscountCodeService.prototype.handleError = function (error) { | |
87 | + // In a real world app, we might use a remote logging infrastructure | |
88 | + // We'd also dig deeper into the error to get a better message | |
89 | + var errMsg = (error.message) ? error.message : | |
90 | + error.status ? error.status + " - " + error.statusText : 'Server error'; | |
91 | + console.error(errMsg); // log to console instead | |
92 | + return Observable_1.Observable.throw(errMsg); | |
93 | + }; | |
94 | + ManageDiscountCodeService = __decorate([ | |
95 | + core_1.Injectable(), | |
96 | + __metadata("design:paramtypes", [http_1.Http, global_1.GlobalService]) | |
97 | + ], ManageDiscountCodeService); | |
98 | + return ManageDiscountCodeService; | |
99 | +}()); | |
100 | +exports.ManageDiscountCodeService = ManageDiscountCodeService; | |
101 | +//# sourceMappingURL=managediscountcode.service.js.map | |
0 | 102 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/components/ManageDiscountCode/managediscountcode.service.js.map
0 → 100644
1 | +{"version":3,"file":"managediscountcode.service.js","sourceRoot":"","sources":["../../../../../../src/app/components/ManageDiscountCode/managediscountcode.service.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAAmD;AACnD,4EAA4E;AAC5E,sCAAoF;AACpF,iCAA+B;AAC/B,mCAAiC;AACjC,qCAAmC;AACnC,gCAA8B;AAC9B,8CAA6C;AAC7C,8CAAoD;AAGpD;IAEE,mCAAoB,IAAU,EAAU,aAA4B;QAAhD,SAAI,GAAJ,IAAI,CAAM;QAAU,kBAAa,GAAb,aAAa,CAAe;IAAK,CAAC;IAExE,iDAAiD;IACjD,mCAAmC;IACnC,YAAY;IACZ,qDAAqD;IACrD,GAAG;IAEH,iFAAiF;IACjF,mCAAmC;IACnC,YAAY;IACZ,mGAAmG;IACnG,GAAG;IAEH,iDAAiD;IACjD,kCAAkC;IAClC,eAAe;IACf,8DAA8D;IAC9D,SAAS;IACT,uBAAuB;IACvB,WAAW;IACX,GAAG;IAEL,oDAAgB,GAAhB,UAAiB,GAAQ;QAAzB,iBAWC;QAVC,EAAE,CAAA,CAAC,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC,CAAA,CAAC;YACtB,GAAG,CAAC,SAAS,GAAG,OAAO,CAAC;QAC1B,CAAC;QACD,EAAE,CAAA,CAAC,GAAG,CAAC,OAAO,IAAI,EAAE,CAAC,CAAA,CAAC;YACpB,GAAG,CAAC,OAAO,GAAG,UAAU,CAAC;QAC3B,CAAC;QACD,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,aAAa,CAAC,eAAe,GAAG,qCAAqC;cAC3F,GAAG,CAAC,YAAY,GAAG,aAAa,GAAG,GAAG,CAAC,SAAS,GAAG,WAAW,GAAG,GAAG,CAAC,OAAO,CAAC;aAC9E,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC;aACrB,KAAK,CAAC,UAAC,GAAa,IAAK,OAAA,KA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,IAAI,CAAC,WAAW,CAAC;aACrB,KAAK,CAAC,UAAC,GAAa,IAAK,OAAA,KAAI,CAAC,WAAW,CAAC,GAAG,CAAC,EAArB,CAAqB,CAAC,CAAC;IACrD,CAAC;IAED,+CAAW,GAAX,UAAY,GAAa;QACvB,YAAY;QACZ,IAAI,IAAI,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC;QACtB,MAAM,CAAC,IAAI,CAAC;IACd,CAAC;IAED,+CAAW,GAAX,UAAY,KAAU;QACpB,oEAAoE;QACpE,8DAA8D;QAC9D,IAAI,MAAM,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YAC5C,KAAK,CAAC,MAAM,CAAC,CAAC,CAAI,KAAK,CAAC,MAAM,WAAM,KAAK,CAAC,UAAY,CAAC,CAAC,CAAC,cAAc,CAAC;QAC1E,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,yBAAyB;QAChD,MAAM,CAAC,uBAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAClC,CAAC;IA7EU,yBAAyB;QADrC,iBAAU,EAAE;yCAGe,WAAI,EAAyB,sBAAa;OAFzD,yBAAyB,CA2FrC;IAAD,gCAAC;CAAA,AA3FD,IA2FC;AA3FY,8DAAyB"} | |
0 | 2 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/components/UpdateProfile/datamodel.js
0 → 100644
400-SOURCECODE/Admin/dist/out-tsc/src/app/components/UpdateProfile/datamodel.js.map
0 → 100644
400-SOURCECODE/Admin/dist/out-tsc/src/app/components/UpdateProfile/updateuserprofile.component.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 | +Object.defineProperty(exports, "__esModule", { value: true }); | |
12 | +var core_1 = require("@angular/core"); | |
13 | +var user_service_1 = require("../UpdateProfile/user.service"); | |
14 | +var router_1 = require("@angular/router"); | |
15 | +var forms_1 = require("@angular/forms"); | |
16 | +var datamodel_1 = require("../UpdateProfile/datamodel"); | |
17 | +var http_1 = require("@angular/http"); | |
18 | +var confirm_service_1 = require("../../Shared/Confirm/confirm.service"); | |
19 | +require("rxjs/Rx"); | |
20 | +require("rxjs/add/operator/map"); | |
21 | +require("rxjs/add/operator/filter"); | |
22 | +var UpdateUserProfile = /** @class */ (function () { | |
23 | + //@ViewChild("profileModal") | |
24 | + //profileModal: ModalComponent; | |
25 | + //errorMessage: any; | |
26 | + function UpdateUserProfile(userservice, router, fb, http, _confirmService) { | |
27 | + this.userservice = userservice; | |
28 | + this.router = router; | |
29 | + this.fb = fb; | |
30 | + this.http = http; | |
31 | + this._confirmService = _confirmService; | |
32 | + this.UserId = 1; | |
33 | + this.indLoading = false; | |
34 | + this.baseUrl = "User"; | |
35 | + this.emailPattern = "^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$"; | |
36 | + //extractData(res: Response) { | |
37 | + // //debugger; | |
38 | + // let body = res.json(); | |
39 | + // return body; | |
40 | + //} | |
41 | + //handleError(error: any) { | |
42 | + // // In a real world app, we might use a remote logging infrastructure | |
43 | + // // We'd also dig deeper into the error to get a better message | |
44 | + // let errMsg = (error.message) ? error.message : | |
45 | + // error.status ? `${error.status} - ${error.statusText}` : 'Server error'; | |
46 | + // console.error(errMsg); // log to console instead | |
47 | + // return Observable.throw(errMsg); | |
48 | + //} | |
49 | + this.validationMessages = { | |
50 | + 'firstName': { | |
51 | + 'required': 'First name is required.' | |
52 | + }, | |
53 | + 'lastName': { | |
54 | + 'required': 'Last name is required.' | |
55 | + }, | |
56 | + 'email': { | |
57 | + 'required': 'Email is required.', | |
58 | + 'pattern': 'Email pattern is not valid.' | |
59 | + } | |
60 | + }; | |
61 | + } | |
62 | + UpdateUserProfile.prototype.ngOnInit = function () { | |
63 | + this.user = new datamodel_1.User(); | |
64 | + this.alerts = ''; | |
65 | + //this.userservice.GetUserById(this.UserId); | |
66 | + this.userFrm = this.fb.group({ | |
67 | + id: [''], | |
68 | + firstName: ['', forms_1.Validators.required], | |
69 | + lastName: ['', forms_1.Validators.required], | |
70 | + emailId: ['', forms_1.Validators.required] | |
71 | + // LastName: [''], | |
72 | + // Gender: ['', Validators.required], | |
73 | + // Email: [''] | |
74 | + }); | |
75 | + this.GetUserById(); | |
76 | + }; | |
77 | + //ngAfterviewint() { | |
78 | + // this.LoadUsers(); | |
79 | + //} | |
80 | + //getCustomerById(UserId) { | |
81 | + // return this.userservice.GetUserById(UserId) | |
82 | + // .map((response: Response) => response.json()) | |
83 | + // .catch(this._errorHandler) | |
84 | + //} | |
85 | + //formErrors = { | |
86 | + // 'firstName': '', | |
87 | + // 'lastName': '', | |
88 | + // 'email': '' | |
89 | + //}; | |
90 | + UpdateUserProfile.prototype.GetUserById = function () { | |
91 | + var _this = this; | |
92 | + this.userservice.GetUserById() | |
93 | + .subscribe(function (x) { console.log(x); _this.bindUsers(x); }, function (error) { return _this.error = error; }); | |
94 | + }; | |
95 | + UpdateUserProfile.prototype.UpdateUserProfile = function () { | |
96 | + var _this = this; | |
97 | + // debugger; | |
98 | + this.user = this.userFrm.value; | |
99 | + //if(this.user.) | |
100 | + console.log(this.user); | |
101 | + var obj = this.user; | |
102 | + if (this.userFrm.valid) { | |
103 | + return this.userservice.UpdateUserProfileById(obj) | |
104 | + .subscribe(function (n) { return (_this.AfterInsertData(n)); }, function (error) { return _this.error = error; }); | |
105 | + } | |
106 | + }; | |
107 | + UpdateUserProfile.prototype.AfterInsertData = function (data) { | |
108 | + //debugger; | |
109 | + if (data.Status == "False") { | |
110 | + // this._confirmService.activate(data.ResponseMessage, "alertMsg"); | |
111 | + //setTimeout(() => this.amCode.nativeElement.focus(), 0); | |
112 | + // this.closeflag = false; | |
113 | + return false; | |
114 | + } | |
115 | + else { | |
116 | + this.status = true; | |
117 | + debugger; | |
118 | + this._confirmService.activate("User Profile Updated Successfully.", "alertMsg"); | |
119 | + //this.profileModal.open(); | |
120 | + // this.submitted = false; | |
121 | + // this.GetAllAcctMgr(); | |
122 | + // this.DisableAllControls(); | |
123 | + // this.AccountManagerID.enable(); | |
124 | + // let accountManagerID: string = data.Id == null ? "" : data.Id.toString(); | |
125 | + // console.log(accountManagerID); | |
126 | + // this.GetAcctMgr(Number(accountManagerID)); | |
127 | + //this.GetAccountManagerListOptions(false); | |
128 | + // this.defautValue = data.id; | |
129 | + // this.BtnReset = true; | |
130 | + // this.BtnSave = true; | |
131 | + // this.BtnEdit = false; | |
132 | + // this.BtnNew = false; | |
133 | + // this.BtnDelete = false; | |
134 | + // this.Abbrevtion = this.Abbrev.value; | |
135 | + // setTimeout(() => this.AMform.controls["AccountManagerID"].setValue(accountManagerID.toString()), 1000); | |
136 | + // setTimeout(() => this.AMform.markAsPristine(), 2000); | |
137 | + } | |
138 | + //if (this.closeflag) { | |
139 | + // this.close.emit(null); | |
140 | + //} | |
141 | + //else { | |
142 | + //} | |
143 | + }; | |
144 | + UpdateUserProfile.prototype.bindUsers = function (data) { | |
145 | + debugger; | |
146 | + //console.log(data); | |
147 | + //alert(JSON.stringify(data)); | |
148 | + this.user = data[0]; | |
149 | + console.log(this.user); | |
150 | + this.userFrm.controls['id'].setValue(this.user.Id); | |
151 | + this.userFrm.controls['firstName'].setValue(this.user.FirstName); | |
152 | + this.userFrm.controls['lastName'].setValue(this.user.LastName); | |
153 | + this.userFrm.controls['emailId'].setValue(this.user.EmailId); | |
154 | + // this.GetClientListOptions(false); | |
155 | + // this.GetCrossRefClientListOptions(false); | |
156 | + }; | |
157 | + UpdateUserProfile = __decorate([ | |
158 | + core_1.Component({ | |
159 | + templateUrl: './updateuserprofile.component.html' // '../../../../../wwwroot/html/UpdateProfile/updateuserprofile.component.html' | |
160 | + }), | |
161 | + __metadata("design:paramtypes", [user_service_1.UserService, router_1.Router, forms_1.FormBuilder, http_1.Http, | |
162 | + confirm_service_1.ConfirmService]) | |
163 | + ], UpdateUserProfile); | |
164 | + return UpdateUserProfile; | |
165 | +}()); | |
166 | +exports.UpdateUserProfile = UpdateUserProfile; | |
167 | +//# sourceMappingURL=updateuserprofile.component.js.map | |
0 | 168 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/components/UpdateProfile/updateuserprofile.component.js.map
0 → 100644
1 | +{"version":3,"file":"updateuserprofile.component.js","sourceRoot":"","sources":["../../../../../../src/app/components/UpdateProfile/updateuserprofile.component.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAA2E;AAC3E,8DAA4D;AAC5D,0CAAyC;AACzC,wCAAiF;AAEjF,wDAAkD;AAClD,sCAA+C;AAI/C,wEAAsE;AACtE,mBAAiB;AACjB,iCAA+B;AAC/B,oCAAkC;AAOlC;IAgBE,4BAA4B;IAC5B,+BAA+B;IAC/B,oBAAoB;IACpB,2BAAoB,WAAwB,EAAU,MAAc,EAAU,EAAe,EAAU,IAAU,EACvG,eAA+B;QADrB,gBAAW,GAAX,WAAW,CAAa;QAAU,WAAM,GAAN,MAAM,CAAQ;QAAU,OAAE,GAAF,EAAE,CAAa;QAAU,SAAI,GAAJ,IAAI,CAAM;QACvG,oBAAe,GAAf,eAAe,CAAgB;QAnBzC,WAAM,GAAS,CAAC,CAAC;QAIjB,eAAU,GAAY,KAAK,CAAC;QAI5B,YAAO,GAAW,MAAM,CAAC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CAAA,AAvJD,IAuJC;AAvJY,8CAAiB"} | |
0 | 2 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/components/UpdateProfile/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 | +Object.defineProperty(exports, "__esModule", { value: true }); | |
12 | +var core_1 = require("@angular/core"); | |
13 | +//import { HttpClient, HttpParams, HttpRequest} from "@angular/common/http"; | |
14 | +var http_1 = require("@angular/http"); | |
15 | +require("rxjs/add/operator/map"); | |
16 | +require("rxjs/add/operator/catch"); | |
17 | +require("rxjs/add/observable/throw"); | |
18 | +require("rxjs/add/operator/do"); | |
19 | +var Observable_1 = require("rxjs/Observable"); | |
20 | +var global_1 = require("../../Shared/global"); | |
21 | +var UserService = /** @class */ (function () { | |
22 | + function UserService(http, commonService) { | |
23 | + this.http = http; | |
24 | + this.commonService = commonService; | |
25 | + } | |
26 | + UserService.prototype.GetUserById = function () { | |
27 | + var _this = this; | |
28 | + return this.http.get(this.commonService.resourceBaseUrl + "/api/GetUserProfile/1") | |
29 | + .map(this.extractData) | |
30 | + .catch(function (res) { return _this.handleError(res); }); | |
31 | + ; | |
32 | + }; | |
33 | + UserService.prototype.UpdateUserProfileById = function (obj) { | |
34 | + var _this = this; | |
35 | + //let options = new RequestOptions({ headers: this.headers }); | |
36 | + return this.http.post(this.commonService.resourceBaseUrl + "/api/UpdateProfile", obj) | |
37 | + .map(this.extractData) | |
38 | + .catch(function (res) { return _this.handleError(res); }); | |
39 | + }; | |
40 | + UserService.prototype.extractData = function (res) { | |
41 | + //debugger; | |
42 | + var body = res.json(); | |
43 | + return body; | |
44 | + }; | |
45 | + UserService.prototype.handleError = function (error) { | |
46 | + // In a real world app, we might use a remote logging infrastructure | |
47 | + // We'd also dig deeper into the error to get a better message | |
48 | + var errMsg = (error.message) ? error.message : | |
49 | + error.status ? error.status + " - " + error.statusText : 'Server error'; | |
50 | + console.error(errMsg); // log to console instead | |
51 | + return Observable_1.Observable.throw(errMsg); | |
52 | + }; | |
53 | + UserService = __decorate([ | |
54 | + core_1.Injectable(), | |
55 | + __metadata("design:paramtypes", [http_1.Http, global_1.GlobalService]) | |
56 | + ], UserService); | |
57 | + return UserService; | |
58 | +}()); | |
59 | +exports.UserService = UserService; | |
60 | +//# sourceMappingURL=user.service.js.map | |
0 | 61 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/components/UpdateProfile/user.service.js.map
0 → 100644
1 | +{"version":3,"file":"user.service.js","sourceRoot":"","sources":["../../../../../../src/app/components/UpdateProfile/user.service.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAAmD;AACnD,4EAA4E;AAC5E,sCAAoF;AACpF,iCAA+B;AAC/B,mCAAiC;AACjC,qCAAmC;AAEnC,gCAA8B;AAC9B,8CAA6C;AAC7C,8CAAoD;AAEpD;IAEE,qBAAoB,IAAU,EAAU,aAA4B;QAAhD,SAAI,GAAJ,IAAI,CAAM;QAAU,kBAAa,GAAb,aAAa,CAAe;IAAK,CAAC;IAE1E,iCAAW,GAAX;QAAA,iBAMC;QAJC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,aAAa,CAAC,eAAe,GAAG,uBAAuB,CAAC;aAC/E,GAA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ist/out-tsc/src/app/components/UserEntity/changeuserid.component.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 | +Object.defineProperty(exports, "__esModule", { value: true }); | |
12 | +var core_1 = require("@angular/core"); | |
13 | +var user_service_1 = require("./user.service"); | |
14 | +var router_1 = require("@angular/router"); | |
15 | +var forms_1 = require("@angular/forms"); | |
16 | +var datamodel_1 = require("../UserEntity/datamodel"); | |
17 | +var http_1 = require("@angular/http"); | |
18 | +var confirm_service_1 = require("../../Shared/Confirm/confirm.service"); | |
19 | +require("rxjs/Rx"); | |
20 | +require("rxjs/add/operator/map"); | |
21 | +require("rxjs/add/operator/filter"); | |
22 | +var ChangeUserID = /** @class */ (function () { | |
23 | + //@ViewChild("profileModal") | |
24 | + //profileModal: ModalComponent; | |
25 | + //errorMessage: any; | |
26 | + function ChangeUserID(userservice, router, fb, http, _confirmService) { | |
27 | + this.userservice = userservice; | |
28 | + this.router = router; | |
29 | + this.fb = fb; | |
30 | + this.http = http; | |
31 | + this._confirmService = _confirmService; | |
32 | + this.UserId = 1; | |
33 | + this.baseUrl = "User"; | |
34 | + } | |
35 | + ChangeUserID.prototype.ngOnInit = function () { | |
36 | + this.user = new datamodel_1.User(); | |
37 | + this.alerts = ''; | |
38 | + //this.userservice.GetUserById(this.UserId); | |
39 | + this.ChangeUserIdFrm = this.fb.group({ | |
40 | + id: [''], | |
41 | + loginid: ['', forms_1.Validators.required], | |
42 | + newloginid: ['', [forms_1.Validators.required, forms_1.Validators.minLength(8)]], | |
43 | + confirmloginid: ['', forms_1.Validators.required] | |
44 | + // LastName: [''], | |
45 | + // Gender: ['', Validators.required], | |
46 | + // Email: [''] | |
47 | + }); | |
48 | + this.GetUserById(); | |
49 | + }; | |
50 | + ChangeUserID.prototype.GetUserById = function () { | |
51 | + var _this = this; | |
52 | + this.userservice.GetUserById() | |
53 | + .subscribe(function (x) { console.log(x); _this.bindUsers(x); }, function (error) { return _this.error = error; }); | |
54 | + }; | |
55 | + ChangeUserID.prototype.UpdateUserId = function () { | |
56 | + var _this = this; | |
57 | + // debugger; | |
58 | + this.alerts = ''; | |
59 | + if (this.user.LoginId == this.ChangeUserIdFrm.value.newloginid) { | |
60 | + this.alerts += '</br><span>New userid and old userid must be different</span>'; | |
61 | + } | |
62 | + if (this.ChangeUserIdFrm.value.newloginid != this.ChangeUserIdFrm.value.confirmloginid) { | |
63 | + this.alerts += '</br><span>New userid and confirm userid must be same</span>'; | |
64 | + } | |
65 | + if (this.alerts == '') { | |
66 | + this.user = this.ChangeUserIdFrm.value; | |
67 | + //if(this.user.) | |
68 | + console.log(this.user); | |
69 | + var obj = this.user; | |
70 | + if (this.ChangeUserIdFrm.valid) { | |
71 | + return this.userservice.UpdateUserId(obj) | |
72 | + .subscribe(function (n) { return (_this.AfterInsertData(n)); }, function (error) { return _this.error = error; }); | |
73 | + } | |
74 | + } | |
75 | + }; | |
76 | + ChangeUserID.prototype.AfterInsertData = function (data) { | |
77 | + if (data == "success") { | |
78 | + this._confirmService.activate("Userid Updated Successfully.", "alertMsg"); | |
79 | + } | |
80 | + else { | |
81 | + this.alerts += '<span>' + data + '</span>'; | |
82 | + return false; | |
83 | + } | |
84 | + //if (this.closeflag) { | |
85 | + // this.close.emit(null); | |
86 | + //} | |
87 | + //else { | |
88 | + //} | |
89 | + }; | |
90 | + ChangeUserID.prototype.bindUsers = function (data) { | |
91 | + //console.log(data); | |
92 | + //alert(JSON.stringify(data)); | |
93 | + this.user = data[0]; | |
94 | + console.log(this.user); | |
95 | + this.ChangeUserIdFrm.controls['id'].setValue(this.user.Id); | |
96 | + this.ChangeUserIdFrm.controls['loginid'].setValue(this.user.LoginId); | |
97 | + this.ChangeUserIdFrm.controls['newloginid'].setValue(this.user.NewLoginId); | |
98 | + this.ChangeUserIdFrm.controls['confirmloginid'].setValue(''); | |
99 | + }; | |
100 | + ChangeUserID.prototype.ResetFormFields = function () { | |
101 | + this.ChangeUserIdFrm.reset(); | |
102 | + this.ChangeUserIdFrm.controls['id'].setValue(this.user.Id); | |
103 | + this.ChangeUserIdFrm.controls['loginid'].setValue(this.user.LoginId); | |
104 | + this.ChangeUserIdFrm.controls['newloginid'].setValue(''); | |
105 | + this.ChangeUserIdFrm.controls['confirmloginid'].setValue(''); | |
106 | + this.alerts = ''; | |
107 | + }; | |
108 | + ChangeUserID = __decorate([ | |
109 | + core_1.Component({ | |
110 | + templateUrl: './changeuserid.component.html' // '../../../../../wwwroot/html/UpdateProfile/updateuserprofile.component.html' | |
111 | + }), | |
112 | + __metadata("design:paramtypes", [user_service_1.UserService, router_1.Router, forms_1.FormBuilder, http_1.Http, | |
113 | + confirm_service_1.ConfirmService]) | |
114 | + ], ChangeUserID); | |
115 | + return ChangeUserID; | |
116 | +}()); | |
117 | +exports.ChangeUserID = ChangeUserID; | |
118 | +//# sourceMappingURL=changeuserid.component.js.map | |
0 | 119 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/components/UserEntity/changeuserid.component.js.map
0 → 100644
1 | +{"version":3,"file":"changeuserid.component.js","sourceRoot":"","sources":["../../../../../../src/app/components/UserEntity/changeuserid.component.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAA2E;AAC3E,+CAA6C;AAC7C,0CAAyC;AACzC,wCAAiF;AAEjF,qDAA+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,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QACpE,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;QACxD,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;QAC5D,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;IACnB,CAAC;IAlGU,YAAY;QAJxB,gBAAS,CAAC;YACT,WAAW,EAAC,+BAA+B,CAAC,+EAA+E;SAC5H,CAAC;yCAgBiC,0BAAW,EAAkB,eAAM,EAAc,mBAAW,EAAgB,WAAI;YACtF,gCAAc;OAf9B,YAAY,CAoGxB;IAAD,mBAAC;CAAA,AApGD,IAoGC;AApGY,oCAAY"} | |
0 | 2 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/components/UserEntity/changeuserpassword.component.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 | +Object.defineProperty(exports, "__esModule", { value: true }); | |
12 | +var core_1 = require("@angular/core"); | |
13 | +var user_service_1 = require("./user.service"); | |
14 | +//import { ChangeUserPasswordService } from '../ChangePassword/changeuserpassword.service'; | |
15 | +var router_1 = require("@angular/router"); | |
16 | +var forms_1 = require("@angular/forms"); | |
17 | +var datamodel_1 = require("../UserEntity/datamodel"); | |
18 | +var confirm_service_1 = require("../../Shared/Confirm/confirm.service"); | |
19 | +require("rxjs/Rx"); | |
20 | +require("rxjs/add/operator/map"); | |
21 | +require("rxjs/add/operator/filter"); | |
22 | +var ChangeUserPassword = /** @class */ (function () { | |
23 | + function ChangeUserPassword(changeUserPasswordService, router, fb, _confirmService) { | |
24 | + this.changeUserPasswordService = changeUserPasswordService; | |
25 | + this.router = router; | |
26 | + this.fb = fb; | |
27 | + this._confirmService = _confirmService; | |
28 | + } | |
29 | + ChangeUserPassword.prototype.ngOnInit = function () { | |
30 | + this.user = new datamodel_1.User(); | |
31 | + this.alerts = ''; | |
32 | + this.changeUserPasswordFrm = this.fb.group({ | |
33 | + userId: [''], | |
34 | + loginId: ['', forms_1.Validators.required], | |
35 | + oldPassword: ['', forms_1.Validators.required], | |
36 | + newPassword: ['', [forms_1.Validators.required, forms_1.Validators.minLength(8)]], | |
37 | + confirmPassword: ['', forms_1.Validators.required] | |
38 | + }); | |
39 | + this.GetUserById(); | |
40 | + }; | |
41 | + ChangeUserPassword.prototype.GetUserById = function () { | |
42 | + var _this = this; | |
43 | + this.changeUserPasswordService.GetUserById() | |
44 | + .subscribe(function (x) { _this.BindFormFields(x); }, function (error) { return _this.error = error; }); | |
45 | + }; | |
46 | + ChangeUserPassword.prototype.onFormSubmit = function () { | |
47 | + var _this = this; | |
48 | + this.alerts = ''; | |
49 | + if (this.user.Password != this.changeUserPasswordFrm.value.oldPassword) { | |
50 | + this.alerts = '<span>Old password is invalid</span>'; | |
51 | + } | |
52 | + if (this.user.Password == this.changeUserPasswordFrm.value.newPassword) { | |
53 | + this.alerts += '</br><span>New password and old password must be different</span>'; | |
54 | + } | |
55 | + if (this.changeUserPasswordFrm.value.newPassword != this.changeUserPasswordFrm.value.confirmPassword) { | |
56 | + this.alerts += '</br><span>New password and confirm password must be same</span>'; | |
57 | + } | |
58 | + if (this.alerts == '') { | |
59 | + var obj = this.changeUserPasswordFrm.value; | |
60 | + return this.changeUserPasswordService.ChangeUserPassword(obj) | |
61 | + .subscribe(function (n) { return (_this.AfterInsertData(n)); }, function (error) { return _this.error = error; }); | |
62 | + } | |
63 | + }; | |
64 | + ChangeUserPassword.prototype.AfterInsertData = function (data) { | |
65 | + if (data.Status == "false") { | |
66 | + this.alerts = "<span>Password change unsuccessfull</span>"; | |
67 | + } | |
68 | + else { | |
69 | + this._confirmService.activate("Password changed successfully.", "alertMsg"); | |
70 | + //this.alerts = "<span>Password changed successfully</span>"; | |
71 | + } | |
72 | + }; | |
73 | + ChangeUserPassword.prototype.BindFormFields = function (data) { | |
74 | + this.user = data[0]; | |
75 | + this.changeUserPasswordFrm.controls['userId'].setValue(this.user.Id); | |
76 | + this.changeUserPasswordFrm.controls['loginId'].setValue(this.user.LoginId); | |
77 | + }; | |
78 | + ChangeUserPassword.prototype.ResetFormFields = function () { | |
79 | + this.changeUserPasswordFrm.reset(); | |
80 | + this.changeUserPasswordFrm.controls['loginId'].setValue(this.user.LoginId); | |
81 | + this.changeUserPasswordFrm.controls['oldPassword'].setValue(''); | |
82 | + this.changeUserPasswordFrm.controls['newPassword'].setValue(''); | |
83 | + this.changeUserPasswordFrm.controls['confirmPassword'].setValue(''); | |
84 | + this.alerts = ''; | |
85 | + }; | |
86 | + ChangeUserPassword = __decorate([ | |
87 | + core_1.Component({ | |
88 | + templateUrl: './changeuserpassword.component.html' | |
89 | + }), | |
90 | + __metadata("design:paramtypes", [user_service_1.UserService, router_1.Router, forms_1.FormBuilder, confirm_service_1.ConfirmService]) | |
91 | + ], ChangeUserPassword); | |
92 | + return ChangeUserPassword; | |
93 | +}()); | |
94 | +exports.ChangeUserPassword = ChangeUserPassword; | |
95 | +//# sourceMappingURL=changeuserpassword.component.js.map | |
0 | 96 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/components/UserEntity/changeuserpassword.component.js.map
0 → 100644
1 | +{"version":3,"file":"changeuserpassword.component.js","sourceRoot":"","sources":["../../../../../../src/app/components/UserEntity/changeuserpassword.component.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAA4E;AAC5E,+CAA6C;AAC7C,2FAA2F;AAC3F,0CAAyC;AACzC,wCAAiF;AACjF,qDAA+C;AAM/C,wEAAsE;AACtE,mBAAiB;AACjB,iCAA+B;AAC/B,oCAAkC;AAMlC;IAOA,4BAAoB,yBAAsC,EAAU,MAAc,EAAU,EAAe,EAAU,eAA+B;QAAhI,8BAAyB,GAAzB,yBAAyB,CAAa;QAAU,WAAM,GAAN,MAAM,CAAQ;QAAU,OAAE,GAAF,EAAE,CAAa;QAAU,oBAAe,GAAf,eAAe,CAAgB;IAAI,CAAC;IAErJ,qCAAQ,GAAR;QACI,IAAI,CAAC,IAAI,GAAG,IAAI,gBAAI,EAAE,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;QACjB,IAAI,CAAC,qBAAqB,GAAG,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC;YACzC,MAAM,EAAE,CAAC,EAAE,CAAC;YACZ,OAAO,EAAE,CAAC,EAAE,EAAE,kBAAU,CAAC,QAAQ,CAAC;YAClC,WAAW,EAAE,CAAC,EAAE,EAAE,kBAAU,CAAC,QAAQ,CAAC;YACtC,WAAW,EAAE,CAAC,EAAE,EAAE,CAAC,kBAAU,CAAC,QAAQ,EAAE,kBAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;YACjE,eAAe,EAAE,CAAC,EAAE,EAAE,kBAAU,CAAC,QAAQ,CAAC;SAC3C,CAAC,CAAC;QACH,IAAI,CAAC,WAAW,EAAE,CAAC;IACvB,CAAC;IAED,wCAAW,GAAX;QAAA,iBAIC;QAFG,IAAI,CAAC,yBAAyB,CAAC,WAAW,EAAE;aAC3C,SAAS,CAAC,UAAA,CAAC,IAAM,KAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAA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gCAAc;OAPvI,kBAAkB,CA0E9B;IAAD,yBAAC;CAAA,AA1ED,IA0EC;AA1EY,gDAAkB"} | |
0 | 2 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/components/UserEntity/datamodel.js
0 → 100644
1 | +"use strict"; | |
2 | +Object.defineProperty(exports, "__esModule", { value: true }); | |
3 | +var User = /** @class */ (function () { | |
4 | + function User() { | |
5 | + } | |
6 | + return User; | |
7 | +}()); | |
8 | +exports.User = User; | |
9 | +var DiscountCode = /** @class */ (function () { | |
10 | + function DiscountCode() { | |
11 | + } | |
12 | + return DiscountCode; | |
13 | +}()); | |
14 | +exports.DiscountCode = DiscountCode; | |
15 | +//# sourceMappingURL=datamodel.js.map | |
0 | 16 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/components/UserEntity/datamodel.js.map
0 → 100644
1 | +{"version":3,"file":"datamodel.js","sourceRoot":"","sources":["../../../../../../src/app/components/UserEntity/datamodel.ts"],"names":[],"mappings":";;AAAA;IAAA;IAQA,CAAC;IAAD,WAAC;AAAD,CAAC,AARD,IAQC;AARY,oBAAI;AASjB;IAAA;IAOA,CAAC;IAAD,mBAAC;AAAD,CAAC,AAPD,IAOC;AAPY,oCAAY"} | |
0 | 2 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/components/UserEntity/updateuserprofile.component.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 | +Object.defineProperty(exports, "__esModule", { value: true }); | |
12 | +var core_1 = require("@angular/core"); | |
13 | +var user_service_1 = require("../UserEntity/user.service"); | |
14 | +var router_1 = require("@angular/router"); | |
15 | +var forms_1 = require("@angular/forms"); | |
16 | +var datamodel_1 = require("../UserEntity/datamodel"); | |
17 | +var http_1 = require("@angular/http"); | |
18 | +var confirm_service_1 = require("../../Shared/Confirm/confirm.service"); | |
19 | +require("rxjs/Rx"); | |
20 | +require("rxjs/add/operator/map"); | |
21 | +require("rxjs/add/operator/filter"); | |
22 | +var UpdateUserProfile = /** @class */ (function () { | |
23 | + //@ViewChild("profileModal") | |
24 | + //profileModal: ModalComponent; | |
25 | + //errorMessage: any; | |
26 | + function UpdateUserProfile(userservice, router, fb, http, _confirmService) { | |
27 | + this.userservice = userservice; | |
28 | + this.router = router; | |
29 | + this.fb = fb; | |
30 | + this.http = http; | |
31 | + this._confirmService = _confirmService; | |
32 | + this.UserId = 1; | |
33 | + this.indLoading = false; | |
34 | + this.baseUrl = "User"; | |
35 | + this.emailPattern = "^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$"; | |
36 | + //extractData(res: Response) { | |
37 | + // //debugger; | |
38 | + // let body = res.json(); | |
39 | + // return body; | |
40 | + //} | |
41 | + //handleError(error: any) { | |
42 | + // // In a real world app, we might use a remote logging infrastructure | |
43 | + // // We'd also dig deeper into the error to get a better message | |
44 | + // let errMsg = (error.message) ? error.message : | |
45 | + // error.status ? `${error.status} - ${error.statusText}` : 'Server error'; | |
46 | + // console.error(errMsg); // log to console instead | |
47 | + // return Observable.throw(errMsg); | |
48 | + //} | |
49 | + this.validationMessages = { | |
50 | + 'firstName': { | |
51 | + 'required': 'First name is required.' | |
52 | + }, | |
53 | + 'lastName': { | |
54 | + 'required': 'Last name is required.' | |
55 | + }, | |
56 | + 'email': { | |
57 | + 'required': 'Email is required.', | |
58 | + 'pattern': 'Email pattern is not valid.' | |
59 | + } | |
60 | + }; | |
61 | + } | |
62 | + UpdateUserProfile.prototype.ngOnInit = function () { | |
63 | + this.user = new datamodel_1.User(); | |
64 | + this.alerts = ''; | |
65 | + //this.userservice.GetUserById(this.UserId); | |
66 | + this.userFrm = this.fb.group({ | |
67 | + id: [''], | |
68 | + firstName: ['', forms_1.Validators.required], | |
69 | + lastName: ['', forms_1.Validators.required], | |
70 | + emailId: ['', forms_1.Validators.required] | |
71 | + // LastName: [''], | |
72 | + // Gender: ['', Validators.required], | |
73 | + // Email: [''] | |
74 | + }); | |
75 | + this.GetUserById(); | |
76 | + }; | |
77 | + //ngAfterviewint() { | |
78 | + // this.LoadUsers(); | |
79 | + //} | |
80 | + //getCustomerById(UserId) { | |
81 | + // return this.userservice.GetUserById(UserId) | |
82 | + // .map((response: Response) => response.json()) | |
83 | + // .catch(this._errorHandler) | |
84 | + //} | |
85 | + //formErrors = { | |
86 | + // 'firstName': '', | |
87 | + // 'lastName': '', | |
88 | + // 'email': '' | |
89 | + //}; | |
90 | + UpdateUserProfile.prototype.GetUserById = function () { | |
91 | + var _this = this; | |
92 | + this.userservice.GetUserById() | |
93 | + .subscribe(function (x) { console.log(x); _this.bindUsers(x); }, function (error) { return _this.error = error; }); | |
94 | + }; | |
95 | + UpdateUserProfile.prototype.UpdateUserProfile = function () { | |
96 | + var _this = this; | |
97 | + // debugger; | |
98 | + this.user = this.userFrm.value; | |
99 | + //if(this.user.) | |
100 | + //console.log(this.user); | |
101 | + var obj = this.user; | |
102 | + if (this.userFrm.valid) { | |
103 | + return this.userservice.UpdateUserProfileById(obj) | |
104 | + .subscribe(function (n) { return (_this.AfterInsertData(n)); }, function (error) { return _this.error = error; }); | |
105 | + } | |
106 | + }; | |
107 | + UpdateUserProfile.prototype.AfterInsertData = function (data) { | |
108 | + //debugger; | |
109 | + if (data.Status == "False") { | |
110 | + // this._confirmService.activate(data.ResponseMessage, "alertMsg"); | |
111 | + //setTimeout(() => this.amCode.nativeElement.focus(), 0); | |
112 | + // this.closeflag = false; | |
113 | + return false; | |
114 | + } | |
115 | + else { | |
116 | + this.status = true; | |
117 | + this._confirmService.activate("User Profile Updated Successfully.", "alertMsg"); | |
118 | + //this.profileModal.open(); | |
119 | + // this.submitted = false; | |
120 | + // this.GetAllAcctMgr(); | |
121 | + // this.DisableAllControls(); | |
122 | + // this.AccountManagerID.enable(); | |
123 | + // let accountManagerID: string = data.Id == null ? "" : data.Id.toString(); | |
124 | + // console.log(accountManagerID); | |
125 | + // this.GetAcctMgr(Number(accountManagerID)); | |
126 | + //this.GetAccountManagerListOptions(false); | |
127 | + // this.defautValue = data.id; | |
128 | + // this.BtnReset = true; | |
129 | + // this.BtnSave = true; | |
130 | + // this.BtnEdit = false; | |
131 | + // this.BtnNew = false; | |
132 | + // this.BtnDelete = false; | |
133 | + // this.Abbrevtion = this.Abbrev.value; | |
134 | + // setTimeout(() => this.AMform.controls["AccountManagerID"].setValue(accountManagerID.toString()), 1000); | |
135 | + // setTimeout(() => this.AMform.markAsPristine(), 2000); | |
136 | + } | |
137 | + //if (this.closeflag) { | |
138 | + // this.close.emit(null); | |
139 | + //} | |
140 | + //else { | |
141 | + //} | |
142 | + }; | |
143 | + UpdateUserProfile.prototype.bindUsers = function (data) { | |
144 | + //console.log(data); | |
145 | + //alert(JSON.stringify(data)); | |
146 | + this.user = data[0]; | |
147 | + console.log(this.user); | |
148 | + this.userFrm.controls['id'].setValue(this.user.Id); | |
149 | + this.userFrm.controls['firstName'].setValue(this.user.FirstName); | |
150 | + this.userFrm.controls['lastName'].setValue(this.user.LastName); | |
151 | + this.userFrm.controls['emailId'].setValue(this.user.EmailId); | |
152 | + // this.GetClientListOptions(false); | |
153 | + // this.GetCrossRefClientListOptions(false); | |
154 | + }; | |
155 | + UpdateUserProfile = __decorate([ | |
156 | + core_1.Component({ | |
157 | + templateUrl: './updateuserprofile.component.html' // '../../../../../wwwroot/html/UpdateProfile/updateuserprofile.component.html' | |
158 | + }), | |
159 | + __metadata("design:paramtypes", [user_service_1.UserService, router_1.Router, forms_1.FormBuilder, http_1.Http, | |
160 | + confirm_service_1.ConfirmService]) | |
161 | + ], UpdateUserProfile); | |
162 | + return UpdateUserProfile; | |
163 | +}()); | |
164 | +exports.UpdateUserProfile = UpdateUserProfile; | |
165 | +//# sourceMappingURL=updateuserprofile.component.js.map | |
0 | 166 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/components/UserEntity/updateuserprofile.component.js.map
0 → 100644
1 | +{"version":3,"file":"updateuserprofile.component.js","sourceRoot":"","sources":["../../../../../../src/app/components/UserEntity/updateuserprofile.component.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAA2E;AAC3E,2DAAyD;AACzD,0CAAyC;AACzC,wCAAiF;AAEjF,qDAA+C;AAC/C,sCAA+C;AAI/C,wEAAsE;AACtE,mBAAiB;AACjB,iCAA+B;AAC/B,oCAAkC;AAOlC;IAgBE,4BAA4B;IAC5B,+BAA+B;IAC/B,oBAAoB;IACpB,2BAAoB,WAAwB,EAAU,MAAc,EAAU,EAAe,EAAU,IAAU,EACvG,eAA+B;QADrB,gBAAW,GAAX,WAAW,CAAa;QAAU,WAAM,GAAN,MAAM,CAAQ;QAAU,OAAE,GAAF,EAAE,CAAa;QAAU,SAAI,GAAJ,IAAI,CAAM;QACvG,oBAAe,GAAf,eAAe,CAAgB;QAnBzC,WAAM,GAAS,CAAC,CAAC;QAIjB,eAAU,GAAY,KAAK,CAAC;QAI5B,YAAO,GAAW,MAAM,CAAC;QAMzB,iBAAY,GAAG,0CAA0C,CAAC;QA6G1D,8BAA8B;QAC9B,kBAAkB;QAClB,0BAA0B;QAC1B,gBAAgB;QAChB,GAAG;QACH,2BAA2B;QAE3B,wEAAwE;QACxE,kEAAkE;QAClE,kDAAkD;QAClD,8EAA8E;QAC9E,oDAAoD;QACpD,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0BAA0B;QAC1B,GAAG;QACH,QAAQ;QACR,GAAG;IACL,CAAC;IACD,qCAAS,GAAT,UAAU,IAAI;QAEZ,oBAAoB;QACpB,8BAA8B;QAC9B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;QAEpB,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACvB,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QAClD,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;QAChE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;QAC9D,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QAC7D,oCAAoC;QACpC,4CAA4C;IAC7C,CAAC;IA3HU,iBAAiB;QAJ7B,gBAAS,CAAC;YACT,WAAW,EAAC,oCAAoC,CAAC,+EAA+E;SACjI,CAAC;yCAqBiC,0BAAW,EAAkB,eAAM,EAAc,mBAAW,EAAgB,WAAI;YACtF,gCAAc;OApB9B,iBAAiB,CAuJ7B;IAAD,wBAAC;CAAA,AAvJD,IAuJC;AAvJY,8CAAiB"} | |
0 | 2 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/components/UserEntity/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 | +Object.defineProperty(exports, "__esModule", { value: true }); | |
12 | +var core_1 = require("@angular/core"); | |
13 | +//import { HttpClient, HttpParams, HttpRequest} from "@angular/common/http"; | |
14 | +var http_1 = require("@angular/http"); | |
15 | +require("rxjs/add/operator/map"); | |
16 | +require("rxjs/add/operator/catch"); | |
17 | +require("rxjs/add/observable/throw"); | |
18 | +require("rxjs/add/operator/do"); | |
19 | +var Observable_1 = require("rxjs/Observable"); | |
20 | +var global_1 = require("../../Shared/global"); | |
21 | +var UserService = /** @class */ (function () { | |
22 | + function UserService(http, commonService) { | |
23 | + this.http = http; | |
24 | + this.commonService = commonService; | |
25 | + } | |
26 | + //////////Get User Detail/////////////// | |
27 | + UserService.prototype.GetUserById = function () { | |
28 | + var _this = this; | |
29 | + debugger; | |
30 | + return this.http.get(this.commonService.resourceBaseUrl + "/api/GetUserProfile/" + this.commonService.UserId) | |
31 | + .map(this.extractData) | |
32 | + .catch(function (res) { return _this.handleError(res); }); | |
33 | + ; | |
34 | + }; | |
35 | + //////////Update User Detail/////////////// | |
36 | + UserService.prototype.UpdateUserProfileById = function (obj) { | |
37 | + var _this = this; | |
38 | + //let options = new RequestOptions({ headers: this.headers }); | |
39 | + return this.http.post(this.commonService.resourceBaseUrl + "/api/UpdateProfile", obj) | |
40 | + .map(this.extractData) | |
41 | + .catch(function (res) { return _this.handleError(res); }); | |
42 | + }; | |
43 | + //////////Update User Password/////////////// | |
44 | + UserService.prototype.ChangeUserPassword = function (obj) { | |
45 | + var _this = this; | |
46 | + //let options = new RequestOptions({ headers: this.headers }); | |
47 | + var jsonData = { 'id': obj.userId, 'newPassword': obj.newPassword }; | |
48 | + console.log(obj); | |
49 | + var headers = new http_1.Headers({ | |
50 | + 'Content-Type': 'application/json' | |
51 | + }); | |
52 | + return this.http.post(this.commonService.resourceBaseUrl + "/api/ChangeUserPassword", JSON.stringify(jsonData), { headers: headers }) | |
53 | + .map(this.extractData) | |
54 | + .catch(function (res) { return _this.handleError(res); }); | |
55 | + }; | |
56 | + //////////Update User Userid/////////////// | |
57 | + UserService.prototype.UpdateUserId = function (obj) { | |
58 | + var _this = this; | |
59 | + //let options = new RequestOptions({ headers: this.headers }); | |
60 | + return this.http.post(this.commonService.resourceBaseUrl + "/api/UpdateUserId", obj) | |
61 | + .map(this.extractData) | |
62 | + .catch(function (res) { return _this.handleError(res); }); | |
63 | + }; | |
64 | + /// Users Form/////// | |
65 | + UserService.prototype.GetUserType = function () { | |
66 | + var _this = this; | |
67 | + return this.http.get(this.commonService.resourceBaseUrl + "/api/GetUserType/" + this.commonService.UserType) | |
68 | + .map(this.extractData) | |
69 | + .catch(function (res) { return _this.handleError(res); }); | |
70 | + }; | |
71 | + UserService.prototype.GetAccountType = function () { | |
72 | + var _this = this; | |
73 | + return this.http.get(this.commonService.resourceBaseUrl + "/api/GetAccountType/" + this.commonService.AccountType) | |
74 | + .map(this.extractData) | |
75 | + .catch(function (res) { return _this.handleError(res); }); | |
76 | + }; | |
77 | + UserService.prototype.GetUserList = function (obj) { | |
78 | + var _this = this; | |
79 | + return this.http.get(this.commonService.resourceBaseUrl + "/api/Users?firstname=" + obj.FirstName + | |
80 | + "&lastname=" + obj.LastName + | |
81 | + "&emailid=" + obj.EmailId + | |
82 | + "&accountnumber=" + obj.AccountNumber + | |
83 | + "&usertypeid=" + obj.UserTypeId + | |
84 | + "&accounttypeid=" + obj.AccountTypeId) | |
85 | + .map(this.extractData) | |
86 | + .catch(function (res) { return _this.handleError(res); }); | |
87 | + }; | |
88 | + /// End Users ///// | |
89 | + UserService.prototype.extractData = function (res) { | |
90 | + debugger; | |
91 | + var body = res.json(); | |
92 | + return body; | |
93 | + }; | |
94 | + UserService.prototype.handleError = function (error) { | |
95 | + debugger; | |
96 | + // In a real world app, we might use a remote logging infrastructure | |
97 | + // We'd also dig deeper into the error to get a better message | |
98 | + var errMsg = (error.message) ? error.message : | |
99 | + error.status ? error.status + " - " + error.statusText : 'Server error'; | |
100 | + console.error(errMsg); // log to console instead | |
101 | + return Observable_1.Observable.throw(errMsg); | |
102 | + }; | |
103 | + UserService = __decorate([ | |
104 | + core_1.Injectable(), | |
105 | + __metadata("design:paramtypes", [http_1.Http, global_1.GlobalService]) | |
106 | + ], UserService); | |
107 | + return UserService; | |
108 | +}()); | |
109 | +exports.UserService = UserService; | |
110 | +//# sourceMappingURL=user.service.js.map | |
0 | 111 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/components/UserEntity/user.service.js.map
0 → 100644
1 | +{"version":3,"file":"user.service.js","sourceRoot":"","sources":["../../../../../../src/app/components/UserEntity/user.service.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAAmD;AACnD,4EAA4E;AAC5E,sCAAoF;AACpF,iCAA+B;AAC/B,mCAAiC;AACjC,qCAAmC;AAEnC,gCAA8B;AAC9B,8CAA6C;AAC7C,8CAAoD;AAEpD;IAEE,qBAAoB,IAAU,EAAU,aAA4B;QAAhD,SAAI,GAAJ,IAAI,CAAM;QAAU,kBAAa,GAAb,aAAa,CAAe;IAAK,CAAC;IAC1E,wCAAwC;IACxC,iCAAW,GAAX;QAAA,iBAMC;QALC,QAAQ,CAAC;QACT,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,aAAa,CAAC,eAAe,GAAG,sBAAsB,GAAC,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC;aACxG,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC;aACrB,KAAK,CAAC,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C,UAAU;YAC/B,iBAAiB,GAAG,GAAG,CAAC,aAAa,CAAC;aACrC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC;aACrB,KAAK,CAAC,UAAC,GAAa,IAAK,OAAA,KAAI,CAAC,WAAW,CAAC,GAAG,CAAC,EAArB,CAAqB,CAAC,CAAC;IACrD,CAAC;IACD,mBAAmB;IAEnB,iCAAW,GAAX,UAAY,GAAa;QACvB,QAAQ,CAAC;QAET,IAAI,IAAI,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC;QACtB,MAAM,CAAC,IAAI,CAAC;IACd,CAAC;IACD,iCAAW,GAAX,UAAY,KAAU;QACpB,QAAQ,CAAC;QACT,oEAAoE;QACpE,8DAA8D;QAC9D,IAAI,MAAM,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YAC5C,KAAK,CAAC,MAAM,CAAC,CAAC,CAAI,KAAK,CAAC,MAAM,WAAM,KAAK,CAAC,UAAY,CAAC,CAAC,CAAC,cAAc,CAAC;QAC1E,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,yBAAyB;QAChD,MAAM,CAAC,uBAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAClC,CAAC;IA7EU,WAAW;QADvB,iBAAU,EAAE;yCAGe,WAAI,EAAyB,sBAAa;OAFzD,WAAW,CAgFvB;IAAD,kBAAC;CAAA,AAhFD,IAgFC;AAhFY,kCAAW"} | |
0 | 2 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/components/UserEntity/users.component.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 | +Object.defineProperty(exports, "__esModule", { value: true }); | |
12 | +var core_1 = require("@angular/core"); | |
13 | +var user_service_1 = require("./user.service"); | |
14 | +var router_1 = require("@angular/router"); | |
15 | +var forms_1 = require("@angular/forms"); | |
16 | +var http_1 = require("@angular/http"); | |
17 | +var confirm_service_1 = require("../../Shared/Confirm/confirm.service"); | |
18 | +require("rxjs/Rx"); | |
19 | +require("rxjs/add/operator/map"); | |
20 | +require("rxjs/add/operator/filter"); | |
21 | +var UsersList = /** @class */ (function () { | |
22 | + //@ViewChild("profileModal") | |
23 | + //profileModal: ModalComponent; | |
24 | + //errorMessage: any; | |
25 | + function UsersList(userservice, router, fb, http, _confirmService) { | |
26 | + this.userservice = userservice; | |
27 | + this.router = router; | |
28 | + this.fb = fb; | |
29 | + this.http = http; | |
30 | + this._confirmService = _confirmService; | |
31 | + } | |
32 | + UsersList.prototype.ngOnInit = function () { | |
33 | + this.alerts = ''; | |
34 | + //this.userservice.GetUserById(this.UserId); | |
35 | + this.Users = this.fb.group({ | |
36 | + FirstName: [''], | |
37 | + LastName: [''], | |
38 | + EmailId: [''], | |
39 | + AccountNumber: [''], | |
40 | + UserTypeId: [''], | |
41 | + AccountTypeId: [''] | |
42 | + // Gender: ['', Validators.required], | |
43 | + // Email: [''] | |
44 | + }); | |
45 | + this.GetUserType(); | |
46 | + this.GetAccountType(); | |
47 | + //this.GetUserList(); | |
48 | + }; | |
49 | + UsersList.prototype.GetUserType = function () { | |
50 | + var _this = this; | |
51 | + this.userservice.GetUserType().subscribe(function (x) { _this.UserTypeList = x; }, function (error) { return _this.error = error; }); | |
52 | + }; | |
53 | + UsersList.prototype.GetAccountType = function () { | |
54 | + var _this = this; | |
55 | + this.userservice.GetAccountType().subscribe(function (x) { _this.AccountTypeList = x; }, function (error) { return _this.error = error; }); | |
56 | + }; | |
57 | + UsersList.prototype.GetUserList = function () { | |
58 | + //this.userservice.GetUserList().subscribe(x => { this.UserList = x; }, error => this.error = <any>error); | |
59 | + }; | |
60 | + UsersList.prototype.SearchUserList = function () { | |
61 | + var _this = this; | |
62 | + var UserFilterControl = this.Users.value; | |
63 | + this.userservice.GetUserList({ | |
64 | + FirstName: this.Users.controls['FirstName'].value, | |
65 | + LastName: this.Users.controls['LastName'].value, | |
66 | + EmailId: this.Users.controls['EmailId'].value, | |
67 | + AccountNumber: this.Users.controls['AccountNumber'].value, | |
68 | + UserTypeId: (this.Users.controls['UserTypeId'].value != null && this.Users.controls['UserTypeId'].value != '' ? this.Users.controls['UserTypeId'].value : 0), | |
69 | + AccountTypeId: (this.Users.controls['AccountTypeId'].value != null && this.Users.controls['AccountTypeId'].value != '' ? this.Users.controls['AccountTypeId'].value : 0), | |
70 | + }) | |
71 | + .subscribe(function (x) { _this.UserList = x; }, function (error) { return _this.error = error; }); | |
72 | + }; | |
73 | + UsersList.prototype.AfterInsertData = function (data) { | |
74 | + if (data == "success") { | |
75 | + this._confirmService.activate("Userid Updated Successfully.", "alertMsg"); | |
76 | + } | |
77 | + else { | |
78 | + this.alerts += '<span>' + data + '</span>'; | |
79 | + return false; | |
80 | + } | |
81 | + //if (this.closeflag) { | |
82 | + // this.close.emit(null); | |
83 | + //} | |
84 | + //else { | |
85 | + //} | |
86 | + }; | |
87 | + UsersList.prototype.ResetFormFields = function () { | |
88 | + //this.ChangeUserIdFrm.reset() | |
89 | + //this.ChangeUserIdFrm.controls['id'].setValue(this.user.Id) | |
90 | + //this.ChangeUserIdFrm.controls['loginid'].setValue(this.user.LoginId) | |
91 | + //this.ChangeUserIdFrm.controls['newloginid'].setValue('') | |
92 | + //this.ChangeUserIdFrm.controls['confirmloginid'].setValue('') | |
93 | + this.alerts = ''; | |
94 | + }; | |
95 | + UsersList = __decorate([ | |
96 | + core_1.Component({ | |
97 | + templateUrl: './users.component.html' // '../../../../../wwwroot/html/UpdateProfile/updateuserprofile.component.html' | |
98 | + }), | |
99 | + __metadata("design:paramtypes", [user_service_1.UserService, router_1.Router, forms_1.FormBuilder, http_1.Http, | |
100 | + confirm_service_1.ConfirmService]) | |
101 | + ], UsersList); | |
102 | + return UsersList; | |
103 | +}()); | |
104 | +exports.UsersList = UsersList; | |
105 | +//# sourceMappingURL=users.component.js.map | |
0 | 106 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/components/UserEntity/users.component.js.map
0 → 100644
1 | +{"version":3,"file":"users.component.js","sourceRoot":"","sources":["../../../../../../src/app/components/UserEntity/users.component.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAA2E;AAC3E,+CAA6C;AAC7C,0CAAyC;AACzC,wCAAiF;AAGjF,sCAA+C;AAI/C,wEAAsE;AACtE,mBAAiB;AACjB,iCAA+B;AAC/B,oCAAkC;AAOlC;IASE,4BAA4B;IAC5B,+BAA+B;IAC/B,oBAAoB;IACpB,mBAAoB,WAAwB,EAAU,MAAc,EAAU,EAAe,EAAU,IAAU,EACvG,eAA+B;QADrB,gBAAW,GAAX,WAAW,CAAa;QAAU,WAAM,GAAN,MAAM,CAAQ;QAAU,OAAE,GAAF,EAAE,CAAa;QAAU,SAAI,GAAJ,IAAI,CAAM;QACvG,oBAAe,GAAf,eAAe,CAAgB;IACrC,CAAC;IAEL,4BAAQ,GAAR;QACE,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;QACf,4CAA4C;QAC9C,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC;YACzB,SAAS,EAAC,CAAC,EAAE,CAAC;YACd,QAAQ,EAAE,CAAC,EAAE,CAAC;YACd,OAAO,EAAG,CAAC,EA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A8B;QAC9B,4DAA4D;QAC5D,sEAAsE;QACtE,0DAA0D;QAC1D,8DAA8D;QAC9D,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;IACnB,CAAC;IAtFU,SAAS;QAJrB,gBAAS,CAAC;YACT,WAAW,EAAC,wBAAwB,CAAC,+EAA+E;SACrH,CAAC;yCAciC,0BAAW,EAAkB,eAAM,EAAc,mBAAW,EAAgB,WAAI;YACtF,gCAAc;OAb9B,SAAS,CAwFrB;IAAD,gBAAC;CAAA,AAxFD,IAwFC;AAxFY,8BAAS"} | |
0 | 2 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/components/changeuserid.component.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 | +Object.defineProperty(exports, "__esModule", { value: true }); | |
12 | +var core_1 = require("@angular/core"); | |
13 | +var user_service_1 = require("./UpdateProfile/user.service"); | |
14 | +var router_1 = require("@angular/router"); | |
15 | +var forms_1 = require("@angular/forms"); | |
16 | +//import { Global } from '../../Shared/global'; | |
17 | +//import { DBOperation } from 'S'; | |
18 | +//import { Observable } from 'rxjs/Observable'; | |
19 | +var ChangeUserId = /** @class */ (function () { | |
20 | + function ChangeUserId(userservice, router, fb) { | |
21 | + this.userservice = userservice; | |
22 | + this.router = router; | |
23 | + this.fb = fb; | |
24 | + this.formErrors = { | |
25 | + 'firstName': '', | |
26 | + 'lastName': '', | |
27 | + 'email': '' | |
28 | + }; | |
29 | + this.validationMessages = { | |
30 | + 'firstName': { | |
31 | + 'required': 'First name is required.' | |
32 | + }, | |
33 | + 'lastName': { | |
34 | + 'required': 'Last name is required.' | |
35 | + }, | |
36 | + 'email': { | |
37 | + 'required': 'Email is required.', | |
38 | + 'pattern': 'Email pattern is not valid.' | |
39 | + } | |
40 | + }; | |
41 | + } | |
42 | + ChangeUserId.prototype.ngOnInit = function () { }; | |
43 | + ChangeUserId = __decorate([ | |
44 | + core_1.Component({ | |
45 | + templateUrl: '../components/changeuserid.component.html' | |
46 | + }), | |
47 | + __metadata("design:paramtypes", [user_service_1.UserService, router_1.Router, forms_1.FormBuilder]) | |
48 | + ], ChangeUserId); | |
49 | + return ChangeUserId; | |
50 | +}()); | |
51 | +exports.ChangeUserId = ChangeUserId; | |
52 | +//# sourceMappingURL=changeuserid.component.js.map | |
0 | 53 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/components/changeuserid.component.js.map
0 → 100644
1 | +{"version":3,"file":"changeuserid.component.js","sourceRoot":"","sources":["../../../../../src/app/components/changeuserid.component.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAAkD;AAClD,6DAA2D;AAC3D,0CAAyC;AACzC,wCAAoE;AAGpE,+CAA+C;AAC/C,kCAAkC;AAClC,+CAA+C;AAM/C;IAEE,sBAAoB,WAAwB,EAAU,MAAc,EAAU,EAAe;QAAzE,gBAAW,GAAX,WAAW,CAAa;QAAU,WAAM,GAAN,MAAM,CAAQ;QAAU,OAAE,GAAF,EAAE,CAAa;QAI3F,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;IArB+F,CAAC;IAEjG,+BAAQ,GAAR,cAAmB,CAAC;IAJX,YAAY;QAJxB,gBAAS,CAAC;YACP,WAAW,EAAE,2CAA2C;SAC3D,CAAC;yCAIiC,0BAAW,EAAkB,eAAM,EAAc,mBAAW;OAFlF,YAAY,CAyBxB;IAAD,mBAAC;CAAA,AAzBD,IAyBC;AAzBY,oCAAY"} | |
0 | 2 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/components/changeuserpassword.component.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 | +Object.defineProperty(exports, "__esModule", { value: true }); | |
12 | +var core_1 = require("@angular/core"); | |
13 | +var user_service_1 = require("./UpdateProfile/user.service"); | |
14 | +var router_1 = require("@angular/router"); | |
15 | +var forms_1 = require("@angular/forms"); | |
16 | +//import { Global } from '../../Shared/global'; | |
17 | +//import { DBOperation } from 'S'; | |
18 | +//import { Observable } from 'rxjs/Observable'; | |
19 | +var ChangeUserPassword = /** @class */ (function () { | |
20 | + function ChangeUserPassword(userservice, router, fb) { | |
21 | + this.userservice = userservice; | |
22 | + this.router = router; | |
23 | + this.fb = fb; | |
24 | + this.formErrors = { | |
25 | + 'firstName': '', | |
26 | + 'lastName': '', | |
27 | + 'email': '' | |
28 | + }; | |
29 | + this.validationMessages = { | |
30 | + 'firstName': { | |
31 | + 'required': 'First name is required.' | |
32 | + }, | |
33 | + 'lastName': { | |
34 | + 'required': 'Last name is required.' | |
35 | + }, | |
36 | + 'email': { | |
37 | + 'required': 'Email is required.', | |
38 | + 'pattern': 'Email pattern is not valid.' | |
39 | + } | |
40 | + }; | |
41 | + } | |
42 | + ChangeUserPassword.prototype.ngOnInit = function () { }; | |
43 | + ChangeUserPassword = __decorate([ | |
44 | + core_1.Component({ | |
45 | + templateUrl: '../components/changeuserpassword.component.html' | |
46 | + }), | |
47 | + __metadata("design:paramtypes", [user_service_1.UserService, router_1.Router, forms_1.FormBuilder]) | |
48 | + ], ChangeUserPassword); | |
49 | + return ChangeUserPassword; | |
50 | +}()); | |
51 | +exports.ChangeUserPassword = ChangeUserPassword; | |
52 | +//# sourceMappingURL=changeuserpassword.component.js.map | |
0 | 53 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/components/changeuserpassword.component.js.map
0 → 100644
1 | +{"version":3,"file":"changeuserpassword.component.js","sourceRoot":"","sources":["../../../../../src/app/components/changeuserpassword.component.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAAkD;AAClD,6DAA2D;AAC3D,0CAAyC;AACzC,wCAAoE;AAGpE,+CAA+C;AAC/C,kCAAkC;AAClC,+CAA+C;AAM/C;IAEE,4BAAoB,WAAwB,EAAU,MAAc,EAAU,EAAe;QAAzE,gBAAW,GAAX,WAAW,CAAa;QAAU,WAAM,GAAN,MAAM,CAAQ;QAAU,OAAE,GAAF,EAAE,CAAa;QAI3F,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;IArB8F,CAAC;IAEhG,qCAAQ,GAAR,cAAmB,CAAC;IAJX,kBAAkB;QAJ9B,gBAAS,CAAC;YACP,WAAW,EAAE,iDAAiD;SACjE,CAAC;yCAIiC,0BAAW,EAAkB,eAAM,EAAc,mBAAW;OAFlF,kBAAkB,CAyB9B;IAAD,yBAAC;CAAA,AAzBD,IAyBC;AAzBY,gDAAkB"} | |
0 | 2 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/model/add-user.interface.js
0 → 100644
400-SOURCECODE/Admin/dist/out-tsc/src/app/model/add-user.interface.js.map
0 → 100644
400-SOURCECODE/Admin/dist/out-tsc/src/app/model/data-model.js
0 → 100644
1 | +"use strict"; | |
2 | +Object.defineProperty(exports, "__esModule", { value: true }); | |
3 | +var AppSettings = /** @class */ (function () { | |
4 | + function AppSettings() { | |
5 | + } | |
6 | + return AppSettings; | |
7 | +}()); | |
8 | +exports.AppSettings = AppSettings; | |
9 | +var Menu = /** @class */ (function () { | |
10 | + function Menu() { | |
11 | + } | |
12 | + return Menu; | |
13 | +}()); | |
14 | +exports.Menu = Menu; | |
15 | +var MenuItem = /** @class */ (function () { | |
16 | + function MenuItem() { | |
17 | + } | |
18 | + return MenuItem; | |
19 | +}()); | |
20 | +exports.MenuItem = MenuItem; | |
21 | +var Footer = /** @class */ (function () { | |
22 | + function Footer() { | |
23 | + } | |
24 | + return Footer; | |
25 | +}()); | |
26 | +exports.Footer = Footer; | |
27 | +var FooterColumn = /** @class */ (function () { | |
28 | + function FooterColumn() { | |
29 | + } | |
30 | + return FooterColumn; | |
31 | +}()); | |
32 | +exports.FooterColumn = FooterColumn; | |
33 | +var FooterItem = /** @class */ (function () { | |
34 | + function FooterItem() { | |
35 | + } | |
36 | + return FooterItem; | |
37 | +}()); | |
38 | +exports.FooterItem = FooterItem; | |
39 | +var BannerItem = /** @class */ (function () { | |
40 | + function BannerItem() { | |
41 | + } | |
42 | + return BannerItem; | |
43 | +}()); | |
44 | +exports.BannerItem = BannerItem; | |
45 | +var BannerSettings = /** @class */ (function () { | |
46 | + function BannerSettings() { | |
47 | + } | |
48 | + return BannerSettings; | |
49 | +}()); | |
50 | +exports.BannerSettings = BannerSettings; | |
51 | +var ContentItem = /** @class */ (function () { | |
52 | + function ContentItem() { | |
53 | + } | |
54 | + return ContentItem; | |
55 | +}()); | |
56 | +exports.ContentItem = ContentItem; | |
57 | +var User = /** @class */ (function () { | |
58 | + function User(appName) { | |
59 | + this.apps = new Array(); | |
60 | + this.apps.push(appName); | |
61 | + } | |
62 | + return User; | |
63 | +}()); | |
64 | +exports.User = User; | |
65 | +var Address = /** @class */ (function () { | |
66 | + function Address() { | |
67 | + } | |
68 | + return Address; | |
69 | +}()); | |
70 | +exports.Address = Address; | |
71 | +var UserProfile = /** @class */ (function () { | |
72 | + function UserProfile() { | |
73 | + } | |
74 | + return UserProfile; | |
75 | +}()); | |
76 | +exports.UserProfile = UserProfile; | |
77 | +var AdminUser = /** @class */ (function () { | |
78 | + function AdminUser() { | |
79 | + } | |
80 | + return AdminUser; | |
81 | +}()); | |
82 | +exports.AdminUser = AdminUser; | |
83 | +//# sourceMappingURL=data-model.js.map | |
0 | 84 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/model/data-model.js.map
0 → 100644
1 | +{"version":3,"file":"data-model.js","sourceRoot":"","sources":["../../../../../src/app/model/data-model.ts"],"names":[],"mappings":";;AAAA;IAAA;IAGA,CAAC;IAAD,kBAAC;AAAD,CAAC,AAHD,IAGC;AAHY,kCAAW;AAKxB;IAAA;IAGA,CAAC;IAAD,WAAC;AAAD,CAAC,AAHD,IAGC;AAHY,oBAAI;AAKjB;IAAA;IAIA,CAAC;IAAD,eAAC;AAAD,CAAC,AAJD,IAIC;AAJY,4BAAQ;AAMrB;IAAA;IAGA,CAAC;IAAD,aAAC;AAAD,CAAC,AAHD,IAGC;AAHY,wBAAM;AAKnB;IAAA;IAIA,CAAC;IAAD,mBAAC;AAAD,CAAC,AAJD,IAIC;AAJY,oCAAY;AAMzB;IAAA;IAGA,CAAC;IAAD,iBAAC;AAAD,CAAC,AAHD,IAGC;AAHY,gCAAU;AAKvB;IAAA;IAKA,CAAC;IAAD,iBAAC;AAAD,CAAC,AALD,IAKC;AALY,gCAAU;AAOvB;IAAA;IAGA,CAAC;IAAD,qBAAC;AAAD,CAAC,AAHD,IAGC;AAHY,wCAAc;AAK3B;IAAA;IAQA,CAAC;IAAD,kBAAC;AAAD,CAAC,AARD,IAQC;AARY,kCAAW;AAWxB;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,oBAAI;AAgBjB;IAAA;IASA,CAAC;IAAD,cAAC;AAAD,CAAC,AATD,IASC;AATY,0BAAO;AAWpB;IAAA;IASA,CAAC;IAAD,kBAAC;AAAD,CAAC,AATD,IASC;AATY,kCAAW;AAWxB;IAAA;IAgBA,CAAC;IAAD,gBAAC;AAAD,CAAC,AAhBD,IAgBC;AAhBY,8BAAS"} | |
0 | 2 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/model/db-tables.js
0 → 100644
1 | +"use strict"; | |
2 | +Object.defineProperty(exports, "__esModule", { value: true }); | |
3 | +var State = /** @class */ (function () { | |
4 | + function State(Id, StateName) { | |
5 | + this.Id = Id; | |
6 | + this.StateName = StateName; | |
7 | + } | |
8 | + return State; | |
9 | +}()); | |
10 | +exports.State = State; | |
11 | +var Country = /** @class */ (function () { | |
12 | + function Country(Id, Name) { | |
13 | + this.Id = Id; | |
14 | + this.Name = Name; | |
15 | + } | |
16 | + return Country; | |
17 | +}()); | |
18 | +exports.Country = Country; | |
19 | +var AccountType = /** @class */ (function () { | |
20 | + function AccountType(Id, Title) { | |
21 | + this.Id = Id; | |
22 | + this.Title = Title; | |
23 | + } | |
24 | + AccountType.createEmptyAccountType = function () { | |
25 | + return new AccountType(0, ""); | |
26 | + }; | |
27 | + return AccountType; | |
28 | +}()); | |
29 | +exports.AccountType = AccountType; | |
30 | +var SecurityQuestions = /** @class */ (function () { | |
31 | + function SecurityQuestions(Id, Title) { | |
32 | + this.Id = Id; | |
33 | + this.Title = Title; | |
34 | + } | |
35 | + return SecurityQuestions; | |
36 | +}()); | |
37 | +exports.SecurityQuestions = SecurityQuestions; | |
38 | +var LicenseType = /** @class */ (function () { | |
39 | + function LicenseType(Id, Title) { | |
40 | + this.Id = Id; | |
41 | + this.Title = Title; | |
42 | + } | |
43 | + return LicenseType; | |
44 | +}()); | |
45 | +exports.LicenseType = LicenseType; | |
46 | +var UserType = /** @class */ (function () { | |
47 | + function UserType(Id, Title) { | |
48 | + this.Id = Id; | |
49 | + this.Title = Title; | |
50 | + } | |
51 | + return UserType; | |
52 | +}()); | |
53 | +exports.UserType = UserType; | |
54 | +//# sourceMappingURL=db-tables.js.map | |
0 | 55 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/model/db-tables.js.map
0 → 100644
1 | +{"version":3,"file":"db-tables.js","sourceRoot":"","sources":["../../../../../src/app/model/db-tables.ts"],"names":[],"mappings":";;AAAA;IACI,eACW,EAAU,EACV,SAAiB;QADjB,OAAE,GAAF,EAAE,CAAQ;QACV,cAAS,GAAT,SAAS,CAAQ;IACxB,CAAC;IACT,YAAC;AAAD,CAAC,AALD,IAKC;AALY,sBAAK;AAOlB;IACI,iBACW,EAAU,EACV,IAAY;QADZ,OAAE,GAAF,EAAE,CAAQ;QACV,SAAI,GAAJ,IAAI,CAAQ;IACnB,CAAC;IACT,cAAC;AAAD,CAAC,AALD,IAKC;AALY,0BAAO;AAOpB;IACI,qBACW,EAAU,EACV,KAAa;QADb,OAAE,GAAF,EAAE,CAAQ;QACV,UAAK,GAAL,KAAK,CAAQ;IACpB,CAAC;IAES,kCAAsB,GAApC;QACI,MAAM,CAAC,IAAI,WAAW,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAClC,CAAC;IACL,kBAAC;AAAD,CAAC,AATD,IASC;AATY,kCAAW;AAWxB;IACI,2BACW,EAAU,EACV,KAAa;QADb,OAAE,GAAF,EAAE,CAAQ;QACV,UAAK,GAAL,KAAK,CAAQ;IACpB,CAAC;IACT,wBAAC;AAAD,CAAC,AALD,IAKC;AALY,8CAAiB;AAO9B;IACI,qBACW,EAAU,EACV,KAAa;QADb,OAAE,GAAF,EAAE,CAAQ;QACV,UAAK,GAAL,KAAK,CAAQ;IACpB,CAAC;IACT,kBAAC;AAAD,CAAC,AALD,IAKC;AALY,kCAAW;AAOxB;IACI,kBACW,EAAU,EACV,KAAa;QADb,OAAE,GAAF,EAAE,CAAQ;QACV,UAAK,GAAL,KAAK,CAAQ;IACpB,CAAC;IACT,eAAC;AAAD,CAAC,AALD,IAKC;AALY,4BAAQ"} | |
0 | 2 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/services/application.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 | +Object.defineProperty(exports, "__esModule", { value: true }); | |
12 | +var core_1 = require("@angular/core"); | |
13 | +var http_1 = require("@angular/http"); | |
14 | +var router_1 = require("@angular/router"); | |
15 | +var Observable_1 = require("rxjs/Observable"); | |
16 | +require("rxjs/add/operator/map"); | |
17 | +require("rxjs/add/operator/catch"); | |
18 | +var ApplicationService = /** @class */ (function () { | |
19 | + function ApplicationService(http, router) { | |
20 | + this.http = http; | |
21 | + this.router = router; | |
22 | + if (this.currentUser == null) { | |
23 | + var user = localStorage.getItem("currentUser"); | |
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 | + ApplicationService.prototype.getAppSettings = function (applicationName) { | |
35 | + var headers = new http_1.Headers(); | |
36 | + headers.append('Content-Type', 'application/json'); | |
37 | + var params = new http_1.URLSearchParams(); | |
38 | + params.set("applicationName", applicationName); | |
39 | + params.set("userId", this.currentUser._id); | |
40 | + return this.http.get('DentalDecks.Server/api/AppSettings', { headers: headers, search: params }) | |
41 | + .map(this.extractData) | |
42 | + .catch(this.handleError); | |
43 | + }; | |
44 | + ApplicationService.prototype.getMenuItemsWithNoChildren = function (menuItems) { | |
45 | + if (this.appSettingsLoaded) { | |
46 | + var menuItemsSubset = new Array(); | |
47 | + for (var i = 0; i < menuItems.length; i++) { | |
48 | + if (menuItems[i].menuItems == null) { | |
49 | + for (var j = 0; j < menuItems[i].roles.length; j++) { | |
50 | + if (menuItems[i].roles[j] == this.currentUser.role) { | |
51 | + menuItemsSubset.push(menuItems[i]); | |
52 | + break; | |
53 | + } | |
54 | + } | |
55 | + } | |
56 | + } | |
57 | + return menuItemsSubset; | |
58 | + } | |
59 | + }; | |
60 | + ApplicationService.prototype.getMenuItemsWithChildren = function (menuItems) { | |
61 | + if (this.appSettingsLoaded) { | |
62 | + var menuItemsSubset = new Array(); | |
63 | + for (var i = 0; i < menuItems.length; i++) { | |
64 | + if (menuItems[i].menuItems != null) { | |
65 | + for (var j = 0; j < menuItems[i].roles.length; j++) { | |
66 | + if (menuItems[i].roles[j] == this.currentUser.role) { | |
67 | + menuItemsSubset.push(menuItems[i]); | |
68 | + break; | |
69 | + } | |
70 | + } | |
71 | + } | |
72 | + } | |
73 | + return menuItemsSubset; | |
74 | + } | |
75 | + }; | |
76 | + ApplicationService.prototype.login = function (applicationName, username, password) { | |
77 | + var headers = new http_1.Headers(); | |
78 | + headers.append('Content-Type', 'application/json'); | |
79 | + var params = new http_1.URLSearchParams(); | |
80 | + params.set("applicationName", applicationName); | |
81 | + params.set("username", username); | |
82 | + params.set("password", password); | |
83 | + return this.http.get('DentalDecks.Server/api/Authenticate', { headers: headers, search: params }) | |
84 | + .map(this.extractData) | |
85 | + .catch(this.handleError); | |
86 | + }; | |
87 | + ApplicationService.prototype.logout = function () { | |
88 | + this.currentUser = null; | |
89 | + localStorage.removeItem("currentUser"); | |
90 | + this.router.navigate(['/login']); | |
91 | + }; | |
92 | + ApplicationService.prototype.resetPassword = function (username) { | |
93 | + var headers = new http_1.Headers(); | |
94 | + headers.append('Content-Type', 'application/json'); | |
95 | + var user = new Object(); | |
96 | + user.emailAddress = username; | |
97 | + return this.http.post('DentalDecks.Server/api/Password', JSON.stringify(user), { headers: headers }) | |
98 | + .map(this.extractData) | |
99 | + .catch(this.handleError); | |
100 | + }; | |
101 | + ApplicationService.prototype.updatePassword = function (userId, password) { | |
102 | + var headers = new http_1.Headers(); | |
103 | + headers.append('Content-Type', 'application/json'); | |
104 | + var user = new Object(); | |
105 | + user.userId = userId; | |
106 | + user.password = password; | |
107 | + return this.http.post('DentalDecks.Server/api/UpdatePassword', JSON.stringify(user), { headers: headers }) | |
108 | + .map(this.extractData) | |
109 | + .catch(this.handleError); | |
110 | + }; | |
111 | + ApplicationService.prototype.isResetPasswordExpired = function (userId) { | |
112 | + var headers = new http_1.Headers(); | |
113 | + headers.append('Content-Type', 'application/json'); | |
114 | + var params = new http_1.URLSearchParams(); | |
115 | + params.set("userId", userId); | |
116 | + return this.http.get('DentalDecks.Server/api/Password', { headers: headers, search: params }) | |
117 | + .map(this.extractData) | |
118 | + .catch(this.handleError); | |
119 | + }; | |
120 | + ApplicationService.prototype.getLongDate = function (date) { | |
121 | + var returnValue = new Date(date); | |
122 | + return returnValue.toLocaleDateString(); | |
123 | + }; | |
124 | + ApplicationService.prototype.getDateTime = function (date) { | |
125 | + var orderDate = ""; | |
126 | + if (date != null && date != "") | |
127 | + orderDate = new Date(date).toLocaleDateString() + " " + new Date(date).toLocaleTimeString(); | |
128 | + return orderDate; | |
129 | + }; | |
130 | + ApplicationService.prototype.getRelativeDate = function (date) { | |
131 | + if (date != null) { | |
132 | + date = new Date(date); | |
133 | + var delta = Math.round((+new Date - date) / 1000); | |
134 | + var minute = 60, hour = minute * 60, day = hour * 24, week = day * 7; | |
135 | + var fuzzy; | |
136 | + if (delta < 30) { | |
137 | + fuzzy = 'just now.'; | |
138 | + } | |
139 | + else if (delta < minute) { | |
140 | + fuzzy = delta + ' seconds ago.'; | |
141 | + } | |
142 | + else if (delta < 2 * minute) { | |
143 | + fuzzy = 'a minute ago.'; | |
144 | + } | |
145 | + else if (delta < hour) { | |
146 | + fuzzy = Math.floor(delta / minute) + ' minutes ago.'; | |
147 | + } | |
148 | + else if (Math.floor(delta / hour) == 1) { | |
149 | + fuzzy = '1 hour ago.'; | |
150 | + } | |
151 | + else if (delta < day) { | |
152 | + fuzzy = Math.floor(delta / hour) + ' hours ago.'; | |
153 | + } | |
154 | + else if (delta < day * 2 && delta > day) { | |
155 | + fuzzy = 'yesterday'; | |
156 | + } | |
157 | + else { | |
158 | + fuzzy = Math.floor(delta / (60 * 60 * 24)) + ' days ago'; | |
159 | + } | |
160 | + return fuzzy; | |
161 | + } | |
162 | + else { | |
163 | + return ""; | |
164 | + } | |
165 | + }; | |
166 | + ApplicationService.prototype.extractData = function (res) { | |
167 | + var body = res.json(); | |
168 | + return body || {}; | |
169 | + }; | |
170 | + ApplicationService.prototype.handleError = function (error) { | |
171 | + // In a real world app, we might use a remote logging infrastructure | |
172 | + var errMsg; | |
173 | + if (error instanceof http_1.Response) { | |
174 | + var body = error.json() || ''; | |
175 | + var err = body.error || JSON.stringify(body); | |
176 | + errMsg = error.status + " - " + (error.statusText || '') + " " + err; | |
177 | + } | |
178 | + else { | |
179 | + errMsg = error.message ? error.message : error.toString(); | |
180 | + } | |
181 | + console.error(errMsg); | |
182 | + return Observable_1.Observable.throw(errMsg); | |
183 | + }; | |
184 | + ApplicationService.prototype.getAccountTypes = function () { | |
185 | + return this.http.get('http://localhost:85/AIAHTML5.Server/api/accounttype') | |
186 | + .map(this.extractData) | |
187 | + .catch(this.handleError); | |
188 | + }; | |
189 | + ApplicationService.prototype.getStates = function () { | |
190 | + return this.http.get('http://localhost:85/AIAHTML5.Server/api/state') | |
191 | + .map(this.extractData) | |
192 | + .catch(this.handleError); | |
193 | + }; | |
194 | + ApplicationService.prototype.getCountries = function () { | |
195 | + return this.http.get('http://localhost:85/AIAHTML5.Server/api/country') | |
196 | + .map(this.extractData) | |
197 | + .catch(this.handleError); | |
198 | + }; | |
199 | + ApplicationService.prototype.getSecurityQuestions = function () { | |
200 | + return this.http.get('http://localhost:85/AIAHTML5.Server/api/securityquestionlist') | |
201 | + .map(this.extractData) | |
202 | + .catch(this.handleError); | |
203 | + }; | |
204 | + ApplicationService.prototype.getLicenseTypes = function () { | |
205 | + return this.http.get('http://localhost:85/AIAHTML5.Server/api/licensetype') | |
206 | + .map(this.extractData) | |
207 | + .catch(this.handleError); | |
208 | + }; | |
209 | + ApplicationService = __decorate([ | |
210 | + core_1.Injectable(), | |
211 | + __metadata("design:paramtypes", [http_1.Http, router_1.Router]) | |
212 | + ], ApplicationService); | |
213 | + return ApplicationService; | |
214 | +}()); | |
215 | +exports.ApplicationService = ApplicationService; | |
216 | +//# sourceMappingURL=application.service.js.map | |
0 | 217 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/services/application.service.js.map
0 → 100644
1 | +{"version":3,"file":"application.service.js","sourceRoot":"","sources":["../../../../../src/app/services/application.service.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAAyC;AACzC,sCAAyF;AACzF,0CAA2C;AAE3C,8CAA6C;AAC7C,iCAA+B;AAC/B,mCAAiC;AAWjC;IAcI,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,KAAK,CAAC,IAAI,CAAC,CAAC;gBACpC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;YACzB,CAAC;QACL,CAAC;QAED,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;IAEM,2CAAc,GAArB,UAAsB,eAAuB;QACzC,IAAI,OAAO,GAAG,IAAI,cAAO,EAAE,CAAC;QAC5B,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAAC;QAEnD,IAAI,MAAM,GAAG,IAAI,sBAAe,EAAE,CAAC;QACnC,MAAM,CAAC,GA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AAtB;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;IAvOQ,kBAAkB;QAD9B,iBAAU,EAAE;yCAeiB,WAAI,EAAkB,eAAM;OAd7C,kBAAkB,CAwO9B;IAAD,yBAAC;CAAA,AAxOD,IAwOC;AAxOY,gDAAkB"} | |
0 | 2 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/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 | +Object.defineProperty(exports, "__esModule", { value: true }); | |
12 | +var core_1 = require("@angular/core"); | |
13 | +var http_1 = require("@angular/http"); | |
14 | +var router_1 = require("@angular/router"); | |
15 | +var Observable_1 = require("rxjs/Observable"); | |
16 | +require("rxjs/add/operator/map"); | |
17 | +require("rxjs/add/operator/catch"); | |
18 | +//import { AppSettings, User } from '../model/data-model'; | |
19 | +var UpdateUserService = /** @class */ (function () { | |
20 | + function UpdateUserService(http, router) { | |
21 | + //if (this.currentUser == null) { | |
22 | + // var user = localStorage.getItem("currentUser"); | |
23 | + this.http = http; | |
24 | + this.router = router; | |
25 | + // if (user != null) { | |
26 | + // this.currentUser = JSON.parse(user); | |
27 | + // this.loggedIn = true; | |
28 | + // } | |
29 | + //} | |
30 | + this.userId = 0; | |
31 | + this.firstName = ""; | |
32 | + this.lastName = ""; | |
33 | + this.emailId = ""; | |
34 | + } | |
35 | + UpdateUserService.prototype.extractData = function (res) { | |
36 | + var body = res.json(); | |
37 | + return body || {}; | |
38 | + }; | |
39 | + UpdateUserService.prototype.handleError = function (error) { | |
40 | + // In a real world app, we might use a remote logging infrastructure | |
41 | + var errMsg; | |
42 | + if (error instanceof http_1.Response) { | |
43 | + var body = error.json() || ''; | |
44 | + var err = body.error || JSON.stringify(body); | |
45 | + errMsg = error.status + " - " + (error.statusText || '') + " " + err; | |
46 | + } | |
47 | + else { | |
48 | + errMsg = error.message ? error.message : error.toString(); | |
49 | + } | |
50 | + console.error(errMsg); | |
51 | + return Observable_1.Observable.throw(errMsg); | |
52 | + }; | |
53 | + UpdateUserService.prototype.UpdateUserProfile = function (applicationName, strFirstName, strLastName, strEmailID) { | |
54 | + console.log('inside update-user service -2'); | |
55 | + var usrID; | |
56 | + usrID = 1; | |
57 | + //let headers = new Headers({ 'Content-Type': 'application/json' }); | |
58 | + var headers = new http_1.Headers(); | |
59 | + headers.append('Content-type', 'application/x-www-form-urlencoded'); | |
60 | + var options = new http_1.RequestOptions({ headers: headers }); | |
61 | + var body = 'userId=' + usrID + '&emailId=' + strEmailID + '&firstName=' + strFirstName + '&lastName=' + strLastName; | |
62 | + console.log(body); | |
63 | + var urlSearchParams = new http_1.URLSearchParams(); | |
64 | + urlSearchParams.append('userId', usrID.toString()); | |
65 | + urlSearchParams.append('firstName', strFirstName); | |
66 | + urlSearchParams.append('lastName', strLastName); | |
67 | + urlSearchParams.append('emailId', strEmailID); | |
68 | + var body2 = urlSearchParams.toString(); | |
69 | + return this.http.post('http://localhost:85/AIAHTML5.Server/api/updateprofile', body, options) | |
70 | + .map(function (response) { | |
71 | + console.log(response); | |
72 | + var body = response.json(); | |
73 | + console.log(body); | |
74 | + }) | |
75 | + .catch(this.handleError); | |
76 | + }; | |
77 | + UpdateUserService.prototype.GetUserDetailsByIdandLoginId = function (id, loginId) { | |
78 | + console.log('inside user-service getUserDetailsById'); | |
79 | + debugger; | |
80 | + var headers = new http_1.Headers(); | |
81 | + headers.append('Content-Type', 'application/json'); | |
82 | + //headers.append('Content-type', 'application/x-www-form-urlencoded'); | |
83 | + var options = new http_1.RequestOptions({ headers: headers }); | |
84 | + var params = new http_1.URLSearchParams(); | |
85 | + params.append('iUserId', id.toString()); | |
86 | + params.append('sLoginId', loginId); | |
87 | + return this.http.get('http://localhost:85/AIAHTML5.Server/api/changeuserid', { headers: headers, search: params }) | |
88 | + .map(this.extractData) | |
89 | + .catch(this.handleError); | |
90 | + }; | |
91 | + UpdateUserService.prototype.UpdateUserId = function (id, newLoginId) { | |
92 | + console.log('inside user-service updateUserId'); | |
93 | + var headers = new http_1.Headers(); | |
94 | + headers.append('Content-type', 'application/x-www-form-urlencoded'); | |
95 | + var options = new http_1.RequestOptions({ headers: headers }); | |
96 | + var params = new http_1.URLSearchParams(); | |
97 | + params.append('iUserId', id.toString()); | |
98 | + params.append('newLoginId', newLoginId); | |
99 | + var body = params.toString(); | |
100 | + return this.http.post('http://localhost:85/AIAHTML5.Server/api/changeuserid', body, options) | |
101 | + .map(this.extractData) | |
102 | + .catch(this.handleError); | |
103 | + }; | |
104 | + UpdateUserService.prototype.GetUserDetailsByLoginIdandPassword = function (loginId, password) { | |
105 | + console.log('inside user-service getUserDetailsByLoginIdandPassword'); | |
106 | + debugger; | |
107 | + var headers = new http_1.Headers(); | |
108 | + headers.append('Content-Type', 'application/json'); | |
109 | + //headers.append('Content-type', 'application/x-www-form-urlencoded'); | |
110 | + var options = new http_1.RequestOptions({ headers: headers }); | |
111 | + var params = new http_1.URLSearchParams(); | |
112 | + params.append('sLoginId', loginId); | |
113 | + params.append('sPassword', password); | |
114 | + return this.http.get('http://localhost:85/AIAHTML5.Server/api/changeuserpassword', { headers: headers, search: params }) | |
115 | + .map(this.extractData) | |
116 | + .catch(this.handleError); | |
117 | + }; | |
118 | + UpdateUserService.prototype.UpdateUserPassword = function (id, newPassword) { | |
119 | + console.log('inside user-service UpdateUserPassword'); | |
120 | + var headers = new http_1.Headers(); | |
121 | + headers.append('Content-type', 'application/x-www-form-urlencoded'); | |
122 | + var options = new http_1.RequestOptions({ headers: headers }); | |
123 | + var params = new http_1.URLSearchParams(); | |
124 | + params.append('iUserId', id.toString()); | |
125 | + params.append('newPassword', newPassword); | |
126 | + var body = params.toString(); | |
127 | + return this.http.post('http://localhost:85/AIAHTML5.Server/api/changeuserpassword', body, options) | |
128 | + .map(this.extractData) | |
129 | + .catch(this.handleError); | |
130 | + }; | |
131 | + UpdateUserService = __decorate([ | |
132 | + core_1.Injectable(), | |
133 | + __metadata("design:paramtypes", [http_1.Http, router_1.Router]) | |
134 | + ], UpdateUserService); | |
135 | + return UpdateUserService; | |
136 | +}()); | |
137 | +exports.UpdateUserService = UpdateUserService; | |
138 | +//# sourceMappingURL=update-user.service.js.map | |
0 | 139 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/app/services/update-user.service.js.map
0 → 100644
1 | +{"version":3,"file":"update-user.service.js","sourceRoot":"","sources":["../../../../../src/app/services/update-user.service.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAA2C;AAC3C,sCAAyF;AACzF,0CAAyC;AAEzC,8CAA6C;AAC7C,iCAA+B;AAC/B,mCAAiC;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,IAAI,GAAG,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC;YAChC,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js
0 → 100644
1 | +"use strict"; | |
2 | +// The file contents for the current environment will overwrite these during build. | |
3 | +// The build system defaults to the dev environment which uses `environment.ts`, but if you do | |
4 | +// `ng build --env=prod` then `environment.prod.ts` will be used instead. | |
5 | +// The list of which env maps to which file can be found in `.angular-cli.json`. | |
6 | +Object.defineProperty(exports, "__esModule", { value: true }); | |
7 | +exports.environment = { | |
8 | + production: false | |
9 | +}; | |
10 | +//# sourceMappingURL=environment.js.map | |
0 | 11 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/environments/environment.js.map
0 → 100644
400-SOURCECODE/Admin/dist/out-tsc/src/environments/environment.prod.js
0 → 100644
400-SOURCECODE/Admin/dist/out-tsc/src/environments/environment.prod.js.map
0 → 100644
400-SOURCECODE/Admin/dist/out-tsc/src/main.js
0 → 100644
1 | +"use strict"; | |
2 | +Object.defineProperty(exports, "__esModule", { value: true }); | |
3 | +var core_1 = require("@angular/core"); | |
4 | +var platform_browser_dynamic_1 = require("@angular/platform-browser-dynamic"); | |
5 | +var app_module_1 = require("./app/app.module"); | |
6 | +var environment_1 = require("./environments/environment"); | |
7 | +if (environment_1.environment.production) { | |
8 | + core_1.enableProdMode(); | |
9 | +} | |
10 | +platform_browser_dynamic_1.platformBrowserDynamic().bootstrapModule(app_module_1.AppModule); | |
11 | +//# sourceMappingURL=main.js.map | |
0 | 12 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/main.js.map
0 → 100644
1 | +{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/main.ts"],"names":[],"mappings":";;AAAA,sCAA+C;AAC/C,8EAA2E;AAE3E,+CAA6C;AAC7C,0DAAyD;AAEzD,EAAE,CAAC,CAAC,yBAAW,CAAC,UAAU,CAAC,CAAC,CAAC;IAC3B,qBAAc,EAAE,CAAC;AACnB,CAAC;AAED,iDAAsB,EAAE,CAAC,eAAe,CAAC,sBAAS,CAAC,CAAC"} | |
0 | 2 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/polyfills.js
0 → 100644
1 | +"use strict"; | |
2 | +/** | |
3 | + * This file includes polyfills needed by Angular and is loaded before the app. | |
4 | + * You can add your own extra polyfills to this file. | |
5 | + * | |
6 | + * This file is divided into 2 sections: | |
7 | + * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. | |
8 | + * 2. Application imports. Files imported after ZoneJS that should be loaded before your main | |
9 | + * file. | |
10 | + * | |
11 | + * The current setup is for so-called "evergreen" browsers; the last versions of browsers that | |
12 | + * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), | |
13 | + * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. | |
14 | + * | |
15 | + * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html | |
16 | + */ | |
17 | +Object.defineProperty(exports, "__esModule", { value: true }); | |
18 | +/*************************************************************************************************** | |
19 | + * BROWSER POLYFILLS | |
20 | + */ | |
21 | +/** IE9, IE10 and IE11 requires all of the following polyfills. **/ | |
22 | +// import 'core-js/es6/symbol'; | |
23 | +// import 'core-js/es6/object'; | |
24 | +// import 'core-js/es6/function'; | |
25 | +// import 'core-js/es6/parse-int'; | |
26 | +// import 'core-js/es6/parse-float'; | |
27 | +// import 'core-js/es6/number'; | |
28 | +// import 'core-js/es6/math'; | |
29 | +// import 'core-js/es6/string'; | |
30 | +// import 'core-js/es6/date'; | |
31 | +// import 'core-js/es6/array'; | |
32 | +// import 'core-js/es6/regexp'; | |
33 | +// import 'core-js/es6/map'; | |
34 | +// import 'core-js/es6/weak-map'; | |
35 | +// import 'core-js/es6/set'; | |
36 | +/** IE10 and IE11 requires the following for NgClass support on SVG elements */ | |
37 | +// import 'classlist.js'; // Run `npm install --save classlist.js`. | |
38 | +/** Evergreen browsers require these. **/ | |
39 | +require("core-js/es6/reflect"); | |
40 | +require("core-js/es7/reflect"); | |
41 | +/** | |
42 | + * Required to support Web Animations `@angular/animation`. | |
43 | + * Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation | |
44 | + **/ | |
45 | +// import 'web-animations-js'; // Run `npm install --save web-animations-js`. | |
46 | +/*************************************************************************************************** | |
47 | + * Zone JS is required by Angular itself. | |
48 | + */ | |
49 | +require("zone.js/dist/zone"); // Included with Angular CLI. | |
50 | +/*************************************************************************************************** | |
51 | + * APPLICATION IMPORTS | |
52 | + */ | |
53 | +/** | |
54 | + * Date, currency, decimal and percent pipes. | |
55 | + * Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10 | |
56 | + */ | |
57 | +// import 'intl'; // Run `npm install --save intl`. | |
58 | +/** | |
59 | + * Need to import at least one locale-data with intl. | |
60 | + */ | |
61 | +// import 'intl/locale-data/jsonp/en'; | |
62 | +//# sourceMappingURL=polyfills.js.map | |
0 | 63 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/polyfills.js.map
0 → 100644
1 | +{"version":3,"file":"polyfills.js","sourceRoot":"","sources":["../../../src/polyfills.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH;;GAEG;AAEH,mEAAmE;AACnE,+BAA+B;AAC/B,+BAA+B;AAC/B,iCAAiC;AACjC,kCAAkC;AAClC,oCAAoC;AACpC,+BAA+B;AAC/B,6BAA6B;AAC7B,+BAA+B;AAC/B,6BAA6B;AAC7B,8BAA8B;AAC9B,+BAA+B;AAC/B,4BAA4B;AAC5B,iCAAiC;AACjC,4BAA4B;AAE5B,+EAA+E;AAC/E,oEAAoE;AAEpE,yCAAyC;AACzC,+BAA6B;AAC7B,+BAA6B;AAG7B;;;IAGI;AACJ,8EAA8E;AAI9E;;GAEG;AACH,6BAA2B,CAAE,6BAA6B;AAI1D;;GAEG;AAEH;;;GAGG;AACH,oDAAoD;AACpD;;GAEG;AACH,sCAAsC"} | |
0 | 2 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/test.js
0 → 100644
1 | +"use strict"; | |
2 | +// This file is required by karma.conf.js and loads recursively all the .spec and framework files | |
3 | +Object.defineProperty(exports, "__esModule", { value: true }); | |
4 | +require("zone.js/dist/long-stack-trace-zone"); | |
5 | +require("zone.js/dist/proxy.js"); | |
6 | +require("zone.js/dist/sync-test"); | |
7 | +require("zone.js/dist/jasmine-patch"); | |
8 | +require("zone.js/dist/async-test"); | |
9 | +require("zone.js/dist/fake-async-test"); | |
10 | +var testing_1 = require("@angular/core/testing"); | |
11 | +var testing_2 = require("@angular/platform-browser-dynamic/testing"); | |
12 | +// Prevent Karma from running prematurely. | |
13 | +__karma__.loaded = function () { }; | |
14 | +// First, initialize the Angular testing environment. | |
15 | +testing_1.getTestBed().initTestEnvironment(testing_2.BrowserDynamicTestingModule, testing_2.platformBrowserDynamicTesting()); | |
16 | +// Then we find all the tests. | |
17 | +var context = require.context('./', true, /\.spec\.ts$/); | |
18 | +// And load the modules. | |
19 | +context.keys().map(context); | |
20 | +// Finally, start Karma to run the tests. | |
21 | +__karma__.start(); | |
22 | +//# sourceMappingURL=test.js.map | |
0 | 23 | \ No newline at end of file | ... | ... |
400-SOURCECODE/Admin/dist/out-tsc/src/test.js.map
0 → 100644
1 | +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../../src/test.ts"],"names":[],"mappings":";AAAA,iGAAiG;;AAEjG,8CAA4C;AAC5C,iCAA+B;AAC/B,kCAAgC;AAChC,sCAAoC;AACpC,mCAAiC;AACjC,wCAAsC;AACtC,iDAAmD;AACnD,qEAGmD;AAMnD,0CAA0C;AAC1C,SAAS,CAAC,MAAM,GAAG,cAAa,CAAC,CAAC;AAElC,qDAAqD;AACrD,oBAAU,EAAE,CAAC,mBAAmB,CAC9B,qCAA2B,EAC3B,uCAA6B,EAAE,CAChC,CAAC;AACF,8BAA8B;AAC9B,IAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,aAAa,CAAC,CAAC;AAC3D,wBAAwB;AACxB,OAAO,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AAC5B,yCAAyC;AACzC,SAAS,CAAC,KAAK,EAAE,CAAC"} | |
0 | 2 | \ No newline at end of file | ... | ... |