Eliminazione modulo non + utilizzato

This commit is contained in:
Samuele E. Locatelli
2016-07-07 17:11:35 +02:00
parent 49d1872b5c
commit f01ae8436a
3 changed files with 0 additions and 550 deletions
@@ -1,70 +0,0 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_sbloccoUdcFusioni.ascx.cs" Inherits="GMW.WebUserControls.mod_sbloccoUdcFusioni" %>
<% 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-3 col-lg-2">
&nbsp;
</div>
<div class="col-sm-6 col-lg-8">
<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>
<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="divSblocca" runat="server">
<div style="padding: 4px 0px;">
<asp:LinkButton runat="server" ID="lbtSbloccaUDC" Width="100%" CssClass="btn btn-warning btn-lg" TabIndex="4" OnClick="SbloccaUDC_Click"><i aria-hidden='true' class='fa fa-external-link fa-2x'></i> <%: traduci("btnSbloccoUDC") %></asp:LinkButton>
</div>
</div>
<div>
Elenco UDC sbloccabili
<div style="text-align: center; margin: auto;">
<asp:GridView ID="grView" runat="server" AutoGenerateColumns="False" DataKeyNames="UDC" DataSourceID="odsUdcSBloccabili" CellPadding="4" ForeColor="#333333" GridLines="None" Width="100%">
<AlternatingRowStyle BackColor="White" />
<Columns>
<asp:BoundField DataField="UDC" HeaderText="UDC" ReadOnly="True" SortExpression="UDC" />
<asp:BoundField DataField="Particolare" HeaderText="Particolare" SortExpression="Particolare" />
<asp:BoundField DataField="DescParticolare" HeaderText="Descr." SortExpression="DescParticolare" />
<asp:BoundField DataField="Qta" HeaderText="Qta" SortExpression="Qta" />
<asp:BoundField DataField="DescStato" HeaderText="Stato" SortExpression="DescStato" />
<asp:BoundField DataField="ModDate" HeaderText="Mod" SortExpression="ModDate" />
<asp:BoundField DataField="Note" HeaderText="Note" SortExpression="Note" />
</Columns>
<EditRowStyle BackColor="#7C6F57" />
<FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
<RowStyle BackColor="#E3EAEB" />
<SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
<SortedAscendingCellStyle BackColor="#F8FAFA" />
<SortedAscendingHeaderStyle BackColor="#246B61" />
<SortedDescendingCellStyle BackColor="#D4DFE1" />
<SortedDescendingHeaderStyle BackColor="#15524A" />
</asp:GridView>
<asp:ObjectDataSource ID="odsUdcSBloccabili" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByCodBlocco" TypeName="GMW_data.DS_magazzinoTableAdapters.v_UdcDetailTableAdapter">
<SelectParameters>
<asp:Parameter DefaultValue="W10" Name="CodBlocco" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
<br />
</div>
</div>
</div>
<div class="col-sm-3 col-lg-2">
&nbsp;
</div>
</div>
@@ -1,366 +0,0 @@
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_sbloccoUdcFusioni : 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 modifica dell'UDC
/// </summary>
protected string eventoUDC = "UDC_SBFUS";
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)
{
traduciObj();
divSblocca.Visible = false;
idxCella = Postazione.currIdxCella;
}
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>
/// effettua controlli visibilità
/// </summary>
private void doChecks()
{
checkBarcode();
}
/// <summary>
/// sistemo labels oggetti
/// </summary>
private void traduciObj()
{
}
/// <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>
/// 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>
/// 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 in una locazione WIP sterratura ( LS -- )
* - Deve avere una sola associazione UDC Fuso - UDC Sterrato
*
********************************************************************/
// 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 currParticolare = DataProxy.obj.taCartellini.stp_getByUdc(barcodeIn)[0].Particolare;
int idxCellaCurr = 0;
try
{
idxCellaCurr = MagClass.magazzino.taPosUdcCorr.getByUDC(barcodeIn)[0].IdxCella;
}
catch
{ }
string codBloccoCurr = "";
int idxBlocco = 0;
try
{
idxBlocco = MagClass.magazzino.taCelle.getByIdxCella(idxCellaCurr)[0].IdxBlocco;
codBloccoCurr = MagClass.magazzino.taBlocchi.getByIdx(idxBlocco)[0].CodBlocco;
}
catch
{ }
// controllo sia in WIP terra sterratura
if (codBloccoCurr == memLayer.ML.confReadString("CodBloccoFusi"))
{
// controllo abbia 1 sola associazione fusi/sterrato COME CHILD
if (DataProxy.obj.taRelazUDC.stp_getChild(barcodeIn).Rows.Count > 1)
{
divSblocca.Visible = false;
Postazione.messaggiText += " - Attenzione, UDC Fuso associato a più di uno sterrato!";
Postazione.CssClass = "stileComandoKo";
}
else
{
currUDC = barcodeIn;
Postazione.CssClass = "stileComandoOk";
divSblocca.Visible = true;
}
}
else
{
divSblocca.Visible = false;
Postazione.messaggiText += " - Attenzione, UDC NON RISULTA caricato su linee Fusi!";
Postazione.CssClass = "stileComandoKo";
}
}
else
{
divSblocca.Visible = false;
Postazione.messaggiText += " - Attenzione, UDC NON in posizione corretta Fusi!";
Postazione.CssClass = "stileComandoKo";
}
}
// update
doUpdate();
break;
default:
Postazione.messaggiText += " - codice <b>non riconosciuto</b>!";
Postazione.CssClass = "stileComandoND";
divSblocca.Visible = false;
break;
}
barcodeIn = "";
}
else
{
Postazione.messaggiText = traduci("AttesaBCode");
Postazione.CssClass = "stileAttesa";
}
txtBarcode.Focus();
}
/// <summary>
/// aggiorna tabella + focus a barcode
/// </summary>
public void doUpdate()
{
idxCella = Postazione.currIdxCella;
grView.DataBind();
txtBarcode.Focus();
// raise dell'evento
if (eh_reqUpdate != null)
{
eh_reqUpdate(this, new EventArgs());
}
}
/// <summary>
/// effettua reset dati
/// </summary>
public void doResetData()
{
// resetto i dati QtaTot e particolare...
currParticolare = "";
doChecks();
}
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>
/// sblocca UDC
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void SbloccaUDC_Click(object sender, EventArgs e)
{
// va cancellata la sua relazioni Fuso-Sterrato e va spostato in locazione Fusi Terra
DataProxy.obj.taCartellini.sbloccaDaPost(eventoUDC, memLayer.ML.confReadInt("IdxPosizioneFusi"), currUDC, "", MagClass.magazzino.CodSoggCurrUser);
// resetto selezione
divSblocca.Visible = false;
currUDC = "";
currParticolare = "";
doUpdate();
}
}
}
-114
View File
@@ -1,114 +0,0 @@
//------------------------------------------------------------------------------
// <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_sbloccoUdcFusioni {
/// <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>
/// divSblocca 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 divSblocca;
/// <summary>
/// lbtSbloccaUDC 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 lbtSbloccaUDC;
/// <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>
/// odsUdcSBloccabili 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 odsUdcSBloccabili;
}
}