Commit 4a634f657caea7fef57dc44b8c19aa7e586a0d68
1 parent
04be3b06
Committing updated code
Showing
3 changed files
with
71 additions
and
23 deletions
400-SOURCECODE/AIAHTML5.Admin/app/components/add-new-license.component.html
... | ... | @@ -35,7 +35,7 @@ |
35 | 35 | <option value="4">Reseller</option> |
36 | 36 | </select>--> |
37 | 37 | <select id="LicenseType" formControlName="licenseType" class="form-control" required> |
38 | - <option *ngFor="let lic of licenseTypes" [value]="lic.id">{{lic.title}}</option> | |
38 | + <option *ngFor="let lic of licenseTypes" [value]="lic.id">{{lic.title}}</option> | |
39 | 39 | </select> |
40 | 40 | <div *ngIf="formErrors.licenseType" class="alert alert-danger"> |
41 | 41 | {{ formErrors.licenseType }} |
... | ... | @@ -97,7 +97,7 @@ |
97 | 97 | <div class="form-group marginTop26"> |
98 | 98 | <label for="AccountNo" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0">Account No <span class="red">*</span> : </label> |
99 | 99 | <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> |
100 | - <input type="text" class="form-control input-sm" id="AccountNo" placeholder="" formControlName="accountNo" required> | |
100 | + <input type="text" class="form-control input-sm" id="AccountNo" placeholder="" [(ngModel)]="accountNo" formControlName="accountNo" required> | |
101 | 101 | </div> |
102 | 102 | <div *ngIf="formErrors.accountNo" class="alert alert-danger"> |
103 | 103 | {{ formErrors.accountNo }} |
... | ... | @@ -108,7 +108,7 @@ |
108 | 108 | <div class="form-group marginTop10"> |
109 | 109 | <label for="ProductKey" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">Product Key : </label> |
110 | 110 | <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> |
111 | - <input type="text" class="form-control input-sm" id="ProductKey" placeholder=""> | |
111 | + <input type="text" class="form-control input-sm" id="ProductKey" [(ngModel)]="ProductKey" placeholder=""> | |
112 | 112 | </div> |
113 | 113 | </div> |
114 | 114 | </div> |
... | ... | @@ -116,7 +116,7 @@ |
116 | 116 | <div class="form-group marginTop10"> |
117 | 117 | <label for="LicenseeFirstName" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">Licensee First Name <span class="red">*</span> : </label> |
118 | 118 | <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> |
119 | - <input type="text" class="form-control input-sm" id="LicenseeFirstName" placeholder="" formControlName="licenseeFirstName" required> | |
119 | + <input type="text" class="form-control input-sm" id="LicenseeFirstName" placeholder="" [(ngModel)]="licenseeFirstName" formControlName="licenseeFirstName" required> | |
120 | 120 | </div> |
121 | 121 | <div *ngIf="formErrors.licenseeFirstName" class="alert alert-danger"> |
122 | 122 | {{ formErrors.licenseeFirstName }} |
... | ... | @@ -127,7 +127,7 @@ |
127 | 127 | <div class="form-group marginTop10"> |
128 | 128 | <label for="LicenseelastName" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">Licensee Last Name <span class="red">*</span> : </label> |
129 | 129 | <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> |
130 | - <input type="text" class="form-control input-sm" id="LicenseelastName" formControlName="licenseeLastName" placeholder="" required> | |
130 | + <input type="text" class="form-control input-sm" id="LicenseelastName" [(ngModel)]="licenseeLastName" formControlName="licenseeLastName" placeholder="" required> | |
131 | 131 | </div> |
132 | 132 | <div *ngIf="formErrors.licenseeLastName" class="alert alert-danger"> |
133 | 133 | {{ formErrors.licenseeLastName }} |
... | ... | @@ -151,7 +151,7 @@ |
151 | 151 | |
152 | 152 | </select>--> |
153 | 153 | <select id="AccountType" formControlName="accountType" class="form-control" required> |
154 | - <option *ngFor="let acc of accountTypes">{{acc.title}}</option> <!--[value]="acc"--> | |
154 | + <option *ngFor="let acc of accountTypes" [(ngModel)]="accountType">{{acc.title}}</option> <!--[value]="acc"--> | |
155 | 155 | </select> |
156 | 156 | <div *ngIf="formErrors.accountType" class="alert alert-danger"> |
157 | 157 | {{ formErrors.accountType }} |
... | ... | @@ -163,7 +163,7 @@ |
163 | 163 | <div class="form-group marginTop10"> |
164 | 164 | <label for="InstitutionName" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">Institution Name <span class="red">*</span> : </label> |
165 | 165 | <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> |
166 | - <input type="text" class="form-control input-sm" id="InstitutionName" formControlName="institutionName" placeholder="" required> | |
166 | + <input type="text" class="form-control input-sm" id="InstitutionName" [(ngModel)]="institutionName" formControlName="institutionName" placeholder="" required> | |
167 | 167 | </div> |
168 | 168 | <div *ngIf="formErrors.institutionName" class="alert alert-danger"> |
169 | 169 | {{ formErrors.institutionName }} |
... | ... | @@ -174,7 +174,7 @@ |
174 | 174 | <div class="form-group marginTop10"> |
175 | 175 | <label for="Address" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">Address <span class="red">*</span> : </label> |
176 | 176 | <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> |
177 | - <input type="text" class="form-control input-sm" id="Address" formControlName="address" placeholder="" required> | |
177 | + <input type="text" class="form-control input-sm" id="Address" [(ngModel)]="address" formControlName="address" placeholder="" required> | |
178 | 178 | </div> |
179 | 179 | <div *ngIf="formErrors.address" class="alert alert-danger"> |
180 | 180 | {{ formErrors.address }} |
... | ... | @@ -185,7 +185,7 @@ |
185 | 185 | <div class="form-group marginTop10"> |
186 | 186 | <label for="City" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">City <span class="red">*</span> : </label> |
187 | 187 | <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> |
188 | - <input type="text" class="form-control input-sm" id="City" formControlName="city" placeholder="" required> | |
188 | + <input type="text" class="form-control input-sm" id="City" [(ngModel)]="city" formControlName="city" placeholder="" required> | |
189 | 189 | </div> |
190 | 190 | <div *ngIf="formErrors.city" class="alert alert-danger"> |
191 | 191 | {{ formErrors.city }} |
... | ... | @@ -196,7 +196,7 @@ |
196 | 196 | <div class="form-group marginTop10"> |
197 | 197 | <label for="State" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0">State (only U.S.) <span class="red">*</span> :</label> |
198 | 198 | <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> |
199 | - <select class="form-control input-sm " id="State" formControlName="state" required> | |
199 | + <select class="form-control input-sm " id="State" [(ngModel)]="state" formControlName="state" required> | |
200 | 200 | <option *ngFor="let state of allStates" [value]="state.id">{{state.title}}</option> |
201 | 201 | <!--<option selected="">All</option> |
202 | 202 | <option>Alabama</option> |
... | ... | @@ -261,8 +261,8 @@ |
261 | 261 | <div class="form-group marginTop10"> |
262 | 262 | <label for="Country" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0">Country <span class="red">*</span> :</label> |
263 | 263 | <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> |
264 | - <select class="form-control input-sm" id="Country"> | |
265 | - <option *ngFor="let country of allCountries" [value]="country.id">{{country.title}}</option> | |
264 | + <select class="form-control input-sm" id="Country" formControlName="country"> | |
265 | + <option *ngFor="let country of allCountries" [(ngModel)]="country" [value]="country.id">{{country.title}}</option> | |
266 | 266 | <!--<option selected="">All</option> |
267 | 267 | <option value="United States">United States</option> |
268 | 268 | <option value="Afghanistan">Afghanistan</option> |
... | ... | @@ -514,7 +514,7 @@ |
514 | 514 | <div class="form-group marginTop10"> |
515 | 515 | <label for="Zip" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">Zip <span class="red">*</span> : </label> |
516 | 516 | <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> |
517 | - <input type="text" class="form-control input-sm" id="Zip" formControlName="zip" onlyNumber="true" placeholder="" required> | |
517 | + <input type="text" class="form-control input-sm" id="Zip" formControlName="zip" [(ngModel)]="zip" onlyNumber="true" placeholder="" required> | |
518 | 518 | </div> |
519 | 519 | <div *ngIf="formErrors.zip" class="alert alert-danger"> |
520 | 520 | {{ formErrors.zip }} |
... | ... | @@ -525,7 +525,7 @@ |
525 | 525 | <div class="form-group marginTop10"> |
526 | 526 | <label for="Phone" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">Phone <span class="red">*</span> : </label> |
527 | 527 | <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> |
528 | - <input type="text" class="form-control input-sm" id="Phone" formControlName="phone" placeholder="" onlyNumber="true" required> | |
528 | + <input type="text" class="form-control input-sm" id="Phone" [(ngModel)]="phone" formControlName="phone" placeholder="" onlyNumber="true" required> | |
529 | 529 | </div> |
530 | 530 | <div *ngIf="formErrors.phone" class="alert alert-danger"> |
531 | 531 | {{ formErrors.phone }} |
... | ... | @@ -536,7 +536,7 @@ |
536 | 536 | <div class="form-group marginTop10"> |
537 | 537 | <label for="Email" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">Email ID <span class="red">*</span> : </label> |
538 | 538 | <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> |
539 | - <input type="email" class="form-control input-sm" id="Email" formControlName="email" placeholder="" required> | |
539 | + <input type="email" class="form-control input-sm" id="Email" [(ngModel)]="email" formControlName="email" placeholder="" required> | |
540 | 540 | </div> |
541 | 541 | <div *ngIf="formErrors.email" class="alert alert-danger"> |
542 | 542 | {{ formErrors.email }} |
... | ... | @@ -558,7 +558,7 @@ |
558 | 558 | <label for="SubscriptionStartDate" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0">Subscription Start Date <span class="red">*</span> :</label> |
559 | 559 | <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> |
560 | 560 | <div id="datetimepicker1" class="input-group input-group-sm input-append date"> |
561 | - <input type="text" class="form-control" id="SubscriptionStartDate" formControlName="subscriptionStartDate" required> | |
561 | + <input type="text" class="form-control" id="SubscriptionStartDate" [(ngModel)]="subscriptionStartDate" formControlName="subscriptionStartDate" required> | |
562 | 562 | <span class="input-group-btn add-on"> |
563 | 563 | <button class="btn btn-default" type="button"><i class="fa fa-calendar"></i></button> |
564 | 564 | </span> |
... | ... | @@ -575,7 +575,7 @@ |
575 | 575 | <label for="SubscriptionEndDate" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0">Subscription End Date <span class="red">*</span> :</label> |
576 | 576 | <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> |
577 | 577 | <div id="datetimepicker2" class="input-group input-group-sm input-append date"> |
578 | - <input type="text" class="form-control" id="SubscriptionEndDate" formControlName="subscriptionEndDate" required> | |
578 | + <input type="text" class="form-control" id="SubscriptionEndDate" [(ngModel)]="subscriptionEndDate" formControlName="subscriptionEndDate" required> | |
579 | 579 | <span class="input-group-btn add-on"> |
580 | 580 | <button class="btn btn-default" type="button"><i class="fa fa-calendar"></i></button> |
581 | 581 | </span> |
... | ... | @@ -592,7 +592,7 @@ |
592 | 592 | <div class="form-group marginTop10"> |
593 | 593 | <label for="SubscriptionPrice" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">Subscription Price <span class="red">*</span> : </label> |
594 | 594 | <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> |
595 | - <input type="text" class="form-control input-sm" id="SubscriptionPrice" formControlName="subscriptionPrice" onlyNumber="true" placeholder="" required> | |
595 | + <input type="text" class="form-control input-sm" id="SubscriptionPrice" [(ngModel)]="subscriptionPrice" formControlName="subscriptionPrice" onlyNumber="true" placeholder="" required> | |
596 | 596 | </div> |
597 | 597 | <div *ngIf="formErrors.subscriptionPrice" class="alert alert-danger"> |
598 | 598 | {{ formErrors.subscriptionPrice }} |
... | ... | @@ -603,7 +603,7 @@ |
603 | 603 | <div class="form-group marginTop10"> |
604 | 604 | <label for="ExportImages" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">No. of Export Images <span class="red">*</span> : </label> |
605 | 605 | <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> |
606 | - <input type="text" class="form-control input-sm" id="ExportImages" formControlName="exportImages" onlyNumber="true" placeholder="" required> | |
606 | + <input type="text" class="form-control input-sm" id="ExportImages" [(ngModel)]="exportImages" formControlName="exportImages" onlyNumber="true" placeholder="" required> | |
607 | 607 | </div> |
608 | 608 | <div *ngIf="formErrors.exportImages" class="alert alert-danger"> |
609 | 609 | {{ formErrors.exportImages }} |
... | ... | @@ -638,7 +638,7 @@ |
638 | 638 | <div class="form-group marginTop10"> |
639 | 639 | <label for="UserName1" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">User Name <span class="red">*</span> : </label> |
640 | 640 | <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> |
641 | - <input type="text" class="form-control input-sm" id="UserName1" formControlName="userName1" placeholder="" required> | |
641 | + <input type="text" class="form-control input-sm" id="UserName1" [(ngModel)]="userName1" formControlName="userName1" placeholder="" required> | |
642 | 642 | </div> |
643 | 643 | <div *ngIf="formErrors.userName1" class="alert alert-danger"> |
644 | 644 | {{ formErrors.userName1 }} |
... | ... | @@ -649,7 +649,7 @@ |
649 | 649 | <div class="form-group marginTop10"> |
650 | 650 | <label for="Password" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">Password <span class="red">*</span> : </label> |
651 | 651 | <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> |
652 | - <input type="password" class="form-control input-sm" id="Password" formControlName="password" placeholder="" required> | |
652 | + <input type="password" class="form-control input-sm" id="Password" [(ngModel)]="password" formControlName="password" placeholder="" required> | |
653 | 653 | </div> |
654 | 654 | <div *ngIf="formErrors.password" class="alert alert-danger"> |
655 | 655 | {{ formErrors.password }} |
... | ... | @@ -667,7 +667,7 @@ |
667 | 667 | <option value="4">What was the last name of your .... </option> |
668 | 668 | <option value="5">What is the name of your ....</option> |
669 | 669 | </select>--> |
670 | - <select id="SecurityQuestion" formControlName="securityQuestion" class="form-control" required> | |
670 | + <select id="SecurityQuestion" formControlName="securityQuestion" [(ngModel)]="securityQuestion" class="form-control" required> | |
671 | 671 | <option *ngFor="let q of allQuestions" [value]="q.id">{{q.title}}</option> |
672 | 672 | </select> |
673 | 673 | </div> |
... | ... | @@ -680,7 +680,7 @@ |
680 | 680 | <div class="form-group marginTop10"> |
681 | 681 | <label for="Answer" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0" title="">Answer <span class="red">*</span> : </label> |
682 | 682 | <div class="col-sm-12 col-lg-6 padd-left0 padd-right0"> |
683 | - <input type="text" class="form-control input-sm" id="Answer" formControlName="answer" placeholder="" required> | |
683 | + <input type="text" class="form-control input-sm" id="Answer" [(ngModel)]="answer" formControlName="answer" placeholder="" required> | |
684 | 684 | </div> |
685 | 685 | <div *ngIf="formErrors.answer" class="alert alert-danger"> |
686 | 686 | {{ formErrors.answer }} | ... | ... |
400-SOURCECODE/AIAHTML5.Server/AIAHTML5.Server.csproj
... | ... | @@ -146,6 +146,7 @@ |
146 | 146 | <Compile Include="App_Start\WebApiConfig.cs" /> |
147 | 147 | <Compile Include="Constants\AdminConstant.cs" /> |
148 | 148 | <Compile Include="Controllers\AccountTypeController.cs" /> |
149 | + <Compile Include="Controllers\AddLicenseController.cs" /> | |
149 | 150 | <Compile Include="Controllers\AppSettingsController.cs" /> |
150 | 151 | <Compile Include="Controllers\AuthenticateController.cs" /> |
151 | 152 | <Compile Include="Controllers\ChangeUserPasswordController.cs" /> | ... | ... |
400-SOURCECODE/AIAHTML5.Server/Controllers/AddLicenseController.cs
0 → 100644
1 | +using System; | |
2 | +using System.Collections.Generic; | |
3 | +using System.Linq; | |
4 | +using System.Net; | |
5 | +using System.Net.Http; | |
6 | +using System.Web.Http; | |
7 | +using Newtonsoft.Json; | |
8 | +using Newtonsoft.Json.Linq; | |
9 | +using AIAHTML5.Server.Models; | |
10 | +using System.Web.Http.Cors; | |
11 | +using System.Web.Cors; | |
12 | +using AIAHTML5.Server.Constants; | |
13 | +using log4net; | |
14 | + | |
15 | +namespace AIAHTML5.Server.Controllers | |
16 | +{ | |
17 | + [EnableCors(origins: "http://localhost:85", headers: "*", methods: "*")] | |
18 | + public class AddLicenseController : ApiController | |
19 | + { | |
20 | + // GET: api/AddLicense | |
21 | + public IEnumerable<string> Get() | |
22 | + { | |
23 | + return new string[] { "value1", "value2" }; | |
24 | + } | |
25 | + | |
26 | + // GET: api/AddLicense/5 | |
27 | + public string Get(int id) | |
28 | + { | |
29 | + return "value"; | |
30 | + } | |
31 | + | |
32 | + // POST: api/AddLicense | |
33 | + public void Post([FromBody]string value) | |
34 | + { | |
35 | + } | |
36 | + | |
37 | + // PUT: api/AddLicense/5 | |
38 | + public void Put(int id, [FromBody]string value) | |
39 | + { | |
40 | + } | |
41 | + | |
42 | + // DELETE: api/AddLicense/5 | |
43 | + public void Delete(int id) | |
44 | + { | |
45 | + } | |
46 | + } | |
47 | +} | ... | ... |