Ancora update gestione refresh dati
This commit is contained in:
@@ -323,6 +323,7 @@ namespace WebDoorCreator.Data.Controllers
|
||||
if (currRec != null) //if is not null edit the record found
|
||||
{
|
||||
currRec.JsoncActVal = modOpRec.JsoncActVal;
|
||||
currRec.JsoncConfigVal = modOpRec.JsoncConfigVal;
|
||||
currRec.userConfirm = modOpRec.userConfirm;
|
||||
currRec.DtConfirm = modOpRec.DtConfirm;
|
||||
localDbCtx.Entry(currRec).State = EntityState.Modified;
|
||||
|
||||
@@ -175,11 +175,11 @@ namespace WebDoorCreator.UI.Components.Hardware
|
||||
{
|
||||
DoorOpInst.userConfirm = userId;
|
||||
DoorOpInst.DtConfirm = DateTime.Now;
|
||||
await WDCService.DoorOpUpdate(DoorOpInst);
|
||||
// salvo i NUOVI valori...
|
||||
DoorOpInst.CurrVals = currVal;
|
||||
DoorOpInst.GraphicParams = graphicParams;
|
||||
// salvo!
|
||||
await WDCService.DoorOpUpdate(DoorOpInst);
|
||||
}
|
||||
|
||||
protected async Task doDeleteInst()
|
||||
@@ -195,9 +195,14 @@ namespace WebDoorCreator.UI.Components.Hardware
|
||||
|
||||
protected async Task doSave()
|
||||
{
|
||||
#if false
|
||||
// ri-serializzo i graphics parameters...
|
||||
string serVal = JsonConvert.SerializeObject(currVal);
|
||||
DoorOpInst.JsoncActVal = serVal;
|
||||
DoorOpInst.JsoncActVal = serVal;
|
||||
#endif
|
||||
// salvo i NUOVI valori...
|
||||
DoorOpInst.CurrVals = currVal;
|
||||
DoorOpInst.GraphicParams = graphicParams;
|
||||
// salvo!
|
||||
await WDCService.DoorOpUpdate(DoorOpInst);
|
||||
// invio msg dato "salvabile"
|
||||
|
||||
Reference in New Issue
Block a user