Merge branch 'develop'
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1476,6 +1476,11 @@
|
||||
restituisce il nome della pagina corrente
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:SteamWare.devicesAuthProxy.AuthCookieName">
|
||||
<summary>
|
||||
restituisce nome cookie di auth (o default...)
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:SteamWare.devicesAuthProxy.diritti">
|
||||
<summary>
|
||||
restituisce la tabella diritti da session
|
||||
|
||||
@@ -23,7 +23,6 @@ C:\Users\samuele\Documents\Visual Studio 2012\Projects\GMW\GMW-RT\bin\Elmah.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2012\Projects\GMW\GMW-RT\bin\Microsoft.Web.Infrastructure.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2012\Projects\GMW\GMW-RT\bin\System.Web.Optimization.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2012\Projects\GMW\GMW-RT\bin\WebGrease.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2012\Projects\GMW\GMW-RT\bin\Antlr3.Runtime.pdb
|
||||
C:\Users\samuele\Documents\Visual Studio 2012\Projects\GMW\GMW-RT\bin\System.Web.Optimization.xml
|
||||
C:\Users\samuele\Documents\Visual Studio 2012\Projects\GMW\GMW-RT\bin\Microsoft.AspNet.FriendlyUrls.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2012\Projects\GMW\GMW-RT\bin\Microsoft.AspNet.FriendlyUrls.xml
|
||||
|
||||
+34
-2
@@ -461,7 +461,10 @@
|
||||
<Content Include="fonts\fontawesome-webfont.ttf" />
|
||||
<Content Include="fonts\fontawesome-webfont.eot" />
|
||||
<Content Include="fonts\FontAwesome.otf" />
|
||||
<None Include="Properties\PublishProfiles\Test218.pubxml" />
|
||||
<None Include="Scripts\jquery-2.1.1.intellisense.js" />
|
||||
<Content Include="Post_SterrTaglio.aspx" />
|
||||
<Content Include="Post_SterrTaglioFC.aspx" />
|
||||
<Content Include="Scripts\bootstrap-switch.js" />
|
||||
<Content Include="Scripts\bootstrap-switch.min.js" />
|
||||
<Content Include="Scripts\jquery-2.1.1.js" />
|
||||
@@ -489,6 +492,8 @@
|
||||
<Content Include="WebUserControls\mod_SearchProvDtx.ascx" />
|
||||
<Content Include="WebUserControls\mod_selLineaNtDt.ascx" />
|
||||
<Content Include="WebUserControls\mod_selPeriodo.ascx" />
|
||||
<Content Include="WebUserControls\mod_sterrTaglio.ascx" />
|
||||
<Content Include="WebUserControls\mod_sterrTaglioFC.ascx" />
|
||||
<Content Include="WS\DataFeed.asmx" />
|
||||
<Content Include="Reports\CartellinoFinitiSP.rdlc" />
|
||||
<None Include="Properties\PublishProfiles\IIS02_TK.pubxml" />
|
||||
@@ -872,6 +877,20 @@
|
||||
<Compile Include="POST_PRE_TT_DT.aspx.designer.cs">
|
||||
<DependentUpon>POST_PRE_TT_DT.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Post_SterrTaglio.aspx.cs">
|
||||
<DependentUpon>Post_SterrTaglio.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Post_SterrTaglio.aspx.designer.cs">
|
||||
<DependentUpon>Post_SterrTaglio.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Post_SterrTaglioFC.aspx.cs">
|
||||
<DependentUpon>Post_SterrTaglioFC.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Post_SterrTaglioFC.aspx.designer.cs">
|
||||
<DependentUpon>Post_SterrTaglioFC.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="sanpos_associaz_F10_F18.aspx.cs">
|
||||
<DependentUpon>sanpos_associaz_F10_F18.aspx</DependentUpon>
|
||||
@@ -1734,6 +1753,20 @@
|
||||
<Compile Include="WebUserControls\mod_SterrTagIN.ascx.designer.cs">
|
||||
<DependentUpon>mod_SterrTagIN.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_sterrTaglio.ascx.cs">
|
||||
<DependentUpon>mod_sterrTaglio.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_sterrTaglio.ascx.designer.cs">
|
||||
<DependentUpon>mod_sterrTaglio.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_sterrTaglioFC.ascx.cs">
|
||||
<DependentUpon>mod_sterrTaglioFC.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_sterrTaglioFC.ascx.designer.cs">
|
||||
<DependentUpon>mod_sterrTaglioFC.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_SterrTagOUT.ascx.cs">
|
||||
<DependentUpon>mod_SterrTagOUT.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -2046,7 +2079,6 @@
|
||||
<Content Include="temp\PlaceHolder.file" />
|
||||
<None Include="Docs\DM_Dettaglio campi etichetta odette Tekal.doc" />
|
||||
<None Include="images\Thumbs.db" />
|
||||
<None Include="Properties\PublishProfiles\IIS02_SP.pubxml" />
|
||||
<None Include="Properties\PublishProfiles\SP_prod.pubxml" />
|
||||
<None Include="Properties\PublishProfiles\SP_test.pubxml" />
|
||||
<None Include="Properties\PublishProfiles\TK_prod.pubxml" />
|
||||
@@ -2238,7 +2270,7 @@
|
||||
<AutoAssignPort>True</AutoAssignPort>
|
||||
<DevelopmentServerPort>57804</DevelopmentServerPort>
|
||||
<DevelopmentServerVPath>/</DevelopmentServerVPath>
|
||||
<IISUrl>http://localhost:55555</IISUrl>
|
||||
<IISUrl>http://localhost:55554</IISUrl>
|
||||
<NTLMAuthentication>False</NTLMAuthentication>
|
||||
<UseCustomServer>False</UseCustomServer>
|
||||
<CustomServerUrl>
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
|
||||
<PropertyGroup>
|
||||
<ProjectView>ShowAllFiles</ProjectView>
|
||||
<NameOfLastUsedPublishProfile>IIS02_TK</NameOfLastUsedPublishProfile>
|
||||
<NameOfLastUsedPublishProfile>TK_test</NameOfLastUsedPublishProfile>
|
||||
</PropertyGroup>
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/FullPage.master" AutoEventWireup="true" CodeBehind="Post_SterrTaglio.aspx.cs" Inherits="GMW.Post_SterrTaglio" %>
|
||||
|
||||
<%@ Register Src="WebUserControls/mod_selLineaNtDt.ascx" TagName="mod_selLineaNtDt" TagPrefix="uc1" %>
|
||||
<%@ Register Src="WebUserControls/mod_storicoAzioniOperatore.ascx" TagName="mod_storicoAzioniOperatore" TagPrefix="uc2" %>
|
||||
<%@ Register Src="WebUserControls/mod_sterrTaglio.ascx" TagPrefix="uc3" TagName="mod_sterrTaglio" %>
|
||||
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="MCon" runat="server">
|
||||
<uc1:mod_selLineaNtDt ID="mod_selLineaNtDt1" runat="server" urlNT="Post_SterrTaglio" preCodLineNT="W10" cssNormal="btn btn-inverse btn-lg" cssSelected="btn btn-primary btn-lg active" showSelNtDt="false" />
|
||||
<asp:Panel runat="server" ID="pnlAll" CssClass="stileAttesa">
|
||||
<div class="container-fluid">
|
||||
<asp:Panel ID="pnlSAO" runat="server" ScrollBars="None" CssClass="nav sidebar ombra" BackColor="#696969">
|
||||
<div style="float: left; height: 100%; min-height: 300px; min-width: 240px; margin: -15px;">
|
||||
<div style="background-color: #696969; margin: 4px;">
|
||||
<uc2:mod_storicoAzioniOperatore ID="mod_storicoAzioniOperatore1" runat="server" showDelete="false" />
|
||||
</div>
|
||||
</div>
|
||||
</asp:Panel>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="msgBoxBarcode">
|
||||
<div>
|
||||
<asp:Label runat="server" ID="lblMessaggi" Text=".." Font-Size="18pt" />
|
||||
</div>
|
||||
<div>
|
||||
<asp:Label runat="server" ID="lblWarning" Text="" Font-Size="XX-Large" ForeColor="Red" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<uc3:mod_sterrTaglio runat="server" id="mod_sterrTaglio" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</asp:Panel>
|
||||
</asp:Content>
|
||||
@@ -0,0 +1,130 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using SteamWare;
|
||||
using GMW_data;
|
||||
|
||||
namespace GMW
|
||||
{
|
||||
public partial class Post_SterrTaglio : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
updatePrinterPostazione();
|
||||
// fix css...
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
// imposto pos abilitata x cancellazione
|
||||
mod_storicoAzioniOperatore1.IdxPosizione2del = memLayer.ML.confReadInt("IdxPosizioneSterrati");
|
||||
// pulisco dir temp dai file dei cartellini stampati
|
||||
reportPrinter.obj.pulisciDir();
|
||||
}
|
||||
// update vari...
|
||||
doUpdate();
|
||||
mod_storicoAzioniOperatore1.eh_stampa += new EventHandler(mod_storicoAzioniOperatore1_eh_stampa);
|
||||
mod_sterrTaglio.eh_reqUpdate += mod_PostRX_NT1_eh_reqUpdate;
|
||||
mod_selLineaNtDt1.eh_lineSelected += mod_selLineaNtDt1_eh_doRefresh;
|
||||
mod_selLineaNtDt1.eh_showHideStorico += mod_selLineaNtDt1_eh_showHideStorico;
|
||||
}
|
||||
/// <summary>
|
||||
/// Handles the showHideStorico event of the mod_selLineaNtDt1_eh control.
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void mod_selLineaNtDt1_eh_showHideStorico(object sender, EventArgs e)
|
||||
{
|
||||
fixStorico();
|
||||
}
|
||||
/// <summary>
|
||||
/// Handles the doRefresh event of the mod_selLineaNtDt1_eh control.
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void mod_selLineaNtDt1_eh_doRefresh(object sender, EventArgs e)
|
||||
{
|
||||
doUpdate();
|
||||
mod_sterrTaglio.doResetData();
|
||||
mod_sterrTaglio.doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// richiesta update del controllo SAO
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void mod_PostRX_NT1_eh_reqUpdate(object sender, EventArgs e)
|
||||
{
|
||||
doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// aggiorna messaggi e css
|
||||
/// </summary>
|
||||
private void updateMessCss()
|
||||
{
|
||||
lblWarning.Text = Postazione.warningText;
|
||||
lblMessaggi.Text = Postazione.messaggiText;
|
||||
pnlAll.CssClass = Postazione.CssClass;
|
||||
}
|
||||
/// <summary>
|
||||
/// richiesta (ri)stampa UDC
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void mod_storicoAzioniOperatore1_eh_stampa(object sender, EventArgs e)
|
||||
{
|
||||
mod_sterrTaglio.ristampa();
|
||||
}
|
||||
/// <summary>
|
||||
/// sistemo visualizzazione pannelli
|
||||
/// </summary>
|
||||
private void fixPanels()
|
||||
{
|
||||
// default: moduli NON visibili SE non ho linea indicata..
|
||||
bool enableBtn = false;
|
||||
if (Postazione.currCodCella != "") enableBtn = true;
|
||||
mod_sterrTaglio.Visible = enableBtn;
|
||||
fixStorico();
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper traduzione
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduci(object lemma)
|
||||
{
|
||||
return user_std.UtSn.Traduci(lemma.ToString());
|
||||
}
|
||||
/// <summary>
|
||||
/// toggle controllo storico
|
||||
/// </summary>
|
||||
private void fixStorico()
|
||||
{
|
||||
pnlSAO.Visible = Postazione.showStorico;
|
||||
}
|
||||
/// <summary>
|
||||
/// update generale controlli
|
||||
/// </summary>
|
||||
private void doUpdate()
|
||||
{
|
||||
updateMessCss();
|
||||
fixPanels();
|
||||
mod_storicoAzioniOperatore1.doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// calcola postazione corrente (ip, name, printer)
|
||||
/// </summary>
|
||||
private void updatePrinterPostazione()
|
||||
{
|
||||
Postazione.IP = Request.UserHostName;
|
||||
Postazione.setupPrinter();
|
||||
// mostro warning se postazione non configurata...
|
||||
if (Postazione.printer == "n.d.")
|
||||
{
|
||||
lblWarning.Text = traduci("lblWarnPostNonConf");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
+78
@@ -0,0 +1,78 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 GMW {
|
||||
|
||||
|
||||
public partial class Post_SterrTaglio {
|
||||
|
||||
/// <summary>
|
||||
/// mod_selLineaNtDt1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::GMW.WebUserControls.mod_selLineaNtDt mod_selLineaNtDt1;
|
||||
|
||||
/// <summary>
|
||||
/// pnlAll 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 pnlAll;
|
||||
|
||||
/// <summary>
|
||||
/// pnlSAO 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 pnlSAO;
|
||||
|
||||
/// <summary>
|
||||
/// mod_storicoAzioniOperatore1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::GMW.WebUserControls.mod_storicoAzioniOperatore mod_storicoAzioniOperatore1;
|
||||
|
||||
/// <summary>
|
||||
/// lblMessaggi 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 lblMessaggi;
|
||||
|
||||
/// <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>
|
||||
/// mod_sterrTaglio control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::GMW.WebUserControls.mod_sterrTaglio mod_sterrTaglio;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/FullPage.master" AutoEventWireup="true" CodeBehind="Post_SterrTaglioFC.aspx.cs" Inherits="GMW.Post_SterrTaglioFC" %>
|
||||
|
||||
<%@ Register Src="WebUserControls/mod_selLineaNtDt.ascx" TagName="mod_selLineaNtDt" TagPrefix="uc1" %>
|
||||
<%@ Register Src="WebUserControls/mod_storicoAzioniOperatore.ascx" TagName="mod_storicoAzioniOperatore" TagPrefix="uc2" %>
|
||||
<%@ Register Src="WebUserControls/mod_sterrTaglioFC.ascx" TagPrefix="uc3" TagName="mod_sterrTaglioFC" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="MCon" runat="server">
|
||||
<uc1:mod_selLineaNtDt ID="mod_selLineaNtDt1" runat="server" urlNT="Post_SterrTaglioFC" cssNormal="btn btn-inverse btn-lg" cssSelected="btn btn-primary btn-lg active" showSelNtDt="false" preCodLineNT="W40" />
|
||||
<asp:Panel runat="server" ID="pnlAll" CssClass="stileAttesa">
|
||||
<div class="container-fluid">
|
||||
<asp:Panel ID="pnlSAO" runat="server" ScrollBars="None" CssClass="nav sidebar ombra" BackColor="#696969">
|
||||
<div style="float: left; height: 100%; min-height: 300px; min-width: 240px; margin: -15px;">
|
||||
<div style="background-color: #696969; margin: 4px;">
|
||||
<uc2:mod_storicoAzioniOperatore ID="mod_storicoAzioniOperatore1" runat="server" showDelete="false" />
|
||||
</div>
|
||||
</div>
|
||||
</asp:Panel>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="msgBoxBarcode">
|
||||
<div>
|
||||
<asp:Label runat="server" ID="lblMessaggi" Text=".." Font-Size="18pt" />
|
||||
</div>
|
||||
<div>
|
||||
<asp:Label runat="server" ID="lblWarning" Text="" Font-Size="XX-Large" ForeColor="Red" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<uc3:mod_sterrTaglioFC runat="server" id="mod_sterrTaglioFC" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</asp:Panel>
|
||||
</asp:Content>
|
||||
@@ -0,0 +1,130 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using SteamWare;
|
||||
using GMW_data;
|
||||
|
||||
namespace GMW
|
||||
{
|
||||
public partial class Post_SterrTaglioFC : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
updatePrinterPostazione();
|
||||
// fix css...
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
// imposto pos abilitata x cancellazione
|
||||
mod_storicoAzioniOperatore1.IdxPosizione2del = memLayer.ML.confReadInt("IdxPosizioneSterrati");
|
||||
// pulisco dir temp dai file dei cartellini stampati
|
||||
reportPrinter.obj.pulisciDir();
|
||||
}
|
||||
// update vari...
|
||||
doUpdate();
|
||||
mod_storicoAzioniOperatore1.eh_stampa += new EventHandler(mod_storicoAzioniOperatore1_eh_stampa);
|
||||
mod_sterrTaglioFC.eh_reqUpdate += mod_PostRX_NT1_eh_reqUpdate;
|
||||
mod_selLineaNtDt1.eh_lineSelected += mod_selLineaNtDt1_eh_doRefresh;
|
||||
mod_selLineaNtDt1.eh_showHideStorico += mod_selLineaNtDt1_eh_showHideStorico;
|
||||
}
|
||||
/// <summary>
|
||||
/// Handles the showHideStorico event of the mod_selLineaNtDt1_eh control.
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void mod_selLineaNtDt1_eh_showHideStorico(object sender, EventArgs e)
|
||||
{
|
||||
fixStorico();
|
||||
}
|
||||
/// <summary>
|
||||
/// Handles the doRefresh event of the mod_selLineaNtDt1_eh control.
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void mod_selLineaNtDt1_eh_doRefresh(object sender, EventArgs e)
|
||||
{
|
||||
doUpdate();
|
||||
mod_sterrTaglioFC.doResetData();
|
||||
mod_sterrTaglioFC.doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// richiesta update del controllo SAO
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void mod_PostRX_NT1_eh_reqUpdate(object sender, EventArgs e)
|
||||
{
|
||||
doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// aggiorna messaggi e css
|
||||
/// </summary>
|
||||
private void updateMessCss()
|
||||
{
|
||||
lblWarning.Text = Postazione.warningText;
|
||||
lblMessaggi.Text = Postazione.messaggiText;
|
||||
pnlAll.CssClass = Postazione.CssClass;
|
||||
}
|
||||
/// <summary>
|
||||
/// richiesta (ri)stampa UDC
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void mod_storicoAzioniOperatore1_eh_stampa(object sender, EventArgs e)
|
||||
{
|
||||
mod_sterrTaglioFC.ristampa();
|
||||
}
|
||||
/// <summary>
|
||||
/// sistemo visualizzazione pannelli
|
||||
/// </summary>
|
||||
private void fixPanels()
|
||||
{
|
||||
// default: moduli NON visibili SE non ho linea indicata..
|
||||
bool enableBtn = false;
|
||||
if (Postazione.currCodCella != "") enableBtn = true;
|
||||
mod_sterrTaglioFC.Visible = enableBtn;
|
||||
fixStorico();
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper traduzione
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduci(object lemma)
|
||||
{
|
||||
return user_std.UtSn.Traduci(lemma.ToString());
|
||||
}
|
||||
/// <summary>
|
||||
/// toggle controllo storico
|
||||
/// </summary>
|
||||
private void fixStorico()
|
||||
{
|
||||
pnlSAO.Visible = Postazione.showStorico;
|
||||
}
|
||||
/// <summary>
|
||||
/// update generale controlli
|
||||
/// </summary>
|
||||
private void doUpdate()
|
||||
{
|
||||
updateMessCss();
|
||||
fixPanels();
|
||||
mod_storicoAzioniOperatore1.doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// calcola postazione corrente (ip, name, printer)
|
||||
/// </summary>
|
||||
private void updatePrinterPostazione()
|
||||
{
|
||||
Postazione.IP = Request.UserHostName;
|
||||
Postazione.setupPrinter();
|
||||
// mostro warning se postazione non configurata...
|
||||
if (Postazione.printer == "n.d.")
|
||||
{
|
||||
lblWarning.Text = traduci("lblWarnPostNonConf");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
+78
@@ -0,0 +1,78 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 GMW {
|
||||
|
||||
|
||||
public partial class Post_SterrTaglioFC {
|
||||
|
||||
/// <summary>
|
||||
/// mod_selLineaNtDt1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::GMW.WebUserControls.mod_selLineaNtDt mod_selLineaNtDt1;
|
||||
|
||||
/// <summary>
|
||||
/// pnlAll 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 pnlAll;
|
||||
|
||||
/// <summary>
|
||||
/// pnlSAO 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 pnlSAO;
|
||||
|
||||
/// <summary>
|
||||
/// mod_storicoAzioniOperatore1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::GMW.WebUserControls.mod_storicoAzioniOperatore mod_storicoAzioniOperatore1;
|
||||
|
||||
/// <summary>
|
||||
/// lblMessaggi 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 lblMessaggi;
|
||||
|
||||
/// <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>
|
||||
/// mod_sterrTaglioFC control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::GMW.WebUserControls.mod_sterrTaglioFC mod_sterrTaglioFC;
|
||||
}
|
||||
}
|
||||
@@ -1,44 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
|
||||
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<WebPublishMethod>MSDeploy</WebPublishMethod>
|
||||
<LastUsedBuildConfiguration>218_SP</LastUsedBuildConfiguration>
|
||||
<LastUsedPlatform>Any CPU</LastUsedPlatform>
|
||||
<SiteUrlToLaunchAfterPublish />
|
||||
<ExcludeApp_Data>True</ExcludeApp_Data>
|
||||
<MSDeployServiceURL>https://IIS02:8172/MsDeploy.axd</MSDeployServiceURL>
|
||||
<DeployIisAppPath>Default Web Site/GMW_SP</DeployIisAppPath>
|
||||
<RemoteSitePhysicalPath />
|
||||
<SkipExtraFilesOnServer>False</SkipExtraFilesOnServer>
|
||||
<MSDeployPublishMethod>WMSVC</MSDeployPublishMethod>
|
||||
<EnableMSDeployBackup>True</EnableMSDeployBackup>
|
||||
<UserName>steamwarewin\Administrator</UserName>
|
||||
<_SavePWD>True</_SavePWD>
|
||||
<PublishDatabaseSettings>
|
||||
<Objects xmlns="">
|
||||
<ObjectGroup Name="GMW_data.Properties.Settings.GMWConnectionString" Order="1" Enabled="False">
|
||||
<Destination Path="" />
|
||||
<Object Type="DbDacFx">
|
||||
<PreSource Path="Data Source=10.74.82.217\sql2008r2;Initial Catalog=TK_GMW;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
|
||||
<Source Path="$(IntermediateOutputPath)AutoScripts\GMW_data.Properties.Settings.GMWConnectionString_IncrementalSchemaOnly.dacpac" dacpacAction="Deploy" />
|
||||
</Object>
|
||||
<UpdateFrom Type="Web.Config">
|
||||
<Source MatchValue="Data Source=10.74.82.217\sql2008r2;Initial Catalog=TK_GMW;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
|
||||
</UpdateFrom>
|
||||
</ObjectGroup>
|
||||
</Objects>
|
||||
</PublishDatabaseSettings>
|
||||
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
|
||||
<PrecompileBeforePublish>True</PrecompileBeforePublish>
|
||||
<EnableUpdateable>True</EnableUpdateable>
|
||||
<DebugSymbols>False</DebugSymbols>
|
||||
<WDPMergeOption>DonotMerge</WDPMergeOption>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<MSDeployParameterValue Include="$(DeployParameterPrefix)GMW_data.Properties.Settings.GMWConnectionString-Web.config Connection String" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
|
||||
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<WebPublishMethod>MSDeploy</WebPublishMethod>
|
||||
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
|
||||
<LastUsedPlatform>Any CPU</LastUsedPlatform>
|
||||
<SiteUrlToLaunchAfterPublish />
|
||||
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
|
||||
<ExcludeApp_Data>False</ExcludeApp_Data>
|
||||
<MSDeployServiceURL>https://10.74.82.218:8172/MsDeploy.axd</MSDeployServiceURL>
|
||||
<DeployIisAppPath>Default Web Site/GMW</DeployIisAppPath>
|
||||
<RemoteSitePhysicalPath />
|
||||
<SkipExtraFilesOnServer>True</SkipExtraFilesOnServer>
|
||||
<MSDeployPublishMethod>WMSVC</MSDeployPublishMethod>
|
||||
<EnableMSDeployBackup>True</EnableMSDeployBackup>
|
||||
<UserName>Administrator</UserName>
|
||||
<_SavePWD>True</_SavePWD>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
+2
-2
@@ -5,7 +5,7 @@ by editing this MSBuild file. In order to learn more about this please visit htt
|
||||
-->
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<TimeStampOfAssociatedLegacyPublishXmlFile>2013-07-02T19:12:45.6296989+02:00</TimeStampOfAssociatedLegacyPublishXmlFile>
|
||||
<EncryptedPassword>AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAbVjPk8XiaE6hVPnucZB+eAAAAAACAAAAAAADZgAAwAAAABAAAAAKIuT9gYRdT6NzRJoTJ5doAAAAAASAAACgAAAAEAAAACBa1wUmKLBYRwfz9sDnzzoYAAAAcXHUkmaqiDUamFrj9nv68hAHfHCDaf8zFAAAAPHPHfMngM1nhXwNXMIU8ndlBZKZ</EncryptedPassword>
|
||||
<TimeStampOfAssociatedLegacyPublishXmlFile>2014-10-23T19:00:49.9701048+02:00</TimeStampOfAssociatedLegacyPublishXmlFile>
|
||||
<EncryptedPassword>AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAADfdPkbM5mUeaV6YvQx8NEwAAAAACAAAAAAADZgAAwAAAABAAAABretqmeAwoN8dwwUym0l6uAAAAAASAAACgAAAAEAAAANS9Yunkzc8Nyn9LraBErMgQAAAArKgvGhTAwNnTbdGD8tmWohQAAAC/UZP/r9BIjbarE1TjmEMK+wszYw==</EncryptedPassword>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -41,6 +41,7 @@
|
||||
<add key="IdxPosizioneTrattamenti" value="8484" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneFusi" value="7" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneSterrati" value="9" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneSterratiTemp" value="1009" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneTrattati" value="11" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!-- setup odette -->
|
||||
<add key="raggMagOdette" value="TE" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
|
||||
@@ -49,6 +49,7 @@
|
||||
<add key="IdxPosizioneTrattamenti" value="8484" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneFusi" value="7" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneSterrati" value="9" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneSterratiTemp" value="1009" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneTrattati" value="11" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Setup stampa cartellini-->
|
||||
<add key="printerCartCompleto" value="\\SRV-DEV01\MPC2500-Copy" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
|
||||
@@ -48,6 +48,7 @@
|
||||
<add key="IdxPosizioneTrattamenti" value="8484" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneFusi" value="" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneSterrati" value="9" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneSterratiTemp" value="1009" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneTrattati" value="11" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Setup stampa cartellini-->
|
||||
<add key="printerCartCompleto" value="\\SRV-DEV01\MPC2500-Copy" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
|
||||
@@ -162,6 +162,7 @@
|
||||
<add key="IdxPosizioneAnimeExt" value="2" />
|
||||
<add key="IdxPosizioneFusi" value="7" />
|
||||
<add key="IdxPosizioneSterrati" value="9" />
|
||||
<add key="IdxPosizioneSterratiTemp" value="1009" />
|
||||
<add key="IdxPosizioneTrattati" value="11" />
|
||||
<add key="IdxPosizioneFiniti" value="24" />
|
||||
<add key="IdxPosizioneRx" value="14" />
|
||||
|
||||
@@ -384,7 +384,11 @@ namespace GMW.WebUserControls
|
||||
int answ = 0;
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(float.Parse(MagClass.magazzino.taDettUDC.getUdcDetailByIdxCella(Convert.ToInt32(lblIdxCella.Text)).Compute("Sum(Qta)", "").ToString()));
|
||||
DS_magazzino.v_UdcDetailDataTable tabUdc = MagClass.magazzino.taDettUDC.getUdcDetailByIdxCella(Convert.ToInt32(lblIdxCella.Text));
|
||||
if (tabUdc.Rows.Count > 0)
|
||||
{
|
||||
answ = Convert.ToInt32(float.Parse(tabUdc.Compute("Sum(Qta)", "").ToString()));
|
||||
}
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
|
||||
@@ -350,7 +350,7 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
try
|
||||
{
|
||||
// creo nuovo UDC RX... direttametne in posizioen definitiva e con un evento differente...
|
||||
// creo nuovo UDC RX... direttamente in posizione definitiva e con un evento differente...
|
||||
udcDest = MagClass.magazzino.creaUdc(flusso, "", currParticolare, "", "", "", "", "", 0, memLayer.ML.confReadString("CodImballoRX"), "U", MagClass.magazzino.CodSoggCurrUser, 0, 0, 0, adesso, 0, statoUDC, memLayer.ML.confReadInt("IdxPosizioneRx"), "IdxPosizioneRx", codEventoUdc, "", "", adesso.Year, Request.UserHostName);
|
||||
// associo UDC a AL...
|
||||
MagClass.magazzino.taAL2UDC.Insert(destAL, udcDest, adesso, MagClass.magazzino.CodSoggCurrUser);
|
||||
|
||||
@@ -404,7 +404,7 @@ namespace GMW.WebUserControls
|
||||
txtBarcode.Focus();
|
||||
}
|
||||
/// <summary>
|
||||
/// imposto i dati dal aprticolare corrente
|
||||
/// imposto i dati dal particolare corrente
|
||||
/// </summary>
|
||||
private void impostaParticolare()
|
||||
{
|
||||
|
||||
@@ -133,7 +133,7 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
return user_std.UtSn.Traduci(lemma.ToString());
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// indica il codice articolo correntemente selezionato
|
||||
/// </summary>
|
||||
@@ -424,12 +424,17 @@ namespace GMW.WebUserControls
|
||||
DateTime adesso = DateTime.Now;
|
||||
try
|
||||
{
|
||||
// aggiungo codice linea alle note
|
||||
noteTrim = string.Format("{0}{1}{2}", Postazione.currNomeLinea, Environment.NewLine, noteTrim);
|
||||
// creo nuovo UDC del trattamento liquidi
|
||||
newUdcChild = MagClass.magazzino.creaUdc(flusso, "", particolare, "", "", "", "", "", 0, memLayer.ML.confReadString("CodImballoFusi"), "U", codSogg, qta, 0, 0, adesso, 0, statoUDC, memLayer.ML.confReadInt("IdxPosizioneFusi"), "IdxPosizioneFusi", "UDC_FUSI", noteTrim, "", adesso.Year, Request.UserHostName);
|
||||
// registro creazione nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, Postazione.name, Postazione.IP, newUdcChild, particolare, "creaUDC", string.Format("Creato nuovo UDC Fusi - qta:{0} {1}", qta, noteTrim));
|
||||
// per ora attributo linea tolto, messo nelle note...
|
||||
#if false
|
||||
// salvo attributo linea con UDC
|
||||
MagClass.magazzino.taAtt2UDC.Insert(newUdcChild, attrLINEA, "", DateTime.Now, codSogg);
|
||||
MagClass.magazzino.taAtt2UDC.Insert(newUdcChild, attrLINEA, Postazione.currCodLinea, DateTime.Now, codSogg);
|
||||
#endif
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
@@ -491,7 +496,7 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
txtNote.Text = "";
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,188 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_sterrTaglio.ascx.cs" Inherits="GMW.WebUserControls.mod_sterrTaglio" %>
|
||||
|
||||
<% if (false)
|
||||
{ %>
|
||||
<webopt:BundleReference ID="BundleReference1" runat="server" Path="~/Content/css" />
|
||||
<webopt:BundleReference ID="BundleReference2" runat="server" Path="~/Content/themes/base/css" />
|
||||
<% } %>
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-4 col-lg-3">
|
||||
<div class="panel panel-success panel-sm">
|
||||
<div class="panel-heading">
|
||||
<b><%: traduci("UDC") %></b>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-xs-12" style="font-size: 0.9em;">
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="false" AllowSorting="True" AutoGenerateColumns="False"
|
||||
OnDataBound="grView_DataBound"
|
||||
DataKeyNames="UDC" DataSourceID="ods" OnPageIndexChanged="grView_PageIndexChanged"
|
||||
OnSorted="grView_Sorted" Width="100%" OnSelectedIndexChanged="grView_SelectedIndexChanged">
|
||||
<RowStyle CssClass="ctrRowStyle" />
|
||||
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
|
||||
<EditRowStyle CssClass="ctrEditRowStyle" />
|
||||
<SelectedRowStyle CssClass="ctrSelRowStyle" />
|
||||
<FooterStyle CssClass="ctrFooter" />
|
||||
<PagerStyle CssClass="ctrHeaderPager" ForeColor="White" HorizontalAlign="Center" />
|
||||
<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 HeaderText="UDC" SortExpression="UDC">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblUDC" runat="server" Text='<%# Eval("UDC") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Particolare" SortExpression="Particolare">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblParticolare" runat="server" Text='<%# Eval("Particolare") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Qta" SortExpression="Qta" ItemStyle-HorizontalAlign="Right">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblQta" runat="server" Text='<%# Eval("Qta","{0:#}") %>' />
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Right" />
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ShowHeader="False">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="lbtDelete" runat="server" CausesValidation="False" CommandName="Select" OnClientClick="return confirm('Confermi consumo completato?')" CssClass="text-danger"><i class="glyphicon glyphicon-trash"></i></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}"
|
||||
SelectMethod="getUdcDetailByIdxCella" TypeName="GMW_data.DS_magazzinoTableAdapters.v_UdcDetailTableAdapter"
|
||||
OnDataBinding="ods_DataBinding">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter Name="IdxCella" Type="Int32" SessionField="IdxCellaLineaST" DefaultValue="0" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:Label ID="lblNumRec" runat="server" CssClass="didascalia" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4 col-lg-6">
|
||||
<div>
|
||||
<asp:Label runat="server" ID="lblParticolareAttivo" Font-Size="36pt" Text="" />
|
||||
</div>
|
||||
<div>
|
||||
<asp:Label runat="server" ID="lblDescrAttivo" Font-Size="28pt" Text="" ToolTip="particolare" />
|
||||
 
|
||||
<asp:Label runat="server" ID="lblDisegno" Font-Size="28pt" Text="" ForeColor="#FFFFFF" Font-Bold="true" ToolTip="disegno" />
|
||||
</div>
|
||||
<div>
|
||||
<asp:Label runat="server" ID="lblBarcode" Text="Barcode" />
|
||||
<br />
|
||||
<asp:TextBox runat="server" ID="txtBarcode" Height="56px" Width="100%" Font-Size="32pt" AutoPostBack="True" Style="text-align: center" TabIndex="1" />
|
||||
</div>
|
||||
<div id="divNote" runat="server">
|
||||
<div>
|
||||
<%: traduci("Note") %>
|
||||
</div>
|
||||
<div>
|
||||
<asp:TextBox runat="server" ID="txtNote" Height="120px" Width="100%" Font-Size="24pt" TextMode="MultiLine" TabIndex="2" />
|
||||
<asp:Button runat="server" ID="btnEmptyNote" Height="30px" Width="100%" OnClick="btnEmptyNote_Click" TabIndex="3" CssClass="btn btn-default" />
|
||||
</div>
|
||||
<div style="padding: 4px 0px;">
|
||||
<asp:LinkButton runat="server" ID="lbtStampaUDC" Width="100%" CssClass="btn btn-warning btn-lg" TabIndex="4" OnClick="btnStampa_Click"><i aria-hidden='true' class='fa fa-print fa-2x'></i> <%: traduci("btnStampaUdc") %></asp:LinkButton>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4 col-lg-3">
|
||||
<div class="panel panel-primary panel-sm">
|
||||
<div class="panel-heading">
|
||||
<b><%: traduci("Destinazione") %></b> (AL)
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="bg-primary">
|
||||
<asp:Label runat="server" ID="lblAL" />
|
||||
</div>
|
||||
<div style="font-size: 0.9em;">
|
||||
<asp:GridView ID="grViewDest" runat="server" AllowSorting="True" AutoGenerateColumns="False"
|
||||
DataKeyNames="UDC" DataSourceID="odsDest" Width="100%" OnSelectedIndexChanged="grViewDest_SelectedIndexChanged">
|
||||
<RowStyle CssClass="ctrRowStyle" />
|
||||
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
|
||||
<EditRowStyle CssClass="ctrEditRowStyle" />
|
||||
<SelectedRowStyle CssClass="ctrSelRowStyle" />
|
||||
<FooterStyle CssClass="ctrFooter" />
|
||||
<PagerStyle CssClass="ctrHeaderPager" ForeColor="White" HorizontalAlign="Center" />
|
||||
<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">
|
||||
<HeaderTemplate>
|
||||
<asp:LinkButton ID="btnReset" runat="server" OnClick="btnReset_Click" CssClass="btn btn-default btn-xs"><i class="glyphicon glyphicon-refresh"></i> <%: traduci("Reset") %></asp:LinkButton>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="lbtnEditQty" runat="server" CausesValidation="False" CommandName="Select" CssClass="text-success"><i class='<%# cssGlyphByQty(Eval("Qta"))%>'></i></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="UDC" SortExpression="UDC">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblUDC" runat="server" Text='<%# Eval("UDC") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Particolare" SortExpression="Particolare">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblParticolare" runat="server" Text='<%# Eval("Particolare") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Qta" SortExpression="Qta" ItemStyle-HorizontalAlign="Right">
|
||||
<ItemTemplate>
|
||||
<span style="padding: 0px 4px;">
|
||||
<b>
|
||||
<asp:Label ID="lblQta" runat="server" Text='<%# Eval("Qta","{0:#}") %>' /></b>
|
||||
</span>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Right"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ShowHeader="False">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="lbtDelete" runat="server" CausesValidation="False" CommandName="Delete" OnClientClick="return confirm('Confermi eliminazione?')" CssClass="text-danger" Visible='<%# canDelete(Eval("Qta")) %>'><i class="glyphicon glyphicon-trash"></i></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="odsDest" runat="server" OldValuesParameterFormatString="{0}"
|
||||
SelectMethod="getByAL" TypeName="GMW_data.DS_magazzinoTableAdapters.v_UdcDetailTableAdapter" DeleteMethod="deleteQuery">
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="UDC" Type="String" />
|
||||
</DeleteParameters>
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="lblAL" DefaultValue="AL0000" Name="AL" PropertyName="Text" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="panel panel-default panel-sm">
|
||||
<div class="panel-heading">
|
||||
<b><%: traduci("lblCesta") %></b>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<asp:TextBox runat="server" ID="txtCesta" Width="200px" Font-Size="28pt" Style="text-align: center" palceholder="num cesta" AutoPostBack="True" OnTextChanged="txtCesta_TextChanged" />
|
||||
</div>
|
||||
</div>
|
||||
<div id="divQta" runat="server" class="panel panel-default panel-sm">
|
||||
<div class="panel-heading">
|
||||
<b><%: traduci("Qta") %></b>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<asp:TextBox runat="server" ID="txtQta" Height="56px" Width="100%" Font-Size="32pt" Style="text-align: center" TabIndex="6" AutoPostBack="true" OnTextChanged="txtQta_TextChanged" />
|
||||
<asp:LinkButton runat="server" ID="lbtUpdQty" Font-Size="18pt" CssClass="btn btn-success" Width="100%" OnClick="lbtUpdQty_Click"><i aria-hidden='true' class='glyphicon glyphicon-pencil'></i> <%: traduci("updateQty") %></asp:LinkButton>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,963 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using SteamWare;
|
||||
using GMW_data;
|
||||
|
||||
namespace GMW.WebUserControls
|
||||
{
|
||||
public partial class mod_sterrTaglio : System.Web.UI.UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// flusso associato (hard coded) a sterrati
|
||||
/// </summary>
|
||||
protected string flusso = "ST";
|
||||
/// <summary>
|
||||
/// stato associato (hard coded) a sterrati
|
||||
/// </summary>
|
||||
protected string statoUDC = "Sterr";
|
||||
/// <summary>
|
||||
/// tipo di evento associato alla creazione dell'UDC
|
||||
/// </summary>
|
||||
protected string eventoUDC = "UDC_STTA";
|
||||
/// <summary>
|
||||
/// tipo di evento associato alla modifica qta dell'UDC
|
||||
/// </summary>
|
||||
protected string eventoUDC_qta = "UDC_QTY";
|
||||
public event EventHandler eh_reqUpdate;
|
||||
/// <summary>
|
||||
/// stringa UID univoca
|
||||
/// </summary>
|
||||
public string uid
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.UniqueID.Replace("$", "_").Replace("-", "_");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// caricamento pagina
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
// imposto destAL
|
||||
destAL = AlByCella;
|
||||
traduciObj();
|
||||
idxCella = Postazione.currIdxCella;
|
||||
}
|
||||
setVisibility();
|
||||
doChecks();
|
||||
}
|
||||
/// <summary>
|
||||
/// IDX cella associata alla linea corrente
|
||||
/// </summary>
|
||||
protected int idxCella
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
if (memLayer.ML.isInSessionObject("IdxCellaLineaST"))
|
||||
{
|
||||
answ = memLayer.ML.IntSessionObj("IdxCellaLineaST");
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("IdxCellaLineaST", value);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Codice AL associato alla cella corrente...
|
||||
/// </summary>
|
||||
protected string AlByCella
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
answ = string.Format("ALS00{0}", Postazione.currCodCella);
|
||||
// controllo se esista AL sennò lo creo...
|
||||
if (MagClass.magazzino.taEA.getByAL(answ).Rows.Count == 0)
|
||||
{
|
||||
MagClass.magazzino.taEA.Insert(answ, true, DateTime.Now, MagClass.magazzino.CodSoggCurrUser, "", "");
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Codice AL target
|
||||
/// </summary>
|
||||
protected string destAL
|
||||
{
|
||||
get
|
||||
{
|
||||
return lblAL.Text.Trim();
|
||||
}
|
||||
set
|
||||
{
|
||||
lblAL.Text = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// richiesta (ri)stampa UDC
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
public void ristampa()
|
||||
{
|
||||
MagClass.magazzino.stampaUdc(udcReq, Postazione.printer, tipoCartellino.cartSterr, Request.UserHostName);
|
||||
// registro ri-stampa UDC
|
||||
DateTime adesso = DateTime.Now;
|
||||
// calcolo particolare...
|
||||
DS_magazzino.ElencoCartelliniRow rigaUDC;
|
||||
string particolare = "";
|
||||
try
|
||||
{
|
||||
rigaUDC = MagClass.magazzino.taCartellini.getByUdc(udcReq)[0];
|
||||
particolare = rigaUDC.Particolare;
|
||||
}
|
||||
catch
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Errore recupero particolare UDC Sterratura {0}", udcReq), tipoLog.EXCEPTION);
|
||||
}
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, Postazione.name, Postazione.IP, udcReq, particolare, "stampaUDC", "Ri-Stampato UDC Sterratura");
|
||||
// raise dell'evento
|
||||
if (eh_reqUpdate != null)
|
||||
{
|
||||
eh_reqUpdate(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// udc da stampare
|
||||
/// </summary>
|
||||
protected string udcReq
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("udcSelSAO");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// controlla particolare selezionato
|
||||
/// </summary>
|
||||
private void checkParticolare()
|
||||
{
|
||||
if (currParticolare != "")
|
||||
{
|
||||
lblParticolareAttivo.Text = string.Format("Particolare selezionato <b>{0}</b>", currParticolare);
|
||||
// aggiungo descrizione del particolare
|
||||
string descr = "";
|
||||
string disegno = "";
|
||||
try
|
||||
{
|
||||
DS_magazzino.AnagParticolariRow riga = MagClass.magazzino.taAnagPart.likeSearch(currParticolare, memLayer.ML.StringSessionObj("CodCS"))[0];
|
||||
descr = riga.DescParticolare;
|
||||
disegno = string.Format("( {0} )", riga.DisegnoGrezzo);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
lblDescrAttivo.Text = descr;
|
||||
lblDisegno.Text = disegno;
|
||||
}
|
||||
else
|
||||
{
|
||||
lblParticolareAttivo.Text = "...";
|
||||
lblDescrAttivo.Text = "";
|
||||
lblDisegno.Text = "";
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua controlli visibilità
|
||||
/// </summary>
|
||||
private void doChecks()
|
||||
{
|
||||
checkBarcode();
|
||||
checkStampa();
|
||||
checkParticolare();
|
||||
}
|
||||
/// <summary>
|
||||
/// sistemo labels oggetti
|
||||
/// </summary>
|
||||
private void traduciObj()
|
||||
{
|
||||
//txtBox
|
||||
txtQta.Text = memLayer.ML.confReadString("QtaImballoSterr");
|
||||
// buttons
|
||||
btnEmptyNote.Text = traduci("btnEmptyNote");
|
||||
}
|
||||
/// <summary>
|
||||
/// restituisce il nome della pagina corrente
|
||||
/// </summary>
|
||||
protected string PagCorrente
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
Uri MyUrl = Request.Url;
|
||||
string delimStr = "/";
|
||||
char[] delimiter = delimStr.ToCharArray();
|
||||
string[] finalUrl = MyUrl.LocalPath.ToString().Split(delimiter);
|
||||
int n = finalUrl.Length;
|
||||
answ = finalUrl[n - 1].ToString();
|
||||
DataLayer_AnagGen.PermessiRow riga = (DataLayer_AnagGen.PermessiRow)user_std.UtSn.permessi.Select(string.Format("URL = '{0}'", answ))[0];
|
||||
answ = riga.NOME;
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper traduzione
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduci(object lemma)
|
||||
{
|
||||
return user_std.UtSn.Traduci(lemma.ToString());
|
||||
}
|
||||
/// <summary>
|
||||
/// indica il codice articolo correntemente selezionato
|
||||
/// </summary>
|
||||
protected string currParticolare
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj(string.Format("currParticolare_{0}", uid));
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal(string.Format("currParticolare_{0}", uid), value, memLayer.ML.confReadBool("keepParticolareSel"));
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// indica UDC correntemente selezionato
|
||||
/// </summary>
|
||||
protected string currUDC
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj(string.Format("UDC_{0}", uid));
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal(string.Format("UDC_{0}", uid), value, memLayer.ML.confReadBool("keepParticolareSel"));
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// indica se i caratteri vadano forzati a maiuscoli
|
||||
/// </summary>
|
||||
public bool forceUppercase
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.confReadBool("forceUppercase");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// num pezzi dell'ultimo UDC del particolare generato
|
||||
/// </summary>
|
||||
public int pezziUdc
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
try
|
||||
{
|
||||
answ = (int)MagClass.magazzino.taCartellini.getLastByParticolareStato(memLayer.ML.StringSessionObj("CodCS"), currParticolare, statoUDC)[0].Qta;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// decodifica il tipo barcode acquisito
|
||||
/// </summary>
|
||||
public tipoCodiceBarcode tipoBCode
|
||||
{
|
||||
get
|
||||
{
|
||||
tipoCodiceBarcode answ = tipoCodiceBarcode.ND;
|
||||
int trovati = 0;
|
||||
// controllo non si tratti di un comando...
|
||||
string preCmd = memLayer.ML.confReadString("prefComandi");
|
||||
if (barcodeIn.StartsWith(preCmd))
|
||||
{
|
||||
answ = tipoCodiceBarcode.Comando;
|
||||
}
|
||||
else if ((TermClass.Ter.riconosciBarcode(barcodeIn) == tipoCodiceBarcode.Particolare)) // è un particolare...
|
||||
{
|
||||
answ = tipoCodiceBarcode.Particolare;
|
||||
}
|
||||
else
|
||||
{
|
||||
try
|
||||
{
|
||||
// cerco tra gitterbox (UDC)...
|
||||
trovati = MagClass.magazzino.taCartellini.getByUdc(barcodeIn).Rows.Count;
|
||||
if (trovati > 0)
|
||||
{
|
||||
answ = tipoCodiceBarcode.UDC;
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// valore barcode
|
||||
/// </summary>
|
||||
public string barcodeIn
|
||||
{
|
||||
get
|
||||
{
|
||||
return txtBarcode.Text.Trim();
|
||||
}
|
||||
set
|
||||
{
|
||||
txtBarcode.Text = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// qta pezzi TOTALE
|
||||
/// </summary>
|
||||
public int qta
|
||||
{
|
||||
get
|
||||
{
|
||||
int qta = 0;
|
||||
try
|
||||
{
|
||||
qta = Convert.ToInt32(txtQta.Text.Trim());
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return qta;
|
||||
}
|
||||
set
|
||||
{
|
||||
txtQta.Text = value.ToString();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// controlla se ci sia un barcode
|
||||
/// </summary>
|
||||
private void checkBarcode()
|
||||
{
|
||||
if (barcodeIn != "")
|
||||
{
|
||||
Postazione.messaggiText = string.Format("Barcode digitato: {0}", barcodeIn);
|
||||
switch (tipoBCode)
|
||||
{
|
||||
case tipoCodiceBarcode.UDC:
|
||||
// procedo solo se UDC esistente
|
||||
if (MagClass.magazzino.checkUDC(barcodeIn))
|
||||
{
|
||||
/********************************************************************
|
||||
* procedo per UDC in ingresso:
|
||||
* - deve essere di tipo IN
|
||||
* - se NON c'è UDC in AL dest a parti particolare LO CREO
|
||||
* - se c'era già UDC per lo stesso particolare --> consumo (il vecchio)
|
||||
* - associo UDC letto ad UDC in AL dest a pari particolare
|
||||
*
|
||||
********************************************************************/
|
||||
|
||||
// controllo IdxPosizione dell'UDC e confronto con posizione in webconfig x fusi (pre sterratura/taglio)
|
||||
int IdxPosizione = DataProxy.obj.taCartellini.stp_getByUdc(barcodeIn)[0].IdxPosizione;
|
||||
if (IdxPosizione == memLayer.ML.confReadInt("IdxPosizioneFusi"))
|
||||
{
|
||||
|
||||
// calcolo nuovo particolare
|
||||
string newPart = DataProxy.obj.taCartellini.stp_getByUdc(barcodeIn)[0].Particolare;
|
||||
string udcDest = "";
|
||||
// imposto particolare!
|
||||
currParticolare = newPart;
|
||||
|
||||
// controllo SE esista già UDC in AL dest... altrimenti CREO!!!
|
||||
udcDest = checkCreaUDC();
|
||||
// associo UDC con quello di destinazione SE NECESSARIO
|
||||
MagClass.magazzino.associaUdcParent(udcDest, barcodeIn, true);
|
||||
|
||||
int idxCellaCurr = 0;
|
||||
try
|
||||
{
|
||||
idxCellaCurr = MagClass.magazzino.taPosUdcCorr.getByUDC(barcodeIn)[0].IdxCella;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// controllo se UDC non sia già stato spostato in posizione... ds magazzino, posiz udc corrente, get By udc
|
||||
if (idxCellaCurr == Postazione.currIdxCella)
|
||||
{
|
||||
Postazione.messaggiText += " - Attenzione, UDC già caricato!";
|
||||
Postazione.CssClass = "stileComandoKo";
|
||||
// controllo SE esista già UDC in AL dest... altrimenti CREO!!!
|
||||
checkCreaUDC();
|
||||
}
|
||||
else
|
||||
{
|
||||
// verifico per eventuale consumo vecchio UDC... cerco nella posizione
|
||||
DS_magazzino.v_UdcDetailDataTable tabUdcDet = null;
|
||||
try
|
||||
{
|
||||
// cerco nella posizione
|
||||
tabUdcDet = MagClass.magazzino.taDettUDC.getUdcDetailByIdxCella(idxCella);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// carico UDC letto in cella...
|
||||
DateTime adesso = DateTime.Now;
|
||||
string noteTrim = Postazione.currNomeLinea;
|
||||
// cerco se NON ci sia l'UDC letto...
|
||||
if (tabUdcDet.Select(string.Format("UDC = '{0}'", barcodeIn)).Length == 0)
|
||||
{
|
||||
string oldUdc = "";
|
||||
try
|
||||
{
|
||||
oldUdc = ((DS_magazzino.v_UdcDetailRow)tabUdcDet.Select(string.Format("Particolare = '{0}'", currParticolare))[0]).UDC;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// se trovo un altro UDC dello stesso particolare...
|
||||
if (oldUdc != "")
|
||||
{
|
||||
// consumo UDC
|
||||
consumaUdc(oldUdc);
|
||||
}
|
||||
|
||||
// se ho cod cella sposto UDC in nuova posizione!
|
||||
MagClass.magazzino.spostaUDC(memLayer.ML.StringSessionObj("CodCS"), barcodeIn, Postazione.currIdxCella, memLayer.ML.confReadBool("spostaUdcResettaLdp"), Request.UserHostName);
|
||||
// registro spostamento UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, Postazione.name, Postazione.IP, barcodeIn, currParticolare, "spostaUDC", string.Format("Caricato UDC Fusi su linea {2}, qta: {0} {1} ", qta, noteTrim, Postazione.currCodLinea));
|
||||
|
||||
}
|
||||
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// update
|
||||
doUpdate();
|
||||
break;
|
||||
default:
|
||||
Postazione.messaggiText += " - codice <b>non riconosciuto</b>!";
|
||||
Postazione.CssClass = "stileComandoND";
|
||||
break;
|
||||
}
|
||||
barcodeIn = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
Postazione.messaggiText = traduci("AttesaBCode");
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
}
|
||||
txtBarcode.Focus();
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua consumo UDC
|
||||
/// </summary>
|
||||
/// <param name="oldUdc"></param>
|
||||
private void consumaUdc(string oldUdc)
|
||||
{
|
||||
// se è consumabile (IdxPosizione > 0)...
|
||||
if (MagClass.magazzino.udcMpIsConsumabile(oldUdc))
|
||||
{
|
||||
// consumo UDC
|
||||
MagClass.magazzino.scaricaUdcMpWip(oldUdc, Request.UserHostName);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// crea eventualmente UDC per particolare in AL di destinazione e restituisce codice UDC
|
||||
/// </summary>
|
||||
/// <param name="qty"></param>
|
||||
/// <param name="particolare"></param>
|
||||
private string checkCreaUDC()
|
||||
{
|
||||
string udcDest = "";
|
||||
DateTime adesso = DateTime.Now;
|
||||
// verifico se ho già quel particolare tra quelli dell'AL...
|
||||
try
|
||||
{
|
||||
udcDest = MagClass.magazzino.taCartellini.getByParticolareAL(currParticolare, destAL)[0].UDC;
|
||||
}
|
||||
catch
|
||||
{
|
||||
udcDest = "";
|
||||
}
|
||||
if (udcDest == "")
|
||||
{
|
||||
try
|
||||
{
|
||||
// creo nuovo UDC ST... direttamente in posizione definitiva e con un evento differente...
|
||||
udcDest = MagClass.magazzino.creaUdc(flusso, "", currParticolare, "", "", "", "", "", 0, memLayer.ML.confReadString("CodImballoSterr"), "U", MagClass.magazzino.CodSoggCurrUser, 0, 0, 0, adesso, 0, statoUDC, memLayer.ML.confReadInt("IdxPosizioneSterratiTemp"), "IdxPosizioneSterratiTemp", eventoUDC, "", "", adesso.Year, Request.UserHostName);
|
||||
// associo UDC a AL...
|
||||
MagClass.magazzino.taAL2UDC.Insert(destAL, udcDest, adesso, MagClass.magazzino.CodSoggCurrUser);
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Errore in creazione UDC temp ST x travaso: {0}{1}", Environment.NewLine, exc));
|
||||
}
|
||||
}
|
||||
if (udcDest != "")
|
||||
{
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
Postazione.warningText = "";
|
||||
Postazione.messaggiText = traduci("partAdded");
|
||||
}
|
||||
else
|
||||
{
|
||||
Postazione.CssClass = "stileComandoKo";
|
||||
Postazione.warningText = traduci("ErroreUdcDest");
|
||||
}
|
||||
grViewDest.DataBind();
|
||||
return udcDest;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// aggiorna tabella + focus a barcode
|
||||
/// </summary>
|
||||
public void doUpdate()
|
||||
{
|
||||
idxCella = Postazione.currIdxCella;
|
||||
destAL = AlByCella;
|
||||
setVisibility();
|
||||
checkStampa();
|
||||
grView.DataBind();
|
||||
grViewDest.DataBind();
|
||||
txtBarcode.Focus();
|
||||
// raise dell'evento
|
||||
if (eh_reqUpdate != null)
|
||||
{
|
||||
eh_reqUpdate(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// controllo l'abilitazioen alla stampa UDC:
|
||||
/// - particolare ok
|
||||
/// - qta > 0
|
||||
/// - udc da consumo totale/parziale
|
||||
/// altrimenti disabilito btn stampa
|
||||
/// </summary>
|
||||
private void checkStampa()
|
||||
{
|
||||
bool stampaOk = false;
|
||||
//controllo siano inseriti valori qta
|
||||
if (numCesta != "" && numCesta != "0000" && qta > 0)
|
||||
{
|
||||
// controllo ci siano particolare
|
||||
if (currParticolare != "")
|
||||
{
|
||||
stampaOk = true;
|
||||
txtNote.Focus();
|
||||
}
|
||||
}
|
||||
divNote.Visible = stampaOk;
|
||||
}
|
||||
/// <summary>
|
||||
/// genera i barcode di
|
||||
/// - trattamenti
|
||||
/// - nuovo x pezzi liquidi
|
||||
/// e lancia la relativa stampa
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnStampa_Click(object sender, EventArgs e)
|
||||
{
|
||||
string[] stringSeparators = new string[] { "#" };
|
||||
// verifico postazione x procedere...
|
||||
if (Postazione.printer != "n.d.")
|
||||
{
|
||||
//int qta = memLayer.ML.confReadInt("QtaImballoSterr");
|
||||
string noteTrim = txtNote.Text.Trim();
|
||||
string lineaCesta = string.Format("{0} | cesta: {1}", Postazione.currNomeLinea, numCesta);
|
||||
noteTrim = string.Format("{0}{1}{2}", lineaCesta, Environment.NewLine, noteTrim);
|
||||
|
||||
// effettuo controlli che cod_soggetto e cod particolare siano disponibili...
|
||||
if (MagClass.magazzino.CodSoggCurrUser != "" && currParticolare != "")
|
||||
{
|
||||
|
||||
// aggiorno note e posizione da temp a definitiv x UDC...
|
||||
MagClass.magazzino.updateNotePosizioneUDC(currUDC, noteTrim, memLayer.ML.confReadInt("IdxPosizioneSterrati"));
|
||||
// tolgo UDC da AL corrente...
|
||||
MagClass.magazzino.taAL2UDC.deleteQuery(destAL, currUDC);
|
||||
|
||||
// ora stampo il nuovo cartellino!!!
|
||||
MagClass.magazzino.stampaUdc(currUDC, Postazione.printer, tipoCartellino.cartSterr, Request.UserHostName);
|
||||
// incremento timing...
|
||||
DateTime adesso = DateTime.Now;
|
||||
adesso = adesso.AddSeconds(2);
|
||||
// registro stampa nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, Postazione.name, Postazione.IP, currUDC, currParticolare, "stampaUDC", "Stampato UDC Sterrato");
|
||||
// svuoto campo cesta...
|
||||
numCesta = "";
|
||||
// resetto
|
||||
doResetData();
|
||||
}
|
||||
else
|
||||
{
|
||||
httpLog(string.Format("STERRATI, Errore persi utente/particolare, ricarico!"), tipoLog.ERROR);
|
||||
Response.Redirect("~/login.aspx");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Response.Redirect("~/menu.aspx");
|
||||
}
|
||||
doUpdate();
|
||||
// raise dell'evento
|
||||
if (eh_reqUpdate != null)
|
||||
{
|
||||
eh_reqUpdate(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua il consumo di tutti gli UDC inviati come array di stringhe
|
||||
/// </summary>
|
||||
/// <param name="UDC_P"></param>
|
||||
private void consumaUdc(string[] UDC_P)
|
||||
{
|
||||
if (UDC_P.Length > 0)
|
||||
{
|
||||
// ciclo
|
||||
foreach (string udc_p in UDC_P)
|
||||
{
|
||||
// se UDC è NON vuoto ed esiste
|
||||
if (udc_p != "" && MagClass.magazzino.checkUDC(udc_p))
|
||||
{
|
||||
// se è consumabile (IdxPosizione > 0)...
|
||||
if (MagClass.magazzino.udcMpIsConsumabile(udc_p))
|
||||
{
|
||||
// consumo UDC
|
||||
MagClass.magazzino.scaricaUdcMpWip(udc_p, Request.UserHostName);
|
||||
// sposta UDC da posizione corrente a nessuna...
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
///associa nuovo UDC ad elenco UDC
|
||||
/// </summary>
|
||||
/// <param name="newUdcChild">UDC da associare come child</param>
|
||||
/// <param name="UDC_P">vettore di UDC da associare come parent</param>
|
||||
private void associaUdc(string newUdcChild, string[] UDC_P)
|
||||
{
|
||||
if (UDC_P.Length > 0)
|
||||
{
|
||||
// ciclo
|
||||
foreach (string udc_p in UDC_P)
|
||||
{
|
||||
// se UDC è NON vuoto ed esiste
|
||||
if (udc_p != "" && MagClass.magazzino.checkUDC(udc_p))
|
||||
{
|
||||
MagClass.magazzino.associaUdcParent(newUdcChild, udc_p);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica che il vettore di UDC abbia tutto lo stesso particolare e lo restituisce, altrimenti restituisce ""
|
||||
/// </summary>
|
||||
/// <param name="UDC_P">vettore di UDC da verificare</param>
|
||||
private string checkPartUDC(string[] UDC_P)
|
||||
{
|
||||
string answ = "";
|
||||
if (UDC_P.Length > 0)
|
||||
{
|
||||
// imposto il primo particolare...
|
||||
answ = MagClass.magazzino.getParticolareByUDC(UDC_P[0]);
|
||||
// ciclo
|
||||
foreach (string udc_p in UDC_P)
|
||||
{
|
||||
if (MagClass.magazzino.getParticolareByUDC(udc_p) != answ) answ = ""; // se uno è diverso "azzero"
|
||||
}
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper per log con salvataggio dell'IP del chiamante
|
||||
/// </summary>
|
||||
/// <param name="_testoPre"></param>
|
||||
/// <returns></returns>
|
||||
public bool httpLog(string _testoPre)
|
||||
{
|
||||
bool answ = false;
|
||||
logger.lg.scriviLog(Postazione.IP + _testoPre);
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper per log con salvataggio dell'IP del chiamante
|
||||
/// </summary>
|
||||
/// <param name="_testoPre"></param>
|
||||
/// <returns></returns>
|
||||
public bool httpLog(string testoLog, tipoLog tipo)
|
||||
{
|
||||
bool answ = false;
|
||||
logger.lg.scriviLog(Postazione.IP + testoLog, tipo);
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua reset dati
|
||||
/// </summary>
|
||||
public void doResetData()
|
||||
{
|
||||
// resetto i dati QtaTot e particolare...
|
||||
qta = 0;
|
||||
currParticolare = "";
|
||||
txtQta.Text = "";
|
||||
grViewDest.SelectedIndex = -1;
|
||||
doChecks();
|
||||
}
|
||||
/// <summary>
|
||||
/// svuoto le note
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnEmptyNote_Click(object sender, EventArgs e)
|
||||
{
|
||||
txtNote.Text = "";
|
||||
}
|
||||
/// <summary>
|
||||
/// passo alla modalità IN
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnIn_Click(object sender, EventArgs e)
|
||||
{
|
||||
Response.Redirect("SterrTaglioIN.aspx");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// effettua refresh (su db) del blocco postazione
|
||||
/// </summary>
|
||||
/// <param name="codLinea"></param>
|
||||
private void refreshBloccoPost(string codLinea)
|
||||
{
|
||||
// resetto usi linee precedenti..
|
||||
MagClass.magazzino.taAL.resetPost(Postazione.name);
|
||||
// se la linea non è "base" = "Sel linea", finisce x "0"
|
||||
if (codLinea.Substring(codLinea.Length - 1) != "0")
|
||||
{
|
||||
// salvo su DB che sto occupando linea...
|
||||
MagClass.magazzino.taAL.updatePost(codLinea, Postazione.name);
|
||||
}
|
||||
}
|
||||
|
||||
protected void grView_PageIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// fix dell'ODS
|
||||
checkFixOds();
|
||||
}
|
||||
protected void grView_Sorted(object sender, EventArgs e)
|
||||
{
|
||||
// fix dell'ODS
|
||||
checkFixOds();
|
||||
}
|
||||
/// <summary>
|
||||
/// aggiorno ods al binding..
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ods_DataBinding(object sender, EventArgs e)
|
||||
{
|
||||
// fix dell'ODS
|
||||
checkFixOds();
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica se attivo filtro company e imposta ods di conseguenza...
|
||||
/// </summary>
|
||||
private void checkFixOds()
|
||||
{
|
||||
}
|
||||
/// <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>
|
||||
/// evento selezione grView destinazione: ricarico dati!
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void grViewDest_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// ricarico dati dell'UDC come particolare e quantità...
|
||||
currUDC = grViewDest.SelectedDataKey["UDC"].ToString();
|
||||
if (MagClass.magazzino.checkUDC(currUDC))
|
||||
{
|
||||
currParticolare = DataProxy.obj.taCartellini.stp_getByUdc(currUDC)[0].Particolare;
|
||||
//qta = Convert.ToInt32(DataProxy.obj.taCartellini.stp_getByUdc(currUDC)[0].Qta);
|
||||
}
|
||||
Postazione.messaggiText = traduci("partSelected");
|
||||
Postazione.warningText = "";
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
doChecks();
|
||||
doUpdate();
|
||||
// fisso focus su note!
|
||||
txtNote.Focus();
|
||||
}
|
||||
/// <summary>
|
||||
/// sistema modalità input
|
||||
/// </summary>
|
||||
private void setVisibility()
|
||||
{
|
||||
bool showBtn = false;
|
||||
// ora controllo btn quantità
|
||||
if (grViewDest.SelectedIndex >= 0)
|
||||
{
|
||||
showBtn = true;
|
||||
}
|
||||
divQta.Visible = showBtn;
|
||||
}
|
||||
/// <summary>
|
||||
/// reset della selezione
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnReset_Click(object sender, EventArgs e)
|
||||
{
|
||||
grViewDest.SelectedIndex = -1;
|
||||
qta = 0;
|
||||
currUDC = "";
|
||||
currParticolare = "";
|
||||
setVisibility();
|
||||
doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// update Qty x UDC selezionato...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lbtUpdQty_Click(object sender, EventArgs e)
|
||||
{
|
||||
aggiornaQta();
|
||||
}
|
||||
|
||||
private void aggiornaQta()
|
||||
{
|
||||
MagClass.magazzino.taCartellini.updateQty(currUDC, MagClass.magazzino.CodSoggCurrUser, "U", eventoUDC_qta, qta);
|
||||
currUDC = "";
|
||||
currParticolare = "";
|
||||
grViewDest.SelectedIndex = -1;
|
||||
setVisibility();
|
||||
doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// Numero cesta inserito
|
||||
/// </summary>
|
||||
public string numCesta
|
||||
{
|
||||
get
|
||||
{
|
||||
return txtCesta.Text.Trim();
|
||||
}
|
||||
set
|
||||
{
|
||||
txtCesta.Text = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// evento cambio num cesta/grappolo
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void txtCesta_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
txtCesta.Text = txtCesta.Text.ToUpper().Trim().PadLeft(4, '0').Substring(0, 4);
|
||||
doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// fornisce in output la corretta classe css x icona
|
||||
/// </summary>
|
||||
/// <param name="qta"></param>
|
||||
/// <returns></returns>
|
||||
public string cssGlyphByQty(object _qta)
|
||||
{
|
||||
string answ = "glyphicon glyphicon-pencil";
|
||||
int qtaUDC = 0;
|
||||
try
|
||||
{
|
||||
qtaUDC = Convert.ToInt32(_qta);
|
||||
}
|
||||
catch { }
|
||||
if (qtaUDC > 0)
|
||||
{
|
||||
answ = "glyphicon glyphicon-print";
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// qui la seleizone è x scaricare...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
consumaUdc(grView.SelectedValue.ToString());
|
||||
doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// determina se sia possibile cancellare un record, se qta > 0
|
||||
/// </summary>
|
||||
/// <param name="_qta"></param>
|
||||
/// <returns></returns>
|
||||
public bool canDelete(object _qta)
|
||||
{
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(_qta) == 0;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// evento cambio qta
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void txtQta_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
aggiornaQta();
|
||||
}
|
||||
}
|
||||
}
|
||||
+204
@@ -0,0 +1,204 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 GMW.WebUserControls {
|
||||
|
||||
|
||||
public partial class mod_sterrTaglio {
|
||||
|
||||
/// <summary>
|
||||
/// BundleReference1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference1;
|
||||
|
||||
/// <summary>
|
||||
/// BundleReference2 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference2;
|
||||
|
||||
/// <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;
|
||||
|
||||
/// <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>
|
||||
/// lblParticolareAttivo 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 lblParticolareAttivo;
|
||||
|
||||
/// <summary>
|
||||
/// lblDescrAttivo 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 lblDescrAttivo;
|
||||
|
||||
/// <summary>
|
||||
/// lblDisegno 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 lblDisegno;
|
||||
|
||||
/// <summary>
|
||||
/// lblBarcode 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 lblBarcode;
|
||||
|
||||
/// <summary>
|
||||
/// txtBarcode 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 txtBarcode;
|
||||
|
||||
/// <summary>
|
||||
/// divNote 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.HtmlGenericControl divNote;
|
||||
|
||||
/// <summary>
|
||||
/// txtNote 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 txtNote;
|
||||
|
||||
/// <summary>
|
||||
/// btnEmptyNote 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 btnEmptyNote;
|
||||
|
||||
/// <summary>
|
||||
/// lbtStampaUDC 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.LinkButton lbtStampaUDC;
|
||||
|
||||
/// <summary>
|
||||
/// lblAL 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 lblAL;
|
||||
|
||||
/// <summary>
|
||||
/// grViewDest 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 grViewDest;
|
||||
|
||||
/// <summary>
|
||||
/// odsDest 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 odsDest;
|
||||
|
||||
/// <summary>
|
||||
/// txtCesta 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 txtCesta;
|
||||
|
||||
/// <summary>
|
||||
/// divQta 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.HtmlGenericControl divQta;
|
||||
|
||||
/// <summary>
|
||||
/// txtQta 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 txtQta;
|
||||
|
||||
/// <summary>
|
||||
/// lbtUpdQty 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.LinkButton lbtUpdQty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,138 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_sterrTaglioFC.ascx.cs" Inherits="GMW.WebUserControls.mod_sterrTaglioFC" %>
|
||||
|
||||
<% if (false)
|
||||
{ %>
|
||||
<webopt:BundleReference ID="BundleReference1" runat="server" Path="~/Content/css" />
|
||||
<webopt:BundleReference ID="BundleReference2" runat="server" Path="~/Content/themes/base/css" />
|
||||
<% } %>
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-4 col-lg-3">
|
||||
<h2>Gestione Sterrati</h2>
|
||||
<h1>FUORICICLO</h1>
|
||||
</div>
|
||||
<div class="col-sm-4 col-lg-6">
|
||||
<div>
|
||||
<asp:Label runat="server" ID="lblParticolareAttivo" Font-Size="36pt" Text="" />
|
||||
</div>
|
||||
<div>
|
||||
<asp:Label runat="server" ID="lblDescrAttivo" Font-Size="28pt" Text="" ToolTip="particolare" />
|
||||
 
|
||||
<asp:Label runat="server" ID="lblDisegno" Font-Size="28pt" Text="" ForeColor="#FFFFFF" Font-Bold="true" ToolTip="disegno" />
|
||||
</div>
|
||||
<div>
|
||||
<asp:Label runat="server" ID="lblBarcode" Text="Barcode" />
|
||||
<br />
|
||||
<asp:TextBox runat="server" ID="txtBarcode" Height="56px" Width="100%" Font-Size="32pt" AutoPostBack="True" Style="text-align: center" TabIndex="1" />
|
||||
</div>
|
||||
<div id="divNote" runat="server">
|
||||
<div>
|
||||
<%: traduci("Note") %>
|
||||
</div>
|
||||
<div>
|
||||
<asp:TextBox runat="server" ID="txtNote" Height="120px" Width="100%" Font-Size="24pt" TextMode="MultiLine" TabIndex="2" />
|
||||
<asp:Button runat="server" ID="btnEmptyNote" Height="30px" Width="100%" OnClick="btnEmptyNote_Click" TabIndex="3" CssClass="btn btn-default" />
|
||||
</div>
|
||||
<div style="padding: 4px 0px;">
|
||||
<asp:LinkButton runat="server" ID="lbtStampaUDC" Width="100%" CssClass="btn btn-warning btn-lg" TabIndex="4" OnClick="btnStampa_Click"><i aria-hidden='true' class='fa fa-print fa-2x'></i> <%: traduci("btnStampaUdc") %></asp:LinkButton>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4 col-lg-3">
|
||||
<div class="panel panel-primary panel-sm">
|
||||
<div class="panel-heading">
|
||||
<b><%: traduci("Destinazione") %></b> (AL)
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="bg-primary">
|
||||
<asp:Label runat="server" ID="lblAL" />
|
||||
</div>
|
||||
<div style="font-size: 0.9em;">
|
||||
<asp:GridView ID="grViewDest" runat="server" AllowSorting="True" AutoGenerateColumns="False"
|
||||
DataKeyNames="UDC" DataSourceID="odsDest" Width="100%" OnSelectedIndexChanged="grViewDest_SelectedIndexChanged">
|
||||
<RowStyle CssClass="ctrRowStyle" />
|
||||
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
|
||||
<EditRowStyle CssClass="ctrEditRowStyle" />
|
||||
<SelectedRowStyle CssClass="ctrSelRowStyle" />
|
||||
<FooterStyle CssClass="ctrFooter" />
|
||||
<PagerStyle CssClass="ctrHeaderPager" ForeColor="White" HorizontalAlign="Center" />
|
||||
<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">
|
||||
<HeaderTemplate>
|
||||
<asp:LinkButton ID="btnReset" runat="server" OnClick="btnReset_Click" CssClass="btn btn-default btn-xs"><i class="glyphicon glyphicon-refresh"></i> <%: traduci("Reset") %></asp:LinkButton>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="lbtnEditQty" runat="server" CausesValidation="False" CommandName="Select" CssClass="text-success"><i class='<%# cssGlyphByQty(Eval("Qta"))%>'></i></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%--<asp:TemplateField HeaderText="lastMov" SortExpression="lastMov" ItemStyle-Wrap="false">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lbllastMov" runat="server" Text='<%# Eval("lastMov", "{0:dd/MM HH:mm}") %>' />
|
||||
</ItemTemplate>
|
||||
<ItemStyle Wrap="False" />
|
||||
</asp:TemplateField>--%>
|
||||
<asp:TemplateField HeaderText="UDC" SortExpression="UDC">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblUDC" runat="server" Text='<%# Eval("UDC") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Particolare" SortExpression="Particolare">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblParticolare" runat="server" Text='<%# Eval("Particolare") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Qta" SortExpression="Qta" ItemStyle-HorizontalAlign="Right">
|
||||
<ItemTemplate>
|
||||
<span style="padding: 0px 4px;">
|
||||
<b>
|
||||
<asp:Label ID="lblQta" runat="server" Text='<%# Eval("Qta","{0:#}") %>' /></b>
|
||||
</span>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Right"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ShowHeader="False">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="lbtDelete" runat="server" CausesValidation="False" CommandName="Delete" OnClientClick="return confirm('Confermi eliminazione?')" CssClass="text-danger" Visible='<%# canDelete(Eval("Qta")) %>'><i class="glyphicon glyphicon-trash"></i></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="odsDest" runat="server" OldValuesParameterFormatString="{0}"
|
||||
SelectMethod="getByAL" TypeName="GMW_data.DS_magazzinoTableAdapters.v_UdcDetailTableAdapter" DeleteMethod="deleteQuery">
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="UDC" Type="String" />
|
||||
</DeleteParameters>
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="lblAL" DefaultValue="AL0000" Name="AL" PropertyName="Text" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="panel panel-default panel-sm">
|
||||
<div class="panel-heading">
|
||||
<b><%: traduci("lblCesta") %></b>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<asp:TextBox runat="server" ID="txtCesta" Width="200px" Font-Size="28pt" Style="text-align: center" palceholder="num cesta" AutoPostBack="True" OnTextChanged="txtCesta_TextChanged" />
|
||||
</div>
|
||||
</div>
|
||||
<div id="divQta" runat="server" class="panel panel-default panel-sm">
|
||||
<div class="panel-heading">
|
||||
<b><%: traduci("Qta") %></b>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<asp:TextBox runat="server" ID="txtQta" Height="56px" Width="100%" Font-Size="32pt" Style="text-align: center" TabIndex="6" />
|
||||
<asp:LinkButton runat="server" ID="lbtUpdQty" Font-Size="18pt" CssClass="btn btn-success" Width="100%" OnClick="lbtUpdQty_Click"><i aria-hidden='true' class='glyphicon glyphicon-pencil'></i> <%: traduci("updateQty") %></asp:LinkButton>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,910 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using SteamWare;
|
||||
using GMW_data;
|
||||
|
||||
namespace GMW.WebUserControls
|
||||
{
|
||||
public partial class mod_sterrTaglioFC : System.Web.UI.UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// flusso associato (hard coded) a sterrati
|
||||
/// </summary>
|
||||
protected string flusso = "ST";
|
||||
/// <summary>
|
||||
/// stato associato (hard coded) a sterrati
|
||||
/// </summary>
|
||||
protected string statoUDC = "Sterr";
|
||||
/// <summary>
|
||||
/// tipo di evento associato alla creazione dell'UDC
|
||||
/// </summary>
|
||||
protected string eventoUDC = "UDC_STTA";
|
||||
/// <summary>
|
||||
/// tipo di evento associato alla modifica qta dell'UDC
|
||||
/// </summary>
|
||||
protected string eventoUDC_qta = "UDC_QTY";
|
||||
public event EventHandler eh_reqUpdate;
|
||||
/// <summary>
|
||||
/// stringa UID univoca
|
||||
/// </summary>
|
||||
public string uid
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.UniqueID.Replace("$", "_").Replace("-", "_");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// caricamento pagina
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
// imposto destAL
|
||||
destAL = AlByCella;
|
||||
traduciObj();
|
||||
idxCella = Postazione.currIdxCella;
|
||||
}
|
||||
setVisibility();
|
||||
doChecks();
|
||||
}
|
||||
/// <summary>
|
||||
/// IDX cella associata alla linea corrente
|
||||
/// </summary>
|
||||
protected int idxCella
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
if (memLayer.ML.isInSessionObject("IdxCellaLineaST_FC"))
|
||||
{
|
||||
answ = memLayer.ML.IntSessionObj("IdxCellaLineaST_FC");
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("IdxCellaLineaST_FC", value);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Codice AL associato alla cella corrente...
|
||||
/// </summary>
|
||||
protected string AlByCella
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
answ = string.Format("ALS00{0}", Postazione.currCodCella);
|
||||
// controllo se esista AL sennò lo creo...
|
||||
if (MagClass.magazzino.taEA.getByAL(answ).Rows.Count == 0)
|
||||
{
|
||||
MagClass.magazzino.taEA.Insert(answ, true, DateTime.Now, MagClass.magazzino.CodSoggCurrUser, "", "");
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Codice AL target
|
||||
/// </summary>
|
||||
protected string destAL
|
||||
{
|
||||
get
|
||||
{
|
||||
return lblAL.Text.Trim();
|
||||
}
|
||||
set
|
||||
{
|
||||
lblAL.Text = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// richiesta (ri)stampa UDC
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
public void ristampa()
|
||||
{
|
||||
MagClass.magazzino.stampaUdc(udcReq, Postazione.printer, tipoCartellino.cartSterr, Request.UserHostName);
|
||||
// registro ri-stampa UDC
|
||||
DateTime adesso = DateTime.Now;
|
||||
// calcolo particolare...
|
||||
DS_magazzino.ElencoCartelliniRow rigaUDC;
|
||||
string particolare = "";
|
||||
try
|
||||
{
|
||||
rigaUDC = MagClass.magazzino.taCartellini.getByUdc(udcReq)[0];
|
||||
particolare = rigaUDC.Particolare;
|
||||
}
|
||||
catch
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Errore recupero particolare UDC Sterratura FC {0}", udcReq), tipoLog.EXCEPTION);
|
||||
}
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, Postazione.name, Postazione.IP, udcReq, particolare, "stampaUDC", "Ri-Stampato UDC Sterratura Fuoriciclo");
|
||||
// raise dell'evento
|
||||
if (eh_reqUpdate != null)
|
||||
{
|
||||
eh_reqUpdate(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// udc da stampare
|
||||
/// </summary>
|
||||
protected string udcReq
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("udcSelSAO");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// controlla particolare selezionato
|
||||
/// </summary>
|
||||
private void checkParticolare()
|
||||
{
|
||||
if (currParticolare != "")
|
||||
{
|
||||
lblParticolareAttivo.Text = string.Format("Particolare selezionato <b>{0}</b>", currParticolare);
|
||||
// aggiungo descrizione del particolare
|
||||
string descr = "";
|
||||
string disegno = "";
|
||||
try
|
||||
{
|
||||
DS_magazzino.AnagParticolariRow riga = MagClass.magazzino.taAnagPart.likeSearch(currParticolare, memLayer.ML.StringSessionObj("CodCS"))[0];
|
||||
descr = riga.DescParticolare;
|
||||
disegno = string.Format("( {0} )", riga.DisegnoGrezzo);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
lblDescrAttivo.Text = descr;
|
||||
lblDisegno.Text = disegno;
|
||||
}
|
||||
else
|
||||
{
|
||||
lblParticolareAttivo.Text = "...";
|
||||
lblDescrAttivo.Text = "";
|
||||
lblDisegno.Text = "";
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua controlli visibilità
|
||||
/// </summary>
|
||||
private void doChecks()
|
||||
{
|
||||
checkBarcode();
|
||||
checkStampa();
|
||||
checkParticolare();
|
||||
}
|
||||
/// <summary>
|
||||
/// sistemo labels oggetti
|
||||
/// </summary>
|
||||
private void traduciObj()
|
||||
{
|
||||
//txtBox
|
||||
txtQta.Text = memLayer.ML.confReadString("QtaImballoSterr");
|
||||
// buttons
|
||||
btnEmptyNote.Text = traduci("btnEmptyNote");
|
||||
}
|
||||
/// <summary>
|
||||
/// restituisce il nome della pagina corrente
|
||||
/// </summary>
|
||||
protected string PagCorrente
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
Uri MyUrl = Request.Url;
|
||||
string delimStr = "/";
|
||||
char[] delimiter = delimStr.ToCharArray();
|
||||
string[] finalUrl = MyUrl.LocalPath.ToString().Split(delimiter);
|
||||
int n = finalUrl.Length;
|
||||
answ = finalUrl[n - 1].ToString();
|
||||
DataLayer_AnagGen.PermessiRow riga = (DataLayer_AnagGen.PermessiRow)user_std.UtSn.permessi.Select(string.Format("URL = '{0}'", answ))[0];
|
||||
answ = riga.NOME;
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper traduzione
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduci(object lemma)
|
||||
{
|
||||
return user_std.UtSn.Traduci(lemma.ToString());
|
||||
}
|
||||
/// <summary>
|
||||
/// indica il codice articolo correntemente selezionato
|
||||
/// </summary>
|
||||
protected string currParticolare
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj(string.Format("currParticolare_{0}", uid));
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal(string.Format("currParticolare_{0}", uid), value, memLayer.ML.confReadBool("keepParticolareSel"));
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// indica UDC correntemente selezionato
|
||||
/// </summary>
|
||||
protected string currUDC
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj(string.Format("UDC_{0}", uid));
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal(string.Format("UDC_{0}", uid), value, memLayer.ML.confReadBool("keepParticolareSel"));
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// indica se i caratteri vadano forzati a maiuscoli
|
||||
/// </summary>
|
||||
public bool forceUppercase
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.confReadBool("forceUppercase");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// num pezzi dell'ultimo UDC del particolare generato
|
||||
/// </summary>
|
||||
public int pezziUdc
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
try
|
||||
{
|
||||
answ = (int)MagClass.magazzino.taCartellini.getLastByParticolareStato(memLayer.ML.StringSessionObj("CodCS"), currParticolare, statoUDC)[0].Qta;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// decodifica il tipo barcode acquisito
|
||||
/// </summary>
|
||||
public tipoCodiceBarcode tipoBCode
|
||||
{
|
||||
get
|
||||
{
|
||||
tipoCodiceBarcode answ = tipoCodiceBarcode.ND;
|
||||
int trovati = 0;
|
||||
// controllo non si tratti di un comando...
|
||||
string preCmd = memLayer.ML.confReadString("prefComandi");
|
||||
if (barcodeIn.StartsWith(preCmd))
|
||||
{
|
||||
answ = tipoCodiceBarcode.Comando;
|
||||
}
|
||||
else if ((TermClass.Ter.riconosciBarcode(barcodeIn) == tipoCodiceBarcode.Particolare)) // è un particolare...
|
||||
{
|
||||
answ = tipoCodiceBarcode.Particolare;
|
||||
}
|
||||
else
|
||||
{
|
||||
try
|
||||
{
|
||||
// cerco tra gitterbox (UDC)...
|
||||
trovati = MagClass.magazzino.taCartellini.getByUdc(barcodeIn).Rows.Count;
|
||||
if (trovati > 0)
|
||||
{
|
||||
answ = tipoCodiceBarcode.UDC;
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// valore barcode
|
||||
/// </summary>
|
||||
public string barcodeIn
|
||||
{
|
||||
get
|
||||
{
|
||||
return txtBarcode.Text.Trim();
|
||||
}
|
||||
set
|
||||
{
|
||||
txtBarcode.Text = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// qta pezzi TOTALE
|
||||
/// </summary>
|
||||
public int qta
|
||||
{
|
||||
get
|
||||
{
|
||||
int qta = 0;
|
||||
try
|
||||
{
|
||||
qta = Convert.ToInt32(txtQta.Text.Trim());
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return qta;
|
||||
}
|
||||
set
|
||||
{
|
||||
txtQta.Text = value.ToString();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// controlla se ci sia un barcode
|
||||
/// </summary>
|
||||
private void checkBarcode()
|
||||
{
|
||||
if (barcodeIn != "")
|
||||
{
|
||||
Postazione.messaggiText = string.Format("Barcode digitato: {0}", barcodeIn);
|
||||
switch (tipoBCode)
|
||||
{
|
||||
case tipoCodiceBarcode.Particolare:
|
||||
// imposto il particolare corrente
|
||||
currParticolare = barcodeIn;
|
||||
// controllo SE esista già UDC in AL dest... altrimenti CREO!!!
|
||||
string udcDest = checkCreaUDC();
|
||||
|
||||
break;
|
||||
case tipoCodiceBarcode.UDC:
|
||||
|
||||
#if false
|
||||
// procedo solo se UDC esistente
|
||||
if (MagClass.magazzino.checkUDC(barcodeIn))
|
||||
{
|
||||
/********************************************************************
|
||||
* procedo per UDC in ingresso:
|
||||
* - deve essere di tipo IN
|
||||
* - se NON c'è UDC in AL dest a parti particolare LO CREO
|
||||
* - se c'era già UDC per lo stesso particolare --> consumo (il vecchio)
|
||||
* - associo UDC letto ad UDC in AL dest a pari particolare
|
||||
*
|
||||
********************************************************************/
|
||||
|
||||
// controllo IdxPosizione dell'UDC e confronto con posizione in webconfig x fusi (pre sterratura/taglio)
|
||||
int IdxPosizione = DataProxy.obj.taCartellini.stp_getByUdc(barcodeIn)[0].IdxPosizione;
|
||||
if (IdxPosizione == memLayer.ML.confReadInt("IdxPosizioneFusi"))
|
||||
{
|
||||
int idxCellaCurr = 0;
|
||||
try
|
||||
{
|
||||
idxCellaCurr = MagClass.magazzino.taPosUdcCorr.getByUDC(barcodeIn)[0].IdxCella;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// controllo se UDC non sia già stato spostato in posizione... ds magazzino, posiz udc corrente, get By udc
|
||||
if (idxCellaCurr == Postazione.currIdxCella)
|
||||
{
|
||||
Postazione.messaggiText += " - Attenzione, UDC già caricato!";
|
||||
Postazione.CssClass = "stileComandoKo";
|
||||
}
|
||||
else
|
||||
{
|
||||
// calcolo nuovo particolare
|
||||
string newPart = DataProxy.obj.taCartellini.stp_getByUdc(barcodeIn)[0].Particolare;
|
||||
string udcDest = "";
|
||||
// imposto particolare!
|
||||
currParticolare = newPart;
|
||||
|
||||
// controllo SE esista già UDC in AL dest... altrimenti CREO!!!
|
||||
udcDest = checkCreaUDC();
|
||||
|
||||
// verifico per eventuale consumo vecchio UDC
|
||||
// cerco nella posizione
|
||||
DS_magazzino.v_UdcDetailDataTable tabUdcDet = null;
|
||||
try
|
||||
{
|
||||
// cerco nella posizione
|
||||
tabUdcDet = MagClass.magazzino.taDettUDC.getUdcDetailByIdxCella(idxCella);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// carico UDC letto in cella...
|
||||
DateTime adesso = DateTime.Now;
|
||||
string noteTrim = Postazione.currNomeLinea;
|
||||
// cerco se NON ci sia l'UDC letto...
|
||||
if (tabUdcDet.Select(string.Format("UDC = '{0}'", barcodeIn)).Length == 0)
|
||||
{
|
||||
string oldUdc = "";
|
||||
try
|
||||
{
|
||||
oldUdc = ((DS_magazzino.v_UdcDetailRow)tabUdcDet.Select(string.Format("Particolare = '{0}'", currParticolare))[0]).UDC;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// se trovo un altro UDC dello stesso particolare...
|
||||
if (oldUdc != "")
|
||||
{
|
||||
// consumo UDC
|
||||
consumaUdc(oldUdc);
|
||||
}
|
||||
|
||||
// se ho cod cella sposto UDC in nuova posizione!
|
||||
MagClass.magazzino.spostaUDC(memLayer.ML.StringSessionObj("CodCS"), barcodeIn, Postazione.currIdxCella, memLayer.ML.confReadBool("spostaUdcResettaLdp"), Request.UserHostName);
|
||||
// registro spostamento UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, Postazione.name, Postazione.IP, barcodeIn, currParticolare, "spostaUDC", string.Format("Caricato UDC Fusi su linea {2}, qta: {0} {1} ", qta, noteTrim, Postazione.currCodLinea));
|
||||
|
||||
}
|
||||
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
|
||||
// associo UDC con quello di destinazione
|
||||
MagClass.magazzino.associaUdcParent(udcDest, barcodeIn, true);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// update
|
||||
doUpdate();
|
||||
#endif
|
||||
break;
|
||||
default:
|
||||
Postazione.messaggiText += " - codice <b>non riconosciuto</b>!";
|
||||
Postazione.CssClass = "stileComandoND";
|
||||
break;
|
||||
}
|
||||
barcodeIn = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
Postazione.messaggiText = traduci("AttesaBCode");
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
}
|
||||
txtBarcode.Focus();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// effettua consumo UDC
|
||||
/// </summary>
|
||||
/// <param name="oldUdc"></param>
|
||||
private void consumaUdc(string oldUdc)
|
||||
{
|
||||
// se è consumabile (IdxPosizione > 0)...
|
||||
if (MagClass.magazzino.udcMpIsConsumabile(oldUdc))
|
||||
{
|
||||
// consumo UDC
|
||||
MagClass.magazzino.scaricaUdcMpWip(oldUdc, Request.UserHostName);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// crea eventualmente UDC per particolare in AL di destinazione e restituisce codice UDC
|
||||
/// </summary>
|
||||
/// <param name="qty"></param>
|
||||
/// <param name="particolare"></param>
|
||||
private string checkCreaUDC()
|
||||
{
|
||||
string udcDest = "";
|
||||
DateTime adesso = DateTime.Now;
|
||||
// verifico se ho già quel particolare tra quelli dell'AL...
|
||||
try
|
||||
{
|
||||
udcDest = MagClass.magazzino.taCartellini.getByParticolareAL(currParticolare, destAL)[0].UDC;
|
||||
}
|
||||
catch
|
||||
{
|
||||
udcDest = "";
|
||||
}
|
||||
if (udcDest == "")
|
||||
{
|
||||
try
|
||||
{
|
||||
// creo nuovo UDC ST... direttamente in posizione definitiva e con un evento differente...
|
||||
udcDest = MagClass.magazzino.creaUdc(flusso, "", currParticolare, "", "", "", "", "", 0, memLayer.ML.confReadString("CodImballoSterr"), "U", MagClass.magazzino.CodSoggCurrUser, 0, 0, 0, adesso, 0, statoUDC, memLayer.ML.confReadInt("IdxPosizioneSterratiTemp"), "IdxPosizioneSterratiTemp", eventoUDC, "", "", adesso.Year, Request.UserHostName);
|
||||
// associo UDC a AL...
|
||||
MagClass.magazzino.taAL2UDC.Insert(destAL, udcDest, adesso, MagClass.magazzino.CodSoggCurrUser);
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Errore in creazione UDC temp ST x travaso: {0}{1}", Environment.NewLine, exc));
|
||||
}
|
||||
}
|
||||
if (udcDest != "")
|
||||
{
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
Postazione.warningText = "";
|
||||
Postazione.messaggiText = traduci("partAdded");
|
||||
}
|
||||
else
|
||||
{
|
||||
Postazione.CssClass = "stileComandoKo";
|
||||
Postazione.warningText = traduci("ErroreUdcDest");
|
||||
}
|
||||
grViewDest.DataBind();
|
||||
return udcDest;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// aggiorna tabella + focus a barcode
|
||||
/// </summary>
|
||||
public void doUpdate()
|
||||
{
|
||||
idxCella = Postazione.currIdxCella;
|
||||
destAL = AlByCella;
|
||||
setVisibility();
|
||||
checkStampa();
|
||||
grViewDest.DataBind();
|
||||
txtBarcode.Focus();
|
||||
// raise dell'evento
|
||||
if (eh_reqUpdate != null)
|
||||
{
|
||||
eh_reqUpdate(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// controllo l'abilitazioen alla stampa UDC:
|
||||
/// - particolare ok
|
||||
/// - qta > 0
|
||||
/// - udc da consumo totale/parziale
|
||||
/// altrimenti disabilito btn stampa
|
||||
/// </summary>
|
||||
private void checkStampa()
|
||||
{
|
||||
bool stampaOk = false;
|
||||
//controllo siano inseriti valori qta
|
||||
if (numCesta != "" && numCesta != "0000" && qta > 0)
|
||||
{
|
||||
// controllo ci siano particolare
|
||||
if (currParticolare != "")
|
||||
{
|
||||
stampaOk = true;
|
||||
txtNote.Focus();
|
||||
}
|
||||
}
|
||||
divNote.Visible = stampaOk;
|
||||
}
|
||||
/// <summary>
|
||||
/// genera i barcode di
|
||||
/// - trattamenti
|
||||
/// - nuovo x pezzi liquidi
|
||||
/// e lancia la relativa stampa
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnStampa_Click(object sender, EventArgs e)
|
||||
{
|
||||
string[] stringSeparators = new string[] { "#" };
|
||||
// verifico postazione x procedere...
|
||||
if (Postazione.printer != "n.d.")
|
||||
{
|
||||
//int qta = memLayer.ML.confReadInt("QtaImballoSterr");
|
||||
string noteTrim = txtNote.Text.Trim();
|
||||
noteTrim = string.Format("FUORICICLO{0}{1}", Environment.NewLine, noteTrim);
|
||||
|
||||
// effettuo controlli che cod_soggetto e cod particolare siano disponibili...
|
||||
if (MagClass.magazzino.CodSoggCurrUser != "" && currParticolare != "")
|
||||
{
|
||||
// aggiorno note e posizione da temp a definitiv x UDC...
|
||||
MagClass.magazzino.updateNotePosizioneUDC(currUDC, noteTrim, memLayer.ML.confReadInt("IdxPosizioneSterrati"));
|
||||
// metto attributo FC
|
||||
MagClass.magazzino.taAtt2UDC.Insert(currUDC, "FC", "", DateTime.Now, MagClass.magazzino.CodSoggCurrUser);
|
||||
// tolgo UDC da AL corrente...
|
||||
MagClass.magazzino.taAL2UDC.deleteQuery(destAL, currUDC);
|
||||
|
||||
// ora stampo il nuovo cartellino!!!
|
||||
MagClass.magazzino.stampaUdc(currUDC, Postazione.printer, tipoCartellino.cartSterr, Request.UserHostName);
|
||||
// incremento timing...
|
||||
DateTime adesso = DateTime.Now;
|
||||
adesso = adesso.AddSeconds(2);
|
||||
// registro stampa nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, Postazione.name, Postazione.IP, currUDC, currParticolare, "stampaUDC", "Stampato UDC Sterrato FUORICICLO");
|
||||
// svuoto campo cesta...
|
||||
numCesta = "";
|
||||
// resetto
|
||||
doResetData();
|
||||
}
|
||||
else
|
||||
{
|
||||
httpLog(string.Format("STERRATI FC, Errore persi utente/particolare, ricarico!"), tipoLog.ERROR);
|
||||
Response.Redirect("~/login.aspx");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Response.Redirect("~/menu.aspx");
|
||||
}
|
||||
doUpdate();
|
||||
// raise dell'evento
|
||||
if (eh_reqUpdate != null)
|
||||
{
|
||||
eh_reqUpdate(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua il consumo di tutti gli UDC inviati come array di stringhe
|
||||
/// </summary>
|
||||
/// <param name="UDC_P"></param>
|
||||
private void consumaUdc(string[] UDC_P)
|
||||
{
|
||||
if (UDC_P.Length > 0)
|
||||
{
|
||||
// ciclo
|
||||
foreach (string udc_p in UDC_P)
|
||||
{
|
||||
// se UDC è NON vuoto ed esiste
|
||||
if (udc_p != "" && MagClass.magazzino.checkUDC(udc_p))
|
||||
{
|
||||
// se è consumabile (IdxPosizione > 0)...
|
||||
if (MagClass.magazzino.udcMpIsConsumabile(udc_p))
|
||||
{
|
||||
// consumo UDC
|
||||
MagClass.magazzino.scaricaUdcMpWip(udc_p, Request.UserHostName);
|
||||
// sposta UDC da posizione corrente a nessuna...
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
///associa nuovo UDC ad elenco UDC
|
||||
/// </summary>
|
||||
/// <param name="newUdcChild">UDC da associare come child</param>
|
||||
/// <param name="UDC_P">vettore di UDC da associare come parent</param>
|
||||
private void associaUdc(string newUdcChild, string[] UDC_P)
|
||||
{
|
||||
if (UDC_P.Length > 0)
|
||||
{
|
||||
// ciclo
|
||||
foreach (string udc_p in UDC_P)
|
||||
{
|
||||
// se UDC è NON vuoto ed esiste
|
||||
if (udc_p != "" && MagClass.magazzino.checkUDC(udc_p))
|
||||
{
|
||||
MagClass.magazzino.associaUdcParent(newUdcChild, udc_p);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica che il vettore di UDC abbia tutto lo stesso particolare e lo restituisce, altrimenti restituisce ""
|
||||
/// </summary>
|
||||
/// <param name="UDC_P">vettore di UDC da verificare</param>
|
||||
private string checkPartUDC(string[] UDC_P)
|
||||
{
|
||||
string answ = "";
|
||||
if (UDC_P.Length > 0)
|
||||
{
|
||||
// imposto il primo particolare...
|
||||
answ = MagClass.magazzino.getParticolareByUDC(UDC_P[0]);
|
||||
// ciclo
|
||||
foreach (string udc_p in UDC_P)
|
||||
{
|
||||
if (MagClass.magazzino.getParticolareByUDC(udc_p) != answ) answ = ""; // se uno è diverso "azzero"
|
||||
}
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper per log con salvataggio dell'IP del chiamante
|
||||
/// </summary>
|
||||
/// <param name="_testoPre"></param>
|
||||
/// <returns></returns>
|
||||
public bool httpLog(string _testoPre)
|
||||
{
|
||||
bool answ = false;
|
||||
logger.lg.scriviLog(Postazione.IP + _testoPre);
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper per log con salvataggio dell'IP del chiamante
|
||||
/// </summary>
|
||||
/// <param name="_testoPre"></param>
|
||||
/// <returns></returns>
|
||||
public bool httpLog(string testoLog, tipoLog tipo)
|
||||
{
|
||||
bool answ = false;
|
||||
logger.lg.scriviLog(Postazione.IP + testoLog, tipo);
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua reset dati
|
||||
/// </summary>
|
||||
public void doResetData()
|
||||
{
|
||||
// resetto i dati QtaTot e particolare...
|
||||
qta = 0;
|
||||
currParticolare = "";
|
||||
txtQta.Text = "";
|
||||
grViewDest.SelectedIndex = -1;
|
||||
doChecks();
|
||||
}
|
||||
/// <summary>
|
||||
/// svuoto le note
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnEmptyNote_Click(object sender, EventArgs e)
|
||||
{
|
||||
txtNote.Text = "";
|
||||
}
|
||||
/// <summary>
|
||||
/// passo alla modalità IN
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnIn_Click(object sender, EventArgs e)
|
||||
{
|
||||
Response.Redirect("SterrTaglioIN.aspx");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// effettua refresh (su db) del blocco postazione
|
||||
/// </summary>
|
||||
/// <param name="codLinea"></param>
|
||||
private void refreshBloccoPost(string codLinea)
|
||||
{
|
||||
// resetto usi linee precedenti..
|
||||
MagClass.magazzino.taAL.resetPost(Postazione.name);
|
||||
// se la linea non è "base" = "Sel linea", finisce x "0"
|
||||
if (codLinea.Substring(codLinea.Length - 1) != "0")
|
||||
{
|
||||
// salvo su DB che sto occupando linea...
|
||||
MagClass.magazzino.taAL.updatePost(codLinea, Postazione.name);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// aggiorno ods al binding..
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ods_DataBinding(object sender, EventArgs e)
|
||||
{
|
||||
// fix dell'ODS
|
||||
checkFixOds();
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica se attivo filtro company e imposta ods di conseguenza...
|
||||
/// </summary>
|
||||
private void checkFixOds()
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// evento selezione grView destinazione: ricarico dati!
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void grViewDest_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// ricarico dati dell'UDC come particolare e quantità...
|
||||
currUDC = grViewDest.SelectedDataKey["UDC"].ToString();
|
||||
if (MagClass.magazzino.checkUDC(currUDC))
|
||||
{
|
||||
currParticolare = DataProxy.obj.taCartellini.stp_getByUdc(currUDC)[0].Particolare;
|
||||
//qta = Convert.ToInt32(DataProxy.obj.taCartellini.stp_getByUdc(currUDC)[0].Qta);
|
||||
}
|
||||
Postazione.messaggiText = traduci("partSelected");
|
||||
Postazione.warningText = "";
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
doChecks();
|
||||
doUpdate();
|
||||
// fisso focus su note!
|
||||
txtNote.Focus();
|
||||
}
|
||||
/// <summary>
|
||||
/// sistema modalità input
|
||||
/// </summary>
|
||||
private void setVisibility()
|
||||
{
|
||||
bool showBtn = false;
|
||||
// ora controllo btn quantità
|
||||
if (grViewDest.SelectedIndex >= 0)
|
||||
{
|
||||
showBtn = true;
|
||||
}
|
||||
divQta.Visible = showBtn;
|
||||
}
|
||||
/// <summary>
|
||||
/// reset della selezione
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnReset_Click(object sender, EventArgs e)
|
||||
{
|
||||
grViewDest.SelectedIndex = -1;
|
||||
qta = 0;
|
||||
currUDC = "";
|
||||
currParticolare = "";
|
||||
setVisibility();
|
||||
doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// update Qty x UDC selezionato...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lbtUpdQty_Click(object sender, EventArgs e)
|
||||
{
|
||||
MagClass.magazzino.taCartellini.updateQty(currUDC, MagClass.magazzino.CodSoggCurrUser, "U", eventoUDC_qta, qta);
|
||||
currUDC = "";
|
||||
currParticolare = "";
|
||||
grViewDest.SelectedIndex = -1;
|
||||
setVisibility();
|
||||
doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// Numero cesta inserito
|
||||
/// </summary>
|
||||
public string numCesta
|
||||
{
|
||||
get
|
||||
{
|
||||
return txtCesta.Text.Trim();
|
||||
}
|
||||
set
|
||||
{
|
||||
txtCesta.Text = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// evento cambio num cesta/grappolo
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void txtCesta_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
txtCesta.Text = txtCesta.Text.ToUpper().Trim().PadLeft(4, '0').Substring(0, 4);
|
||||
doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// fornisce in output la corretta classe css x icona
|
||||
/// </summary>
|
||||
/// <param name="qta"></param>
|
||||
/// <returns></returns>
|
||||
public string cssGlyphByQty(object _qta)
|
||||
{
|
||||
string answ = "glyphicon glyphicon-pencil";
|
||||
int qtaUDC = 0;
|
||||
try
|
||||
{
|
||||
qtaUDC = Convert.ToInt32(_qta);
|
||||
}
|
||||
catch { }
|
||||
if (qtaUDC > 0)
|
||||
{
|
||||
answ = "glyphicon glyphicon-print";
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// determina se sia possibile cancellare un record, se qta > 0
|
||||
/// </summary>
|
||||
/// <param name="_qta"></param>
|
||||
/// <returns></returns>
|
||||
public bool canDelete(object _qta)
|
||||
{
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(_qta) == 0;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
}
|
||||
+177
@@ -0,0 +1,177 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 GMW.WebUserControls {
|
||||
|
||||
|
||||
public partial class mod_sterrTaglioFC {
|
||||
|
||||
/// <summary>
|
||||
/// BundleReference1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference1;
|
||||
|
||||
/// <summary>
|
||||
/// BundleReference2 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference2;
|
||||
|
||||
/// <summary>
|
||||
/// lblParticolareAttivo 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 lblParticolareAttivo;
|
||||
|
||||
/// <summary>
|
||||
/// lblDescrAttivo 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 lblDescrAttivo;
|
||||
|
||||
/// <summary>
|
||||
/// lblDisegno 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 lblDisegno;
|
||||
|
||||
/// <summary>
|
||||
/// lblBarcode 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 lblBarcode;
|
||||
|
||||
/// <summary>
|
||||
/// txtBarcode 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 txtBarcode;
|
||||
|
||||
/// <summary>
|
||||
/// divNote 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.HtmlGenericControl divNote;
|
||||
|
||||
/// <summary>
|
||||
/// txtNote 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 txtNote;
|
||||
|
||||
/// <summary>
|
||||
/// btnEmptyNote 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 btnEmptyNote;
|
||||
|
||||
/// <summary>
|
||||
/// lbtStampaUDC 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.LinkButton lbtStampaUDC;
|
||||
|
||||
/// <summary>
|
||||
/// lblAL 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 lblAL;
|
||||
|
||||
/// <summary>
|
||||
/// grViewDest 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 grViewDest;
|
||||
|
||||
/// <summary>
|
||||
/// odsDest 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 odsDest;
|
||||
|
||||
/// <summary>
|
||||
/// txtCesta 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 txtCesta;
|
||||
|
||||
/// <summary>
|
||||
/// divQta 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.HtmlGenericControl divQta;
|
||||
|
||||
/// <summary>
|
||||
/// txtQta 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 txtQta;
|
||||
|
||||
/// <summary>
|
||||
/// lbtUpdQty 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.LinkButton lbtUpdQty;
|
||||
}
|
||||
}
|
||||
@@ -17,7 +17,7 @@
|
||||
<div class="nav navbar-nav">
|
||||
<ul class="nav navbar-nav">
|
||||
<li class='<%: liClass("default") %>'>
|
||||
<a class="navbar-brand" id="A1" runat="server" href="~/">
|
||||
<a class="navbar-brand" id="A1" runat="server" href="~/" style="padding-right:30px;">
|
||||
<i class="fa fa-home fa-lg"></i>
|
||||
<span style="font-weight: 600;"><%: SteamWare.memLayer.ML.confReadString("titleApp") %>
|
||||
</span>
|
||||
|
||||
@@ -344,7 +344,7 @@ namespace GMW.WebUserControls
|
||||
bool posizOk = false;
|
||||
if (memLayer.ML.confReadString("codPartTrattDeroga").IndexOf(string.Format("#{0}#", DataProxy.obj.taCartellini.stp_getByUdc(barcodeIn)[0].Particolare)) >= 0)
|
||||
{
|
||||
// controllo se il particolare è in quelli che accettano UDC giuà consumati
|
||||
// controllo se il particolare è in quelli che accettano UDC già consumati
|
||||
posizOk = (Math.Abs(MagClass.magazzino.IdxPosizioneUdc(barcodeIn)) == memLayer.ML.confReadInt("IdxPosizioneSterrati"));
|
||||
}
|
||||
else
|
||||
@@ -358,8 +358,10 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
// 2014.02.14 non permetto + di 1 UDC: svuoto elenco!
|
||||
elencoUDC.Clear();
|
||||
// se è ok aggiungo in elenco UDC e mostro udpate
|
||||
// se è ok aggiungo in elenco UDC e mostro update
|
||||
checkUdc4elenco(barcodeIn);
|
||||
// carico nelle note dell'UDC NUOVO
|
||||
txtNote.Text = MagClass.magazzino.taCartellini.getByUdc(barcodeIn)[0].Note;
|
||||
// seleziono anche particolare corrente
|
||||
currParticolare = DataProxy.obj.taCartellini.stp_getByUdc(barcodeIn)[0].Particolare;
|
||||
qta = Convert.ToInt32(DataProxy.obj.taCartellini.stp_getByUdc(barcodeIn)[0].Qta);
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1476,6 +1476,11 @@
|
||||
restituisce il nome della pagina corrente
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:SteamWare.devicesAuthProxy.AuthCookieName">
|
||||
<summary>
|
||||
restituisce nome cookie di auth (o default...)
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:SteamWare.devicesAuthProxy.diritti">
|
||||
<summary>
|
||||
restituisce la tabella diritti da session
|
||||
|
||||
Binary file not shown.
@@ -1,4 +1,4 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/Compact.Master"
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/CompactBCode.Master"
|
||||
AutoEventWireup="true" CodeBehind="Search.aspx.cs" Inherits="GMW_Term.Search" %>
|
||||
|
||||
<%@ Register Src="WebUserControls/mod_barcode.ascx" TagName="mod_barcode" TagPrefix="uc1" %>
|
||||
|
||||
@@ -44,14 +44,7 @@ namespace GMW_Term
|
||||
private void checkVisibility()
|
||||
{
|
||||
bool filtMag = memLayer.ML.isInSessionObject("Particolare_sel");
|
||||
if (filtMag)
|
||||
{
|
||||
mod_barcode1.Visible = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
mod_barcode1.Visible = true;
|
||||
}
|
||||
mod_barcode1.Visible = !filtMag;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Compact.master.cs" Inherits="GMW_Term.Compact" %>
|
||||
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Compact.master.cs" Inherits="GMW_Term.WebMasterPages.Compact" %>
|
||||
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
|
||||
<%@ Register Src="../WebUserControls/mod_menuTop.ascx" TagName="mod_menuTop" TagPrefix="uc1" %>
|
||||
<%@ Register Src="../WebUserControls/mod_currentTask.ascx" TagName="mod_currentTask" TagPrefix="uc2" %>
|
||||
<!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">
|
||||
<head id="Head1" runat="server">
|
||||
<title>GMW Terminus</title>
|
||||
<asp:ContentPlaceHolder ID="head" runat="server">
|
||||
</asp:ContentPlaceHolder>
|
||||
|
||||
@@ -4,7 +4,7 @@ using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace GMW_Term
|
||||
namespace GMW_Term.WebMasterPages
|
||||
{
|
||||
public partial class Compact : System.Web.UI.MasterPage
|
||||
{
|
||||
|
||||
+10
-1
@@ -7,11 +7,20 @@
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GMW_Term {
|
||||
namespace GMW_Term.WebMasterPages {
|
||||
|
||||
|
||||
public partial class Compact {
|
||||
|
||||
/// <summary>
|
||||
/// Head1 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.HtmlHead Head1;
|
||||
|
||||
/// <summary>
|
||||
/// head control.
|
||||
/// </summary>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1476,6 +1476,11 @@
|
||||
restituisce il nome della pagina corrente
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:SteamWare.devicesAuthProxy.AuthCookieName">
|
||||
<summary>
|
||||
restituisce nome cookie di auth (o default...)
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:SteamWare.devicesAuthProxy.diritti">
|
||||
<summary>
|
||||
restituisce la tabella diritti da session
|
||||
|
||||
Generated
+103
-18
@@ -23182,7 +23182,7 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
private void InitCommandCollection() {
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[20];
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[21];
|
||||
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = "SELECT *\r\nFROM dbo.ElencoCartellini";
|
||||
@@ -23332,14 +23332,23 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
|
||||
this._commandCollection[18].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSoggetto", global::System.Data.SqlDbType.NVarChar, 17, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[19] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[19].Connection = this.Connection;
|
||||
this._commandCollection[19].CommandText = "dbo.stp_UDC_updateQty";
|
||||
this._commandCollection[19].CommandText = "dbo.stp_UDC_updateNotePosizione";
|
||||
this._commandCollection[19].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSoggetto", global::System.Data.SqlDbType.VarChar, 17, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTipoDichiaraz", global::System.Data.SqlDbType.Char, 1, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodEvento", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Qta", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 10, 2, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPosizione", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@note", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSoggetto", global::System.Data.SqlDbType.NVarChar, 17, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[20] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[20].Connection = this.Connection;
|
||||
this._commandCollection[20].CommandText = "dbo.stp_UDC_updateQty";
|
||||
this._commandCollection[20].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[20].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[20].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[20].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSoggetto", global::System.Data.SqlDbType.VarChar, 17, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[20].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTipoDichiaraz", global::System.Data.SqlDbType.Char, 1, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[20].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodEvento", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[20].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Qta", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 10, 2, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -23793,7 +23802,7 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_magazzino.ElencoCartelliniDataTable updateQty(string UDC, string CodSoggetto, string CodTipoDichiaraz, string CodEvento, global::System.Nullable<decimal> Qta) {
|
||||
public virtual DS_magazzino.ElencoCartelliniDataTable updateNotePosizione(string UDC, global::System.Nullable<int> IdxPosizione, string note, string CodSoggetto) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[19];
|
||||
if ((UDC == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
@@ -23801,6 +23810,41 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(UDC));
|
||||
}
|
||||
if ((IdxPosizione.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[2].Value = ((int)(IdxPosizione.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((note == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[3].Value = ((string)(note));
|
||||
}
|
||||
if ((CodSoggetto == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[4].Value = ((string)(CodSoggetto));
|
||||
}
|
||||
DS_magazzino.ElencoCartelliniDataTable dataTable = new DS_magazzino.ElencoCartelliniDataTable();
|
||||
this.Adapter.Fill(dataTable);
|
||||
return dataTable;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_magazzino.ElencoCartelliniDataTable updateQty(string UDC, string CodSoggetto, string CodTipoDichiaraz, string CodEvento, global::System.Nullable<decimal> Qta) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[20];
|
||||
if ((UDC == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(UDC));
|
||||
}
|
||||
if ((CodSoggetto == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -40720,31 +40764,38 @@ SELECT AL, UDC, DataCreaz, CodSoggetto FROM AL2UDC WHERE (AL = @AL) AND (UDC = @
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
private void InitCommandCollection() {
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4];
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[5];
|
||||
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = "SELECT AL, UDC, DataCreaz, CodSoggetto FROM dbo.AL2UDC";
|
||||
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[1].Connection = this.Connection;
|
||||
this._commandCollection[1].CommandText = "dbo.stp_AL2UDC_getByAL";
|
||||
this._commandCollection[1].CommandText = "dbo.stp_AL2UDC_deleteQuery";
|
||||
this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@AL", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[2].Connection = this.Connection;
|
||||
this._commandCollection[2].CommandText = "dbo.stp_AL2UDC_getByUDC";
|
||||
this._commandCollection[2].CommandText = "dbo.stp_AL2UDC_getByAL";
|
||||
this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@AL", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[3].Connection = this.Connection;
|
||||
this._commandCollection[3].CommandText = "dbo.stp_AL2UDC_moveUdcDtx";
|
||||
this._commandCollection[3].CommandText = "dbo.stp_AL2UDC_getByUDC";
|
||||
this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SourceAL", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DestAL", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSoggetto", global::System.Data.SqlDbType.NChar, 17, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[4].Connection = this.Connection;
|
||||
this._commandCollection[4].CommandText = "dbo.stp_AL2UDC_moveUdcDtx";
|
||||
this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SourceAL", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DestAL", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSoggetto", global::System.Data.SqlDbType.NChar, 17, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -40776,7 +40827,7 @@ SELECT AL, UDC, DataCreaz, CodSoggetto FROM AL2UDC WHERE (AL = @AL) AND (UDC = @
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_magazzino.AL2UDCDataTable getByAL(string AL) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[1];
|
||||
this.Adapter.SelectCommand = this.CommandCollection[2];
|
||||
if ((AL == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -40793,7 +40844,7 @@ SELECT AL, UDC, DataCreaz, CodSoggetto FROM AL2UDC WHERE (AL = @AL) AND (UDC = @
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_magazzino.AL2UDCDataTable getByUDC(string UDC) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[2];
|
||||
this.Adapter.SelectCommand = this.CommandCollection[3];
|
||||
if ((UDC == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -41009,11 +41060,45 @@ SELECT AL, UDC, DataCreaz, CodSoggetto FROM AL2UDC WHERE (AL = @AL) AND (UDC = @
|
||||
return this.Update(Original_AL, Original_UDC, DataCreaz, CodSoggetto, Original_AL, Original_UDC, Original_DataCreaz, Original_CodSoggetto);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int deleteQuery(string AL, string UDC) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
|
||||
if ((AL == null)) {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
command.Parameters[1].Value = ((string)(AL));
|
||||
}
|
||||
if ((UDC == null)) {
|
||||
command.Parameters[2].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
command.Parameters[2].Value = ((string)(UDC));
|
||||
}
|
||||
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
|
||||
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
|
||||
!= global::System.Data.ConnectionState.Open)) {
|
||||
command.Connection.Open();
|
||||
}
|
||||
int returnValue;
|
||||
try {
|
||||
returnValue = command.ExecuteNonQuery();
|
||||
}
|
||||
finally {
|
||||
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
||||
command.Connection.Close();
|
||||
}
|
||||
}
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int moveUdcDtx(string SourceAL, string DestAL, string CodSoggetto) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4];
|
||||
if ((SourceAL == null)) {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
|
||||
+53
-27
@@ -458,6 +458,20 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="TK_GMW.dbo.stp_UDC_updateNotePosizione" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="updateNotePosizione" GetMethodModifier="Public" GetMethodName="updateNotePosizione" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="updateNotePosizione" UserSourceName="updateNotePosizione">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_UDC_updateNotePosizione</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="varchar" DbType="AnsiString" Direction="Input" ParameterName="@UDC" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IdxPosizione" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@note" Precision="0" ProviderType="NVarChar" Scale="0" Size="500" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodSoggetto" Precision="0" ProviderType="NVarChar" Scale="0" Size="17" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="SP_GMWTest.dbo.stp_UDC_updateQty" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="updateQty" GetMethodModifier="Public" GetMethodName="updateQty" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="updateQty" UserSourceName="updateQty">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
@@ -3894,6 +3908,18 @@ SELECT AL, UDC, DataCreaz, CodSoggetto FROM AL2UDC WHERE (AL = @AL) AND (UDC = @
|
||||
<Mapping SourceColumn="CodSoggetto" DataSetColumn="CodSoggetto" />
|
||||
</Mappings>
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="TK_GMW.dbo.stp_AL2UDC_deleteQuery" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="deleteQuery" Modifier="Public" Name="deleteQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="deleteQuery">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_AL2UDC_deleteQuery</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@AL" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@UDC" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="GMW.dbo.stp_AL2UDC_getByAL" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByAL" GetMethodModifier="Public" GetMethodName="getByAL" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByAL" UserSourceName="getByAL">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
@@ -3916,7 +3942,7 @@ SELECT AL, UDC, DataCreaz, CodSoggetto FROM AL2UDC WHERE (AL = @AL) AND (UDC = @
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="GMW.dbo.stp_AL2UDC_moveUdcDtx" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="moveUdcDtx" Modifier="Public" Name="moveUdcDtx" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="moveUdcDtx">
|
||||
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="GMW.dbo.stp_AL2UDC_moveUdcDtx" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="moveUdcDtx" Modifier="Public" Name="moveUdcDtx" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="moveUdcDtx">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_AL2UDC_moveUdcDtx</CommandText>
|
||||
@@ -5259,7 +5285,7 @@ SELECT Trattamento, AL, DataTrattEnd, Durezza, Punzone, DataDur, CodSoggettoDur,
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="StoricoAzioniOperatore" msprop:Generator_TableClassName="StoricoAzioniOperatoreDataTable" msprop:Generator_TableVarName="tableStoricoAzioniOperatore" msprop:Generator_TablePropName="StoricoAzioniOperatore" msprop:Generator_RowDeletingName="StoricoAzioniOperatoreRowDeleting" msprop:Generator_RowChangingName="StoricoAzioniOperatoreRowChanging" msprop:Generator_RowEvHandlerName="StoricoAzioniOperatoreRowChangeEventHandler" msprop:Generator_RowDeletedName="StoricoAzioniOperatoreRowDeleted" msprop:Generator_UserTableName="StoricoAzioniOperatore" msprop:Generator_RowChangedName="StoricoAzioniOperatoreRowChanged" msprop:Generator_RowEvArgName="StoricoAzioniOperatoreRowChangeEvent" msprop:Generator_RowClassName="StoricoAzioniOperatoreRow">
|
||||
<xs:element name="StoricoAzioniOperatore" msprop:Generator_TableClassName="StoricoAzioniOperatoreDataTable" msprop:Generator_TableVarName="tableStoricoAzioniOperatore" msprop:Generator_RowChangedName="StoricoAzioniOperatoreRowChanged" msprop:Generator_TablePropName="StoricoAzioniOperatore" msprop:Generator_RowDeletingName="StoricoAzioniOperatoreRowDeleting" msprop:Generator_RowChangingName="StoricoAzioniOperatoreRowChanging" msprop:Generator_RowEvHandlerName="StoricoAzioniOperatoreRowChangeEventHandler" msprop:Generator_RowDeletedName="StoricoAzioniOperatoreRowDeleted" msprop:Generator_RowClassName="StoricoAzioniOperatoreRow" msprop:Generator_UserTableName="StoricoAzioniOperatore" msprop:Generator_RowEvArgName="StoricoAzioniOperatoreRowChangeEvent">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="idxEvento" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidxEvento" msprop:Generator_ColumnPropNameInRow="idxEvento" msprop:Generator_ColumnPropNameInTable="idxEventoColumn" msprop:Generator_UserColumnName="idxEvento" type="xs:int" />
|
||||
@@ -5316,7 +5342,7 @@ SELECT Trattamento, AL, DataTrattEnd, Durezza, Punzone, DataDur, CodSoggettoDur,
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="stp_MagFifoByParticolare" msprop:Generator_TableClassName="stp_MagFifoByParticolareDataTable" msprop:Generator_TableVarName="tablestp_MagFifoByParticolare" msprop:Generator_RowChangedName="stp_MagFifoByParticolareRowChanged" msprop:Generator_TablePropName="stp_MagFifoByParticolare" msprop:Generator_RowDeletingName="stp_MagFifoByParticolareRowDeleting" msprop:Generator_RowChangingName="stp_MagFifoByParticolareRowChanging" msprop:Generator_RowEvHandlerName="stp_MagFifoByParticolareRowChangeEventHandler" msprop:Generator_RowDeletedName="stp_MagFifoByParticolareRowDeleted" msprop:Generator_RowClassName="stp_MagFifoByParticolareRow" msprop:Generator_UserTableName="stp_MagFifoByParticolare" msprop:Generator_RowEvArgName="stp_MagFifoByParticolareRowChangeEvent">
|
||||
<xs:element name="stp_MagFifoByParticolare" msprop:Generator_TableClassName="stp_MagFifoByParticolareDataTable" msprop:Generator_TableVarName="tablestp_MagFifoByParticolare" msprop:Generator_TablePropName="stp_MagFifoByParticolare" msprop:Generator_RowDeletingName="stp_MagFifoByParticolareRowDeleting" msprop:Generator_RowChangingName="stp_MagFifoByParticolareRowChanging" msprop:Generator_RowEvHandlerName="stp_MagFifoByParticolareRowChangeEventHandler" msprop:Generator_RowDeletedName="stp_MagFifoByParticolareRowDeleted" msprop:Generator_UserTableName="stp_MagFifoByParticolare" msprop:Generator_RowChangedName="stp_MagFifoByParticolareRowChanged" msprop:Generator_RowEvArgName="stp_MagFifoByParticolareRowChangeEvent" msprop:Generator_RowClassName="stp_MagFifoByParticolareRow">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="IdxBlocco" msprop:Generator_ColumnVarNameInTable="columnIdxBlocco" msprop:Generator_ColumnPropNameInRow="IdxBlocco" msprop:Generator_ColumnPropNameInTable="IdxBloccoColumn" msprop:Generator_UserColumnName="IdxBlocco" type="xs:int" />
|
||||
@@ -5348,7 +5374,7 @@ SELECT Trattamento, AL, DataTrattEnd, Durezza, Punzone, DataDur, CodSoggettoDur,
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="stp_UDC_FifoByParticolareBlocco" msprop:Generator_TableClassName="stp_UDC_FifoByParticolareBloccoDataTable" msprop:Generator_TableVarName="tablestp_UDC_FifoByParticolareBlocco" msprop:Generator_RowChangedName="stp_UDC_FifoByParticolareBloccoRowChanged" msprop:Generator_TablePropName="stp_UDC_FifoByParticolareBlocco" msprop:Generator_RowDeletingName="stp_UDC_FifoByParticolareBloccoRowDeleting" msprop:Generator_RowChangingName="stp_UDC_FifoByParticolareBloccoRowChanging" msprop:Generator_RowEvHandlerName="stp_UDC_FifoByParticolareBloccoRowChangeEventHandler" msprop:Generator_RowDeletedName="stp_UDC_FifoByParticolareBloccoRowDeleted" msprop:Generator_RowClassName="stp_UDC_FifoByParticolareBloccoRow" msprop:Generator_UserTableName="stp_UDC_FifoByParticolareBlocco" msprop:Generator_RowEvArgName="stp_UDC_FifoByParticolareBloccoRowChangeEvent">
|
||||
<xs:element name="stp_UDC_FifoByParticolareBlocco" msprop:Generator_TableClassName="stp_UDC_FifoByParticolareBloccoDataTable" msprop:Generator_TableVarName="tablestp_UDC_FifoByParticolareBlocco" msprop:Generator_TablePropName="stp_UDC_FifoByParticolareBlocco" msprop:Generator_RowDeletingName="stp_UDC_FifoByParticolareBloccoRowDeleting" msprop:Generator_RowChangingName="stp_UDC_FifoByParticolareBloccoRowChanging" msprop:Generator_RowEvHandlerName="stp_UDC_FifoByParticolareBloccoRowChangeEventHandler" msprop:Generator_RowDeletedName="stp_UDC_FifoByParticolareBloccoRowDeleted" msprop:Generator_UserTableName="stp_UDC_FifoByParticolareBlocco" msprop:Generator_RowChangedName="stp_UDC_FifoByParticolareBloccoRowChanged" msprop:Generator_RowEvArgName="stp_UDC_FifoByParticolareBloccoRowChangeEvent" msprop:Generator_RowClassName="stp_UDC_FifoByParticolareBloccoRow">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="UDC" msprop:Generator_ColumnVarNameInTable="columnUDC" msprop:Generator_ColumnPropNameInRow="UDC" msprop:Generator_ColumnPropNameInTable="UDCColumn" msprop:Generator_UserColumnName="UDC">
|
||||
@@ -5370,7 +5396,7 @@ SELECT Trattamento, AL, DataTrattEnd, Durezza, Punzone, DataDur, CodSoggettoDur,
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="ElencoPostazioni" msprop:Generator_TableClassName="ElencoPostazioniDataTable" msprop:Generator_TableVarName="tableElencoPostazioni" msprop:Generator_TablePropName="ElencoPostazioni" msprop:Generator_RowDeletingName="ElencoPostazioniRowDeleting" msprop:Generator_RowChangingName="ElencoPostazioniRowChanging" msprop:Generator_RowEvHandlerName="ElencoPostazioniRowChangeEventHandler" msprop:Generator_RowDeletedName="ElencoPostazioniRowDeleted" msprop:Generator_UserTableName="ElencoPostazioni" msprop:Generator_RowChangedName="ElencoPostazioniRowChanged" msprop:Generator_RowEvArgName="ElencoPostazioniRowChangeEvent" msprop:Generator_RowClassName="ElencoPostazioniRow">
|
||||
<xs:element name="ElencoPostazioni" msprop:Generator_TableClassName="ElencoPostazioniDataTable" msprop:Generator_TableVarName="tableElencoPostazioni" msprop:Generator_RowChangedName="ElencoPostazioniRowChanged" msprop:Generator_TablePropName="ElencoPostazioni" msprop:Generator_RowDeletingName="ElencoPostazioniRowDeleting" msprop:Generator_RowChangingName="ElencoPostazioniRowChanging" msprop:Generator_RowEvHandlerName="ElencoPostazioniRowChangeEventHandler" msprop:Generator_RowDeletedName="ElencoPostazioniRowDeleted" msprop:Generator_RowClassName="ElencoPostazioniRow" msprop:Generator_UserTableName="ElencoPostazioni" msprop:Generator_RowEvArgName="ElencoPostazioniRowChangeEvent">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="codPostazione" msprop:Generator_ColumnVarNameInTable="columncodPostazione" msprop:Generator_ColumnPropNameInRow="codPostazione" msprop:Generator_ColumnPropNameInTable="codPostazioneColumn" msprop:Generator_UserColumnName="codPostazione">
|
||||
@@ -5397,7 +5423,7 @@ SELECT Trattamento, AL, DataTrattEnd, Durezza, Punzone, DataDur, CodSoggettoDur,
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="AnagLinee" msprop:Generator_TableClassName="AnagLineeDataTable" msprop:Generator_TableVarName="tableAnagLinee" msprop:Generator_RowChangedName="AnagLineeRowChanged" msprop:Generator_TablePropName="AnagLinee" msprop:Generator_RowDeletingName="AnagLineeRowDeleting" msprop:Generator_RowChangingName="AnagLineeRowChanging" msprop:Generator_RowEvHandlerName="AnagLineeRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagLineeRowDeleted" msprop:Generator_RowClassName="AnagLineeRow" msprop:Generator_UserTableName="AnagLinee" msprop:Generator_RowEvArgName="AnagLineeRowChangeEvent">
|
||||
<xs:element name="AnagLinee" msprop:Generator_TableClassName="AnagLineeDataTable" msprop:Generator_TableVarName="tableAnagLinee" msprop:Generator_TablePropName="AnagLinee" msprop:Generator_RowDeletingName="AnagLineeRowDeleting" msprop:Generator_RowChangingName="AnagLineeRowChanging" msprop:Generator_RowEvHandlerName="AnagLineeRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagLineeRowDeleted" msprop:Generator_UserTableName="AnagLinee" msprop:Generator_RowChangedName="AnagLineeRowChanged" msprop:Generator_RowEvArgName="AnagLineeRowChangeEvent" msprop:Generator_RowClassName="AnagLineeRow">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="CodLinea" msprop:Generator_ColumnVarNameInTable="columnCodLinea" msprop:Generator_ColumnPropNameInRow="CodLinea" msprop:Generator_ColumnPropNameInTable="CodLineaColumn" msprop:Generator_UserColumnName="CodLinea">
|
||||
@@ -5446,14 +5472,14 @@ SELECT Trattamento, AL, DataTrattEnd, Durezza, Punzone, DataDur, CodSoggettoDur,
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="stp_ParticolareInOutOk" msprop:Generator_TableClassName="stp_ParticolareInOutOkDataTable" msprop:Generator_TableVarName="tablestp_ParticolareInOutOk" msprop:Generator_TablePropName="stp_ParticolareInOutOk" msprop:Generator_RowDeletingName="stp_ParticolareInOutOkRowDeleting" msprop:Generator_RowChangingName="stp_ParticolareInOutOkRowChanging" msprop:Generator_RowEvHandlerName="stp_ParticolareInOutOkRowChangeEventHandler" msprop:Generator_RowDeletedName="stp_ParticolareInOutOkRowDeleted" msprop:Generator_UserTableName="stp_ParticolareInOutOk" msprop:Generator_RowChangedName="stp_ParticolareInOutOkRowChanged" msprop:Generator_RowEvArgName="stp_ParticolareInOutOkRowChangeEvent" msprop:Generator_RowClassName="stp_ParticolareInOutOkRow">
|
||||
<xs:element name="stp_ParticolareInOutOk" msprop:Generator_TableClassName="stp_ParticolareInOutOkDataTable" msprop:Generator_TableVarName="tablestp_ParticolareInOutOk" msprop:Generator_RowChangedName="stp_ParticolareInOutOkRowChanged" msprop:Generator_TablePropName="stp_ParticolareInOutOk" msprop:Generator_RowDeletingName="stp_ParticolareInOutOkRowDeleting" msprop:Generator_RowChangingName="stp_ParticolareInOutOkRowChanging" msprop:Generator_RowEvHandlerName="stp_ParticolareInOutOkRowChangeEventHandler" msprop:Generator_RowDeletedName="stp_ParticolareInOutOkRowDeleted" msprop:Generator_RowClassName="stp_ParticolareInOutOkRow" msprop:Generator_UserTableName="stp_ParticolareInOutOk" msprop:Generator_RowEvArgName="stp_ParticolareInOutOkRowChangeEvent">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="Trovati" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnTrovati" msprop:Generator_ColumnPropNameInRow="Trovati" msprop:Generator_ColumnPropNameInTable="TrovatiColumn" msprop:Generator_UserColumnName="Trovati" type="xs:int" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Attr2UDC" msprop:Generator_TableClassName="Attr2UDCDataTable" msprop:Generator_TableVarName="tableAttr2UDC" msprop:Generator_RowChangedName="Attr2UDCRowChanged" msprop:Generator_TablePropName="Attr2UDC" msprop:Generator_RowDeletingName="Attr2UDCRowDeleting" msprop:Generator_RowChangingName="Attr2UDCRowChanging" msprop:Generator_RowEvHandlerName="Attr2UDCRowChangeEventHandler" msprop:Generator_RowDeletedName="Attr2UDCRowDeleted" msprop:Generator_RowClassName="Attr2UDCRow" msprop:Generator_UserTableName="Attr2UDC" msprop:Generator_RowEvArgName="Attr2UDCRowChangeEvent">
|
||||
<xs:element name="Attr2UDC" msprop:Generator_TableClassName="Attr2UDCDataTable" msprop:Generator_TableVarName="tableAttr2UDC" msprop:Generator_TablePropName="Attr2UDC" msprop:Generator_RowDeletingName="Attr2UDCRowDeleting" msprop:Generator_RowChangingName="Attr2UDCRowChanging" msprop:Generator_RowEvHandlerName="Attr2UDCRowChangeEventHandler" msprop:Generator_RowDeletedName="Attr2UDCRowDeleted" msprop:Generator_UserTableName="Attr2UDC" msprop:Generator_RowChangedName="Attr2UDCRowChanged" msprop:Generator_RowEvArgName="Attr2UDCRowChangeEvent" msprop:Generator_RowClassName="Attr2UDCRow">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="idxAttr" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidxAttr" msprop:Generator_ColumnPropNameInRow="idxAttr" msprop:Generator_ColumnPropNameInTable="idxAttrColumn" msprop:Generator_UserColumnName="idxAttr" type="xs:int" />
|
||||
@@ -5489,7 +5515,7 @@ SELECT Trattamento, AL, DataTrattEnd, Durezza, Punzone, DataDur, CodSoggettoDur,
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="ElencoAssiemi" msprop:Generator_TableClassName="ElencoAssiemiDataTable" msprop:Generator_TableVarName="tableElencoAssiemi" msprop:Generator_RowChangedName="ElencoAssiemiRowChanged" msprop:Generator_TablePropName="ElencoAssiemi" msprop:Generator_RowDeletingName="ElencoAssiemiRowDeleting" msprop:Generator_RowChangingName="ElencoAssiemiRowChanging" msprop:Generator_RowEvHandlerName="ElencoAssiemiRowChangeEventHandler" msprop:Generator_RowDeletedName="ElencoAssiemiRowDeleted" msprop:Generator_RowClassName="ElencoAssiemiRow" msprop:Generator_UserTableName="ElencoAssiemi" msprop:Generator_RowEvArgName="ElencoAssiemiRowChangeEvent">
|
||||
<xs:element name="ElencoAssiemi" msprop:Generator_TableClassName="ElencoAssiemiDataTable" msprop:Generator_TableVarName="tableElencoAssiemi" msprop:Generator_TablePropName="ElencoAssiemi" msprop:Generator_RowDeletingName="ElencoAssiemiRowDeleting" msprop:Generator_RowChangingName="ElencoAssiemiRowChanging" msprop:Generator_RowEvHandlerName="ElencoAssiemiRowChangeEventHandler" msprop:Generator_RowDeletedName="ElencoAssiemiRowDeleted" msprop:Generator_UserTableName="ElencoAssiemi" msprop:Generator_RowChangedName="ElencoAssiemiRowChanged" msprop:Generator_RowEvArgName="ElencoAssiemiRowChangeEvent" msprop:Generator_RowClassName="ElencoAssiemiRow">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="AL" msprop:Generator_ColumnVarNameInTable="columnAL" msprop:Generator_ColumnPropNameInRow="AL" msprop:Generator_ColumnPropNameInTable="ALColumn" msprop:Generator_UserColumnName="AL">
|
||||
@@ -5546,7 +5572,7 @@ SELECT Trattamento, AL, DataTrattEnd, Durezza, Punzone, DataDur, CodSoggettoDur,
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="AL2UDC" msprop:Generator_TableClassName="AL2UDCDataTable" msprop:Generator_TableVarName="tableAL2UDC" msprop:Generator_RowChangedName="AL2UDCRowChanged" msprop:Generator_TablePropName="AL2UDC" msprop:Generator_RowDeletingName="AL2UDCRowDeleting" msprop:Generator_RowChangingName="AL2UDCRowChanging" msprop:Generator_RowEvHandlerName="AL2UDCRowChangeEventHandler" msprop:Generator_RowDeletedName="AL2UDCRowDeleted" msprop:Generator_RowClassName="AL2UDCRow" msprop:Generator_UserTableName="AL2UDC" msprop:Generator_RowEvArgName="AL2UDCRowChangeEvent">
|
||||
<xs:element name="AL2UDC" msprop:Generator_TableClassName="AL2UDCDataTable" msprop:Generator_TableVarName="tableAL2UDC" msprop:Generator_TablePropName="AL2UDC" msprop:Generator_RowDeletingName="AL2UDCRowDeleting" msprop:Generator_RowChangingName="AL2UDCRowChanging" msprop:Generator_RowEvHandlerName="AL2UDCRowChangeEventHandler" msprop:Generator_RowDeletedName="AL2UDCRowDeleted" msprop:Generator_UserTableName="AL2UDC" msprop:Generator_RowChangedName="AL2UDCRowChanged" msprop:Generator_RowEvArgName="AL2UDCRowChangeEvent" msprop:Generator_RowClassName="AL2UDCRow">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="AL" msprop:Generator_ColumnVarNameInTable="columnAL" msprop:Generator_ColumnPropNameInRow="AL" msprop:Generator_ColumnPropNameInTable="ALColumn" msprop:Generator_UserColumnName="AL">
|
||||
@@ -5574,7 +5600,7 @@ SELECT Trattamento, AL, DataTrattEnd, Durezza, Punzone, DataDur, CodSoggettoDur,
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="ElencoTrattamenti" msprop:Generator_TableClassName="ElencoTrattamentiDataTable" msprop:Generator_TableVarName="tableElencoTrattamenti" msprop:Generator_TablePropName="ElencoTrattamenti" msprop:Generator_RowDeletingName="ElencoTrattamentiRowDeleting" msprop:Generator_RowChangingName="ElencoTrattamentiRowChanging" msprop:Generator_RowEvHandlerName="ElencoTrattamentiRowChangeEventHandler" msprop:Generator_RowDeletedName="ElencoTrattamentiRowDeleted" msprop:Generator_UserTableName="ElencoTrattamenti" msprop:Generator_RowChangedName="ElencoTrattamentiRowChanged" msprop:Generator_RowEvArgName="ElencoTrattamentiRowChangeEvent" msprop:Generator_RowClassName="ElencoTrattamentiRow">
|
||||
<xs:element name="ElencoTrattamenti" msprop:Generator_TableClassName="ElencoTrattamentiDataTable" msprop:Generator_TableVarName="tableElencoTrattamenti" msprop:Generator_RowChangedName="ElencoTrattamentiRowChanged" msprop:Generator_TablePropName="ElencoTrattamenti" msprop:Generator_RowDeletingName="ElencoTrattamentiRowDeleting" msprop:Generator_RowChangingName="ElencoTrattamentiRowChanging" msprop:Generator_RowEvHandlerName="ElencoTrattamentiRowChangeEventHandler" msprop:Generator_RowDeletedName="ElencoTrattamentiRowDeleted" msprop:Generator_RowClassName="ElencoTrattamentiRow" msprop:Generator_UserTableName="ElencoTrattamenti" msprop:Generator_RowEvArgName="ElencoTrattamentiRowChangeEvent">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="Trattamento" msprop:Generator_ColumnVarNameInTable="columnTrattamento" msprop:Generator_ColumnPropNameInRow="Trattamento" msprop:Generator_ColumnPropNameInTable="TrattamentoColumn" msprop:Generator_UserColumnName="Trattamento">
|
||||
@@ -5621,7 +5647,7 @@ SELECT Trattamento, AL, DataTrattEnd, Durezza, Punzone, DataDur, CodSoggettoDur,
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="v_A2U2D" msprop:Generator_TableClassName="v_A2U2DDataTable" msprop:Generator_TableVarName="tablev_A2U2D" msprop:Generator_TablePropName="v_A2U2D" msprop:Generator_RowDeletingName="v_A2U2DRowDeleting" msprop:Generator_RowChangingName="v_A2U2DRowChanging" msprop:Generator_RowEvHandlerName="v_A2U2DRowChangeEventHandler" msprop:Generator_RowDeletedName="v_A2U2DRowDeleted" msprop:Generator_UserTableName="v_A2U2D" msprop:Generator_RowChangedName="v_A2U2DRowChanged" msprop:Generator_RowEvArgName="v_A2U2DRowChangeEvent" msprop:Generator_RowClassName="v_A2U2DRow">
|
||||
<xs:element name="v_A2U2D" msprop:Generator_TableClassName="v_A2U2DDataTable" msprop:Generator_TableVarName="tablev_A2U2D" msprop:Generator_RowChangedName="v_A2U2DRowChanged" msprop:Generator_TablePropName="v_A2U2D" msprop:Generator_RowDeletingName="v_A2U2DRowDeleting" msprop:Generator_RowChangingName="v_A2U2DRowChanging" msprop:Generator_RowEvHandlerName="v_A2U2DRowChangeEventHandler" msprop:Generator_RowDeletedName="v_A2U2DRowDeleted" msprop:Generator_RowClassName="v_A2U2DRow" msprop:Generator_UserTableName="v_A2U2D" msprop:Generator_RowEvArgName="v_A2U2DRowChangeEvent">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="AL" msprop:Generator_ColumnVarNameInTable="columnAL" msprop:Generator_ColumnPropNameInRow="AL" msprop:Generator_ColumnPropNameInTable="ALColumn" msprop:Generator_UserColumnName="AL">
|
||||
@@ -5815,21 +5841,21 @@ SELECT Trattamento, AL, DataTrattEnd, Durezza, Punzone, DataDur, CodSoggettoDur,
|
||||
</xs:element>
|
||||
<xs:annotation>
|
||||
<xs:appinfo>
|
||||
<msdata:Relationship name="FK_PosizioneUdcCorrente_ElencoCartellini" msdata:parent="ElencoCartellini" msdata:child="PosizioneUdcCorrente" msdata:parentkey="UDC" msdata:childkey="UDC" msprop:Generator_UserChildTable="PosizioneUdcCorrente" msprop:Generator_ChildPropName="GetPosizioneUdcCorrenteRows" msprop:Generator_UserRelationName="FK_PosizioneUdcCorrente_ElencoCartellini" msprop:Generator_ParentPropName="ElencoCartelliniRow" msprop:Generator_RelationVarName="relationFK_PosizioneUdcCorrente_ElencoCartellini" msprop:Generator_UserParentTable="ElencoCartellini" />
|
||||
<msdata:Relationship name="FK_PosizioneUdcStorico_ElencoCartellini" msdata:parent="ElencoCartellini" msdata:child="PosizioneUdcStorico" msdata:parentkey="UDC" msdata:childkey="UDC" msprop:Generator_UserChildTable="PosizioneUdcStorico" msprop:Generator_ChildPropName="GetPosizioneUdcStoricoRows" msprop:Generator_UserRelationName="FK_PosizioneUdcStorico_ElencoCartellini" msprop:Generator_ParentPropName="ElencoCartelliniRow" msprop:Generator_RelationVarName="relationFK_PosizioneUdcStorico_ElencoCartellini" msprop:Generator_UserParentTable="ElencoCartellini" />
|
||||
<msdata:Relationship name="FK_Blocchi_AnagMag" msdata:parent="AnagMag" msdata:child="Blocchi" msdata:parentkey="CodMag CodCS" msdata:childkey="CodMag CodCS" msprop:Generator_UserChildTable="Blocchi" msprop:Generator_ChildPropName="GetBlocchiRows" msprop:Generator_UserRelationName="FK_Blocchi_AnagMag" msprop:Generator_ParentPropName="AnagMagRowParent" msprop:Generator_RelationVarName="relationFK_Blocchi_AnagMag" msprop:Generator_UserParentTable="AnagMag" />
|
||||
<msdata:Relationship name="FK_PosizioneUdcCorrente_Celle" msdata:parent="Celle" msdata:child="PosizioneUdcCorrente" msdata:parentkey="IdxCella" msdata:childkey="IdxCella" msprop:Generator_UserChildTable="PosizioneUdcCorrente" msprop:Generator_ChildPropName="GetPosizioneUdcCorrenteRows" msprop:Generator_UserRelationName="FK_PosizioneUdcCorrente_Celle" msprop:Generator_ParentPropName="CelleRow" msprop:Generator_RelationVarName="relationFK_PosizioneUdcCorrente_Celle" msprop:Generator_UserParentTable="Celle" />
|
||||
<msdata:Relationship name="FK_Celle_Blocchi1" msdata:parent="Blocchi" msdata:child="Celle" msdata:parentkey="IdxBlocco" msdata:childkey="IdxBlocco" msprop:Generator_UserChildTable="Celle" msprop:Generator_ChildPropName="GetCelleRows" msprop:Generator_UserRelationName="FK_Celle_Blocchi1" msprop:Generator_ParentPropName="BlocchiRow" msprop:Generator_RelationVarName="relationFK_Celle_Blocchi1" msprop:Generator_UserParentTable="Blocchi" />
|
||||
<msdata:Relationship name="FK_TipoCella_AnagMag" msdata:parent="AnagMag" msdata:child="TipoCella" msdata:parentkey="CodMag CodCS" msdata:childkey="CodMag CodCS" msprop:Generator_UserChildTable="TipoCella" msprop:Generator_ChildPropName="GetTipoCellaRows" msprop:Generator_UserRelationName="FK_TipoCella_AnagMag" msprop:Generator_ParentPropName="AnagMagRowParent" msprop:Generator_RelationVarName="relationFK_TipoCella_AnagMag" msprop:Generator_UserParentTable="AnagMag" />
|
||||
<msdata:Relationship name="FK_RigheListePrelievo_ElencoCartellini" msdata:parent="ElencoCartellini" msdata:child="RigheListePrelievo" msdata:parentkey="UDC" msdata:childkey="UDC" msprop:Generator_UserChildTable="RigheListePrelievo" msprop:Generator_ChildPropName="GetRigheListePrelievoRows" msprop:Generator_UserRelationName="FK_RigheListePrelievo_ElencoCartellini" msprop:Generator_ParentPropName="ElencoCartelliniRow" msprop:Generator_RelationVarName="relationFK_RigheListePrelievo_ElencoCartellini" msprop:Generator_UserParentTable="ElencoCartellini" />
|
||||
<msdata:Relationship name="FK_RigheListePrelievo_ElencoListePrelievo11" msdata:parent="ElencoListePrelievo" msdata:child="RigheListePrelievo" msdata:parentkey="CodLista" msdata:childkey="CodLista" msprop:Generator_UserChildTable="RigheListePrelievo" msprop:Generator_ChildPropName="GetRigheListePrelievoRows" msprop:Generator_UserRelationName="FK_RigheListePrelievo_ElencoListePrelievo11" msprop:Generator_ParentPropName="_ElencoListePrelievoRow" msprop:Generator_RelationVarName="relationFK_RigheListePrelievo_ElencoListePrelievo11" msprop:Generator_UserParentTable="ElencoListePrelievo" />
|
||||
<msdata:Relationship name="FK_ElencoListePrelievo_TipoListaPrelievo11" msdata:parent="TipoListaPrelievo" msdata:child="ElencoListePrelievo" msdata:parentkey="CodTipoLista" msdata:childkey="CodTipoLista" msprop:Generator_UserChildTable="ElencoListePrelievo" msprop:Generator_ChildPropName="_GetElencoListePrelievoRows" msprop:Generator_UserRelationName="FK_ElencoListePrelievo_TipoListaPrelievo11" msprop:Generator_ParentPropName="TipoListaPrelievoRow" msprop:Generator_RelationVarName="relationFK_ElencoListePrelievo_TipoListaPrelievo11" msprop:Generator_UserParentTable="TipoListaPrelievo" />
|
||||
<msdata:Relationship name="FK_ElencoCartellini_AnagPosizioni" msdata:parent="AnagPosizioni" msdata:child="ElencoCartellini" msdata:parentkey="IdxPosizione" msdata:childkey="IdxPosizione" msprop:Generator_UserChildTable="ElencoCartellini" msprop:Generator_ChildPropName="GetElencoCartelliniRows" msprop:Generator_UserRelationName="FK_ElencoCartellini_AnagPosizioni" msprop:Generator_ParentPropName="AnagPosizioniRow" msprop:Generator_RelationVarName="relationFK_ElencoCartellini_AnagPosizioni" msprop:Generator_UserParentTable="AnagPosizioni" />
|
||||
<msdata:Relationship name="FK_Celle_TipoCella" msdata:parent="TipoCella" msdata:child="Celle" msdata:parentkey="IdxTipoCella" msdata:childkey="IdxTipoCella" msprop:Generator_UserChildTable="Celle" msprop:Generator_ChildPropName="GetCelleRows" msprop:Generator_UserRelationName="FK_Celle_TipoCella" msprop:Generator_ParentPropName="TipoCellaRow" msprop:Generator_RelationVarName="relationFK_Celle_TipoCella" msprop:Generator_UserParentTable="TipoCella" />
|
||||
<msdata:Relationship name="FK_Attr2UDC_ElencoCartellini" msdata:parent="ElencoCartellini" msdata:child="Attr2UDC" msdata:parentkey="UDC" msdata:childkey="UDC" msprop:Generator_UserChildTable="Attr2UDC" msprop:Generator_ChildPropName="GetAttr2UDCRows" msprop:Generator_UserRelationName="FK_Attr2UDC_ElencoCartellini" msprop:Generator_RelationVarName="relationFK_Attr2UDC_ElencoCartellini" msprop:Generator_UserParentTable="ElencoCartellini" msprop:Generator_ParentPropName="ElencoCartelliniRow" />
|
||||
<msdata:Relationship name="FK_AL2UDC_ElencoAssiemi" msdata:parent="ElencoAssiemi" msdata:child="AL2UDC" msdata:parentkey="AL" msdata:childkey="AL" msprop:Generator_UserChildTable="AL2UDC" msprop:Generator_ChildPropName="GetAL2UDCRows" msprop:Generator_UserRelationName="FK_AL2UDC_ElencoAssiemi" msprop:Generator_RelationVarName="relationFK_AL2UDC_ElencoAssiemi" msprop:Generator_UserParentTable="ElencoAssiemi" msprop:Generator_ParentPropName="ElencoAssiemiRow" />
|
||||
<msdata:Relationship name="FK_AL2UDC_ElencoCartellini" msdata:parent="ElencoCartellini" msdata:child="AL2UDC" msdata:parentkey="UDC" msdata:childkey="UDC" msprop:Generator_UserChildTable="AL2UDC" msprop:Generator_ChildPropName="GetAL2UDCRows" msprop:Generator_UserRelationName="FK_AL2UDC_ElencoCartellini" msprop:Generator_RelationVarName="relationFK_AL2UDC_ElencoCartellini" msprop:Generator_UserParentTable="ElencoCartellini" msprop:Generator_ParentPropName="ElencoCartelliniRow" />
|
||||
<msdata:Relationship name="FK_ElencoTrattamenti_ElencoAssiemi" msdata:parent="ElencoAssiemi" msdata:child="ElencoTrattamenti" msdata:parentkey="AL" msdata:childkey="AL" msprop:Generator_UserChildTable="ElencoTrattamenti" msprop:Generator_ChildPropName="GetElencoTrattamentiRows" msprop:Generator_UserRelationName="FK_ElencoTrattamenti_ElencoAssiemi" msprop:Generator_RelationVarName="relationFK_ElencoTrattamenti_ElencoAssiemi" msprop:Generator_UserParentTable="ElencoAssiemi" msprop:Generator_ParentPropName="ElencoAssiemiRow" />
|
||||
<msdata:Relationship name="FK_PosizioneUdcCorrente_ElencoCartellini" msdata:parent="ElencoCartellini" msdata:child="PosizioneUdcCorrente" msdata:parentkey="UDC" msdata:childkey="UDC" msprop:Generator_UserChildTable="PosizioneUdcCorrente" msprop:Generator_ChildPropName="GetPosizioneUdcCorrenteRows" msprop:Generator_UserRelationName="FK_PosizioneUdcCorrente_ElencoCartellini" msprop:Generator_RelationVarName="relationFK_PosizioneUdcCorrente_ElencoCartellini" msprop:Generator_UserParentTable="ElencoCartellini" msprop:Generator_ParentPropName="ElencoCartelliniRow" />
|
||||
<msdata:Relationship name="FK_PosizioneUdcStorico_ElencoCartellini" msdata:parent="ElencoCartellini" msdata:child="PosizioneUdcStorico" msdata:parentkey="UDC" msdata:childkey="UDC" msprop:Generator_UserChildTable="PosizioneUdcStorico" msprop:Generator_ChildPropName="GetPosizioneUdcStoricoRows" msprop:Generator_UserRelationName="FK_PosizioneUdcStorico_ElencoCartellini" msprop:Generator_RelationVarName="relationFK_PosizioneUdcStorico_ElencoCartellini" msprop:Generator_UserParentTable="ElencoCartellini" msprop:Generator_ParentPropName="ElencoCartelliniRow" />
|
||||
<msdata:Relationship name="FK_Blocchi_AnagMag" msdata:parent="AnagMag" msdata:child="Blocchi" msdata:parentkey="CodMag CodCS" msdata:childkey="CodMag CodCS" msprop:Generator_UserChildTable="Blocchi" msprop:Generator_ChildPropName="GetBlocchiRows" msprop:Generator_UserRelationName="FK_Blocchi_AnagMag" msprop:Generator_RelationVarName="relationFK_Blocchi_AnagMag" msprop:Generator_UserParentTable="AnagMag" msprop:Generator_ParentPropName="AnagMagRowParent" />
|
||||
<msdata:Relationship name="FK_PosizioneUdcCorrente_Celle" msdata:parent="Celle" msdata:child="PosizioneUdcCorrente" msdata:parentkey="IdxCella" msdata:childkey="IdxCella" msprop:Generator_UserChildTable="PosizioneUdcCorrente" msprop:Generator_ChildPropName="GetPosizioneUdcCorrenteRows" msprop:Generator_UserRelationName="FK_PosizioneUdcCorrente_Celle" msprop:Generator_RelationVarName="relationFK_PosizioneUdcCorrente_Celle" msprop:Generator_UserParentTable="Celle" msprop:Generator_ParentPropName="CelleRow" />
|
||||
<msdata:Relationship name="FK_Celle_Blocchi1" msdata:parent="Blocchi" msdata:child="Celle" msdata:parentkey="IdxBlocco" msdata:childkey="IdxBlocco" msprop:Generator_UserChildTable="Celle" msprop:Generator_ChildPropName="GetCelleRows" msprop:Generator_UserRelationName="FK_Celle_Blocchi1" msprop:Generator_RelationVarName="relationFK_Celle_Blocchi1" msprop:Generator_UserParentTable="Blocchi" msprop:Generator_ParentPropName="BlocchiRow" />
|
||||
<msdata:Relationship name="FK_TipoCella_AnagMag" msdata:parent="AnagMag" msdata:child="TipoCella" msdata:parentkey="CodMag CodCS" msdata:childkey="CodMag CodCS" msprop:Generator_UserChildTable="TipoCella" msprop:Generator_ChildPropName="GetTipoCellaRows" msprop:Generator_UserRelationName="FK_TipoCella_AnagMag" msprop:Generator_RelationVarName="relationFK_TipoCella_AnagMag" msprop:Generator_UserParentTable="AnagMag" msprop:Generator_ParentPropName="AnagMagRowParent" />
|
||||
<msdata:Relationship name="FK_RigheListePrelievo_ElencoCartellini" msdata:parent="ElencoCartellini" msdata:child="RigheListePrelievo" msdata:parentkey="UDC" msdata:childkey="UDC" msprop:Generator_UserChildTable="RigheListePrelievo" msprop:Generator_ChildPropName="GetRigheListePrelievoRows" msprop:Generator_UserRelationName="FK_RigheListePrelievo_ElencoCartellini" msprop:Generator_RelationVarName="relationFK_RigheListePrelievo_ElencoCartellini" msprop:Generator_UserParentTable="ElencoCartellini" msprop:Generator_ParentPropName="ElencoCartelliniRow" />
|
||||
<msdata:Relationship name="FK_RigheListePrelievo_ElencoListePrelievo11" msdata:parent="ElencoListePrelievo" msdata:child="RigheListePrelievo" msdata:parentkey="CodLista" msdata:childkey="CodLista" msprop:Generator_UserChildTable="RigheListePrelievo" msprop:Generator_ChildPropName="GetRigheListePrelievoRows" msprop:Generator_UserRelationName="FK_RigheListePrelievo_ElencoListePrelievo11" msprop:Generator_RelationVarName="relationFK_RigheListePrelievo_ElencoListePrelievo11" msprop:Generator_UserParentTable="ElencoListePrelievo" msprop:Generator_ParentPropName="_ElencoListePrelievoRow" />
|
||||
<msdata:Relationship name="FK_ElencoListePrelievo_TipoListaPrelievo11" msdata:parent="TipoListaPrelievo" msdata:child="ElencoListePrelievo" msdata:parentkey="CodTipoLista" msdata:childkey="CodTipoLista" msprop:Generator_UserChildTable="ElencoListePrelievo" msprop:Generator_ChildPropName="_GetElencoListePrelievoRows" msprop:Generator_UserRelationName="FK_ElencoListePrelievo_TipoListaPrelievo11" msprop:Generator_RelationVarName="relationFK_ElencoListePrelievo_TipoListaPrelievo11" msprop:Generator_UserParentTable="TipoListaPrelievo" msprop:Generator_ParentPropName="TipoListaPrelievoRow" />
|
||||
<msdata:Relationship name="FK_ElencoCartellini_AnagPosizioni" msdata:parent="AnagPosizioni" msdata:child="ElencoCartellini" msdata:parentkey="IdxPosizione" msdata:childkey="IdxPosizione" msprop:Generator_UserChildTable="ElencoCartellini" msprop:Generator_ChildPropName="GetElencoCartelliniRows" msprop:Generator_UserRelationName="FK_ElencoCartellini_AnagPosizioni" msprop:Generator_RelationVarName="relationFK_ElencoCartellini_AnagPosizioni" msprop:Generator_UserParentTable="AnagPosizioni" msprop:Generator_ParentPropName="AnagPosizioniRow" />
|
||||
<msdata:Relationship name="FK_Celle_TipoCella" msdata:parent="TipoCella" msdata:child="Celle" msdata:parentkey="IdxTipoCella" msdata:childkey="IdxTipoCella" msprop:Generator_UserChildTable="Celle" msprop:Generator_ChildPropName="GetCelleRows" msprop:Generator_UserRelationName="FK_Celle_TipoCella" msprop:Generator_RelationVarName="relationFK_Celle_TipoCella" msprop:Generator_UserParentTable="TipoCella" msprop:Generator_ParentPropName="TipoCellaRow" />
|
||||
<msdata:Relationship name="FK_Attr2UDC_ElencoCartellini" msdata:parent="ElencoCartellini" msdata:child="Attr2UDC" msdata:parentkey="UDC" msdata:childkey="UDC" msprop:Generator_UserChildTable="Attr2UDC" msprop:Generator_ChildPropName="GetAttr2UDCRows" msprop:Generator_UserRelationName="FK_Attr2UDC_ElencoCartellini" msprop:Generator_ParentPropName="ElencoCartelliniRow" msprop:Generator_RelationVarName="relationFK_Attr2UDC_ElencoCartellini" msprop:Generator_UserParentTable="ElencoCartellini" />
|
||||
<msdata:Relationship name="FK_AL2UDC_ElencoAssiemi" msdata:parent="ElencoAssiemi" msdata:child="AL2UDC" msdata:parentkey="AL" msdata:childkey="AL" msprop:Generator_UserChildTable="AL2UDC" msprop:Generator_ChildPropName="GetAL2UDCRows" msprop:Generator_UserRelationName="FK_AL2UDC_ElencoAssiemi" msprop:Generator_ParentPropName="ElencoAssiemiRow" msprop:Generator_RelationVarName="relationFK_AL2UDC_ElencoAssiemi" msprop:Generator_UserParentTable="ElencoAssiemi" />
|
||||
<msdata:Relationship name="FK_AL2UDC_ElencoCartellini" msdata:parent="ElencoCartellini" msdata:child="AL2UDC" msdata:parentkey="UDC" msdata:childkey="UDC" msprop:Generator_UserChildTable="AL2UDC" msprop:Generator_ChildPropName="GetAL2UDCRows" msprop:Generator_UserRelationName="FK_AL2UDC_ElencoCartellini" msprop:Generator_ParentPropName="ElencoCartelliniRow" msprop:Generator_RelationVarName="relationFK_AL2UDC_ElencoCartellini" msprop:Generator_UserParentTable="ElencoCartellini" />
|
||||
<msdata:Relationship name="FK_ElencoTrattamenti_ElencoAssiemi" msdata:parent="ElencoAssiemi" msdata:child="ElencoTrattamenti" msdata:parentkey="AL" msdata:childkey="AL" msprop:Generator_UserChildTable="ElencoTrattamenti" msprop:Generator_ChildPropName="GetElencoTrattamentiRows" msprop:Generator_UserRelationName="FK_ElencoTrattamenti_ElencoAssiemi" msprop:Generator_ParentPropName="ElencoAssiemiRow" msprop:Generator_RelationVarName="relationFK_ElencoTrattamenti_ElencoAssiemi" msprop:Generator_UserParentTable="ElencoAssiemi" />
|
||||
</xs:appinfo>
|
||||
</xs:annotation>
|
||||
</xs:schema>
|
||||
+14
-10
@@ -6,7 +6,7 @@
|
||||
</autogenerated>-->
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-153" ViewPortY="-47" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:ElencoCartellini" ZOrder="1" X="87" Y="230" Height="495" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="368" />
|
||||
<Shape ID="DesignTable:ElencoCartellini" ZOrder="2" X="87" Y="230" Height="495" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="368" />
|
||||
<Shape ID="DesignTable:AnagMag" ZOrder="26" X="1047" Y="389" Height="229" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:PosizioneUdcCorrente" ZOrder="24" X="409" Y="544" Height="286" Width="245" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:PosizioneUdcStorico" ZOrder="50" X="412" Y="310" Height="168" Width="257" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
@@ -16,9 +16,9 @@
|
||||
<Shape ID="DesignTable:v_UdcDetail" ZOrder="11" X="693" Y="-21" Height="419" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:AnagImballi" ZOrder="16" X="318" Y="-36" Height="172" Width="211" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:V_ParticolariOverview" ZOrder="35" X="95" Y="1131" Height="248" Width="265" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:V_MagazziniOverview" ZOrder="2" X="732" Y="1116" Height="362" Width="271" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:V_MagazziniOverview" ZOrder="3" X="732" Y="1116" Height="362" Width="271" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:V_DettMagPart" ZOrder="31" X="1027" Y="998" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:TipoListaPrelievo" ZOrder="3" X="736" Y="876" Height="229" Width="244" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
|
||||
<Shape ID="DesignTable:TipoListaPrelievo" ZOrder="4" X="736" Y="876" Height="229" Width="244" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
|
||||
<Shape ID="DesignTable:RigheListePrelievo" ZOrder="36" X="86" Y="797" Height="307" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:ElencoListePrelievo" ZOrder="19" X="430" Y="879" Height="381" Width="226" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:v_righeListePrelievoPosizione" ZOrder="37" X="400" Y="1301" Height="343" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
|
||||
@@ -38,9 +38,9 @@
|
||||
<Shape ID="DesignTable:AnagLinee" ZOrder="18" X="1119" Y="2077" Height="362" Width="240" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
|
||||
<Shape ID="DesignTable:stp_ParticolareInOutOk" ZOrder="17" X="474" Y="2283" Height="96" Width="199" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="46" />
|
||||
<Shape ID="DesignTable:Attr2UDC" ZOrder="13" X="87" Y="-35" Height="229" Width="220" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
|
||||
<Shape ID="DesignTable:ElencoAssiemi" ZOrder="4" X="-137" Y="550" Height="343" Width="209" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
|
||||
<Shape ID="DesignTable:AL2UDC" ZOrder="6" X="-138" Y="289" Height="210" Width="190" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:ElencoTrattamenti" ZOrder="5" X="-138" Y="928" Height="362" Width="209" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
|
||||
<Shape ID="DesignTable:ElencoAssiemi" ZOrder="5" X="-137" Y="550" Height="343" Width="209" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
|
||||
<Shape ID="DesignTable:AL2UDC" ZOrder="1" X="-138" Y="289" Height="229" Width="200" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:ElencoTrattamenti" ZOrder="6" X="-138" Y="928" Height="362" Width="209" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
|
||||
<Shape ID="DesignTable:v_A2U2D" ZOrder="8" X="-143" Y="1320" Height="210" Width="197" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
</Shapes>
|
||||
<Connectors>
|
||||
@@ -204,7 +204,7 @@
|
||||
</Point>
|
||||
<Point>
|
||||
<X>-39</X>
|
||||
<Y>499</Y>
|
||||
<Y>518</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
@@ -212,11 +212,15 @@
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>87</X>
|
||||
<Y>336</Y>
|
||||
<Y>254</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>52</X>
|
||||
<Y>336</Y>
|
||||
<X>-27</X>
|
||||
<Y>254</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>-27</X>
|
||||
<Y>289</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
|
||||
+26
-5
@@ -1037,7 +1037,7 @@ namespace GMW_data
|
||||
// insert nuovo UDC con codice impostato
|
||||
try
|
||||
{
|
||||
tabUdc = DataProxy.obj.taCartellini.stp_insNewFullWithAL(AL, SourceAL,DataMatrix,CodStatoUdcOut, CodCella, CodCS, CodBilanciaTrim, annoTrim, CodClienteTrim, ParticolareTrim, CodImpiantoTrim, CodStampoTrim, EsponenteTrim, FiguraTrim, DataRif, TurnoRif, CodImballoTrim, CodSoggettoTrim, Tara, IdxPosizione, CodTipoDichiarazioneTrim, codEventoTrim, Quantita, PesoTot, PesoCad, CodStatoTrim, UDC_parentTrim, doDeleteUdcTara, noteTrim);
|
||||
tabUdc = DataProxy.obj.taCartellini.stp_insNewFullWithAL(AL, SourceAL, DataMatrix, CodStatoUdcOut, CodCella, CodCS, CodBilanciaTrim, annoTrim, CodClienteTrim, ParticolareTrim, CodImpiantoTrim, CodStampoTrim, EsponenteTrim, FiguraTrim, DataRif, TurnoRif, CodImballoTrim, CodSoggettoTrim, Tara, IdxPosizione, CodTipoDichiarazioneTrim, codEventoTrim, Quantita, PesoTot, PesoCad, CodStatoTrim, UDC_parentTrim, doDeleteUdcTara, noteTrim);
|
||||
answ = UDC;
|
||||
}
|
||||
catch
|
||||
@@ -1145,6 +1145,7 @@ namespace GMW_data
|
||||
{
|
||||
IdxPosizione = memLayer.ML.confReadInt(defIdxPosizTrim);
|
||||
}
|
||||
//int IdxPosizione = memLayer.ML.confReadInt(defIdxPosizTrim);
|
||||
// controllo di avere codice soggetto e particolare validi (!="")
|
||||
if (ParticolareTrim != "" && CodSoggettoTrim != "")
|
||||
{
|
||||
@@ -1303,6 +1304,24 @@ namespace GMW_data
|
||||
{
|
||||
taCartellini.updateNote(UDC, note, CodSoggCurrUser);
|
||||
}
|
||||
/// <summary>
|
||||
/// aggiorna posizione dell'UDC
|
||||
/// </summary>
|
||||
/// <param name="UDC"></param>
|
||||
/// <param name="idxPosizione"></param>
|
||||
public void updatePosizioneUDC(string UDC, int idxPosizione)
|
||||
{
|
||||
taCartellini.updateIdxPosizione(UDC, idxPosizione, CodSoggCurrUser);
|
||||
}
|
||||
/// <summary>
|
||||
/// aggiorna note e posizione dell'UDC
|
||||
/// </summary>
|
||||
/// <param name="UDC"></param>
|
||||
/// <param name="idxPosizione"></param>
|
||||
public void updateNotePosizioneUDC(string UDC, string note, int idxPosizione)
|
||||
{
|
||||
taCartellini.updateNotePosizione(UDC, idxPosizione, note, CodSoggCurrUser);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -1545,10 +1564,12 @@ namespace GMW_data
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
answ = (taVParticolariOverwiew.getByParticolareFull(Particolare, CodCS).Rows.Count > 0);
|
||||
answ = (utils.obj.taSelParticolari.getByConditioValue(Particolare, "*").Rows.Count > 0);
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Errore in check particolare:{0}{1}", Environment.NewLine, exc), tipoLog.EXCEPTION);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
@@ -2131,7 +2152,7 @@ namespace GMW_data
|
||||
// restituisce ok
|
||||
answ = esitoOperazione.ok;
|
||||
}
|
||||
catch(Exception exc)
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Errore in trasferimento dati LDP verso AS400: {0}", exc), tipoLog.EXCEPTION);
|
||||
}
|
||||
|
||||
+392
-379
@@ -6,419 +6,432 @@ using SteamWare;
|
||||
|
||||
namespace GMW_data
|
||||
{
|
||||
/// <summary>
|
||||
/// classe gestione operazioni con terminalino
|
||||
/// </summary>
|
||||
public class TermClass
|
||||
{
|
||||
#region area table adapters
|
||||
/// <summary>
|
||||
/// classe gestione operazioni con terminalino
|
||||
/// </summary>
|
||||
public class TermClass
|
||||
{
|
||||
#region area table adapters
|
||||
|
||||
// variabile di tipo table adapter
|
||||
// variabile di tipo table adapter
|
||||
#if false
|
||||
public DS_magazzinoTableAdapters.AnagMagTableAdapter taAnagMag;
|
||||
public DS_magazzinoTableAdapters.BlocchiTableAdapter taBlocchi;
|
||||
public DS_magazzinoTableAdapters.CelleTableAdapter taCelle;
|
||||
public DS_magazzinoTableAdapters.TipoCellaTableAdapter taTipoCella;
|
||||
public DS_magazzinoTableAdapters.ElencoCartelliniTableAdapter taCartellini;
|
||||
public DS_magazzinoTableAdapters.PosizioneUdcCorrenteTableAdapter taPosUdcCorr;
|
||||
public DS_magazzinoTableAdapters.PosizioneUdcStoricoTableAdapter taPosUdcStorico;
|
||||
public DS_magazzinoTableAdapters.V_MagazziniOverviewTableAdapter taMagOverw;
|
||||
public DS_magazzinoTableAdapters.V_DettMagPartTableAdapter taDettMagPart;
|
||||
public DS_magazzinoTableAdapters.v_UdcDetailTableAdapter taDettUDC;
|
||||
public DS_magazzinoTableAdapters.ElencoListePrelievoTableAdapter taElencoListePrelievo;
|
||||
public DS_magazzinoTableAdapters.ElencoCartelliniTableAdapter taElencoCartellini;
|
||||
public DS_magazzinoTableAdapters.RigheListePrelievoTableAdapter taRigheListePrelievo;
|
||||
public DS_magazzinoTableAdapters.TipoListaPrelievoTableAdapter taTipoListaPrelievo;
|
||||
public DS_magazzinoTableAdapters.V_ParticolariOverviewTableAdapter taVParticolariOverwiew;
|
||||
public DS_magazzinoTableAdapters.v_particolariEsponenteFiguraTableAdapter taPartExpFig;
|
||||
public DS_magazzinoTableAdapters.AnagMagTableAdapter taAnagMag;
|
||||
public DS_magazzinoTableAdapters.BlocchiTableAdapter taBlocchi;
|
||||
public DS_magazzinoTableAdapters.CelleTableAdapter taCelle;
|
||||
public DS_magazzinoTableAdapters.TipoCellaTableAdapter taTipoCella;
|
||||
public DS_magazzinoTableAdapters.ElencoCartelliniTableAdapter taCartellini;
|
||||
public DS_magazzinoTableAdapters.PosizioneUdcCorrenteTableAdapter taPosUdcCorr;
|
||||
public DS_magazzinoTableAdapters.PosizioneUdcStoricoTableAdapter taPosUdcStorico;
|
||||
public DS_magazzinoTableAdapters.V_MagazziniOverviewTableAdapter taMagOverw;
|
||||
public DS_magazzinoTableAdapters.V_DettMagPartTableAdapter taDettMagPart;
|
||||
public DS_magazzinoTableAdapters.v_UdcDetailTableAdapter taDettUDC;
|
||||
public DS_magazzinoTableAdapters.ElencoListePrelievoTableAdapter taElencoListePrelievo;
|
||||
public DS_magazzinoTableAdapters.ElencoCartelliniTableAdapter taElencoCartellini;
|
||||
public DS_magazzinoTableAdapters.RigheListePrelievoTableAdapter taRigheListePrelievo;
|
||||
public DS_magazzinoTableAdapters.TipoListaPrelievoTableAdapter taTipoListaPrelievo;
|
||||
public DS_magazzinoTableAdapters.V_ParticolariOverviewTableAdapter taVParticolariOverwiew;
|
||||
public DS_magazzinoTableAdapters.v_particolariEsponenteFiguraTableAdapter taPartExpFig;
|
||||
#endif
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// init dei table adapters
|
||||
/// </summary>
|
||||
protected void initTA()
|
||||
{
|
||||
// istanzio oggetto
|
||||
/// <summary>
|
||||
/// init dei table adapters
|
||||
/// </summary>
|
||||
protected void initTA()
|
||||
{
|
||||
// istanzio oggetto
|
||||
#if false
|
||||
taAnagMag = new GMW_data.DS_magazzinoTableAdapters.AnagMagTableAdapter();
|
||||
taBlocchi = new GMW_data.DS_magazzinoTableAdapters.BlocchiTableAdapter();
|
||||
taCelle = new GMW_data.DS_magazzinoTableAdapters.CelleTableAdapter();
|
||||
taTipoCella = new GMW_data.DS_magazzinoTableAdapters.TipoCellaTableAdapter();
|
||||
taCartellini = new GMW_data.DS_magazzinoTableAdapters.ElencoCartelliniTableAdapter();
|
||||
taPosUdcCorr = new GMW_data.DS_magazzinoTableAdapters.PosizioneUdcCorrenteTableAdapter();
|
||||
taPosUdcStorico = new GMW_data.DS_magazzinoTableAdapters.PosizioneUdcStoricoTableAdapter();
|
||||
taMagOverw = new GMW_data.DS_magazzinoTableAdapters.V_MagazziniOverviewTableAdapter();
|
||||
taDettMagPart = new GMW_data.DS_magazzinoTableAdapters.V_DettMagPartTableAdapter();
|
||||
taDettUDC = new GMW_data.DS_magazzinoTableAdapters.v_UdcDetailTableAdapter();
|
||||
taElencoListePrelievo = new GMW_data.DS_magazzinoTableAdapters.ElencoListePrelievoTableAdapter();
|
||||
taElencoCartellini = new GMW_data.DS_magazzinoTableAdapters.ElencoCartelliniTableAdapter();
|
||||
taRigheListePrelievo = new GMW_data.DS_magazzinoTableAdapters.RigheListePrelievoTableAdapter();
|
||||
taTipoListaPrelievo = new GMW_data.DS_magazzinoTableAdapters.TipoListaPrelievoTableAdapter();
|
||||
taVParticolariOverwiew = new GMW_data.DS_magazzinoTableAdapters.V_ParticolariOverviewTableAdapter();
|
||||
taPartExpFig = new GMW_data.DS_magazzinoTableAdapters.v_particolariEsponenteFiguraTableAdapter();
|
||||
taAnagMag = new GMW_data.DS_magazzinoTableAdapters.AnagMagTableAdapter();
|
||||
taBlocchi = new GMW_data.DS_magazzinoTableAdapters.BlocchiTableAdapter();
|
||||
taCelle = new GMW_data.DS_magazzinoTableAdapters.CelleTableAdapter();
|
||||
taTipoCella = new GMW_data.DS_magazzinoTableAdapters.TipoCellaTableAdapter();
|
||||
taCartellini = new GMW_data.DS_magazzinoTableAdapters.ElencoCartelliniTableAdapter();
|
||||
taPosUdcCorr = new GMW_data.DS_magazzinoTableAdapters.PosizioneUdcCorrenteTableAdapter();
|
||||
taPosUdcStorico = new GMW_data.DS_magazzinoTableAdapters.PosizioneUdcStoricoTableAdapter();
|
||||
taMagOverw = new GMW_data.DS_magazzinoTableAdapters.V_MagazziniOverviewTableAdapter();
|
||||
taDettMagPart = new GMW_data.DS_magazzinoTableAdapters.V_DettMagPartTableAdapter();
|
||||
taDettUDC = new GMW_data.DS_magazzinoTableAdapters.v_UdcDetailTableAdapter();
|
||||
taElencoListePrelievo = new GMW_data.DS_magazzinoTableAdapters.ElencoListePrelievoTableAdapter();
|
||||
taElencoCartellini = new GMW_data.DS_magazzinoTableAdapters.ElencoCartelliniTableAdapter();
|
||||
taRigheListePrelievo = new GMW_data.DS_magazzinoTableAdapters.RigheListePrelievoTableAdapter();
|
||||
taTipoListaPrelievo = new GMW_data.DS_magazzinoTableAdapters.TipoListaPrelievoTableAdapter();
|
||||
taVParticolariOverwiew = new GMW_data.DS_magazzinoTableAdapters.V_ParticolariOverviewTableAdapter();
|
||||
taPartExpFig = new GMW_data.DS_magazzinoTableAdapters.v_particolariEsponenteFiguraTableAdapter();
|
||||
#endif
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua setup dei connection strings da web.config delal singola applicazione
|
||||
/// </summary>
|
||||
protected virtual void setupConnectionStringBase()
|
||||
{
|
||||
// connections del db
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua setup dei connection strings da web.config delal singola applicazione
|
||||
/// </summary>
|
||||
protected virtual void setupConnectionStringBase()
|
||||
{
|
||||
// connections del db
|
||||
#if false
|
||||
taAnagMag.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taBlocchi.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taCelle.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taTipoCella.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taCartellini.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taPosUdcCorr.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taPosUdcStorico.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taMagOverw.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taDettMagPart.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taDettUDC.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taElencoListePrelievo.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taElencoCartellini.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taRigheListePrelievo.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taTipoListaPrelievo.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taVParticolariOverwiew.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taPartExpFig.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taAnagMag.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taBlocchi.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taCelle.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taTipoCella.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taCartellini.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taPosUdcCorr.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taPosUdcStorico.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taMagOverw.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taDettMagPart.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taDettUDC.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taElencoListePrelievo.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taElencoCartellini.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taRigheListePrelievo.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taTipoListaPrelievo.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taVParticolariOverwiew.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taPartExpFig.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region Inizializzazione
|
||||
#region Inizializzazione
|
||||
|
||||
protected TermClass()
|
||||
{
|
||||
initTA();
|
||||
setupConnectionStringBase();
|
||||
}
|
||||
protected TermClass()
|
||||
{
|
||||
// init oggetto
|
||||
initTA();
|
||||
setupConnectionStringBase();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// oggetto static per fare chiamate sul magazzino
|
||||
/// </summary>
|
||||
public static TermClass Ter = new TermClass();
|
||||
/// <summary>
|
||||
/// oggetto static per fare chiamate sul magazzino
|
||||
/// </summary>
|
||||
public static TermClass Ter = new TermClass();
|
||||
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region metodi protected
|
||||
#region metodi protected
|
||||
|
||||
#if false
|
||||
/// <summary>
|
||||
/// aggiunge le righe liste di prelievo necessarie a soddisfare la richiesta in logica FIFO dato un elenco di cartellini, la qta totale da allocare e la lista attuale
|
||||
/// </summary>
|
||||
/// <param name="QtaTot"></param>
|
||||
/// <param name="codListaAttuale"></param>
|
||||
/// <param name="tabellaElencoCartellini"></param>
|
||||
private void allocaRigheListaPrelievo(decimal QtaTot, string codListaAttuale, DS_magazzino.ElencoCartelliniDataTable tabellaElencoCartellini)
|
||||
{
|
||||
//ricavo il valore UDC della riga del più vecchio
|
||||
string udcAttuale;
|
||||
bool qtaOk = false;
|
||||
bool dataFinished = false;
|
||||
int progrUdc = 0;
|
||||
int numUdcDisponibili = tabellaElencoCartellini.Rows.Count;
|
||||
// contiene la quantità della riga attuale
|
||||
decimal qtaRiga;
|
||||
// somma progressiva della qta allocata - calcolo da db!
|
||||
decimal qtaAllocata = taElencoListePrelievo.getByCodLista(codListaAttuale)[0].Prelevato;
|
||||
//ciclo WHILE per lo riempimento FIFO con UDC secondo richiesta a partire da elenco fornito
|
||||
while (!qtaOk && !dataFinished)
|
||||
{
|
||||
/*
|
||||
* crea una riga in righelistaprelievo passando come valori
|
||||
* il codlista attuale ricavato da sopr
|
||||
* l'UDC dal primo della tabella getOlderUDC
|
||||
*
|
||||
*
|
||||
* recupero quantità dalla riga corrente;
|
||||
*
|
||||
* imposto proposto a 1;
|
||||
* imposto prelevato 0;
|
||||
* taRighelistePreliveo.Insert;
|
||||
*
|
||||
* qtaAllocata = qtaAllocata + Qta di questa riga (riuso il valore della colonna QTA
|
||||
* tabella[contatore]; contatore++;
|
||||
* qtaOk = (qtaAllocata >= qtaRichiesta)
|
||||
* dataFinished = (contatore >= numRighe);
|
||||
*
|
||||
* */
|
||||
// ricavo la riga più vecchia
|
||||
qtaRiga = tabellaElencoCartellini[progrUdc].Qta;
|
||||
udcAttuale = tabellaElencoCartellini[progrUdc].UDC;
|
||||
// eseguo query di insert
|
||||
taRigheListePrelievo.Insert(codListaAttuale, udcAttuale, qtaRiga, true, false);
|
||||
/// <summary>
|
||||
/// aggiunge le righe liste di prelievo necessarie a soddisfare la richiesta in logica FIFO dato un elenco di cartellini, la qta totale da allocare e la lista attuale
|
||||
/// </summary>
|
||||
/// <param name="QtaTot"></param>
|
||||
/// <param name="codListaAttuale"></param>
|
||||
/// <param name="tabellaElencoCartellini"></param>
|
||||
private void allocaRigheListaPrelievo(decimal QtaTot, string codListaAttuale, DS_magazzino.ElencoCartelliniDataTable tabellaElencoCartellini)
|
||||
{
|
||||
//ricavo il valore UDC della riga del più vecchio
|
||||
string udcAttuale;
|
||||
bool qtaOk = false;
|
||||
bool dataFinished = false;
|
||||
int progrUdc = 0;
|
||||
int numUdcDisponibili = tabellaElencoCartellini.Rows.Count;
|
||||
// contiene la quantità della riga attuale
|
||||
decimal qtaRiga;
|
||||
// somma progressiva della qta allocata - calcolo da db!
|
||||
decimal qtaAllocata = taElencoListePrelievo.getByCodLista(codListaAttuale)[0].Prelevato;
|
||||
//ciclo WHILE per lo riempimento FIFO con UDC secondo richiesta a partire da elenco fornito
|
||||
while (!qtaOk && !dataFinished)
|
||||
{
|
||||
/*
|
||||
* crea una riga in righelistaprelievo passando come valori
|
||||
* il codlista attuale ricavato da sopr
|
||||
* l'UDC dal primo della tabella getOlderUDC
|
||||
*
|
||||
*
|
||||
* recupero quantità dalla riga corrente;
|
||||
*
|
||||
* imposto proposto a 1;
|
||||
* imposto prelevato 0;
|
||||
* taRighelistePreliveo.Insert;
|
||||
*
|
||||
* qtaAllocata = qtaAllocata + Qta di questa riga (riuso il valore della colonna QTA
|
||||
* tabella[contatore]; contatore++;
|
||||
* qtaOk = (qtaAllocata >= qtaRichiesta)
|
||||
* dataFinished = (contatore >= numRighe);
|
||||
*
|
||||
* */
|
||||
// ricavo la riga più vecchia
|
||||
qtaRiga = tabellaElencoCartellini[progrUdc].Qta;
|
||||
udcAttuale = tabellaElencoCartellini[progrUdc].UDC;
|
||||
// eseguo query di insert
|
||||
taRigheListePrelievo.Insert(codListaAttuale, udcAttuale, qtaRiga, true, false);
|
||||
|
||||
//incremento qta allocata
|
||||
qtaAllocata = (qtaAllocata + qtaRiga);
|
||||
//incremento contatore
|
||||
progrUdc++;
|
||||
//incremento qta allocata
|
||||
qtaAllocata = (qtaAllocata + qtaRiga);
|
||||
//incremento contatore
|
||||
progrUdc++;
|
||||
|
||||
// verifico le condizioni, false se non cambia nulla true se cambia e si esce dal while
|
||||
qtaOk = (qtaAllocata >= QtaTot);
|
||||
dataFinished = (progrUdc >= numUdcDisponibili);
|
||||
}
|
||||
}
|
||||
// verifico le condizioni, false se non cambia nulla true se cambia e si esce dal while
|
||||
qtaOk = (qtaAllocata >= QtaTot);
|
||||
dataFinished = (progrUdc >= numUdcDisponibili);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region Metodi esposti
|
||||
#region Metodi esposti
|
||||
|
||||
/// <summary>
|
||||
/// Verifica il login utente andando a controllare il CodSoggetto da RilPro e salvando in sessione un oggetto user_std x l'utente corrispondente al cod soggetto secondo la tab soggetti2utente
|
||||
/// </summary>
|
||||
/// <param name="CodSoggetto"></param>
|
||||
/// <returns>tipo di errore codificato</returns>
|
||||
public esitoLoginTerm doUserLogin(string CodSoggetto)
|
||||
{
|
||||
esitoLoginTerm answ = esitoLoginTerm.errore;
|
||||
try
|
||||
{
|
||||
// verifico che il cod operatore passato sia valido per RilPro.AnagOperatori e Soggetti2Utente
|
||||
int trovatiAnagOp = DataProxy.obj.taAnagOperatore.getByCodSoggetto(CodSoggetto).Rows.Count;
|
||||
int trovatiS2U = DataProxy.obj.taSogg2Oper.getByCodSoggetto(CodSoggetto).Rows.Count;
|
||||
if (trovatiAnagOp == 1)
|
||||
{
|
||||
if (trovatiS2U == 1)
|
||||
{
|
||||
// è ok, proseguo facendo avvio user
|
||||
DS_Applicazione.Soggetti2UtenteRow rigaOp = DataProxy.obj.taSogg2Oper.getByCodSoggetto(CodSoggetto)[0];
|
||||
// inizializzo utente con dati operatore
|
||||
user_std _utente = new user_std();
|
||||
user_std.UtSn.isForcedUser = true;
|
||||
bool fatto = _utente.startUpUtente(rigaOp.DOMINIO, rigaOp.USER_NAME);
|
||||
if (fatto)
|
||||
{
|
||||
answ = esitoLoginTerm.ok;
|
||||
logger.lg.scriviLog(String.Format("Forced user identity ok: logged as \t {0}\\{1}", user_std.UtSn.dominio, user_std.UtSn.utente), tipoLog.STARTUP);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Attenzione: trovati {0} utenti in RilPro AnagOperatori e {1} utenti in Soggetti2Utente per il CodSoggetto {2}: login impossibile!", trovatiAnagOp, trovatiS2U, CodSoggetto), tipoLog.ERROR);
|
||||
answ = esitoLoginTerm.errore_noUser;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Attenzione: trovati {0} utenti in RilPro AnagOperatori e {1} utenti in Soggetti2Utente per il CodSoggetto {2}: login impossibile!", trovatiAnagOp, trovatiS2U, CodSoggetto), tipoLog.ERROR);
|
||||
answ = esitoLoginTerm.errore_noCodSogg;
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Errore in TermClass.doUserLogin per il CodSoggetto {0}: eccezione {1}", CodSoggetto, e), tipoLog.FATAL);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica se il codice barcode letto sia un particoalre con codice tipo "P"
|
||||
/// </summary>
|
||||
/// <param name="barcodeIN"></param>
|
||||
/// <returns></returns>
|
||||
public bool isParticolare(string barcodeIN)
|
||||
{
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
answ = utils.obj.taSelParticolari.getByConditioValue(barcodeIN, "P").Rows.Count == 1;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica se il codice barcode letto sia un anima
|
||||
/// </summary>
|
||||
/// <param name="valore"></param>
|
||||
/// <returns></returns>
|
||||
public bool isAnima(string valore)
|
||||
{
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
answ = utils.obj.taSelParticolari.getByConditioValue(valore, "A").Rows.Count == 1;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica se il codice barcode letto sia
|
||||
/// - FinitoLiquidi
|
||||
/// - NON consumato ( maggiore di 0 )
|
||||
/// - NON spedito ( minore di 200 )
|
||||
/// </summary>
|
||||
/// <param name="UDC">UDC da verificare</param>
|
||||
/// <returns></returns>
|
||||
public bool isFinitoLiquidiOK(string UDC)
|
||||
{
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
answ = DataProxy.obj.taCartellini.getByUdcStatoPosiz(UDC, "FinLiq", 1, 199).Rows.Count == 1;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica il codice barcode letto e restituisce il tipo di valore corrisponente
|
||||
/// </summary>
|
||||
/// <param name="barcodeIN"></param>
|
||||
/// <returns></returns>
|
||||
public tipoCodiceBarcode riconosciBarcode(string barcodeIN)
|
||||
{
|
||||
tipoCodiceBarcode answ = tipoCodiceBarcode.ND;
|
||||
if (barcodeIN != "")
|
||||
{
|
||||
// cerco se sia un particolare...
|
||||
if (utils.obj.taSelParticolari.getByConditioValue(barcodeIN, "*").Rows.Count == 1)
|
||||
{
|
||||
answ = tipoCodiceBarcode.Particolare;
|
||||
}
|
||||
// se non lo è continuo
|
||||
if (answ == tipoCodiceBarcode.ND)
|
||||
{
|
||||
switch (barcodeIN.Substring(0, 1))
|
||||
{
|
||||
case "O":
|
||||
answ = tipoCodiceBarcode.Operatore;
|
||||
break;
|
||||
case "K":
|
||||
answ = tipoCodiceBarcode.ListaPrelievo;
|
||||
break;
|
||||
//case "P":
|
||||
//case "A":
|
||||
// answ = tipoCodiceBarcode.Particolare;
|
||||
// break;
|
||||
case "U":
|
||||
answ = tipoCodiceBarcode.UDC;
|
||||
break;
|
||||
case "S":
|
||||
answ = tipoCodiceBarcode.Cella;
|
||||
break;
|
||||
default:
|
||||
// cerco se la stringa intera abbia un match con le celle...
|
||||
if (MagClass.magazzino.taCelle.getByCodCella(barcodeIN).Rows.Count == 1)
|
||||
{
|
||||
answ = tipoCodiceBarcode.Cella;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua il reset di tutti i valori in sesisone salvati a valle della scansione di un barcode
|
||||
/// </summary>
|
||||
/// <param name="resetUdc">true/false se resettare UDC selezionato</param>
|
||||
/// <param name="resetCella">true/false se resettare Cella selezionata</param>
|
||||
/// <param name="resetPArticolare">true/false se resettare Particolare selezionato</param>
|
||||
public void resetScanBarcode(bool resetUdc, bool resetCella, bool resetParticolare)
|
||||
{
|
||||
if (resetCella)
|
||||
{
|
||||
memLayer.ML.emptySessionVal("IdxCella_sel");
|
||||
memLayer.ML.emptySessionVal("codCella_sel");
|
||||
}
|
||||
if (resetParticolare)
|
||||
{
|
||||
memLayer.ML.emptySessionVal("Particolare_sel");
|
||||
}
|
||||
if (resetUdc)
|
||||
{
|
||||
memLayer.ML.emptySessionVal("UDC_sel");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Verifica il login utente andando a controllare il CodSoggetto da RilPro e salvando in sessione un oggetto user_std x l'utente corrispondente al cod soggetto secondo la tab soggetti2utente
|
||||
/// </summary>
|
||||
/// <param name="CodSoggetto"></param>
|
||||
/// <returns>tipo di errore codificato</returns>
|
||||
public esitoLoginTerm doUserLogin(string CodSoggetto)
|
||||
{
|
||||
esitoLoginTerm answ = esitoLoginTerm.errore;
|
||||
try
|
||||
{
|
||||
// verifico che il cod operatore passato sia valido per RilPro.AnagOperatori e Soggetti2Utente
|
||||
int trovatiAnagOp = DataProxy.obj.taAnagOperatore.getByCodSoggetto(CodSoggetto).Rows.Count;
|
||||
int trovatiS2U = DataProxy.obj.taSogg2Oper.getByCodSoggetto(CodSoggetto).Rows.Count;
|
||||
if (trovatiAnagOp == 1)
|
||||
{
|
||||
if (trovatiS2U == 1)
|
||||
{
|
||||
// è ok, proseguo facendo avvio user
|
||||
DS_Applicazione.Soggetti2UtenteRow rigaOp = DataProxy.obj.taSogg2Oper.getByCodSoggetto(CodSoggetto)[0];
|
||||
// inizializzo utente con dati operatore
|
||||
user_std _utente = new user_std();
|
||||
user_std.UtSn.isForcedUser = true;
|
||||
bool fatto = _utente.startUpUtente(rigaOp.DOMINIO, rigaOp.USER_NAME);
|
||||
if (fatto)
|
||||
{
|
||||
answ = esitoLoginTerm.ok;
|
||||
logger.lg.scriviLog(String.Format("Forced user identity ok: logged as \t {0}\\{1}", user_std.UtSn.dominio, user_std.UtSn.utente), tipoLog.STARTUP);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Attenzione: trovati {0} utenti in RilPro AnagOperatori e {1} utenti in Soggetti2Utente per il CodSoggetto {2}: login impossibile!", trovatiAnagOp, trovatiS2U, CodSoggetto), tipoLog.ERROR);
|
||||
answ = esitoLoginTerm.errore_noUser;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Attenzione: trovati {0} utenti in RilPro AnagOperatori e {1} utenti in Soggetti2Utente per il CodSoggetto {2}: login impossibile!", trovatiAnagOp, trovatiS2U, CodSoggetto), tipoLog.ERROR);
|
||||
answ = esitoLoginTerm.errore_noCodSogg;
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Errore in TermClass.doUserLogin per il CodSoggetto {0}: eccezione {1}", CodSoggetto, e), tipoLog.FATAL);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica se il codice barcode letto sia un particoalre con codice tipo "P"
|
||||
/// </summary>
|
||||
/// <param name="barcodeIN"></param>
|
||||
/// <returns></returns>
|
||||
public bool isParticolare(string barcodeIN)
|
||||
{
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
answ = utils.obj.taSelParticolari.getByConditioValue(barcodeIN, "P").Rows.Count == 1;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica se il codice barcode letto sia un anima
|
||||
/// </summary>
|
||||
/// <param name="valore"></param>
|
||||
/// <returns></returns>
|
||||
public bool isAnima(string valore)
|
||||
{
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
answ = utils.obj.taSelParticolari.getByConditioValue(valore, "A").Rows.Count == 1;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica se il codice barcode letto sia
|
||||
/// - FinitoLiquidi
|
||||
/// - NON consumato ( maggiore di 0 )
|
||||
/// - NON spedito ( minore di 200 )
|
||||
/// </summary>
|
||||
/// <param name="UDC">UDC da verificare</param>
|
||||
/// <returns></returns>
|
||||
public bool isFinitoLiquidiOK(string UDC)
|
||||
{
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
answ = DataProxy.obj.taCartellini.getByUdcStatoPosiz(UDC, "FinLiq", 1, 199).Rows.Count == 1;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica il codice barcode letto e restituisce il tipo di valore corrisponente
|
||||
/// </summary>
|
||||
/// <param name="barcodeIN"></param>
|
||||
/// <returns></returns>
|
||||
public tipoCodiceBarcode riconosciBarcode(string barcodeIN)
|
||||
{
|
||||
tipoCodiceBarcode answ = tipoCodiceBarcode.ND;
|
||||
if (barcodeIN != "")
|
||||
{
|
||||
// controllo se in sessione ci sia la stessa verifica e nel caso NON la rifaccio su DB...
|
||||
if (memLayer.ML.StringCacheObj("lastBarcodeIN") == barcodeIN)
|
||||
{
|
||||
answ = (tipoCodiceBarcode)memLayer.ML.objCacheObj("lastBarcodeType");
|
||||
}
|
||||
else
|
||||
{
|
||||
// salvo richiesta barcode in cache..
|
||||
memLayer.ML.setCacheVal("lastBarcodeIN", barcodeIN);
|
||||
// cerco se sia un particolare...
|
||||
if (utils.obj.taSelParticolari.getByConditioValue(barcodeIN, "*").Rows.Count == 1)
|
||||
{
|
||||
answ = tipoCodiceBarcode.Particolare;
|
||||
}
|
||||
// se non lo è continuo
|
||||
if (answ == tipoCodiceBarcode.ND)
|
||||
{
|
||||
switch (barcodeIN.Substring(0, 1))
|
||||
{
|
||||
case "O":
|
||||
answ = tipoCodiceBarcode.Operatore;
|
||||
break;
|
||||
case "K":
|
||||
answ = tipoCodiceBarcode.ListaPrelievo;
|
||||
break;
|
||||
//case "P":
|
||||
//case "A":
|
||||
// answ = tipoCodiceBarcode.Particolare;
|
||||
// break;
|
||||
case "U":
|
||||
answ = tipoCodiceBarcode.UDC;
|
||||
break;
|
||||
case "S":
|
||||
answ = tipoCodiceBarcode.Cella;
|
||||
break;
|
||||
default:
|
||||
// cerco se la stringa intera abbia un match con le celle...
|
||||
if (MagClass.magazzino.taCelle.getByCodCella(barcodeIN).Rows.Count == 1)
|
||||
{
|
||||
answ = tipoCodiceBarcode.Cella;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
// salvo in cache decodifica
|
||||
memLayer.ML.setCacheVal("lastBarcodeType", answ);
|
||||
}
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua il reset di tutti i valori in sessione salvati a valle della scansione di un barcode
|
||||
/// </summary>
|
||||
/// <param name="resetUdc">true/false se resettare UDC selezionato</param>
|
||||
/// <param name="resetCella">true/false se resettare Cella selezionata</param>
|
||||
/// <param name="resetPArticolare">true/false se resettare Particolare selezionato</param>
|
||||
public void resetScanBarcode(bool resetUdc, bool resetCella, bool resetParticolare)
|
||||
{
|
||||
if (resetUdc)
|
||||
{
|
||||
memLayer.ML.emptySessionVal("UDC_sel");
|
||||
}
|
||||
if (resetCella)
|
||||
{
|
||||
memLayer.ML.emptySessionVal("IdxCella_sel");
|
||||
memLayer.ML.emptySessionVal("codCella_sel");
|
||||
}
|
||||
if (resetParticolare)
|
||||
{
|
||||
memLayer.ML.emptySessionVal("Particolare_sel");
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// definisce i tipi di codice che il barcode può leggere
|
||||
/// </summary>
|
||||
public enum tipoCodiceBarcode
|
||||
{
|
||||
/// <summary>
|
||||
/// Tipo non riconosciuto
|
||||
/// </summary>
|
||||
ND,
|
||||
/// <summary>
|
||||
/// [O] - il barcode rappresenta un codice operatore
|
||||
/// </summary>
|
||||
Operatore,
|
||||
/// <summary>
|
||||
/// [K] - il barcode rappresenta una lista di prelievo
|
||||
/// </summary>
|
||||
ListaPrelievo,
|
||||
/// <summary>
|
||||
/// [U] - il barcode rappresenta un UDC
|
||||
/// </summary>
|
||||
UDC,
|
||||
/// <summary>
|
||||
/// il barcode rappresenta un particolare
|
||||
/// </summary>
|
||||
Particolare,
|
||||
/// <summary>
|
||||
/// Cella [S]
|
||||
/// </summary>
|
||||
Cella,
|
||||
/// <summary>
|
||||
/// codice gitterbox
|
||||
/// </summary>
|
||||
Gitterbox,
|
||||
/// <summary>
|
||||
/// Codice PartNumber come sottoinsieme (iniziale ) di datamatrix BMW
|
||||
/// </summary>
|
||||
PartNumber,
|
||||
/// <summary>
|
||||
/// Codice datamatrix
|
||||
/// </summary>
|
||||
DataMatrix,
|
||||
/// <summary>
|
||||
/// codice che indica un comando (prefisso da web.config)
|
||||
/// </summary>
|
||||
Comando,
|
||||
/// <summary>
|
||||
/// Assieme Logico
|
||||
/// </summary>
|
||||
AL,
|
||||
/// <summary>
|
||||
/// Trattamento Termico
|
||||
/// </summary>
|
||||
TT,
|
||||
/// <summary>
|
||||
/// Codice di imballo
|
||||
/// </summary>
|
||||
Imballo,
|
||||
/// <summary>
|
||||
/// Marcatore DataOra
|
||||
/// </summary>
|
||||
DateTime
|
||||
/// <summary>
|
||||
/// Tipo non riconosciuto
|
||||
/// </summary>
|
||||
ND,
|
||||
/// <summary>
|
||||
/// [O] - il barcode rappresenta un codice operatore
|
||||
/// </summary>
|
||||
Operatore,
|
||||
/// <summary>
|
||||
/// [K] - il barcode rappresenta una lista di prelievo
|
||||
/// </summary>
|
||||
ListaPrelievo,
|
||||
/// <summary>
|
||||
/// [U] - il barcode rappresenta un UDC
|
||||
/// </summary>
|
||||
UDC,
|
||||
/// <summary>
|
||||
/// il barcode rappresenta un particolare
|
||||
/// </summary>
|
||||
Particolare,
|
||||
/// <summary>
|
||||
/// Cella [S]
|
||||
/// </summary>
|
||||
Cella,
|
||||
/// <summary>
|
||||
/// codice gitterbox
|
||||
/// </summary>
|
||||
Gitterbox,
|
||||
/// <summary>
|
||||
/// Codice PartNumber come sottoinsieme (iniziale ) di datamatrix BMW
|
||||
/// </summary>
|
||||
PartNumber,
|
||||
/// <summary>
|
||||
/// Codice datamatrix
|
||||
/// </summary>
|
||||
DataMatrix,
|
||||
/// <summary>
|
||||
/// codice che indica un comando (prefisso da web.config)
|
||||
/// </summary>
|
||||
Comando,
|
||||
/// <summary>
|
||||
/// Assieme Logico
|
||||
/// </summary>
|
||||
AL,
|
||||
/// <summary>
|
||||
/// Trattamento Termico
|
||||
/// </summary>
|
||||
TT,
|
||||
/// <summary>
|
||||
/// Codice di imballo
|
||||
/// </summary>
|
||||
Imballo,
|
||||
/// <summary>
|
||||
/// Marcatore DataOra
|
||||
/// </summary>
|
||||
DateTime
|
||||
}
|
||||
/// <summary>
|
||||
/// elenco degli esiti per una sessione di login da terminalino
|
||||
/// </summary>
|
||||
public enum esitoLoginTerm
|
||||
{
|
||||
/// <summary>
|
||||
/// tutto ok, come true
|
||||
/// </summary>
|
||||
ok,
|
||||
/// <summary>
|
||||
/// non è andata, errore generico
|
||||
/// </summary>
|
||||
errore,
|
||||
/// <summary>
|
||||
/// errore x mancanza record in tab operatori di RilPro x CodSoggetto
|
||||
/// </summary>
|
||||
errore_noCodSogg,
|
||||
/// <summary>
|
||||
/// errore mancanza username corrisponende all'operatore il cui cod soggetto è stato passato
|
||||
/// </summary>
|
||||
errore_noUser
|
||||
/// <summary>
|
||||
/// tutto ok, come true
|
||||
/// </summary>
|
||||
ok,
|
||||
/// <summary>
|
||||
/// non è andata, errore generico
|
||||
/// </summary>
|
||||
errore,
|
||||
/// <summary>
|
||||
/// errore x mancanza record in tab operatori di RilPro x CodSoggetto
|
||||
/// </summary>
|
||||
errore_noCodSogg,
|
||||
/// <summary>
|
||||
/// errore mancanza username corrisponende all'operatore il cui cod soggetto è stato passato
|
||||
/// </summary>
|
||||
errore_noUser
|
||||
}
|
||||
@@ -1476,6 +1476,11 @@
|
||||
restituisce il nome della pagina corrente
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:SteamWare.devicesAuthProxy.AuthCookieName">
|
||||
<summary>
|
||||
restituisce nome cookie di auth (o default...)
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:SteamWare.devicesAuthProxy.diritti">
|
||||
<summary>
|
||||
restituisce la tabella diritti da session
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+2
-2
@@ -5,7 +5,7 @@
|
||||
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion("2.8.741.1756")]
|
||||
[assembly: AssemblyFileVersion("2.8.741.1756")]
|
||||
[assembly: AssemblyVersion("2.8.755.1788")]
|
||||
[assembly: AssemblyFileVersion("2.8.755.1788")]
|
||||
[assembly: AssemblyCopyright("Steamware © 2007-2014")]
|
||||
[assembly: AssemblyCompany("Steamware")]
|
||||
|
||||
+2
-2
@@ -6,8 +6,8 @@
|
||||
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion("2.8.741.<#= this.RevisionNumber #>")]
|
||||
[assembly: AssemblyFileVersion("2.8.741.<#= this.RevisionNumber #>")]
|
||||
[assembly: AssemblyVersion("2.8.755.<#= this.RevisionNumber #>")]
|
||||
[assembly: AssemblyFileVersion("2.8.755.<#= this.RevisionNumber #>")]
|
||||
[assembly: AssemblyCopyright("Steamware © 2007-<#= DateTime.Now.Year #>")]
|
||||
[assembly: AssemblyCompany("Steamware")]
|
||||
<#+
|
||||
|
||||
Reference in New Issue
Block a user