Broker System for Supercredit
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

71 line
2.9KB

  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. exports.__esModule = true;
  9. exports.LoanEditComponent = void 0;
  10. var core_1 = require("@angular/core");
  11. var forms_1 = require("@angular/forms");
  12. var LoanEditComponent = /** @class */ (function () {
  13. //form access
  14. //@ViewChild('birthDate', {static: true}) birthDate: LoanEditComponent;
  15. function LoanEditComponent() {
  16. //popup
  17. this.dialogOpened = false;
  18. this.windowOpened = false;
  19. //test
  20. this.somedata = "opened";
  21. this.min = new Date(2015, 0, 1);
  22. this.max = new Date(2030, 4, 31);
  23. this.registerForm = new forms_1.FormGroup({
  24. transID: new forms_1.FormControl(),
  25. submissionDate: new forms_1.FormControl(new Date(2020, 0, 10)),
  26. clientNames: new forms_1.FormControl([1]),
  27. brokers: new forms_1.FormControl([2]),
  28. referals: new forms_1.FormControl([3]),
  29. status: new forms_1.FormControl(),
  30. lender: new forms_1.FormControl(),
  31. limit: new forms_1.FormControl(),
  32. settlementDate: new forms_1.FormControl(new Date(2020, 0, 9))
  33. });
  34. this.listClientNames = [
  35. { text: 'John', value: 1 },
  36. { text: 'Steven', value: 2 },
  37. { text: 'William', value: 3 }
  38. ];
  39. this.statis = { text: 'Female', value: 2 };
  40. }
  41. LoanEditComponent.prototype.ngOnInit = function () {
  42. };
  43. LoanEditComponent.prototype.close = function (component) {
  44. this.somedata = "" + Math.random();
  45. this[component + 'Opened'] = false;
  46. };
  47. LoanEditComponent.prototype.open = function (component) {
  48. //this.somedata = "" + Math.random();
  49. this[component + 'Opened'] = true;
  50. };
  51. LoanEditComponent.prototype.action = function (status) {
  52. console.log("Dialog result: " + status);
  53. this.dialogOpened = false;
  54. };
  55. LoanEditComponent.prototype.submitForm = function () {
  56. this.registerForm.markAllAsTouched();
  57. };
  58. LoanEditComponent.prototype.clearForm = function () {
  59. this.registerForm.reset();
  60. };
  61. LoanEditComponent = __decorate([
  62. core_1.Component({
  63. selector: 'app-loan-edit',
  64. templateUrl: './loan-edit.component.html',
  65. styleUrls: ['./loan-edit.component.scss']
  66. })
  67. ], LoanEditComponent);
  68. return LoanEditComponent;
  69. }());
  70. exports.LoanEditComponent = LoanEditComponent;