trasp cost e dies group OK x spostamento file PRE comandi di import (in dir archive...)
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 31 KiB |
+9
-8
@@ -43,7 +43,15 @@
|
||||
<add key="step02_par" value="@ProcDiesGroup=1,@precNumTicket={0}"/>
|
||||
<add key="step03_stp" value="[ext].[stp_All_MergeFile_Process]"/>
|
||||
<add key="step03_par" value="@flgUpdate=0,@precNumTicket={0}"/>
|
||||
<add key="importDataFolder" value="\\10.74.82.217\e$\test" />
|
||||
<add key="importDataFolder" value="\\10.74.82.217\e$\test\" />
|
||||
<add key="archiveDataFolder" value="\\10.74.82.217\e$\archive\" />
|
||||
<add key="uplDir" value="e:\test\" />
|
||||
<add key="archDir" value="e:\archive\" />
|
||||
<add key="FIELDTERMINATOR" value=";" />
|
||||
<add key="ROWTERMINATOR" value="\n" />
|
||||
<add key="FIRSTROW" value="2" />
|
||||
<add key="CODEPAGE" value="ACP" />
|
||||
<add key="flgUpdate" value="true" />
|
||||
<!--area suggerimenti-->
|
||||
<add key="maxNumSuggest" value="50" />
|
||||
<!--area logger-->
|
||||
@@ -56,13 +64,6 @@
|
||||
<!--area default creazione valori -->
|
||||
<add key="defaultCodClient" value="00000000000" />
|
||||
<add key="defaultCodItem" value="00000000" />
|
||||
<!--area gestione CSV-->
|
||||
<add key="uplDir" value="e:\test\" />
|
||||
<add key="FIELDTERMINATOR" value=";" />
|
||||
<add key="ROWTERMINATOR" value="\n" />
|
||||
<add key="FIRSTROW" value="2" />
|
||||
<add key="CODEPAGE" value="ACP" />
|
||||
<add key="flgUpdate" value="true" />
|
||||
<!--area reports-->
|
||||
<add key="ReportRemoteRender" value="true" />
|
||||
<add key="enableQueue" value="false" />
|
||||
|
||||
@@ -25,16 +25,27 @@ namespace C2P.WebUserControls
|
||||
{
|
||||
// caricato file su server, PROVA ad eseguire import tabella
|
||||
string fileName = "DiesGroupRaw";
|
||||
string importDataFolder = memLayer.ML.confReadString("importDataFolder");
|
||||
string archiveDataFolder = memLayer.ML.confReadString("archiveDataFolder");
|
||||
string uplDir = memLayer.ML.confReadString("uplDir");
|
||||
string archDir = memLayer.ML.confReadString("archDir");
|
||||
string FIELDTERMINATOR = memLayer.ML.confReadString("FIELDTERMINATOR");
|
||||
string ROWTERMINATOR = memLayer.ML.confReadString("ROWTERMINATOR");
|
||||
string FIRSTROW = memLayer.ML.confReadString("FIRSTROW");
|
||||
string CODEPAGE = memLayer.ML.confReadString("CODEPAGE");
|
||||
bool flgUpdate = memLayer.ML.confReadBool("flgUpdate");
|
||||
int numTicket = 0; // Convert.ToInt32(DateTime.Now.ToString("yyMMddHHmm"));
|
||||
|
||||
// calcolo nuova cartella archivio (anno/mese/gg_ora)
|
||||
DateTime adesso = DateTime.Now;
|
||||
archiveDataFolder = string.Format(@"{0}{1:yyyy}\{1:MM}\{1:dd}\{1:hhmmss}\", archiveDataFolder, adesso);
|
||||
archDir = string.Format(@"{0}{1:yyyy}\{1:MM}\{1:dd}\{1:hhmmss}\", archDir, adesso);
|
||||
// sposto i files da TEMP a cartella archive REMOTE
|
||||
fileMover.obj.muoviFile(importDataFolder, archiveDataFolder, "DiesGroupRaw.csv");
|
||||
// parto con la catena di esecuzione con cartella "relativa" al server...
|
||||
try
|
||||
{
|
||||
DtProxy.man.taDGD.import(fileName, uplDir, "DiesGroupRaw.csv", FIELDTERMINATOR, ROWTERMINATOR, FIRSTROW, CODEPAGE, "errorDiesGroup.log", numTicket);
|
||||
DtProxy.man.taDGD.import(fileName, archDir, "DiesGroupRaw.csv", FIELDTERMINATOR, ROWTERMINATOR, FIRSTROW, CODEPAGE, "errorDiesGroup.log", numTicket);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
|
||||
@@ -25,16 +25,27 @@ namespace C2P.WebUserControls
|
||||
{
|
||||
// caricato file su server, PROVA ad eseguire import tabella
|
||||
string fileName = "TranspCostRaw";
|
||||
string importDataFolder = memLayer.ML.confReadString("importDataFolder");
|
||||
string archiveDataFolder = memLayer.ML.confReadString("archiveDataFolder");
|
||||
string uplDir = memLayer.ML.confReadString("uplDir");
|
||||
string archDir = memLayer.ML.confReadString("archDir");
|
||||
string FIELDTERMINATOR = memLayer.ML.confReadString("FIELDTERMINATOR");
|
||||
string ROWTERMINATOR = memLayer.ML.confReadString("ROWTERMINATOR");
|
||||
string FIRSTROW = memLayer.ML.confReadString("FIRSTROW");
|
||||
string CODEPAGE = memLayer.ML.confReadString("CODEPAGE");
|
||||
bool flgUpdate = memLayer.ML.confReadBool("flgUpdate");
|
||||
int numTicket = 0; // Convert.ToInt32(DateTime.Now.ToString("yyMMddHHmm"));
|
||||
|
||||
// calcolo nuova cartella archivio (anno/mese/gg_ora)
|
||||
DateTime adesso = DateTime.Now;
|
||||
archiveDataFolder = string.Format(@"{0}{1:yyyy}\{1:MM}\{1:dd}\{1:hhmmss}\", archiveDataFolder, adesso);
|
||||
archDir = string.Format(@"{0}{1:yyyy}\{1:MM}\{1:dd}\{1:hhmmss}\", archDir, adesso);
|
||||
// sposto i files da TEMP a cartella archive
|
||||
fileMover.obj.muoviFile(importDataFolder, archiveDataFolder, "TranspCostRaw.csv");
|
||||
// parto con la catena di esecuzione
|
||||
try
|
||||
{
|
||||
DtProxy.man.taTCD.import(fileName, uplDir, "TranspCostRaw.csv", FIELDTERMINATOR, ROWTERMINATOR, FIRSTROW, CODEPAGE, "errorTranspCost.log", numTicket);
|
||||
DtProxy.man.taTCD.import(fileName, archDir, "TranspCostRaw.csv", FIELDTERMINATOR, ROWTERMINATOR, FIRSTROW, CODEPAGE, "errorTranspCost.log", numTicket);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -2332,12 +2332,26 @@
|
||||
<param name="_nomeFile">The _nome file.</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SteamWare.fileMover.getFileInfoByName(System.String,System.String,System.Boolean)">
|
||||
<summary>
|
||||
cerca di caricare il fileinfo o da httpcontext-application re-position o direttamente come workpath + nomefile
|
||||
</summary>
|
||||
<param name="_path">The _path.</param>
|
||||
<param name="_nomeFile">The _nome file.</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SteamWare.fileMover.getDirectoryInfo">
|
||||
<summary>
|
||||
cerca di caricare la directoryInfo o da httpcontext-application re-position o direttamente come workpath
|
||||
</summary>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SteamWare.fileMover.getDirectoryInfo(System.String,System.Boolean)">
|
||||
<summary>
|
||||
imposta la directory richiesta...
|
||||
</summary>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SteamWare.fileMover.ReadFully(System.IO.Stream,System.Int32)">
|
||||
<summary>
|
||||
Legge i dati da uno stream fino a quando arriva alla fine.
|
||||
|
||||
@@ -5,4 +5,4 @@ echo ---------------------------------------------------
|
||||
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\InstallUtil /u %BATPATH%C2P_CronJob.exe
|
||||
echo ---------------------------------------------------
|
||||
echo Done.
|
||||
pause
|
||||
Pause
|
||||
@@ -5,4 +5,4 @@ echo ---------------------------------------------------
|
||||
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\InstallUtil /u %BATPATH%C2P_CronJob.exe
|
||||
echo ---------------------------------------------------
|
||||
echo Done.
|
||||
pause
|
||||
Pause
|
||||
@@ -407,7 +407,7 @@
|
||||
<rd:TypeName>System.Decimal</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="ItemURL">
|
||||
<Value>="http://c2p.steamware.net/C2P_Drawings/" & Fields!CodItem.Value & ".png"</Value>
|
||||
<Value>="http://IIS02/C2P_Drawings/" & Fields!CodItem.Value & ".png"</Value>
|
||||
</Field>
|
||||
<Field Name="valid">
|
||||
<DataField>valid</DataField>
|
||||
|
||||
@@ -407,7 +407,7 @@
|
||||
<rd:TypeName>System.Decimal</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="ItemURL">
|
||||
<Value>="http://c2p.steamware.net/C2P_Drawings/" & Fields!CodItem.Value & ".png"</Value>
|
||||
<Value>="http://IIS02/C2P_Drawings/" & Fields!CodItem.Value & ".png"</Value>
|
||||
</Field>
|
||||
<Field Name="valid">
|
||||
<DataField>valid</DataField>
|
||||
|
||||
@@ -170,9 +170,7 @@
|
||||
</Style>
|
||||
</TextRun>
|
||||
</TextRuns>
|
||||
<Style>
|
||||
<TextAlign>Center</TextAlign>
|
||||
</Style>
|
||||
<Style />
|
||||
</Paragraph>
|
||||
</Paragraphs>
|
||||
<rd:DefaultName>textbox2</rd:DefaultName>
|
||||
@@ -208,9 +206,7 @@
|
||||
</Style>
|
||||
</TextRun>
|
||||
</TextRuns>
|
||||
<Style>
|
||||
<TextAlign>Center</TextAlign>
|
||||
</Style>
|
||||
<Style />
|
||||
</Paragraph>
|
||||
</Paragraphs>
|
||||
<rd:DefaultName>textbox3</rd:DefaultName>
|
||||
@@ -246,9 +242,7 @@
|
||||
</Style>
|
||||
</TextRun>
|
||||
</TextRuns>
|
||||
<Style>
|
||||
<TextAlign>Center</TextAlign>
|
||||
</Style>
|
||||
<Style />
|
||||
</Paragraph>
|
||||
</Paragraphs>
|
||||
<rd:DefaultName>textbox4</rd:DefaultName>
|
||||
@@ -284,9 +278,7 @@
|
||||
</Style>
|
||||
</TextRun>
|
||||
</TextRuns>
|
||||
<Style>
|
||||
<TextAlign>Center</TextAlign>
|
||||
</Style>
|
||||
<Style />
|
||||
</Paragraph>
|
||||
</Paragraphs>
|
||||
<rd:DefaultName>textbox5</rd:DefaultName>
|
||||
@@ -322,9 +314,7 @@
|
||||
</Style>
|
||||
</TextRun>
|
||||
</TextRuns>
|
||||
<Style>
|
||||
<TextAlign>Center</TextAlign>
|
||||
</Style>
|
||||
<Style />
|
||||
</Paragraph>
|
||||
</Paragraphs>
|
||||
<rd:DefaultName>textbox6</rd:DefaultName>
|
||||
@@ -360,9 +350,7 @@
|
||||
</Style>
|
||||
</TextRun>
|
||||
</TextRuns>
|
||||
<Style>
|
||||
<TextAlign>Center</TextAlign>
|
||||
</Style>
|
||||
<Style />
|
||||
</Paragraph>
|
||||
</Paragraphs>
|
||||
<rd:DefaultName>textbox7</rd:DefaultName>
|
||||
@@ -398,9 +386,7 @@
|
||||
</Style>
|
||||
</TextRun>
|
||||
</TextRuns>
|
||||
<Style>
|
||||
<TextAlign>Center</TextAlign>
|
||||
</Style>
|
||||
<Style />
|
||||
</Paragraph>
|
||||
</Paragraphs>
|
||||
<rd:DefaultName>textbox8</rd:DefaultName>
|
||||
@@ -436,9 +422,7 @@
|
||||
</Style>
|
||||
</TextRun>
|
||||
</TextRuns>
|
||||
<Style>
|
||||
<TextAlign>Center</TextAlign>
|
||||
</Style>
|
||||
<Style />
|
||||
</Paragraph>
|
||||
</Paragraphs>
|
||||
<rd:DefaultName>textbox9</rd:DefaultName>
|
||||
@@ -475,7 +459,7 @@
|
||||
</TextRun>
|
||||
</TextRuns>
|
||||
<Style>
|
||||
<TextAlign>Center</TextAlign>
|
||||
<TextAlign>Right</TextAlign>
|
||||
</Style>
|
||||
</Paragraph>
|
||||
</Paragraphs>
|
||||
@@ -512,9 +496,7 @@
|
||||
</Style>
|
||||
</TextRun>
|
||||
</TextRuns>
|
||||
<Style>
|
||||
<TextAlign>Center</TextAlign>
|
||||
</Style>
|
||||
<Style />
|
||||
</Paragraph>
|
||||
</Paragraphs>
|
||||
<rd:DefaultName>textbox11</rd:DefaultName>
|
||||
@@ -551,7 +533,7 @@
|
||||
</TextRun>
|
||||
</TextRuns>
|
||||
<Style>
|
||||
<TextAlign>Center</TextAlign>
|
||||
<TextAlign>Right</TextAlign>
|
||||
</Style>
|
||||
</Paragraph>
|
||||
</Paragraphs>
|
||||
@@ -589,7 +571,7 @@
|
||||
</TextRun>
|
||||
</TextRuns>
|
||||
<Style>
|
||||
<TextAlign>Center</TextAlign>
|
||||
<TextAlign>Right</TextAlign>
|
||||
</Style>
|
||||
</Paragraph>
|
||||
</Paragraphs>
|
||||
@@ -627,7 +609,7 @@
|
||||
</TextRun>
|
||||
</TextRuns>
|
||||
<Style>
|
||||
<TextAlign>Center</TextAlign>
|
||||
<TextAlign>Right</TextAlign>
|
||||
</Style>
|
||||
</Paragraph>
|
||||
</Paragraphs>
|
||||
@@ -1174,6 +1156,38 @@
|
||||
<PrintOnFirstPage>true</PrintOnFirstPage>
|
||||
<PrintOnLastPage>true</PrintOnLastPage>
|
||||
<ReportItems>
|
||||
<Textbox Name="Textbox15">
|
||||
<CanGrow>true</CanGrow>
|
||||
<KeepTogether>true</KeepTogether>
|
||||
<Paragraphs>
|
||||
<Paragraph>
|
||||
<TextRuns>
|
||||
<TextRun>
|
||||
<Value>Proxima © 2008-2014</Value>
|
||||
<Style>
|
||||
<FontFamily>Tahoma</FontFamily>
|
||||
<FontSize>9pt</FontSize>
|
||||
<Color>Gray</Color>
|
||||
</Style>
|
||||
</TextRun>
|
||||
</TextRuns>
|
||||
<Style />
|
||||
</Paragraph>
|
||||
</Paragraphs>
|
||||
<rd:DefaultName>Textbox15</rd:DefaultName>
|
||||
<Top>0.13417in</Top>
|
||||
<Height>0.175in</Height>
|
||||
<Width>2.25in</Width>
|
||||
<Style>
|
||||
<Border>
|
||||
<Style>None</Style>
|
||||
</Border>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
</Textbox>
|
||||
<Textbox Name="Textbox16">
|
||||
<CanGrow>true</CanGrow>
|
||||
<KeepTogether>true</KeepTogether>
|
||||
@@ -1214,6 +1228,7 @@
|
||||
<Left>20.32cm</Left>
|
||||
<Height>0.175in</Height>
|
||||
<Width>3.1in</Width>
|
||||
<ZIndex>1</ZIndex>
|
||||
<Style>
|
||||
<Border>
|
||||
<Style>None</Style>
|
||||
@@ -1243,7 +1258,7 @@
|
||||
<Left>5.25in</Left>
|
||||
<Height>0.175in</Height>
|
||||
<Width>0.75in</Width>
|
||||
<ZIndex>1</ZIndex>
|
||||
<ZIndex>2</ZIndex>
|
||||
<Visibility>
|
||||
<Hidden>true</Hidden>
|
||||
</Visibility>
|
||||
@@ -1257,49 +1272,6 @@
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
</Textbox>
|
||||
<Textbox Name="PiePaginaTeam">
|
||||
<CanGrow>true</CanGrow>
|
||||
<KeepTogether>true</KeepTogether>
|
||||
<Paragraphs>
|
||||
<Paragraph>
|
||||
<TextRuns>
|
||||
<TextRun>
|
||||
<Value>Proxima © 2008-</Value>
|
||||
<Style>
|
||||
<FontFamily>Tahoma</FontFamily>
|
||||
<FontSize>9pt</FontSize>
|
||||
<Color>Gray</Color>
|
||||
</Style>
|
||||
</TextRun>
|
||||
<TextRun>
|
||||
<Label>Year</Label>
|
||||
<Value>=Format(Today, "yyyy" )</Value>
|
||||
<Style>
|
||||
<FontFamily>Tahoma</FontFamily>
|
||||
<FontSize>9pt</FontSize>
|
||||
<Color>Gray</Color>
|
||||
</Style>
|
||||
</TextRun>
|
||||
</TextRuns>
|
||||
<Style>
|
||||
<TextAlign>Left</TextAlign>
|
||||
</Style>
|
||||
</Paragraph>
|
||||
</Paragraphs>
|
||||
<Top>0.13417in</Top>
|
||||
<Height>0.175in</Height>
|
||||
<Width>3.1in</Width>
|
||||
<ZIndex>2</ZIndex>
|
||||
<Style>
|
||||
<Border>
|
||||
<Style>None</Style>
|
||||
</Border>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
</Textbox>
|
||||
</ReportItems>
|
||||
<Style>
|
||||
<Border>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -2332,12 +2332,26 @@
|
||||
<param name="_nomeFile">The _nome file.</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SteamWare.fileMover.getFileInfoByName(System.String,System.String,System.Boolean)">
|
||||
<summary>
|
||||
cerca di caricare il fileinfo o da httpcontext-application re-position o direttamente come workpath + nomefile
|
||||
</summary>
|
||||
<param name="_path">The _path.</param>
|
||||
<param name="_nomeFile">The _nome file.</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SteamWare.fileMover.getDirectoryInfo">
|
||||
<summary>
|
||||
cerca di caricare la directoryInfo o da httpcontext-application re-position o direttamente come workpath
|
||||
</summary>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SteamWare.fileMover.getDirectoryInfo(System.String,System.Boolean)">
|
||||
<summary>
|
||||
imposta la directory richiesta...
|
||||
</summary>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SteamWare.fileMover.ReadFully(System.IO.Stream,System.Int32)">
|
||||
<summary>
|
||||
Legge i dati da uno stream fino a quando arriva alla fine.
|
||||
|
||||
Reference in New Issue
Block a user