This commit is contained in:
2020-06-18 17:40:41 +00:00
parent d218c6cd3c
commit 04d5fd47b7
3 changed files with 27 additions and 27 deletions

View File

@@ -156,11 +156,6 @@ throw new System.Exception("UNCOMMENT THIS FOR PRODUCTION");
} }
} }
[HttpGet]
public ActionResult GetTest()
{
return Ok("hi");
}
[HttpGet("list/{siteId}")] [HttpGet("list/{siteId}")]
public async Task<IActionResult> GetList([FromRoute] long siteId) public async Task<IActionResult> GetList([FromRoute] long siteId)

View File

@@ -6,6 +6,9 @@ namespace rockfishCore.Models
{ {
public partial class License public partial class License
{ {
public License(){
DtCreated=Util.DateUtil.NowAsEpoch();
}
public long Id { get; set; } public long Id { get; set; }
public long CustomerId { get; set; } public long CustomerId { get; set; }
public long SiteId { get; set; } public long SiteId { get; set; }

View File

@@ -52,22 +52,23 @@ app.ravLicenses = (function() {
} else { } else {
var $appList = $("#rf-list"); var $appList = $("#rf-list");
$appList.append('<ul class="list-group">'); $appList.append("<ul >");
let first = true;
$.each(res, function (i, obj) { $.each(res, function (i, obj) {
let itemClass = "alert alert-success";
if (!first) {
itemClass = "alert alert-secondary";
}
$appList.append( $appList.append(
"<li class='list-group-item'><a href=\"#!/ravLicense/" + "<li class='my-5'>" +
obj.id + "<div class='" +
'">' + itemClass +
app.utilB.genListColumn(obj.regto) + "' role='alert'><pre>" +
"&nbsp;&nbsp;" + obj.key +
app.utilB.genListColumn( "</pre></div>" +
app.utilB.epochToShortDate(obj.dtCreated) "</li>"
) +
"</a></li>"
); );
first = false;
}); });
$appList.append("</ul>"); $appList.append("</ul>");
@@ -75,7 +76,8 @@ app.ravLicenses = (function() {
}); });
//=========/licenses============== //=========/licenses==============
app.nav.contextClear(); app.nav.contextClear(); ///ravLicense/122
app.nav.contextAddLink("ravLicense/" + stateMap.id, "New", "plus");
}; };
//PUBLIC METHODS //PUBLIC METHODS