This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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; }
|
||||||
|
|||||||
@@ -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>" +
|
||||||
" " +
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user