debug funzione in magclass per creare lista prelievo - lavoro sia su db che qui
git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@99 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -17,7 +17,9 @@ namespace GMW
|
||||
|
||||
protected void Button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
MagClass.magazzino.creaListaPrelievo("MA", "20", "Iveco", "20", "10", 1000, "20");
|
||||
// MagClass.magazzino.creaListaPrelievo("MA", "20", "Iveco", "20", "10", 1000, "20");
|
||||
MagClass.magazzino.creaListaPrelievo("MA", "20", "Iveco", "20", "10", 1500, "30");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace GMW_data {
|
||||
|
||||
|
||||
public partial class DS_magazzino {
|
||||
}
|
||||
}
|
||||
+502
-502
File diff suppressed because it is too large
Load Diff
@@ -4,9 +4,9 @@
|
||||
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="173" ViewPortY="683" 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="333" 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="438" Width="221" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="368" />
|
||||
<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" />
|
||||
@@ -26,19 +26,19 @@
|
||||
<Connector ID="DesignRelation:FK_PosizioneUdcCorrente_ElencoCartellini" ZOrder="21" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>289</X>
|
||||
<Y>668</Y>
|
||||
<X>368</X>
|
||||
<Y>673</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>375</X>
|
||||
<Y>668</Y>
|
||||
<Y>673</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_PosizioneUdcStorico_ElencoCartellini" ZOrder="19" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>289</X>
|
||||
<X>368</X>
|
||||
<Y>413</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
@@ -111,7 +111,7 @@
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>131</X>
|
||||
<Y>771</Y>
|
||||
<Y>782</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>131</X>
|
||||
|
||||
@@ -58,6 +58,10 @@
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>DS_Applicazione.xsd</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DS_magazzino.cs">
|
||||
<DependentUpon>DS_magazzino.xsd</DependentUpon>
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="DS_magazzino.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
|
||||
@@ -13,6 +13,8 @@ namespace GMW_data
|
||||
{
|
||||
#region area table adapters
|
||||
|
||||
// variabile di tipo table adapter
|
||||
|
||||
public DS_magazzinoTableAdapters.AnagMagTableAdapter taAnagMag;
|
||||
public DS_magazzinoTableAdapters.BlocchiTableAdapter taBlocchi;
|
||||
public DS_magazzinoTableAdapters.CelleTableAdapter taCelle;
|
||||
@@ -31,6 +33,8 @@ namespace GMW_data
|
||||
/// </summary>
|
||||
protected void initTA()
|
||||
{
|
||||
// istanzio oggetto
|
||||
|
||||
taAnagMag = new GMW_data.DS_magazzinoTableAdapters.AnagMagTableAdapter();
|
||||
taBlocchi = new GMW_data.DS_magazzinoTableAdapters.BlocchiTableAdapter();
|
||||
taCelle = new GMW_data.DS_magazzinoTableAdapters.CelleTableAdapter();
|
||||
@@ -49,6 +53,7 @@ namespace GMW_data
|
||||
protected virtual void setupConnectionStringBase()
|
||||
{
|
||||
// connections del db
|
||||
|
||||
taAnagMag.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taBlocchi.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taCelle.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
@@ -143,13 +148,14 @@ namespace GMW_data
|
||||
{
|
||||
string answ = "L";
|
||||
|
||||
// variabile di tipo datetime per data corrente
|
||||
DateTime adesso = DateTime.Now;
|
||||
|
||||
// dati che mi servono...
|
||||
int idxPosizione = 20; // !!! Verificare parametrico
|
||||
string codCliente = "";
|
||||
string RagioneSociale = "";
|
||||
string codSoggetto = "";
|
||||
string codSoggetto = "A";
|
||||
string disegnoGrezzo = "";
|
||||
string descParticolare = "";
|
||||
|
||||
@@ -170,16 +176,18 @@ namespace GMW_data
|
||||
}
|
||||
catch {}
|
||||
|
||||
//DS_magazzino.ElencoListePrelievoRow riga = taElencoListePrelievo.InsertQuery(string.Format("{0:yy}", adesso),string.Format("{0:MM}", adesso), idxPosizione, memLayer.ML.confReadString("CodCS"), codCliente, RagioneSociale, codSoggetto, Particolare, descParticolare, disegnoGrezzo, Esponente, CodImballo, QtaTot)[0];
|
||||
|
||||
// per cercare ragionesociale in taragioneSociale -> verifica che non ci siano già in utils o dataproxy
|
||||
// !!! FINIRE per errore della stored senza @TEMP
|
||||
DS_magazzino.ElencoListePrelievoDataTable tabella = taElencoListePrelievo.InsertQuery(string.Format("{0:yy}", adesso), string.Format("{0:MM}", adesso), idxPosizione, memLayer.ML.confReadString("CodCS"), codCliente, RagioneSociale, codSoggetto, Particolare, descParticolare, disegnoGrezzo, Esponente, CodImballo, QtaTot);
|
||||
|
||||
DS_magazzino.ElencoListePrelievoRow riga = taElencoListePrelievo.InsertQuery(string.Format("{0:yy}", adesso),string.Format("{0:MM}", adesso), idxPosizione, memLayer.ML.confReadString("CodCS"), codCliente, RagioneSociale, codSoggetto, Particolare, descParticolare, disegnoGrezzo, Esponente, CodImballo, QtaTot)[0];
|
||||
|
||||
// qta totale è cscirtta sopra .. dosgrezzo sempre con ta te lo cerchi
|
||||
|
||||
|
||||
|
||||
// prendi l'udc più vecchio ... tutti i cartellini in senso crescente rispetto alla data ... prima più vecchio e poi più nuovi ---- select * from elecocartellini where esponente e particolare sono quelli by qualcosa asc ... in stato aperto quindi posizione 20
|
||||
|
||||
|
||||
// dsapplicazionelecnocartellini row
|
||||
|
||||
// foreach row in elenco ottenuto
|
||||
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user