aggiunta metodi a MagClass su liste prelievo
git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@104 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -20,6 +20,11 @@
|
||||
<br />
|
||||
<asp:Button ID="Button2" runat="server" Text="Test Modifica Lista"
|
||||
onclick="Button2_Click" />
|
||||
<br />
|
||||
<asp:Button ID="Button3" runat="server" onclick="Button3_Click"
|
||||
Text="Test Scarica lista Prelievo" />
|
||||
<p>
|
||||
</p>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -17,12 +17,20 @@ namespace GMW
|
||||
|
||||
protected void Button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
// testa la creazione lista prelievo
|
||||
MagClass.magazzino.creaListaPrelievo("MA", "20", "P00505005162", "NEUTRO", "10", 1500, "I0054");
|
||||
}
|
||||
|
||||
protected void Button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
// testa inizio lista prelievo
|
||||
MagClass.magazzino.iniziaListaPrelievo("MA", "KMA100600005", "0000000000000080");
|
||||
}
|
||||
|
||||
protected void Button3_Click(object sender, EventArgs e)
|
||||
{
|
||||
// testa fine e scaricamento - indicando completata - lista prelievo
|
||||
MagClass.magazzino.scaricaListaPrelievo("MA", "KMA100600005");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+9
@@ -48,5 +48,14 @@ namespace GMW {
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button Button2;
|
||||
|
||||
/// <summary>
|
||||
/// Button3 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 Button3;
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+1004
-866
File diff suppressed because it is too large
Load Diff
+626
-565
File diff suppressed because it is too large
Load Diff
@@ -4,38 +4,38 @@
|
||||
Changes to this file may cause incorrect behavior and will be lost if
|
||||
the code is regenerated.
|
||||
</autogenerated>-->
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="704" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="779" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:ElencoCartellini" ZOrder="24" X="68" Y="333" Height="449" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="368" />
|
||||
<Shape ID="DesignTable:AnagMag" ZOrder="23" X="1014" Y="372" Height="210" Width="248" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:PosizioneUdcCorrente" ZOrder="22" X="375" Y="565" Height="229" Width="251" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:PosizioneUdcStorico" ZOrder="20" X="387" Y="322" Height="172" Width="263" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:Blocchi" ZOrder="13" X="1014" Y="652" Height="305" Width="257" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
|
||||
<Shape ID="DesignTable:Celle" ZOrder="12" X="693" Y="532" Height="343" Width="244" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
|
||||
<Shape ID="DesignTable:TipoCella" ZOrder="15" X="1008" Y="-2" Height="324" Width="273" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
|
||||
<Shape ID="DesignTable:v_UdcDetail" ZOrder="11" X="693" Y="9" Height="362" Width="256" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:AnagImballi" ZOrder="10" X="93" Y="43" Height="172" Width="215" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:V_ParticolariOverview" ZOrder="9" X="95" Y="1162" Height="210" Width="275" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:V_MagazziniOverview" ZOrder="8" X="659" Y="1045" Height="343" Width="271" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
|
||||
<Shape ID="DesignTable:V_DettMagPart" ZOrder="7" X="993" Y="985" Height="362" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:TipoListaPrelievo" ZOrder="6" X="671" Y="892" Height="134" Width="244" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:RigheListePrelievo" ZOrder="5" X="52" Y="850" Height="172" Width="252" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:ElencoListePrelievo" ZOrder="3" X="335" Y="820" Height="326" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="228" />
|
||||
<Shape ID="DesignTable:PosizioneUdcCorrente" ZOrder="1" X="409" Y="544" Height="229" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:PosizioneUdcStorico" ZOrder="21" X="387" Y="322" Height="172" Width="263" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:Blocchi" ZOrder="14" X="1014" Y="652" Height="305" Width="257" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
|
||||
<Shape ID="DesignTable:Celle" ZOrder="13" X="693" Y="532" Height="343" Width="244" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
|
||||
<Shape ID="DesignTable:TipoCella" ZOrder="16" X="1008" Y="-2" Height="324" Width="273" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
|
||||
<Shape ID="DesignTable:v_UdcDetail" ZOrder="12" X="693" Y="9" Height="362" Width="256" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:AnagImballi" ZOrder="11" X="93" Y="43" Height="172" Width="215" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:V_ParticolariOverview" ZOrder="10" X="95" Y="1162" Height="210" Width="275" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:V_MagazziniOverview" ZOrder="9" X="659" Y="1045" Height="343" Width="271" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
|
||||
<Shape ID="DesignTable:V_DettMagPart" ZOrder="8" X="993" Y="985" Height="362" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:RigheListePrelievo" ZOrder="7" X="52" Y="850" Height="185" Width="247" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:ElencoListePrelievo" ZOrder="5" X="335" Y="820" Height="343" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="228" />
|
||||
<Shape ID="DesignTable:TipoListaPrelievo" ZOrder="3" X="697" Y="906" Height="156" Width="239" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="92" />
|
||||
</Shapes>
|
||||
<Connectors>
|
||||
<Connector ID="DesignRelation:FK_PosizioneUdcCorrente_ElencoCartellini" ZOrder="21" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_PosizioneUdcCorrente_ElencoCartellini" ZOrder="22" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>368</X>
|
||||
<Y>673</Y>
|
||||
<Y>652</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>375</X>
|
||||
<Y>673</Y>
|
||||
<X>409</X>
|
||||
<Y>652</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_PosizioneUdcStorico_ElencoCartellini" ZOrder="19" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_PosizioneUdcStorico_ElencoCartellini" ZOrder="20" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>368</X>
|
||||
@@ -47,7 +47,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_Blocchi_AnagMag" ZOrder="18" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_Blocchi_AnagMag" ZOrder="19" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>1116</X>
|
||||
@@ -59,19 +59,23 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_PosizioneUdcCorrente_Celle" ZOrder="17" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_PosizioneUdcCorrente_Celle" ZOrder="18" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>693</X>
|
||||
<Y>638</Y>
|
||||
<Y>800</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>626</X>
|
||||
<Y>638</Y>
|
||||
<X>676</X>
|
||||
<Y>800</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>676</X>
|
||||
<Y>773</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_Celle_Blocchi1" ZOrder="16" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_Celle_Blocchi1" ZOrder="17" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>1014</X>
|
||||
@@ -83,7 +87,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_TipoCella_AnagMag" ZOrder="14" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_TipoCella_AnagMag" ZOrder="15" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>1107</X>
|
||||
@@ -95,7 +99,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_RigheListePrelievo_ElencoCartellini" ZOrder="4" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_RigheListePrelievo_ElencoCartellini" ZOrder="6" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>131</X>
|
||||
@@ -107,27 +111,27 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_RigheListePrelievo_ElencoListePrelievo1" ZOrder="2" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_RigheListePrelievo_ElencoListePrelievo1" ZOrder="4" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>335</X>
|
||||
<Y>936</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>304</X>
|
||||
<X>299</X>
|
||||
<Y>936</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_ElencoListePrelievo_TipoListaPrelievo1" ZOrder="1" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_ElencoListePrelievo_TipoListaPrelievo1" ZOrder="2" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>671</X>
|
||||
<Y>959</Y>
|
||||
<X>697</X>
|
||||
<Y>951</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>635</X>
|
||||
<Y>959</Y>
|
||||
<Y>951</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
|
||||
+64
-18
@@ -28,6 +28,7 @@ namespace GMW_data
|
||||
public DS_magazzinoTableAdapters.ElencoListePrelievoTableAdapter taElencoListePrelievo;
|
||||
public DS_magazzinoTableAdapters.ElencoCartelliniTableAdapter taElencoCartellini;
|
||||
public DS_magazzinoTableAdapters.RigheListePrelievoTableAdapter taRigheListePrelievo;
|
||||
public DS_magazzinoTableAdapters.TipoListaPrelievoTableAdapter taTipoListaPrelievo;
|
||||
|
||||
|
||||
/// <summary>
|
||||
@@ -50,6 +51,7 @@ namespace GMW_data
|
||||
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();
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua setup dei connection strings da web.config delal singola applicazione
|
||||
@@ -71,6 +73,7 @@ namespace GMW_data
|
||||
taElencoListePrelievo.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taElencoCartellini.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taRigheListePrelievo.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taTipoListaPrelievo.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
|
||||
}
|
||||
|
||||
@@ -316,22 +319,6 @@ namespace GMW_data
|
||||
answ = esitoOperazione.errore;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Questa funzione va chiamata quando inizio a gestire una lista di prelievo come operatore carrellista
|
||||
*
|
||||
* - controllo se la lista esiste, ed è ancora NON completata
|
||||
* - se risulta già completata errore xché è "readOnly" la lista essendo già completata (vedere l'enum in fondo al codice)
|
||||
*
|
||||
* - se la lista è disponibile
|
||||
* - salvo CodSoggetto
|
||||
* - salvo iniziata = 1 (true)
|
||||
* */
|
||||
|
||||
return answ;
|
||||
}
|
||||
|
||||
@@ -346,6 +333,10 @@ namespace GMW_data
|
||||
{
|
||||
esitoOperazione answ = esitoOperazione.errore;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Questa funzione va chiamata da web o da terminalino ogni volta che si fa una conferma di avvenuto prelievo, ovvero il carrellista ha DAVVERO prelevato un UDC associato ad una lista
|
||||
*
|
||||
@@ -400,9 +391,64 @@ namespace GMW_data
|
||||
/// <param name="CodCS">Codice company/sito</param>
|
||||
/// <param name="CodLista">codice della lista di prelievo</param>
|
||||
/// <returns>esito comando</returns>
|
||||
public bool scaricaListaPrelievo(string CodCS, string CodLista)
|
||||
public esitoOperazione scaricaListaPrelievo(string CodCS, string CodLista)
|
||||
{
|
||||
bool answ = false;
|
||||
esitoOperazione answ = esitoOperazione.errore;
|
||||
|
||||
DS_magazzino.ElencoListePrelievoDataTable tabella = taElencoListePrelievo.getByCodLista(CodLista);
|
||||
DS_magazzino.ElencoListePrelievoRow riga = tabella[0];
|
||||
|
||||
// se la lista esiste...
|
||||
if (tabella.Rows.Count > 0)
|
||||
{
|
||||
// se la lista è ancora non completata
|
||||
if (riga.Completata == false)
|
||||
{
|
||||
// ricavo il codtipolista
|
||||
string codTipoListaAttuale = riga.CodTipoLista;
|
||||
|
||||
//leggo da tipoLista prelievo alcuni dati (es codcella di destinazione)
|
||||
DS_magazzino.TipoListaPrelievoDataTable tabellaTipoLista = taTipoListaPrelievo.getByCodTipoLista(codTipoListaAttuale);
|
||||
DS_magazzino.TipoListaPrelievoRow rigaTipoLista = tabellaTipoLista[0];
|
||||
|
||||
// leggo da righe lista prelievo il dato udc che mi serve
|
||||
DS_magazzino.RigheListePrelievoRow rigaListaPrelievo = taRigheListePrelievo.getByCodLista(CodLista)[0];
|
||||
|
||||
// potrebbe non servire se per codCella si intende l'idx più sotto...
|
||||
string codCellaDestAttuale = rigaTipoLista.CodCella;
|
||||
|
||||
// i due idx che mi servono ... il primo ...
|
||||
int idxCellaTo = rigaTipoLista.IdxPosizione;
|
||||
// ricavo il codice UDC
|
||||
string UDC = rigaListaPrelievo.UDC;
|
||||
|
||||
// mi serve per posizione udc corrente
|
||||
DS_magazzino.PosizioneUdcCorrenteRow rigaUdcCorrente = taPosUdcCorr.getByUDC(UDC)[0];
|
||||
|
||||
// il secondo idx che mi serve
|
||||
int idxCellaFrom = rigaUdcCorrente.IdxCella;
|
||||
|
||||
// sposto UDC
|
||||
spostaUDC(CodCS, UDC, idxCellaFrom, idxCellaTo);
|
||||
|
||||
// segna come completata la lista prelievo
|
||||
taElencoListePrelievo.updateCompletato(CodLista);
|
||||
|
||||
// restituisce ok
|
||||
answ = esitoOperazione.ok;
|
||||
}
|
||||
// se è già completata dà errore
|
||||
else
|
||||
{
|
||||
answ = esitoOperazione.errore_readOnly;
|
||||
}
|
||||
}
|
||||
// se la lista non esiste dai errore
|
||||
else
|
||||
{
|
||||
answ = esitoOperazione.errore;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Questa funzione serve ALLA FINE delle operazioni di prelievo, x chiudere la lissta di prelievo
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user