update MASSICCIO pacchetti x ADMIN
This commit is contained in:
@@ -0,0 +1 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_barcode.ascx.cs" Inherits="MoonProAdmin.WebUserControls.mod_barcode" %>
|
||||
@@ -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 MoonProAdmin.WebUserControls
|
||||
{
|
||||
public partial class mod_barcode : System.Web.UI.UserControl
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Codice generato da uno strumento.
|
||||
//
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MoonProAdmin.WebUserControls
|
||||
{
|
||||
|
||||
|
||||
public partial class mod_barcode
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_footer.ascx.cs" Inherits="MoonProAdmin.WebUserControls.mod_footer" %>
|
||||
<div data-role="navbar">
|
||||
<div class="row" style="color: Yellow;">
|
||||
<div class="col text-left">
|
||||
<asp:Label runat="server" ID="lblLastUpdt" />
|
||||
</div>
|
||||
<div class="col text-center">
|
||||
<%: SteamWare.devicesAuthProxy.stObj.utente %>
|
||||
</div>
|
||||
<div class="col text-right">
|
||||
<asp:Label runat="server" ID="lblVers" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
|
||||
namespace MoonProAdmin.WebUserControls
|
||||
{
|
||||
public partial class mod_footer : System.Web.UI.UserControl
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
lblLastUpdt.Text = DateTime.Now.ToString("yyyy.MM.dd HH:mm:ss");
|
||||
lblVers.Text = string.Format("v.{0}", System.Reflection.Assembly.GetExecutingAssembly().GetName().Version);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 MoonProAdmin.WebUserControls {
|
||||
|
||||
|
||||
public partial class mod_footer {
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblLastUpdt.
|
||||
/// </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.WebControls.Label lblLastUpdt;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblVers.
|
||||
/// </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.WebControls.Label lblVers;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_menuTopCompact.ascx.cs" Inherits="MoonProAdmin.WebUserControls.mod_menuTopCompact" %>
|
||||
<div class="row text-uppercase align-items-center w-100 mx-0 px-0">
|
||||
<div class="col-4 col-md-3 my-2 text-left">
|
||||
<asp:HyperLink runat="server" ID="hlTask" NavigateUrl="~/task" CssClass="btn btn-block btn-primary text-truncate"> <i class="fas fa-tasks"></i> Commesse</asp:HyperLink>
|
||||
</div>
|
||||
<div class="col-4 col-md-6 my-0 text-center">
|
||||
<asp:HyperLink runat="server" ID="hlBarcode" NavigateUrl="~/barcode" CssClass="btn btn-block btn-light text-truncate"> <asp:Label ID="lblTitolo" runat="server" Text="" CssClass="font-weight-bold" />
|
||||
</asp:HyperLink>
|
||||
</div>
|
||||
<div class="col-4 col-md-3 my-2 text-right">
|
||||
<asp:HyperLink runat="server" ID="hlPostazioni" NavigateUrl="~/postazioni" CssClass="btn btn-block btn-primary text-truncate"> <i class="fas fa-industry"></i> Postazioni</asp:HyperLink>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row text-uppercase align-items-center w-100 mx-0 px-0">
|
||||
<div class="col-4 text-left text-truncate text-warning">
|
||||
<%: NomeOpr %>
|
||||
</div>
|
||||
<div class="col-4 text-center text-truncate text-info">
|
||||
<%: CurrNumTask %>
|
||||
</div>
|
||||
<div class="col-4 text-right text-truncate text-warning">
|
||||
<%: DescPost %>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,140 @@
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Web.UI;
|
||||
|
||||
namespace MoonProAdmin.WebUserControls
|
||||
{
|
||||
public partial class mod_menuTopCompact : System.Web.UI.UserControl
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
string lastPage = Request.Url.LocalPath.Split('/').Last();
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
// fix visibilità TASK
|
||||
hlTask.Visible = devicesAuthProxy.stObj.userHasRight("CT_userStart");
|
||||
// se l'utente NON c'è torno a login...
|
||||
if (!devicesAuthProxy.stObj.isAuth)
|
||||
{
|
||||
if (lastPage != "" && lastPage != "login")
|
||||
{
|
||||
Session["nextPage"] = lastPage;
|
||||
}
|
||||
// SE non sono in "safe page"
|
||||
if (memLayer.ML.CRS("_loginPages").IndexOf(lastPage) < 0)
|
||||
{
|
||||
Response.Redirect("login");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
PagCorrente();
|
||||
}
|
||||
}
|
||||
// controllo pagina...
|
||||
bool pageAuth = devicesAuthProxy.stObj.isPageEnabled(lastPage);
|
||||
// controllo pag auth...
|
||||
if (!pageAuth)
|
||||
{
|
||||
Response.Redirect("~/login");
|
||||
}
|
||||
lblTitolo.Text = memLayer.ML.confReadString("appName");
|
||||
}
|
||||
/// <summary>
|
||||
/// salva in variabile pagina il nome della pagina corrente
|
||||
/// </summary>
|
||||
protected void PagCorrente()
|
||||
{
|
||||
string[] uri = Request.Url.LocalPath.Split('/');
|
||||
// salvo pagina corrente
|
||||
devicesAuthProxy.pagCorrente = uri.Last();
|
||||
if (devicesAuthProxy.pagPrecedente == "")
|
||||
{
|
||||
devicesAuthProxy.pagPrecedente = devicesAuthProxy.pagCorrente;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Codice postazione di lavoro
|
||||
/// </summary>
|
||||
public string CodPost
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("CodPost");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Codice Operatore
|
||||
/// </summary>
|
||||
public string CodOpr
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("CodOpr");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Codice TASK corrente
|
||||
/// </summary>
|
||||
public string CurrNumTask
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("CurrNumTask");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Codice postazione di lavoro
|
||||
/// </summary>
|
||||
public string DescPost
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
#if false
|
||||
if (memLayer.ML.isInSessionObject("DescPost"))
|
||||
{
|
||||
answ = memLayer.ML.StringSessionObj("DescPost");
|
||||
}
|
||||
if (answ == "")
|
||||
{
|
||||
var tabPost = dataLayer.man.taAP.getByKey(CodPost);
|
||||
if (tabPost.Rows.Count > 0)
|
||||
{
|
||||
answ = tabPost[0].Descrizione;
|
||||
}
|
||||
memLayer.ML.setSessionVal("DescPost", answ);
|
||||
}
|
||||
#endif
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Codice Operatore
|
||||
/// </summary>
|
||||
public string NomeOpr
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
#if false
|
||||
if (memLayer.ML.isInSessionObject("NomeOpr"))
|
||||
{
|
||||
answ = memLayer.ML.StringSessionObj("NomeOpr");
|
||||
}
|
||||
if (answ == "")
|
||||
{
|
||||
var tabOpr = dataLayer.man.taAO.getByKey(CodOpr);
|
||||
if (tabOpr.Rows.Count > 0)
|
||||
{
|
||||
answ = string.Format("{0} {1}", tabOpr[0].Cognome, tabOpr[0].Nome);
|
||||
}
|
||||
memLayer.ML.setSessionVal("NomeOpr", answ);
|
||||
}
|
||||
#endif
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 MoonProAdmin.WebUserControls {
|
||||
|
||||
|
||||
public partial class mod_menuTopCompact {
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hlTask.
|
||||
/// </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.WebControls.HyperLink hlTask;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hlBarcode.
|
||||
/// </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.WebControls.HyperLink hlBarcode;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblTitolo.
|
||||
/// </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.WebControls.Label lblTitolo;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hlPostazioni.
|
||||
/// </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.WebControls.HyperLink hlPostazioni;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user