This commit is contained in:
2022-08-17 00:47:05 +00:00
parent abf31008fe
commit 3b08ba6807
3 changed files with 8 additions and 3 deletions

View File

@@ -33,6 +33,8 @@ namespace rockfishCore.Controllers
[Required]
public string DbId { get; set; }
[Required]
public bool Perpetual { get; set; }
[Required]
public bool LicenseExpires { get; set; }
[Required]
public long LicenseExpirationDate { get; set; }
@@ -128,6 +130,7 @@ namespace rockfishCore.Controllers
DBLicense.SiteId = l.SiteId;
DBLicense.Email = Customer.AdminEmail;
DBLicense.DbId = l.DbId;
DBLicense.Perpetual = l.Perpetual;
DBLicense.Code = "na";
DBLicense.Key = Key;
DBLicense.RegTo = l.RegisteredTo;

View File

@@ -22,6 +22,8 @@ namespace rockfishCore.Models
public long? DtFetched { get; set; }
public bool Fetched { get; set; }
public string DbId { get; set; }
public bool Perpetual { get; set; }
public long? DtLicenseExpiration { get; set; }
public long? DtMaintenanceExpiration { get; set; }

View File

@@ -48,9 +48,9 @@
<div class="col-sm-6">
<div class="form-check">
<label class="form-check-label" for="subscriptionLicense">
<input class="form-check-input" type="checkbox" name="subscriptionLicense" id="subscriptionLicense">
Subscription license
<label class="form-check-label" for="perpetual">
<input class="form-check-input" type="checkbox" name="perpetual" id="perpetual">
Perpetual license
</label>
</div>
</div>