Aggiunta preliminare pagine ADMIN --> ADM
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
A new HTTP handler has been configured in your application for consulting the
|
||||
error log and its feeds. It is reachable at elmah.axd under your application
|
||||
root. If, for example, your application is deployed at http://www.example.com,
|
||||
the URL for ELMAH would be http://www.example.com/elmah.axd. You can, of
|
||||
course, change this path in your application's configuration file.
|
||||
|
||||
ELMAH is also set up to be secure such that it can only be accessed locally.
|
||||
You can enable remote access but then it is paramount that you secure access
|
||||
to authorized users or/and roles only. This can be done using standard
|
||||
authorization rules and configuration already built into ASP.NET. For more
|
||||
information, see http://code.google.com/p/elmah/wiki/SecuringErrorLogPages on
|
||||
the project site.
|
||||
|
||||
Please review the commented out authorization section under
|
||||
<location path="elmah.axd"> and make the appropriate changes.
|
||||
@@ -0,0 +1,11 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/WebMasterPages/MoonPro.master" AutoEventWireup="true" Title="MPADM | BCode" CodeBehind="BCode.aspx.cs" Inherits="MoonProAdmin.BCode" %>
|
||||
|
||||
<%@ Register Src="~/WebUserControls/mod_barcode.ascx" TagPrefix="uc1" TagName="mod_barcode" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_gestPromODL.ascx" TagPrefix="uc1" TagName="mod_gestPromODL" %>
|
||||
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
<uc1:mod_barcode runat="server" ID="mod_barcode" />
|
||||
<hr />
|
||||
<uc1:mod_gestPromODL runat="server" ID="mod_gestPromODL" />
|
||||
</asp:Content>
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
|
||||
namespace MoonProAdmin
|
||||
{
|
||||
public partial class BCode : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
mod_barcode.codOrdPre = "OPR";
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
+33
@@ -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 {
|
||||
|
||||
|
||||
public partial class BCode {
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_barcode.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::MoonProAdmin.WebUserControls.mod_barcode mod_barcode;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_gestPromODL.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::MoonProAdmin.WebUserControls.mod_gestPromODL mod_gestPromODL;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
<%@ Page Title="MPADM | Barcode" Language="C#" MasterPageFile="~/WebMasterPages/Bootstrap.Master" AutoEventWireup="true" CodeBehind="Barcode.aspx.cs" Inherits="MoonProAdmin.Barcode" %>
|
||||
|
||||
<%@ Register Src="~/WebUserControls/mod_barcode.ascx" TagPrefix="uc1" TagName="mod_barcode" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="server">
|
||||
<uc1:mod_barcode runat="server" ID="mod_barcode" />
|
||||
</asp:Content>
|
||||
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
|
||||
namespace MoonProAdmin
|
||||
{
|
||||
public partial class Barcode : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
+24
@@ -0,0 +1,24 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 {
|
||||
|
||||
|
||||
public partial class Barcode {
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_barcode.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::MoonProAdmin.WebUserControls.mod_barcode mod_barcode;
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<bundles version="1.0">
|
||||
<styleBundle path="~/Content/css">
|
||||
<include path="~/Content/bootstrap.css" />
|
||||
<include path="~/Content/Site.css" />
|
||||
<include path="~/Content/font-awesome.min.css" />
|
||||
<include path="~/Content/themes/base/all.css" />
|
||||
<!--<include path="~/Content/fonts.min.css" />-->
|
||||
<include path="~/Content/Style.min.css" />
|
||||
</styleBundle>
|
||||
<styleBundle path="~/Content/bootstrap">
|
||||
<include path="~/Content/bootstrap.min.css" />
|
||||
</styleBundle>
|
||||
</bundles>
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Vendored
+1
File diff suppressed because one or more lines are too long
Vendored
+2337
File diff suppressed because it is too large
Load Diff
Vendored
+4
File diff suppressed because one or more lines are too long
@@ -0,0 +1,24 @@
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url('../fonts/OpenSans.woff') format('woff');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Open Sans Condensed';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
src: url('../fonts/OpenSansCondensed.woff') format('woff');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url('../fonts/Roboto.woff') format('woff');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Roboto Condensed';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url('../fonts/RobotoCondensed.woff') format('woff');
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url('../fonts/OpenSans.woff') format('woff');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Open Sans Condensed';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
src: url('../fonts/OpenSansCondensed.woff') format('woff');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url('../fonts/Roboto.woff') format('woff');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto Condensed';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url('../fonts/RobotoCondensed.woff') format('woff');
|
||||
}
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;src:url('../fonts/OpenSans.woff') format('woff');}@font-face{font-family:'Open Sans Condensed';font-style:normal;font-weight:300;src:url('../fonts/OpenSansCondensed.woff') format('woff');}@font-face{font-family:'Roboto';font-style:normal;font-weight:400;src:url('../fonts/Roboto.woff') format('woff');}@font-face{font-family:'Roboto Condensed';font-style:normal;font-weight:400;src:url('../fonts/RobotoCondensed.woff') format('woff');}
|
||||
+13
-39
@@ -1,42 +1,16 @@
|
||||
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="MP_ADM._Default" %>
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="MoonProAdmin._Default" %>
|
||||
|
||||
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<div class="jumbotron">
|
||||
<h1>ASP.NET</h1>
|
||||
<p class="lead">ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS, and JavaScript.</p>
|
||||
<p><a href="http://www.asp.net" class="btn btn-primary btn-lg">Learn more »</a></p>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" >
|
||||
<head runat="server">
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<h2>Getting started</h2>
|
||||
<p>
|
||||
ASP.NET Web Forms lets you build dynamic websites using a familiar drag-and-drop, event-driven model.
|
||||
A design surface and hundreds of controls and components let you rapidly build sophisticated, powerful UI-driven sites with data access.
|
||||
</p>
|
||||
<p>
|
||||
<a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkId=301948">Learn more »</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<h2>Get more libraries</h2>
|
||||
<p>
|
||||
NuGet is a free Visual Studio extension that makes it easy to add, remove, and update libraries and tools in Visual Studio projects.
|
||||
</p>
|
||||
<p>
|
||||
<a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkId=301949">Learn more »</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<h2>Web Hosting</h2>
|
||||
<p>
|
||||
You can easily find a web hosting company that offers the right mix of features and price for your applications.
|
||||
</p>
|
||||
<p>
|
||||
<a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkId=301950">Learn more »</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</asp:Content>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+7
-12
@@ -1,17 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace MP_ADM
|
||||
namespace MoonProAdmin
|
||||
{
|
||||
public partial class _Default : Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
public partial class _Default : System.Web.UI.Page
|
||||
{
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
Response.Redirect("./login.aspx");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+17
-7
@@ -1,17 +1,27 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Codice generato da uno strumento.
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.42
|
||||
//
|
||||
// Le modifiche apportate a questo file possono causare un comportamento non corretto e andranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MP_ADM
|
||||
namespace MoonProAdmin
|
||||
{
|
||||
|
||||
|
||||
public partial class _Default
|
||||
{
|
||||
}
|
||||
public partial class _Default
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" Inherits="ExportPdf" Codebehind="ExportPdf.aspx.cs" %>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
|
||||
public partial class ExportPdf : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
string reportName = "";
|
||||
// carico i parametri per chiamare export...
|
||||
string idx = Request.QueryString["idx"];
|
||||
//string username = Request.QueryString["username"];
|
||||
//intervalloDate periodo = new intervalloDate();
|
||||
//periodo.inizio = Convert.ToDateTime(Request.QueryString["inizio"]);
|
||||
//periodo.fine = Convert.ToDateTime(Request.QueryString["fine"]);
|
||||
reportRichiesto tipo = (reportRichiesto)Convert.ToInt32(Request.QueryString["tipo"]);
|
||||
// eseguo export
|
||||
reportExporter re = new reportExporter();
|
||||
// in base al tipo passo un metodo con idx o con parametro Intervallo analisi...
|
||||
switch (tipo)
|
||||
{
|
||||
case reportRichiesto.SchedaODL:
|
||||
reportName = "elenco_interventi";
|
||||
re.popolaPdfStream(tipo, idx);
|
||||
break;
|
||||
//case reportRichiesto.ElencoMacchine:
|
||||
// reportName = "elenco_macchine";
|
||||
// re.popolaPdfStream(tipo);
|
||||
// break;
|
||||
//case reportRichiesto.MTBF_MTTR:
|
||||
// reportName = "MTBF_MTTR";
|
||||
// re.popolaPdfStream(tipo, periodo, username, soloMacchinaFerma, includiMtzPrev);
|
||||
// break;
|
||||
//case reportRichiesto.RichiestaIntervento:
|
||||
// reportName = "richiesta";
|
||||
// re.popolaPdfStream(tipo, idx);
|
||||
// break;
|
||||
//default:
|
||||
// break;
|
||||
}
|
||||
Response.Clear();
|
||||
Response.ContentType = re.mimeType;
|
||||
Response.AddHeader("content-disposition", string.Format("attachment; filename=MoonPro_{0}.{1}", reportName, re.fileNameExtension));
|
||||
Response.BinaryWrite(re.renderedBytes);
|
||||
Response.End();
|
||||
}
|
||||
}
|
||||
Generated
+23
@@ -0,0 +1,23 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.4927
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
public partial class ExportPdf {
|
||||
|
||||
/// <summary>
|
||||
/// form1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/MoonPro.master" AutoEventWireup="true" CodeBehind="GestKIT.aspx.cs" Inherits="MoonProAdmin.GestKIT" %>
|
||||
|
||||
<%@ Register Src="~/WebUserControls/mod_barcode.ascx" TagPrefix="uc1" TagName="mod_barcode" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_gestPromODL.ascx" TagPrefix="uc1" TagName="mod_gestPromODL" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_gestKIT.ascx" TagPrefix="uc1" TagName="mod_gestKIT" %>
|
||||
|
||||
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
|
||||
<uc1:mod_gestKIT runat="server" id="mod_gestKIT" />
|
||||
<hr />
|
||||
<uc1:mod_barcode runat="server" ID="mod_barcode" />
|
||||
<hr />
|
||||
<uc1:mod_gestPromODL runat="server" ID="mod_gestPromODL" />
|
||||
</asp:Content>
|
||||
@@ -0,0 +1,48 @@
|
||||
using System;
|
||||
|
||||
namespace MoonProAdmin
|
||||
{
|
||||
public partial class GestKIT : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
mod_barcode.codOrdPre = "KIT";
|
||||
mod_barcode.eh_comandoRegistrato += Mod_barcode_eh_comandoRegistrato;
|
||||
mod_barcode.eh_dataRead += Mod_barcode_eh_dataRead;
|
||||
mod_gestKIT.eh_selKit += Mod_gestKIT_eh_selKit;
|
||||
}
|
||||
|
||||
private void Mod_gestKIT_eh_selKit(object sender, EventArgs e)
|
||||
{
|
||||
// invio ultimo kit creato a barcode...
|
||||
mod_barcode.BCodeVal = mod_gestKIT.lastKitMade;
|
||||
mod_barcode.processInput();
|
||||
}
|
||||
|
||||
private void Mod_barcode_eh_dataRead(object sender, EventArgs e)
|
||||
{
|
||||
// verifico input su KIT x lettura "grezza"
|
||||
string rawInput = mod_barcode.rawInput;
|
||||
mod_gestKIT.lastInput = rawInput;
|
||||
mod_gestKIT.doUpdate();
|
||||
}
|
||||
|
||||
private void Mod_barcode_eh_comandoRegistrato(object sender, EventArgs e)
|
||||
{
|
||||
// verifico input su KIT x comando completo
|
||||
string BCodeVal = mod_barcode.BCodeVal;
|
||||
// se è un ORDINE... procedo!
|
||||
if (BCodeVal.IndexOf("OPR") == 0)
|
||||
{
|
||||
// aggiungo ordine...
|
||||
mod_gestKIT.addOrdArt(mod_barcode.codOrd, mod_barcode.codArt, mod_barcode.descArt, mod_barcode.qta);
|
||||
mod_gestKIT.lastInput = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
mod_gestKIT.lastInput = mod_barcode.BCodeVal;
|
||||
}
|
||||
mod_gestKIT.doUpdate();
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
+42
@@ -0,0 +1,42 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 {
|
||||
|
||||
|
||||
public partial class GestKIT {
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_gestKIT.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::MoonProAdmin.WebUserControls.mod_gestKIT mod_gestKIT;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_barcode.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::MoonProAdmin.WebUserControls.mod_barcode mod_barcode;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_gestPromODL.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::MoonProAdmin.WebUserControls.mod_gestPromODL mod_gestPromODL;
|
||||
}
|
||||
}
|
||||
@@ -53,6 +53,9 @@
|
||||
<Reference Include="AspNet.ScriptManager.jQuery.UI.Combined, Version=1.12.1.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\AspNet.ScriptManager.jQuery.UI.Combined.1.12.1\lib\net45\AspNet.ScriptManager.jQuery.UI.Combined.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Elmah, Version=1.2.14706.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\elmah.corelibrary.1.2.2\lib\Elmah.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll</HintPath>
|
||||
</Reference>
|
||||
@@ -110,6 +113,14 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="About.aspx" />
|
||||
<Content Include="anagArticoli.aspx" />
|
||||
<Content Include="aperturaImpianti.aspx" />
|
||||
<Content Include="approvazioneODL.aspx" />
|
||||
<Content Include="approvazioneProd.aspx" />
|
||||
<Content Include="App_Readme\Elmah.txt" />
|
||||
<Content Include="Barcode.aspx" />
|
||||
<Content Include="BCode.aspx" />
|
||||
<Content Include="calendChiusura.aspx" />
|
||||
<Content Include="Contact.aspx" />
|
||||
<Content Include="Content\bootstrap-grid.css" />
|
||||
<Content Include="Content\bootstrap-grid.min.css" />
|
||||
@@ -117,7 +128,19 @@
|
||||
<Content Include="Content\bootstrap-reboot.min.css" />
|
||||
<Content Include="Content\bootstrap.css" />
|
||||
<Content Include="Content\bootstrap.min.css" />
|
||||
<Content Include="Content\fonts.css">
|
||||
<DependentUpon>fonts.less</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Content\fonts.min.css">
|
||||
<DependentUpon>fonts.css</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Content\Site.css" />
|
||||
<Content Include="Content\Style.css">
|
||||
<DependentUpon>Style.less</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Content\Style.min.css">
|
||||
<DependentUpon>Style.css</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Content\themes\base\accordion.css" />
|
||||
<Content Include="Content\themes\base\all.css" />
|
||||
<Content Include="Content\themes\base\autocomplete.css" />
|
||||
@@ -160,11 +183,156 @@
|
||||
<Content Include="Content\themes\base\theme.css" />
|
||||
<Content Include="Content\themes\base\tooltip.css" />
|
||||
<Content Include="Default.aspx" />
|
||||
<Content Include="ExportPdf.aspx" />
|
||||
<Content Include="favicon.ico" />
|
||||
<Content Include="fonts\fontawesome-webfont.svg" />
|
||||
<Content Include="forceUser.aspx" />
|
||||
<Content Include="gestioneDatiMacchine.aspx" />
|
||||
<Content Include="gestioneODL.aspx" />
|
||||
<Content Include="GestKIT.aspx" />
|
||||
<Content Include="gestPromesseODL.aspx" />
|
||||
<Content Include="Global.asax" />
|
||||
<Content Include="ApplicationInsights.config">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="help\content_style\content.css" />
|
||||
<Content Include="help\content_style\images\accordion_arrow.gif" />
|
||||
<Content Include="help\content_style\images\ExcursusBack.gif" />
|
||||
<Content Include="help\content_style\images\FramedBack.gif" />
|
||||
<Content Include="help\content_style\images\haccordion_arrow.gif" />
|
||||
<Content Include="help\content_style\images\nav_arr_L_s.gif" />
|
||||
<Content Include="help\content_style\images\nav_arr_R_s.gif" />
|
||||
<Content Include="help\content_style\images\SpecialBack.gif" />
|
||||
<Content Include="help\css\accordion.css" />
|
||||
<Content Include="help\frame_10_maincontent.html" />
|
||||
<Content Include="help\frame_11_maincontent.html" />
|
||||
<Content Include="help\frame_12_maincontent.html" />
|
||||
<Content Include="help\frame_6_maincontent.html" />
|
||||
<Content Include="help\frame_toc.html" />
|
||||
<Content Include="help\images\browser\blank.gif" />
|
||||
<Content Include="help\images\browser\forceexp.gif" />
|
||||
<Content Include="help\images\browser\minus.gif" />
|
||||
<Content Include="help\images\browser\plus.gif" />
|
||||
<Content Include="help\images\download.gif" />
|
||||
<Content Include="help\images\enlarge.gif" />
|
||||
<Content Include="help\images\icon_lm.gif" />
|
||||
<Content Include="help\images\icon_lm_s.gif" />
|
||||
<Content Include="help\images\icon_pg.gif" />
|
||||
<Content Include="help\images\icon_pg_s.gif" />
|
||||
<Content Include="help\images\icon_st.gif" />
|
||||
<Content Include="help\images\icon_st_s.gif" />
|
||||
<Content Include="help\images\nav_arr_L.gif" />
|
||||
<Content Include="help\images\nav_arr_R.gif" />
|
||||
<Content Include="help\images\spacer.gif" />
|
||||
<Content Include="help\index.html" />
|
||||
<Content Include="help\js\accordion.js" />
|
||||
<Content Include="help\js\yahoo\animation-min.js" />
|
||||
<Content Include="help\js\yahoo\yahoo-dom-event.js" />
|
||||
<Content Include="help\js\yahoo\yahoo-min.js" />
|
||||
<Content Include="help\lm_pg_10.html" />
|
||||
<Content Include="help\lm_pg_11.html" />
|
||||
<Content Include="help\lm_pg_12.html" />
|
||||
<Content Include="help\lm_pg_6.html" />
|
||||
<Content Include="help\media_179.html" />
|
||||
<Content Include="help\media_180.html" />
|
||||
<Content Include="help\media_181.html" />
|
||||
<Content Include="help\media_182.html" />
|
||||
<Content Include="help\media_183.html" />
|
||||
<Content Include="help\media_184.html" />
|
||||
<Content Include="help\media_185.html" />
|
||||
<Content Include="help\media_186.html" />
|
||||
<Content Include="help\mobs\mm_179\lens.png" />
|
||||
<Content Include="help\mobs\mm_180\edit.png" />
|
||||
<Content Include="help\mobs\mm_181\trash.png" />
|
||||
<Content Include="help\mobs\mm_182\3.png" />
|
||||
<Content Include="help\mobs\mm_183\2.png" />
|
||||
<Content Include="help\mobs\mm_184\pdf.png" />
|
||||
<Content Include="help\mobs\mm_185\5.png" />
|
||||
<Content Include="help\mobs\mm_186\4.png" />
|
||||
<Content Include="help\Services\MediaObjects\flash_flv_player\flvplayer.swf" />
|
||||
<Content Include="help\Services\MediaObjects\flash_mp3_player\mp3player.swf" />
|
||||
<Content Include="help\style\delos.css" />
|
||||
<Content Include="help\style\images\25black.png" />
|
||||
<Content Include="help\style\images\blbw.gif" />
|
||||
<Content Include="help\style\images\block_top.gif" />
|
||||
<Content Include="help\style\images\brbw.gif" />
|
||||
<Content Include="help\style\images\ButtonsBack.gif" />
|
||||
<Content Include="help\style\images\drop_back.gif" />
|
||||
<Content Include="help\style\images\drop_back_active.gif" />
|
||||
<Content Include="help\style\images\form_back.gif" />
|
||||
<Content Include="help\style\images\form_top_back.gif" />
|
||||
<Content Include="help\style\images\frame_back.gif" />
|
||||
<Content Include="help\style\images\head_back.gif" />
|
||||
<Content Include="help\style\images\icon_seas_s.gif" />
|
||||
<Content Include="help\style\images\MainMenuBack.gif" />
|
||||
<Content Include="help\style\images\media_placeholder_thumb.png" />
|
||||
<Content Include="help\style\images\question_placeholder_thumb.png" />
|
||||
<Content Include="help\style\images\TableHeader.gif" />
|
||||
<Content Include="help\style\images\TableHeaderBlue.gif" />
|
||||
<Content Include="help\style\images\text_placeholder_thumb.png" />
|
||||
<Content Include="help\style\images\tl.gif" />
|
||||
<Content Include="help\style\images\tlbw.gif" />
|
||||
<Content Include="help\style\images\tr.gif" />
|
||||
<Content Include="help\style\images\trbw.gif" />
|
||||
<Content Include="help\syntaxhighlight.css" />
|
||||
<Content Include="help\table_of_contents.html" />
|
||||
<Content Include="images\apply.png" />
|
||||
<Content Include="images\apply_l.png" />
|
||||
<Content Include="images\apply_m.png" />
|
||||
<Content Include="images\apply_s.gif" />
|
||||
<Content Include="images\apply_s.png" />
|
||||
<Content Include="images\BarraArancio.png" />
|
||||
<Content Include="images\BarraGrigia.png" />
|
||||
<Content Include="images\BarraRossa.png" />
|
||||
<Content Include="images\BarraVerde.png" />
|
||||
<Content Include="images\bg-menu-main.png" />
|
||||
<Content Include="images\cancel.png" />
|
||||
<Content Include="images\cancel_l.png" />
|
||||
<Content Include="images\cancel_m.png" />
|
||||
<Content Include="images\cancel_s.gif" />
|
||||
<Content Include="images\cancel_s.png" />
|
||||
<Content Include="images\detail.png" />
|
||||
<Content Include="images\edit_l.png" />
|
||||
<Content Include="images\edit_m.png" />
|
||||
<Content Include="images\edit_s.gif" />
|
||||
<Content Include="images\edit_s.png" />
|
||||
<Content Include="images\elimina_l.png" />
|
||||
<Content Include="images\elimina_m.png" />
|
||||
<Content Include="images\elimina_s.gif" />
|
||||
<Content Include="images\elimina_s.png" />
|
||||
<Content Include="images\empty.jpg" />
|
||||
<Content Include="images\favicon.ico" />
|
||||
<Content Include="images\giallo.png" />
|
||||
<Content Include="images\grigio.png" />
|
||||
<Content Include="images\Help.png" />
|
||||
<Content Include="images\help_white.png" />
|
||||
<Content Include="images\logo colmecc.png" />
|
||||
<Content Include="images\logo.gif" />
|
||||
<Content Include="images\logo.png" />
|
||||
<Content Include="images\LogoMapoNoText.png" />
|
||||
<Content Include="images\logoMoOnPro.png" />
|
||||
<Content Include="images\logoSteamware.png" />
|
||||
<Content Include="images\logo_sw.png" />
|
||||
<Content Include="images\page_pdf.png" />
|
||||
<Content Include="images\pdfExport.png" />
|
||||
<Content Include="images\pdfExportSmall.png" />
|
||||
<Content Include="images\ProgressBar.gif" />
|
||||
<Content Include="images\rosso.png" />
|
||||
<Content Include="images\sfondo.png" />
|
||||
<Content Include="images\titoloCruscotto.png" />
|
||||
<Content Include="images\verde.png" />
|
||||
<Content Include="images\view.gif" />
|
||||
<Content Include="images\view.png" />
|
||||
<Content Include="images\view_disabled.gif" />
|
||||
<Content Include="images\view_l.png" />
|
||||
<Content Include="images\view_m.png" />
|
||||
<Content Include="images\view_s.gif" />
|
||||
<Content Include="images\view_s.png" />
|
||||
<Content Include="login.aspx" />
|
||||
<Content Include="menu.aspx" />
|
||||
<Content Include="Resources\ChangeLog.html" />
|
||||
<Content Include="Resources\logoSteamware.png" />
|
||||
<Content Include="Resources\manifest.xml" />
|
||||
<Content Include="Scripts\bootstrap.bundle.js" />
|
||||
<Content Include="Scripts\bootstrap.bundle.min.js" />
|
||||
<Content Include="Scripts\bootstrap.js" />
|
||||
@@ -187,6 +355,56 @@
|
||||
<Content Include="Scripts\esm\popper.js.map" />
|
||||
<Content Include="Scripts\esm\popper-utils.min.js.map" />
|
||||
<Content Include="Scripts\esm\popper-utils.js.map" />
|
||||
<Content Include="Content\fonts.less" />
|
||||
<Content Include="Content\Style.less" />
|
||||
<Content Include="StoricoTC.aspx" />
|
||||
<Content Include="test.aspx" />
|
||||
<Content Include="testUtente.aspx" />
|
||||
<Content Include="unauthorized.aspx" />
|
||||
<Content Include="WebUserControls\mod_anagArticoli.ascx" />
|
||||
<Content Include="WebUserControls\mod_aperturaImpianti.ascx" />
|
||||
<Content Include="WebUserControls\mod_approvazioneODL.ascx" />
|
||||
<Content Include="WebUserControls\mod_approvProd.ascx" />
|
||||
<Content Include="WebUserControls\mod_barcode.ascx" />
|
||||
<Content Include="WebUserControls\mod_calChiusura.ascx" />
|
||||
<Content Include="WebUserControls\mod_fixCal.ascx" />
|
||||
<Content Include="WebUserControls\mod_footer.ascx" />
|
||||
<Content Include="WebUserControls\mod_gestioneDatiMacchine.ascx" />
|
||||
<Content Include="WebUserControls\mod_gestioneODL.ascx" />
|
||||
<Content Include="WebUserControls\mod_gestKIT.ascx" />
|
||||
<Content Include="WebUserControls\mod_gestPromODL.ascx" />
|
||||
<Content Include="WebUserControls\mod_login.ascx" />
|
||||
<Content Include="WebUserControls\mod_main_help.ascx" />
|
||||
<Content Include="WebUserControls\mod_menuBottom.ascx" />
|
||||
<Content Include="WebUserControls\mod_menuSx.ascx" />
|
||||
<Content Include="WebUserControls\mod_menuTop.ascx" />
|
||||
<Content Include="WebUserControls\mod_menuTopCompact.ascx" />
|
||||
<Content Include="WebUserControls\mod_newOdl.ascx" />
|
||||
<Content Include="WebUserControls\mod_newPromessaODL.ascx" />
|
||||
<Content Include="WebUserControls\mod_pageTitleAndSearch.ascx" />
|
||||
<Content Include="WebUserControls\mod_ricercaGenerica.ascx" />
|
||||
<Content Include="WebUserControls\mod_storicoTC.ascx" />
|
||||
<Content Include="WebUserControls\mod_unauthorized.ascx" />
|
||||
<Content Include="WS\AutoCompletamento.asmx" />
|
||||
<None Include="compilerconfig.json" />
|
||||
<None Include="compilerconfig.json.defaults">
|
||||
<DependentUpon>compilerconfig.json</DependentUpon>
|
||||
</None>
|
||||
<Content Include="fonts\fontawesome-webfont.eot" />
|
||||
<Content Include="fonts\fontawesome-webfont.ttf" />
|
||||
<Content Include="fonts\fontawesome-webfont.woff" />
|
||||
<Content Include="fonts\fontawesome-webfont.woff2" />
|
||||
<Content Include="fonts\FontAwesome.otf" />
|
||||
<Content Include="fonts\OpenSans.woff" />
|
||||
<Content Include="fonts\OpenSansCondensed.woff" />
|
||||
<Content Include="fonts\Roboto.woff" />
|
||||
<Content Include="fonts\RobotoCondensed.woff" />
|
||||
<Content Include="images\semafori.xcf" />
|
||||
<Content Include="images\Thumbs.db" />
|
||||
<Content Include="logs\PlaceHolder.file" />
|
||||
<Content Include="Reports\Donati_ODL.rdlc" />
|
||||
<Content Include="Resources\Donati\BASI\web.config.ref" />
|
||||
<Content Include="Resources\Donati\LAVORAZIONI\Web.config.ref" />
|
||||
<None Include="Scripts\jquery-3.3.1.intellisense.js" />
|
||||
<Content Include="Scripts\jquery-3.3.1.js" />
|
||||
<Content Include="Scripts\jquery-3.3.1.min.js" />
|
||||
@@ -227,8 +445,43 @@
|
||||
<Content Include="Site.Master" />
|
||||
<Content Include="Web.config" />
|
||||
<Content Include="Bundle.config" />
|
||||
<Content Include="WebMasterPages\AjaxSimple.master" />
|
||||
<Content Include="WebMasterPages\Bootstrap.Master" />
|
||||
<Content Include="WebMasterPages\MoonPro.master" />
|
||||
<Content Include="WebMasterPages\MoonPro_noAjax.master" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="..\VersGen\MoonPro.cs">
|
||||
<Link>MoonPro.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="anagArticoli.aspx.cs">
|
||||
<DependentUpon>anagArticoli.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="anagArticoli.aspx.designer.cs">
|
||||
<DependentUpon>anagArticoli.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="aperturaImpianti.aspx.cs">
|
||||
<DependentUpon>aperturaImpianti.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="aperturaImpianti.aspx.designer.cs">
|
||||
<DependentUpon>aperturaImpianti.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="approvazioneODL.aspx.cs">
|
||||
<DependentUpon>approvazioneODL.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="approvazioneODL.aspx.designer.cs">
|
||||
<DependentUpon>approvazioneODL.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="approvazioneProd.aspx.cs">
|
||||
<DependentUpon>approvazioneProd.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="approvazioneProd.aspx.designer.cs">
|
||||
<DependentUpon>approvazioneProd.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="App_Start\BundleConfig.cs" />
|
||||
<Compile Include="About.aspx.cs">
|
||||
<DependentUpon>About.aspx</DependentUpon>
|
||||
@@ -238,6 +491,27 @@
|
||||
<DependentUpon>About.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="App_Start\RouteConfig.cs" />
|
||||
<Compile Include="Barcode.aspx.cs">
|
||||
<DependentUpon>Barcode.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Barcode.aspx.designer.cs">
|
||||
<DependentUpon>Barcode.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="BCode.aspx.cs">
|
||||
<DependentUpon>BCode.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="BCode.aspx.designer.cs">
|
||||
<DependentUpon>BCode.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="calendChiusura.aspx.cs">
|
||||
<DependentUpon>calendChiusura.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="calendChiusura.aspx.designer.cs">
|
||||
<DependentUpon>calendChiusura.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Contact.aspx.cs">
|
||||
<DependentUpon>Contact.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -252,9 +526,65 @@
|
||||
<Compile Include="Default.aspx.designer.cs">
|
||||
<DependentUpon>Default.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ExportPdf.aspx.cs">
|
||||
<DependentUpon>ExportPdf.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="ExportPdf.aspx.designer.cs">
|
||||
<DependentUpon>ExportPdf.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="forceUser.aspx.cs">
|
||||
<DependentUpon>forceUser.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="forceUser.aspx.designer.cs">
|
||||
<DependentUpon>forceUser.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="gestioneDatiMacchine.aspx.cs">
|
||||
<DependentUpon>gestioneDatiMacchine.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="gestioneDatiMacchine.aspx.designer.cs">
|
||||
<DependentUpon>gestioneDatiMacchine.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="gestioneODL.aspx.cs">
|
||||
<DependentUpon>gestioneODL.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="gestioneODL.aspx.designer.cs">
|
||||
<DependentUpon>gestioneODL.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="GestKIT.aspx.cs">
|
||||
<DependentUpon>GestKIT.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="GestKIT.aspx.designer.cs">
|
||||
<DependentUpon>GestKIT.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="gestPromesseODL.aspx.cs">
|
||||
<DependentUpon>gestPromesseODL.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="gestPromesseODL.aspx.designer.cs">
|
||||
<DependentUpon>gestPromesseODL.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Global.asax.cs">
|
||||
<DependentUpon>Global.asax</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="login.aspx.cs">
|
||||
<DependentUpon>login.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="login.aspx.designer.cs">
|
||||
<DependentUpon>login.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="menu.aspx.cs">
|
||||
<DependentUpon>menu.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="menu.aspx.designer.cs">
|
||||
<DependentUpon>menu.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Site.Master.cs">
|
||||
<DependentUpon>Site.Master</DependentUpon>
|
||||
@@ -263,9 +593,233 @@
|
||||
<Compile Include="Site.Master.designer.cs">
|
||||
<DependentUpon>Site.Master</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="StoricoTC.aspx.cs">
|
||||
<DependentUpon>StoricoTC.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="StoricoTC.aspx.designer.cs">
|
||||
<DependentUpon>StoricoTC.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="test.aspx.cs">
|
||||
<DependentUpon>test.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="test.aspx.designer.cs">
|
||||
<DependentUpon>test.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="testUtente.aspx.cs">
|
||||
<DependentUpon>testUtente.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="testUtente.aspx.designer.cs">
|
||||
<DependentUpon>testUtente.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebMasterPages\AjaxSimple.master.cs">
|
||||
<DependentUpon>AjaxSimple.master</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebMasterPages\AjaxSimple.master.designer.cs">
|
||||
<DependentUpon>AjaxSimple.master</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebMasterPages\Bootstrap.Master.cs">
|
||||
<DependentUpon>Bootstrap.Master</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebMasterPages\Bootstrap.Master.designer.cs">
|
||||
<DependentUpon>Bootstrap.Master</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebMasterPages\MoonPro.master.cs">
|
||||
<DependentUpon>MoonPro.master</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebMasterPages\MoonPro.master.designer.cs">
|
||||
<DependentUpon>MoonPro.master</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebMasterPages\MoonPro_noAjax.master.cs">
|
||||
<DependentUpon>MoonPro_noAjax.master</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebMasterPages\MoonPro_noAjax.master.designer.cs">
|
||||
<DependentUpon>MoonPro_noAjax.master</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_anagArticoli.ascx.cs">
|
||||
<DependentUpon>mod_anagArticoli.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_anagArticoli.ascx.designer.cs">
|
||||
<DependentUpon>mod_anagArticoli.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_aperturaImpianti.ascx.cs">
|
||||
<DependentUpon>mod_aperturaImpianti.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_aperturaImpianti.ascx.designer.cs">
|
||||
<DependentUpon>mod_aperturaImpianti.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_approvazioneODL.ascx.cs">
|
||||
<DependentUpon>mod_approvazioneODL.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_approvazioneODL.ascx.designer.cs">
|
||||
<DependentUpon>mod_approvazioneODL.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_approvProd.ascx.cs">
|
||||
<DependentUpon>mod_approvProd.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_approvProd.ascx.designer.cs">
|
||||
<DependentUpon>mod_approvProd.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_barcode.ascx.cs">
|
||||
<DependentUpon>mod_barcode.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_barcode.ascx.designer.cs">
|
||||
<DependentUpon>mod_barcode.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_calChiusura.ascx.cs">
|
||||
<DependentUpon>mod_calChiusura.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_calChiusura.ascx.designer.cs">
|
||||
<DependentUpon>mod_calChiusura.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_fixCal.ascx.cs">
|
||||
<DependentUpon>mod_fixCal.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_fixCal.ascx.designer.cs">
|
||||
<DependentUpon>mod_fixCal.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_footer.ascx.cs">
|
||||
<DependentUpon>mod_footer.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_footer.ascx.designer.cs">
|
||||
<DependentUpon>mod_footer.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_gestioneDatiMacchine.ascx.cs">
|
||||
<DependentUpon>mod_gestioneDatiMacchine.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_gestioneDatiMacchine.ascx.designer.cs">
|
||||
<DependentUpon>mod_gestioneDatiMacchine.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_gestioneODL.ascx.cs">
|
||||
<DependentUpon>mod_gestioneODL.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_gestioneODL.ascx.designer.cs">
|
||||
<DependentUpon>mod_gestioneODL.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_gestKIT.ascx.cs">
|
||||
<DependentUpon>mod_gestKIT.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_gestKIT.ascx.designer.cs">
|
||||
<DependentUpon>mod_gestKIT.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_gestPromODL.ascx.cs">
|
||||
<DependentUpon>mod_gestPromODL.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_gestPromODL.ascx.designer.cs">
|
||||
<DependentUpon>mod_gestPromODL.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_login.ascx.cs">
|
||||
<DependentUpon>mod_login.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_login.ascx.designer.cs">
|
||||
<DependentUpon>mod_login.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_main_help.ascx.cs">
|
||||
<DependentUpon>mod_main_help.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_main_help.ascx.designer.cs">
|
||||
<DependentUpon>mod_main_help.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_menuBottom.ascx.cs">
|
||||
<DependentUpon>mod_menuBottom.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_menuBottom.ascx.designer.cs">
|
||||
<DependentUpon>mod_menuBottom.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_menuSx.ascx.cs">
|
||||
<DependentUpon>mod_menuSx.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_menuSx.ascx.designer.cs">
|
||||
<DependentUpon>mod_menuSx.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_menuTop.ascx.cs">
|
||||
<DependentUpon>mod_menuTop.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_menuTop.ascx.designer.cs">
|
||||
<DependentUpon>mod_menuTop.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_menuTopCompact.ascx.cs">
|
||||
<DependentUpon>mod_menuTopCompact.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_menuTopCompact.ascx.designer.cs">
|
||||
<DependentUpon>mod_menuTopCompact.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_newOdl.ascx.cs">
|
||||
<DependentUpon>mod_newOdl.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_newOdl.ascx.designer.cs">
|
||||
<DependentUpon>mod_newOdl.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_newPromessaODL.ascx.cs">
|
||||
<DependentUpon>mod_newPromessaODL.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_newPromessaODL.ascx.designer.cs">
|
||||
<DependentUpon>mod_newPromessaODL.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_pageTitleAndSearch.ascx.cs">
|
||||
<DependentUpon>mod_pageTitleAndSearch.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_pageTitleAndSearch.ascx.designer.cs">
|
||||
<DependentUpon>mod_pageTitleAndSearch.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_ricercaGenerica.ascx.cs">
|
||||
<DependentUpon>mod_ricercaGenerica.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_ricercaGenerica.ascx.designer.cs">
|
||||
<DependentUpon>mod_ricercaGenerica.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_storicoTC.ascx.cs">
|
||||
<DependentUpon>mod_storicoTC.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_storicoTC.ascx.designer.cs">
|
||||
<DependentUpon>mod_storicoTC.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_unauthorized.ascx.cs">
|
||||
<DependentUpon>mod_unauthorized.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_unauthorized.ascx.designer.cs">
|
||||
<DependentUpon>mod_unauthorized.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WS\AutoCompletamento.asmx.cs">
|
||||
<DependentUpon>AutoCompletamento.asmx</DependentUpon>
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="App_Data\" />
|
||||
<Folder Include="help\files\" />
|
||||
<Folder Include="help\teximg\" />
|
||||
<Folder Include="upload\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="packages.config" />
|
||||
@@ -293,6 +847,16 @@
|
||||
<ItemGroup>
|
||||
<TypeScriptCompile Include="Scripts\index.d.ts" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\Steamware\SteamWareLib\SteamWare.csproj">
|
||||
<Project>{2872dcfe-8b46-43b2-baa0-842a816a2dd5}</Project>
|
||||
<Name>SteamWare</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\MapoDb\MapoDb.csproj">
|
||||
<Project>{4617a665-d6e3-4ceb-a689-ce2eecd45713}</Project>
|
||||
<Name>MapoDb</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<PropertyGroup>
|
||||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
|
||||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// Le informazioni generali relative a un assembly sono controllate dal seguente
|
||||
@@ -8,9 +7,9 @@ using System.Runtime.InteropServices;
|
||||
[assembly: AssemblyTitle("MP_ADM")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
//[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("MP_ADM")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2018")]
|
||||
//[assembly: AssemblyCopyright("Copyright © 2018")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
@@ -31,5 +30,5 @@ using System.Runtime.InteropServices;
|
||||
//
|
||||
// È possibile specificare tutti i valori oppure impostare valori predefiniti per i numeri relativi alla revisione e alla build
|
||||
// utilizzando l'asterisco (*) come illustrato di seguito:
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
//[assembly: AssemblyVersion("1.0.0.0")]
|
||||
//[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
|
||||
@@ -0,0 +1,569 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
|
||||
<DataSources>
|
||||
<DataSource Name="MoonPro">
|
||||
<rd:DataSourceID>d7e4c92b-5c68-45a5-bcec-bf637ebc9355</rd:DataSourceID>
|
||||
<DataSourceReference>MoonPro</DataSourceReference>
|
||||
</DataSource>
|
||||
</DataSources>
|
||||
<InteractiveHeight>11in</InteractiveHeight>
|
||||
<Description>Stampa ODL</Description>
|
||||
<rd:DrawGrid>true</rd:DrawGrid>
|
||||
<InteractiveWidth>8.5in</InteractiveWidth>
|
||||
<rd:GridSpacing>0.25cm</rd:GridSpacing>
|
||||
<rd:SnapToGrid>true</rd:SnapToGrid>
|
||||
<RightMargin>1cm</RightMargin>
|
||||
<LeftMargin>1cm</LeftMargin>
|
||||
<BottomMargin>1cm</BottomMargin>
|
||||
<rd:ReportID>e75b4cbf-314f-4c87-b2fb-d19a50c3fe0c</rd:ReportID>
|
||||
<EmbeddedImages>
|
||||
<EmbeddedImage Name="up">
|
||||
<MIMEType>image/png</MIMEType>
|
||||
<ImageData>iVBORw0KGgoAAAANSUhEUgAAAzsAAABBCAMAAADBoEonAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMAUExURQAAACgxMCgxMSoyMCgyMSozMio0Mys1NCw1NC02NC02NS43Ni84NjA4NzE6ODM7OjQ7OTQ8OjY9OzY+Ozc+PDc/PTg+PDdAPztAPTlAPjhAPztCPztCQDxDQDxEQTxEQj5FQz5FRD9GREBHRUFIRUFIRkJJR0JKRkNKR0JKSEFKSURLSERMSUVNSkZOSkZOS0ZOTEhPTEhPTkZQTklQTUlRTktST0xTT0xTUE1UUE5VUU5VUk5WUk9XU0xVVFBWUlBXU1BYU1BYVFFYVVFZVlJaVVJaVlNaV1RaV1RcV1FaWVJbWlRbWFVcWFZdWVdeWVdeWlhgXl1mZGNraWpybm93dHB3dHZ9eXyCfgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALeLIC8AAAEAdFJOU////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////wBT9wclAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAGXRFWHRTb2Z0d2FyZQBQYWludC5ORVQgdjMuNS420IOtWgAACntJREFUeF7tnQt72sYShktjFC4BX6lrUju+4QMBYtOACcR2KaoVHR+LOA4x+v9/RGdmdgWSkIS7yuM2ZjYORmhnJT7Nm5kdrdqfHG6sACugosBPKkZswwqwAg6zw07ACqgpwOyo6cZWrACzwz7ACqgpwOyo6cZWrACzwz7ACqgpwOyo6cZWrACzwz7ACqgpwOyo6cZWrACzwz7ACqgpwOyo6cZWrACzwz7ACqgpwOyo6cZWrACzwz7ACqgpwOyo6cZWrACzwz7ACqgpwOyo6cZWrACzwz7ACqgpwOyo6cZWrACzwz7ACqgpwOyo6cZWrACzwz7ACqgpwOyo6cZWrACzwz7ACqgpwOyo6cZWrACzwz7ACqgpwOyo6cZWrACzwz7ACqgpwOyo6cZWrACzwz7ACqgpwOyo6cZWrACzwz7ACqgpwOyo6cZ
|
||||
WrACzwz7ACqgpwOyo6cZWrEAidrJaJr5pL15kC6Eia6sbh9Va7aR24jbYwK1K5aR6tFEq+qw299+Itr+TibtmhToMUd+L7JI+rNJB6nMnlT6q06lUYDe+oQ35ZnqaeIa1fTiDnTrsPRKHMbHBL3zL/rRMCiRip9FpL2itVrtT0uYFLVb/0A3yurBm6Ne9Nx6rTN+4xmYYxnUlF3N5dkY43DAd1WVHHtM6DfbIGlbk6QR2AHf9/+Jh3DEIGcSH2VkmdJL9/0Z1C9ro8yi6wX5T770JSJreJR+GffAjfmFHuW2SFxue2JCX3os7jI+l6AtUimdnDce5HcIgo2pgkJzuY8cyb8W2MUf4IA/s4M6Bnx2T2Vkqcpxk7AzQtbrNd6LRb7EBr6fvms3Tdk+4XtMXLNJ1gc7xemmzhD/QNjc35Tt42yej7tQoL0a53Buiz+rVkEAmLptk50X4RSziMKOjXMs0zNFhoM9asVgoelrhV+KwKj707AJ0HDrBADsQeTjuLBU9iXK2S3BCaz1OL61E7m5+QI9zW4lI6JciU6tsAzvoFddAsGM1nHyLRutGhZ5YdjI9DHIfMk7uAsa4Ky+4zrvIjv57aK+wuCPyNm7Lo0Aidgbo0TEpFMqYa5C7t2eSak1CJ3bSv4tGFy5wgp0RUJouY25lmRGznricTeuiJR223AXo78KLGNPzPKEY14lm59KfszE7y0ON+KbJ2dldIJl2QfDMECvAljHajDUrkuO6eEl2aIg8xSSrF2ofw076nWUa1lCcxjq8Nz/Hw0PMR7GD5zBlZ9l8hr/vd2DnEr349SIp18nZZUUXvR+jiJGNNSvoPnb+orgj8StdEozHIbOe0gjHDq2z1dFommCWECQrFp6F7EznO4sE4P3PU4FEcYfYWRR3HIdSu9ncnNgZRs73SedXfnZEzrYlL0G2gqU463xj7pJEz3cOKdWbzXGOoNpmmXEAx7HzEUHkuPM8kXj0t0rEDkGxMO5o1G
|
||||
1/ekqvgATrzwTsAFpdmMhbZiM4Z4pk5zXCp+ue6gSiYcURHBt3mJ1He9jz7fgE7KQD7GDcifVazOvC4o6nKqHtIgyf+m4okhcoip0dShuPX3mu48sq+P/oIvrKMjvP1+u/zzf7B9jBuGMOY8tsoex89oFSOKf7LydeHtz7O8Hi9wYkaDDFWvNJpp3DnGfkqf8FBI1jB4vcnLN9Hw/8cUd5AnYoZxvNcrbHzHfy6O3BOps/yGivaRnNR++sJ7zOJu4x9YM3dOh+z+fgAoPppeRawY/r1U9z5onYwXuj5uL5DpYUPOyIuBM/38n52fHV2abCFCFyQCpWnS1aCM3Z8l2qNMzgdQeAxNAw7qZ3YEPjTnhc8t8bfZorxUf5tymQmJ1H1AqoHOevFSxiJ7s47oCS2i9UcLuYhp6wuKN1KGFrhCi/invugqtzZEeIO4aph7NDt6y4Rv1vc+YnPp9E7KjV2R6Ts2WIHTc2ee+N+vXJn1LocZcZSHa8fbSmhes532Uz8w9MiIrD3S+hmoucLSruwJBR7Gw/2NgmMOoYXxzn3t6G16/0sf0F3tbsK6iHiG3brvmOn5P9MMX8IjrckMkYu+UmNuy4kZZf8SN5vDEajHFgcVi3Dxz6xr6nD6DHvbTEId+HHv+JHfAHPlxCdmA928Kc7WXo/Z34WoE2AM8NshMoqpHq6S1apHMhVtXJe6PetaB0TxQcvX8xHA4GlwNoQ7cNaM5v3vmLCLO4E8NOTNz5JlzSxw547ZWLykGQnQef/7je7TV5jyZEHYBFMMgGOxyBqm3jMGPbho+Inf/JjwVqYHuDll52JsxOInITsUPJ2G+Ljk//uHuKXDTfMeZvbHrHyWCfx7DjOAWxSOcIg9R8zlamuIRPOFAveugBZjnwIJABTwld61ALh6VtYQuvVWsFeZuiATVwZdHIgQ9+Tv2cusLI8BZfcvZ9agXa2PYulHVjFZqDSSq1kqIoBewAFgggsVNGyxpGJDjey
|
||||
koqlSJgxpOx/dYXdzBa3dhj6Elxh7beirOT7MxOd9GV5P0+BRKxQwFl0bqCDPWaLclxCsLXYy8EufyHxTkbDUJ1NKsLM6qt4PM7NbxPZNbflIur68W1YqGQz8GfTDYrnnfVNK2A1TrL573izChgReZs0XEnTwlSGDtlgRKBINipUczwxx2Z5wkv3xaIkMnNZHJlj++9ORsGGRgG0AEEBTv5b5Ntb84m2Nn+al9R3KEtmST+LsHGNI/b31cgOTsLcrYCFsOsjqeslj+nQltYBibPXztBlx9O8Yqe7wiDbB1p1I8ztPzaHE7DyAamflY9VpZ1w4I/8ylk7HwHDxMx38l5444736G4M8+Os43/9ssw4PImbISXH0BIWaEoBQDh/OSA5k7e+Q7FHegm2XFWv00eRM4mUBHsQLL3EGRH7Cx7WP/7/rPMFonYoZwt7jkY7dVvEBMso+JzTXoGzTTO93b39vZ26QV/5Lv9znGbsrrq9BanZCeGNlofag0pyszYWaUyXDu+HO4U4QQtY66Tas7mzj+CtQKZMlHOJmsFEKAO7HEg5rkzEvD86RQJwgsC9AX+SnY8qsv5lZjvwFHLE5pr+WoFZScHQc/N2WTccY/EcUftX4BE7GA2ZnbrDU+r/qdGrU6vnWucYTSDGdFWB50cFjJ724ge4BZPX2O7nFlJdsLrYeJ7ZypkRM2QcWerh1t9/382JESmNUjbrH5wR5NmRq1QWWkld1SdTSRic3W2OXYg2YLB39tjf9xZ9dTZpHdjkYCCD7yROds0psAeAc83/IiCz4GPHRHyYF70EJzvyNF5vqOGTrLnd/o6VKx085On3X66hXVm5i008/aToQ/1ZsiDpS9r59NiV/ibQcXj8jmokQ2HnkeAwr5sqYdngyf0QezWOtew0Yv7b4PIcdZw9GZgJU/FgE8vwm4LOU4b9uk9RcnZ7JkokCjuNM6wtbytDRv0t42vZ2enrXJYNbp0dHZ6CnvpBxtuzX6d
|
||||
nTW9j6Nm6titHVpKnl6H/AkcDlv7RLIDVqftSuST3bMrmG22zlqNQNZWxrNvhFcRD9twnPhp1DPxD/4a0QokYoeFZQWWWAFmZ4kvPn/1RAowO4nkY+MlVoDZWeKLz189kQLMTiL52HiJFfg/zxpb1Kxf8LIAAAAASUVORK5CYII=</ImageData>
|
||||
</EmbeddedImage>
|
||||
<EmbeddedImage Name="radius">
|
||||
<MIMEType>image/png</MIMEType>
|
||||
<ImageData>iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAPYQAAD2EAdWsr3QAAAAHdElNRQfZBhAOARu/XJDfAAAAGXRFWHRTb2Z0d2FyZQBQYWludC5ORVQgdjMuNS420IOtWgAAEotJREFUeF7tXPdXlUm29f+YtWZ+eG/Wm5nfZtqxBQlKkpxzzjnnHBWQpICKYAAjkhQVFUFRggFBUDEQRFtFaRMSBBHB/U7VBRtnnJYrSZ26q2+DrHu/r2rvqhP2OfWtWCFeAgGBgEBAICAQEAgIBAQCAgGBgEBAICAQEAgIBAQCAgGBgEBAICAQEAgIBAQCAgGBgEBAICAQEAgIBAQCAgGBgEDg+0TgJwVZrFZWxCpFOXyfM/hBRq2iqQl7RwcE+HsjNMgbwf5+8PZxh6OTLZTWKwtylornNesU4UCgBwT7ICDQG/5EAnv7ebnDx9sNPh6ucHZyEIQsBSGGxkYIDPBBcIAn/Dyd4evrCl8/D/j6eBAJdrCwNIGxnjYMdLTxk5zMj0EKm4iqrhYMaHJm1uYwszCFvqEO1LR0IaeqgpXyy2Or7RxsERYajEBfLyLEGyHBfmSuvODp4QJrKzMYERF6Wuow1NGEqaEBVisszzgXdGE6uTgjKTEeaclJSElOxMbkBGxIisWGhGjExUciJjYckVGh8CdA7B3toK1vABmFdYu+Ej08PBATGYKQ0AB+/4jwYHj7esDVxQFWpkYw1teDuZE+0jYmovZ0Fe0c70Uf04IC/7mLWdmYIyMzFckpCUREPDYQGambNvC/ZWakIitz02/vtBSkbdrISWMkMVtubW2JtSoL60xXyckiIMgfsXERdJ9QWiyxiI6K4LvC2cEaxiZ6WKemxMFnO2K9liZUtTS+fzLYhKzNjMkuuyKAVl5IoA/CCYio0CDERIQinnZIcmoSsrakY/uOXOwuLEBh
|
||||
0U56F2DX7jzk7chB7uYMImgDQsKCYW5rDRmVtfMCRk5pLSKiwvkuTUlNREbWJsRGhsHd2QH2dla0K3Swas3P87rHoq/y+dzAytIUjrZWcLK3ggO9mZNkkYsfRS7+fp4ICwjgJEVGhHDzxXZPbm429u7di/Lychw7UYmjlWU4sH8P8rdnYxOZD2Y6dAwM8XeZNVIBp6KphgQylVmb05Cdk4mtW3MQERYOZxd7ODhYwIB82nzm+l18V11dDfbWFnCwMEMSmYWzZIvjYqMhqyDPHTlbseu11WFqagw3J3sE+3kjjAgKD6NdFBuB9PRN2FO0G8dOHUfthbOorjmNwyUHsH3bFrpOBIWq9lBSU/0ikDaOtsjMpJ2Yl4OifbtRuHcX9xtOjjawn3be/1iz+ovX+S5An8sgmS3W1NeFlqnh7056pbwsOXU9cqxOREwgQkP8ERzkRzsoDKmpqThYfAgNlxtxufkSqk5WoqhwJ1/x4eGhsKad+K/+Rk1Tg5uo7Nws5O/ZgfJjZThTcxLbaHc4OtjA0sqUR0+yCor/PWTMhbDPfWbdelU4UTIWFEik+PsgiMJRFpYy31NSVorW6zfQcqMdNRfqcLi0GAU7t2NzVhri46KIyCBER0cib/tWHDy4H6XlxSirLOXvY8cr+A60s7WElbkRVNerCDKkIUlVQx3ubi7c14TTbgkNCUAE7Zicrbm42tqMnt5u1F04h4qj5fx9/Hglzp2rRT0RtWN7Hvbs2YWqUydQfaaKgoUdSEtP5nKIna0FzIx+f8dKM87/us9aWJlzMoLIz0RSpMZ2Qu7WzdyvHD12BKVHKlBO7127CvD40S+42dYCE2NDKK2ThyvlN3sK8lBeVoy0jBQEkSn09HCGoZmR2B3zWUlaJF+EBAfyzDoqMhTJG5O448/J2YKysjLs21fE/97f9wA32pphaWIATSVFmFHGzfSoU9UnOXmFhbuxJTsDGzbGUKYeCGdXJ+iZGGEt5R//WLN
|
||||
KkCQNSSrq6+Hn64nwEF8kJcfxXGLfgUJUV5/CqVNV2FmwA733utHechUm+tpQXSvHQ28WYV1oqMe19jb09PSg98F9dHXfxq1bN9HaehVNTQ2oJP+ye08+T1ADg3xhYWMNdW0tyCjKC5L+E0nGFiY8scvbnkPOugSNFxvQ0XkLXfe70dnbhY7bBDCZq/Pnz/FoqoAIOl51DNeuXcPz5y8x9QGg//Dhw/Qv9DswRf+e5L+x18TkewyNDHLT19x8GZWVR5C7bStCIyNg7+wEdV1tHrJLs5B+qM8qKivBjRx7TvZmnDhxjAC/hsf9TzE6OsrBm/0iaDH4ZgR3urtwufUKmi5RmHypCVevXkUn/e3169cSRhgN9HPg9RAePnxIO+UW2tvb0dHRgfv372Ng8DWmpj65NIaGhtDd3cnJLirag40bEuHj4wVzSzMur/zwBS1jUxPEJcSjrKKcVv4tvHo9ML2SP13Rs1f7m9G3+PXlC/Q+fojrtzp4zlLfeAFnaqtRsCufg3jrZgfevhvn12Tknjx5AkePVmDTphQuNkaQ6JiQGIOtuZtRUX4Yly7W48GDXoyNvfmEoVdvXuF29x2cOXMau3fvRDLJPAEBfrCyt6a8Sxs/y0unJnyTu0hebR1cPNyxI38nmaMLePb8ySfmhO2KO3fucCC77/Wgq6cbz4kAtuiHRoZx4mQVDh0uxk0i41ZnF67fbOdm7VTtaRI1U2BJJo+pBU9/7ceF+rNobKrDnsJ87CN5hkk35hbGMDTS5fK7rZ0FnJzt4ENaXBQpDVu2ZKGkpASXLzejr+8pJid+253j42P45Zf7/JolpQe5PJMQH81DbFZuUFRdfAV7QQk1MDFGdHwc16+6uu7iLa1GvvLpNTb+FsNkhtgOYSYrLj4KFy/Vk2m5xx1ycckhctjnuU9JSdmI+PhYFBcfpF3ymEjr4uScb2wgkDIIaFO4ODui5eoVVFUehYe7KxWoqFTr5UZJqC/MKRQ2Md
|
||||
antx6MjSRvM0ogGVEss2cJpbsbKQkUnWVSQFF+pAztN9owOPyaLwpmMkfHxnG/9xHONUiSVubvmA7HwnZbexuoaKrj73LfoFQjp6QAR5pcTk4O2eXz6O9/hsnJDx8nNjL6htv80dER+vkKe8lu+3h7chA3pSZz6bys+ABiYyJITo8kyd6Hh70x0eH835daW8l8vcJjWs1tZKZYYsiETitSoRkBUTGRfPWyohlTBv65RobMjDxFVdTgQDL9ytUy+KeMLGTkFbBGUQEKSuugoqaM9Rpq0NHR4uqwhYkhCafWPCrLJh9XW3sGT/toV0+SAyKGhoeHcfv2bW4y9+4v4rlTcgqRExYIOydHsMR3QVf211yMCYrBIT5ccr9y9TKPfmZeU5jktpo50NGRMTzrf46zZ88iL28bX6GGBjp8JXNzQPmIH0kqzLw4kYDIVm54cABCAnyp4OVF4fB+vBwcwqvhUfQ+7KMs/jg83RxhQ5XLhWpaWEVEKSqrQI3CcUaSAfkOpmxHx4ShjCSbe72deD81ickPU+h70k/hdRMOHz6E/B1buWrApCDmd1jiK0sh+tfg+dXfMTI3RCJJ4GWlh3GtpRWvBgZnAh7+c3ziHQYHByiP6MStDtKpaqo5Ecx2JyUlwMbGikq/BjCxMIehuSmUdDR4WZWpx2z1WtlYIiIkmGfz3l6uSEyIw8P+fozTah0eGcWlK5e5qTHQ11q0ibOxqK5XgwaVfg10NWBqok/JrD9Kac49vff4HF+Q6W2hfIiF03lUC9qUtpHGGsM1NpakKqhICmSL9jK3MeOSRcWRErS0NOPZi+c85JyJPUdH3pCTfITbd26g8lg5tm3L5duflX49Pd2hT40IP8nNLWLR0dOlxJE6R/y8eH38alv7dN4xiS6KlLaQs9UhoBZtsrMuzMhRU1eFpoYqtDVUYGlmyCUfbtaeP8PgwBD3b2XHKpCTl83zK1YbCiY1wuALyvhXjd+aJO6M7EzKgI+Ra
|
||||
WrGrzSIyUmWgDHXN4GRt2OUJ1zkIWdpyUHs2pmH+MQ42JDKK0O5x1fdlL7E7LKfhxd8qSx78vQpCfG0AAbfjOJIZQU57qUVFVeu/hnKKorQUFeBhqoSb5xwpwRz5+4C8i8dePXqBY8cD5eWICsrC7EUBbIAQJeswddi8Mn3GBFbstNJNyrnidmDXx5h/N17TgPLiIeHB3HlyiUU5G8lJxzCbWlYVCTUaHUvyADoIuamZpwQVuB6N70d2Y/29ms8jF2o+0h7nXXKa6FNSaSGyjooK6yBLgUI0VFhqG84Rwu2n6SdVhRRAY31Ifj7+85vnKaWFsikOjhbhfWXGtDZ1QMWKX0gKtiumJiYJM2pBqHUepOQGM3r2t7UEyU/h6qftBNnUZG3mzPSyVQO0RhmXmyXshyBRVTSXnMhP69KJWUTA31oUT1mLbVJKVPEyRbK/oNFOFd3hmtqLtSmxJr4pL4vy0oZo+VllA9QHYKFmM9eDvEQdkY7arl2lYelLNFKpZA1JCQMq1VU8Ke//kX6G85xhI4OdrT6QvGkv+9jTvOOIh6m+uroaS7afec4vBUr5VfDiMJma3MTvlOUqZeY9Rw0X2nC/e67SKGwXqpqJotsgskJMVaZfNDS2oYHff14Q4kc8J4708dP+rikwBKqzelp9Hsy6T6LF+XMBoNFZEG0CJiiy7UrEqdYbs2KWr7UZDFX4Bb7c2ZmJvBxd4E3db9kpm7Ag55OTE6N4zQlyXO+t7O7m0RJpQpdfWMdV1wHhkfoQhLjMDI6zLtFWJNDRmoKkXYAhtZWc7/BnEfynz8ot1aRt4Ser6+ThNfTkR3TsfLz8/CTzPKardkjZwKqORHj7+2FmuozpFCfgLbhHHyqLlXh0jPTKCoqxsmaKjS3XCHh7SGXCyTznUJTYz28PDwRFR5ESV0NklKSl5SI2RNlZqusrGQ6oJiJtUHl3xZoUMFrAXhflEv88W9/+/LYfCk+LtpXiKNHytHYcAHX
|
||||
SKpmJmpsQrIt+h4/QDolOUyWaKqrQ11DI7QMDPCH//2fL198Uaa1YoUZtRgVUG1dEmpL6iDMdA0NjSAwNGTZxjXv6caTHF1y+AAX/xovX8KNu3fx5OkLbqImJsZRW3MK8dERKDu0H8+e9SM3f9s3MVm2C1Io4WI7WFKIkmhl7H/FJYe/iTFKTY4HlUwrKsp4ifRy8xWqM9zG42fP8J6iqHv3e7GfatlHSHF9+fQpl7Vt3Vzxh//78zcxWRY2skZqJlzOJoQRw6QMVqKVGpDl/kLuthzeWsOy7faOW3j+4hXPLxrqzuEIEfWAZHCW8DVT0sUy7D/+5a/f1CS9qL+YVQQZITMvRsjE5DtqvA78psb6Ra5ZaMsqaay3qZHqy7e7utFyrZULY9evX5fIzPTaRwrmFy+2TB9gIXd9/Xk+ztnRFktYi4uLv9lxfxYuZTpQw+Rs1ljmStI1OyLAUv3Oux18cqx4FBUXjz/9+dswUZ+bhJGRAZViS7lb566d/uMyDo2/8+5tyNMBz2VaK9LfltlgZzp/p6epAk0qQ6oorkHpwb14SBL564GX8PDxXtYoai4zUtdcTw3a2dNx1kerxf/9jkqvDq6O3w8hbMKaelqk6xsQKVSEoRS/mtpqmqh9k7XEzAWQ5f6MPOlEiVRBZGVgtjc+Sv/chk0il4pFyz1Gqe+/UlYWCpT5Mp9iQBnlV4leUt91Yb6wUnY1b9Z++PgRJ2AmgZ1xKk1UuPpJ5gc+qLMwMC7sVdhZkLa2Nu4/WEVmpoGCkTIwMAB2Gndh7yiu9rsIsG6S6upq3h0nydklL54o0jsqJloQspRriJVt9+0tnKZhOmOfbjNihFQcPSIIWUpC2MGczIw0vH8vKZbN3iHs97tdnT/GOfSlBHU+95KhcJ2duH09OMwd+7++xsbGYG1vJ3bJfECW5rvsUKe/twdvpJ69Q2b8CPuZlpEuCJEG1Pl+1pnaOJubm/9td8xEXLW1tYKQ+YIszfc
|
||||
t6ZEZp6pOfoyuZjPDSOnr66OW0vWCFGlAnc9ndenI9V46p/45k8UCYdYz5uq5fC1C85nbd/ldDXpuCXu+yuQHasBgGuN02Mt2iiQ3mUJe/naxQ5aKXcV1a5FAHe8DI6//zY9I/jCF06dPCkKWipDV9CxFP0836qe98VseMosaVmSrqjouCFkqQth9nO2s6axi5seziTOND5LwdxKF9KCBH+Io2lKCOp97OREhLNpiTwNiPcacEF71nMLFi438CXNzeaDNfMYgvjsLAVt67paLsz3UqemZ1drzC7ahhrou2RFq1n1/cG8RnZL68hOGBKgLhAA76eRJh3ks6elEmnRmQ1NLlWfwB/YX4l7PXWzfskX4kAXCes6XYY/tY/201tT760CtrnmZGejtusOfHMTOD875QuKDC4uAEj3PkVU/bW1tYUhn4hf26uJq80JgMY9FzGtg4ssCAYGAQEAgIBAQCAgEBAICAYGAQEAgIBAQCAgEBAICAYGAQEAgIBAQCAgEBAICgeVC4P8Bh6yRB1teS1oAAAAASUVORK5CYII=</ImageData>
|
||||
</EmbeddedImage>
|
||||
</EmbeddedImages>
|
||||
<PageWidth>21cm</PageWidth>
|
||||
<DataSets>
|
||||
<DataSet Name="MoonPro">
|
||||
<Fields>
|
||||
<Field Name="IdxODL">
|
||||
<DataField>IdxODL</DataField>
|
||||
<rd:TypeName>System.Int32</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="CodArticolo">
|
||||
<DataField>CodArticolo</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="DescArticolo">
|
||||
<DataField>DescArticolo</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="IdxMacchina">
|
||||
<DataField>IdxMacchina</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="CodMacchina">
|
||||
<DataField>CodMacchina</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="Nome">
|
||||
<DataField>Nome</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="NumPezzi">
|
||||
<DataField>NumPezzi</DataField>
|
||||
<rd:TypeName>System.Int32</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="TCAssegnato">
|
||||
<DataField>TCAssegnato</DataField>
|
||||
<rd:TypeName>System.Decimal</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="DataInizio">
|
||||
<DataField>DataInizio</DataField>
|
||||
<rd:TypeName>System.DateTime</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="DataFine">
|
||||
<DataField>DataFine</DataField>
|
||||
<rd:TypeName>System.DateTime</rd:TypeName>
|
||||
</Field>
|
||||
</Fields>
|
||||
<Query>
|
||||
<DataSourceName>MoonPro</DataSourceName>
|
||||
<CommandText>exec stp_ODL_getByIdx 1,0</CommandText>
|
||||
<rd:UseGenericDesigner>true</rd:UseGenericDesigner>
|
||||
</Query>
|
||||
</DataSet>
|
||||
</DataSets>
|
||||
<Author>S.E. Locatelli</Author>
|
||||
<Code />
|
||||
<Width>19cm</Width>
|
||||
<Body>
|
||||
<ColumnSpacing>1cm</ColumnSpacing>
|
||||
<ReportItems>
|
||||
<Textbox Name="textbox16">
|
||||
<Top>27cm</Top>
|
||||
<Width>7.5cm</Width>
|
||||
<Style>
|
||||
<FontSize>9pt</FontSize>
|
||||
<TextAlign>Left</TextAlign>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>27</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Left>0.5cm</Left>
|
||||
<Height>0.5cm</Height>
|
||||
<Value>SteamWare MoonPro/MAPO - v2.250</Value>
|
||||
</Textbox>
|
||||
<Textbox Name="textbox21">
|
||||
<Top>27cm</Top>
|
||||
<Width>7.5cm</Width>
|
||||
<Style>
|
||||
<FontSize>9pt</FontSize>
|
||||
<TextAlign>Right</TextAlign>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>26</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Left>11.25cm</Left>
|
||||
<Height>0.5cm</Height>
|
||||
<Value>=Today</Value>
|
||||
</Textbox>
|
||||
<Line Name="line7">
|
||||
<Top>25.75cm</Top>
|
||||
<Width>18.25397cm</Width>
|
||||
<Style>
|
||||
<BorderStyle>
|
||||
<Default>Solid</Default>
|
||||
</BorderStyle>
|
||||
</Style>
|
||||
<ZIndex>25</ZIndex>
|
||||
<Left>0.5cm</Left>
|
||||
<Height>0cm</Height>
|
||||
</Line>
|
||||
<Line Name="line5">
|
||||
<Top>21.25cm</Top>
|
||||
<Width>18.25397cm</Width>
|
||||
<Style>
|
||||
<BorderStyle>
|
||||
<Default>Solid</Default>
|
||||
</BorderStyle>
|
||||
</Style>
|
||||
<ZIndex>24</ZIndex>
|
||||
<Left>0.5cm</Left>
|
||||
<Height>0cm</Height>
|
||||
</Line>
|
||||
<Textbox Name="textbox20">
|
||||
<Top>21.25cm</Top>
|
||||
<Width>18.25cm</Width>
|
||||
<Style>
|
||||
<BackgroundColor>#efefef</BackgroundColor>
|
||||
<FontSize>20pt</FontSize>
|
||||
<FontWeight>700</FontWeight>
|
||||
<TextAlign>Center</TextAlign>
|
||||
<VerticalAlign>Middle</VerticalAlign>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>23</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Left>0.5cm</Left>
|
||||
<Height>1.025cm</Height>
|
||||
<Value>Passo 3</Value>
|
||||
</Textbox>
|
||||
<Line Name="line4">
|
||||
<Top>15.5cm</Top>
|
||||
<Width>18.25397cm</Width>
|
||||
<Style>
|
||||
<BorderStyle>
|
||||
<Default>Solid</Default>
|
||||
</BorderStyle>
|
||||
</Style>
|
||||
<ZIndex>22</ZIndex>
|
||||
<Left>0.5cm</Left>
|
||||
<Height>0cm</Height>
|
||||
</Line>
|
||||
<Textbox Name="textbox19">
|
||||
<Top>15.5cm</Top>
|
||||
<Width>18.25cm</Width>
|
||||
<Style>
|
||||
<BackgroundColor>#efefef</BackgroundColor>
|
||||
<FontSize>20pt</FontSize>
|
||||
<FontWeight>700</FontWeight>
|
||||
<TextAlign>Center</TextAlign>
|
||||
<VerticalAlign>Middle</VerticalAlign>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>21</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Left>0.5cm</Left>
|
||||
<Height>1.025cm</Height>
|
||||
<Value>Passo 2</Value>
|
||||
</Textbox>
|
||||
<Line Name="line6">
|
||||
<Top>9.75cm</Top>
|
||||
<Width>18.25397cm</Width>
|
||||
<Style>
|
||||
<BorderStyle>
|
||||
<Default>Solid</Default>
|
||||
</BorderStyle>
|
||||
</Style>
|
||||
<ZIndex>20</ZIndex>
|
||||
<Left>0.5cm</Left>
|
||||
<Height>0cm</Height>
|
||||
</Line>
|
||||
<Textbox Name="textbox18">
|
||||
<Top>9.75cm</Top>
|
||||
<Width>18.25cm</Width>
|
||||
<Style>
|
||||
<BackgroundColor>#efefef</BackgroundColor>
|
||||
<FontSize>20pt</FontSize>
|
||||
<FontWeight>700</FontWeight>
|
||||
<TextAlign>Center</TextAlign>
|
||||
<VerticalAlign>Middle</VerticalAlign>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>19</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Left>0.5cm</Left>
|
||||
<Height>1.025cm</Height>
|
||||
<Value>Passo 1</Value>
|
||||
</Textbox>
|
||||
<Textbox Name="textbox17">
|
||||
<Top>3cm</Top>
|
||||
<Width>18.25cm</Width>
|
||||
<Style>
|
||||
<BackgroundColor>White</BackgroundColor>
|
||||
<BorderStyle>
|
||||
<Default>Solid</Default>
|
||||
</BorderStyle>
|
||||
<BorderWidth>
|
||||
<Default>2.25pt</Default>
|
||||
</BorderWidth>
|
||||
<FontSize>36pt</FontSize>
|
||||
<TextAlign>Center</TextAlign>
|
||||
<VerticalAlign>Middle</VerticalAlign>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>18</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Left>0.5cm</Left>
|
||||
<Height>2.75cm</Height>
|
||||
<Value>Scheda di attrezzaggio ODL</Value>
|
||||
</Textbox>
|
||||
<Textbox Name="textbox15">
|
||||
<Top>2.25cm</Top>
|
||||
<Width>7.5cm</Width>
|
||||
<Style>
|
||||
<FontSize>9pt</FontSize>
|
||||
<TextAlign>Right</TextAlign>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>17</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Left>11cm</Left>
|
||||
<Height>0.5cm</Height>
|
||||
<Value>Stabilimento di Passirano (BS)</Value>
|
||||
</Textbox>
|
||||
<Textbox Name="textbox14">
|
||||
<Top>22.5cm</Top>
|
||||
<Width>13cm</Width>
|
||||
<Style>
|
||||
<FontFamily>Free 3 of 9 Extended</FontFamily>
|
||||
<FontSize>64pt</FontSize>
|
||||
<TextAlign>Center</TextAlign>
|
||||
<VerticalAlign>Middle</VerticalAlign>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>16</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Left>5.75cm</Left>
|
||||
<Height>3cm</Height>
|
||||
<Value>="*AT07" & Fields!IdxODL.Value & "*"</Value>
|
||||
</Textbox>
|
||||
<Textbox Name="textbox13">
|
||||
<Top>16.75cm</Top>
|
||||
<Width>13.00529cm</Width>
|
||||
<Style>
|
||||
<FontFamily>Free 3 of 9 Extended</FontFamily>
|
||||
<FontSize>64pt</FontSize>
|
||||
<TextAlign>Center</TextAlign>
|
||||
<VerticalAlign>Middle</VerticalAlign>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>15</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Left>5.75cm</Left>
|
||||
<Height>3cm</Height>
|
||||
<Value>="*AT01" & Fields!IdxODL.Value & "*"</Value>
|
||||
</Textbox>
|
||||
<Textbox Name="textbox12">
|
||||
<Top>22.5cm</Top>
|
||||
<Width>5cm</Width>
|
||||
<Style>
|
||||
<FontSize>22pt</FontSize>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>14</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Left>0.5cm</Left>
|
||||
<Height>3cm</Height>
|
||||
<Value>Fine Produz</Value>
|
||||
</Textbox>
|
||||
<Textbox Name="textbox11">
|
||||
<Top>16.75cm</Top>
|
||||
<Width>5cm</Width>
|
||||
<Style>
|
||||
<FontSize>22pt</FontSize>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>13</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Left>0.5cm</Left>
|
||||
<Height>3cm</Height>
|
||||
<Value>Fine Attrezzaggio</Value>
|
||||
</Textbox>
|
||||
<Line Name="line3">
|
||||
<Top>20cm</Top>
|
||||
<Width>18.25397cm</Width>
|
||||
<Style>
|
||||
<BorderStyle>
|
||||
<Default>Solid</Default>
|
||||
</BorderStyle>
|
||||
</Style>
|
||||
<ZIndex>12</ZIndex>
|
||||
<Left>0.5cm</Left>
|
||||
<Height>0cm</Height>
|
||||
</Line>
|
||||
<Textbox Name="textbox10">
|
||||
<Top>7.25cm</Top>
|
||||
<Width>2.75cm</Width>
|
||||
<Style>
|
||||
<FontSize>14pt</FontSize>
|
||||
<FontWeight>700</FontWeight>
|
||||
<Format>#.00</Format>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>11</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Left>16cm</Left>
|
||||
<Height>0.75cm</Height>
|
||||
<Value>=First(Fields!TCAssegnato.Value)</Value>
|
||||
</Textbox>
|
||||
<Textbox Name="textbox9">
|
||||
<Top>7.25cm</Top>
|
||||
<Width>3.5cm</Width>
|
||||
<Style>
|
||||
<FontSize>11pt</FontSize>
|
||||
<TextAlign>Right</TextAlign>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>10</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Left>12.5cm</Left>
|
||||
<Height>0.75cm</Height>
|
||||
<Value>Tempo Ciclo(min)</Value>
|
||||
</Textbox>
|
||||
<Textbox Name="textbox8">
|
||||
<Top>6.25cm</Top>
|
||||
<Width>3.5cm</Width>
|
||||
<Style>
|
||||
<FontSize>11pt</FontSize>
|
||||
<TextAlign>Right</TextAlign>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>9</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Left>12.5cm</Left>
|
||||
<Height>0.75cm</Height>
|
||||
<Value>Pezzi da produrre</Value>
|
||||
</Textbox>
|
||||
<Textbox Name="textbox7">
|
||||
<Top>6.25cm</Top>
|
||||
<Width>2.75cm</Width>
|
||||
<Style>
|
||||
<FontSize>14pt</FontSize>
|
||||
<FontWeight>700</FontWeight>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>8</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Left>16cm</Left>
|
||||
<Height>0.75cm</Height>
|
||||
<Value>=First(Fields!NumPezzi.Value)</Value>
|
||||
</Textbox>
|
||||
<Textbox Name="textbox6">
|
||||
<Top>7.25cm</Top>
|
||||
<Width>6.5cm</Width>
|
||||
<Style>
|
||||
<FontStyle>Italic</FontStyle>
|
||||
<FontSize>12pt</FontSize>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>7</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Left>5.75cm</Left>
|
||||
<Height>0.75cm</Height>
|
||||
<Value>=First(Fields!DescArticolo.Value)</Value>
|
||||
</Textbox>
|
||||
<Textbox Name="textbox5">
|
||||
<Top>6.25cm</Top>
|
||||
<Width>6.5cm</Width>
|
||||
<Style>
|
||||
<FontSize>14pt</FontSize>
|
||||
<FontWeight>700</FontWeight>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>6</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Left>5.75cm</Left>
|
||||
<Height>0.75cm</Height>
|
||||
<Value>=First(Fields!CodArticolo.Value)</Value>
|
||||
</Textbox>
|
||||
<Textbox Name="textbox4">
|
||||
<Top>6.25cm</Top>
|
||||
<Width>5cm</Width>
|
||||
<Style>
|
||||
<FontSize>36pt</FontSize>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>5</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Left>0.5cm</Left>
|
||||
<Height>1.74603cm</Height>
|
||||
<Value>Articolo</Value>
|
||||
</Textbox>
|
||||
<Line Name="line2">
|
||||
<Top>14.25cm</Top>
|
||||
<Width>18.25397cm</Width>
|
||||
<Style>
|
||||
<BorderStyle>
|
||||
<Default>Solid</Default>
|
||||
</BorderStyle>
|
||||
</Style>
|
||||
<ZIndex>4</ZIndex>
|
||||
<Left>0.5cm</Left>
|
||||
<Height>0cm</Height>
|
||||
</Line>
|
||||
<Textbox Name="textbox3">
|
||||
<rd:DefaultName>textbox3</rd:DefaultName>
|
||||
<Top>11cm</Top>
|
||||
<Width>13cm</Width>
|
||||
<Style>
|
||||
<FontFamily>Free 3 of 9 Extended</FontFamily>
|
||||
<FontSize>64pt</FontSize>
|
||||
<TextAlign>Center</TextAlign>
|
||||
<VerticalAlign>Middle</VerticalAlign>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>3</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Left>5.75cm</Left>
|
||||
<Height>3cm</Height>
|
||||
<Value>="*AT02" & Fields!IdxODL.Value & "*"</Value>
|
||||
</Textbox>
|
||||
<Textbox Name="textbox2">
|
||||
<rd:DefaultName>textbox2</rd:DefaultName>
|
||||
<Top>11cm</Top>
|
||||
<Width>5cm</Width>
|
||||
<Style>
|
||||
<FontSize>22pt</FontSize>
|
||||
<VerticalAlign>Middle</VerticalAlign>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>2</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Left>0.5cm</Left>
|
||||
<Height>3cm</Height>
|
||||
<Value>Attrezzaggio ODL</Value>
|
||||
</Textbox>
|
||||
<Line Name="line1">
|
||||
<Top>2cm</Top>
|
||||
<Width>18.25397cm</Width>
|
||||
<Style>
|
||||
<BorderStyle>
|
||||
<Default>Solid</Default>
|
||||
</BorderStyle>
|
||||
</Style>
|
||||
<ZIndex>1</ZIndex>
|
||||
<Left>0.5cm</Left>
|
||||
<Height>0cm</Height>
|
||||
</Line>
|
||||
<Textbox Name="textbox1">
|
||||
<rd:DefaultName>textbox1</rd:DefaultName>
|
||||
<Top>0.25cm</Top>
|
||||
<Width>16.25cm</Width>
|
||||
<Style>
|
||||
<FontSize>48pt</FontSize>
|
||||
<FontWeight>700</FontWeight>
|
||||
<TextAlign>Right</TextAlign>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Left>2.25cm</Left>
|
||||
<Height>2.25cm</Height>
|
||||
<Value>Donati S.p.A.</Value>
|
||||
</Textbox>
|
||||
</ReportItems>
|
||||
<Height>27.7cm</Height>
|
||||
</Body>
|
||||
<Language>en-US</Language>
|
||||
<TopMargin>1cm</TopMargin>
|
||||
<PageHeight>29.7cm</PageHeight>
|
||||
</Report>
|
||||
@@ -0,0 +1,55 @@
|
||||
<body>
|
||||
<i>Server gestioen devices TAB per MAPO/MoonPro</i>
|
||||
<h4>Versione: {{CURRENT-REL}}</h4>
|
||||
<br />
|
||||
Note di rilascio:
|
||||
<ul>
|
||||
<li>
|
||||
<b>Ultime modifiche:</b>
|
||||
<ul>{{LAST-CHANGES}}</ul>
|
||||
</li>
|
||||
<li>
|
||||
<b>v.4.* →</b>
|
||||
<ul>
|
||||
<li>Integrazione sistemi di AutoUpdate</li>
|
||||
<li>Gestione KIT articoli</li>
|
||||
<li>Gestione doppia tavola/doppio subsistem</li>
|
||||
<li>Windows Server 2016 / SQL 2016</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<b>v.3.* →</b>
|
||||
<ul>
|
||||
<li>Implementazione sistemi MON</li>
|
||||
<li>Estensione reportistica "sequencer" aggregata</li>
|
||||
<li>Windows Server 2012R2 / SQL 2012</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<b>v.2.* →</b>
|
||||
<ul>
|
||||
<li>Implementazione con acquisitore rPI-IOB</li>
|
||||
<li>Applicazione avanzata di controllo e amministrazione</li>
|
||||
<li>Estensione reportistica aggregata e singola</li>
|
||||
<li>Windows Server 2012 / SQL 2008R2</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<b>v.1.* →</b>
|
||||
<ul>
|
||||
<li>Implementazione iniziale con acquisitore seriale da PC</li>
|
||||
<li>Applicazione iniziale con Kanban</li>
|
||||
<li>Windows Server 2008 / SQL 2005</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<div>
|
||||
<div style="float: left;">
|
||||
<img src="logoSteamware.png" />
|
||||
</div>
|
||||
<div style="float: right;">
|
||||
<a href="https://www.steamware.net/IOT" target="_blank">© Steamware 2006-2017</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
@@ -0,0 +1,172 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
<sectionGroup name="elmah">
|
||||
<section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah" />
|
||||
<section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah" />
|
||||
<section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah" />
|
||||
<section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah" />
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
<appSettings>
|
||||
<!--gestione timeout "esteso" x chiamate SQL critiche, in secondi -->
|
||||
<add key="sqlLongCommandTimeout" value="600" />
|
||||
<!--conf base-->
|
||||
<add key="appName" value="MoonProAdmin" />
|
||||
<add key="CodModulo" value="MoonPro" />
|
||||
<add key="_righeDataGrid" value="30" />
|
||||
<add key="_righeDataGridAnagr" value="20" />
|
||||
<add key="_righeDataGridMed" value="10" />
|
||||
<add key="_righeDataGridShort" value="10" />
|
||||
<add key="_fromEmail" value="MoonPro@steamware.net" />
|
||||
<!-- Logging -->
|
||||
<add key="_logDir" value="~/logs/" />
|
||||
<add key="_logLevel" value="5" />
|
||||
<add key="_logMaxMb" value="30" />
|
||||
<!--altro-->
|
||||
<add key="_allowForceUser" value="true" />
|
||||
<add key="_safePages" value="jumper.aspx#unauthorized.aspx#allegati.aspx#forceUser.aspx#login.aspx#test.aspx#istruzioni.aspx#Test.aspx" />
|
||||
<add key="_commonPages" value="menu.aspx" />
|
||||
<add key="_treeMaxChar" value="35" />
|
||||
<add key="_showAllTree" value="false" />
|
||||
<add key="_adminEmail" value="samuele@steamware.net" />
|
||||
<add key="_smtpCli" value="localhost" />
|
||||
<add key="keepAliveMin" value="60" />
|
||||
<add key="MinCharAutocomplete" value="1" />
|
||||
<add key="_pdwUpdateKanban" value="colmecc" />
|
||||
<add key="_pdwRefreshDb" value="steamware" />
|
||||
<!--area codici per barcode, dichiarazioni produzione-->
|
||||
<add key="prefDichProd" value="XX" />
|
||||
<add key="MostraProd" value="XXPRD" />
|
||||
<add key="ConfermaProd" value="XXOK" />
|
||||
<add key="AnnullaProd" value="XXCAN" />
|
||||
<add key="AumentaProd" value="XXP" />
|
||||
<add key="DiminuisciProd" value="XXM" />
|
||||
<!--area codici per barcode, dichiarazioni fermate-->
|
||||
<add key="prefDichFerm" value="FE" />
|
||||
<!--area codici per barcode, dichiarazioni operatore-->
|
||||
<add key="prefDichOp" value="OP" />
|
||||
<!--area codici per barcode, dichiarazioni operatore-->
|
||||
<add key="prefDichKanban" value="KA" />
|
||||
<!--area codici per barcode, attrezzaggi-->
|
||||
<add key="prefDichAttrezzaggio" value="AT" />
|
||||
<add key="StartSetup" value="AT02" />
|
||||
<add key="EndSetup" value="AT01" />
|
||||
<add key="EndProd" value="AT07" />
|
||||
<!--area config termini tooltip sequencer-->
|
||||
<add key="codV" value="Lavora" />
|
||||
<add key="codG" value="???" />
|
||||
<add key="codR" value="Ferma" />
|
||||
<add key="codS" value="Spenta" />
|
||||
<!--area oggetti di stampa-->
|
||||
<add key="exportFormat1" value="~/ExportPdf.aspx?tipo={0}&idx={1}" />
|
||||
<!--abilita auth solo con username-->
|
||||
<add key="authSenzaDominio" value="true" />
|
||||
<!--stringhe connessione-->
|
||||
<!--<add key="MoonProConnectionString" value="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer;" />
|
||||
<add key="PermessiConnectionString" value="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer;" />
|
||||
<add key="UtenteCdcConnectionString" value="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=Donati_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer;" />
|
||||
<add key="VocabolarioConnectionString" value="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=MoonPro_Vocabolario;Persist Security Info=True;User ID=sa;Password=keyhammer;" />-->
|
||||
|
||||
<!--DB TEST PROD-->
|
||||
<add key="MoonProConnectionString" value="Data Source=192.168.51.71\sqlexpress;Initial Catalog=Donati_MoonPro;Persist Security Info=True;User ID=steamware;Password=viadante16" />
|
||||
<add key="PermessiConnectionString" value="Data Source=192.168.51.71\sqlexpress;Initial Catalog=Donati_MoonPro;Persist Security Info=True;User ID=steamware;Password=viadante16" />
|
||||
<add key="UtenteCdcConnectionString" value="Data Source=192.168.51.71\sqlexpress;Initial Catalog=Donati_Anagrafica;Persist Security Info=True;User ID=steamware;Password=viadante16" />
|
||||
<add key="VocabolarioConnectionString" value="Data Source=192.168.51.71\sqlexpress;Initial Catalog=Donati_Vocabolario;Persist Security Info=True;User ID=steamware;Password=viadante16" />
|
||||
|
||||
<!--gestione charting-->
|
||||
<add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempImageFiles\;" />
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
<!--<add name="MoonProConnectionString" connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer;" providerName="System.Data.SqlClient" />
|
||||
<add name="MapoDb.Properties.Settings.MoonProConnectionString" connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer;" providerName="System.Data.SqlClient" />-->
|
||||
|
||||
<!--DB TEST PROD-->
|
||||
<add name="MoonProConnectionString" connectionString="Data Source=192.168.51.71\sqlexpress;Initial Catalog=Donati_MoonPro;Persist Security Info=True;User ID=steamware;Password=viadante16" providerName="System.Data.SqlClient" />
|
||||
<add name="MapoDb.Properties.Settings.MoonProConnectionString" connectionString="Data Source=192.168.51.71\sqlexpress;Initial Catalog=Donati_MoonPro;Persist Security Info=True;User ID=steamware;Password=viadante16" providerName="System.Data.SqlClient" />
|
||||
</connectionStrings>
|
||||
<system.web>
|
||||
<globalization uiCulture="auto" enableClientBasedCulture="true" />
|
||||
<compilation targetFramework="4.0">
|
||||
<assemblies>
|
||||
<add assembly="System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
|
||||
<add assembly="System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
|
||||
<add assembly="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
|
||||
<add assembly="System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
|
||||
<add assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
|
||||
<add assembly="System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
|
||||
<add assembly="System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
|
||||
<add assembly="System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
|
||||
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
|
||||
<add assembly="System.ServiceProcess, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
|
||||
<add assembly="System.Configuration.Install, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
|
||||
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
|
||||
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
<add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
</assemblies>
|
||||
</compilation>
|
||||
<httpRuntime executionTimeout="240" maxRequestLength="32768" />
|
||||
<pages>
|
||||
<controls>
|
||||
<add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" />
|
||||
<add tagPrefix="asp" namespace="System.Web.UI.DataVisualization.Charting" assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
|
||||
</controls>
|
||||
</pages>
|
||||
<httpHandlers>
|
||||
<add path="ChartImg.axd" verb="GET,HEAD,POST" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />
|
||||
</httpHandlers>
|
||||
<!--<customErrors mode="Off" />-->
|
||||
<customErrors mode="RemoteOnly" defaultRedirect="unauthorized.aspx" />
|
||||
<httpModules>
|
||||
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
|
||||
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" />
|
||||
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" />
|
||||
</httpModules></system.web>
|
||||
<system.webServer>
|
||||
<validation validateIntegratedModeConfiguration="false" />
|
||||
<handlers>
|
||||
<remove name="ChartImageHandler" />
|
||||
<add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD,POST" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
|
||||
</handlers>
|
||||
<modules>
|
||||
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" />
|
||||
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler" />
|
||||
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler" />
|
||||
</modules></system.webServer>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="ICSharpCode.SharpZipLib" publicKeyToken="1b03e6acf1164f73" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-0.86.0.518" newVersion="0.86.0.518" />
|
||||
<assemblyIdentity name="AjaxControlToolkit" publicKeyToken="28f01b0e84b6d53e" culture="neutral" />
|
||||
<!--<bindingRedirect oldVersion="0.0.0.0-4.1.60919.0" newVersion="4.1.60919.0" />-->
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
<elmah>
|
||||
<!--
|
||||
See http://code.google.com/p/elmah/wiki/SecuringErrorLogPages for
|
||||
more information on remote access and securing ELMAH.
|
||||
-->
|
||||
<security allowRemoteAccess="false" />
|
||||
</elmah><location path="elmah.axd" inheritInChildApplications="false">
|
||||
<system.web>
|
||||
<httpHandlers>
|
||||
<add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" />
|
||||
</httpHandlers>
|
||||
<!--
|
||||
See http://code.google.com/p/elmah/wiki/SecuringErrorLogPages for
|
||||
more information on using ASP.NET authorization securing ELMAH.
|
||||
|
||||
<authorization>
|
||||
<allow roles="admin" />
|
||||
<deny users="*" />
|
||||
</authorization>
|
||||
-->
|
||||
</system.web>
|
||||
<system.webServer>
|
||||
<handlers>
|
||||
<add name="ELMAH" verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode" />
|
||||
</handlers>
|
||||
</system.webServer>
|
||||
</location></configuration>
|
||||
@@ -0,0 +1,172 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
<sectionGroup name="elmah">
|
||||
<section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah" />
|
||||
<section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah" />
|
||||
<section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah" />
|
||||
<section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah" />
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
<appSettings>
|
||||
<!--gestione timeout "esteso" x chiamate SQL critiche, in secondi -->
|
||||
<add key="sqlLongCommandTimeout" value="600" />
|
||||
<!--conf base-->
|
||||
<add key="appName" value="MoonProAdmin" />
|
||||
<add key="CodModulo" value="MoonPro" />
|
||||
<add key="_righeDataGrid" value="30" />
|
||||
<add key="_righeDataGridAnagr" value="20" />
|
||||
<add key="_righeDataGridMed" value="10" />
|
||||
<add key="_righeDataGridShort" value="10" />
|
||||
<add key="_fromEmail" value="MoonPro@steamware.net" />
|
||||
<!-- Logging -->
|
||||
<add key="_logDir" value="~/logs/" />
|
||||
<add key="_logLevel" value="5" />
|
||||
<add key="_logMaxMb" value="30" />
|
||||
<!--altro-->
|
||||
<add key="_allowForceUser" value="true" />
|
||||
<add key="_safePages" value="jumper.aspx#unauthorized.aspx#allegati.aspx#forceUser.aspx#login.aspx#test.aspx#istruzioni.aspx#Test.aspx" />
|
||||
<add key="_commonPages" value="menu.aspx" />
|
||||
<add key="_treeMaxChar" value="35" />
|
||||
<add key="_showAllTree" value="false" />
|
||||
<add key="_adminEmail" value="samuele@steamware.net" />
|
||||
<add key="_smtpCli" value="localhost" />
|
||||
<add key="keepAliveMin" value="60" />
|
||||
<add key="MinCharAutocomplete" value="1" />
|
||||
<add key="_pdwUpdateForzato" value="colmecc" />
|
||||
<add key="_pdwRefreshDb" value="steamware" />
|
||||
<!--area codici per barcode, dichiarazioni produzione-->
|
||||
<add key="prefDichProd" value="XX" />
|
||||
<add key="MostraProd" value="XXPRD" />
|
||||
<add key="ConfermaProd" value="XXOK" />
|
||||
<add key="AnnullaProd" value="XXCAN" />
|
||||
<add key="AumentaProd" value="XXP" />
|
||||
<add key="DiminuisciProd" value="XXM" />
|
||||
<!--area codici per barcode, dichiarazioni fermate-->
|
||||
<add key="prefDichFerm" value="FE" />
|
||||
<!--area codici per barcode, dichiarazioni operatore-->
|
||||
<add key="prefDichOp" value="OP" />
|
||||
<!--area codici per barcode, attrezzaggi-->
|
||||
<add key="prefDichAttrezzaggio" value="AT" />
|
||||
<add key="StartSetup" value="AT02" />
|
||||
<add key="EndSetup" value="AT01" />
|
||||
<add key="EndProd" value="AT07" />
|
||||
<!--area config termini tooltip sequencer-->
|
||||
<add key="codV" value="Lavora" />
|
||||
<add key="codG" value="???" />
|
||||
<add key="codR" value="Ferma" />
|
||||
<add key="codS" value="Spenta" />
|
||||
<!--area oggetti di stampa-->
|
||||
<add key="exportFormat1" value="~/ExportPdf.aspx?tipo={0}&idx={1}" />
|
||||
<!--abilita auth solo con username-->
|
||||
<add key="authSenzaDominio" value="true" />
|
||||
<!--stringhe connessione-->
|
||||
<add key="MoonProConnectionString" value="Data Source=localhost\sqlexpress;Initial Catalog=Donati_MoonPro;Persist Security Info=True;User ID=steamware;Password=viadante16" />
|
||||
<add key="PermessiConnectionString" value="Data Source=localhost\sqlexpress;Initial Catalog=Donati_MoonPro;Persist Security Info=True;User ID=steamware;Password=viadante16" />
|
||||
<add key="UtenteCdcConnectionString" value="Data Source=localhost\sqlexpress;Initial Catalog=Donati_Anagrafica;Persist Security Info=True;User ID=steamware;Password=viadante16" />
|
||||
<add key="VocabolarioConnectionString" value="Data Source=localhost\sqlexpress;Initial Catalog=Donati_Vocabolario;Persist Security Info=True;User ID=steamware;Password=viadante16" />
|
||||
<!--gestione charting-->
|
||||
<add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempImageFiles\;" />
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
<add name="MoonProConnectionString" connectionString="Data Source=localhost\sqlexpress;Initial Catalog=Donati_MoonPro;Persist Security Info=True;User ID=steamware;Password=viadante16" providerName="System.Data.SqlClient" />
|
||||
<add name="MapoDb.Properties.Settings.MoonProConnectionString" connectionString="Data Source=localhost\sqlexpress;Initial Catalog=Donati_MoonPro;Persist Security Info=True;User ID=steamware;Password=viadante16" providerName="System.Data.SqlClient" />
|
||||
</connectionStrings>
|
||||
<!--
|
||||
For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.
|
||||
|
||||
The following attributes can be set on the <httpRuntime> tag.
|
||||
<system.Web>
|
||||
<httpRuntime targetFramework="4.5.2" />
|
||||
</system.Web>
|
||||
-->
|
||||
<system.web>
|
||||
<globalization uiCulture="auto" enableClientBasedCulture="true" />
|
||||
<compilation targetFramework="4.6.2">
|
||||
<assemblies>
|
||||
<add assembly="System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
|
||||
<add assembly="System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
|
||||
<add assembly="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
|
||||
<add assembly="System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
|
||||
<add assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
|
||||
<add assembly="System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
|
||||
<add assembly="System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
|
||||
<add assembly="System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
|
||||
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
|
||||
<add assembly="System.ServiceProcess, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
|
||||
<add assembly="System.Configuration.Install, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
|
||||
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
|
||||
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
<add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
</assemblies>
|
||||
</compilation>
|
||||
<httpRuntime executionTimeout="240" maxRequestLength="32768" />
|
||||
<pages controlRenderingCompatibilityVersion="4.0">
|
||||
<controls>
|
||||
<add tagPrefix="asp" namespace="System.Web.UI.DataVisualization.Charting" assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
|
||||
<add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" />
|
||||
</controls>
|
||||
</pages>
|
||||
<httpHandlers>
|
||||
<add path="ChartImg.axd" verb="GET,HEAD,POST" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />
|
||||
</httpHandlers>
|
||||
<!--<customErrors mode="Off" />-->
|
||||
<customErrors mode="RemoteOnly" defaultRedirect="unauthorized.aspx" />
|
||||
<httpModules>
|
||||
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
|
||||
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" />
|
||||
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" />
|
||||
</httpModules>
|
||||
</system.web>
|
||||
<system.webServer>
|
||||
<validation validateIntegratedModeConfiguration="false" />
|
||||
<handlers>
|
||||
<remove name="ChartImageHandler" />
|
||||
<add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD,POST" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
|
||||
</handlers>
|
||||
<modules>
|
||||
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" />
|
||||
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler" />
|
||||
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler" />
|
||||
</modules>
|
||||
</system.webServer>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="ICSharpCode.SharpZipLib" publicKeyToken="1b03e6acf1164f73" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-0.86.0.518" newVersion="0.86.0.518" />
|
||||
<assemblyIdentity name="AjaxControlToolkit" publicKeyToken="28f01b0e84b6d53e" culture="neutral" />
|
||||
<!--<bindingRedirect oldVersion="0.0.0.0-4.1.60919.0" newVersion="4.1.60919.0" />-->
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
<elmah>
|
||||
<!--
|
||||
See http://code.google.com/p/elmah/wiki/SecuringErrorLogPages for
|
||||
more information on remote access and securing ELMAH.
|
||||
-->
|
||||
<security allowRemoteAccess="false" />
|
||||
</elmah>
|
||||
<location path="elmah.axd" inheritInChildApplications="false">
|
||||
<system.web>
|
||||
<httpHandlers>
|
||||
<add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" />
|
||||
</httpHandlers>
|
||||
<!--
|
||||
See http://code.google.com/p/elmah/wiki/SecuringErrorLogPages for
|
||||
more information on using ASP.NET authorization securing ELMAH.
|
||||
|
||||
<authorization>
|
||||
<allow roles="admin" />
|
||||
<deny users="*" />
|
||||
</authorization>
|
||||
-->
|
||||
</system.web>
|
||||
<system.webServer>
|
||||
<handlers>
|
||||
<add name="ELMAH" verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode" />
|
||||
</handlers>
|
||||
</system.webServer>
|
||||
</location>
|
||||
</configuration>
|
||||
<!--ProjectGuid: 18C9C6CF-52CB-4299-BC6E-C1DC78DF632C-->
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 3.3 KiB |
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>1.0.0.0</version>
|
||||
<url>http://seriate.steamware.net:8083/SWS/MAPO/{{PACKNAME}}/{{BRANCHNAME}}/{{PACKNAME}}.zip</url>
|
||||
<changelog>http://seriate.steamware.net:8083/SWS/MAPO/{{PACKNAME}}/{{BRANCHNAME}}/ChangeLog.html</changelog>
|
||||
<mandatory>false</mandatory>
|
||||
</item>
|
||||
@@ -0,0 +1,7 @@
|
||||
<%@ Page Title="MPADM | Storico TC" Language="C#" MasterPageFile="~/WebMasterPages/MoonPro.master" AutoEventWireup="true" CodeBehind="StoricoTC.aspx.cs" Inherits="MoonProAdmin.StoricoTC" %>
|
||||
|
||||
<%@ Register Src="~/WebUserControls/mod_storicoTC.ascx" TagPrefix="uc1" TagName="mod_storicoTC" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
<uc1:mod_storicoTC runat="server" id="mod_storicoTC" />
|
||||
</asp:Content>
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
|
||||
namespace MoonProAdmin
|
||||
{
|
||||
public partial class StoricoTC : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
+24
@@ -0,0 +1,24 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 {
|
||||
|
||||
|
||||
public partial class StoricoTC {
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_storicoTC.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::MoonProAdmin.WebUserControls.mod_storicoTC mod_storicoTC;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<%@ WebService Language="C#" CodeBehind="AutoCompletamento.asmx.cs" Class="MoonProAdmin.WS.AutoCompletamento" %>
|
||||
@@ -0,0 +1,42 @@
|
||||
using SteamWare;
|
||||
using System.Collections.Generic;
|
||||
using System.Web.Services;
|
||||
|
||||
namespace MoonProAdmin.WS
|
||||
{
|
||||
/// <summary>
|
||||
/// servizi per AutoCompletamento oggetti
|
||||
/// </summary>
|
||||
[WebService(Namespace = "http://www.steamware.net/")]
|
||||
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
|
||||
[System.ComponentModel.ToolboxItem(false)]
|
||||
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
|
||||
[System.Web.Script.Services.ScriptService]
|
||||
public class AutoCompletamento : System.Web.Services.WebService
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// elenco articoli per ricerca interattiva
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[WebMethod(Description = "elenco articoli per ricerca interattiva")]
|
||||
public string[] elencoArticoli(string prefixText, int count)
|
||||
{
|
||||
// inizializzo risposta
|
||||
List<string> suggerimenti = new List<string>();
|
||||
// proseguo SOLO SE min "MinCharAutocomplete" char...
|
||||
if (count >= memLayer.ML.CRI("MinCharAutocomplete"))
|
||||
{
|
||||
// elenco candidati
|
||||
MapoDb.DS_Utility.v_selArticoliDataTable tabDati = MapoDb.DataLayer.obj.taSelArt.getByConditio(prefixText);
|
||||
// aggiungo ogni riga...
|
||||
foreach (MapoDb.DS_Utility.v_selArticoliRow riga in tabDati)
|
||||
{
|
||||
suggerimenti.Add(riga.value);
|
||||
}
|
||||
}
|
||||
return suggerimenti.ToArray();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
+56
-3
@@ -4,6 +4,33 @@
|
||||
https://go.microsoft.com/fwlink/?LinkId=169433
|
||||
-->
|
||||
<configuration>
|
||||
<configSections>
|
||||
<sectionGroup name="elmah">
|
||||
<section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah" />
|
||||
<section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah" />
|
||||
<section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah" />
|
||||
<section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah" />
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
<appSettings>
|
||||
<add key="CodModulo" value="MoonPro" />
|
||||
<add key="cacheOnRedis" value="true" />
|
||||
<add key="maxAgeAppConf_min" value="5" />
|
||||
<add key="_logDir" value="~/logs/" />
|
||||
<!--gestione timeout "esteso" x chiamate SQL critiche, in secondi -->
|
||||
<add key="sqlLongCommandTimeout" value="600" />
|
||||
<add key="DbConfConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16" />
|
||||
<add key="MoonProConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16" />
|
||||
<add key="MoonProConnectionStringIS" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro_IS_ColCom;Persist Security Info=True;User ID=sa;Password=keyhammer16" />
|
||||
<add key="PermessiConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16" />
|
||||
<add key="UtenteCdcConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer16" />
|
||||
<add key="VocabolarioConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro_Vocabolario;Persist Security Info=True;User ID=sa;Password=keyhammer16" />
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
<add name="MoonProConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16" providerName="System.Data.SqlClient" />
|
||||
<add name="MapoDb.Properties.Settings.MoonProConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16" providerName="System.Data.SqlClient" />
|
||||
<add name="MapoDb.Properties.Settings.MoonPro_IS_ConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro_IS_ColCom;Persist Security Info=True;User ID=sa;Password=keyhammer16" providerName="System.Data.SqlClient" />
|
||||
</connectionStrings>
|
||||
<system.web>
|
||||
<compilation debug="true" targetFramework="4.6.1" />
|
||||
<httpRuntime targetFramework="4.6.1" />
|
||||
@@ -16,7 +43,7 @@
|
||||
</controls>
|
||||
</pages>
|
||||
<httpModules>
|
||||
</httpModules>
|
||||
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" /><add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" /><add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" /></httpModules>
|
||||
</system.web>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
@@ -40,7 +67,7 @@
|
||||
</runtime>
|
||||
<system.webServer>
|
||||
<modules>
|
||||
</modules>
|
||||
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" /><add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler" /><add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler" /></modules>
|
||||
<validation validateIntegratedModeConfiguration="false" />
|
||||
</system.webServer>
|
||||
<system.codedom>
|
||||
@@ -49,4 +76,30 @@
|
||||
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:41008 /define:_MYTYPE=\"Web\" /optionInfer+" />
|
||||
</compilers>
|
||||
</system.codedom>
|
||||
</configuration>
|
||||
<elmah>
|
||||
<!--
|
||||
See http://code.google.com/p/elmah/wiki/SecuringErrorLogPages for
|
||||
more information on remote access and securing ELMAH.
|
||||
-->
|
||||
<security allowRemoteAccess="false" />
|
||||
</elmah><location path="elmah.axd" inheritInChildApplications="false">
|
||||
<system.web>
|
||||
<httpHandlers>
|
||||
<add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" />
|
||||
</httpHandlers>
|
||||
<!--
|
||||
See http://code.google.com/p/elmah/wiki/SecuringErrorLogPages for
|
||||
more information on using ASP.NET authorization securing ELMAH.
|
||||
|
||||
<authorization>
|
||||
<allow roles="admin" />
|
||||
<deny users="*" />
|
||||
</authorization>
|
||||
-->
|
||||
</system.web>
|
||||
<system.webServer>
|
||||
<handlers>
|
||||
<add name="ELMAH" verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode" />
|
||||
</handlers>
|
||||
</system.webServer>
|
||||
</location></configuration>
|
||||
@@ -0,0 +1,38 @@
|
||||
<%@ Master Language="C#" AutoEventWireup="True" Inherits="AjaxSimple" CodeBehind="AjaxSimple.master.cs" %>
|
||||
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_menuBottom.ascx" TagName="mod_menuBottom" TagPrefix="uc1" %>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title>Simplepage</title>
|
||||
<%--<link href="../Style.css" rel="stylesheet" type="text/css" />
|
||||
<link href="../Content/font-awesome.min.css" rel="stylesheet" type="text/css" />--%>
|
||||
<link href="~/Content/bootstrap.min.css" rel="stylesheet" type="text/css" />
|
||||
<link href="~/Content/Style.min.css" rel="stylesheet" type="text/css" />
|
||||
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
|
||||
</head>
|
||||
<body class="body">
|
||||
<form id="form1" runat="server">
|
||||
<asp:ScriptManager ID="sm" runat="server" EnablePartialRendering="true" EnableScriptGlobalization="true" EnableScriptLocalization="true">
|
||||
</asp:ScriptManager>
|
||||
<div>
|
||||
<table class="formatTableGeneral" id="tblFormat" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td class="bodyMain">
|
||||
<div>
|
||||
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
|
||||
</asp:ContentPlaceHolder>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bottomWrite">
|
||||
<uc1:mod_menuBottom ID="Mod_menuBottom1" runat="server" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
using System.Web.UI;
|
||||
|
||||
public partial class AjaxSimple : System.Web.UI.MasterPage
|
||||
{
|
||||
protected override void OnLoad(EventArgs e)
|
||||
{
|
||||
base.OnLoad(e);
|
||||
Page.Title = SteamWare.memLayer.ML.CRS("_titoloPagina");
|
||||
}
|
||||
}
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
public partial class AjaxSimple {
|
||||
|
||||
/// <summary>
|
||||
/// form1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// sm control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.ScriptManager sm;
|
||||
|
||||
/// <summary>
|
||||
/// ContentPlaceHolder1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ContentPlaceHolder ContentPlaceHolder1;
|
||||
|
||||
/// <summary>
|
||||
/// Mod_menuBottom1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::mod_menuBottom Mod_menuBottom1;
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Bootstrap.master.cs" Inherits="MoonProAdmin.WebMasterPages.Bootstrap" %>
|
||||
|
||||
<%@ Register Src="~/WebUserControls/mod_footer.ascx" TagPrefix="uc1" TagName="mod_footer" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_menuTopCompact.ascx" TagPrefix="uc1" TagName="mod_menuTopCompact" %>
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
|
||||
<head runat="server">
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="mobile-web-app-capable" content="yes" />
|
||||
<meta name="description" content="MP Tablet" />
|
||||
<meta name="author" content="Steamware" />
|
||||
<link rel="shortcut icon" href="~/favicon.ico" />
|
||||
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
|
||||
<title>MoonProAdmin: <%: SteamWare.devicesAuthProxy.getPage(Request.Url) %></title>
|
||||
|
||||
<asp:PlaceHolder ID="PlaceHolder1" runat="server">
|
||||
<%--<%: Scripts.Render("~/bundles/modernizr") %>--%>
|
||||
<%: Scripts.Render("~/bundles/jquery") %>
|
||||
<%: Scripts.Render("~/bundles/jqueryui") %>
|
||||
<%--<%: Scripts.Render("~/bundles/BrowserWindowSize") %>--%>
|
||||
</asp:PlaceHolder>
|
||||
<webopt:bundlereference id="BundleReference2" runat="server" path="~/Content/bootstrap" />
|
||||
<webopt:bundlereference id="BundleReference1" runat="server" path="~/Content/css" />
|
||||
<asp:ContentPlaceHolder ID="HeadContent" runat="server">
|
||||
</asp:ContentPlaceHolder>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<asp:ScriptManager ID="ScriptManager1" runat="server">
|
||||
<Scripts>
|
||||
<%--Framework Scripts--%>
|
||||
<asp:ScriptReference Name="MsAjaxBundle" />
|
||||
<asp:ScriptReference Name="WebForms.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebForms.js" />
|
||||
<asp:ScriptReference Name="WebUIValidation.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebUIValidation.js" />
|
||||
<asp:ScriptReference Name="MenuStandards.js" Assembly="System.Web" Path="~/Scripts/WebForms/MenuStandards.js" />
|
||||
<asp:ScriptReference Name="GridView.js" Assembly="System.Web" Path="~/Scripts/WebForms/GridView.js" />
|
||||
<asp:ScriptReference Name="DetailsView.js" Assembly="System.Web" Path="~/Scripts/WebForms/DetailsView.js" />
|
||||
<asp:ScriptReference Name="TreeView.js" Assembly="System.Web" Path="~/Scripts/WebForms/TreeView.js" />
|
||||
<asp:ScriptReference Name="WebParts.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebParts.js" />
|
||||
<asp:ScriptReference Name="Focus.js" Assembly="System.Web" Path="~/Scripts/WebForms/Focus.js" />
|
||||
<asp:ScriptReference Name="WebFormsBundle" />
|
||||
<%--Site Scripts--%>
|
||||
</Scripts>
|
||||
</asp:ScriptManager>
|
||||
<nav class="navbar navbar-dark bg-dark text-light p-0">
|
||||
<div class="container-fluid mx-0 px-0">
|
||||
<uc1:mod_menuTopCompact runat="server" ID="mod_menuTopCompact" />
|
||||
</div>
|
||||
</nav>
|
||||
<div class="container-fluid">
|
||||
<asp:UpdatePanel ID="uppContainer" runat="server">
|
||||
<ContentTemplate>
|
||||
<div class="row">
|
||||
<div class="col-12 mt-2 py-0">
|
||||
<asp:ContentPlaceHolder ID="body" runat="server">
|
||||
</asp:ContentPlaceHolder>
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
<footer class="footer fixed-bottom bg-dark">
|
||||
<div class="container-fluid">
|
||||
<uc1:mod_footer runat="server" ID="mod_footer" />
|
||||
</div>
|
||||
</footer>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
|
||||
namespace MoonProAdmin.WebMasterPages
|
||||
{
|
||||
public partial class Bootstrap : System.Web.UI.MasterPage
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
+105
@@ -0,0 +1,105 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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.WebMasterPages {
|
||||
|
||||
|
||||
public partial class Bootstrap {
|
||||
|
||||
/// <summary>
|
||||
/// Controllo PlaceHolder1.
|
||||
/// </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.PlaceHolder PlaceHolder1;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo BundleReference2.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference2;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo BundleReference1.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference1;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo HeadContent.
|
||||
/// </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.ContentPlaceHolder HeadContent;
|
||||
|
||||
/// <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 ScriptManager1.
|
||||
/// </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.ScriptManager ScriptManager1;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_menuTopCompact.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::MoonProAdmin.WebUserControls.mod_menuTopCompact mod_menuTopCompact;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo uppContainer.
|
||||
/// </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.UpdatePanel uppContainer;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo body.
|
||||
/// </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.ContentPlaceHolder body;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_footer.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::MoonProAdmin.WebUserControls.mod_footer mod_footer;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
<%@ Master Language="C#" AutoEventWireup="true" Inherits="MoonPro" CodeBehind="MoonPro.master.cs" %>
|
||||
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_menuTop.ascx" TagName="mod_menuTop" TagPrefix="uc1" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_pageTitleAndSearch.ascx" TagName="mod_pageTitleAndSearch"
|
||||
TagPrefix="uc3" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_ricercaGenerica.ascx" TagName="mod_ricercaGenerica"
|
||||
TagPrefix="uc4" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_menuBottom.ascx" TagName="mod_menuBottom"
|
||||
TagPrefix="uc5" %>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title>MP-ADM: <%: SteamWare.devicesAuthProxy.getPage(Request.Url) %></title>
|
||||
<link href="~/Content/bootstrap.min.css" rel="stylesheet" type="text/css" />
|
||||
<link href="~/Content/Style.min.css" rel="stylesheet" type="text/css" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="mobile-web-app-capable" content="yes" />
|
||||
<meta name="description" content="MP ADM" />
|
||||
<meta name="author" content="Steamware" />
|
||||
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
|
||||
<link rel="shortcut icon" href="~/favicon.ico" />
|
||||
|
||||
<%--
|
||||
<asp:PlaceHolder ID="PlaceHolder1" runat="server">
|
||||
<%: Scripts.Render("~/bundles/jquery") %>
|
||||
<%: Scripts.Render("~/bundles/jqueryui") %>
|
||||
</asp:PlaceHolder>
|
||||
<webopt:bundlereference id="BundleReference2" runat="server" path="~/Content/bootstrap" />
|
||||
<webopt:bundlereference id="BundleReference1" runat="server" path="~/Content/css" />
|
||||
--%>
|
||||
</head>
|
||||
<body class="body">
|
||||
<form id="form1" runat="server">
|
||||
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true" EnableScriptGlobalization="true" EnableScriptLocalization="true">
|
||||
<Scripts>
|
||||
<%--Framework Scripts--%>
|
||||
<asp:ScriptReference Name="MsAjaxBundle" />
|
||||
<asp:ScriptReference Name="WebForms.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebForms.js" />
|
||||
<asp:ScriptReference Name="WebUIValidation.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebUIValidation.js" />
|
||||
<asp:ScriptReference Name="MenuStandards.js" Assembly="System.Web" Path="~/Scripts/WebForms/MenuStandards.js" />
|
||||
<asp:ScriptReference Name="GridView.js" Assembly="System.Web" Path="~/Scripts/WebForms/GridView.js" />
|
||||
<asp:ScriptReference Name="DetailsView.js" Assembly="System.Web" Path="~/Scripts/WebForms/DetailsView.js" />
|
||||
<asp:ScriptReference Name="TreeView.js" Assembly="System.Web" Path="~/Scripts/WebForms/TreeView.js" />
|
||||
<asp:ScriptReference Name="WebParts.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebParts.js" />
|
||||
<asp:ScriptReference Name="Focus.js" Assembly="System.Web" Path="~/Scripts/WebForms/Focus.js" />
|
||||
<asp:ScriptReference Name="WebFormsBundle" />
|
||||
<%--Site Scripts--%>
|
||||
</Scripts>
|
||||
</asp:ScriptManager>
|
||||
<%--<asp:ScriptManager ID="sm" runat="server" EnablePartialRendering="true" EnableScriptGlobalization="true" EnableScriptLocalization="true">
|
||||
</asp:ScriptManager>--%>
|
||||
<uc1:mod_menuTop ID="Mod_menuTop1" runat="server" />
|
||||
<div class="container-fluid mt-5">
|
||||
<div class="row py-2">
|
||||
<div class="col-12">
|
||||
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" RenderMode="Inline">
|
||||
<ContentTemplate>
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<div class="row">
|
||||
<div class="col-8 text-left">
|
||||
<uc3:mod_pageTitleAndSearch ID="Mod_pageTitleAndSearch1" runat="server" />
|
||||
</div>
|
||||
<div class="col-4 text-right">
|
||||
<uc4:mod_ricercaGenerica ID="Mod_ricercaGenerica1" runat="server" Visible="false" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
|
||||
</asp:ContentPlaceHolder>
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<uc5:mod_menuBottom ID="Mod_menuBottom1" runat="server" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,9 @@
|
||||
using System;
|
||||
|
||||
|
||||
public partial class MoonPro : System.Web.UI.MasterPage
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
}
|
||||
+85
@@ -0,0 +1,85 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
public partial class MoonPro {
|
||||
|
||||
/// <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 ScriptManager1.
|
||||
/// </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.ScriptManager ScriptManager1;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo Mod_menuTop1.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::MoonPro_site.WebUserControls.mod_menuTop Mod_menuTop1;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo UpdatePanel1.
|
||||
/// </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.UpdatePanel UpdatePanel1;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo Mod_pageTitleAndSearch1.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::mod_pageTitleAndSearch Mod_pageTitleAndSearch1;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo Mod_ricercaGenerica1.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::mod_ricercaGenerica Mod_ricercaGenerica1;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo ContentPlaceHolder1.
|
||||
/// </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.ContentPlaceHolder ContentPlaceHolder1;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo Mod_menuBottom1.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::mod_menuBottom Mod_menuBottom1;
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
<%@ Master Language="C#" AutoEventWireup="true" Inherits="MoonPro_noAjax" Codebehind="MoonPro_noAjax.master.cs" %>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" >
|
||||
<head runat="server">
|
||||
<title>Untitled Page</title>
|
||||
<%--<link href="~/Style.css" rel="stylesheet" type="text/css" />
|
||||
<link href="../Content/font-awesome.min.css" rel="stylesheet" type="text/css" />--%>
|
||||
<link href="~/Content/bootstrap.min.css" rel="stylesheet" type="text/css" />
|
||||
<link href="~/Content/Style.min.css" rel="stylesheet" type="text/css" />
|
||||
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<div>
|
||||
<asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
|
||||
</asp:contentplaceholder>
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,9 @@
|
||||
using System;
|
||||
|
||||
public partial class MoonPro_noAjax : System.Web.UI.MasterPage
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
public partial class MoonPro_noAjax {
|
||||
|
||||
/// <summary>
|
||||
/// form1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// ContentPlaceHolder1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ContentPlaceHolder ContentPlaceHolder1;
|
||||
}
|
||||
@@ -0,0 +1,140 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_anagArticoli.ascx.cs"
|
||||
Inherits="MoonProAdmin.WebUserControls.mod_anagArticoli" %>
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
|
||||
OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound" PageSize="25"
|
||||
DataKeyNames="CodArticolo" DataSourceID="ods" Width="100%">
|
||||
<RowStyle CssClass="ctrRowStyle" />
|
||||
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
|
||||
<EditRowStyle CssClass="ctrEditRowStyle" />
|
||||
<SelectedRowStyle CssClass="ctrSelRowStyle" />
|
||||
<FooterStyle CssClass="ctrFooter" />
|
||||
<PagerStyle CssClass="active GridPager" />
|
||||
<PagerSettings Mode="NumericFirstLast" />
|
||||
<HeaderStyle CssClass="ctrHeaderPager" ForeColor="White" Font-Bold="True" />
|
||||
<EmptyDataRowStyle CssClass="ctrRowStyle" />
|
||||
<EmptyDataTemplate>
|
||||
<asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("noRecord") %>' />
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center">
|
||||
<HeaderTemplate>
|
||||
<%--<asp:Button ID="btnReset" runat="server" Text='<%# traduci("Reset") %>' OnClick="btnReset_Click"
|
||||
Visible="true" />--%>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<%--<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select"
|
||||
ToolTip='<%# traduci("Select") %>' ImageUrl="~/images/view_m.png" />
|
||||
--%>
|
||||
<asp:ImageButton ID="imgEdit" runat="server" CausesValidation="False" CommandName="Edit"
|
||||
Visible='<%# isWritable() %>' ToolTip='<%# traduci("Edit") %>' ImageUrl="~/images/edit_m.png" />
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:ImageButton ID="imgUpdate" runat="server" CausesValidation="False" CommandName="Update"
|
||||
ToolTip='<%# traduci("Update")%>' ImageUrl="~/images/apply_m.png" />
|
||||
<asp:ImageButton ID="imgCancel" runat="server" CausesValidation="False" CommandName="Cancel"
|
||||
ToolTip='<%# traduci("Cancel") %>' ImageUrl="~/images/cancel_m.png" />
|
||||
</EditItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="CodArticolo" SortExpression="CodArticolo">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" ID="txtCodArticolo" Text='<%# Eval("CodArticolo") %>' />
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox runat="server" ID="txtCodArticolo" Text='<%# Bind("CodArticolo") %>' />
|
||||
</EditItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Disegno" SortExpression="Disegno">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" ID="txtDisegno" Text='<%# Eval("Disegno") %>' />
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox runat="server" ID="txtDisegno" Text='<%# Bind("Disegno") %>' />
|
||||
</EditItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Tipo" SortExpression="Tipo">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" ID="txtTipo" Text='<%# Eval("Tipo") %>' />
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox runat="server" ID="txtTipo" Text='<%# Bind("Tipo") %>' />
|
||||
</EditItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="DescArticolo" SortExpression="DescArticolo">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" ID="txtDescArticolo" Text='<%# Eval("DescArticolo") %>' />
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox runat="server" ID="txtDescArticolo" Text='<%# Bind("DescArticolo") %>' />
|
||||
</EditItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="CurrRev" SortExpression="CurrRev">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" ID="txtCurrRev" Text='<%# Eval("CurrRev") %>' />
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox runat="server" ID="txtCurrRev" Text='<%# Bind("CurrRev") %>' />
|
||||
</EditItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="ProdRev" SortExpression="ProdRev">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" ID="txtProdRev" Text='<%# Eval("ProdRev") %>' />
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:Label runat="server" ID="txtProdRev" Text='<%# Eval("ProdRev") %>' />
|
||||
</EditItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="FlagIsNew" SortExpression="FlagIsNew">
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox runat="server" ID="chkFlagIsNew" Checked='<%# Eval("FlagIsNew") %>' Enabled="false" />
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:CheckBox runat="server" ID="chkFlagIsNew" Checked='<%# Eval("FlagIsNew") %>' Enabled="false" />
|
||||
</EditItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgDelete" runat="server" CausesValidation="False" CommandName="Delete"
|
||||
CommandArgument='<%# Eval("CodArticolo") %>' ToolTip='<%# traduci("Delete") %>'
|
||||
Visible='<%# delEnabled(Eval("CodArticolo")) %>' ImageUrl="~/images/elimina_m.png" />
|
||||
<asp:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" ConfirmText='<%# traduci("confermaDel")%>'
|
||||
TargetControlID="imgDelete"></asp:ConfirmButtonExtender>
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:ImageButton ID="imgUpdate2" runat="server" CausesValidation="False" CommandName="Update"
|
||||
ToolTip='<%# traduci("Update")%>' ImageUrl="~/images/apply_m.png" />
|
||||
<asp:ImageButton ID="imgCancel2" runat="server" CausesValidation="False" CommandName="Cancel"
|
||||
ToolTip='<%# traduci("Cancel") %>' ImageUrl="~/images/cancel_m.png" />
|
||||
</EditItemTemplate>
|
||||
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
<HeaderTemplate>
|
||||
<asp:Button ID="btnNew" runat="server" Text="Nuovo" ToolTip="Aggiunti articolo" OnClick="btnNew_Click"
|
||||
Visible="true" />
|
||||
</HeaderTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini" />
|
||||
<asp:Label ID="lblWarning" runat="server" Visible="false" CssClass="erroreMid" />
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="GetData" TypeName="MapoDb.DS_ProdTempiTableAdapters.AnagArticoliTableAdapter" OnInserting="recuperaFooter" FilterExpression="CodArticolo LIKE '%{0}%' OR DescArticolo LIKE '%{0}%' " OnInserted="ods_Updated" OnUpdated="ods_Updated" OnDeleted="ods_Updated" UpdateMethod="updateQry" DeleteMethod="deleteQry" InsertMethod="Insert" OnUpdating="ods_Updating">
|
||||
<FilterParameters>
|
||||
<asp:SessionParameter DefaultValue="*" Name="ricerca" SessionField="valoreCercato" />
|
||||
</FilterParameters>
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="Original_CodArticolo" Type="String" />
|
||||
</DeleteParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="Original_CodArticolo" Type="String" />
|
||||
<asp:Parameter Name="DescArticolo" Type="String" />
|
||||
<asp:Parameter Name="CurrRev" Type="String" />
|
||||
<asp:Parameter Name="Disegno" Type="String" />
|
||||
<asp:Parameter Name="Tipo" Type="String" />
|
||||
<asp:Parameter Name="CodArticolo" Type="String" />
|
||||
</UpdateParameters>
|
||||
<InsertParameters>
|
||||
<asp:Parameter Name="CodArticolo" Type="String" />
|
||||
<asp:Parameter Name="DescArticolo" Type="String" />
|
||||
</InsertParameters>
|
||||
</asp:ObjectDataSource>
|
||||
@@ -0,0 +1,270 @@
|
||||
using MapoDb;
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace MoonProAdmin.WebUserControls
|
||||
{
|
||||
public partial class mod_anagArticoli : System.Web.UI.UserControl
|
||||
{
|
||||
|
||||
#region area da NON modificare
|
||||
|
||||
#region area protected
|
||||
|
||||
protected string _idxGridView;
|
||||
|
||||
/// <summary>
|
||||
/// reset della selezione
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnReset_Click(object sender, EventArgs e)
|
||||
{
|
||||
resetSelezione();
|
||||
}
|
||||
/// <summary>
|
||||
/// gestione cambio selezione valore
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// salvo in session il valore selezionato...
|
||||
SteamWare.memLayer.ML.setSessionVal(string.Format("{0}_sel", _idxGridView), grView.SelectedValue, false);
|
||||
// sollevo evento nuovo valore...
|
||||
if (eh_selValore != null)
|
||||
{
|
||||
eh_selValore(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// traduce gli header delle colonne
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void grView_DataBound(object sender, EventArgs e)
|
||||
{
|
||||
if (grView.Rows.Count > 0)
|
||||
{
|
||||
LinkButton lb;
|
||||
// aggiorno gli headers
|
||||
foreach (TableCell cella in grView.HeaderRow.Cells)
|
||||
{
|
||||
try
|
||||
{
|
||||
lb = (LinkButton)cella.Controls[0];
|
||||
lb.Text = traduci(lb.Text);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1);
|
||||
lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord);
|
||||
}
|
||||
else
|
||||
{
|
||||
lblNumRec.Text = "";
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// recupera i dati di un nuovo record contenuti nel footer di un gridView;
|
||||
/// questi devono esses opportunamente nominati (es: txt{0}, dl{0}, ...)
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void recuperaFooter(object sender, ObjectDataSourceMethodEventArgs e)
|
||||
{
|
||||
//recupero la riga footer...
|
||||
DataColumnCollection colonne = colonneObj();
|
||||
string nomeCol;
|
||||
string tipoColonna = "";
|
||||
foreach (DataColumn colonna in colonne)
|
||||
{
|
||||
nomeCol = colonna.ColumnName;
|
||||
// cerco un textbox o quello che sia...
|
||||
if (grView.FooterRow.FindControl(string.Format("txt{0}", nomeCol)) != null)
|
||||
{
|
||||
tipoColonna = "textBox";
|
||||
}
|
||||
else if (grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol)) != null)
|
||||
{
|
||||
tipoColonna = "dropDownList";
|
||||
}
|
||||
else if (grView.FooterRow.FindControl(string.Format("chk{0}", nomeCol)) != null)
|
||||
{
|
||||
tipoColonna = "checkBox";
|
||||
}
|
||||
else if (grView.FooterRow.FindControl(string.Format("selAjax_{0}", nomeCol)) != null)
|
||||
{
|
||||
tipoColonna = "selAjax";
|
||||
}
|
||||
// in base al tipo salvo negli inputparameters dell'ODS
|
||||
switch (tipoColonna)
|
||||
{
|
||||
case "textBox":
|
||||
e.InputParameters[nomeCol] = ((TextBox)grView.FooterRow.FindControl(string.Format("txt{0}", nomeCol))).Text;
|
||||
break;
|
||||
case "dropDownList":
|
||||
e.InputParameters[nomeCol] = ((DropDownList)grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol))).SelectedValue;
|
||||
break;
|
||||
case "checkBox":
|
||||
e.InputParameters[nomeCol] = ((CheckBox)grView.FooterRow.FindControl(string.Format("chk{0}", nomeCol))).Checked;
|
||||
break;
|
||||
//case "selAjax":
|
||||
// e.InputParameters[nomeCol] = ((mod_selettore_ajax)grView.FooterRow.FindControl(string.Format("selAjax_{0}", nomeCol))).valore;
|
||||
// break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
tipoColonna = "";
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// svuoto da cache post update
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ods_Updated(object sender, ObjectDataSourceStatusEventArgs e)
|
||||
{
|
||||
// evento come nuovo...
|
||||
if (eh_nuovoValore != null)
|
||||
{
|
||||
eh_nuovoValore(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region are public
|
||||
|
||||
/// <summary>
|
||||
/// effettua traduzione del lemma
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduci(string lemma)
|
||||
{
|
||||
return user_std.UtSn.Traduci(lemma);
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua traduzione in inglese del lemma
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduciEn(string lemma)
|
||||
{
|
||||
return user_std.UtSn.TraduciEn(lemma);
|
||||
}
|
||||
/// <summary>
|
||||
/// resetta la selezione dei valori in caso di modifiche su altri controlli
|
||||
/// </summary>
|
||||
public void resetSelezione()
|
||||
{
|
||||
SteamWare.memLayer.ML.emptySessionVal(string.Format("{0}_sel", _idxGridView));
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
lblWarning.Visible = false;
|
||||
if (eh_resetSelezione != null)
|
||||
{
|
||||
eh_resetSelezione(this, new EventArgs());
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
#region gestione eventi
|
||||
|
||||
public event EventHandler eh_resetSelezione;
|
||||
public event EventHandler eh_nuovoValore;
|
||||
public event EventHandler eh_selValore;
|
||||
|
||||
#endregion
|
||||
|
||||
#region area da modificare
|
||||
|
||||
protected override void OnLoad(EventArgs e)
|
||||
{
|
||||
base.OnLoad(e);
|
||||
}
|
||||
|
||||
/// inizializzazione valori di default
|
||||
/// </summary>
|
||||
/// <param name="e"></param>
|
||||
protected override void OnInit(EventArgs e)
|
||||
{
|
||||
base.OnInit(e);
|
||||
_idxGridView = "IdxMacchina";
|
||||
}
|
||||
/// <summary>
|
||||
/// nuovo valore creato...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void mod_newOdl1_eh_nuovoValore(object sender, EventArgs e)
|
||||
{
|
||||
// aggiorno!
|
||||
resetSelezione();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// elenco colonne del datagrid
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
protected DataColumnCollection colonneObj()
|
||||
{
|
||||
MapoDb.DS_ProdTempi.DatiMacchineDataTable tabella = new MapoDb.DS_ProdTempi.DatiMacchineDataTable();
|
||||
DataColumnCollection colonne = tabella.Columns;
|
||||
return colonne;
|
||||
}
|
||||
public bool delEnabled(object _idx)
|
||||
{
|
||||
bool answ = false;
|
||||
string codArticolo = _idx.ToString();
|
||||
// controllo non sia stato mai prodotto sennò non posso cancellare...
|
||||
try
|
||||
{
|
||||
bool? usato = false;
|
||||
MapoDb.DataLayer.obj.taAnagArt.checkUsed(codArticolo, ref usato);
|
||||
answ = !(bool)usato;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// definisce scrivibilità/editabilità del controllo
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public bool isWritable()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
/// <summary>
|
||||
/// crea un nuovo record e ricarica...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnNew_Click(object sender, EventArgs e)
|
||||
{
|
||||
string tempCode = string.Format("_{0:yyyyMMdd-HHmmss}", DateTime.Now);
|
||||
string tempName = string.Format("Nuovo articolo creato {0:dd/MM/yyyy HH:mm:ss}", DateTime.Now);
|
||||
DataLayer.obj.taAnagArt.Insert(tempCode, tempName, "", "", "", "ART");
|
||||
// reset!
|
||||
resetSelezione();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
protected void ods_Updating(object sender, ObjectDataSourceMethodEventArgs e)
|
||||
{
|
||||
// verifico eventuali nulli --> ""
|
||||
if (e.InputParameters["DescArticolo"] == null) e.InputParameters["DescArticolo"] = "";
|
||||
if (e.InputParameters["CurrRev"] == null) e.InputParameters["CurrRev"] = "";
|
||||
if (e.InputParameters["Disegno"] == null) e.InputParameters["Disegno"] = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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_anagArticoli {
|
||||
|
||||
/// <summary>
|
||||
/// Controllo grView.
|
||||
/// </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.GridView grView;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblNumRec.
|
||||
/// </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 lblNumRec;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblWarning.
|
||||
/// </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 lblWarning;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo ods.
|
||||
/// </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.ObjectDataSource ods;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true"
|
||||
Inherits="mod_aperturaImpianti" CodeBehind="mod_aperturaImpianti.ascx.cs" %>
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
|
||||
DataKeyNames="giorno" DataSourceID="ods" OnDataBound="grView_DataBound">
|
||||
<RowStyle CssClass="ctrRowStyle" />
|
||||
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
|
||||
<EditRowStyle CssClass="ctrEditRowStyle" />
|
||||
<SelectedRowStyle CssClass="ctrSelRowStyle" />
|
||||
<FooterStyle CssClass="ctrFooter" />
|
||||
<PagerStyle CssClass="active GridPager" />
|
||||
<PagerSettings Mode="NumericFirstLast" />
|
||||
<HeaderStyle CssClass="ctrHeaderPager" ForeColor="White" Font-Bold="True" />
|
||||
<EmptyDataRowStyle CssClass="ctrRowStyle" />
|
||||
<EmptyDataTemplate>
|
||||
<asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("noRecord") %>' />
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center">
|
||||
<EditItemTemplate>
|
||||
<asp:ImageButton ID="imgUpdate" runat="server" CausesValidation="False" CommandName="Update"
|
||||
ToolTip='<%# traduci("Update")%>' ImageUrl='<%# imgPath(SteamWare.tipoImg.conferma, SteamWare.dimImg.small) %>' />
|
||||
<asp:ImageButton ID="imgCancel" runat="server" CausesValidation="False" CommandName="Cancel"
|
||||
ToolTip='<%# traduci("Cancel") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.annulla, SteamWare.dimImg.small) %>' />
|
||||
</EditItemTemplate>
|
||||
<HeaderTemplate>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgEdit" runat="server" CausesValidation="False" CommandName="Edit"
|
||||
ToolTip='<%# traduci("Edit") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.modifica, SteamWare.dimImg.small) %>' />
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="descrGiorno" HeaderText="descrGiorno" Visible="true" ReadOnly="True"
|
||||
SortExpression="descrGiorno" />
|
||||
<asp:TemplateField HeaderText="apertura" SortExpression="apertura">
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="txtApertura" runat="server" Width="3em" Text='<%# Bind("apertura") %>' />
|
||||
<cc1:MaskedEditExtender ID="mee_Ora" runat="server" TargetControlID="txtApertura" Mask="99.99"
|
||||
MaskType="Number"></cc1:MaskedEditExtender>
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# Eval("apertura") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" SelectMethod="GetData" TypeName="GIM_data.DS_applicazioneTableAdapters.OreAperturaSettTableAdapter"
|
||||
UpdateMethod="updateApertura" OldValuesParameterFormatString="Original_{0}">
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="apertura" Type="Decimal" />
|
||||
<asp:Parameter Name="Original_giorno" Type="Int32" />
|
||||
</UpdateParameters>
|
||||
</asp:ObjectDataSource>
|
||||
@@ -0,0 +1,30 @@
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
public partial class mod_aperturaImpianti : ApplicationUserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// evento dati associati a controllo
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void grView_DataBound(object sender, EventArgs e)
|
||||
{
|
||||
if (grView.Rows.Count > 0)
|
||||
{
|
||||
LinkButton lb;
|
||||
// aggiorno gli headers
|
||||
foreach (TableCell cella in grView.HeaderRow.Cells)
|
||||
{
|
||||
try
|
||||
{
|
||||
lb = (LinkButton)cella.Controls[0];
|
||||
lb.Text = traduci(lb.Text);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
public partial class mod_aperturaImpianti {
|
||||
|
||||
/// <summary>
|
||||
/// grView control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.GridView grView;
|
||||
|
||||
/// <summary>
|
||||
/// ods control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource ods;
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_approvProd.ascx.cs" Inherits="MoonProAdmin.WebUserControls.mod_approvProd" %>
|
||||
<div style="text-align: center; margin: auto; vertical-align: middle; min-width: 800px; width: 100%; background: #DCDCDC;">
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" CellPadding="2" DataSourceID="odsProd" ForeColor="Black" GridLines="None" Width="100%" OnSelectedIndexChanged="grView_SelectedIndexChanged" DataKeyNames="IdxODL,DataRif">
|
||||
<AlternatingRowStyle BackColor="PaleGoldenrod" />
|
||||
<FooterStyle BackColor="Tan" />
|
||||
<HeaderStyle BackColor="Tan" Font-Bold="True" />
|
||||
<PagerStyle CssClass="active GridPager" />
|
||||
<PagerSettings Mode="NumericFirstLast" />
|
||||
<SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
|
||||
<SortedAscendingCellStyle BackColor="#FAFAE7" />
|
||||
<SortedAscendingHeaderStyle BackColor="#DAC09E" />
|
||||
<SortedDescendingCellStyle BackColor="#E1DB9C" />
|
||||
<SortedDescendingHeaderStyle BackColor="#C2A47B" />
|
||||
<EmptyDataRowStyle BackColor="Tan" Font-Bold="True" />
|
||||
<EmptyDataTemplate>
|
||||
Nessun record storico trovato
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="chkSelect" runat="server" />
|
||||
</ItemTemplate>
|
||||
<HeaderTemplate>
|
||||
<asp:CheckBox ID="btnSelAll" runat="server" Checked="false" ToolTip='<%# traduci("btnSelAll") %>'
|
||||
OnCheckedChanged="btnSelAll_Click" CssClass="ctrHeaderPager" AutoPostBack="true"></asp:CheckBox>
|
||||
</HeaderTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="ODL" SortExpression="IdxODL">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblIdxODL" runat="server" Text='<%# Eval("IdxODL") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Data" SortExpression="DataRif">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblDataRif" runat="server" Text='<%# Eval("DataRif","{0:dd/MM/yyyy}") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<%-- <asp:BoundField DataField="IdxODL" HeaderText="IdxODL" SortExpression="IdxODL" />
|
||||
<asp:BoundField DataField="DataRif" HeaderText="DataRif" SortExpression="DataRif" />--%>
|
||||
<asp:BoundField DataField="CommessaAs400" HeaderText="CommessaAs400" SortExpression="CommessaAs400" />
|
||||
<asp:BoundField DataField="CodArticolo" HeaderText="CodArticolo" SortExpression="CodArticolo" />
|
||||
<asp:BoundField DataField="TotPzProd" HeaderText="TotPzProd" SortExpression="TotPzProd" />
|
||||
<asp:TemplateField ShowHeader="False">
|
||||
<HeaderTemplate>
|
||||
<%--<asp:LinkButton ID="btnReset" runat="server" OnClick="btnReset_Click"><i class="fa fa-refresh fa-2x"></i></asp:LinkButton>--%>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="lnkAppr" runat="server" CausesValidation="False" CommandArgument="Approva" CommandName="Select" ToolTip="Approva" ForeColor="Green" OnCommand="lbt_Command"><i class="fa fa-thumbs-o-up fa-2x"></i></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="odsProd" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="MapoDb.DS_ProdTempiTableAdapters.ProduzioneAs400TableAdapter"></asp:ObjectDataSource>
|
||||
<div style="text-align: center; margin: auto; vertical-align: middle; padding: 4px 2px; height: 1.5em;">
|
||||
<asp:Button runat="server" ID="btnApprova" Text="..." Width="150px" OnClick="btnApprovaProd_Click" />
|
||||
<div style="float: right;">
|
||||
mostra:
|
||||
<asp:TextBox runat="server" ID="txtPageSize" Text="10" Width="2em" OnTextChanged="txtPageSize_TextChanged" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,150 @@
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace MoonProAdmin.WebUserControls
|
||||
{
|
||||
public partial class mod_approvProd : System.Web.UI.UserControl
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
btnApprova.Text = traduci("btnApprovaProd");
|
||||
grView.PageSize = pageSize;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// dimensione pagina
|
||||
/// </summary>
|
||||
public int pageSize
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 10;
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(txtPageSize.Text);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
txtPageSize.Text = value.ToString();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper traduzione
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduci(object lemma)
|
||||
{
|
||||
return user_std.UtSn.Traduci(lemma.ToString());
|
||||
}
|
||||
/// <summary>
|
||||
/// seleziona/deseleziona le righe indicate...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSelAll_Click(object sender, EventArgs e)
|
||||
{
|
||||
// seleziono tutti i valori visibili nel datagrid
|
||||
CheckBox chkbox = ((CheckBox)sender);
|
||||
bool isChecked = chkbox.Checked;
|
||||
if (!isChecked)
|
||||
{
|
||||
chkbox.ToolTip = traduci("btnSelAll");
|
||||
}
|
||||
else
|
||||
{
|
||||
chkbox.ToolTip = traduci("btnDeselAll");
|
||||
}
|
||||
foreach (GridViewRow riga in grView.Rows)
|
||||
{
|
||||
((CheckBox)riga.FindControl("chkSelect")).Checked = isChecked;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// conferma dati produzione verso As400
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnApprovaProd_Click(object sender, EventArgs e)
|
||||
{
|
||||
foreach (GridViewRow riga in grView.Rows)
|
||||
{
|
||||
int IdxODL = 0;
|
||||
DateTime DataRif = DateTime.Now.Date;
|
||||
if (((CheckBox)riga.FindControl("chkSelect")).Checked && ((CheckBox)riga.FindControl("chkSelect")).Visible)
|
||||
{
|
||||
try
|
||||
{
|
||||
IdxODL = Convert.ToInt32(((Label)riga.FindControl("lblIdxODL")).Text);
|
||||
DataRif = Convert.ToDateTime(((Label)riga.FindControl("lblDataRif")).Text);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
MapoDb.DataLayer.obj.taAs400.insProdAs400(IdxODL, DataRif);
|
||||
}
|
||||
}
|
||||
grView.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// salvo comando
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lbt_Command(object sender, CommandEventArgs e)
|
||||
{
|
||||
SteamWare.memLayer.ML.setSessionVal("nextObjCommand", ((LinkButton)sender).CommandArgument);
|
||||
}
|
||||
/// <summary>
|
||||
/// evento selezione riga: salvo tempo e qta nei campi input...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// ricavo i dati selezionati
|
||||
int IdxODL = 0;
|
||||
DateTime DataRif = DateTime.Now.Date;
|
||||
try
|
||||
{
|
||||
IdxODL = Convert.ToInt32(grView.SelectedDataKey[0]);
|
||||
DataRif = Convert.ToDateTime(grView.SelectedDataKey[1]);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// gestione buttons approvazione
|
||||
string _comando = "";
|
||||
if (SteamWare.memLayer.ML.isInSessionObject("nextObjCommand"))
|
||||
{
|
||||
_comando = SteamWare.memLayer.ML.StringSessionObj("nextObjCommand");
|
||||
SteamWare.memLayer.ML.emptySessionVal("nextObjCommand");
|
||||
}
|
||||
switch (_comando)
|
||||
{
|
||||
case "Approva":
|
||||
MapoDb.DataLayer.obj.taAs400.insProdAs400(IdxODL, DataRif);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// cambio dim pagina
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void txtPageSize_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
grView.PageSize = pageSize;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MoonProAdmin.WebUserControls
|
||||
{
|
||||
|
||||
|
||||
public partial class mod_approvProd {
|
||||
|
||||
/// <summary>
|
||||
/// grView control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.GridView grView;
|
||||
|
||||
/// <summary>
|
||||
/// odsProd control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource odsProd;
|
||||
|
||||
/// <summary>
|
||||
/// btnApprova control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnApprova;
|
||||
|
||||
/// <summary>
|
||||
/// txtPageSize control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtPageSize;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_approvazioneODL.ascx.cs" Inherits="MoonProAdmin.WebUserControls.mod_approvazioneODL" %>
|
||||
|
||||
<div style="text-align: center; margin: auto; vertical-align: middle; min-width: 800px; width: 100%; background: #DCDCDC;">
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="false" BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" CellPadding="2" DataKeyNames="IdxODL" DataSourceID="odsTempi" ForeColor="Black" GridLines="None" Width="100%" OnSelectedIndexChanged="grView_SelectedIndexChanged">
|
||||
<AlternatingRowStyle BackColor="PaleGoldenrod" />
|
||||
<FooterStyle BackColor="Tan" />
|
||||
<HeaderStyle BackColor="Tan" Font-Bold="True" />
|
||||
<PagerStyle CssClass="active GridPager" />
|
||||
<PagerSettings Mode="NumericFirstLast" />
|
||||
<SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
|
||||
<SortedAscendingCellStyle BackColor="#FAFAE7" />
|
||||
<SortedAscendingHeaderStyle BackColor="#DAC09E" />
|
||||
<SortedDescendingCellStyle BackColor="#E1DB9C" />
|
||||
<SortedDescendingHeaderStyle BackColor="#C2A47B" />
|
||||
<EmptyDataRowStyle BackColor="Tan" Font-Bold="True" />
|
||||
<EmptyDataTemplate>
|
||||
Nessun record trovato
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<asp:TemplateField ShowHeader="False">
|
||||
<HeaderTemplate>
|
||||
<asp:LinkButton ID="btnReset" runat="server" OnClick="btnReset_Click"><i class="fa fa-refresh fa-2x"></i></asp:LinkButton>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="lnkAppr" runat="server" CausesValidation="False" CommandArgument="Approva" CommandName="Select" ToolTip="Approva" ForeColor="Green" OnCommand="lbt_Command"><i class="fa fa-thumbs-o-up fa-2x"></i></asp:LinkButton>
|
||||
<asp:LinkButton ID="lnkReject" runat="server" CausesValidation="False" CommandArgument="Rifiuta" CommandName="Select" ToolTip="Rifiuta" ForeColor="Red" OnCommand="lbt_Command"><i class="fa fa-thumbs-o-down fa-2x"></i></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="IdxODL" HeaderText="ODL" InsertVisible="False" ReadOnly="True" SortExpression="IdxODL" />
|
||||
<asp:BoundField DataField="Nome" HeaderText="Nome" SortExpression="Nome" />
|
||||
<asp:TemplateField HeaderText="Articolo" SortExpression="CodArticolo">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblCod" runat="server" Text='<%# Bind("CodArticolo") %>'></asp:Label>
|
||||
<div style="color: #696969; font-size: 0.7em;"">
|
||||
<asp:Label ID="lblDesc" runat="server" Text='<%# Bind("DescArticolo") %>' />
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="NumPezzi" HeaderText="NumPezzi" SortExpression="NumPezzi" />
|
||||
<asp:TemplateField HeaderText="TC Attrezzato" SortExpression="TCRichAttr">
|
||||
<ItemTemplate>
|
||||
<div style="color: #DD3333; font-size: 1.1em;">
|
||||
<asp:Label ID="lblTCRichMS" runat="server" Text='<%# minSec(Eval("TCRichAttr", "{0:N3}")) %>' />
|
||||
<br />
|
||||
<asp:Label ID="lblTCRichMC" runat="server" Text='<%# Bind("TCRichAttr", "{0:N2} min.cent") %>' Font-Size="0.6em" ForeColor="#696969" />
|
||||
</div>
|
||||
<div style="color: #696969; font-size: 0.9em;">
|
||||
<asp:Label ID="lblNote" runat="server" Text='<%# Bind("Note") %>' />
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="OperSetup" HeaderText="Oper." SortExpression="OperSetup" />
|
||||
<asp:TemplateField HeaderText="TC Assegnato" SortExpression="TCAssegnato">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblTCAssMS" runat="server" Text='<%# minSec(Eval("TCAssegnato", "{0:N3}")) %>' />
|
||||
<br />
|
||||
<asp:Label ID="lblTCAssMC" runat="server" Text='<%# Bind("TCAssegnato", "{0:N2} min.cent") %>' Font-Size="0.6em" ForeColor="#696969" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="DataInizio" SortExpression="DataInizio" ItemStyle-HorizontalAlign="Right">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblInizio" runat="server" Text='<%# Bind("DataInizio","{0:dd/MM/yyyy}</br>{0:HH:mm}") %>' />
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Right"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField HeaderText="DataFine" SortExpression="DataFine" ItemStyle-HorizontalAlign="Right">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblFine" runat="server" Text='<%# Bind("DataFine","{0:dd/MM/yyyy}</br>{0:HH:mm}") %>' />
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Right"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="odsTempi" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="getNeedAppr" TypeName="MapoDb.DS_ProdTempiTableAdapters.ODLTableAdapter"></asp:ObjectDataSource>
|
||||
<div style="text-align: center; margin: auto; vertical-align: middle; padding: 4px 2px; height: 1.5em;">
|
||||
<div style="float: right;">
|
||||
mostra:
|
||||
<asp:TextBox runat="server" ID="txtPageSize" Text="10" Width="2em" OnTextChanged="txtPageSize_TextChanged" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,143 @@
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace MoonProAdmin.WebUserControls
|
||||
{
|
||||
public partial class mod_approvazioneODL : System.Web.UI.UserControl
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
grView.PageSize = pageSize;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// dimensione pagina
|
||||
/// </summary>
|
||||
public int pageSize
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 10;
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(txtPageSize.Text);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
txtPageSize.Text = value.ToString();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// reset della selezione
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnReset_Click(object sender, EventArgs e)
|
||||
{
|
||||
resetSelezione();
|
||||
}
|
||||
/// <summary>
|
||||
/// resetta la selezione dei valori in caso di modifiche su altri controlli
|
||||
/// </summary>
|
||||
public void resetSelezione()
|
||||
{
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// salvo comando
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lbt_Command(object sender, CommandEventArgs e)
|
||||
{
|
||||
SteamWare.memLayer.ML.setSessionVal("nextObjCommand", ((LinkButton)sender).CommandArgument);
|
||||
}
|
||||
/// <summary>
|
||||
/// evento selezione riga: salvo tempo e qta nei campi input...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// ricavo i dati selezionati
|
||||
int idxOdl = 0;
|
||||
try
|
||||
{
|
||||
idxOdl = Convert.ToInt32(grView.SelectedValue);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
MapoDb.DS_ProdTempi.ODLRow rigaOdl = MapoDb.DataLayer.obj.taODL.getByIdx(idxOdl, false)[0];
|
||||
// gestione buttons approvazione
|
||||
string _comando = "";
|
||||
if (SteamWare.memLayer.ML.isInSessionObject("nextObjCommand"))
|
||||
{
|
||||
_comando = SteamWare.memLayer.ML.StringSessionObj("nextObjCommand");
|
||||
SteamWare.memLayer.ML.emptySessionVal("nextObjCommand");
|
||||
}
|
||||
switch (_comando)
|
||||
{
|
||||
case "Approva":
|
||||
MapoDb.DataLayer.obj.taODL.approvaTC(idxOdl, string.Format("{0}{1}Approvato da: {2}", rigaOdl.Note, Environment.NewLine, user_std.UtSn.CognomeNome), user_std.UtSn.CognomeNome, true);
|
||||
break;
|
||||
case "Rifiuta":
|
||||
MapoDb.DataLayer.obj.taODL.approvaTC(idxOdl, string.Format("{0}{1}Rifiutato da: {2}", rigaOdl.Note, Environment.NewLine, user_std.UtSn.CognomeNome), user_std.UtSn.CognomeNome, false);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// cambio dim pagina
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void txtPageSize_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
grView.PageSize = pageSize;
|
||||
}
|
||||
/// <summary>
|
||||
/// formatta in minuti/sec partendo da min.cent
|
||||
/// </summary>
|
||||
/// <param name="minCent"></param>
|
||||
/// <returns></returns>
|
||||
public string minSec(object minCent)
|
||||
{
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
answ = string.Format("{0:mm}:{0:ss}", minCent2Sec(Convert.ToDecimal(minCent.ToString().Replace(".", ","))));
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// conversione da tempo minuti centesimali a minuti/secondi
|
||||
/// </summary>
|
||||
/// <param name="valore"></param>
|
||||
/// <returns></returns>
|
||||
protected TimeSpan minCent2Sec(decimal valore)
|
||||
{
|
||||
TimeSpan answ = new TimeSpan(0, 0, 1);
|
||||
try
|
||||
{
|
||||
answ = new TimeSpan(0, Convert.ToInt32(valore), Convert.ToInt32((valore - Convert.ToInt32(valore)) * 60));
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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_approvazioneODL {
|
||||
|
||||
/// <summary>
|
||||
/// Controllo grView.
|
||||
/// </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.GridView grView;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo odsTempi.
|
||||
/// </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.ObjectDataSource odsTempi;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo txtPageSize.
|
||||
/// </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.TextBox txtPageSize;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_barcode.ascx.cs" Inherits="MoonProAdmin.WebUserControls.mod_barcode" %>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#<%=txtInput.ClientID %>').focus();
|
||||
|
||||
// oggetto da legare all'update parziale ajax x sistemare btns & co
|
||||
var prm = Sys.WebForms.PageRequestManager.getInstance();
|
||||
prm.add_endRequest(function () {
|
||||
// re-bind jQuery events
|
||||
$('#<%=txtInput.ClientID %>').focus();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<div class="form-row">
|
||||
<div class="form-group col-8 col-md-9 col-lg-10">
|
||||
<asp:TextBox runat="server" ID="txtInput" CssClass="form-control form-control-lg" OnTextChanged="txtInput_TextChanged" TabIndex="1" AutoPostBack="true" />
|
||||
</div>
|
||||
<div class="col-4 col-md-3 col-lg-2">
|
||||
<asp:LinkButton ID="lbtCerca" runat="server" CssClass="btn text-truncate btn-warning btn-lg btn-block text-uppercase"><i class="fa fa-search"></i> cerca</asp:LinkButton>
|
||||
</div>
|
||||
</div>
|
||||
<div style="text-align: center; font-size: 20pt;">
|
||||
<div class="ui-grid-solo">
|
||||
<asp:Panel runat="server" ID="pnlBarcodeBox" CssClass="">
|
||||
<div style="background-color: #FFE800; padding: 8px; margin: 1px;">
|
||||
<asp:Label runat="server" ID="lblInput" Text="" />
|
||||
</div>
|
||||
<div style="background-color: #FFC500; padding: 8px; margin: 1px;">
|
||||
<asp:Label runat="server" ID="lblValore" Text="" />
|
||||
</div>
|
||||
<div style="background-color: #FF7700; padding: 8px; margin: 1px;">
|
||||
<asp:Label runat="server" ID="lblRichiesta" Text="" Font-Bold="true" />
|
||||
</div>
|
||||
<asp:Label ID="lblBrowser" runat="server" />
|
||||
</asp:Panel>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,680 @@
|
||||
using MapoDb;
|
||||
using Newtonsoft.Json;
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Web.UI;
|
||||
|
||||
namespace MoonProAdmin.WebUserControls
|
||||
{
|
||||
public partial class mod_barcode : System.Web.UI.UserControl
|
||||
{
|
||||
#region setup VARS
|
||||
|
||||
/// <summary>
|
||||
/// RegExp x RESET / CANCEL
|
||||
/// </summary>
|
||||
protected string regExp_KO = memLayer.ML.cdv("regExp_KO");
|
||||
/// <summary>
|
||||
/// RegExp x CONFERMA
|
||||
/// </summary>
|
||||
protected string regExp_OK = memLayer.ML.cdv("regExp_OK");
|
||||
/// <summary>
|
||||
/// RegExp x START KIT
|
||||
/// </summary>
|
||||
protected string regExp_KitStart = memLayer.ML.cdv("regExp_KitStart");
|
||||
/// <summary>
|
||||
/// RegExp x SAVE KIT
|
||||
/// </summary>
|
||||
protected string regExp_KitSave = memLayer.ML.cdv("regExp_KitSave");
|
||||
/// <summary>
|
||||
/// RegExp x Find --> replace (se vettore è | delimited)
|
||||
/// </summary>
|
||||
protected string regExp_Find = memLayer.ML.cdv("regExp_Find");
|
||||
/// <summary>
|
||||
/// RegExp x Replace da Find (se vettore è | delimited)
|
||||
/// </summary>
|
||||
protected string regExp_Replace = memLayer.ML.cdv("regExp_Replace");
|
||||
|
||||
#endregion
|
||||
|
||||
#region variabili in sessione
|
||||
|
||||
/// <summary>
|
||||
/// UID formattato con "_"
|
||||
/// </summary>
|
||||
public string uid
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.UniqueID.Replace("$", "_").Replace("-", "_");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Valore validazione codici ORDINE come STARTING (es: OPR,KIT)
|
||||
/// </summary>
|
||||
public string codOrdPre
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj(string.Format("codOrdPre_{0}", uid));
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal(string.Format("codOrdPre_{0}", uid), value);
|
||||
}
|
||||
}
|
||||
public string codArt
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj(string.Format("codArt_{0}", uid));
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal(string.Format("codArt_{0}", uid), value);
|
||||
}
|
||||
}
|
||||
public string descArt
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj(string.Format("descArt_{0}", uid));
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal(string.Format("descArt_{0}", uid), value);
|
||||
}
|
||||
}
|
||||
public string kitCode
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj(string.Format("kitCode_{0}", uid));
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal(string.Format("kitCode_{0}", uid), value);
|
||||
}
|
||||
}
|
||||
public string codOrd
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj(string.Format("codOrd_{0}", uid));
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal(string.Format("codOrd_{0}", uid), value);
|
||||
}
|
||||
}
|
||||
public int qta
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.IntSessionObj(string.Format("qta_{0}", uid));
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal(string.Format("qta_{0}", uid), value);
|
||||
}
|
||||
}
|
||||
public string idxMacc
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj(string.Format("idxMacc_{0}", uid));
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal(string.Format("idxMacc_{0}", uid), value);
|
||||
}
|
||||
}
|
||||
public string nomeMacc
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj(string.Format("nomeMacc_{0}", uid));
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal(string.Format("nomeMacc_{0}", uid), value);
|
||||
}
|
||||
}
|
||||
public string codGruppo
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj(string.Format("codGruppo_{0}", uid));
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal(string.Format("codGruppo_{0}", uid), value);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Verifica se il cod ordine è OK:
|
||||
/// coerenza tra ordine e iniziale ordine (OPR/KIT)
|
||||
/// </summary>
|
||||
public bool checkOrdOk
|
||||
{
|
||||
get
|
||||
{
|
||||
return codOrd.StartsWith(codOrdPre);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// titolo pagina
|
||||
/// </summary>
|
||||
public string titolo
|
||||
{
|
||||
get
|
||||
{
|
||||
return devicesAuthProxy.getPage(Request.Url).Replace(".aspx", "");
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region area protected
|
||||
|
||||
/// <summary>
|
||||
/// dictionary comandi ammessi
|
||||
/// </summary>
|
||||
protected Dictionary<string, string> _comandi = new Dictionary<string, string>();
|
||||
/// <summary>
|
||||
/// dictionary dei valori ammessi
|
||||
/// </summary>
|
||||
protected Dictionary<string, string> _tabValori = new Dictionary<string, string>();
|
||||
/// <summary>
|
||||
/// oggetto comando locale alla classe
|
||||
/// </summary>
|
||||
protected SteamWare.inputComando comando
|
||||
{
|
||||
get
|
||||
{
|
||||
SteamWare.inputComando answ;
|
||||
if (memLayer.ML.isInSessionObject("barcodeCmd"))
|
||||
{
|
||||
answ = (SteamWare.inputComando)memLayer.ML.objSessionObj("barcodeCmd");
|
||||
}
|
||||
else
|
||||
{
|
||||
answ = new SteamWare.inputComando();
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("barcodeCmd", value, false);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// oggetto comando locale alla classe
|
||||
/// </summary>
|
||||
public string rawInput
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ;
|
||||
if (memLayer.ML.isInSessionObject("barcodeRaw"))
|
||||
{
|
||||
answ = memLayer.ML.StringSessionObj("barcodeRaw");
|
||||
}
|
||||
else
|
||||
{
|
||||
answ = "";
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("barcodeRaw", value, false);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// al caricamento della pagina...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
resetData();
|
||||
}
|
||||
|
||||
DetectAgent();
|
||||
myInitialize();
|
||||
}
|
||||
/// <summary>
|
||||
/// inizializzazione specifica barcode
|
||||
/// </summary>
|
||||
private void myInitialize()
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
lblInput.Text = traduci("PregoInserireBarcode");
|
||||
comando = new SteamWare.inputComando();
|
||||
}
|
||||
}
|
||||
|
||||
public string BCodeVal
|
||||
{
|
||||
get
|
||||
{
|
||||
return txtInput.Text.Trim().ToUpper();
|
||||
}
|
||||
set
|
||||
{
|
||||
txtInput.Text = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// barcode completato con invio...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void txtInput_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
processInput();
|
||||
}
|
||||
|
||||
public void processInput()
|
||||
{
|
||||
comando.isValid = false;
|
||||
bool gotIt = false;
|
||||
gotIt = checkComandi();
|
||||
if (!gotIt)
|
||||
{
|
||||
gotIt = checkMacc();
|
||||
}
|
||||
if (!gotIt)
|
||||
{
|
||||
gotIt = checkIntServ();
|
||||
}
|
||||
// ora check globale...
|
||||
checkParam();
|
||||
// verifico se c'è stato input evento
|
||||
if (comando.isValid)
|
||||
{
|
||||
if (comando.currCmdIn != "" || comando.descrComando != "")
|
||||
{
|
||||
txtInput2show = comando.descrComando;
|
||||
}
|
||||
else
|
||||
{
|
||||
txtInput2show = "---";
|
||||
}
|
||||
if (comando.valore != "")
|
||||
{
|
||||
txtVal2show = comando.valoreTrad;
|
||||
}
|
||||
else
|
||||
{
|
||||
txtVal2show = "---";
|
||||
}
|
||||
if (eh_comandoRegistrato != null)
|
||||
{
|
||||
eh_comandoRegistrato(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lblInput.Text = traduci("ComandoSconosciuto");
|
||||
lblValore.Text = BCodeVal;
|
||||
comando = new SteamWare.inputComando();
|
||||
rawInput = BCodeVal;
|
||||
if (eh_dataRead != null)
|
||||
{
|
||||
eh_dataRead(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
BCodeVal = "";
|
||||
}
|
||||
|
||||
private bool checkComandi()
|
||||
{
|
||||
bool answ = false;
|
||||
// controllo eventuali comandi CUSTOM
|
||||
if (BCodeVal == regExp_KO)
|
||||
{
|
||||
comando.isValid = true;
|
||||
answ = true;
|
||||
resetData();
|
||||
}
|
||||
else if (BCodeVal == regExp_KitStart)
|
||||
{
|
||||
comando.isValid = true;
|
||||
answ = true;
|
||||
resetData();
|
||||
}
|
||||
else if (BCodeVal == regExp_KitSave)
|
||||
{
|
||||
comando.isValid = true;
|
||||
answ = true;
|
||||
resetData();
|
||||
}
|
||||
else if (BCodeVal == regExp_OK)
|
||||
{
|
||||
// comando valido SE ho ordine coerente...
|
||||
if (checkOrdOk)
|
||||
{
|
||||
comando.isValid = true;
|
||||
// recupero il codGruppo da macchina... (primo)
|
||||
if (codGruppo == "")
|
||||
{
|
||||
var tabAG = DataLayer.obj.taAG.getFaseByIdxMacc(idxMacc);
|
||||
if (tabAG.Rows.Count > 0)
|
||||
{
|
||||
codGruppo = tabAG[0].CodGruppo;
|
||||
}
|
||||
}
|
||||
// controllo se ho tutti i dati necessari...
|
||||
if (codOrd != "" && codArt != "" && codGruppo != "" && idxMacc != "" && qta > 0)
|
||||
{
|
||||
// creo nuova PROMESSA ODL...
|
||||
DataLayer.obj.taPODL.insertQuery(codOrd, codOrd, true, codArt, codGruppo, idxMacc, qta, 1, DateTime.Now, 1, 1);
|
||||
}
|
||||
}
|
||||
// resetto ricaricando
|
||||
Response.Redirect(titolo);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
private void resetData()
|
||||
{
|
||||
// resetto
|
||||
idxMacc = "";
|
||||
nomeMacc = "";
|
||||
codArt = "";
|
||||
descArt = "";
|
||||
codGruppo = "";
|
||||
codOrd = "";
|
||||
qta = 0;
|
||||
}
|
||||
|
||||
private bool checkMacc()
|
||||
{
|
||||
bool answ = false;
|
||||
// verifico se il barcode è di una macchina...
|
||||
var risultato = DataLayer.obj.taMacchine.GetByIdx(BCodeVal);
|
||||
if (risultato.Rows.Count > 0)
|
||||
{
|
||||
idxMacc = BCodeVal;
|
||||
comando.valore = BCodeVal;
|
||||
comando.isValid = true;
|
||||
answ = true;
|
||||
// recupero altri dati
|
||||
var rRes = risultato[0];
|
||||
nomeMacc = rRes.Descrizione;
|
||||
// imposto il gruppo cercandolo...
|
||||
var gruppi = DataLayer.obj.taAG.getByIdxMacc(BCodeVal);
|
||||
if (gruppi.Rows.Count > 0)
|
||||
{
|
||||
// salvo primo...
|
||||
codGruppo = gruppi[0].CodGruppo;
|
||||
}
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// verifica parametri in sessione x i valori eventualmente da mettere al comando...
|
||||
/// </summary>
|
||||
private void checkParam()
|
||||
{
|
||||
// ho macchina ed articolo?
|
||||
bool hasAllData = (idxMacc != "" && codArt != "");
|
||||
string valOut = "";
|
||||
if (codArt != "")
|
||||
{
|
||||
valOut += string.Format("<b>{0}</b><br/>Art: {1} | qta: {2:N0} | kit: {3}<br/>{4}", codOrd, codArt, qta, kitCode, descArt);
|
||||
}
|
||||
if (idxMacc != "")
|
||||
{
|
||||
valOut += string.Format("<br>{0} | {1}", idxMacc, nomeMacc);
|
||||
}
|
||||
// imposto...
|
||||
comando.valoreTrad = valOut;
|
||||
// controllo se ho tutto...
|
||||
comando.descrComando = "";
|
||||
if (idxMacc == "")
|
||||
{
|
||||
comando.descrComando += " - Manca Impianto - ";
|
||||
}
|
||||
if (codArt == "" || codOrd == "")
|
||||
{
|
||||
comando.descrComando += " - Manca Ordine Produzione - ";
|
||||
}
|
||||
if (!checkOrdOk)
|
||||
{
|
||||
comando.descrComando += " - Tipo Ordine errato - ";
|
||||
}
|
||||
if (hasAllData && checkOrdOk)
|
||||
{
|
||||
comando.descrComando = "Confermare caricamento";
|
||||
}
|
||||
}
|
||||
|
||||
private bool checkIntServ()
|
||||
{
|
||||
bool answ = false;
|
||||
// IN PRIMIS se c'è in config preprocesso BCode x Find-Replace
|
||||
string BCodeFilt = BCodeVal;
|
||||
if (regExp_Find != "")
|
||||
{
|
||||
// splitto i vettori
|
||||
var vettFind = regExp_Find.Split('|');
|
||||
var vettRepl = regExp_Replace.Split('|');
|
||||
// se ho tanti find quanti replace procedo...
|
||||
if (vettFind.Length == vettRepl.Length)
|
||||
{
|
||||
for (int i = 0; i < vettFind.Length; i++)
|
||||
{
|
||||
BCodeFilt = BCodeFilt.Replace(vettFind[i], vettRepl[i]);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Attenzione: problema in decodifica barcode find/replace, i aprametri non corrispondono una votla esplosi i vettori:{0}find: {1}{0}replace:{2}", Environment.NewLine, regExp_Find, regExp_Replace));
|
||||
}
|
||||
}
|
||||
// cerco esplicitamente sul DB IntegrationServices...
|
||||
var risultato = DataLayer.obj.taIS_TrDati.getOrdini(BCodeFilt);
|
||||
if (risultato.Rows.Count > 0)
|
||||
{
|
||||
var rRes = risultato[0];
|
||||
// verifico da config COME decodificare IS...
|
||||
string BCodeIS_DType = memLayer.ML.cdv("BCodeIS_DType");
|
||||
// verifico corrispondano i formati...
|
||||
if (rRes.DataType == BCodeIS_DType)
|
||||
{
|
||||
// cerco i dati e decodifico... togliendo eventuale VETTORE "[..]"
|
||||
var jsonData = risultato[0].ValueOUT.Replace("[", "").Replace("]", "");
|
||||
try
|
||||
{
|
||||
if (BCodeIS_DType == "Colcom_Order")
|
||||
{
|
||||
// a seconda del tipo decodifico...
|
||||
ISTD_OrderColcom currVal = JsonConvert.DeserializeObject<ISTD_OrderColcom>(jsonData);
|
||||
comando.isValid = true;
|
||||
answ = true;
|
||||
// salvo ordine / articolo / qta
|
||||
codOrd = currVal.CodOrdine;
|
||||
codArt = currVal.CodArticolo;
|
||||
descArt = currVal.DescrArticolo;
|
||||
kitCode = currVal.KitCode;
|
||||
qta = (int)currVal.Qta;
|
||||
comando.valore = jsonData;// string.Format("{0}#{1}#{2:N0}", codOrd, codArt, qta);
|
||||
comando.currCmdIn = "OrdArtQta";
|
||||
}
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Errore in decodifica obj JSON:{0}{1}", Environment.NewLine, exc), tipoLog.EXCEPTION);
|
||||
}
|
||||
}
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// verifico se sia un valore compreso nell'elenco fornito
|
||||
/// </summary>
|
||||
private void isValore()
|
||||
{
|
||||
if (_tabValori.ContainsKey(BCodeVal)) // verifico se il comando digitato esista...
|
||||
{
|
||||
comando.isValid = true;
|
||||
comando.valore = BCodeVal;
|
||||
_tabValori.TryGetValue(BCodeVal, out comando.valoreTrad);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica se il comando inserito sia valido
|
||||
/// </summary>
|
||||
private void isInputEvent()
|
||||
{
|
||||
if (_comandi.ContainsKey(BCodeVal)) // verifico se il comando digitato esista...
|
||||
{
|
||||
comando.isValid = true;
|
||||
// salvo comando precedente (se c'è...)
|
||||
comando.prevCmdIn = comando.currCmdIn;
|
||||
comando.descrComandoPrev = comando.descrComando;
|
||||
comando.currCmdIn = BCodeVal;
|
||||
_comandi.TryGetValue(BCodeVal, out comando.descrComando);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica quale browser usato e applica css corretto al div attorno al box
|
||||
/// </summary>
|
||||
private void DetectAgent()
|
||||
{
|
||||
System.Web.HttpBrowserCapabilities browser = Request.Browser;
|
||||
if (browser.Browser == "IE")
|
||||
{
|
||||
pnlBarcodeBox.CssClass = "barcodeBoxIE";
|
||||
}
|
||||
else
|
||||
{
|
||||
pnlBarcodeBox.CssClass = "barcodeBoxOther";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region area public
|
||||
|
||||
/// <summary>
|
||||
/// effettua al ettura da sessione del comando cliccato e lo inserisce come fosse barcode
|
||||
/// </summary>
|
||||
public void loadBtnClickComando()
|
||||
{
|
||||
BCodeVal = memLayer.ML.StringSessionObj("btnCmdPress");
|
||||
memLayer.ML.emptySessionVal("btnCmdPress");
|
||||
processInput();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// elenco dei comandi riconosciuti
|
||||
/// </summary>
|
||||
public Dictionary<string, string> comandiAmmessi
|
||||
{
|
||||
get
|
||||
{
|
||||
return _comandi;
|
||||
}
|
||||
set
|
||||
{
|
||||
_comandi = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// tabella di valori ammissibili
|
||||
/// </summary>
|
||||
public Dictionary<string, string> tabValori
|
||||
{
|
||||
get
|
||||
{
|
||||
return _tabValori;
|
||||
}
|
||||
set
|
||||
{
|
||||
_tabValori = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// evento comando registrato
|
||||
/// </summary>
|
||||
public event EventHandler eh_comandoRegistrato;
|
||||
/// <summary>
|
||||
/// evento lettura dati (grezza) effettuata
|
||||
/// </summary>
|
||||
public event EventHandler eh_dataRead;
|
||||
/// <summary>
|
||||
/// comando registrato dal barcode
|
||||
/// </summary>
|
||||
public SteamWare.inputComando comandoRegistrato
|
||||
{
|
||||
get
|
||||
{
|
||||
return comando;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// scrive nella label input
|
||||
/// </summary>
|
||||
public string txtInput2show
|
||||
{
|
||||
set
|
||||
{
|
||||
lblInput.Text = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// scrive nella label valore
|
||||
/// </summary>
|
||||
public string txtVal2show
|
||||
{
|
||||
set
|
||||
{
|
||||
lblValore.Text = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// scrive nella label richiesta
|
||||
/// </summary>
|
||||
public string txtRich2show
|
||||
{
|
||||
set
|
||||
{
|
||||
lblRichiesta.Text = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// reset del controllo
|
||||
/// </summary>
|
||||
public void resetMe()
|
||||
{
|
||||
comando = new SteamWare.inputComando();
|
||||
txtInput2show = "Prego inserire barcode";
|
||||
txtVal2show = "";
|
||||
txtRich2show = "";
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper traduzione termini
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduci(string lemma)
|
||||
{
|
||||
return user_std.UtSn.Traduci(lemma);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
+78
@@ -0,0 +1,78 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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_barcode {
|
||||
|
||||
/// <summary>
|
||||
/// Controllo txtInput.
|
||||
/// </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.TextBox txtInput;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtCerca.
|
||||
/// </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.LinkButton lbtCerca;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo pnlBarcodeBox.
|
||||
/// </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.Panel pnlBarcodeBox;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblInput.
|
||||
/// </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 lblInput;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblValore.
|
||||
/// </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 lblValore;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblRichiesta.
|
||||
/// </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 lblRichiesta;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblBrowser.
|
||||
/// </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 lblBrowser;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true"
|
||||
Inherits="mod_calChiusura" CodeBehind="mod_calChiusura.ascx.cs" %>
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
|
||||
DataKeyNames="data" DataSourceID="ods" OnDataBound="grView_DataBound">
|
||||
<RowStyle CssClass="ctrRowStyle" />
|
||||
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
|
||||
<EditRowStyle CssClass="ctrEditRowStyle" />
|
||||
<SelectedRowStyle CssClass="ctrSelRowStyle" />
|
||||
<FooterStyle CssClass="ctrFooter" />
|
||||
<PagerStyle CssClass="active GridPager" />
|
||||
<PagerSettings Mode="NumericFirstLast" />
|
||||
<HeaderStyle CssClass="ctrHeaderPager" ForeColor="White" Font-Bold="True" />
|
||||
<EmptyDataRowStyle CssClass="ctrRowStyle" />
|
||||
<EmptyDataTemplate>
|
||||
<asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("noRecord") %>' />
|
||||
<asp:Button ID="btnNew" runat="server" OnClick="btnNewFromEmpty_Click" Text='<%# traduci("New") %>' />
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center">
|
||||
<EditItemTemplate>
|
||||
<asp:ImageButton ID="imgUpdate" runat="server" CausesValidation="False" CommandName="Update"
|
||||
ToolTip='<%# traduci("Update")%>' ImageUrl='<%# imgPath(SteamWare.tipoImg.conferma, SteamWare.dimImg.small) %>' />
|
||||
<asp:ImageButton ID="imgCancel" runat="server" CausesValidation="False" CommandName="Cancel"
|
||||
ToolTip='<%# traduci("Cancel") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.annulla, SteamWare.dimImg.small) %>' />
|
||||
</EditItemTemplate>
|
||||
<HeaderTemplate>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select"
|
||||
Visible="false" ToolTip='<%# traduci("Select") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.seleziona, SteamWare.dimImg.small) %>' />
|
||||
<asp:ImageButton ID="imgEdit" runat="server" CausesValidation="False" CommandName="Edit"
|
||||
ToolTip='<%# traduci("Edit") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.modifica, SteamWare.dimImg.small) %>' />
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="data" InsertVisible="False" SortExpression="data">
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="txtData" runat="server" Text='<%# Bind("data","{0:dd/MM/yy}") %>'
|
||||
Width="5em" />
|
||||
<cc1:CalendarExtender ID="CalendarExtender1" runat="server" FirstDayOfWeek="Monday"
|
||||
TargetControlID="txtData" Format="dd/MM/yy"></cc1:CalendarExtender>
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label2" runat="server" Text='<%# Eval("data","{0:dd/MM/yy}") %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="descrizione" SortExpression="descrizione">
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="TextBox1" runat="server" Width="30em" Text='<%# Bind("descrizione") %>' />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# Eval("descrizione") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Center">
|
||||
<HeaderTemplate>
|
||||
<asp:Button ID="btnNew" runat="server" OnClick="btnNewFromEmpty_Click" Text='<%# traduci("New") %>' />
|
||||
</HeaderTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:ImageButton ID="imgUpdate2" runat="server" CausesValidation="False" CommandName="Update"
|
||||
ToolTip='<%# traduci("Update")%>' ImageUrl='<%# imgPath(SteamWare.tipoImg.conferma, SteamWare.dimImg.small) %>' />
|
||||
<asp:ImageButton ID="imgCancel2" runat="server" CausesValidation="False" CommandName="Cancel"
|
||||
ToolTip='<%# traduci("Cancel") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.annulla, SteamWare.dimImg.small) %>' />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgDelete" runat="server" CausesValidation="False" CommandName="Delete"
|
||||
ToolTip='<%# traduci("Delete") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.elimina, SteamWare.dimImg.small) %>' />
|
||||
<cc1:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" ConfirmText='<%# traduci("confermaDel")%>'
|
||||
TargetControlID="imgDelete"></cc1:ConfirmButtonExtender>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini" />
|
||||
<asp:ObjectDataSource ID="ods" runat="server" SelectMethod="GetData" TypeName="GIM_data.DS_applicazioneTableAdapters.CalendFesteFerieTableAdapter"
|
||||
UpdateMethod="Update" DeleteMethod="Delete" OldValuesParameterFormatString="Original_{0}"
|
||||
FilterExpression="descrizione LIKE '%{0}%' " InsertMethod="Insert">
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="data" Type="DateTime" />
|
||||
<asp:Parameter Name="descrizione" Type="String" />
|
||||
<asp:Parameter Name="Original_data" Type="DateTime" />
|
||||
</UpdateParameters>
|
||||
<FilterParameters>
|
||||
<asp:SessionParameter DefaultValue="*" Name="ricerca" SessionField="valoreCercato" />
|
||||
</FilterParameters>
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="Original_data" Type="DateTime" />
|
||||
</DeleteParameters>
|
||||
<InsertParameters>
|
||||
<asp:Parameter Name="data" Type="DateTime" />
|
||||
<asp:Parameter Name="descrizione" Type="String" />
|
||||
</InsertParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<div style="text-align: center;">
|
||||
<asp:Button ID="btnShowInsPeriodo" runat="server" Text="..." OnClick="btnShowInsPeriodo_Click" />
|
||||
<asp:Panel runat="server" ID="pnlInsPeriodo" Visible="false">
|
||||
<div style="float: left;">
|
||||
<asp:TextBox ID="txtDataFrom" runat="server" Width="5em" />
|
||||
<cc1:CalendarExtender ID="CalendarExtender2" runat="server" FirstDayOfWeek="Monday"
|
||||
TargetControlID="txtDataFrom" Format="dd/MM/yy"></cc1:CalendarExtender>
|
||||
</div>
|
||||
<div style="float: left;">
|
||||
<asp:TextBox ID="txtDataTo" runat="server" Width="5em" />
|
||||
<cc1:CalendarExtender ID="CalendarExtender3" runat="server" FirstDayOfWeek="Monday"
|
||||
TargetControlID="txtDataTo" Format="dd/MM/yy"></cc1:CalendarExtender>
|
||||
</div>
|
||||
<div style="float: left;">
|
||||
<asp:TextBox ID="txtDescrizione" runat="server" Width="30em" />
|
||||
</div>
|
||||
<div style="float: left;">
|
||||
<asp:Button ID="btnInsPeriodo" runat="server" OnClick="btnInsPeriodo_Click" />
|
||||
</div>
|
||||
<asp:Label ID="lblWarning" runat="server" Visible="false" CssClass="erroreMid" />
|
||||
</asp:Panel>
|
||||
</div>
|
||||
@@ -0,0 +1,113 @@
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
public partial class mod_calChiusura : ApplicationUserControl
|
||||
{
|
||||
public event EventHandler eh_resetSelezione;
|
||||
|
||||
protected override void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
base.Page_Load(sender, e);
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
grView.PageSize = _righeDataGridMed;
|
||||
btnShowInsPeriodo.Text = traduci("btnShowInsPeriodo");
|
||||
btnInsPeriodo.Text = traduci("btnInsPeriodo");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// gestione evento inserimento nuovo record standard (se ZERO presenti)
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnNewFromEmpty_Click(object sender, EventArgs e)
|
||||
{
|
||||
// reset selezione...
|
||||
resetSelezione();
|
||||
// i primi valori ("0") di default sono "ND"... li inserisco come standard...
|
||||
MapoDb.DataLayer.obj.taCalFF.Insert(DateTime.Now.Date, "-- [NUOVO] non definito --");
|
||||
grView.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// resetta la selezione dei valori in caso di modifiche su altri controlli
|
||||
/// </summary>
|
||||
public void resetSelezione()
|
||||
{
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
if (eh_resetSelezione != null)
|
||||
{
|
||||
eh_resetSelezione(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// evento dati associati a controllo
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void grView_DataBound(object sender, EventArgs e)
|
||||
{
|
||||
if (grView.Rows.Count > 0)
|
||||
{
|
||||
LinkButton lb;
|
||||
// aggiorno gli headers
|
||||
foreach (TableCell cella in grView.HeaderRow.Cells)
|
||||
{
|
||||
try
|
||||
{
|
||||
lb = (LinkButton)cella.Controls[0];
|
||||
lb.Text = traduci(lb.Text);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1);
|
||||
lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord);
|
||||
}
|
||||
else
|
||||
{
|
||||
lblNumRec.Text = "";
|
||||
}
|
||||
}
|
||||
protected void btnShowInsPeriodo_Click(object sender, EventArgs e)
|
||||
{
|
||||
pnlInsPeriodo.Visible = !pnlInsPeriodo.Visible;
|
||||
if (pnlInsPeriodo.Visible)
|
||||
{
|
||||
btnShowInsPeriodo.Text = traduci("btnHideInsPeriodo");
|
||||
}
|
||||
else
|
||||
{
|
||||
btnShowInsPeriodo.Text = traduci("btnShowInsPeriodo");
|
||||
}
|
||||
}
|
||||
protected void btnInsPeriodo_Click(object sender, EventArgs e)
|
||||
{
|
||||
// verifico date congrue...
|
||||
DateTime inizio = Convert.ToDateTime(txtDataFrom.Text);
|
||||
DateTime fine = Convert.ToDateTime(txtDataTo.Text);
|
||||
if (fine.CompareTo(inizio) >= 0)
|
||||
{
|
||||
// inserisco le voci x tutte le date nell'intervallo...
|
||||
while (fine.CompareTo(inizio) >= 0)
|
||||
{
|
||||
|
||||
MapoDb.DataLayer.obj.taCalFF.Insert(inizio, txtDescrizione.Text);
|
||||
inizio = inizio.AddDays(1);
|
||||
}
|
||||
// update e nascondo pannello
|
||||
grView.DataBind();
|
||||
pnlInsPeriodo.Visible = false;
|
||||
btnShowInsPeriodo.Text = traduci("btnShowInsPeriodo");
|
||||
lblWarning.Visible = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
lblWarning.Visible = true;
|
||||
lblWarning.Text = traduci("OrdineDateErrato");
|
||||
}
|
||||
}
|
||||
}
|
||||
+121
@@ -0,0 +1,121 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
public partial class mod_calChiusura {
|
||||
|
||||
/// <summary>
|
||||
/// grView control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.GridView grView;
|
||||
|
||||
/// <summary>
|
||||
/// lblNumRec control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblNumRec;
|
||||
|
||||
/// <summary>
|
||||
/// ods control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource ods;
|
||||
|
||||
/// <summary>
|
||||
/// btnShowInsPeriodo control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnShowInsPeriodo;
|
||||
|
||||
/// <summary>
|
||||
/// pnlInsPeriodo control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Panel pnlInsPeriodo;
|
||||
|
||||
/// <summary>
|
||||
/// txtDataFrom control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtDataFrom;
|
||||
|
||||
/// <summary>
|
||||
/// CalendarExtender2 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::AjaxControlToolkit.CalendarExtender CalendarExtender2;
|
||||
|
||||
/// <summary>
|
||||
/// txtDataTo control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtDataTo;
|
||||
|
||||
/// <summary>
|
||||
/// CalendarExtender3 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::AjaxControlToolkit.CalendarExtender CalendarExtender3;
|
||||
|
||||
/// <summary>
|
||||
/// txtDescrizione control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtDescrizione;
|
||||
|
||||
/// <summary>
|
||||
/// btnInsPeriodo control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnInsPeriodo;
|
||||
|
||||
/// <summary>
|
||||
/// lblWarning control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblWarning;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" Inherits="mod_fixCal" Codebehind="mod_fixCal.ascx.cs" %>
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
|
||||
<asp:TextBox ID="TextBox1" runat="server" Visible="false">
|
||||
</asp:TextBox>
|
||||
<cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="TextBox1"
|
||||
FirstDayOfWeek="monday" Format="dd/MM/yyyy" />
|
||||
@@ -0,0 +1,9 @@
|
||||
using System;
|
||||
|
||||
public partial class mod_fixCal : System.Web.UI.UserControl
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.4927
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
public partial class mod_fixCal {
|
||||
|
||||
/// <summary>
|
||||
/// TextBox1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox TextBox1;
|
||||
|
||||
/// <summary>
|
||||
/// CalendarExtender1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::AjaxControlToolkit.CalendarExtender CalendarExtender1;
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
+33
@@ -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,231 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_gestKIT.ascx.cs" Inherits="MoonProAdmin.WebUserControls.mod_gestKIT" %>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="card-deck">
|
||||
<asp:HiddenField runat="server" ID="hlCodKitTemp" />
|
||||
<div class="card">
|
||||
<div class="card-header bg-primary text-light">
|
||||
<h4>Composizione KIT</h4>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<b>Ordini selezionati:</b>
|
||||
<asp:GridView runat="server" ID="grViewWSK" DataSourceID="odsWSK" AutoGenerateColumns="False" DataKeyNames="KeyFilt,CodOrd" CssClass="table table-sm table-striped">
|
||||
<EmptyDataTemplate>
|
||||
Nessun Ordine caricato
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<asp:BoundField DataField="CodOrd" HeaderText="OPR" ReadOnly="True" SortExpression="CodOrd" ItemStyle-CssClass="text-nowrap" />
|
||||
<asp:BoundField DataField="CodArt" HeaderText="Cod.Art" SortExpression="CodArt" ItemStyle-CssClass="font-weight-bold" />
|
||||
<asp:BoundField DataField="DescArt" HeaderText="Desc.Art" SortExpression="DescArt" ItemStyle-CssClass="small" />
|
||||
<asp:BoundField DataField="Qta" HeaderText="Qta" SortExpression="Qta" />
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource runat="server" ID="odsWSK" OldValuesParameterFormatString="original_{0}" SelectMethod="getByFilt" TypeName="MapoDb.DS_IntServTableAdapters.WipSetupKitTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="hlCodKitTemp" Name="KeyFilt" PropertyName="Value" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
<div class="card-footer py-1 bg-primary text-light">
|
||||
Cod temp: <b><%: hlCodKitTemp.Value %></b>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-header bg-success text-light">
|
||||
<h4>Verifica KIT</h4>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<b>Elenco KIT compatibili</b>
|
||||
<asp:GridView runat="server" ID="grViewKitSel" DataSourceID="odsKitSel" AutoGenerateColumns="False" CssClass="table table-striped table-sm" DataKeyNames="CodArtParent" OnSelectedIndexChanged="grViewKitSel_SelectedIndexChanged">
|
||||
<EmptyDataTemplate>
|
||||
Nessun KIT trovato
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<asp:BoundField DataField="CodArtParent" HeaderText="Codice KIT" SortExpression="CodArtParent" />
|
||||
<asp:BoundField DataField="TotalScore" HeaderText="Coerenza KIT" ReadOnly="True" SortExpression="TotalScore" DataFormatString="{0:P2}" ItemStyle-HorizontalAlign="Right" />
|
||||
<asp:TemplateField HeaderText="Azione">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton runat="server" ID="lbtCreatePODL" Visible='<%# Eval("TotalScore","{0:P0}") == "100%" %>' CssClass="btn btn-success btn-sm" ToolTip="Crea ordine KIT" CommandName="select">
|
||||
<i class="fa fa-plus-square"></i> Prom.ODL <i class="fa fa-plus-square"></i>
|
||||
</asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource runat="server" ID="odsKitSel" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="MapoDb.DS_IntServTableAdapters.TKS_SearchTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="hlCodKitTemp" Name="KeyFilt" PropertyName="Value" Type="String" />
|
||||
<asp:Parameter DefaultValue="2" Name="maxResult" Type="Int32" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<div runat="server" id="divPODL">
|
||||
<b>Elenco promesse per KIT (100%)</b>
|
||||
<asp:GridView runat="server" ID="grViewPODL" DataSourceID="odsPODL" CssClass="table table-sm table-striped" AutoGenerateColumns="False" DataKeyNames="idxPromessa">
|
||||
<Columns>
|
||||
<asp:BoundField DataField="idxPromessa" HeaderText="#" InsertVisible="False" ReadOnly="True" SortExpression="idxPromessa" />
|
||||
<asp:TemplateField HeaderText="Cod.KIT" SortExpression="KeyRichiesta">
|
||||
<ItemTemplate>
|
||||
<div style="float: left;">
|
||||
<b>
|
||||
<asp:Label runat="server" ID="txtCodArticolo" Text='<%# Eval("CodArticolo") %>' /></b>
|
||||
</div>
|
||||
<div style="float: right; font-size: 0.8em;">
|
||||
<asp:Label runat="server" ID="Label3" Text='<%# Eval("KeyRichiesta") %>' />
|
||||
</div>
|
||||
<div style="float: none; clear: both;">
|
||||
<asp:Label runat="server" ID="txtDescArticolo" Text='<%# Eval("DescArticolo") %>' />
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Nome" SortExpression="Nome">
|
||||
<ItemTemplate>
|
||||
<b>
|
||||
<asp:Label runat="server" ID="txtCodMacchina" Text='<%# Eval("CodMacchina") %>' /></b>
|
||||
<br />
|
||||
<asp:Label runat="server" ID="txtNome" Text='<%# Eval("Nome") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="NumPezzi" HeaderText="NumPezzi" SortExpression="NumPezzi" />
|
||||
</Columns>
|
||||
<EmptyDataTemplate>
|
||||
Nessun Record (P.ODL da eseguire)
|
||||
</EmptyDataTemplate>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="odsPODL" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByCodArt" TypeName="MapoDb.DS_ProdTempiTableAdapters.PromesseODLTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="hfCodArtKit" DefaultValue="###" Name="CodArticolo" PropertyName="Value" Type="String" />
|
||||
<asp:Parameter DefaultValue="true" Name="onlyAvail" Type="Boolean" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:HiddenField runat="server" ID="hfCodArtKit" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer py-1 bg-success text-light">
|
||||
Abilitato se = 100%
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-header bg-danger text-light">
|
||||
<h4>KIT e Promesse</h4>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<b>Elenco KIT associati ad ordini</b>
|
||||
<asp:GridView runat="server" ID="grViewIstanzeKIT" DataSourceID="odsIstanzeKIT" AutoGenerateColumns="False" DataKeyNames="KeyKit,KeyExtOrd" CssClass="table table-sm table-striped">
|
||||
<EmptyDataTemplate>
|
||||
Nessun Record (Ordini associati a KIT)
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<asp:BoundField DataField="KeyKit" HeaderText="OPR.KIT" ReadOnly="True" SortExpression="KeyKit" ItemStyle-CssClass="font-weight-bold" />
|
||||
<asp:BoundField DataField="CodArtParent" HeaderText="Cod.KIT" SortExpression="CodArtParent" />
|
||||
<asp:BoundField DataField="KeyExtOrd" HeaderText="OPR" ReadOnly="True" SortExpression="KeyExtOrd" ItemStyle-CssClass="text-danger" />
|
||||
<asp:BoundField DataField="CodArtChild" HeaderText="Cod.Art" SortExpression="CodArtChild" />
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="odsIstanzeKIT" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByExtOrd" TypeName="MapoDb.DS_IntServTableAdapters.IstanzeKITTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="hlCodKitTemp" Name="KeyFilt" PropertyName="Value" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
<div class="card-footer py-1 bg-danger text-light">
|
||||
Attenzione: non associare OPR a più KIT!
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<%--<div class="col">
|
||||
<ul>
|
||||
<li><b>esempio KIT: 8060A00</b></li>
|
||||
<li>OPR18-20381</li>
|
||||
<li>OPR18-21855</li>
|
||||
<li>OPR18-21856</li>
|
||||
<li>OPR18-21857</li>
|
||||
<li>OPR18-22974 (NON VA BENE A313)</li>
|
||||
</ul>
|
||||
</div>--%>
|
||||
<%-- <div class="col">
|
||||
<ul>
|
||||
<li><b>esempio KIT: 8010A00</b></li>
|
||||
<li>OPR18-22022</li>
|
||||
<li>OPR18-22032</li>
|
||||
</ul>
|
||||
<br />
|
||||
<ul>
|
||||
<li><b>esempio KIT: 8665A00</b></li>
|
||||
<li>OPR18-21255</li>
|
||||
<li>OPR18-21259</li>
|
||||
<li>OPR18-21268</li>
|
||||
<li>OPR18-21262</li>
|
||||
</ul>
|
||||
</div>--%>
|
||||
<div class="col-4">
|
||||
<asp:HiddenField ID="hlLastInput" runat="server" />
|
||||
<asp:Label runat="server" ID="lblOut" CssClass="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<%--TESTDB: MoonPro
|
||||
select * from Config where chiave like 'regexp%'
|
||||
|
||||
|
||||
TESTDB: IS_Colcom
|
||||
|
||||
|
||||
|
||||
exec stp_IstanzeKit_Search 'K1800000001', '', '', ''
|
||||
exec stp_IstanzeKit_Search '', 'OPR-123456', '', ''
|
||||
exec stp_IstanzeKit_Search '', '', 'A101000', ''
|
||||
exec stp_IstanzeKit_Search '', '', '', 'A101001'
|
||||
|
||||
|
||||
exec stp_TemplateKit_Search '8060A00',''
|
||||
exec stp_TemplateKit_Search '','8060A313'
|
||||
|
||||
|
||||
select * from TransitoDati
|
||||
|
||||
select * from IstanzeKIT
|
||||
|
||||
|
||||
select top 1 * from TransitoDati where ValueOUT LIKE '%8060A0%'
|
||||
select top 1 * from TransitoDati where ValueOUT LIKE '%8060A1%'
|
||||
select top 1 * from TransitoDati where ValueOUT LIKE '%8060A2%'
|
||||
select top 1 * from TransitoDati where ValueOUT LIKE '%8060A313%'
|
||||
|
||||
-- esempio KIT: 8060A00
|
||||
-- OPR18-20381
|
||||
-- OPR18-21855
|
||||
-- OPR18-21856
|
||||
-- OPR18-22974
|
||||
|
||||
select * from TemplateKIT order by CodArtChild DESC
|
||||
exec stp_TKS_Search '1010A1,1010A2,'
|
||||
exec stp_TKS_Search '8060A0,'
|
||||
exec stp_TKS_Search '8060A1,'
|
||||
exec stp_TKS_Search '8060A2,'
|
||||
exec stp_TKS_Search '8060A313,'
|
||||
exec stp_TKS_Search '8060A0,8060A1,8060A2,8060A313,'
|
||||
|
||||
exec stp_TKS_Search 'V10616D,'
|
||||
exec stp_TKS_Search 'M06606,'
|
||||
|
||||
exec stp_TemplateKit_Search '1050A00',''
|
||||
exec stp_TemplateKit_Search '1040A00',''
|
||||
exec stp_TemplateKit_Search '6606A00',''
|
||||
exec stp_TemplateKit_Search '6610A00',''
|
||||
|
||||
--truncate table IstanzeKIT
|
||||
--truncate table Counters
|
||||
|
||||
select * from IstanzeKIT
|
||||
|
||||
|
||||
exec stp_IstKit_byKeyExtOrd 'OPR-123321,OPR-123456,'
|
||||
|
||||
exec stp_IstKit_getKey
|
||||
|
||||
--%>
|
||||
@@ -0,0 +1,264 @@
|
||||
using MapoDb;
|
||||
using SteamWare;
|
||||
using System;
|
||||
|
||||
namespace MoonProAdmin.WebUserControls
|
||||
{
|
||||
public partial class mod_gestKIT : System.Web.UI.UserControl
|
||||
{
|
||||
|
||||
public event EventHandler eh_selKit;
|
||||
|
||||
#region setup VARS
|
||||
|
||||
/// <summary>
|
||||
/// RegExp x RESET / CANCEL
|
||||
/// </summary>
|
||||
protected string regExp_KO = memLayer.ML.cdv("regExp_KO");
|
||||
/// <summary>
|
||||
/// RegExp x CONFERMA
|
||||
/// </summary>
|
||||
protected string regExp_OK = memLayer.ML.cdv("regExp_OK");
|
||||
/// <summary>
|
||||
/// RegExp x START KIT
|
||||
/// </summary>
|
||||
protected string regExp_KitStart = memLayer.ML.cdv("regExp_KitStart");
|
||||
/// <summary>
|
||||
/// RegExp x SAVE KIT
|
||||
/// </summary>
|
||||
protected string regExp_KitSave = memLayer.ML.cdv("regExp_KitSave");
|
||||
|
||||
#endregion
|
||||
|
||||
#region variabili in sessione
|
||||
|
||||
/// <summary>
|
||||
/// UID formattato con "_"
|
||||
/// </summary>
|
||||
public string uid
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.UniqueID.Replace("$", "_").Replace("-", "_");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// titolo pagina
|
||||
/// </summary>
|
||||
public string titolo
|
||||
{
|
||||
get
|
||||
{
|
||||
return devicesAuthProxy.getPage(Request.Url).Replace(".aspx", "");
|
||||
}
|
||||
}
|
||||
|
||||
public string codKitTemp
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj(string.Format("codKitTemp_{0}", uid));
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal(string.Format("codKitTemp_{0}", uid), value);
|
||||
hlCodKitTemp.Value = value;
|
||||
grViewWSK.DataBind();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Ultimo Codice KIT creato
|
||||
/// </summary>
|
||||
public string lastKitMade
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("lastKitMade");
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("lastKitMade", value);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Aggiunge (in obj OrdineKit) l'ordine coi parametri indicati
|
||||
/// </summary>
|
||||
/// <param name="codOrd"></param>
|
||||
/// <param name="codArt"></param>
|
||||
/// <param name="descArt"></param>
|
||||
/// <param name="qta"></param>
|
||||
/// <returns></returns>
|
||||
public bool addOrdArt(string codOrd, string codArt, string descArt, int qta)
|
||||
{
|
||||
bool answ = false;
|
||||
// verifico di avere un codiceKIT
|
||||
checkCodKit();
|
||||
// salvo info x il cod temporaneo...
|
||||
DataLayer.obj.taWKS.insertQuery(codKitTemp, codOrd, codArt, descArt, qta);
|
||||
// verifico SE HO un KIT riconosciuto e quindi un CodArt di KIT valido...
|
||||
string currCodArtKit = "###";
|
||||
var TksTab = DataLayer.obj.taTKS.GetData(codKitTemp, 1);
|
||||
bool showPODL = false;
|
||||
if (TksTab.Rows.Count > 0)
|
||||
{
|
||||
// verifico se ho aderenza 100%...
|
||||
if (TksTab[0].TotalScore == 1)
|
||||
{
|
||||
currCodArtKit = TksTab[0].CodArtParent;
|
||||
showPODL = true;
|
||||
}
|
||||
}
|
||||
hfCodArtKit.Value = currCodArtKit;
|
||||
divPODL.Visible = showPODL;
|
||||
answ = true;
|
||||
grViewWSK.DataBind();
|
||||
grViewKitSel.DataBind();
|
||||
grViewPODL.DataBind();
|
||||
grViewIstanzeKIT.DataBind();
|
||||
return answ;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// Caricamento pagina
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
doReset();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Ultimo input registrato
|
||||
/// </summary>
|
||||
public string lastInput
|
||||
{
|
||||
get
|
||||
{
|
||||
return hlLastInput.Value;
|
||||
}
|
||||
set
|
||||
{
|
||||
hlLastInput.Value = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Aggiorno controllo secondo ULTIMO input
|
||||
/// </summary>
|
||||
public void doUpdate()
|
||||
{
|
||||
// aggiorno label...
|
||||
messOut = "";
|
||||
// controllo input (reset/inizio o salva...)
|
||||
if (lastInput == regExp_KO)
|
||||
{
|
||||
// resetto dati
|
||||
doReset();
|
||||
messOut = "Effettuato reset!";
|
||||
}
|
||||
else if (lastInput == regExp_KitStart)
|
||||
{
|
||||
// resetto dati
|
||||
doReset();
|
||||
messOut = "Inizio configurazione KIT";
|
||||
}
|
||||
else if (lastInput == regExp_KitSave)
|
||||
{
|
||||
// controllo SE HO un kit selezionato...
|
||||
string currCodArtKit = "###";
|
||||
var TksTab = DataLayer.obj.taTKS.GetData(codKitTemp, 1);
|
||||
bool showPODL = false;
|
||||
if (TksTab.Rows.Count > 0)
|
||||
{
|
||||
// verifico se ho aderenza 100%...
|
||||
if (TksTab[0].TotalScore == 1)
|
||||
{
|
||||
currCodArtKit = TksTab[0].CodArtParent;
|
||||
showPODL = true;
|
||||
}
|
||||
}
|
||||
if (showPODL)
|
||||
{
|
||||
// in questo caso creo istanza!
|
||||
creazioneIstanzaKit(currCodArtKit);
|
||||
}
|
||||
}
|
||||
else if (lastInput == regExp_OK)
|
||||
{
|
||||
|
||||
}
|
||||
// ennesimo check cod TEMP
|
||||
checkCodKit();
|
||||
}
|
||||
|
||||
private void doReset()
|
||||
{
|
||||
// elimino eventuali record ODL
|
||||
DataLayer.obj.taWKS.deleteQuery(codKitTemp);
|
||||
codKitTemp = "";
|
||||
divPODL.Visible = false;
|
||||
checkCodKit();
|
||||
}
|
||||
/// <summary>
|
||||
/// Verifico SE HO un codKit Temporaneo sennò lo creo...
|
||||
/// </summary>
|
||||
private void checkCodKit()
|
||||
{
|
||||
if (codKitTemp == "")
|
||||
{
|
||||
// genero un NUOVO cod temp kit...
|
||||
codKitTemp = string.Format("KIT_{0:yyMMdd_HHmmss}", DateTime.Now);
|
||||
}
|
||||
}
|
||||
|
||||
public string messOut
|
||||
{
|
||||
set
|
||||
{
|
||||
lblOut.Text = value;
|
||||
}
|
||||
get
|
||||
{
|
||||
return lblOut.Text;
|
||||
}
|
||||
}
|
||||
|
||||
protected void grViewKitSel_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// se ho selezionato recupero CHIAVE = CodArticolo del KIT
|
||||
string CodArtParent = grViewKitSel.SelectedValue.ToString();
|
||||
// crea KIT x quel CodArtParent...
|
||||
creazioneIstanzaKit(CodArtParent);
|
||||
}
|
||||
/// <summary>
|
||||
/// Crea una NUOVA istanza KIT
|
||||
/// </summary>
|
||||
/// <param name="CodArtParent">CodArt dell'Assieme/KIT</param>
|
||||
private void creazioneIstanzaKit(string CodArtParent)
|
||||
{
|
||||
// calcolo NUOVO codice kit...
|
||||
var tabKey = DataLayer.obj.taIstK.getNewKey();
|
||||
if (tabKey.Rows.Count == 1)
|
||||
{
|
||||
// stacco un NUOVO codice KIT
|
||||
lastKitMade = tabKey[0].KeyKit;
|
||||
// inserisco ISTANZA KIT!
|
||||
DataLayer.obj.taIstK.insertByWKS(lastKitMade, CodArtParent, codKitTemp);
|
||||
// faccio reset valori WKS...
|
||||
doReset();
|
||||
// ora resetto ordine caricato...
|
||||
messOut = string.Format("Creato NUOVA P.ODL cod {0} per il KIT {1}", lastKitMade, CodArtParent);
|
||||
// sollevo evento x impostare lettura KIT a BARCODE (x conferma successiva...)
|
||||
// sollevo evento nuovo valore...
|
||||
if (eh_selKit != null)
|
||||
{
|
||||
eh_selKit(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+132
@@ -0,0 +1,132 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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_gestKIT {
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hlCodKitTemp.
|
||||
/// </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.HiddenField hlCodKitTemp;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo grViewWSK.
|
||||
/// </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.GridView grViewWSK;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo odsWSK.
|
||||
/// </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.ObjectDataSource odsWSK;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo grViewKitSel.
|
||||
/// </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.GridView grViewKitSel;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo odsKitSel.
|
||||
/// </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.ObjectDataSource odsKitSel;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo divPODL.
|
||||
/// </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.HtmlGenericControl divPODL;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo grViewPODL.
|
||||
/// </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.GridView grViewPODL;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo odsPODL.
|
||||
/// </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.ObjectDataSource odsPODL;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfCodArtKit.
|
||||
/// </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.HiddenField hfCodArtKit;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo grViewIstanzeKIT.
|
||||
/// </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.GridView grViewIstanzeKIT;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo odsIstanzeKIT.
|
||||
/// </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.ObjectDataSource odsIstanzeKIT;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hlLastInput.
|
||||
/// </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.HiddenField hlLastInput;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblOut.
|
||||
/// </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 lblOut;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,208 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_gestPromODL.ascx.cs" Inherits="MoonProAdmin.WebUserControls.mod_gestPromODL" %>
|
||||
|
||||
<%@ Register Src="~/WebUserControls/mod_newPromessaODL.ascx" TagPrefix="uc1" TagName="mod_newPromessaODL" %>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<h4>Filtri attivi</h4>
|
||||
</div>
|
||||
<div class="col text-nowrap">
|
||||
<div class="input-group my-1 input-group-sm">
|
||||
<div class="input-group-prepend">
|
||||
<asp:LinkButton runat="server" ID="lbtResArt" CssClass="btn btn-outline-dark" OnClick="lbtResArt_Click"><i class="fa fa-refresh"></i> <b>Articolo</b></asp:LinkButton>
|
||||
<asp:Label runat="server" ID="lblCodArt" CssClass="input-group-text" />
|
||||
<asp:Label runat="server" ID="lblDescArt" CssClass="input-group-text text-truncate" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="input-group my-1 input-group-sm">
|
||||
<div class="input-group-prepend">
|
||||
<asp:LinkButton runat="server" ID="lbtResMacc" CssClass="btn btn-outline-dark" OnClick="lbtResMacc_Click"><i class="fa fa-refresh"></i> <b>Macchina</b></asp:LinkButton>
|
||||
<asp:Label runat="server" ID="lblNomeMacc" CssClass="input-group-text" />
|
||||
<asp:Label runat="server" ID="lblIdxMacc" CssClass="input-group-text" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="input-group mb-3">
|
||||
<div class="input-group-prepend">
|
||||
<div class="input-group-text">
|
||||
<asp:CheckBox runat="server" ID="chkUnassigned" AutoPostBack="True" OnCheckedChanged="chkUnassigned_CheckedChanged" Checked="true" />
|
||||
</div>
|
||||
</div>
|
||||
<asp:Label runat="server" ID="lblUnass" CssClass="input-group-text" Text="Mostra SOLO programmate" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bg-dark text-light" style="white-space: nowrap; padding: 2px;">
|
||||
<div class="row">
|
||||
<div class="col-4"></div>
|
||||
<div class="col-4">
|
||||
<asp:LinkButton ID="lbtNewPODL" runat="server" OnClick="lbtNewPODL_Click" CssClass="btn btn-block btn-primary text-light"><i class="fa fa-plus"></i> PROMESSA ODL <i class="fa fa-list-ol"></i></asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-4"></div>
|
||||
</div>
|
||||
<uc1:mod_newPromessaODL runat="server" ID="mod_newPromessaODL" />
|
||||
</div>
|
||||
<div id="divEditQta" runat="server" visible="false" class="ctrSelRowStyle" style="white-space: nowrap; padding: 2px;">
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
<asp:LinkButton ID="lbtOk" runat="server" Text="Ok" OnClick="btnOk_Click" CssClass="btn btn-block btn-success" OnClientClick="return confirm('Sicuro di voler modificare la Promessa ODL?');"><i class="fa fa-plus"></i> Modifica </asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
# Pezzi Richiesti:
|
||||
<asp:TextBox runat="server" ID="txtNewQta" Width="6em" />
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
Pezzi Pallet:
|
||||
<asp:TextBox runat="server" ID="txtNewPzPallet" Width="6em" />
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<asp:LinkButton ID="lbtCancel" runat="server" Text="Annulla" OnClick="btnCancel_Click" CssClass="btn btn-block btn-warning"><i class="fa fa-ban"></i> Annulla</asp:LinkButton>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
|
||||
OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound" PageSize="25"
|
||||
DataKeyNames="IdxPromessa" DataSourceID="ods" Width="100%">
|
||||
<RowStyle CssClass="ctrRowStyle" />
|
||||
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
|
||||
<EditRowStyle CssClass="ctrEditRowStyle" />
|
||||
<SelectedRowStyle CssClass="ctrSelRowStyle" />
|
||||
<FooterStyle CssClass="ctrFooter" />
|
||||
<PagerStyle CssClass="active GridPager" />
|
||||
<PagerSettings Mode="NumericFirstLast" />
|
||||
<HeaderStyle CssClass="ctrHeaderPager" ForeColor="White" Font-Bold="True" />
|
||||
<EmptyDataRowStyle CssClass="ctrRowStyle" />
|
||||
<EmptyDataTemplate>
|
||||
<asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("noRecord") %>' />
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center">
|
||||
<HeaderTemplate>
|
||||
<asp:LinkButton runat="server" ID="lbtReset" CausesValidation="false" OnClick="btnReset_Click" ToolTip="Reset selezione" CssClass="btn btn-block btn-warning"><i class="fa fa-refresh"></i></asp:LinkButton>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton runat="server" ID="lbtSel" CausesValidation="false" CommandName="Select" OnCommand="lbt_Command" CommandArgument="Edit" ToolTip="Modifica promessa" Visible='<%# Eval("IdxODL").ToString()=="" || Eval("IdxODL").ToString()=="0" %>' CssClass="btn btn-sm btn-info"><i class="fa fa-edit"></i></asp:LinkButton>
|
||||
<asp:LinkButton runat="server" ID="lbtClona" CausesValidation="false" CommandName="Select" OnCommand="lbt_Command" CommandArgument="Clona" ToolTip="Copia promessa" CssClass="btn btn-sm btn-primary" Visible='<%# !Eval("KeyRichiesta").ToString().StartsWith("KIT") %>'><i class="fa fa-clipboard"></i></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="#" SortExpression="IdxPromessa">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" ID="txtIdxPromessa" Text='<%# Eval("IdxPromessa") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="ODL" SortExpression="IdxOdl">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" ID="txtIdxOdl" Text='<%# Eval("IdxOdl") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="CodArticolo" SortExpression="CodArticolo">
|
||||
<ItemTemplate>
|
||||
<div style="float: left;">
|
||||
<asp:LinkButton runat="server" ID="lbtSelArt" OnClick="lbtSelArt_Click" CausesValidation="False" CommandArgument='<%# Eval("CodArticolo")+"|"+Eval("DescArticolo") %>' CssClass="btn btn-sm btn-outline-dark p-1">
|
||||
<i class="fa fa-search"></i>
|
||||
<b><%# Eval("CodArticolo") %></b>
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div style="float: right; font-size: 0.8em;">
|
||||
<asp:Label runat="server" ID="Label1" Text='<%# Eval("KeyRichiesta") %>' />
|
||||
</div>
|
||||
<div style="float: none; clear: both;">
|
||||
<asp:Label runat="server" ID="txtDescArticolo" Text='<%# Eval("DescArticolo") %>' />
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="codMacchina" SortExpression="CodMacchina">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton runat="server" ID="lbtSelMacc" OnClick="lbtSelMacc_Click" CausesValidation="False" CommandArgument='<%# Eval("IdxMacchina")+"|"+Eval("Nome") %>' CssClass="btn btn-sm btn-outline-dark p-1 btn-block">
|
||||
<i class="fa fa-search"></i>
|
||||
<b><%# Eval("Nome") %></b>
|
||||
<div><%# Eval("CodMacchina") %></div>
|
||||
</asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="NumPezzi" SortExpression="NumPezzi">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" ID="txtNumPezzi" Text='<%# Eval("NumPezzi") %>' />
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:Label runat="server" ID="txtNumPezzi" Text='<%# Bind("NumPezzi") %>' />
|
||||
</EditItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="TCAssegnato" SortExpression="TCAssegnato">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" ID="txtTCAssegnato" Text='<%# Eval("TCAssegnato","{0:0.000}") %>' />
|
||||
<div class="small">
|
||||
<asp:Label runat="server" ID="txtTCAssMs" Text='<%# SteamWare.TempiCiclo.minSec(Eval("TCAssegnato")) %>' />
|
||||
(m:s)
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="PzPallet" SortExpression="PzPallet">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" ID="txtPzPallet" Text='<%# Eval("PzPallet") %>' />
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
</EditItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Data" SortExpression="DueDate">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" ID="txtDataInizio" Text='<%# Eval("DueDate") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Attiva" SortExpression="Attivabile">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" ID="txtAttivabile" Text='<%# Eval("Attivabile") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton runat="server" ID="lbtDel" CommandArgument='<%# Eval("IdxPromessa") %>' OnClientClick="return confirm('Sicuro di voler procedere con eliminazione?');" OnClick="lbtDel_Click" ToolTip='<%# traduci("Delete") %>' Visible='<%# Eval("IdxODL").ToString()=="" || Eval("IdxODL").ToString()=="0" %>' CssClass="btn btn-sm btn-danger"><i class="fa fa-trash"></i></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByMaccArt" TypeName="MapoDb.DS_ProdTempiTableAdapters.PromesseODLTableAdapter" OnInserting="recuperaFooter" FilterExpression="CodArticolo LIKE '%{0}%' OR DescArticolo LIKE '%{0}%' " OnInserted="ods_Updated" OnUpdated="ods_Updated" DeleteMethod="deleteQuery" OnDeleted="ods_Updated" UpdateMethod="updateQta">
|
||||
<FilterParameters>
|
||||
<asp:SessionParameter DefaultValue="*" Name="ricerca" SessionField="valoreCercato" />
|
||||
</FilterParameters>
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="Original_idxPromessa" Type="Int32" />
|
||||
</DeleteParameters>
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="lblIdxMacc" Name="IdxMacchina" PropertyName="Text" Type="String" />
|
||||
<asp:ControlParameter ControlID="lblCodArt" Name="CodArticolo" PropertyName="Text" Type="String" />
|
||||
<asp:ControlParameter ControlID="chkUnassigned" Name="onlyFree" PropertyName="Checked" Type="Boolean" />
|
||||
</SelectParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="NumPezzi" Type="Int32" />
|
||||
<asp:Parameter Name="PzPallet" Type="Int32" />
|
||||
<asp:Parameter Name="Original_idxPromessa" Type="Int32" />
|
||||
</UpdateParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<div class="row">
|
||||
<div class="col"></div>
|
||||
<div class="col text-center">
|
||||
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini" />
|
||||
<asp:Label ID="lblWarning" runat="server" Visible="false" CssClass="erroreMid" />
|
||||
</div>
|
||||
<div class="col text-right">
|
||||
mostra:
|
||||
<asp:TextBox runat="server" ID="txtPageSize" Text="10" Width="2em" OnTextChanged="txtPageSize_TextChanged" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,586 @@
|
||||
using MapoDb;
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace MoonProAdmin.WebUserControls
|
||||
{
|
||||
public partial class mod_gestPromODL : System.Web.UI.UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// Evento selezione filtro
|
||||
/// </summary>
|
||||
public event EventHandler eh_selFilt;
|
||||
/// <summary>
|
||||
/// Determina se sia solo readonly il controllo...
|
||||
/// </summary>
|
||||
public bool readOnly;
|
||||
|
||||
/// <summary>
|
||||
/// dimensione pagina
|
||||
/// </summary>
|
||||
public int pageSize
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 10;
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(txtPageSize.Text);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
txtPageSize.Text = value.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
#region area da NON modificare
|
||||
|
||||
#region area protected
|
||||
|
||||
protected string _idxGridView;
|
||||
|
||||
/// <summary>
|
||||
/// reset della selezione
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnReset_Click(object sender, EventArgs e)
|
||||
{
|
||||
resetSelezione();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// salvo comando
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lbt_Command(object sender, CommandEventArgs e)
|
||||
{
|
||||
SteamWare.memLayer.ML.setSessionVal("nextObjCommand", ((LinkButton)sender).CommandArgument);
|
||||
}
|
||||
/// <summary>
|
||||
/// gestione cambio selezione valore
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// salvo in session il valore selezionato...
|
||||
memLayer.ML.setSessionVal(string.Format("{0}_sel", _idxGridView), grView.SelectedValue, false);
|
||||
bool doClone = false;
|
||||
bool doEdit = false;
|
||||
// gestione buttons richieste
|
||||
string _comando = "";
|
||||
if (memLayer.ML.isInSessionObject("nextObjCommand"))
|
||||
{
|
||||
_comando = memLayer.ML.StringSessionObj("nextObjCommand");
|
||||
memLayer.ML.emptySessionVal("nextObjCommand");
|
||||
}
|
||||
switch (_comando)
|
||||
{
|
||||
case "Clona":
|
||||
doClone = true;
|
||||
break;
|
||||
case "Edit":
|
||||
doEdit = true;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
if (doClone)
|
||||
{
|
||||
memLayer.ML.setSessionVal("idxProm2Clone", grView.SelectedValue, false);
|
||||
showAddNewPODL();
|
||||
mod_newPromessaODL.doSelPODL();
|
||||
}
|
||||
else if (doEdit)
|
||||
{
|
||||
memLayer.ML.setSessionVal("idxProm2Edit", grView.SelectedValue, false);
|
||||
showAddNewPODL();
|
||||
mod_newPromessaODL.doSelPODL();
|
||||
}
|
||||
else
|
||||
{
|
||||
// mostro edit quantità...
|
||||
divEditQta.Visible = true;
|
||||
lbtNewPODL.Visible = true;
|
||||
mod_newPromessaODL.Visible = false;
|
||||
var riga = DataLayer.obj.taPODL.getByKey(idxPOdlSel)[0];
|
||||
numPz = riga.NumPezzi;
|
||||
pzPallet = riga.PzPallet;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// traduce gli header delle colonne
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void grView_DataBound(object sender, EventArgs e)
|
||||
{
|
||||
if (grView.Rows.Count > 0)
|
||||
{
|
||||
LinkButton lb;
|
||||
// aggiorno gli headers
|
||||
foreach (TableCell cella in grView.HeaderRow.Cells)
|
||||
{
|
||||
try
|
||||
{
|
||||
lb = (LinkButton)cella.Controls[0];
|
||||
lb.Text = traduci(lb.Text);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1);
|
||||
lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord);
|
||||
}
|
||||
else
|
||||
{
|
||||
lblNumRec.Text = "";
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// recupera i dati di un nuovo record contenuti nel footer di un gridView;
|
||||
/// questi devono esses opportunamente nominati (es: txt{0}, dl{0}, ...)
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void recuperaFooter(object sender, ObjectDataSourceMethodEventArgs e)
|
||||
{
|
||||
//recupero la riga footer...
|
||||
DataColumnCollection colonne = colonneObj();
|
||||
string nomeCol;
|
||||
string tipoColonna = "";
|
||||
foreach (DataColumn colonna in colonne)
|
||||
{
|
||||
nomeCol = colonna.ColumnName;
|
||||
// cerco un textbox o quello che sia...
|
||||
if (grView.FooterRow.FindControl(string.Format("txt{0}", nomeCol)) != null)
|
||||
{
|
||||
tipoColonna = "textBox";
|
||||
}
|
||||
else if (grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol)) != null)
|
||||
{
|
||||
tipoColonna = "dropDownList";
|
||||
}
|
||||
else if (grView.FooterRow.FindControl(string.Format("chk{0}", nomeCol)) != null)
|
||||
{
|
||||
tipoColonna = "checkBox";
|
||||
}
|
||||
else if (grView.FooterRow.FindControl(string.Format("selAjax_{0}", nomeCol)) != null)
|
||||
{
|
||||
tipoColonna = "selAjax";
|
||||
}
|
||||
// in base al tipo salvo negli inputparameters dell'ODS
|
||||
switch (tipoColonna)
|
||||
{
|
||||
case "textBox":
|
||||
e.InputParameters[nomeCol] = ((TextBox)grView.FooterRow.FindControl(string.Format("txt{0}", nomeCol))).Text;
|
||||
break;
|
||||
case "dropDownList":
|
||||
e.InputParameters[nomeCol] = ((DropDownList)grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol))).SelectedValue;
|
||||
break;
|
||||
case "checkBox":
|
||||
e.InputParameters[nomeCol] = ((CheckBox)grView.FooterRow.FindControl(string.Format("chk{0}", nomeCol))).Checked;
|
||||
break;
|
||||
//case "selAjax":
|
||||
// e.InputParameters[nomeCol] = ((mod_selettore_ajax)grView.FooterRow.FindControl(string.Format("selAjax_{0}", nomeCol))).valore;
|
||||
// break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
tipoColonna = "";
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// svuoto da cache post update
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ods_Updated(object sender, ObjectDataSourceStatusEventArgs e)
|
||||
{
|
||||
// evento come nuovo...
|
||||
if (eh_nuovoValore != null)
|
||||
{
|
||||
eh_nuovoValore(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region are public
|
||||
|
||||
/// <summary>
|
||||
/// effettua traduzione del lemma
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduci(string lemma)
|
||||
{
|
||||
return user_std.UtSn.Traduci(lemma);
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua traduzione in inglese del lemma
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduciEn(string lemma)
|
||||
{
|
||||
return user_std.UtSn.TraduciEn(lemma);
|
||||
}
|
||||
/// <summary>
|
||||
/// resetta la selezione dei valori in caso di modifiche su altri controlli
|
||||
/// </summary>
|
||||
public void resetSelezione()
|
||||
{
|
||||
SteamWare.memLayer.ML.emptySessionVal(string.Format("{0}_sel", _idxGridView));
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
divEditQta.Visible = false;
|
||||
mod_newPromessaODL.Visible = false;
|
||||
lbtNewPODL.Visible = true;
|
||||
lblWarning.Visible = false;
|
||||
if (eh_resetSelezione != null)
|
||||
{
|
||||
eh_resetSelezione(this, new EventArgs());
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
#region gestione eventi
|
||||
|
||||
public event EventHandler eh_resetSelezione;
|
||||
public event EventHandler eh_nuovoValore;
|
||||
|
||||
#endregion
|
||||
|
||||
#region area da modificare
|
||||
|
||||
protected override void OnLoad(EventArgs e)
|
||||
{
|
||||
base.OnLoad(e);
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
mod_newPromessaODL.Visible = false;
|
||||
grView.PageSize = pageSize;
|
||||
}
|
||||
mod_newPromessaODL.eh_nuovoValore += new EventHandler(mod_newOdl1_eh_nuovoValore);
|
||||
}
|
||||
|
||||
/// inizializzazione valori di default
|
||||
/// </summary>
|
||||
/// <param name="e"></param>
|
||||
protected override void OnInit(EventArgs e)
|
||||
{
|
||||
base.OnInit(e);
|
||||
_idxGridView = "IdxODL";
|
||||
}
|
||||
/// <summary>
|
||||
/// nuovo valore creato...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void mod_newOdl1_eh_nuovoValore(object sender, EventArgs e)
|
||||
{
|
||||
// nascondo controllo e mostro button
|
||||
mod_newPromessaODL.Visible = false;
|
||||
lbtNewPODL.Visible = true;
|
||||
// aggiorno!
|
||||
resetSelezione();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// elenco colonne del datagrid
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
protected DataColumnCollection colonneObj()
|
||||
{
|
||||
MapoDb.DS_ProdTempi.ODLDataTable tabella = new MapoDb.DS_ProdTempi.ODLDataTable();
|
||||
DataColumnCollection colonne = tabella.Columns;
|
||||
return colonne;
|
||||
}
|
||||
public bool delEnabled(object _idxOdl)
|
||||
{
|
||||
bool answ = false;
|
||||
int idxOdl = 0;
|
||||
// controllo non sia già stata iniziata la produzione sennò non posso cancellare...
|
||||
try
|
||||
{
|
||||
idxOdl = Convert.ToInt32(_idxOdl);
|
||||
answ = (MapoDb.DataLayer.obj.taODL.getByIdx(idxOdl, true).Count > 0);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// mostra creazione nuovo ODL
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lbtNewPODL_Click(object sender, EventArgs e)
|
||||
{
|
||||
showAddNewPODL();
|
||||
}
|
||||
|
||||
private void showAddNewPODL()
|
||||
{
|
||||
// mostro controllo creazione ODL
|
||||
mod_newPromessaODL.Visible = true;
|
||||
divEditQta.Visible = false;
|
||||
lbtNewPODL.Visible = false;
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// formatot url x stampa ODL
|
||||
/// </summary>
|
||||
/// <param name="idx"></param>
|
||||
/// <returns></returns>
|
||||
public string formattaUrlOdl(object idx)
|
||||
{
|
||||
string answ = String.Format(memLayer.ML.CRS("exportFormat1"), Convert.ToInt32(reportRichiesto.SchedaODL), idx);
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// cambio dim pagina
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void txtPageSize_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
grView.PageSize = pageSize;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// elimina commento
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lbtDel_Click(object sender, EventArgs e)
|
||||
{
|
||||
LinkButton imgBtn = (LinkButton)sender;
|
||||
int IdxProm = 0;
|
||||
int.TryParse(imgBtn.CommandArgument, out IdxProm);
|
||||
DataLayer.obj.taPODL.deleteQuery(IdxProm);
|
||||
doUpdate();
|
||||
}
|
||||
|
||||
private void doUpdate()
|
||||
{
|
||||
grView.DataBind();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
protected void btnOk_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (idxPOdlSel > 0)
|
||||
{
|
||||
DataLayer.obj.taPODL.updateQta(numPz, pzPallet, idxPOdlSel);
|
||||
}
|
||||
updateCtrl();
|
||||
}
|
||||
|
||||
private void updateCtrl()
|
||||
{
|
||||
divEditQta.Visible = false;
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// idxOdl selezionato
|
||||
/// </summary>
|
||||
protected int idxPOdlSel
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(grView.SelectedValue);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Nuovo num pz
|
||||
/// </summary>
|
||||
protected int numPz
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(txtNewQta.Text.Trim());
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
txtNewQta.Text = value.ToString();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Nuovo num pz per pallet
|
||||
/// </summary>
|
||||
protected int pzPallet
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 1;
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(txtNewPzPallet.Text.Trim());
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// controllo sia > 0...
|
||||
if (answ < 1)
|
||||
{
|
||||
answ = 1;
|
||||
}
|
||||
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
txtNewPzPallet.Text = value.ToString();
|
||||
}
|
||||
}
|
||||
protected void btnCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
updateCtrl();
|
||||
}
|
||||
|
||||
protected void chkUnassigned_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
updateGrView();
|
||||
}
|
||||
/// <summary>
|
||||
/// Aggiorno Gridview
|
||||
/// </summary>
|
||||
private void updateGrView()
|
||||
{
|
||||
grView.DataBind();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// IdxMacchina filtrata
|
||||
/// </summary>
|
||||
protected string idxMacc
|
||||
{
|
||||
get
|
||||
{
|
||||
return lblIdxMacc.Text;
|
||||
}
|
||||
set
|
||||
{
|
||||
lblIdxMacc.Text = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Nome filtrata
|
||||
/// </summary>
|
||||
protected string NomeMacc
|
||||
{
|
||||
get
|
||||
{
|
||||
return lblNomeMacc.Text;
|
||||
}
|
||||
set
|
||||
{
|
||||
lblNomeMacc.Text = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// CodArt filtrato
|
||||
/// </summary>
|
||||
protected string CodArt
|
||||
{
|
||||
get
|
||||
{
|
||||
return lblCodArt.Text;
|
||||
}
|
||||
set
|
||||
{
|
||||
lblCodArt.Text = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// CodArt filtrato
|
||||
/// </summary>
|
||||
protected string DescArt
|
||||
{
|
||||
get
|
||||
{
|
||||
return lblDescArt.Text;
|
||||
}
|
||||
set
|
||||
{
|
||||
lblDescArt.Text = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Selezionato un condominio --> riporto selezione
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lbtSelArt_Click(object sender, EventArgs e)
|
||||
{
|
||||
LinkButton lb = (LinkButton)sender;
|
||||
// imposto articolo, splittando
|
||||
string[] artData = lb.CommandArgument.Split('|');
|
||||
CodArt = artData[0];
|
||||
DescArt = artData[1];
|
||||
updateGrView();
|
||||
}
|
||||
/// <summary>
|
||||
/// Selezionato un condominio --> riporto selezione
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lbtSelMacc_Click(object sender, EventArgs e)
|
||||
{
|
||||
LinkButton lb = (LinkButton)sender;
|
||||
// imposto articolo, splittando
|
||||
string[] maccData = lb.CommandArgument.Split('|');
|
||||
idxMacc = maccData[0];
|
||||
NomeMacc = maccData[1];
|
||||
updateGrView();
|
||||
}
|
||||
|
||||
protected void lbtResArt_Click(object sender, EventArgs e)
|
||||
{
|
||||
CodArt = "";
|
||||
DescArt = "";
|
||||
updateGrView();
|
||||
}
|
||||
|
||||
protected void lbtResMacc_Click(object sender, EventArgs e)
|
||||
{
|
||||
idxMacc = "";
|
||||
NomeMacc = "";
|
||||
updateGrView();
|
||||
}
|
||||
}
|
||||
}
|
||||
+195
@@ -0,0 +1,195 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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_gestPromODL {
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtResArt.
|
||||
/// </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.LinkButton lbtResArt;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblCodArt.
|
||||
/// </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 lblCodArt;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblDescArt.
|
||||
/// </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 lblDescArt;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtResMacc.
|
||||
/// </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.LinkButton lbtResMacc;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblNomeMacc.
|
||||
/// </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 lblNomeMacc;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblIdxMacc.
|
||||
/// </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 lblIdxMacc;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo chkUnassigned.
|
||||
/// </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.CheckBox chkUnassigned;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblUnass.
|
||||
/// </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 lblUnass;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtNewPODL.
|
||||
/// </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.LinkButton lbtNewPODL;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_newPromessaODL.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::MoonProAdmin.WebUserControls.mod_newPromessaODL mod_newPromessaODL;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo divEditQta.
|
||||
/// </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.HtmlGenericControl divEditQta;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtOk.
|
||||
/// </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.LinkButton lbtOk;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo txtNewQta.
|
||||
/// </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.TextBox txtNewQta;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo txtNewPzPallet.
|
||||
/// </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.TextBox txtNewPzPallet;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtCancel.
|
||||
/// </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.LinkButton lbtCancel;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo grView.
|
||||
/// </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.GridView grView;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo ods.
|
||||
/// </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.ObjectDataSource ods;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblNumRec.
|
||||
/// </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 lblNumRec;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblWarning.
|
||||
/// </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 lblWarning;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo txtPageSize.
|
||||
/// </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.TextBox txtPageSize;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,127 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_gestioneDatiMacchine.ascx.cs"
|
||||
Inherits="MoonPro_site.WebUserControls.mod_gestioneDatiMacchine" %>
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
|
||||
OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
|
||||
DataKeyNames="IdxMacchina" DataSourceID="ods">
|
||||
<RowStyle CssClass="ctrRowStyle" />
|
||||
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
|
||||
<EditRowStyle CssClass="ctrEditRowStyle" />
|
||||
<SelectedRowStyle CssClass="ctrSelRowStyle" />
|
||||
<FooterStyle CssClass="ctrFooter" />
|
||||
<PagerStyle CssClass="active GridPager" />
|
||||
<PagerSettings Mode="NumericFirstLast" />
|
||||
<HeaderStyle CssClass="ctrHeaderPager" ForeColor="White" Font-Bold="True" />
|
||||
<EmptyDataRowStyle CssClass="ctrRowStyle" />
|
||||
<EmptyDataTemplate>
|
||||
<asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("noRecord") %>' />
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center">
|
||||
<HeaderTemplate>
|
||||
<asp:Button ID="btnReset" runat="server" Text='<%# traduci("Reset") %>' OnClick="btnReset_Click"
|
||||
Visible="true" />
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select"
|
||||
ToolTip='<%# traduci("Select") %>' ImageUrl="~/images/view_m.png" />
|
||||
|
||||
<asp:ImageButton ID="imgEdit" runat="server" CausesValidation="False" CommandName="Edit"
|
||||
Visible='<%# isWritable() %>' ToolTip='<%# traduci("Edit") %>' ImageUrl="~/images/edit_m.png" />
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:ImageButton ID="imgUpdate" runat="server" CausesValidation="False" CommandName="Update"
|
||||
ToolTip='<%# traduci("Update")%>' ImageUrl="~/images/apply_m.png" />
|
||||
<asp:ImageButton ID="imgCancel" runat="server" CausesValidation="False" CommandName="Cancel"
|
||||
ToolTip='<%# traduci("Cancel") %>' ImageUrl="~/images/cancel_m.png" />
|
||||
</EditItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="idxMacchina" SortExpression="idxMacchina">
|
||||
<ItemTemplate>
|
||||
<b>
|
||||
<asp:Label runat="server" ID="txtidxMacchina" Text='<%# Eval("idxMacchina") %>' /></b>
|
||||
<br />
|
||||
<asp:Label runat="server" ID="txtDescFull" Text='<%# Eval("DescFull") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="palletChange" SortExpression="palletChange">
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox runat="server" ID="chkpalletChange" Checked='<%# Eval("palletChange") %>'
|
||||
Enabled="false" />
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:CheckBox runat="server" ID="chkpalletChange" Checked='<%# Bind("palletChange") %>' />
|
||||
</EditItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="CodArticolo_A" SortExpression="CodArticolo_A">
|
||||
<ItemTemplate>
|
||||
<b>
|
||||
<asp:Label runat="server" ID="txtArticolo_A" Text='<%# Eval("CodArticolo_A") %>' />
|
||||
</b>
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox runat="server" ID="txtArticolo_A" Text='<%# Bind("CodArticolo_A") %>' />
|
||||
<asp:AutoCompleteExtender ID="txtArticolo_A_AutoCompleteExtender" runat="server" TargetControlID="txtArticolo_A"
|
||||
ServicePath="~/WS/AutoCompletamento.asmx" ServiceMethod="elencoArticoli" EnableCaching="true"
|
||||
MinimumPrefixLength="1" Enabled="True" />
|
||||
</EditItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="CodArticolo_B" SortExpression="CodArticolo_B">
|
||||
<ItemTemplate>
|
||||
<b>
|
||||
<asp:Label runat="server" ID="txtArticolo_B" Text='<%# Eval("CodArticolo_B") %>' />
|
||||
</b>
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox runat="server" ID="txtArticolo_B" Text='<%# Bind("CodArticolo_B") %>' />
|
||||
<asp:AutoCompleteExtender ID="aceArticolo_B" runat="server" TargetControlID="txtArticolo_B"
|
||||
EnableCaching="true" MinimumPrefixLength="1" ServicePath="~/WS/AutoCompletamento.asmx"
|
||||
ServiceMethod="elencoArticoli" />
|
||||
</EditItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="serialPort" SortExpression="serialPort">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" ID="txtserialPort" Text='<%# Eval("serialPort") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="refreshPeriod" SortExpression="refreshPeriod">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" ID="txtrefreshPeriod" Text='<%# Eval("refreshPeriod") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgDelete" runat="server" CausesValidation="False" CommandName="Delete"
|
||||
CommandArgument='<%# Eval("idxMacchina") %>' ToolTip='<%# traduci("Delete") %>'
|
||||
Visible='<%# delEnabled(Eval("idxMacchina")) %>' ImageUrl="~/images/elimina_m.png" />
|
||||
<asp:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" ConfirmText='<%# traduci("confermaDel")%>'
|
||||
TargetControlID="imgDelete"></asp:ConfirmButtonExtender>
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:ImageButton ID="imgUpdate2" runat="server" CausesValidation="False" CommandName="Update"
|
||||
ToolTip='<%# traduci("Update")%>' ImageUrl="~/images/apply_m.png" />
|
||||
<asp:ImageButton ID="imgCancel2" runat="server" CausesValidation="False" CommandName="Cancel"
|
||||
ToolTip='<%# traduci("Cancel") %>' ImageUrl="~/images/cancel_m.png" />
|
||||
</EditItemTemplate>
|
||||
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini" />
|
||||
<asp:Label ID="lblWarning" runat="server" Visible="false" CssClass="erroreMid" />
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}"
|
||||
SelectMethod="GetData" TypeName="MapoDb.DS_ProdTempiTableAdapters.DatiMacchineTableAdapter"
|
||||
OnInserting="recuperaFooter" FilterExpression="CodArticolo_A LIKE '%{0}%' OR CodArticolo_B LIKE '%{0}%' OR serialPort LIKE '%{0}%'"
|
||||
OnInserted="ods_Updated" OnUpdated="ods_Updated" OnDeleted="ods_Updated" UpdateMethod="updateQry">
|
||||
<FilterParameters>
|
||||
<asp:SessionParameter DefaultValue="*" Name="ricerca" SessionField="valoreCercato" />
|
||||
</FilterParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="Original_idxMacchina" Type="Int32" />
|
||||
<asp:Parameter Name="palletChange" Type="Boolean" />
|
||||
<asp:Parameter Name="CodArticolo_A" Type="String" />
|
||||
<asp:Parameter Name="CodArticolo_B" Type="String" />
|
||||
</UpdateParameters>
|
||||
</asp:ObjectDataSource>
|
||||
@@ -0,0 +1,239 @@
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace MoonPro_site.WebUserControls
|
||||
{
|
||||
public partial class mod_gestioneDatiMacchine : System.Web.UI.UserControl
|
||||
{
|
||||
|
||||
#region area da NON modificare
|
||||
|
||||
#region area protected
|
||||
|
||||
protected string _idxGridView;
|
||||
|
||||
/// <summary>
|
||||
/// reset della selezione
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnReset_Click(object sender, EventArgs e)
|
||||
{
|
||||
resetSelezione();
|
||||
}
|
||||
/// <summary>
|
||||
/// gestione cambio selezione valore
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// salvo in session il valore selezionato...
|
||||
SteamWare.memLayer.ML.setSessionVal(string.Format("{0}_sel", _idxGridView), grView.SelectedValue, false);
|
||||
// sollevo evento nuovo valore...
|
||||
if (eh_selValore != null)
|
||||
{
|
||||
eh_selValore(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// traduce gli header delle colonne
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void grView_DataBound(object sender, EventArgs e)
|
||||
{
|
||||
if (grView.Rows.Count > 0)
|
||||
{
|
||||
LinkButton lb;
|
||||
// aggiorno gli headers
|
||||
foreach (TableCell cella in grView.HeaderRow.Cells)
|
||||
{
|
||||
try
|
||||
{
|
||||
lb = (LinkButton)cella.Controls[0];
|
||||
lb.Text = traduci(lb.Text);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1);
|
||||
lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord);
|
||||
}
|
||||
else
|
||||
{
|
||||
lblNumRec.Text = "";
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// recupera i dati di un nuovo record contenuti nel footer di un gridView;
|
||||
/// questi devono esses opportunamente nominati (es: txt{0}, dl{0}, ...)
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void recuperaFooter(object sender, ObjectDataSourceMethodEventArgs e)
|
||||
{
|
||||
//recupero la riga footer...
|
||||
DataColumnCollection colonne = colonneObj();
|
||||
string nomeCol;
|
||||
string tipoColonna = "";
|
||||
foreach (DataColumn colonna in colonne)
|
||||
{
|
||||
nomeCol = colonna.ColumnName;
|
||||
// cerco un textbox o quello che sia...
|
||||
if (grView.FooterRow.FindControl(string.Format("txt{0}", nomeCol)) != null)
|
||||
{
|
||||
tipoColonna = "textBox";
|
||||
}
|
||||
else if (grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol)) != null)
|
||||
{
|
||||
tipoColonna = "dropDownList";
|
||||
}
|
||||
else if (grView.FooterRow.FindControl(string.Format("chk{0}", nomeCol)) != null)
|
||||
{
|
||||
tipoColonna = "checkBox";
|
||||
}
|
||||
else if (grView.FooterRow.FindControl(string.Format("selAjax_{0}", nomeCol)) != null)
|
||||
{
|
||||
tipoColonna = "selAjax";
|
||||
}
|
||||
// in base al tipo salvo negli inputparameters dell'ODS
|
||||
switch (tipoColonna)
|
||||
{
|
||||
case "textBox":
|
||||
e.InputParameters[nomeCol] = ((TextBox)grView.FooterRow.FindControl(string.Format("txt{0}", nomeCol))).Text;
|
||||
break;
|
||||
case "dropDownList":
|
||||
e.InputParameters[nomeCol] = ((DropDownList)grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol))).SelectedValue;
|
||||
break;
|
||||
case "checkBox":
|
||||
e.InputParameters[nomeCol] = ((CheckBox)grView.FooterRow.FindControl(string.Format("chk{0}", nomeCol))).Checked;
|
||||
break;
|
||||
//case "selAjax":
|
||||
// e.InputParameters[nomeCol] = ((mod_selettore_ajax)grView.FooterRow.FindControl(string.Format("selAjax_{0}", nomeCol))).valore;
|
||||
// break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
tipoColonna = "";
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// svuoto da cache post update
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ods_Updated(object sender, ObjectDataSourceStatusEventArgs e)
|
||||
{
|
||||
// evento come nuovo...
|
||||
if (eh_nuovoValore != null)
|
||||
{
|
||||
eh_nuovoValore(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region are public
|
||||
|
||||
/// <summary>
|
||||
/// effettua traduzione del lemma
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduci(string lemma)
|
||||
{
|
||||
return user_std.UtSn.Traduci(lemma);
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua traduzione in inglese del lemma
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduciEn(string lemma)
|
||||
{
|
||||
return user_std.UtSn.TraduciEn(lemma);
|
||||
}
|
||||
/// <summary>
|
||||
/// resetta la selezione dei valori in caso di modifiche su altri controlli
|
||||
/// </summary>
|
||||
public void resetSelezione()
|
||||
{
|
||||
SteamWare.memLayer.ML.emptySessionVal(string.Format("{0}_sel", _idxGridView));
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
lblWarning.Visible = false;
|
||||
if (eh_resetSelezione != null)
|
||||
{
|
||||
eh_resetSelezione(this, new EventArgs());
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
#region gestione eventi
|
||||
|
||||
public event EventHandler eh_resetSelezione;
|
||||
public event EventHandler eh_nuovoValore;
|
||||
public event EventHandler eh_selValore;
|
||||
|
||||
#endregion
|
||||
|
||||
#region area da modificare
|
||||
|
||||
protected override void OnLoad(EventArgs e)
|
||||
{
|
||||
base.OnLoad(e);
|
||||
}
|
||||
|
||||
/// inizializzazione valori di default
|
||||
/// </summary>
|
||||
/// <param name="e"></param>
|
||||
protected override void OnInit(EventArgs e)
|
||||
{
|
||||
base.OnInit(e);
|
||||
_idxGridView = "IdxMacchina";
|
||||
}
|
||||
/// <summary>
|
||||
/// nuovo valore creato...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void mod_newOdl1_eh_nuovoValore(object sender, EventArgs e)
|
||||
{
|
||||
// aggiorno!
|
||||
resetSelezione();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// elenco colonne del datagrid
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
protected DataColumnCollection colonneObj()
|
||||
{
|
||||
MapoDb.DS_ProdTempi.DatiMacchineDataTable tabella = new MapoDb.DS_ProdTempi.DatiMacchineDataTable();
|
||||
DataColumnCollection colonne = tabella.Columns;
|
||||
return colonne;
|
||||
}
|
||||
public bool delEnabled(object _idx)
|
||||
{
|
||||
bool answ = false;
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// definisce scrivibilità/editabilità del controllo
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public bool isWritable()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MoonPro_site.WebUserControls
|
||||
{
|
||||
|
||||
|
||||
public partial class mod_gestioneDatiMacchine {
|
||||
|
||||
/// <summary>
|
||||
/// grView control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.GridView grView;
|
||||
|
||||
/// <summary>
|
||||
/// lblNumRec control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblNumRec;
|
||||
|
||||
/// <summary>
|
||||
/// lblWarning control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblWarning;
|
||||
|
||||
/// <summary>
|
||||
/// ods control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource ods;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,189 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_gestioneODL.ascx.cs"
|
||||
Inherits="MoonPro_site.WebUserControls.mod_gestioneODL" %>
|
||||
<%@ Register Src="mod_newOdl.ascx" TagName="mod_newOdl" TagPrefix="uc1" %>
|
||||
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<div class="row">
|
||||
<div class="col-sm-2">
|
||||
<h4>Filtri attivi</h4>
|
||||
</div>
|
||||
<div class="col-sm-4 text-nowrap">
|
||||
<div class="input-group my-1 input-group-sm">
|
||||
<div class="input-group-prepend">
|
||||
<asp:LinkButton runat="server" ID="lbtResArt" CssClass="btn btn-outline-dark" OnClick="lbtResArt_Click"><i class="fa fa-refresh"></i> <b>Articolo</b></asp:LinkButton>
|
||||
<asp:Label runat="server" ID="lblCodArt" CssClass="input-group-text" />
|
||||
<asp:Label runat="server" ID="lblDescArt" CssClass="input-group-text text-truncate" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group my-1 input-group-sm">
|
||||
<div class="input-group-prepend">
|
||||
<asp:LinkButton runat="server" ID="lbtResMacc" CssClass="btn btn-outline-dark" OnClick="lbtResMacc_Click"><i class="fa fa-refresh"></i> <b>Macchina</b></asp:LinkButton>
|
||||
<asp:Label runat="server" ID="lblNomeMacc" CssClass="input-group-text" />
|
||||
<asp:Label runat="server" ID="lblIdxMacc" CssClass="input-group-text" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
</div>
|
||||
</div>
|
||||
<div class="bg-dark text-light" style="white-space: nowrap; padding: 2px;">
|
||||
<div class="row">
|
||||
<div class="col-4"></div>
|
||||
<div class="col-4">
|
||||
<asp:LinkButton ID="lbtNewODL" runat="server" OnClick="lbtNewODL_Click" CssClass="btn btn-block btn-primary text-light"><i class="fa fa-plus"></i> Nuovo ODL <i class="fa fa-list-ol"></i></asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-4"></div>
|
||||
</div>
|
||||
<uc1:mod_newOdl ID="mod_newOdl1" runat="server" />
|
||||
</div>
|
||||
<div id="divEditQta" runat="server" visible="false" class="ctrSelRowStyle" style="white-space: nowrap; padding: 2px;">
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
<asp:Button runat="server" ID="btnOk" Text="Ok" Width="10em" OnClick="btnOk_Click" />
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
Pezzi ODL:
|
||||
<asp:TextBox runat="server" ID="txtNewQta" Width="6em" />
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
Pezzi Pallet:
|
||||
<asp:TextBox runat="server" ID="txtNewPzPallet" Width="6em" />
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<asp:Button runat="server" ID="btnCancel" Text="Annulla" Width="10em" OnClick="btnCancel_Click" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
|
||||
OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound" PageSize="25"
|
||||
DataKeyNames="IdxODL" DataSourceID="ods" Width="100%">
|
||||
<RowStyle CssClass="ctrRowStyle" />
|
||||
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
|
||||
<EditRowStyle CssClass="ctrEditRowStyle" />
|
||||
<SelectedRowStyle CssClass="ctrSelRowStyle" />
|
||||
<FooterStyle CssClass="ctrFooter" />
|
||||
<PagerStyle CssClass="active GridPager" />
|
||||
<PagerSettings Mode="NumericFirstLast" />
|
||||
<HeaderStyle CssClass="ctrHeaderPager" ForeColor="White" Font-Bold="True" />
|
||||
<EmptyDataRowStyle CssClass="ctrRowStyle" />
|
||||
<EmptyDataTemplate>
|
||||
<asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("noRecord") %>' />
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center">
|
||||
<HeaderTemplate>
|
||||
<asp:Button ID="btnReset" runat="server" Text='<%# traduci("Reset") %>' OnClick="btnReset_Click" CausesValidation="false" Visible="true" />
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<span style="padding-right: 2px;">
|
||||
<asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="False" CommandName="Select"
|
||||
ToolTip="Modifica num pz" ImageUrl="~/images/edit_s.png" Visible='<%# OdlIsCurrent(Eval("DataInizio"),Eval("DataFine")) %>' />
|
||||
</span>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="ODL" SortExpression="IdxOdl">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" ID="txtIdxOdl" Text='<%# Eval("IdxOdl") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="CodArticolo" SortExpression="CodArticolo">
|
||||
<ItemTemplate>
|
||||
<div style="float: left;">
|
||||
<asp:LinkButton runat="server" ID="lbtSelArt" OnClick="lbtSelArt_Click" CausesValidation="False" CommandArgument='<%# Eval("CodArticolo")+"|"+Eval("DescArticolo") %>' CssClass="btn btn-sm btn-outline-dark p-1">
|
||||
<i class="fa fa-search"></i>
|
||||
<b><%# Eval("CodArticolo") %></b>
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div style="float: right; font-size: 0.8em;">
|
||||
<asp:Label runat="server" ID="Label1" Text='<%# Eval("CommessaAs400") %>' />
|
||||
</div>
|
||||
<div style="float: none; clear: both;">
|
||||
<asp:Label runat="server" ID="txtDescArticolo" Text='<%# Eval("DescArticolo") %>' />
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="codMacchina" SortExpression="CodMacchina">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton runat="server" ID="lbtSelMacc" OnClick="lbtSelMacc_Click" CausesValidation="False" CommandArgument='<%# Eval("IdxMacchina")+"|"+Eval("Nome") %>' CssClass="btn btn-sm btn-outline-dark p-1 btn-block">
|
||||
<i class="fa fa-search"></i>
|
||||
<b><%# Eval("Nome") %></b>
|
||||
<div><%# Eval("CodMacchina") %></div>
|
||||
</asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="NumPezzi" SortExpression="NumPezzi">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" ID="txtNumPezzi" Text='<%# Eval("NumPezzi") %>' />
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:Label runat="server" ID="txtNumPezzi" Text='<%# Bind("NumPezzi") %>' />
|
||||
</EditItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="TCAssegnato" SortExpression="TCAssegnato">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" ID="txtTCAssegnato" Text='<%# Eval("TCAssegnato","{0:0.000}") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="PzPallet" SortExpression="PzPallet">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" ID="txtPzPallet" Text='<%# Eval("PzPallet") %>' />
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<%--<asp:Label runat="server" ID="txtPzPallet" Text='<%# Bind("PzPallet") %>' />--%>
|
||||
</EditItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="DataInizio" SortExpression="DataInizio">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" ID="txtDataInizio" Text='<%# Eval("DataInizio") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="DataFine" SortExpression="DataFine">
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" ID="txtDataFine" Text='<%# Eval("DataFine") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgDelete" runat="server" CausesValidation="False" CommandName="Delete" OnClientClick="return confirm('Sicuro di voler procedere con eliminazione?');"
|
||||
CommandArgument='<%# Eval("IdxODL") %>' ToolTip='<%# traduci("Delete") %>' Visible='<%# delEnabled(Eval("IdxODL")) %>'
|
||||
ImageUrl="~/images/elimina_m.png" />
|
||||
</ItemTemplate>
|
||||
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByMacchinaArticolo" TypeName="MapoDb.DS_ProdTempiTableAdapters.ODLTableAdapter" OnInserting="recuperaFooter" FilterExpression="CodArticolo LIKE '%{0}%'" OnInserted="ods_Updated" OnUpdated="ods_Updated" DeleteMethod="DeleteQuery" OnDeleted="ods_Updated">
|
||||
<FilterParameters>
|
||||
<asp:SessionParameter DefaultValue="*" Name="ricerca" SessionField="valoreCercato" />
|
||||
</FilterParameters>
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="Original_IdxODL" Type="Int32" />
|
||||
</DeleteParameters>
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="lblCodArt" Name="CodArticolo" PropertyName="Text" Type="String" />
|
||||
<asp:ControlParameter ControlID="lblIdxMacc" Name="IdxMacchina" PropertyName="Text" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<div class="row">
|
||||
<div class="col"></div>
|
||||
<div class="col text-center">
|
||||
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini" />
|
||||
<asp:Label ID="lblWarning" runat="server" Visible="false" CssClass="erroreMid" />
|
||||
</div>
|
||||
<div class="col text-right">
|
||||
mostra:
|
||||
<asp:TextBox runat="server" ID="txtPageSize" Text="10" Width="2em" OnTextChanged="txtPageSize_TextChanged" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,543 @@
|
||||
using MapoDb;
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace MoonPro_site.WebUserControls
|
||||
{
|
||||
public partial class mod_gestioneODL : System.Web.UI.UserControl
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// dimensione pagina
|
||||
/// </summary>
|
||||
public int pageSize
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 10;
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(txtPageSize.Text);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
txtPageSize.Text = value.ToString();
|
||||
}
|
||||
}
|
||||
#region area da NON modificare
|
||||
|
||||
#region area protected
|
||||
|
||||
protected string _idxGridView;
|
||||
|
||||
/// <summary>
|
||||
/// reset della selezione
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnReset_Click(object sender, EventArgs e)
|
||||
{
|
||||
resetSelezione();
|
||||
}
|
||||
/// <summary>
|
||||
/// gestione cambio selezione valore
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// salvo in session il valore selezionato...
|
||||
SteamWare.memLayer.ML.setSessionVal(string.Format("{0}_sel", _idxGridView), grView.SelectedValue, false);
|
||||
// mostro edit quantità...
|
||||
divEditQta.Visible = true;
|
||||
lbtNewODL.Visible = enableCreateNew;
|
||||
mod_newOdl1.Visible = false;
|
||||
var riga = DataLayer.obj.taODL.getByIdx(idxOdlSel, false)[0];
|
||||
numPz = riga.NumPezzi;
|
||||
pzPallet = riga.PzPallet;
|
||||
}
|
||||
/// <summary>
|
||||
/// traduce gli header delle colonne
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void grView_DataBound(object sender, EventArgs e)
|
||||
{
|
||||
if (grView.Rows.Count > 0)
|
||||
{
|
||||
LinkButton lb;
|
||||
// aggiorno gli headers
|
||||
foreach (TableCell cella in grView.HeaderRow.Cells)
|
||||
{
|
||||
try
|
||||
{
|
||||
lb = (LinkButton)cella.Controls[0];
|
||||
lb.Text = traduci(lb.Text);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1);
|
||||
lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord);
|
||||
}
|
||||
else
|
||||
{
|
||||
lblNumRec.Text = "";
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// recupera i dati di un nuovo record contenuti nel footer di un gridView;
|
||||
/// questi devono esses opportunamente nominati (es: txt{0}, dl{0}, ...)
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void recuperaFooter(object sender, ObjectDataSourceMethodEventArgs e)
|
||||
{
|
||||
//recupero la riga footer...
|
||||
DataColumnCollection colonne = colonneObj();
|
||||
string nomeCol;
|
||||
string tipoColonna = "";
|
||||
foreach (DataColumn colonna in colonne)
|
||||
{
|
||||
nomeCol = colonna.ColumnName;
|
||||
// cerco un textbox o quello che sia...
|
||||
if (grView.FooterRow.FindControl(string.Format("txt{0}", nomeCol)) != null)
|
||||
{
|
||||
tipoColonna = "textBox";
|
||||
}
|
||||
else if (grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol)) != null)
|
||||
{
|
||||
tipoColonna = "dropDownList";
|
||||
}
|
||||
else if (grView.FooterRow.FindControl(string.Format("chk{0}", nomeCol)) != null)
|
||||
{
|
||||
tipoColonna = "checkBox";
|
||||
}
|
||||
else if (grView.FooterRow.FindControl(string.Format("selAjax_{0}", nomeCol)) != null)
|
||||
{
|
||||
tipoColonna = "selAjax";
|
||||
}
|
||||
// in base al tipo salvo negli inputparameters dell'ODS
|
||||
switch (tipoColonna)
|
||||
{
|
||||
case "textBox":
|
||||
e.InputParameters[nomeCol] = ((TextBox)grView.FooterRow.FindControl(string.Format("txt{0}", nomeCol))).Text;
|
||||
break;
|
||||
case "dropDownList":
|
||||
e.InputParameters[nomeCol] = ((DropDownList)grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol))).SelectedValue;
|
||||
break;
|
||||
case "checkBox":
|
||||
e.InputParameters[nomeCol] = ((CheckBox)grView.FooterRow.FindControl(string.Format("chk{0}", nomeCol))).Checked;
|
||||
break;
|
||||
//case "selAjax":
|
||||
// e.InputParameters[nomeCol] = ((mod_selettore_ajax)grView.FooterRow.FindControl(string.Format("selAjax_{0}", nomeCol))).valore;
|
||||
// break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
tipoColonna = "";
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// svuoto da cache post update
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ods_Updated(object sender, ObjectDataSourceStatusEventArgs e)
|
||||
{
|
||||
// evento come nuovo...
|
||||
if (eh_nuovoValore != null)
|
||||
{
|
||||
eh_nuovoValore(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region are public
|
||||
|
||||
/// <summary>
|
||||
/// effettua traduzione del lemma
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduci(string lemma)
|
||||
{
|
||||
return user_std.UtSn.Traduci(lemma);
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua traduzione in inglese del lemma
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduciEn(string lemma)
|
||||
{
|
||||
return user_std.UtSn.TraduciEn(lemma);
|
||||
}
|
||||
/// <summary>
|
||||
/// resetta la selezione dei valori in caso di modifiche su altri controlli
|
||||
/// </summary>
|
||||
public void resetSelezione()
|
||||
{
|
||||
SteamWare.memLayer.ML.emptySessionVal(string.Format("{0}_sel", _idxGridView));
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
divEditQta.Visible = false;
|
||||
mod_newOdl1.Visible = false;
|
||||
lbtNewODL.Visible = enableCreateNew;
|
||||
lblWarning.Visible = false;
|
||||
if (eh_resetSelezione != null)
|
||||
{
|
||||
eh_resetSelezione(this, new EventArgs());
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
#region gestione eventi
|
||||
|
||||
public event EventHandler eh_resetSelezione;
|
||||
public event EventHandler eh_nuovoValore;
|
||||
|
||||
#endregion
|
||||
|
||||
#region area da modificare
|
||||
|
||||
protected override void OnLoad(EventArgs e)
|
||||
{
|
||||
base.OnLoad(e);
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
mod_newOdl1.Visible = false;
|
||||
grView.PageSize = pageSize;
|
||||
lbtNewODL.Visible = enableCreateNew;
|
||||
}
|
||||
mod_newOdl1.eh_nuovoValore += new EventHandler(mod_newOdl1_eh_nuovoValore);
|
||||
}
|
||||
|
||||
public bool enableCreateNew
|
||||
{
|
||||
get
|
||||
{
|
||||
return !memLayer.ML.CRB("enableRPO");
|
||||
}
|
||||
}
|
||||
|
||||
/// inizializzazione valori di default
|
||||
/// </summary>
|
||||
/// <param name="e"></param>
|
||||
protected override void OnInit(EventArgs e)
|
||||
{
|
||||
base.OnInit(e);
|
||||
_idxGridView = "IdxODL";
|
||||
}
|
||||
/// <summary>
|
||||
/// nuovo valore creato...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void mod_newOdl1_eh_nuovoValore(object sender, EventArgs e)
|
||||
{
|
||||
// nascondo controllo e mostro button
|
||||
mod_newOdl1.Visible = false;
|
||||
lbtNewODL.Visible = enableCreateNew;
|
||||
// aggiorno!
|
||||
resetSelezione();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// elenco colonne del datagrid
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
protected DataColumnCollection colonneObj()
|
||||
{
|
||||
MapoDb.DS_ProdTempi.ODLDataTable tabella = new MapoDb.DS_ProdTempi.ODLDataTable();
|
||||
DataColumnCollection colonne = tabella.Columns;
|
||||
return colonne;
|
||||
}
|
||||
public bool delEnabled(object _idxOdl)
|
||||
{
|
||||
bool answ = false;
|
||||
int idxOdl = 0;
|
||||
// controllo non sia già stata iniziata la produzione sennò non posso cancellare...
|
||||
try
|
||||
{
|
||||
idxOdl = Convert.ToInt32(_idxOdl);
|
||||
answ = (MapoDb.DataLayer.obj.taODL.getByIdx(idxOdl, true).Count > 0);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// mostra creazione nuovo ODL
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lbtNewODL_Click(object sender, EventArgs e)
|
||||
{
|
||||
// mostro controllo creazione ODL
|
||||
mod_newOdl1.Visible = true;
|
||||
divEditQta.Visible = false;
|
||||
lbtNewODL.Visible = false;
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// formatot url x stampa ODL
|
||||
/// </summary>
|
||||
/// <param name="idx"></param>
|
||||
/// <returns></returns>
|
||||
public string formattaUrlOdl(object idx)
|
||||
{
|
||||
string answ = String.Format(memLayer.ML.CRS("exportFormat1"), Convert.ToInt32(reportRichiesto.SchedaODL), idx);
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// cambio dim pagina
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void txtPageSize_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
grView.PageSize = pageSize;
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica se ODL sia current = aperto (iniziato, NON concluso)
|
||||
/// </summary>
|
||||
/// <param name="DataInizio"></param>
|
||||
/// <param name="DataFine"></param>
|
||||
/// <returns></returns>
|
||||
public bool OdlIsCurrent(object DataInizio, object DataFine)
|
||||
{
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
if ((DataInizio.ToString() == "") && (DataFine.ToString() == ""))
|
||||
{
|
||||
answ = true;
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
if (!answ)
|
||||
{
|
||||
try
|
||||
{
|
||||
if ((Convert.ToDateTime(DataInizio) <= DateTime.Now) && (DataFine.ToString() == ""))
|
||||
{
|
||||
answ = true;
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
protected void btnOk_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (idxOdlSel > 0)
|
||||
{
|
||||
DataLayer.obj.taODL.updateQta(numPz, pzPallet, idxOdlSel);
|
||||
}
|
||||
updateCtrl();
|
||||
}
|
||||
|
||||
private void updateCtrl()
|
||||
{
|
||||
divEditQta.Visible = false;
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// idxOdl selezionato
|
||||
/// </summary>
|
||||
protected int idxOdlSel
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(grView.SelectedValue);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Nuovo num pz
|
||||
/// </summary>
|
||||
protected int numPz
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(txtNewQta.Text.Trim());
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
txtNewQta.Text = value.ToString();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Nuovo num pz per pallet
|
||||
/// </summary>
|
||||
protected int pzPallet
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 1;
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(txtNewPzPallet.Text.Trim());
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// controllo sia > 0...
|
||||
if (answ < 1)
|
||||
{
|
||||
answ = 1;
|
||||
}
|
||||
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
txtNewPzPallet.Text = value.ToString();
|
||||
}
|
||||
}
|
||||
protected void btnCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
updateCtrl();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Aggiorno Gridview
|
||||
/// </summary>
|
||||
private void updateGrView()
|
||||
{
|
||||
grView.DataBind();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// IdxMacchina filtrata
|
||||
/// </summary>
|
||||
protected string idxMacc
|
||||
{
|
||||
get
|
||||
{
|
||||
return lblIdxMacc.Text;
|
||||
}
|
||||
set
|
||||
{
|
||||
lblIdxMacc.Text = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Nome filtrata
|
||||
/// </summary>
|
||||
protected string NomeMacc
|
||||
{
|
||||
get
|
||||
{
|
||||
return lblNomeMacc.Text;
|
||||
}
|
||||
set
|
||||
{
|
||||
lblNomeMacc.Text = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// CodArt filtrato
|
||||
/// </summary>
|
||||
protected string CodArt
|
||||
{
|
||||
get
|
||||
{
|
||||
return lblCodArt.Text;
|
||||
}
|
||||
set
|
||||
{
|
||||
lblCodArt.Text = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// CodArt filtrato
|
||||
/// </summary>
|
||||
protected string DescArt
|
||||
{
|
||||
get
|
||||
{
|
||||
return lblDescArt.Text;
|
||||
}
|
||||
set
|
||||
{
|
||||
lblDescArt.Text = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Selezionato un condominio --> riporto selezione
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lbtSelArt_Click(object sender, EventArgs e)
|
||||
{
|
||||
LinkButton lb = (LinkButton)sender;
|
||||
// imposto articolo, splittando
|
||||
string[] artData = lb.CommandArgument.Split('|');
|
||||
CodArt = artData[0];
|
||||
DescArt = artData[1];
|
||||
updateGrView();
|
||||
}
|
||||
/// <summary>
|
||||
/// Selezionato un condominio --> riporto selezione
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lbtSelMacc_Click(object sender, EventArgs e)
|
||||
{
|
||||
LinkButton lb = (LinkButton)sender;
|
||||
// imposto articolo, splittando
|
||||
string[] maccData = lb.CommandArgument.Split('|');
|
||||
idxMacc = maccData[0];
|
||||
NomeMacc = maccData[1];
|
||||
updateGrView();
|
||||
}
|
||||
|
||||
protected void lbtResArt_Click(object sender, EventArgs e)
|
||||
{
|
||||
CodArt = "";
|
||||
DescArt = "";
|
||||
updateGrView();
|
||||
}
|
||||
|
||||
protected void lbtResMacc_Click(object sender, EventArgs e)
|
||||
{
|
||||
idxMacc = "";
|
||||
NomeMacc = "";
|
||||
updateGrView();
|
||||
}
|
||||
}
|
||||
}
|
||||
+177
@@ -0,0 +1,177 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 MoonPro_site.WebUserControls {
|
||||
|
||||
|
||||
public partial class mod_gestioneODL {
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtResArt.
|
||||
/// </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.LinkButton lbtResArt;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblCodArt.
|
||||
/// </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 lblCodArt;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblDescArt.
|
||||
/// </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 lblDescArt;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtResMacc.
|
||||
/// </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.LinkButton lbtResMacc;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblNomeMacc.
|
||||
/// </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 lblNomeMacc;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblIdxMacc.
|
||||
/// </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 lblIdxMacc;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtNewODL.
|
||||
/// </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.LinkButton lbtNewODL;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_newOdl1.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::MoonPro_site.WebUserControls.mod_newOdl mod_newOdl1;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo divEditQta.
|
||||
/// </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.HtmlGenericControl divEditQta;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo btnOk.
|
||||
/// </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.Button btnOk;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo txtNewQta.
|
||||
/// </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.TextBox txtNewQta;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo txtNewPzPallet.
|
||||
/// </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.TextBox txtNewPzPallet;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo btnCancel.
|
||||
/// </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.Button btnCancel;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo grView.
|
||||
/// </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.GridView grView;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo ods.
|
||||
/// </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.ObjectDataSource ods;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblNumRec.
|
||||
/// </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 lblNumRec;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblWarning.
|
||||
/// </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 lblWarning;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo txtPageSize.
|
||||
/// </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.TextBox txtPageSize;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" Inherits="mod_login" Codebehind="mod_login.ascx.cs" %>
|
||||
<asp:Panel ID="pnlForceUser" runat="server">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td class="chPwdTitle">
|
||||
<asp:Label runat="server" ID="lblTitolo" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table class="smallTable">
|
||||
<tr>
|
||||
<td>
|
||||
<asp:Label CssClass="chPwdTxt" runat="server" ID="lblPwd" />
|
||||
</td>
|
||||
<td>
|
||||
<asp:TextBox runat="server" ID="authKey" TextMode="Password" Width="210px" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<asp:Label CssClass="chPwdTxt" runat="server" ID="lblDominio" />
|
||||
</td>
|
||||
<td>
|
||||
<asp:TextBox runat="server" ID="dominio" Width="210px" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<asp:Label CssClass="chPwdTxt" runat="server" ID="lblUser" />
|
||||
</td>
|
||||
<td>
|
||||
<asp:TextBox runat="server" ID="user" Width="210px" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<asp:Button Width="100%" runat="server" ID="btnOk" CommandName="ok" CommandArgument="ok"
|
||||
OnClick="btnOk_Click"></asp:Button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</asp:Panel>
|
||||
<asp:Panel ID="pnlSelectUser" runat="server">
|
||||
<table class="smallTable">
|
||||
<tr>
|
||||
<td>
|
||||
<asp:DropDownList ID="ddlStdUser" runat="server">
|
||||
<asp:ListItem>DOMITBREMBO\WebGTD_R</asp:ListItem>
|
||||
<asp:ListItem>DOMITBREMBO\WebGTD_W</asp:ListItem>
|
||||
<asp:ListItem>DOMITBREMBO\WebGTD_X</asp:ListItem>
|
||||
<asp:ListItem>DOMITBREMBO\WebGTD_A</asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<asp:Button ID="btnOkUserStd" runat="server" Width="100%"
|
||||
onclick="btnOkUserStd_Click" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</asp:Panel>
|
||||
<table class="smallTable">
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<asp:Label CssClass="chPwdTxt" ID="lblMessage" runat="server" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center">
|
||||
<asp:HyperLink ID="HypLinkSSO" runat="server" NavigateUrl="~/login.aspx" Text="Single-Sign-On Login"></asp:HyperLink>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -0,0 +1,309 @@
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Web.UI;
|
||||
|
||||
/// <summary>
|
||||
/// classe gestione login e forzatura login
|
||||
/// </summary>
|
||||
public partial class mod_login : SteamWare.ApplicationUserControl
|
||||
{
|
||||
#region area protected/private
|
||||
|
||||
#region area proprietà
|
||||
|
||||
private SteamWare.loginMode _isForceUser = SteamWare.loginMode.normale;
|
||||
|
||||
#endregion
|
||||
|
||||
#region area metodi
|
||||
|
||||
/// <summary>
|
||||
/// imposta la modalità di login tra normale / forceUser
|
||||
/// </summary>
|
||||
private void setLoginMode()
|
||||
{
|
||||
switch (_isForceUser)
|
||||
{
|
||||
case SteamWare.loginMode.normale:
|
||||
pnlForceUser.Visible = false;
|
||||
pnlSelectUser.Visible = false;
|
||||
break;
|
||||
case SteamWare.loginMode.forceUser:
|
||||
pnlForceUser.Visible = true;
|
||||
pnlSelectUser.Visible = false;
|
||||
break;
|
||||
case SteamWare.loginMode.standardUser:
|
||||
pnlForceUser.Visible = false;
|
||||
pnlSelectUser.Visible = true;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
protected override void traduciObj()
|
||||
{
|
||||
lblPwd.Text = user_std.UtSn.Traduci("lblPwd");
|
||||
lblUser.Text = user_std.UtSn.Traduci("lblUser");
|
||||
lblDominio.Text = user_std.UtSn.Traduci("lblDominio");
|
||||
lblTitolo.Text = user_std.UtSn.Traduci("ForzaUtente");
|
||||
btnOk.Text = user_std.UtSn.Traduci("btnCommit");
|
||||
btnOkUserStd.Text = user_std.UtSn.Traduci("btnCommit");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// prova a verificare se l'utente sia ok x AD credentials
|
||||
/// </summary>
|
||||
private void AdLogin()
|
||||
{
|
||||
lblMessage.Text = "User not authenticated...";
|
||||
if (Page.User.Identity.IsAuthenticated)
|
||||
{
|
||||
//recupera user windows se c'è...
|
||||
string ad_name = Page.User.Identity.Name;
|
||||
string delimStr = "\\";
|
||||
char[] delimiter = delimStr.ToCharArray();
|
||||
string[] dom_user = ad_name.Split(delimiter, 2);
|
||||
// passo al controllo di verifica ADuserOk...
|
||||
user_std _utente = new user_std();
|
||||
if (_utente.ADuserOk(dom_user[0], dom_user[1]))
|
||||
{
|
||||
bool fatto = _utente.startUpUtente(dom_user[0], dom_user[1]);
|
||||
if (fatto)
|
||||
{
|
||||
SteamWare.logger.lg.scriviLog(string.Format("L'utente {0} ({1}) ha effettuato il login correttamente", _utente.CognomeNome, _utente.userNameAD), SteamWare.tipoLog.INFO);
|
||||
if (Login_ok != null)
|
||||
{
|
||||
Login_ok(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lblMessage.Text = String.Format("{0}<br>There are some problems instatiating user: {1}/{2}", user_std.UtSn.Traduci("AccessFail"), dom_user[0], dom_user[1]);
|
||||
SteamWare.logger.lg.scriviLog(String.Format("Accesso fallito, problemi ad istanziare l'utente {0}/{1}", dom_user[0], dom_user[1]), SteamWare.tipoLog.ERROR);
|
||||
if (Login_Error != null)
|
||||
{
|
||||
Login_Error(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lblMessage.Text = String.Format("{0}<br>user not allowed: {1}/{2}", user_std.UtSn.Traduci("AccessFail"), dom_user[0], dom_user[1]);
|
||||
SteamWare.logger.lg.scriviLog(String.Format("Utente non autorizzato: {0}/{1}", dom_user[0], dom_user[1]), SteamWare.tipoLog.WARNING);
|
||||
if (Login_Error != null)
|
||||
{
|
||||
Login_Error(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lblMessage.Text = user_std.UtSn.Traduci("AccessFail") + user_std.UtSn.Traduci("UsrNotAuth");
|
||||
SteamWare.logger.lg.scriviLog(String.Format("Accesso fallito, utente non autenticato"), SteamWare.tipoLog.WARNING);
|
||||
if (Login_Error != null)
|
||||
{
|
||||
Login_Error(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// effettua verifiche e se concesso permette di forzare l'accesso utente
|
||||
/// </summary>
|
||||
private void ForceUserIdentity()
|
||||
{
|
||||
if (Page.User.Identity.IsAuthenticated)
|
||||
{
|
||||
bool _allowForceUser = false;
|
||||
try
|
||||
{
|
||||
_allowForceUser = SteamWare.memLayer.ML.CRB("_allowForceUser");
|
||||
}
|
||||
catch
|
||||
{
|
||||
_allowForceUser = false;
|
||||
}
|
||||
if (_allowForceUser)
|
||||
{
|
||||
if (authKey.Text == "forzaInter") // verifica passphrase...
|
||||
{
|
||||
user_std _utente = new user_std();
|
||||
user_std.UtSn.isForcedUser = true;
|
||||
bool fatto = _utente.startUpUtente(dominio.Text, user.Text);
|
||||
if (fatto)
|
||||
{
|
||||
string _rigaLog = String.Format("User {0} has forced user identity ok: logged as \t {1}\\{2}", Page.User.Identity.Name, dominio.Text, user.Text);
|
||||
SteamWare.logger.lg.scriviLog(_rigaLog, SteamWare.tipoLog.INFO);
|
||||
if (Login_ok != null)
|
||||
{
|
||||
Login_ok(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lblMessage.Text = String.Format("{0}<br>key not allowed for operation!! operation logged!!", user_std.UtSn.Traduci("AccessFail"));
|
||||
mandaEmail(_fromEmail, _adminEmail, "Attenzione: tentativo di accesso non autorizzato!", String.Format("Tentativo di forcing user non autorizzato!<br>L'utente {0} ha tentato di accedere a {1} forzando l'utente ma la sua key autorizzativa e' sbagliata...", Page.User.Identity.Name, user_std.UtSn.Traduci(SteamWare.memLayer.ML.CRS("defaultApp"))));
|
||||
string _rigaLog = String.Format("User {0}\t tried to force user - wrong password - he tried to log as \t {1}\\{2}", Page.User.Identity.Name, dominio.Text, user.Text);
|
||||
SteamWare.logger.lg.scriviLog(_rigaLog, SteamWare.tipoLog.WARNING);
|
||||
if (Login_Error != null)
|
||||
{
|
||||
Login_Error(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
mandaEmail(_fromEmail, _adminEmail, "Attenzione: tentativo di accesso non autorizzato!", String.Format("Tentativo di forcing user non autorizzato!<br>L'utente {0} ha tentato di accedere a {1} forzando l'utente ma la funzione e' disabilitata...", Page.User.Identity.Name, user_std.UtSn.Traduci(SteamWare.memLayer.ML.CRS("defaultApp"))));
|
||||
string _rigaLog = String.Format("User {0}\t tried to force user - access disabled - he tried to log as \t {1}\\{2}", Page.User.Identity.Name, dominio.Text, user.Text);
|
||||
SteamWare.logger.lg.scriviLog(_rigaLog, SteamWare.tipoLog.WARNING);
|
||||
if (Login_Error != null)
|
||||
{
|
||||
Login_Error(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lblMessage.Text = string.Format("{0}<br>user not authenticated!<br>", user_std.UtSn.Traduci("AccessFail"));
|
||||
if (Login_Error != null)
|
||||
{
|
||||
Login_Error(this, new EventArgs());
|
||||
}
|
||||
string _rigaLog = String.Format("\t Someone tried to force user - real user: \t - not autenticated - \t tried to log as \t {0}\\{1}", dominio.Text, user.Text);
|
||||
SteamWare.logger.lg.scriviLog(_rigaLog, SteamWare.tipoLog.WARNING);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// se concesso il generico ForceUser permette di forzare l'accesso utente ad uno degli standard
|
||||
/// </summary>
|
||||
private void StdUserIdentity()
|
||||
{
|
||||
if (Page.User.Identity.IsAuthenticated)
|
||||
{
|
||||
bool _allowForceUser = false;
|
||||
try
|
||||
{
|
||||
_allowForceUser = SteamWare.memLayer.ML.CRB("_allowForceUser");
|
||||
}
|
||||
catch
|
||||
{
|
||||
_allowForceUser = false;
|
||||
}
|
||||
if (_allowForceUser)
|
||||
{
|
||||
//leggo e codifico utente indicato
|
||||
string delimStr = "\\";
|
||||
char[] delimiter = delimStr.ToCharArray();
|
||||
string[] dom_user = ddlStdUser.SelectedValue.Split(delimiter, 2);
|
||||
//forzo login!
|
||||
user_std _utente = new user_std();
|
||||
user_std.UtSn.isForcedUser = true;
|
||||
bool fatto = _utente.startUpUtente(dom_user[0], dom_user[1]);
|
||||
if (fatto)
|
||||
{
|
||||
string _rigaLog = String.Format("User {0} has forced user identity ok: logged as \t {1}\\{2}", Page.User.Identity.Name, dom_user[0], dom_user[1]);
|
||||
SteamWare.logger.lg.scriviLog(_rigaLog, SteamWare.tipoLog.INFO);
|
||||
if (Login_ok != null)
|
||||
{
|
||||
Login_ok(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
mandaEmail(_fromEmail, _adminEmail, "Attenzione: tentativo di accesso non autorizzato!", String.Format("Tentativo di forcing user non autorizzato!<br>L'utente {0} ha tentato di accedere a {1} forzando l'utente ma la funzione e' disabilitata...", Page.User.Identity.Name, user_std.UtSn.Traduci(SteamWare.memLayer.ML.CRS("defaultApp"))));
|
||||
string _rigaLog = String.Format("User {0}\t tried to force user - access disabled - he tried to log as \t {1}", Page.User.Identity.Name, ddlStdUser.SelectedValue);
|
||||
SteamWare.logger.lg.scriviLog(_rigaLog, SteamWare.tipoLog.WARNING);
|
||||
if (Login_Error != null)
|
||||
{
|
||||
Login_Error(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lblMessage.Text = string.Format("{0}<br>user not authenticated!<br>", user_std.UtSn.Traduci("AccessFail"));
|
||||
if (Login_Error != null)
|
||||
{
|
||||
Login_Error(this, new EventArgs());
|
||||
}
|
||||
string _rigaLog = String.Format("\t Someone tried to force user - real user: \t - not autenticated - \t tried to log as \t {0}\\{1}", dominio.Text, user.Text);
|
||||
SteamWare.logger.lg.scriviLog(_rigaLog, SteamWare.tipoLog.WARNING);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// fa login con force user e controllo pwd
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnOk_Click(object sender, EventArgs e)
|
||||
{
|
||||
ForceUserIdentity();
|
||||
}
|
||||
/// <summary>
|
||||
/// fa login utente tipo standard
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnOkUserStd_Click(object sender, EventArgs e)
|
||||
{
|
||||
StdUserIdentity();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
#region area public
|
||||
|
||||
#region eventi pubblici esposti
|
||||
|
||||
public event EventHandler Login_ok;
|
||||
public event EventHandler Login_Error;
|
||||
|
||||
#endregion
|
||||
|
||||
#region area proprietà
|
||||
|
||||
/// <summary>
|
||||
/// modalità funzionamento controllo tra normale (ActiveDirectory e user auth di default) e forceUser
|
||||
/// </summary>
|
||||
public SteamWare.loginMode modoLogin
|
||||
{
|
||||
get
|
||||
{
|
||||
return _isForceUser;
|
||||
}
|
||||
set
|
||||
{
|
||||
_isForceUser = value;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// avvio pagina
|
||||
/// </summary>
|
||||
protected override void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
base.Page_Load(sender, e);
|
||||
//carico da web.config i default values
|
||||
loadDefaultsWebConfig();
|
||||
// procedo...
|
||||
setLoginMode();
|
||||
Session.RemoveAll();
|
||||
if (_isForceUser == SteamWare.loginMode.normale)
|
||||
{
|
||||
AdLogin();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
+140
@@ -0,0 +1,140 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.4927
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
public partial class mod_login {
|
||||
|
||||
/// <summary>
|
||||
/// pnlForceUser control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Panel pnlForceUser;
|
||||
|
||||
/// <summary>
|
||||
/// lblTitolo control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblTitolo;
|
||||
|
||||
/// <summary>
|
||||
/// lblPwd control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblPwd;
|
||||
|
||||
/// <summary>
|
||||
/// authKey control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox authKey;
|
||||
|
||||
/// <summary>
|
||||
/// lblDominio control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblDominio;
|
||||
|
||||
/// <summary>
|
||||
/// dominio control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox dominio;
|
||||
|
||||
/// <summary>
|
||||
/// lblUser control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblUser;
|
||||
|
||||
/// <summary>
|
||||
/// user control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox user;
|
||||
|
||||
/// <summary>
|
||||
/// btnOk control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnOk;
|
||||
|
||||
/// <summary>
|
||||
/// pnlSelectUser control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Panel pnlSelectUser;
|
||||
|
||||
/// <summary>
|
||||
/// ddlStdUser control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.DropDownList ddlStdUser;
|
||||
|
||||
/// <summary>
|
||||
/// btnOkUserStd control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnOkUserStd;
|
||||
|
||||
/// <summary>
|
||||
/// lblMessage control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblMessage;
|
||||
|
||||
/// <summary>
|
||||
/// HypLinkSSO control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HyperLink HypLinkSSO;
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" Inherits="mod_main_help" CodeBehind="mod_main_help.ascx.cs" %>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-3 py-4">
|
||||
<asp:LinkButton runat="server" ID="lbtAnagArticoli" CssClass="btn btn-outline-info btn-block py-3" OnClick="btnAnagArticoli_Click">
|
||||
<div><i class="fa fa-tasks fa-4x"></i></div>
|
||||
<div class="font-weight-bold mt-1 table-dark text-light">
|
||||
<%: traduci("btnAnagArticoli") %>
|
||||
</div>
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-3 py-4">
|
||||
<asp:LinkButton runat="server" ID="lbtGestPromesseOdl" CssClass="btn btn-outline-primary btn-block py-3" OnClick="btnGestPromesseOdl_Click">
|
||||
<div><i class="fa fa-list-ol fa-4x"></i></div>
|
||||
<div class="font-weight-bold mt-1 table-dark text-light">
|
||||
<%: traduci("btnGestPromesseOdl") %>
|
||||
</div>
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-3 py-4">
|
||||
<asp:LinkButton runat="server" ID="lbtGestOdl" CssClass="btn btn-outline-success btn-block py-3" OnClick="btnGestOdl_Click">
|
||||
<div><i class="fa fa-wrench fa-4x"></i></div>
|
||||
<div class="font-weight-bold mt-1 table-dark text-light">
|
||||
<%: traduci("btnGestOdl") %>
|
||||
</div>
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-3 py-4">
|
||||
<asp:LinkButton runat="server" ID="lbtGestDatiMacchina" CssClass="btn btn-outline-secondary btn-block py-3" OnClick="btnGestDatiMacchina_Click">
|
||||
<div><i class="fa fa-industry fa-4x"></i></div>
|
||||
<div class="font-weight-bold mt-1 table-dark text-light">
|
||||
<%: traduci("btnGestDatiMacchina") %>
|
||||
</div>
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-3 py-4">
|
||||
<asp:LinkButton runat="server" ID="lbtApprovaTC" CssClass="btn btn-outline-warning btn-block py-3" OnClick="btnApprovaTC_Click"> <div><i class="fa fa-clock-o fa-4x"></i></div>
|
||||
<div class="font-weight-bold mt-1 table-dark text-light">
|
||||
<%: traduci("btnApprovaTC") %>
|
||||
</div>
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-3 py-4">
|
||||
<asp:LinkButton runat="server" ID="lbtApprovaProd" CssClass="btn btn-outline-danger btn-block py-3" OnClick="btnApprovaProd_Click">
|
||||
<div><i class="fa fa-thumbs-up fa-4x"></i></div>
|
||||
<div class="font-weight-bold mt-1 table-dark text-light">
|
||||
<%: traduci("btnApprovaProd") %>
|
||||
</div>
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-3 py-4">
|
||||
<asp:LinkButton runat="server" ID="lbtBCode" CssClass="btn btn-outline-info btn-block py-3" OnClick="btnBCode_Click">
|
||||
<div><i class="fa fa-barcode fa-4x"></i></div>
|
||||
<div class="font-weight-bold mt-1 table-dark text-light">
|
||||
<%: traduci("btnBCode") %>
|
||||
</div>
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-3 py-4">
|
||||
<asp:LinkButton runat="server" ID="lbtGestKIT" CssClass="btn btn-outline-info btn-block py-3" OnClick="lbtGestKIT_Click">
|
||||
<div><i class="fa fa-object-group fa-4x"></i></div>
|
||||
<div class="font-weight-bold mt-1 table-dark text-light">
|
||||
<%: traduci("btnGestKIT") %>
|
||||
</div>
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,48 @@
|
||||
using SteamWare;
|
||||
using System;
|
||||
|
||||
public partial class mod_main_help : ApplicationUserControl
|
||||
{
|
||||
|
||||
protected override void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
protected void btnGestPromesseOdl_Click(object sender, EventArgs e)
|
||||
{
|
||||
Response.Redirect("~/gestPromesseODL");
|
||||
}
|
||||
protected void btnGestOdl_Click(object sender, EventArgs e)
|
||||
{
|
||||
Response.Redirect("~/gestioneODL");
|
||||
}
|
||||
|
||||
protected void btnAnagArticoli_Click(object sender, EventArgs e)
|
||||
{
|
||||
Response.Redirect("~/anagArticoli");
|
||||
}
|
||||
|
||||
protected void btnGestDatiMacchina_Click(object sender, EventArgs e)
|
||||
{
|
||||
Response.Redirect("~/gestioneDatiMacchine");
|
||||
}
|
||||
|
||||
protected void btnApprovaTC_Click(object sender, EventArgs e)
|
||||
{
|
||||
Response.Redirect("~/approvazioneODL");
|
||||
}
|
||||
protected void btnApprovaProd_Click(object sender, EventArgs e)
|
||||
{
|
||||
Response.Redirect("~/approvazioneProd");
|
||||
}
|
||||
|
||||
protected void btnBCode_Click(object sender, EventArgs e)
|
||||
{
|
||||
Response.Redirect("~/BCode");
|
||||
}
|
||||
|
||||
protected void lbtGestKIT_Click(object sender, EventArgs e)
|
||||
{
|
||||
Response.Redirect("~/GestKIT");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
public partial class mod_main_help {
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtAnagArticoli.
|
||||
/// </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.LinkButton lbtAnagArticoli;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtGestPromesseOdl.
|
||||
/// </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.LinkButton lbtGestPromesseOdl;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtGestOdl.
|
||||
/// </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.LinkButton lbtGestOdl;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtGestDatiMacchina.
|
||||
/// </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.LinkButton lbtGestDatiMacchina;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtApprovaTC.
|
||||
/// </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.LinkButton lbtApprovaTC;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtApprovaProd.
|
||||
/// </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.LinkButton lbtApprovaProd;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtBCode.
|
||||
/// </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.LinkButton lbtBCode;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtGestKIT.
|
||||
/// </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.LinkButton lbtGestKIT;
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true"
|
||||
Inherits="mod_menuBottom" CodeBehind="mod_menuBottom.ascx.cs" %>
|
||||
|
||||
<div class="navbar navbar-dark bg-dark text-light fixed-bottom p-0" role="navigation">
|
||||
<div class="container-fluid">
|
||||
<div class="row w-100 mx-0 px-0">
|
||||
<div class="col-6 navbar-text text-left m-0 py-1">
|
||||
<%--margin da togliere in prod!--%>
|
||||
<asp:Label ID="lblrev" runat="server"></asp:Label>
|
||||
<asp:Label runat="server" ID="lblApp" Text="." />
|
||||
<asp:Label runat="server" ID="lblCopyRight" Text="..." />
|
||||
</div>
|
||||
<div class="col-6 navbar-text text-right m-0 py-1">
|
||||
<div class="d-flex flex-row-reverse">
|
||||
<div class="px-1 text-right">Powered by <a href="http://www.steamware.net" target="_blank">
|
||||
<img src="Images/LogoSteamware.png" alt="Steamware" height="18" /></a>
|
||||
</div>
|
||||
<div class="px-1 text-right">
|
||||
<asp:UpdateProgress ID="updtRicerca" runat="server" DisplayAfter="5" DynamicLayout="true">
|
||||
<ProgressTemplate>
|
||||
<div id="progress_back">
|
||||
</div>
|
||||
<div id="progress_top">
|
||||
<i class="fa fa-cog fa-spin fa"></i> <i class="fa fa-cog fa-spin fa"></i> <i class="fa fa-cog fa-spin fa"></i>
|
||||
</div>
|
||||
</ProgressTemplate>
|
||||
</asp:UpdateProgress>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Configuration;
|
||||
using System.Diagnostics;
|
||||
using System.Web.UI;
|
||||
|
||||
public partial class mod_menuBottom : System.Web.UI.UserControl
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
// sistemo le stringhe...
|
||||
//lblApp.Text = string.Format("<b>{0}</b> v.{1}.{2}", ConfigurationManager.AppSettings.Get("appName"), ConfigurationManager.AppSettings.Get("mainRev"), ConfigurationManager.AppSettings.Get("minRev"));
|
||||
var versionInfo = FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly().Location);
|
||||
lblCopyRight.Text = string.Format("<b>{0}</b>", versionInfo.LegalCopyright);
|
||||
lblApp.Text = string.Format("{0} v.{1}", ConfigurationManager.AppSettings.Get("appName"), System.Reflection.Assembly.GetExecutingAssembly().GetName().Version);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
public partial class mod_menuBottom {
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblrev.
|
||||
/// </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 lblrev;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblApp.
|
||||
/// </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 lblApp;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblCopyRight.
|
||||
/// </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 lblCopyRight;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo updtRicerca.
|
||||
/// </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.UpdateProgress updtRicerca;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" Inherits="mod_menuSx" Codebehind="mod_menuSx.ascx.cs" %>
|
||||
<asp:Panel ID="pnlTree" runat="server" HorizontalAlign="Left" CssClass="pnlMenuSx" >
|
||||
<asp:TreeView ID="tvMenuSx" runat="server" ImageSet="Simple" NodeIndent="10" DataSourceID="XmlDataSource1">
|
||||
<DataBindings>
|
||||
<asp:TreeNodeBinding DataMember="menu" TextField="title" NavigateUrlField="url" ToolTipField="description" />
|
||||
<asp:TreeNodeBinding DataMember="voce" TextField="title" NavigateUrlField="url" ToolTipField="description" />
|
||||
</DataBindings>
|
||||
<ParentNodeStyle Font-Bold="False" />
|
||||
<HoverNodeStyle Font-Underline="True" ForeColor="#DD5555" />
|
||||
<SelectedNodeStyle Font-Underline="True" HorizontalPadding="0px" VerticalPadding="0px"
|
||||
ForeColor="#DD5555" />
|
||||
<NodeStyle Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" HorizontalPadding="0px"
|
||||
NodeSpacing="0px" VerticalPadding="0px" />
|
||||
</asp:TreeView>
|
||||
</asp:Panel>
|
||||
<asp:XmlDataSource ID="XmlDataSource1" runat="server" EnableCaching="false"></asp:XmlDataSource>
|
||||
@@ -0,0 +1,35 @@
|
||||
using SteamWare;
|
||||
using System.Web.UI;
|
||||
|
||||
|
||||
public partial class mod_menuSx : ApplicationUserControl
|
||||
{
|
||||
|
||||
protected override void aggiornaControlliDataGL()
|
||||
{
|
||||
// se l'utente c'è...
|
||||
if (user_std.UtSn.isAuth && !Page.IsPostBack)
|
||||
{
|
||||
updateTreeMenu();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// aggiornamento del menù
|
||||
/// </summary>
|
||||
private void updateTreeMenu()
|
||||
{
|
||||
XmlDataSource1.Data = user_std.UtSn.mappaSito;
|
||||
//user_std.UtSn.ricaricaMappaSito();
|
||||
//XmlDataSource1.Data = user_std.UtSn.mappaSitoLive;
|
||||
XmlDataSource1.XPath = "mainMenu/menu";
|
||||
XmlDataSource1.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// forza l'update del menù sx
|
||||
/// </summary>
|
||||
public void forzaUpdateMenu()
|
||||
{
|
||||
user_std.UtSn.ricaricaMappaSito();
|
||||
updateTreeMenu();
|
||||
}
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.4927
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
public partial class mod_menuSx {
|
||||
|
||||
/// <summary>
|
||||
/// pnlTree control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Panel pnlTree;
|
||||
|
||||
/// <summary>
|
||||
/// tvMenuSx control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TreeView tvMenuSx;
|
||||
|
||||
/// <summary>
|
||||
/// XmlDataSource1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.XmlDataSource XmlDataSource1;
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" Inherits="MoonPro_site.WebUserControls.mod_menuTop"
|
||||
CodeBehind="mod_menuTop.ascx.cs" %>
|
||||
|
||||
<%-- Gestione resize --%>
|
||||
<asp:HiddenField runat="server" ID="HiddenHeight" OnValueChanged="HiddenHeight_ValueChanged" />
|
||||
<asp:HiddenField runat="server" ID="HiddenWidth" OnValueChanged="HiddenWidth_ValueChanged" />
|
||||
|
||||
|
||||
|
||||
<nav class="navbar navbar-expand fixed-top navbar-dark bg-black text-light titleBlock p-0">
|
||||
<div style="width: 100%;">
|
||||
<div class="row topTitle p-1">
|
||||
<div class="col-3 text-left">
|
||||
<div class="d-flex justify-content-start pl-3 text-left">
|
||||
<asp:LinkButton ID="btnUpdate" runat="server" CssClass="btn btn-sm btn-outline-info" OnClick="btnUpdate_Click"></asp:LinkButton>
|
||||
<asp:LinkButton ID="btnLogOut" runat="server" CssClass="dxButtonClass" Visible="False"
|
||||
OnClick="btnLogOut_Click"></asp:LinkButton>
|
||||
<span class="mx-2 dateTimeSmall">
|
||||
<%: DateTime.Now.ToString("yyyy.MM.dd") %><br />
|
||||
<%: DateTime.Now.ToString("HH.mm.ss") %>
|
||||
<asp:Label runat="server" ID="lastUpdate" CssClass="dateTimeSmall"></asp:Label>
|
||||
</span>
|
||||
<asp:UpdateProgress ID="updtPage" runat="server" DisplayAfter="10" DynamicLayout="true">
|
||||
<ProgressTemplate>
|
||||
<div id="progress_back">
|
||||
</div>
|
||||
<div id="progress_top">
|
||||
<i class="fa fa-cog fa-spin"></i> <i class="fa fa-cog fa-spin"></i> <i class="fa fa-cog fa-spin"></i>
|
||||
</div>
|
||||
</ProgressTemplate>
|
||||
</asp:UpdateProgress>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6 text-center">
|
||||
<asp:Image ID="Image1" runat="server" src="Images/LogoMapoNoText.png" CssClass="img-fluid" Height="1.5em" />
|
||||
<asp:HyperLink runat="server" is="hlHome" CssClass="btn btn-outline-info" NavigateUrl="~/menu"><i class="fa fa-home" aria-hidden="true"></i> MAPO ADMIN - Menu generale </asp:HyperLink>
|
||||
<asp:Image ID="Image2" runat="server" src="Images/LogoMapoNoText.png" CssClass="img-fluid" Height="1.5em" />
|
||||
</div>
|
||||
<div class="col-3 text-right">
|
||||
<asp:HyperLink runat="server" ID="hlGuida" NavigateUrl="~/help/index.html" Target="_blank" Style="text-decoration: none; color: White; font-size: small;" Visible="false" >
|
||||
<asp:Image ID="imgHelp" ImageUrl="~/images/Help.png" runat="server" ToolTip="Guida" Height="32px" />
|
||||
</asp:HyperLink>
|
||||
|
||||
<asp:HyperLink runat ="server" ID="hlSteamware" CssClass="btn btn-sm btn-outline-info" Target="_blank" NavigateUrl="https://www.steamware.net/MAPO">
|
||||
Steamware - sito</asp:HyperLink>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<div class="mb-3"> </div>
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user