Aggiunta creazioen cart F18

git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@393 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
samuele
2011-12-12 10:47:28 +00:00
parent c85997b674
commit ffdfb3eba7
18 changed files with 689 additions and 50 deletions
+48 -16
View File
@@ -176,6 +176,20 @@
<DependentUpon>odette.aspx</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="sanpos_associaz_F10_F18.aspx.cs">
<DependentUpon>sanpos_associaz_F10_F18.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="sanpos_associaz_F10_F18.aspx.designer.cs">
<DependentUpon>sanpos_associaz_F10_F18.aspx</DependentUpon>
</Compile>
<Compile Include="sanpos_consumoF10.aspx.cs">
<DependentUpon>sanpos_consumoF10.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="sanpos_consumoF10.aspx.designer.cs">
<DependentUpon>sanpos_consumoF10.aspx</DependentUpon>
</Compile>
<Compile Include="sanpos_controlloLiquidi.aspx.cs">
<DependentUpon>sanpos_controlloLiquidi.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@@ -183,6 +197,13 @@
<Compile Include="sanpos_controlloLiquidi.aspx.designer.cs">
<DependentUpon>sanpos_controlloLiquidi.aspx</DependentUpon>
</Compile>
<Compile Include="sanpos_creazioneF18.aspx.cs">
<DependentUpon>sanpos_creazioneF18.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="sanpos_creazioneF18.aspx.designer.cs">
<DependentUpon>sanpos_creazioneF18.aspx</DependentUpon>
</Compile>
<Compile Include="SearchMag.aspx.cs">
<DependentUpon>SearchMag.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@@ -204,13 +225,6 @@
<Compile Include="StatoMag.aspx.designer.cs">
<DependentUpon>StatoMag.aspx</DependentUpon>
</Compile>
<Compile Include="travasaContenitori.aspx.cs">
<DependentUpon>travasaContenitori.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="travasaContenitori.aspx.designer.cs">
<DependentUpon>travasaContenitori.aspx</DependentUpon>
</Compile>
<Compile Include="unauthorized.aspx.cs">
<DependentUpon>unauthorized.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@@ -603,6 +617,20 @@
<Compile Include="WebUserControls\mod_listImballi.ascx.designer.cs">
<DependentUpon>mod_listImballi.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_sanpos_associaz_F10_F18.ascx.cs">
<DependentUpon>mod_sanpos_associaz_F10_F18.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\mod_sanpos_associaz_F10_F18.ascx.designer.cs">
<DependentUpon>mod_sanpos_associaz_F10_F18.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_sanpos_consumoF10.ascx.cs">
<DependentUpon>mod_sanpos_consumoF10.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\mod_sanpos_consumoF10.ascx.designer.cs">
<DependentUpon>mod_sanpos_consumoF10.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_sanpos_controlloLiquidi.ascx.cs">
<DependentUpon>mod_sanpos_controlloLiquidi.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@@ -610,6 +638,13 @@
<Compile Include="WebUserControls\mod_sanpos_controlloLiquidi.ascx.designer.cs">
<DependentUpon>mod_sanpos_controlloLiquidi.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_sanpos_creazioneF18.ascx.cs">
<DependentUpon>mod_sanpos_creazioneF18.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\mod_sanpos_creazioneF18.ascx.designer.cs">
<DependentUpon>mod_sanpos_creazioneF18.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_searchMag.ascx.cs">
<DependentUpon>mod_searchMag.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@@ -701,13 +736,6 @@
<Compile Include="WebUserControls\mod_tipoCella.ascx.designer.cs">
<DependentUpon>mod_tipoCella.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_travasaContenitori.ascx.cs">
<DependentUpon>mod_travasaContenitori.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\mod_travasaContenitori.ascx.designer.cs">
<DependentUpon>mod_travasaContenitori.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_UdcCella.ascx.cs">
<DependentUpon>mod_UdcCella.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@@ -969,8 +997,10 @@
<Content Include="images\resetBozza.png" />
<Content Include="mazzAppSettingsSP.config" />
<Content Include="mazzConnectionStringsSP.config" />
<Content Include="sanpos_associaz_F10_F18.aspx" />
<Content Include="sanpos_consumoF10.aspx" />
<Content Include="sanpos_controlloLiquidi.aspx" />
<Content Include="travasaContenitori.aspx" />
<Content Include="sanpos_creazioneF18.aspx" />
<Content Include="WebMasterPages\AjaxSimpleFull.Master" />
<Content Include="chLang.aspx" />
<Content Include="ElencoListePrelievo.aspx" />
@@ -1042,10 +1072,12 @@
<Content Include="WebUserControls\mod_odette.ascx" />
<Content Include="WebUserControls\mod_operazioniUdc.ascx" />
<Content Include="WebUserControls\mod_periodoAnalisi.ascx" />
<Content Include="WebUserControls\mod_sanpos_associaz_F10_F18.ascx" />
<Content Include="WebUserControls\mod_sanpos_consumoF10.ascx" />
<Content Include="WebUserControls\mod_sanpos_controlloLiquidi.ascx" />
<Content Include="WebUserControls\mod_sanpos_creazioneF18.ascx" />
<Content Include="WebUserControls\mod_spostaDataMatrix.ascx" />
<Content Include="WebUserControls\mod_statoMagLogico.ascx" />
<Content Include="WebUserControls\mod_travasaContenitori.ascx" />
<Content Include="WebUserControls\mod_UdcCella.ascx" />
<Content Include="WebUserControls\mod_unauthorized.ascx" />
<Content Include="WebUserControls\mod_viewOdette.ascx" />
@@ -59,7 +59,7 @@
<asp:TextBox runat="server" ID="txtQta" Height="40px" Width="95px" Font-Size="32pt" />
</div>
<div style="float: right; text-align: right;">
<asp:Label runat="server" ID="lblAnno" />
<asp:Label runat="server" ID="lblAnnoTratt" />
<br />
<asp:TextBox runat="server" ID="txtAnno" Height="40px" Width="95px" Font-Size="32pt" />
</div>
@@ -53,7 +53,7 @@ namespace GMW.WebUserControls
lblNumTratt.Text = traduci("lblNumTratt");
lblQta.Text = traduci("lblQuantita");
lblNote.Text = traduci("lblNote");
lblAnno.Text = traduci("lblAnno");
lblAnnoTratt.Text = traduci("lblAnnoTratt");
//txtBox
txtQta.Text = memLayer.ML.confReadString("QtaImballoLiquidi");
txtAnno.Text = DateTime.Now.Year.ToString();
@@ -172,7 +172,7 @@ namespace GMW.WebUserControls
int answ = 0;
try
{
answ = (int)MagClass.magazzino.taElencoCartellini.getLastByParticolare(memLayer.ML.StringSessionObj("CodCS"), currParticolare)[0].Qta;
answ = (int)MagClass.magazzino.taCartellini.getLastByParticolare(memLayer.ML.StringSessionObj("CodCS"), currParticolare)[0].Qta;
}
catch
{ }
@@ -204,21 +204,11 @@ namespace GMW.WebUserControls
try
{
// cerco tra gitterbox (UDC)...
trovati = MagClass.magazzino.taElencoCartellini.getByUdc(barcodeIn).Rows.Count;
trovati = MagClass.magazzino.taCartellini.getByUdc(barcodeIn).Rows.Count;
if (trovati > 0)
{
answ = tipoCodiceBarcode.Gitterbox;
answ = tipoCodiceBarcode.UDC;
}
// cerco tra datamatrix
else
{
trovati = DataMatrix.mgr.taElencoDM.getByCode(Convert.ToDecimal(barcodeIn)).Rows.Count;
if (trovati > 0)
{
answ = tipoCodiceBarcode.DataMatrix;
}
}
}
catch
{
@@ -411,16 +401,19 @@ namespace GMW.WebUserControls
}
catch
{ }
// non inserisco + i trattamenti nelle note, saranno aggiunti a parte dalla stored di recupero dati...
#if false
// costruisco stringa x note, inserendo i trattamenti associati
foreach (KeyValuePair<string, string> kvp in elencoTrattamenti)
{
noteTrim += string.Format("{0}{1}: {2}", Environment.NewLine, traduci("lblNumTratt"), kvp.Key);
}
}
#endif
// genero cartellino liquidi
try
{
// creo nuovo UDC del trattamento liquidi
newUdcChild = MagClass.magazzino.creaUdc("LI", "", currParticolare, "", "", "", "", "", 0, memLayer.ML.confReadString("CodImballoLiquidi"), "U", "", qta, 0, 0, DateTime.Now, 0, "Fin", memLayer.ML.confReadInt("IdxPosizioneLiquidi"), true, "IdxPosizioneLiquidi", "UDC_FINITO", noteTrim, "", anno); // !!! "LI" HARD CODED x indicare flusso liquidi
newUdcChild = MagClass.magazzino.creaUdc("LI", "", currParticolare, "", "", "", "", "", 0, memLayer.ML.confReadString("CodImballoLiquidi"), "U", "", qta, 0, 0, DateTime.Now, 0, "Fin", memLayer.ML.confReadInt("IdxPosizioneLiquidi"), true, "IdxPosizioneLiquidi", "UDC_FINITO", noteTrim, "", DateTime.Now.Year); // !!! "LI" HARD CODED x indicare flusso liquidi
}
catch
{ }
@@ -454,6 +447,5 @@ namespace GMW.WebUserControls
MagClass.magazzino.stampaUdc(newUdcChild, postazione_printer, tipoCartellino.cartFin);
}
}
}
}
@@ -140,13 +140,13 @@ namespace GMW.WebUserControls {
protected global::System.Web.UI.WebControls.TextBox txtQta;
/// <summary>
/// lblAnno control.
/// lblAnnoTratt 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 lblAnno;
protected global::System.Web.UI.WebControls.Label lblAnnoTratt;
/// <summary>
/// txtAnno control.
@@ -0,0 +1,59 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_sanpos_creazioneF18.ascx.cs" Inherits="GMW.WebUserControls.mod_sanpos_creazioneF18" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<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;">
<asp:Label runat="server" ID="lblPostazione" />
</div>
<div style="float: right;">
<asp:Label runat="server" ID="lblPrinter" />
</div>
<div>
<asp:HyperLink runat="server" ID="hlMenu" NavigateUrl="~/menu.aspx" Text="Main Menu" />
</div>
</div>
<div>
<asp:Label runat="server" ID="lblGitterBoxAttivo" Font-Size="36pt" Text="- no data -" />
</div>
<div class="msgBoxBarcode">
<asp:Label runat="server" ID="lblMessaggi" Text="attesa input utente" Font-Size="18pt" />
</div>
</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: right;">
<asp:Label runat="server" ID="lblQta" />
<br />
<asp:TextBox runat="server" ID="txtQta" Height="40px" Width="95px" Font-Size="32pt" />
</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;">
<div>
<asp:Label runat="server" ID="lblBarcode" Text="Barcode" />
<br />
<asp:TextBox runat="server" ID="txtBarcode" Height="60px" Width="480px"
Font-Size="32pt" AutoPostBack="True" ontextchanged="txtBarcode_TextChanged" />
<asp:AutoCompleteExtender ID="aceParticolare" runat="server" TargetControlID="txtBarcode"
ServicePath="~/WS/AutoCompletamento.asmx" ServiceMethod="elencoParticolari" CompletionInterval="1000" />
</div>
<div>
<asp:Label runat="server" ID="lblNote" />
<br />
<asp:TextBox runat="server" ID="txtNote" Height="120px" Width="400px" Font-Size="24pt"
TextMode="MultiLine" />
</div>
</div>
</div>
</div>
</asp:Panel>
@@ -0,0 +1,370 @@
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_sanpos_creazioneF18 : System.Web.UI.UserControl
{
/// <summary>
/// caricamento pagina
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
calcolaPostazione();
traduciObj();
}
doChecks();
if (currParticolare != "")
{
lblGitterBoxAttivo.Text = string.Format("Particolare selezionato <b>{0}</b>", currParticolare);
}
else
{
lblGitterBoxAttivo.Text = "...";
}
}
/// <summary>
/// effettua controlli visibilità
/// </summary>
private void doChecks()
{
checkStampa();
checkBarcode();
}
/// <summary>
/// sistemo labels oggetti
/// </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");
//txtBox
txtQta.Text = memLayer.ML.confReadString("QtaImballoLiquidiDaSpedire");
// buttons
btnStampa.Text = traduci("btnStampa");
}
/// <summary>
/// wrapper traduzione
/// </summary>
/// <param name="lemma"></param>
/// <returns></returns>
public string traduci(object lemma)
{
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
{ }
}
/// <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>
protected string currParticolare
{
get
{
return memLayer.ML.StringSessionObj("currParticolare");
}
set
{
memLayer.ML.setSessionVal("currParticolare", 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.getLastByParticolare(memLayer.ML.StringSessionObj("CodCS"), currParticolare)[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;
}
// controllo se sia un particolare "P"
else if (barcodeIn.StartsWith("P"))
{
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 x UDC
/// </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 != "")
{
lblMessaggi.Text = string.Format("Barcode digitato: {0}", barcodeIn);
switch (tipoBCode)
{
case tipoCodiceBarcode.Particolare:
// imposto il particolare corrente
currParticolare = barcodeIn;
// controllo esista il particolare scansionato
if (DataProxy.obj.taAnagParticolari.getByParticolare(currParticolare).Rows.Count == 0)
{
currParticolare = "";
lblMessaggi.Text += " - codice particolare non valido / non trovato in RILPRO.";
pnlAll.CssClass = "stileComandoKo";
}
else
{
lblMessaggi.Text += " - impostato particolare!";
pnlAll.CssClass = "stileComandoOk";
}
break;
case tipoCodiceBarcode.UDC:
// procedo solo se UDC esistente
if (MagClass.magazzino.checkUDC(barcodeIn))
{
// recupero il particolare dai dati del cartellino preesistente
currParticolare = DataProxy.obj.taCartellini.stp_getByUdc(barcodeIn)[0].Particolare;
// controllo esista il particolare
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";
}
else
{
lblMessaggi.Text += " - impostato particolare!";
pnlAll.CssClass = "stileComandoOk";
}
}
break;
default:
lblMessaggi.Text += " - codice <b>non riconosciuto</b>!";
pnlAll.CssClass = "stileComandoND";
break;
}
barcodeIn = "";
}
else
{
lblMessaggi.Text = "...attesa barcode...";
}
//grView.DataBind();
txtBarcode.Focus();
}
/// <summary>
/// controllo l'abilitazioen alla stampa UDC:
/// - particolare ok
/// - qta > 0
/// - almeno 1 trattamento
/// altrimenti disabilito btn stampa
/// </summary>
private void checkStampa()
{
bool stampaOk = false;
if (currParticolare != "" && qta > 0)
{
stampaOk = true;
}
btnStampa.Enabled = 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 newUdcChild = "";
int qta = memLayer.ML.confReadInt("QtaImballoLiquidiDaSpedire");
string noteTrim = txtNote.Text.Trim();
try
{
qta = Convert.ToInt32(txtQta.Text);
}
catch
{ }
// genero cartellino liquidi
try
{
// creo nuovo UDC del trattamento liquidi
newUdcChild = MagClass.magazzino.creaUdc("LI", "", currParticolare, "", "", "", "", "", 0, memLayer.ML.confReadString("CodImballoLiquidiDaSpedire"), "U", "", qta, 0, 0, DateTime.Now, 0, "Fin", memLayer.ML.confReadInt("IdxPosizioneLiquidi"), true, "IdxPosizioneLiquidi", "UDC_FINITO", noteTrim, "", DateTime.Now.Year); // !!! "LI" HARD CODED x indicare flusso liquidi
}
catch
{ }
// se ho cart liquidi genero (se non ci sono) cart trattamenti
if (newUdcChild != "")
{
// ora stampo il nuovo cartellino!!!
MagClass.magazzino.stampaUdc(newUdcChild, postazione_printer, tipoCartellino.cartFin);
}
}
/// <summary>
/// controllo campo barcode
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void txtBarcode_TextChanged(object sender, EventArgs e)
{
//doChecks();
}
}
}
@@ -0,0 +1,142 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.4963
//
// 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_sanpos_creazioneF18 {
/// <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>
/// lblPostazione 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>
/// 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>
/// 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>
/// lblGitterBoxAttivo 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 lblGitterBoxAttivo;
/// <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>
/// 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;
/// <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>
/// aceParticolare 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;
/// <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;
}
}
@@ -45,7 +45,7 @@ namespace GMW.WebUserControls
int answ = 0;
try
{
answ = (int)MagClass.magazzino.taElencoCartellini.getByUdc(currGitterBox)[0].Qta;
answ = (int)MagClass.magazzino.taCartellini.getByUdc(currGitterBox)[0].Qta;
}
catch
{ }
@@ -78,7 +78,7 @@ namespace GMW.WebUserControls
int numPezzi = maxPezzi;
try
{
numPezzi = (int)MagClass.magazzino.taElencoCartellini.getByUdc(currGitterBox)[0].Qta;
numPezzi = (int)MagClass.magazzino.taCartellini.getByUdc(currGitterBox)[0].Qta;
}
catch
{
@@ -235,7 +235,7 @@ namespace GMW.WebUserControls
try
{
// cerco tra gitterbox (UDC)...
trovati = MagClass.magazzino.taElencoCartellini.getByUdc(barcodeIn).Rows.Count;
trovati = MagClass.magazzino.taCartellini.getByUdc(barcodeIn).Rows.Count;
// cerco tra datamatrix
if (trovati > 0)
{
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+5
View File
@@ -0,0 +1,5 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/AjaxSimpleFull.Master" AutoEventWireup="true" CodeBehind="sanpos_creazioneF18.aspx.cs" Inherits="GMW.sanpos_creazioneF18" %>
<%@ Register src="WebUserControls/mod_sanpos_creazioneF18.ascx" tagname="mod_sanpos_creazioneF18" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<uc1:mod_sanpos_creazioneF18 ID="mod_sanpos_creazioneF181" runat="server" />
</asp:Content>
+17
View File
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace GMW
{
public partial class sanpos_creazioneF18 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
+25
View File
@@ -0,0 +1,25 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.4963
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace GMW {
public partial class sanpos_creazioneF18 {
/// <summary>
/// mod_sanpos_creazioneF181 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GMW.WebUserControls.mod_sanpos_creazioneF18 mod_sanpos_creazioneF181;
}
}
+8 -11
View File
@@ -25,7 +25,6 @@ namespace GMW_data
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;
@@ -56,7 +55,6 @@ namespace GMW_data
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();
@@ -86,7 +84,6 @@ namespace GMW_data
taDettMagPart.Connection.ConnectionString = connString;
taDettUDC.Connection.ConnectionString = connString;
taElencoListePrelievo.Connection.ConnectionString = connString;
taElencoCartellini.Connection.ConnectionString = connString;
taRigheListePrelievo.Connection.ConnectionString = connString;
taTipoListaPrelievo.Connection.ConnectionString = connString;
taVParticolariOverwiew.Connection.ConnectionString = connString;
@@ -280,7 +277,7 @@ namespace GMW_data
bool answ = false;
try
{
answ = (taElencoCartellini.getDetailsUdcByUdc(UDC).Rows.Count > 0);
answ = (taCartellini.getDetailsUdcByUdc(UDC).Rows.Count > 0);
}
catch
{ }
@@ -314,7 +311,7 @@ namespace GMW_data
try
{
// calcolo posizione destinazione da state machine...
idxPosizUdcCorr = taElencoCartellini.getDetailsUdcByUdc(UDC)[0].IdxPosizione;
idxPosizUdcCorr = taCartellini.getDetailsUdcByUdc(UDC)[0].IdxPosizione;
idxPosizUdcDest = StateMachine.SM.getIdxPostizioneTo("UDC_CONS", idxPosizUdcCorr);
}
catch (Exception e)
@@ -586,7 +583,7 @@ namespace GMW_data
DS_magazzino.ElencoListePrelievoDataTable tabellaElenco = taElencoListePrelievo.getByCodLista(CodLista);
DS_magazzino.ElencoListePrelievoRow rigaElenco = tabellaElenco[0];
DS_magazzino.ElencoCartelliniDataTable tabellaUDC = taElencoCartellini.getDetailsUdcByUdc(UDC);
DS_magazzino.ElencoCartelliniDataTable tabellaUDC = taCartellini.getDetailsUdcByUdc(UDC);
DS_magazzino.ElencoCartelliniRow rigaUDC = tabellaUDC[0];
// ricavo dati da confrontare - da Lista ricavo particolare/esponente/figura
@@ -804,7 +801,7 @@ namespace GMW_data
try
{
// recupero posizione attuale
int idxPosizione = taElencoCartellini.getDetailsUdcByUdc(UDC)[0].IdxPosizione;
int idxPosizione = taCartellini.getDetailsUdcByUdc(UDC)[0].IdxPosizione;
// verifico se riattivabile
answ = taAnagPos.getByIdxPosizione(idxPosizione)[0].IsRiattivaEnabled;
}
@@ -922,7 +919,7 @@ namespace GMW_data
if (codListaAttuale != "")
{
answ = codListaAttuale;
DS_magazzino.ElencoCartelliniDataTable tabellaElencoCartellini = taElencoCartellini.getUdcUnusedOlder(codListaAttuale);
DS_magazzino.ElencoCartelliniDataTable tabellaElencoCartellini = taCartellini.getUdcUnusedOlder(codListaAttuale);
allocaRigheListaPrelievo(QtaTot, codListaAttuale, tabellaElencoCartellini);
}
}
@@ -1170,7 +1167,7 @@ namespace GMW_data
// il secondo idx che mi serve
idxCellaFrom = rigaUdcCorrente.IdxCella;
// calcolo posizione destinazione da state machine...
idxPosizUdcCorr = taElencoCartellini.getDetailsUdcByUdc(UDC)[0].IdxPosizione;
idxPosizUdcCorr = taCartellini.getDetailsUdcByUdc(UDC)[0].IdxPosizione;
idxPosizUdcDest = StateMachine.SM.getIdxPostizioneTo(CodEvento, idxPosizUdcCorr);
// a questo punto mi calcolo se c'è una cella di destinazione associata
try
@@ -1376,7 +1373,7 @@ namespace GMW_data
// svuoto PRIMA gli UDC non prelevati
taRigheListePrelievo.stp_RigheListePrelievo_eliminaNonPrelevate(CodLista);
// rigenero righe UDC da prelevare
DS_magazzino.ElencoCartelliniDataTable tabellaElencoCartellini = taElencoCartellini.getUdcUnusedOlder(CodLista);
DS_magazzino.ElencoCartelliniDataTable tabellaElencoCartellini = taCartellini.getUdcUnusedOlder(CodLista);
allocaRigheListaPrelievo(riga.QtaTot, CodLista, tabellaElencoCartellini);
}
catch
@@ -1400,7 +1397,7 @@ namespace GMW_data
// aggiungo l'UDC + vecchio (se c'è)
try
{
tabellaElencoCartellini.ImportRow(taElencoCartellini.getUdcUnusedOlder(CodLista)[0]);
tabellaElencoCartellini.ImportRow(taCartellini.getUdcUnusedOlder(CodLista)[0]);
}
catch (Exception e)
{
Binary file not shown.
Binary file not shown.