Completato riallineamento, compila, ora va testato...
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -37,6 +37,7 @@ C:\Users\samuele\Documents\Visual Studio 2012\Projects\GMW\GMW-RT\bin\SteamWare.
|
||||
C:\Users\samuele\Documents\Visual Studio 2012\Projects\GMW\GMW-RT\bin\GMW_data.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2012\Projects\GMW\GMW-RT\bin\GMW_data.pdb
|
||||
C:\Users\samuele\Documents\Visual Studio 2012\Projects\GMW\GMW-RT\bin\Antlr3.Runtime.pdb
|
||||
C:\Users\samuele.STEAMWAREWIN\Documents\VisualStudioProjects\GMW\GMW-RT\obj\Debug\GMW-RT.csprojResolveAssemblyReference.cache
|
||||
C:\Users\samuele.STEAMWAREWIN\Documents\VisualStudioProjects\GMW\GMW-RT\bin\NLog.config
|
||||
C:\Users\samuele.STEAMWAREWIN\Documents\VisualStudioProjects\GMW\GMW-RT\bin\GMW-RT.dll.config
|
||||
C:\Users\samuele.STEAMWAREWIN\Documents\VisualStudioProjects\GMW\GMW-RT\bin\GMW-RT.dll
|
||||
@@ -78,6 +79,5 @@ C:\Users\samuele.STEAMWAREWIN\Documents\VisualStudioProjects\GMW\GMW-RT\bin\Newt
|
||||
C:\Users\samuele.STEAMWAREWIN\Documents\VisualStudioProjects\GMW\GMW-RT\bin\System.Web.Optimization.xml
|
||||
C:\Users\samuele.STEAMWAREWIN\Documents\VisualStudioProjects\GMW\GMW-RT\bin\Microsoft.Build.Utilities.v3.5.xml
|
||||
C:\Users\samuele.STEAMWAREWIN\Documents\VisualStudioProjects\GMW\GMW-RT\bin\it\Microsoft.Build.Utilities.v3.5.resources.dll
|
||||
C:\Users\samuele.STEAMWAREWIN\Documents\VisualStudioProjects\GMW\GMW-RT\obj\Debug\GMW-RT.csprojResolveAssemblyReference.cache
|
||||
C:\Users\samuele.STEAMWAREWIN\Documents\VisualStudioProjects\GMW\GMW-RT\obj\Debug\GMW-RT.dll
|
||||
C:\Users\samuele.STEAMWAREWIN\Documents\VisualStudioProjects\GMW\GMW-RT\obj\Debug\GMW-RT.pdb
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -14,25 +14,6 @@
|
||||
<b><%: traduci("UDC") %></b>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="row boxRicerca">
|
||||
<div class="col-xs-12">
|
||||
<div class="input-group input-group-sm">
|
||||
<span class="input-group-btn text-left" style="text-align: left;">
|
||||
<asp:Button ID="btnCerca" runat="server" CssClass="btn btn-default" type="button" OnClick="btnCerca_Click" Text='<%# traduci("lblCerca") %>' />
|
||||
</span>
|
||||
<asp:TextBox ID="txtCerca" runat="server" CssClass="form-control" OnTextChanged="txtCerca_TextChanged" AutoPostBack="True" />
|
||||
<span class="input-group-addon">
|
||||
<asp:LinkButton runat="server" ID="lnkReset" Text="X" type="button" OnClick="lnkReset_Click" Font-Size="0.8em" />
|
||||
</span>
|
||||
</div>
|
||||
<%--<div style="float: left;">
|
||||
<asp:TextBox ID="txtCerca" runat="server" OnTextChanged="txtCerca_TextChanged" Width="160px" AutoPostBack="True" />
|
||||
</div>
|
||||
<div style="float: right;">
|
||||
<asp:Button ID="btnCerca" runat="server" OnClick="btnCerca_Click" Text='<%# traduci("lblCerca") %>' />
|
||||
</div>--%>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12" style="font-size: 0.8em;">
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="false" AllowSorting="True" AutoGenerateColumns="False"
|
||||
@@ -59,7 +40,7 @@
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="UDC" SortExpression="UDC">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblUDC" runat="server" Text='<%# Eval("UDC") %>' />
|
||||
<asp:Label ID="lblUDC" runat="server" Text='<%# Eval("UDC") %>' Font-Strikeout='<%# isExcluded(Eval("lastMov")) %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Particolare" SortExpression="Particolare">
|
||||
@@ -73,25 +54,13 @@
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Right" />
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="">
|
||||
<ItemTemplate>
|
||||
<asp:RadioButtonList ID="rbl" runat="server" RepeatDirection="Horizontal" ToolTip='<%# Eval("UDC") %>' OnDataBinding="rbl_DataBinding" OnDataBound="rbl_DataBound" AutoPostBack="True" OnSelectedIndexChanged="rbl_SelectedIndexChanged" Height="3em">
|
||||
<asp:ListItem Value="P" Text="[P]" Enabled="true" />
|
||||
<asp:ListItem Value="C" Text="[C]" />
|
||||
</asp:RadioButtonList>
|
||||
</ItemTemplate>
|
||||
<HeaderTemplate>
|
||||
<asp:Label runat="server" ID="lblPC" Text="P | C" ToolTip="Consumo Parziale / Completo" />
|
||||
</HeaderTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}"
|
||||
SelectMethod="getUdcDetailByIdxCella" TypeName="GMW_data.DS_magazzinoTableAdapters.v_UdcDetailTableAdapter"
|
||||
SelectMethod="getByCodBlocco" TypeName="GMW_data.DS_magazzinoTableAdapters.v_UdcDetailTableAdapter"
|
||||
OnDataBinding="ods_DataBinding" FilterExpression="UDC LIKE '%{0}%' OR PARTICOLARE LIKE '%{0}%'">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter Name="IdxCella" Type="Int32" SessionField="IdxCellaLineaLM_OUT" DefaultValue="0" />
|
||||
<asp:SessionParameter Name="CodBlocco" Type="String" SessionField="CodBloccoLineaLFM_OUT" DefaultValue="0" />
|
||||
</SelectParameters>
|
||||
<FilterParameters>
|
||||
<asp:SessionParameter Name="search" Type="String" SessionField="valoreCercatoLMO"
|
||||
@@ -117,7 +86,6 @@
|
||||
<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" />
|
||||
<%--<asp:AutoCompleteExtender ID="aceParticolare" runat="server" TargetControlID="txtBarcode" MinimumPrefixLength="2" CompletionInterval="20" ServicePath="~/WS/AutoCompletamento.asmx" ServiceMethod="elencoAnime" />--%>
|
||||
</div>
|
||||
<div id="divNote" runat="server">
|
||||
<div>
|
||||
@@ -127,8 +95,7 @@
|
||||
<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:Button runat="server" ID="btnStampa" Height="120px" Width="208px" Font-Size="20pt" OnClick="btnStampa_Click" TabIndex="7" />--%>
|
||||
<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>
|
||||
|
||||
@@ -6,7 +6,7 @@ using GMW_data;
|
||||
|
||||
namespace GMW.WebUserControls
|
||||
{
|
||||
public partial class mod_PostFinMultOUT : System.Web.UI.UserControl
|
||||
public partial class mod_PostFinMultOUT : GMW_data.UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// flusso associato (hard coded) a FUSI
|
||||
@@ -24,35 +24,7 @@ namespace GMW.WebUserControls
|
||||
/// dati x verifica CodSoggetto / matricola
|
||||
/// </summary>
|
||||
protected string preCodSogg = memLayer.ML.confReadString("prefCodSogg");
|
||||
/// <summary>
|
||||
/// stringa degli UDC selezionati per consumo COMPLETO (nel formato #UDC1##UDC2#)
|
||||
/// </summary>
|
||||
protected string udcSelC
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj(string.Format("UdcSelC_{0}", uid));
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal(string.Format("UdcSelC_{0}", uid), value);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// stringa degli UDC selezionati per consumo PARZIALE (nel formato #UDC1##UDC2#)
|
||||
/// </summary>
|
||||
protected string udcSelP
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj(string.Format("UdcSelP_{0}", uid));
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal(string.Format("UdcSelP_{0}", uid), value);
|
||||
}
|
||||
}
|
||||
public event EventHandler eh_nuovaRicerca;
|
||||
|
||||
public event EventHandler eh_reqUpdate;
|
||||
/// <summary>
|
||||
/// stringa UID univoca
|
||||
@@ -75,9 +47,8 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
Postazione.messaggiText = "";
|
||||
Postazione.warningText = "";
|
||||
fixRicercaUdc();
|
||||
traduciObj();
|
||||
idxCella = Postazione.currIdxCella;
|
||||
CodBlocco = Postazione.currCodBlocco;
|
||||
checkNumKeyIn();
|
||||
}
|
||||
doChecks();
|
||||
@@ -96,37 +67,27 @@ namespace GMW.WebUserControls
|
||||
checkBarcode();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// IDX cella associata alla linea corrente
|
||||
/// CodBLocco associato alla linea corrente
|
||||
/// </summary>
|
||||
protected int idxCella
|
||||
protected string CodBlocco
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
if (memLayer.ML.isInSessionObject("IdxCellaLineaLM_OUT"))
|
||||
string answ = "";
|
||||
if (memLayer.ML.isInSessionObject("CodBloccoLineaLFM_OUT"))
|
||||
{
|
||||
answ = memLayer.ML.IntSessionObj("IdxCellaLineaLM_OUT");
|
||||
answ = memLayer.ML.StringSessionObj("CodBloccoLineaLFM_OUT");
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("IdxCellaLineaLM_OUT", value);
|
||||
memLayer.ML.setSessionVal("CodBloccoLineaLFM_OUT", value);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica se si debba mostrare un campo ricerca attivo...
|
||||
/// </summary>
|
||||
private void fixRicercaUdc()
|
||||
{
|
||||
if (memLayer.ML.isInSessionObject("valoreCercatoLMO"))
|
||||
{
|
||||
testoRicerca = memLayer.ML.StringSessionObj("valoreCercatoLMO");
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// richiesta (ri)stampa UDC
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
@@ -210,8 +171,6 @@ namespace GMW.WebUserControls
|
||||
/// </summary>
|
||||
private void traduciObj()
|
||||
{
|
||||
// labels
|
||||
btnCerca.Text = traduci("btnSearch");
|
||||
//txtBox
|
||||
txtQta.Text = memLayer.ML.confReadString("QtaImballoFiniti");
|
||||
// buttons
|
||||
@@ -237,15 +196,6 @@ namespace GMW.WebUserControls
|
||||
}
|
||||
}
|
||||
/// <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
|
||||
@@ -260,16 +210,6 @@ namespace GMW.WebUserControls
|
||||
}
|
||||
}
|
||||
/// <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
|
||||
@@ -437,6 +377,9 @@ namespace GMW.WebUserControls
|
||||
// imposto il particolare corrente
|
||||
currParticolare = barcodeIn;
|
||||
impostaParticolare();
|
||||
|
||||
// !!!FARE!!! nuovo comportamento x particolare
|
||||
|
||||
break;
|
||||
case tipoCodiceBarcode.UDC:
|
||||
// procedo solo se UDC esistente
|
||||
@@ -444,6 +387,10 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
// calcolo nuovo particolare
|
||||
string newPart = DataProxy.obj.taCartellini.stp_getByUdc(barcodeIn)[0].Particolare;
|
||||
|
||||
|
||||
// !!!FARE!!! nuovo comportamento x particolare
|
||||
#if false
|
||||
// 2015.09.25 salvo barcode UDC SSE NON E' un finito (flusso = "FI") --> dovrebbe evitare poi di avere relazioni UDC tra finito --> finito con consumo di uno x creazione altro...
|
||||
if (barcodeIn.IndexOf(flusso) < 0)
|
||||
{
|
||||
@@ -458,13 +405,8 @@ namespace GMW.WebUserControls
|
||||
// se era presente in elenco "P" lo elimino
|
||||
udcSelP = udcSelP.Replace(string.Format("#{0}#", barcodeIn), "");
|
||||
}
|
||||
}
|
||||
}
|
||||
updFiltroPart(newPart);
|
||||
//tolto x richiesta di quel pelato di Gian 2014.02.11
|
||||
#if false
|
||||
// imposto particolare!
|
||||
currParticolare = newPart;
|
||||
impostaParticolare();
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -513,14 +455,11 @@ namespace GMW.WebUserControls
|
||||
}
|
||||
barcodeIn = "";
|
||||
}
|
||||
#if false
|
||||
else
|
||||
{
|
||||
Postazione.messaggiText = traduci("AttesaBCode");
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
}
|
||||
#endif
|
||||
//grView.DataBind();
|
||||
}
|
||||
txtBarcode.Focus();
|
||||
}
|
||||
/// <summary>
|
||||
@@ -555,29 +494,11 @@ namespace GMW.WebUserControls
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// update del filtro su particolare x grview UDC caricati in linea
|
||||
/// </summary>
|
||||
/// <param name="newPart"></param>
|
||||
private void updFiltroPart(string newPart)
|
||||
{
|
||||
if (testoRicerca != newPart)
|
||||
{
|
||||
// imposto filtraggio x particoalre nell'elenco degli UDC della linea...
|
||||
testoRicerca = newPart;
|
||||
// salvo UDC da selezionare come consumo COMPLETO
|
||||
salvaCerca();
|
||||
}
|
||||
else
|
||||
{
|
||||
doUpdate();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// aggiorna tabella + focus a barcode
|
||||
/// </summary>
|
||||
public void doUpdate()
|
||||
{
|
||||
idxCella = Postazione.currIdxCella;
|
||||
CodBlocco = Postazione.currCodBlocco;
|
||||
checkStampa();
|
||||
grView.DataBind();
|
||||
txtBarcode.Focus();
|
||||
@@ -587,6 +508,26 @@ namespace GMW.WebUserControls
|
||||
eh_reqUpdate(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
|
||||
public bool isExcluded(object dateTimeIn)
|
||||
{
|
||||
bool answ = false;
|
||||
DateTime dtIN = DateTime.Today;
|
||||
DateTime adesso = DateTime.Now;
|
||||
try
|
||||
{
|
||||
dtIN = Convert.ToDateTime(dateTimeIn);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// controllo DataOra IN nella linea multipla: se è < minimo tempo attraversamento oppure > max tempo attraversamento (da web.config) DEVE ESSERE BARRATA come ESCLUSA...
|
||||
double etaUdc = adesso.Subtract(dtIN).TotalMinutes;
|
||||
if (etaUdc < memLayer.ML.CRI("minTimeW25") || etaUdc > memLayer.ML.CRI("maxTimeW25"))
|
||||
{
|
||||
answ = true;
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// controllo l'abilitazioen alla stampa UDC:
|
||||
/// - particolare ok
|
||||
@@ -600,11 +541,13 @@ namespace GMW.WebUserControls
|
||||
//controllo siano inseriti valori qta
|
||||
if (qta > 0)
|
||||
{
|
||||
#if false
|
||||
// controllo ci siano particolare e ci sia selezionato almeno un UDC
|
||||
if (currParticolare != "" && ((udcSelC.Replace("#", "").Length > 1) || (udcSelP.Replace("#", "").Length > 1)))
|
||||
{
|
||||
stampaOk = true;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
divNote.Visible = stampaOk;
|
||||
}
|
||||
@@ -630,6 +573,7 @@ namespace GMW.WebUserControls
|
||||
string partUdcIn = "";
|
||||
try
|
||||
{
|
||||
#if false
|
||||
string fullUdc = string.Format("{0}#{1}", udcSelC, udcSelP);
|
||||
// ciclo tutti gli UDC consumati P e C e verifico loro particolare
|
||||
if (fullUdc.Replace("#", "").Length > 1)
|
||||
@@ -637,7 +581,8 @@ namespace GMW.WebUserControls
|
||||
string[] elencoUDC;
|
||||
elencoUDC = fullUdc.Split(stringSeparators, StringSplitOptions.RemoveEmptyEntries);
|
||||
partUdcIn = checkPartUDC(elencoUDC);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
@@ -656,10 +601,6 @@ namespace GMW.WebUserControls
|
||||
string newUdcChild = "";
|
||||
int qta = memLayer.ML.confReadInt("QtaImballoFiniti");
|
||||
string noteTrim = txtNote.Text.Trim();
|
||||
// 2014.05.08 tolto e spostato in classe postazione gestione NOME LINEA x note, da verificare...
|
||||
#if false
|
||||
string nomeLinea = ddlLinea.SelectedItem.Text;
|
||||
#endif
|
||||
noteTrim = string.Format("{0}{1}{2}", Postazione.currNomeLinea, Environment.NewLine, noteTrim);
|
||||
try
|
||||
{
|
||||
@@ -724,6 +665,7 @@ namespace GMW.WebUserControls
|
||||
// devo gestire associazione e consumo cartellini FUSI
|
||||
if (newUdcChild != "")
|
||||
{
|
||||
#if false
|
||||
string[] UDC_P;
|
||||
// ASSOCIO tutti gli UDC consumati sia Parziali che Completi al nuovo UDC
|
||||
if (udcSelP.Replace("#", "").Length > 1)
|
||||
@@ -741,7 +683,8 @@ namespace GMW.WebUserControls
|
||||
associaUdc(newUdcChild, UDC_P);
|
||||
// consumo gli UDC indicati come "C"
|
||||
consumaUdc(UDC_P);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
// ora stampo il nuovo cartellino!!!
|
||||
MagClass.magazzino.stampaUdc(newUdcChild, Postazione.printer, tipoCartellino.cartFiniti, Request.UserHostName);
|
||||
@@ -796,29 +739,18 @@ namespace GMW.WebUserControls
|
||||
Response.Redirect(user_std.pagCorrente);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// effettua il consumo di tutti gli UDC inviati come array di stringhe
|
||||
/// effettua consumo UDC
|
||||
/// </summary>
|
||||
/// <param name="UDC_P"></param>
|
||||
private void consumaUdc(string[] UDC_P)
|
||||
/// <param name="oldUdc"></param>
|
||||
private void consumaUdc(string oldUdc)
|
||||
{
|
||||
if (UDC_P.Length > 0)
|
||||
// se è consumabile (IdxPosizione > 0)...
|
||||
if (MagClass.magazzino.udcMpIsConsumabile(oldUdc))
|
||||
{
|
||||
// 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...
|
||||
}
|
||||
}
|
||||
}
|
||||
// consumo UDC
|
||||
MagClass.magazzino.scaricaUdcMpWip(oldUdc, Request.UserHostName);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
@@ -826,63 +758,16 @@ namespace GMW.WebUserControls
|
||||
/// </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)
|
||||
private void associaUdc(string newUdcChild, string UDC_Parent)
|
||||
{
|
||||
if (UDC_P.Length > 0)
|
||||
|
||||
// se UDC è NON vuoto ed esiste
|
||||
if (UDC_Parent != "" && MagClass.magazzino.checkUDC(UDC_Parent))
|
||||
{
|
||||
// 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, true);
|
||||
}
|
||||
}
|
||||
MagClass.magazzino.associaUdcParent(newUdcChild, UDC_Parent, true);
|
||||
}
|
||||
}
|
||||
/// <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()
|
||||
@@ -891,8 +776,6 @@ namespace GMW.WebUserControls
|
||||
qta = 0;
|
||||
currParticolare = "";
|
||||
txtQta.Text = "";
|
||||
testoRicerca = "";
|
||||
salvaCerca();
|
||||
doChecks();
|
||||
}
|
||||
/// <summary>
|
||||
@@ -911,16 +794,6 @@ namespace GMW.WebUserControls
|
||||
eh_reqUpdate(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// passo alla modalità IN
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnIn_Click(object sender, EventArgs e)
|
||||
{
|
||||
Response.Redirect("LavorMeccIN.aspx");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// effettua refresh (su db) del blocco postazione
|
||||
/// </summary>
|
||||
@@ -936,6 +809,7 @@ namespace GMW.WebUserControls
|
||||
MagClass.magazzino.taAL.updatePost(codLinea, Postazione.name);
|
||||
}
|
||||
}
|
||||
#if false
|
||||
/// <summary>
|
||||
/// CODICE cella associata alla linea corrente
|
||||
/// </summary>
|
||||
@@ -944,9 +818,9 @@ namespace GMW.WebUserControls
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
if (memLayer.ML.isInSessionObject("codCellaLM"))
|
||||
if (memLayer.ML.isInSessionObject("codCellaLFM"))
|
||||
{
|
||||
answ = memLayer.ML.StringSessionObj("codCellaLM");
|
||||
answ = memLayer.ML.StringSessionObj("codCellaLFM");
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
@@ -954,7 +828,7 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
memLayer.ML.setSessionVal("codCellaLM", value);
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// codice della linea corrente
|
||||
/// </summary>
|
||||
@@ -974,77 +848,12 @@ namespace GMW.WebUserControls
|
||||
memLayer.ML.setSessionVal(string.Format("LineaOut-{0}", uid), value);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
/// <summary>
|
||||
/// cambiato valore in ricerca
|
||||
/// cambio indice pagina
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void txtCerca_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
// se è nuovo il testo resetto
|
||||
if (testoRicerca != SteamWare.memLayer.ML.StringSessionObj("valoreCercatoLMO"))
|
||||
{
|
||||
udcSelC = "";
|
||||
udcSelP = "";
|
||||
}
|
||||
salvaCerca();
|
||||
}
|
||||
/// <summary>
|
||||
/// effettuato reset
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lnkReset_Click(object sender, EventArgs e)
|
||||
{
|
||||
testoRicerca = "";
|
||||
salvaCerca();
|
||||
}
|
||||
/// <summary>
|
||||
/// pressione del button di ricerca
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnCerca_Click(object sender, EventArgs e)
|
||||
{
|
||||
salvaCerca();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// testo ricerca trimmato da spazi
|
||||
/// </summary>
|
||||
protected string testoRicerca
|
||||
{
|
||||
get
|
||||
{
|
||||
return txtCerca.Text.Trim();
|
||||
}
|
||||
set
|
||||
{
|
||||
txtCerca.Text = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// salvo ricerca particolare
|
||||
/// </summary>
|
||||
protected void salvaCerca()
|
||||
{
|
||||
if (testoRicerca == "")
|
||||
{
|
||||
SteamWare.memLayer.ML.emptySessionVal("valoreCercatoLMO");
|
||||
udcSelC = "";
|
||||
udcSelP = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
SteamWare.memLayer.ML.setSessionVal("valoreCercatoLMO", testoRicerca);
|
||||
}
|
||||
// raise dell'evento
|
||||
if (eh_nuovaRicerca != null)
|
||||
{
|
||||
eh_nuovaRicerca(this, new EventArgs());
|
||||
}
|
||||
doUpdate();
|
||||
}
|
||||
protected void grView_PageIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// fix dell'ODS
|
||||
@@ -1101,54 +910,6 @@ namespace GMW.WebUserControls
|
||||
}
|
||||
}
|
||||
|
||||
protected void rbl_DataBinding(object sender, EventArgs e)
|
||||
{
|
||||
RadioButtonList rbl = (RadioButtonList)sender;
|
||||
if (udcSelC.IndexOf(rbl.ToolTip) >= 0)
|
||||
{
|
||||
rbl.SelectedValue = "C";
|
||||
}
|
||||
else if (udcSelP.IndexOf(rbl.ToolTip) >= 0)
|
||||
{
|
||||
rbl.SelectedValue = "P";
|
||||
}
|
||||
}
|
||||
|
||||
protected void rbl_DataBound(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// selezione UDC da elenco
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void rbl_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
RadioButtonList rbl = (RadioButtonList)sender;
|
||||
if (rbl.SelectedValue == "C")
|
||||
{
|
||||
udcSelC = string.Format("{0}#{1}#", udcSelC, rbl.ToolTip);
|
||||
// se era presente in elenco "P" lo elimino
|
||||
udcSelP = udcSelP.Replace(string.Format("#{0}#", rbl.ToolTip), "");
|
||||
}
|
||||
else
|
||||
{
|
||||
udcSelP = string.Format("{0}#{1}#", udcSelP, rbl.ToolTip);
|
||||
// se era presente in elenco "C" lo elimino
|
||||
udcSelC = udcSelC.Replace(string.Format("#{0}#", rbl.ToolTip), "");
|
||||
}
|
||||
// calcolo il particolare da selezionare...
|
||||
string newPart = DataProxy.obj.taCartellini.stp_getByUdc(rbl.ToolTip)[0].Particolare;
|
||||
updFiltroPart(newPart);
|
||||
checkStampa();
|
||||
// raise dell'evento
|
||||
if (eh_reqUpdate != null)
|
||||
{
|
||||
eh_reqUpdate(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// preseleziono (se possibile) imballo...
|
||||
/// </summary>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -151,6 +151,7 @@
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Web" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml.Linq">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
@@ -239,6 +240,9 @@
|
||||
<Compile Include="Type\SpecParticolare.cs" />
|
||||
<Compile Include="Type\StatiProdotto.cs" />
|
||||
<Compile Include="Type\TipoDichiarazione.cs" />
|
||||
<Compile Include="UserControl.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="utils.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user