review procedura jumper con controllo
This commit is contained in:
@@ -1 +0,0 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="jumper.ascx.cs" Inherits="MP_MAG.SMART.jumper" %>
|
||||
@@ -0,0 +1,19 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="jumper.aspx.cs" Inherits="MP_MAG.SMART.jumper" %>
|
||||
|
||||
<%@ Register Src="~/WebUserControls/cmp_jumper.ascx" TagPrefix="uc1" TagName="cmp_jumper" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<div>
|
||||
<uc1:cmp_jumper runat="server" id="cmp_jumper" />
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace MP_MAG.SMART
|
||||
{
|
||||
public partial class jumper : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
+35
@@ -0,0 +1,35 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
//
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MP_MAG.SMART
|
||||
{
|
||||
|
||||
|
||||
public partial class jumper
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo form1.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo cmp_jumper.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::MP_MAG.WebUserControls.cmp_jumper cmp_jumper;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_jumper.ascx.cs" Inherits="MP_MAG.WebUserControls.cmp_jumper" %>
|
||||
@@ -6,9 +6,9 @@ using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace MP_MAG.SMART
|
||||
namespace MP_MAG.WebUserControls
|
||||
{
|
||||
public partial class jumper : System.Web.UI.UserControl
|
||||
public partial class cmp_jumper : System.Web.UI.UserControl
|
||||
{
|
||||
#region Protected Methods
|
||||
|
||||
@@ -22,14 +22,13 @@ namespace MP_MAG.SMART
|
||||
MagData.prodPrintData newProdPrintData = new MagData.prodPrintData(MatrOpr, IdxODL, IdxMacchina, QtaUdc);
|
||||
// salvo in oggetto dedicato...
|
||||
MagData.MagDataLayer.man.currProdPrintData = newProdPrintData;
|
||||
|
||||
string tgtPage = "";
|
||||
// se l'operatore in sessione è DIVERSO da quello appena inviato --> effettuo NUOVO login
|
||||
if (MatrOpr == memLayer.ML.IntSessionObj("MatrOpr"))
|
||||
{
|
||||
// rimando a pagina di stampa.. secondo tipo finiti / semilavorati
|
||||
// FARE!!! verifica SL/FI (NON E' ancora implementato davvero
|
||||
string tgtPage = newProdPrintData.isProdFinito ? "prtFiniti" : "prtSemilav";
|
||||
Response.Redirect(tgtPage);
|
||||
// FARE!!! verifica SL/FI (NON E' ancora implementato davvero)
|
||||
tgtPage = newProdPrintData.isProdFinito ? "prtFiniti" : "prtSemilav";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -46,10 +45,11 @@ namespace MP_MAG.SMART
|
||||
// salvo in sessione
|
||||
memLayer.ML.setSessionVal("MatrOpr", MatrOpr);
|
||||
memLayer.ML.setSessionVal("UserAuthKey", UserAuthKey);
|
||||
// redirect x login...
|
||||
tgtPage = "tryLogin";
|
||||
}
|
||||
// redirect x login...
|
||||
Response.Redirect("tryLogin");
|
||||
}
|
||||
Response.Redirect($"~/SMART/{tgtPage}");
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
+2
-2
@@ -8,9 +8,9 @@
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace MP_MAG.SMART
|
||||
namespace MP_MAG.WebUserControls
|
||||
{
|
||||
public partial class jumper
|
||||
public partial class cmp_jumper
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="jumper.aspx.cs" Inherits="MP_MAG.jumper" %>
|
||||
|
||||
<%@ Register Src="~/WebUserControls/cmp_jumper.ascx" TagPrefix="uc1" TagName="cmp_jumper" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<div>
|
||||
<uc1:cmp_jumper runat="server" id="cmp_jumper" />
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace MP_MAG
|
||||
{
|
||||
public partial class jumper : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
+35
@@ -0,0 +1,35 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
//
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MP_MAG
|
||||
{
|
||||
|
||||
|
||||
public partial class jumper
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo form1.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo cmp_jumper.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::MP_MAG.WebUserControls.cmp_jumper cmp_jumper;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user