sistemato fusi TK

This commit is contained in:
Samuele Locatelli
2014-05-07 14:17:48 +02:00
parent b3ccbb41ff
commit eccc871198
17 changed files with 241 additions and 386 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
+14
View File
@@ -15,6 +15,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GMW-RT", "GMW-RT\GMW-RT.csp
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
218_test|Any CPU = 218_test|Any CPU
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
SP_prod|Any CPU = SP_prod|Any CPU
@@ -23,6 +24,8 @@ Global
TK_test|Any CPU = TK_test|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{F8710519-CA62-4482-9045-02577B939A79}.218_test|Any CPU.ActiveCfg = 218_test|Any CPU
{F8710519-CA62-4482-9045-02577B939A79}.218_test|Any CPU.Build.0 = 218_test|Any CPU
{F8710519-CA62-4482-9045-02577B939A79}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F8710519-CA62-4482-9045-02577B939A79}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F8710519-CA62-4482-9045-02577B939A79}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -35,6 +38,8 @@ Global
{F8710519-CA62-4482-9045-02577B939A79}.TK_prod|Any CPU.Build.0 = TK_prod|Any CPU
{F8710519-CA62-4482-9045-02577B939A79}.TK_test|Any CPU.ActiveCfg = TK_test|Any CPU
{F8710519-CA62-4482-9045-02577B939A79}.TK_test|Any CPU.Build.0 = TK_test|Any CPU
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.218_test|Any CPU.ActiveCfg = Release|Any CPU
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.218_test|Any CPU.Build.0 = Release|Any CPU
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -47,6 +52,8 @@ Global
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.TK_prod|Any CPU.Build.0 = Release|Any CPU
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.TK_test|Any CPU.ActiveCfg = Release|Any CPU
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.TK_test|Any CPU.Build.0 = Release|Any CPU
{47143721-A018-4BDA-B544-EC3E10BC87A2}.218_test|Any CPU.ActiveCfg = Release|Any CPU
{47143721-A018-4BDA-B544-EC3E10BC87A2}.218_test|Any CPU.Build.0 = Release|Any CPU
{47143721-A018-4BDA-B544-EC3E10BC87A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{47143721-A018-4BDA-B544-EC3E10BC87A2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{47143721-A018-4BDA-B544-EC3E10BC87A2}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -59,6 +66,9 @@ Global
{47143721-A018-4BDA-B544-EC3E10BC87A2}.TK_prod|Any CPU.Build.0 = TK_prod|Any CPU
{47143721-A018-4BDA-B544-EC3E10BC87A2}.TK_test|Any CPU.ActiveCfg = TK_test|Any CPU
{47143721-A018-4BDA-B544-EC3E10BC87A2}.TK_test|Any CPU.Build.0 = TK_test|Any CPU
{4A7C6325-D822-446C-BCE3-811FC178DCBE}.218_test|Any CPU.ActiveCfg = Release|Any CPU
{4A7C6325-D822-446C-BCE3-811FC178DCBE}.218_test|Any CPU.Build.0 = Release|Any CPU
{4A7C6325-D822-446C-BCE3-811FC178DCBE}.218_test|Any CPU.Deploy.0 = Release|Any CPU
{4A7C6325-D822-446C-BCE3-811FC178DCBE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4A7C6325-D822-446C-BCE3-811FC178DCBE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4A7C6325-D822-446C-BCE3-811FC178DCBE}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
@@ -77,6 +87,8 @@ Global
{4A7C6325-D822-446C-BCE3-811FC178DCBE}.TK_test|Any CPU.ActiveCfg = Debug|Any CPU
{4A7C6325-D822-446C-BCE3-811FC178DCBE}.TK_test|Any CPU.Build.0 = Debug|Any CPU
{4A7C6325-D822-446C-BCE3-811FC178DCBE}.TK_test|Any CPU.Deploy.0 = Debug|Any CPU
{7C587950-A570-489C-9784-27256384E57E}.218_test|Any CPU.ActiveCfg = Release|Any CPU
{7C587950-A570-489C-9784-27256384E57E}.218_test|Any CPU.Build.0 = Release|Any CPU
{7C587950-A570-489C-9784-27256384E57E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7C587950-A570-489C-9784-27256384E57E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7C587950-A570-489C-9784-27256384E57E}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -89,6 +101,8 @@ Global
{7C587950-A570-489C-9784-27256384E57E}.TK_prod|Any CPU.Build.0 = Release|Any CPU
{7C587950-A570-489C-9784-27256384E57E}.TK_test|Any CPU.ActiveCfg = Release|Any CPU
{7C587950-A570-489C-9784-27256384E57E}.TK_test|Any CPU.Build.0 = Release|Any CPU
{61B87B96-39D3-4BB4-82BF-EE4B96095C1C}.218_test|Any CPU.ActiveCfg = Release|Any CPU
{61B87B96-39D3-4BB4-82BF-EE4B96095C1C}.218_test|Any CPU.Build.0 = Release|Any CPU
{61B87B96-39D3-4BB4-82BF-EE4B96095C1C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{61B87B96-39D3-4BB4-82BF-EE4B96095C1C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{61B87B96-39D3-4BB4-82BF-EE4B96095C1C}.Release|Any CPU.ActiveCfg = Release|Any CPU
+12
View File
@@ -87,6 +87,14 @@
<ApplicationIcon>favicon.ico</ApplicationIcon>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == '218_test|AnyCPU'">
<OutputPath>bin\</OutputPath>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -477,6 +485,10 @@
<Content Include="Web.config">
<SubType>Designer</SubType>
</Content>
<None Include="Web.218_test.config">
<DependentUpon>Web.config</DependentUpon>
<SubType>Designer</SubType>
</None>
</ItemGroup>
<ItemGroup>
<Compile Include="..\VersGen\GMW.cs">
@@ -6,7 +6,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>
<WebPublishMethod>MSDeploy</WebPublishMethod>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedBuildConfiguration>218_test</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish />
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
+69
View File
@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<!--
In the example below, the "SetAttributes" transform will change the value of
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator
finds an attribute "name" that has a value of "MyDB".
<connectionStrings>
<add name="MyDB"
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
</connectionStrings>
-->
<appSettings>
<!--Setup applicazione-->
<add key="_titoloPagina" value="GMW - TEKAL , portale Gestione Magazzino Web - GRUPPO MAZZUCCONI" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="titleApp" value="GMW - TEKAL" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="SiteName" value="Tekal" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<!--Imballi-->
<add key="CodImballoLiquidi" value="" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="CodImballoLiquidiDaSpedire" value="" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="QtaImballoLiquidi" value="0" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="QtaImballoLiquidiDaSpedire" value="0" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="CodImballoAnime" value="IA00" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="QtaImballoAnime" value="50" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="CodImballoSterr" value="IA00" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="QtaImballoSterr" value="50" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<!--Setup codici postazioni-->
<add key="IdxPosizMP" value="6" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="IdxPosNewFusi" value="8080" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="IdxPosNewWip" value="8484" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="IdxPosNewRienTerz" value="8888" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="IdxPosNewFinito" value="24" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="IdxPosizioneOdette" value="24" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="IdxPosizioneLiquidi" value="24" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<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="IdxPosizioneTrattati" value="11" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<!-- setup odette -->
<add key="raggMagOdette" value="TE" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="indStabFrom" value="TEKAL S.P.A. S.Giovanni Teatino CHIETI" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<!--Setup installazione-->
<add key="CodCS" value="TK" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="GMWConnectionString" value="Data Source=10.74.82.217\sql2008r2;Initial Catalog=TK_GMW;Persist Security Info=True;User ID=sa;Password=keyhammer" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="PermessiConnectionString" value="Data Source=10.74.82.217\sql2008r2;Initial Catalog=TK_GMW;Persist Security Info=True;User ID=sa;Password=keyhammer" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="VocabolarioConnectionString" value="Data Source=10.74.82.217\sql2008r2;Initial Catalog=TK_GMW;Persist Security Info=True;User ID=sa;Password=keyhammer" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
</appSettings>
<connectionStrings>
<add name="GMW_data.Properties.Settings.GMWConnectionString" connectionString="Data Source=10.74.82.217\sql2008r2;Initial Catalog=TK_GMW;Persist Security Info=True;User ID=sa;Password=keyhammer" xdt:Transform="SetAttributes" xdt:Locator="Match(name)" />
</connectionStrings>
<system.web>
<compilation xdt:Transform="RemoveAttributes(debug)" />
<!--
In the example below, the "Replace" transform will replace the entire
<customErrors> section of your web.config file.
Note that because there is only one customErrors section under the
<system.web> node, there is no need to use the "xdt:Locator" attribute.
<customErrors defaultRedirect="GenericError.htm"
mode="RemoteOnly" xdt:Transform="Replace">
<error statusCode="500" redirect="InternalError.htm"/>
</customErrors>
-->
</system.web>
</configuration>
+43 -72
View File
@@ -1,88 +1,59 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_fusiTK.ascx.cs" Inherits="GMW.WebUserControls.mod_fusiTK" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%--<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>--%>
<%@ Register Src="mod_storicoAzioniOperatore.ascx" TagName="mod_storicoAzioniOperatore" TagPrefix="uc1" %>
<% if (false)
{ %>
<link href="../Style.css" rel="stylesheet" type="text/css" />
<webopt:BundleReference ID="BundleReference1" runat="server" Path="~/Content/css" />
<webopt:BundleReference ID="BundleReference2" runat="server" Path="~/Content/themes/base/css" />
<% } %>
<asp:Panel runat="server" ID="pnlAll" CssClass="stileAttesa" Height="100%">
<div style="height: 100%;">
<div style="float: none; text-align: center; margin: auto;">
<div class="fullPageHeader">
<div style="float: left; text-align: left;">
<asp:Label runat="server" ID="lblPostazione" />
<br />
<asp:Button runat="server" ID="btnRefresh" Text="" />
<asp:Button runat="server" ID="btnShowHideStorico" OnClick="btnShowHideStorico_Click" Width="242px" />
</div>
<div style="float: right;">
<asp:Label runat="server" ID="lblPrinter" />
<br />
&nbsp;
</div>
<div>
<asp:Label runat="server" ID="lblCurrentPage" Text="Pag Corrente" Font-Size="16pt" ForeColor="White" />
<br />
<asp:HyperLink runat="server" ID="hlMenu" NavigateUrl="~/menu.aspx" Text="Main Menu" />
</div>
</div>
</div>
<asp:Panel ID="pnlSAO" runat="server" ScrollBars="None">
<div style="float: left; height: 100%; min-height: 600px; min-width: 240px; border-right: 1px solid #333333; border-bottom: 1px solid #333333;
background-color: #6C90FF;">
<div style="background-color: #6C90FF; margin: 4px;">
<uc1:mod_storicoAzioniOperatore ID="mod_storicoAzioniOperatore1" runat="server" canSelPost="false" />
</div>
</div>
</asp:Panel>
<div style="float: none; text-align: center; margin: auto;">
<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" />
&nbsp
<asp:Label runat="server" ID="lblDisegno" Font-Size="28pt" Text="" ForeColor="#FFFFFF" Font-Bold="true" ToolTip="disegno" />
</div>
<div class="msgBoxBarcode">
<asp:Label runat="server" ID="lblMessaggi" Text="attesa input utente" Font-Size="18pt" />
<br />
<asp:Label runat="server" ID="lblWarning" Visible="false" Text="ATTENZIONE!!! Postazione non configurata!" Font-Size="XX-Large"
ForeColor="Red" />
</div>
<div class="row">
<div class="col-sm-4 col-lg-3">
&nbsp;
</div>
<div class="col-sm-4 col-lg-6">
<div>
<asp:Label runat="server" ID="lblParticolareAttivo" Font-Size="36pt" Text="" />
</div>
<div>
<div style="float: left; padding: 4px; text-align: left; width: 220px; height: 300px;">
&nbsp;
</div>
<div style="float: right; padding: 4px; text-align: right; width: 220px; height: 300px;">
<div style="float: right; text-align: center;">
<asp:Label runat="server" ID="lblQta" />
<br />
<asp:TextBox runat="server" ID="txtQta" Height="56px" Width="200px" Font-Size="32pt" Style="text-align: center" />
</div>
<div style="clear: both;">
<br />
</div>
<asp:Button runat="server" ID="btnStampa" Height="120px" Width="208px" Font-Size="20pt" OnClick="btnStampa_Click" />
</div>
<div style="float: none; padding: 4px; text-align: center; margin: auto;">
<asp:Label runat="server" ID="lblDescrAttivo" Font-Size="28pt" Text="" ToolTip="particolare" />
&nbsp
<asp:Label runat="server" ID="lblDisegno" Font-Size="28pt" Text="" ForeColor="#FFFFFF" Font-Bold="true" ToolTip="disegno" />
</div>
<div>
<div id="divBarcode" runat="server">
<div>
<div>
<asp:Label runat="server" ID="lblBarcode" Text="Barcode" />
<br />
</div>
<asp:TextBox runat="server" ID="txtBarcode" Height="56px" Width="400px" Font-Size="32pt" AutoPostBack="True" Style="text-align: center" />
<asp:AutoCompleteExtender ID="aceParticolare" runat="server" TargetControlID="txtBarcode" MinimumPrefixLength="2" CompletionInterval="20"
ServicePath="~/WS/AutoCompletamento.asmx" ServiceMethod="elencoParticolari" />
<%--<asp:AutoCompleteExtender ID="aceParticolare" runat="server" TargetControlID="txtBarcode" MinimumPrefixLength="2" CompletionInterval="20"
ServicePath="~/WS/AutoCompletamento.asmx" ServiceMethod="elencoParticolari" />--%>
</div>
</div>
<div id="divNote" runat="server">
<div>
<%: traduci("Note") %>
</div>
<div>
<asp:Label runat="server" ID="lblNote" />
<br />
<asp:TextBox runat="server" ID="txtNote" Height="120px" Width="400px" Font-Size="24pt" TextMode="MultiLine" />
<br />
<br />
<asp:Button runat="server" ID="btnEmptyNote" Height="30px" Width="180px" OnClick="btnEmptyNote_Click" TabIndex="3" />
<asp:TextBox runat="server" ID="txtNote" Height="120px" Width="400px" Font-Size="24pt" TextMode="MultiLine" TabIndex="2" />
<asp:Button runat="server" ID="btnEmptyNote" Height="30px" Width="400px" OnClick="btnEmptyNote_Click" CssClass="btn btn-default" TabIndex="3" />
</div>
<div style="padding: 4px 0px;">
<asp:LinkButton runat="server" ID="lbtStampaUDC" Width="100%" CssClass="btn btn-warning btn-lg" TabIndex="4" OnClick="lbtStampaUDC_Click"><i aria-hidden='true' class='fa fa-print fa-2x'></i> <%: traduci("lbtGeneraUDC") %></asp:LinkButton>
</div>
</div>
</div>
</div>
</asp:Panel>
<div class="col-sm-4 col-lg-3">
<div class="panel panel-primary panel-sm">
<div class="panel-heading">
<b><%: traduci("lblQtaPart") %></b>
</div>
<div class="panel-body">
<asp:TextBox runat="server" ID="txtQta" Height="56px" Width="100%" Font-Size="28pt" Style="text-align: center" AutoPostBack="true" TabIndex="1" />
</div>
</div>
</div>
</div>
+71 -186
View File
@@ -20,6 +20,7 @@ namespace GMW.WebUserControls
/// stato associato (hard coded) a FUSI
/// </summary>
protected string statoUDC = "Fusi";
public event EventHandler eh_reqUpdate;
/// <summary>
/// stringa UID univoca
/// </summary>
@@ -39,12 +40,7 @@ namespace GMW.WebUserControls
{
if (!Page.IsPostBack)
{
calcolaPostazione();
traduciObj();
storicoVisibile = false;
fixStorico();
// imposto pos abilitata x cancellazione
mod_storicoAzioniOperatore1.IdxPosizione2del = memLayer.ML.confReadInt("IdxPosizioneFusi");
}
doChecks();
if (currParticolare != "")
@@ -70,16 +66,15 @@ namespace GMW.WebUserControls
lblDescrAttivo.Text = "";
lblDisegno.Text = "";
}
mod_storicoAzioniOperatore1.eh_stampa += new EventHandler(mod_storicoAzioniOperatore1_eh_stampa);
}
/// <summary>
/// richiesta (ri)stampa UDC
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
void mod_storicoAzioniOperatore1_eh_stampa(object sender, EventArgs e)
public void ristampa()
{
MagClass.magazzino.stampaUdc(udcReq, postazione_printer, tipoCartellino.cartFusi, Request.UserHostName);
MagClass.magazzino.stampaUdc(udcReq, Postazione.printer, tipoCartellino.cartFusi, Request.UserHostName);
// registro ri-stampa UDC
DateTime adesso = DateTime.Now;
// calcolo particolare...
@@ -94,7 +89,7 @@ namespace GMW.WebUserControls
{
logger.lg.scriviLog(string.Format("Errore recupero particolare UDC Fusi {0}", udcReq), tipoLog.EXCEPTION);
}
MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, postazione_name, postazione_IP, udcReq, particolare, "stampaUDC", "Ri-Stampato UDC Fusi");
MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, Postazione.name, Postazione.IP, udcReq, particolare, "stampaUDC", "Ri-Stampato UDC Fusi");
}
/// <summary>
/// udc da stampare
@@ -119,38 +114,10 @@ namespace GMW.WebUserControls
/// </summary>
private void traduciObj()
{
// labels
lblPostazione.Text = string.Format("{2}: {0} ({1})", postazione_name, postazione_IP, traduci("postazione"));
lblPrinter.Text = string.Format("{1}: {0}", postazione_printer, traduci("stampante"));
lblQta.Text = traduci("lblQuantita");
lblNote.Text = traduci("lblNote");
lblCurrentPage.Text = traduci(PagCorrente);
//txtBox
qta = memLayer.ML.confReadInt("QtaImballoFusi");
// buttons
btnStampa.Text = traduci("btnStampa");
btnEmptyNote.Text = traduci("btnEmptyNote");
// fix storico
fixStorico();
}
/// <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
@@ -161,75 +128,7 @@ namespace GMW.WebUserControls
{
return user_std.UtSn.Traduci(lemma.ToString());
}
/// <summary>
/// calcola postazione corrente (ip, name, printer)
/// </summary>
private void calcolaPostazione()
{
postazione_IP = Request.UserHostName;
postazione_name = dnsUtils.DetermineCompName(postazione_IP);
// cerco stampante x postazione
postazione_printer = "n.d.";
try
{
DS_Applicazione.ElencoPostazioniDataTable tabPost = DataProxy.obj.taElPost.getByCod(postazione_name);
if (tabPost.Rows.Count > 0)
{
postazione_printer = tabPost[0].stampante;
}
else
{
tabPost = DataProxy.obj.taElPost.getByCod("default");
postazione_printer = tabPost[0].stampante;
}
}
catch
{ }
// mostro warning se postazione non configurata...
lblWarning.Visible = (postazione_printer == "n.d.");
}
/// <summary>
/// indica name della postazione corrente
/// </summary>
protected string postazione_name
{
get
{
return memLayer.ML.StringSessionObj("postazione_name");
}
set
{
memLayer.ML.setSessionVal("postazione_name", value);
}
}
/// <summary>
/// indica ip della postazione corrente
/// </summary>
protected string postazione_IP
{
get
{
return memLayer.ML.StringSessionObj("postazione_IP");
}
set
{
memLayer.ML.setSessionVal("postazione_IP", value);
}
}
/// <summary>
/// indica stampante associata alla postazione corrente
/// </summary>
protected string postazione_printer
{
get
{
return memLayer.ML.StringSessionObj("postazione_printer");
}
set
{
memLayer.ML.setSessionVal("postazione_printer", value);
}
}
/// <summary>
/// indica il codice articolo correntemente selezionato
/// </summary>
@@ -351,7 +250,7 @@ namespace GMW.WebUserControls
{
if (barcodeIn != "")
{
lblMessaggi.Text = string.Format("Barcode digitato: {0}", barcodeIn);
Postazione.messaggiText = string.Format("Barcode digitato: {0}", barcodeIn);
switch (tipoBCode)
{
case tipoCodiceBarcode.Particolare:
@@ -361,13 +260,13 @@ namespace GMW.WebUserControls
if (DataProxy.obj.taAnagParticolari.getByParticolare(currParticolare).Rows.Count == 0)
{
currParticolare = "";
lblMessaggi.Text += " - codice particolare non valido / non trovato in RILPRO.";
pnlAll.CssClass = "stileComandoKo";
Postazione.messaggiText += " - codice particolare non valido / non trovato in RILPRO.";
Postazione.CssClass = "stileComandoKo";
}
else
{
lblMessaggi.Text += " - impostato particolare!";
pnlAll.CssClass = "stileComandoOk";
Postazione.messaggiText += " - impostato particolare!";
Postazione.CssClass = "stileComandoOk";
}
// default: qta a zero
decimal qtaPart = 0;
@@ -397,37 +296,78 @@ namespace GMW.WebUserControls
if (DataProxy.obj.taAnagParticolari.getByParticolare(currParticolare).Rows.Count == 0)
{
currParticolare = "";
lblMessaggi.Text += " - codice particolare da UDC non valido / non trovato in RILPRO.";
pnlAll.CssClass = "stileComandoKo";
Postazione.messaggiText += " - codice particolare da UDC non valido / non trovato in RILPRO.";
Postazione.CssClass = "stileComandoKo";
}
else
{
lblMessaggi.Text += " - impostato particolare!";
pnlAll.CssClass = "stileComandoOk";
Postazione.messaggiText += " - impostato particolare!";
Postazione.CssClass = "stileComandoOk";
}
}
break;
default:
lblMessaggi.Text += " - codice <b>non riconosciuto</b>!";
pnlAll.CssClass = "stileComandoND";
Postazione.messaggiText += " - codice <b>non riconosciuto</b>!";
Postazione.CssClass = "stileComandoND";
break;
}
barcodeIn = "";
}
else
{
lblMessaggi.Text = traduci("AttesaBCode");
pnlAll.CssClass = "stileAttesa";
Postazione.messaggiText = traduci("AttesaBCode");
Postazione.CssClass = "stileAttesa";
}
//grView.DataBind();
doUpdate();
}
/// <summary>
/// aggiorna tabella + focus a barcode
/// </summary>
public void doUpdate()
{
updatePart();
// raise dell'evento
if (eh_reqUpdate != null)
{
eh_reqUpdate(this, new EventArgs());
}
checkStampa();
txtBarcode.Focus();
}
/// <summary>
/// controllo l'abilitazioen alla stampa UDC:
/// aggiorna visualizzazioen dati particolare
/// </summary>
private void updatePart()
{
if (currParticolare != "")
{
lblParticolareAttivo.Text = string.Format("{0} <b>{1}</b>", traduci("particSel"), 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>
/// controllo l'abilitazione alla stampa UDC:
/// - particolare ok
/// - qta > 0
/// - almeno 1 trattamento
/// altrimenti disabilito btn stampa
/// </summary>
private void checkStampa()
@@ -437,7 +377,7 @@ namespace GMW.WebUserControls
{
stampaOk = true;
}
btnStampa.Enabled = stampaOk;
divNote.Visible = stampaOk;
}
/// <summary>
/// genera i barcode di
@@ -447,12 +387,10 @@ namespace GMW.WebUserControls
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnStampa_Click(object sender, EventArgs e)
protected void lbtStampaUDC_Click(object sender, EventArgs e)
{
// calcolo postazione
calcolaPostazione();
// verifico postazione x procedere...
if (postazione_printer != "n.d.")
if (Postazione.printer != "n.d.")
{
string newUdcChild = "";
string noteTrim = txtNote.Text.Trim();
@@ -476,7 +414,7 @@ namespace GMW.WebUserControls
// 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));
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, Postazione.name, Postazione.IP, newUdcChild, particolare, "creaUDC", string.Format("Creato nuovo UDC Fusi - qta:{0} {1}", qta, noteTrim));
}
catch (Exception exc)
{
@@ -486,12 +424,12 @@ namespace GMW.WebUserControls
if (newUdcChild != "")
{
// ora stampo il nuovo cartellino!!!
MagClass.magazzino.stampaUdc(newUdcChild, postazione_printer, tipoCartellino.cartFusi, Request.UserHostName);
MagClass.magazzino.stampaUdc(newUdcChild, Postazione.printer, tipoCartellino.cartFusi, Request.UserHostName);
// incremento timing...
adesso = DateTime.Now;
adesso = adesso.AddSeconds(1);
// registro stampa nuovo UDC
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, postazione_name, postazione_IP, newUdcChild, particolare, "stampaUDC", "Stampato UDC Fusi");
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, Postazione.name, Postazione.IP, newUdcChild, particolare, "stampaUDC", "Stampato UDC Fusi");
}
}
else
@@ -499,7 +437,6 @@ namespace GMW.WebUserControls
httpLog(string.Format("Errore persi utente/particolare, ricarico!"), tipoLog.ERROR);
Response.Redirect("~/login.aspx");
}
mod_storicoAzioniOperatore1.doUpdate();
}
else
{
@@ -514,14 +451,7 @@ namespace GMW.WebUserControls
public bool httpLog(string _testoPre)
{
bool answ = false;
string postazione_IP = "";
try
{
postazione_IP = string.Format(" | {0} | ", Request.UserHostName);
}
catch
{ }
logger.lg.scriviLog(postazione_IP + _testoPre);
logger.lg.scriviLog(Postazione.IP + _testoPre);
return answ;
}
/// <summary>
@@ -532,14 +462,7 @@ namespace GMW.WebUserControls
public bool httpLog(string testoLog, tipoLog tipo)
{
bool answ = false;
string postazione_IP = "";
try
{
postazione_IP = string.Format(" | {0} | ", Request.UserHostName);
}
catch
{ }
logger.lg.scriviLog(postazione_IP + testoLog, tipo);
logger.lg.scriviLog(Postazione.IP + testoLog, tipo);
return answ;
}
/// <summary>
@@ -551,45 +474,7 @@ namespace GMW.WebUserControls
{
txtNote.Text = "";
}
/// <summary>
/// toggle controllo storico
/// </summary>
private void fixStorico()
{
pnlSAO.Visible = storicoVisibile;
if (storicoVisibile)
{
btnShowHideStorico.Text = traduci("btnHideStorico");
}
else
{
btnShowHideStorico.Text = traduci("btnShowStorico");
}
}
/// <summary>
/// imposto visibilità pannelo storico
/// </summary>
protected bool storicoVisibile
{
get
{
return memLayer.ML.BoolSessionObj(string.Format("showHist_{0}", this.ID));
}
set
{
memLayer.ML.setSessionVal(string.Format("showHist_{0}", this.ID), value);
}
}
/// <summary>
/// gestisco evento show/hide storico
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnShowHideStorico_Click(object sender, EventArgs e)
{
storicoVisibile = !storicoVisibile;
fixStorico();
}
}
}
+26 -116
View File
@@ -13,85 +13,22 @@ namespace GMW.WebUserControls {
public partial class mod_fusiTK {
/// <summary>
/// pnlAll control.
/// BundleReference1 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;
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference1;
/// <summary>
/// lblPostazione control.
/// BundleReference2 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 lblPostazione;
/// <summary>
/// btnRefresh 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 btnRefresh;
/// <summary>
/// btnShowHideStorico 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 btnShowHideStorico;
/// <summary>
/// lblPrinter 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 lblPrinter;
/// <summary>
/// lblCurrentPage 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 lblCurrentPage;
/// <summary>
/// hlMenu control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.HyperLink hlMenu;
/// <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;
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference2;
/// <summary>
/// lblParticolareAttivo control.
@@ -121,49 +58,13 @@ namespace GMW.WebUserControls {
protected global::System.Web.UI.WebControls.Label lblDisegno;
/// <summary>
/// lblMessaggi control.
/// divBarcode 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>
/// lblQta 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 lblQta;
/// <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>
/// btnStampa 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 btnStampa;
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divBarcode;
/// <summary>
/// lblBarcode control.
@@ -184,22 +85,13 @@ namespace GMW.WebUserControls {
protected global::System.Web.UI.WebControls.TextBox txtBarcode;
/// <summary>
/// aceParticolare control.
/// divNote control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::AjaxControlToolkit.AutoCompleteExtender aceParticolare;
/// <summary>
/// lblNote 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 lblNote;
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divNote;
/// <summary>
/// txtNote control.
@@ -218,5 +110,23 @@ namespace GMW.WebUserControls {
/// 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>
/// 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;
}
}
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+1 -7
View File
@@ -19,17 +19,15 @@ namespace GMW
// fix css...
Postazione.CssClass = "stileAttesa";
// imposto pos abilitata x cancellazione
mod_storicoAzioniOperatore1.IdxPosizione2del = memLayer.ML.confReadInt("IdxPosizioneAnime");
mod_storicoAzioniOperatore1.IdxPosizione2del = memLayer.ML.confReadInt("IdxPosizioneFusi");
// pulisco dir temp dai file dei cartellini stampati
reportPrinter.obj.pulisciDir();
}
// update vari...
doUpdate();
mod_storicoAzioniOperatore1.eh_stampa += new EventHandler(mod_storicoAzioniOperatore1_eh_stampa);
#if false
mod_fusiTK1.doUpdate();
mod_fusiTK1.eh_reqUpdate += mod_PostRX_NT1_eh_reqUpdate;
#endif
mod_selLineaNtDt1.eh_lineSelected += mod_selLineaNtDt1_eh_doRefresh;
mod_selLineaNtDt1.eh_showHideStorico += mod_selLineaNtDt1_eh_showHideStorico;
}
@@ -50,9 +48,7 @@ namespace GMW
private void mod_selLineaNtDt1_eh_doRefresh(object sender, EventArgs e)
{
doUpdate();
#if false
mod_fusiTK1.doUpdate();
#endif
}
/// <summary>
/// richiesta update del controllo SAO
@@ -79,9 +75,7 @@ namespace GMW
/// <param name="e"></param>
void mod_storicoAzioniOperatore1_eh_stampa(object sender, EventArgs e)
{
#if false
mod_fusiTK1.ristampa();
#endif
}
/// <summary>
/// sistemo visualizzazione pannelli
+2 -2
View File
@@ -5,7 +5,7 @@
using System.Reflection;
[assembly: AssemblyVersion("2.5.675.1586")]
[assembly: AssemblyFileVersion("2.5.675.1586")]
[assembly: AssemblyVersion("2.5.676.1587")]
[assembly: AssemblyFileVersion("2.5.676.1587")]
[assembly: AssemblyCopyright("Steamware © 2007-2014")]
[assembly: AssemblyCompany("Steamware")]
+2 -2
View File
@@ -6,8 +6,8 @@
using System.Reflection;
[assembly: AssemblyVersion("2.5.675.<#= this.RevisionNumber #>")]
[assembly: AssemblyFileVersion("2.5.675.<#= this.RevisionNumber #>")]
[assembly: AssemblyVersion("2.5.676.<#= this.RevisionNumber #>")]
[assembly: AssemblyFileVersion("2.5.676.<#= this.RevisionNumber #>")]
[assembly: AssemblyCopyright("Steamware © 2007-<#= DateTime.Now.Year #>")]
[assembly: AssemblyCompany("Steamware")]
<#+