This commit is contained in:
2020-06-18 18:07:09 +00:00
parent 59bfd20488
commit f2b6f237db
4 changed files with 501 additions and 534 deletions

View File

@@ -114,7 +114,7 @@ namespace rockfishCore.Controllers
{
return NotFound();
}
var custInfo = await ct.Customer.AsNoTracking().Where(z => z.Id == site.CustomerId).Select(z => new { z.Name, z.Id, dbid = site.DbId }).SingleAsync();
var custInfo = await ct.Customer.AsNoTracking().Where(z => z.Id == site.CustomerId).Select(z => new { z.Name, z.Id, site.CustomerId, dbid = site.DbId }).SingleAsync();
return Ok(custInfo);
}

View File

@@ -76,14 +76,16 @@ app.ravLicense = (function () {
features.push({ Feature: options[i], Count: 0 });
}
submitData["features"]=features;
submitData["features"] = features;
//submit
// alert("STUB submit");
app.api.createRavLicense(submitData, function (res) {
if (res.error) {
$.gevent.publish("app-show-error", res.msg);
} else {
$("#key").val(res);
page(
"#!/ravLicenses/" + stateMap.id + "/" + stateMap.context.params.cust_id
);
return false;
}
});
@@ -173,7 +175,12 @@ app.ravLicense = (function () {
// app.nav.contextAddLink("licenseRequests/", "Requests", "voice");
// app.nav.contextAddLink("licenseTemplates/", "", "layers");
//case 3233
app.nav.contextAddLink("licenses/", "List", "");
app.nav.contextAddLink(
"ravLicenses/" + stateMap.id + "/" + stateMap.context.params.cust_id,
"Licenses",
"ticket"
); //from here to new license
//set all date inputs to today plus one year
var oneYearFromNow = moment()

View File

@@ -63,7 +63,11 @@ app.ravLicenses = (function () {
"<li class='my-5'>" +
"<div class='" +
itemClass +
"' role='alert'><pre>" +
"' role='alert'>"+
"<h4>"+
app.utilB.epochToLocalShortDateTime(obj.dtCreated)+
"</h4>"+
"<pre>" +
obj.key +
"</pre></div>" +
"</li>"
@@ -77,7 +81,7 @@ app.ravLicenses = (function () {
//=========/licenses==============
app.nav.contextClear(); ///ravLicense/122
app.nav.contextAddLink("ravLicense/" + stateMap.id, "New", "plus");
app.nav.contextAddLink("ravLicense/" + stateMap.id+ "/" + stateMap.context.params.cust_id, "New", "plus");
app.nav.contextAddLink(
"customerSiteEdit/" + stateMap.id + "/" + stateMap.context.params.cust_id,
"Site",

File diff suppressed because it is too large Load Diff