Inserita modifica x impedire salvataggio SE commessa chiusa

This commit is contained in:
Samuele E. Locatelli
2019-04-19 21:34:23 +02:00
parent a60a345693
commit 255ac8a321
3 changed files with 13 additions and 19 deletions
+1 -6
View File
@@ -17,12 +17,7 @@ namespace C_TRACK
routeTemplate: "api/{controller}/{action}/{id}",
defaults: new { controller = "Health", action = "Index", id = RouteParameter.Optional }
);
//routes.MapRoute(
// name: "Default",
// url: "{controller}/{action}/{id}",
// defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
//);
}
}
}
+11 -3
View File
@@ -40,9 +40,17 @@ namespace C_TRACK.WebUserControls
protected void lbtCmd_Click(object sender, EventArgs e)
{
LinkButton lb = (LinkButton)sender;
memLayer.ML.setSessionVal("btnCmdPress", lb.CommandArgument, false);
segnalaClick();
// PROCEDO SOLO SE non ho veto...
if (!hasVeto)
{
LinkButton lb = (LinkButton)sender;
memLayer.ML.setSessionVal("btnCmdPress", lb.CommandArgument, false);
segnalaClick();
}
else
{
updateBtn();
}
}
public void updateBtn()
+1 -10
View File
@@ -19,16 +19,7 @@ namespace C_TRACK.WebUserControls
public string getImgUrl(object codOpr)
{
string answ = "";
#if false
//string targetUrl = string.Format(@"ctrack.steamware.net/elet-scal/jumper?USER_NAME=info@elettronicascalvina.it&UserAuthkey=asdfbqhewrqg7802345bhasdfg78&CodOpr=");
//targetUrl = HttpUtility.UrlEncode(targetUrl);
// genero obj
qrRequest richiesta = new qrRequest();
richiesta.valore = answ;
// ora serializzo oggetto!
answ = JsonConvert.SerializeObject(richiesta);
#endif
string answ = "";
string UrlQRCodeGen = memLayer.ML.CRS("UrlQRCodeGen");
string TargetQRCode = memLayer.ML.CRS("TargetQRCode");
answ = string.Format(@"{0}/{1}?val={2}", UrlQRCodeGen, TargetQRCode, codOpr);