Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| babd52629a | |||
| 1b71f76d14 | |||
| e1d84b29f4 | |||
| 99b2983962 | |||
| 8a7b4dd8a0 | |||
| 553f488fdf | |||
| fed4789534 | |||
| 5bbeb6817b | |||
| 15df69f9fd | |||
| ae70999f78 | |||
| 1b484df0b9 | |||
| cc00dc0804 | |||
| 719968ee2b | |||
| 78482b4833 | |||
| da292cae17 |
@@ -108,13 +108,11 @@
|
||||
<Reference Include="StackExchange.Redis, Version=2.0.0.0, Culture=neutral, PublicKeyToken=c219ff1ca8c2ce46, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\StackExchange.Redis.2.2.62\lib\net461\StackExchange.Redis.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="SteamWare, Version=5.1.2108.1115, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\SteamWare.5.1.2108.1115\lib\net462\SteamWare.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
<Reference Include="SteamWare, Version=5.1.2108.1911, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\SteamWare.5.1.2108.1911\lib\net462\SteamWare.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="SteamWare.Logger, Version=5.1.2108.1115, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\SteamWare.Logger.5.1.2108.1115\lib\net462\SteamWare.Logger.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
<Reference Include="SteamWare.Logger, Version=5.1.2108.1911, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\SteamWare.Logger.5.1.2108.1911\lib\net462\SteamWare.Logger.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
|
||||
+166
-147
@@ -249,6 +249,22 @@ namespace AppData
|
||||
|
||||
#region Private Methods
|
||||
|
||||
/// <summary>
|
||||
/// Verifica ed eventualmente aggiunge part da aggiornare all'elenco
|
||||
/// </summary>
|
||||
/// <param name="part2update"></param>
|
||||
/// <param name="partList"></param>
|
||||
private static void addPart2Upd(ref Dictionary<string, int> part2update, List<Part> partList)
|
||||
{
|
||||
foreach (var item in partList)
|
||||
{
|
||||
if (!part2update.ContainsKey(item.PartRev))
|
||||
{
|
||||
part2update.Add(item.PartRev, item.PartId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// verifica che la macchina dichiarata esiste o la crea...
|
||||
/// </summary>
|
||||
@@ -494,29 +510,6 @@ namespace AppData
|
||||
return currData;
|
||||
}
|
||||
|
||||
public static bool setMachLiveStatus(string machine, bool isLive)
|
||||
{
|
||||
string redKey = $"{redProdMachStateLive}:{machine}";
|
||||
string redVal = $"{isLive}";
|
||||
// salvo x 90 sec
|
||||
bool done = memLayer.ML.setRSV(redKey, redVal, 90);
|
||||
return done;
|
||||
}
|
||||
|
||||
public static bool getMachLiveStatus(string machine)
|
||||
{
|
||||
bool isLive = false;
|
||||
/// cerco in redis...
|
||||
string redKey = $"{redProdMachStateLive}:{machine}";
|
||||
string redVal = memLayer.ML.getRSV(redKey);
|
||||
if (!string.IsNullOrEmpty(redVal))
|
||||
{
|
||||
bool.TryParse(redVal, out isLive);
|
||||
}
|
||||
return isLive;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Salvo in Redis il SUCCESSIVO bunk da lavorare
|
||||
/// </summary>
|
||||
@@ -1059,6 +1052,109 @@ namespace AppData
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Invia una richiesta di esecuzione di Nesting x un Batch ANCESTOR
|
||||
/// </summary>
|
||||
/// <param name="BatchID">Batch di cui si chiede processing</param>
|
||||
/// <returns></returns>
|
||||
public static bool checkSendBatchSplit(int BatchID)
|
||||
{
|
||||
int nextIndex = 10;
|
||||
bool batchSent = false;
|
||||
bool batchProcessed = false;
|
||||
DataLayer DLMan = new DataLayer();
|
||||
var currType = ComLib.BType(BatchID);
|
||||
|
||||
// NKC2: controllo SE sia un batch tipo ancestor (1° invio)
|
||||
if (currType == BatchType.Ancestor)
|
||||
{
|
||||
// recupero batch descendant
|
||||
var tabDesc = ComLib.BatchDescendant(BatchID);
|
||||
if (tabDesc != null && tabDesc.Count > 0)
|
||||
{
|
||||
batchSent = false;
|
||||
// ciclo fino a trovare un batch VALIDO (= contiene ordini)
|
||||
foreach (var item in tabDesc)
|
||||
{
|
||||
batchProcessed = false;
|
||||
// 2021.07.19 FIX x caso batch vuoto: se non ho pezzi --> approvo direttamente e passo al successivo...
|
||||
var tabItems = DLMan.taIL.getByBatch(item.BatchID);
|
||||
if (tabItems != null)
|
||||
{
|
||||
// --> invio batch
|
||||
if (tabItems.Count > 0)
|
||||
{
|
||||
// primo parto da indice 10...
|
||||
ComLib.sendBatchReq(item.BatchID, "Nesting", 2, false, nextIndex);
|
||||
// registro su DB nesting iniziato...
|
||||
DLMan.taBL.updateStatus(item.BatchID, (int)BatchStatus.NestRequested, "", -1);
|
||||
batchProcessed = true;
|
||||
batchSent = true;
|
||||
}
|
||||
}
|
||||
|
||||
//--> approvo direttamente e passo al successivo... (annullo batch)
|
||||
if (!batchProcessed)
|
||||
{
|
||||
// registro su DB batch DISCARDED (NON HA PEZZI...)
|
||||
DLMan.taBL.updateStatus(item.BatchID, (int)BatchStatus.Discarded, "", -1);
|
||||
}
|
||||
|
||||
// se ho fatto --> esco
|
||||
if (batchSent)
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
// NKC2: se è un batch ti dipo descendant (invii successivi)
|
||||
if (currType == BatchType.Descendant)
|
||||
{
|
||||
// verifico se ce ne siano altri NON validati (ma splitted)
|
||||
var tabDesc = ComLib.BatchOtherDescendant(BatchID);
|
||||
if (tabDesc != null && tabDesc.Count > 0)
|
||||
{
|
||||
batchSent = false;
|
||||
// ciclo x tutte le righe che NON fossero con nesting effettuato
|
||||
foreach (var item in tabDesc)
|
||||
{
|
||||
batchProcessed = false;
|
||||
// se c'è qualcosa da processare lo richiede
|
||||
if (item.STATUS == 2)
|
||||
{
|
||||
nextIndex += 50;
|
||||
// 2021.07.19 FIX x caso batch vuoto: se non ho pezzi --> approvo direttamente e passo al successivo...
|
||||
var tabItems = DLMan.taIL.getByBatch(item.BatchID);
|
||||
if (tabItems != null)
|
||||
{
|
||||
// --> invio batch
|
||||
if (tabItems.Count > 0)
|
||||
{
|
||||
ComLib.sendBatchReq(item.BatchID, "Nesting", 2, false, nextIndex);
|
||||
// registro su DB nesting iniziato...
|
||||
DLMan.taBL.updateStatus(item.BatchID, (int)BatchStatus.NestRequested, "", -1);
|
||||
batchProcessed = true;
|
||||
batchSent = true;
|
||||
}
|
||||
}
|
||||
|
||||
//--> approvo direttamente e passo al successivo... (annullo batch)
|
||||
if (!batchProcessed)
|
||||
{
|
||||
// registro su DB batch DISCARDED (NON HA PEZZI...)
|
||||
DLMan.taBL.updateStatus(item.BatchID, (int)BatchStatus.Discarded, "", -1);
|
||||
}
|
||||
|
||||
// se ho fatto --> esco
|
||||
if (batchSent)
|
||||
break;
|
||||
}
|
||||
// se non ha trovato nulla --> prova update Batch Ancestor...
|
||||
}
|
||||
}
|
||||
}
|
||||
return batchSent;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// verifica che lo status e la decodifica ci siano...
|
||||
/// </summary>
|
||||
@@ -1372,6 +1468,19 @@ namespace AppData
|
||||
return context.Request.ServerVariables["REMOTE_ADDR"];
|
||||
}
|
||||
|
||||
public static bool getMachLiveStatus(string machine)
|
||||
{
|
||||
bool isLive = false;
|
||||
/// cerco in redis...
|
||||
string redKey = $"{redProdMachStateLive}:{machine}";
|
||||
string redVal = memLayer.ML.getRSV(redKey);
|
||||
if (!string.IsNullOrEmpty(redVal))
|
||||
{
|
||||
bool.TryParse(redVal, out isLive);
|
||||
}
|
||||
return isLive;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Restituisce il prossimo codice di envelope per comunicare con sistemi esterni
|
||||
/// </summary>
|
||||
@@ -2246,111 +2355,6 @@ namespace AppData
|
||||
return answ;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Invia una richiesta di esecuzione di Nesting x un Batch ANCESTOR
|
||||
/// </summary>
|
||||
/// <param name="BatchID">Batch di cui si chiede processing</param>
|
||||
/// <returns></returns>
|
||||
public static bool checkSendBatchSplit(int BatchID)
|
||||
{
|
||||
int nextIndex = 10;
|
||||
bool batchSent = false;
|
||||
bool batchProcessed = false;
|
||||
DataLayer DLMan = new DataLayer();
|
||||
var currType = ComLib.BType(BatchID);
|
||||
|
||||
// NKC2: controllo SE sia un batch tipo ancestor (1° invio)
|
||||
if (currType == BatchType.Ancestor)
|
||||
{
|
||||
// recupero batch descendant
|
||||
var tabDesc = ComLib.BatchDescendant(BatchID);
|
||||
if (tabDesc != null && tabDesc.Count > 0)
|
||||
{
|
||||
batchSent = false;
|
||||
// ciclo fino a trovare un batch VALIDO (= contiene ordini)
|
||||
foreach (var item in tabDesc)
|
||||
{
|
||||
batchProcessed = false;
|
||||
// 2021.07.19 FIX x caso batch vuoto: se non ho pezzi --> approvo direttamente e passo al successivo...
|
||||
var tabItems = DLMan.taIL.getByBatch(item.BatchID);
|
||||
if (tabItems != null)
|
||||
{
|
||||
// --> invio batch
|
||||
if (tabItems.Count > 0)
|
||||
{
|
||||
// primo parto da indice 10...
|
||||
ComLib.sendBatchReq(item.BatchID, "Nesting", 2, false, nextIndex);
|
||||
// registro su DB nesting iniziato...
|
||||
DLMan.taBL.updateStatus(item.BatchID, (int)BatchStatus.NestRequested, "", -1);
|
||||
batchProcessed = true;
|
||||
batchSent = true;
|
||||
}
|
||||
}
|
||||
|
||||
//--> approvo direttamente e passo al successivo... (annullo batch)
|
||||
if (!batchProcessed)
|
||||
{
|
||||
// registro su DB batch DISCARDED (NON HA PEZZI...)
|
||||
DLMan.taBL.updateStatus(item.BatchID, (int)BatchStatus.Discarded, "", -1);
|
||||
}
|
||||
|
||||
// se ho fatto --> esco
|
||||
if (batchSent)
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
// NKC2: se è un batch ti dipo descendant (invii successivi)
|
||||
if (currType == BatchType.Descendant)
|
||||
{
|
||||
// verifico se ce ne siano altri NON validati (ma splitted)
|
||||
var tabDesc = ComLib.BatchOtherDescendant(BatchID);
|
||||
if (tabDesc != null && tabDesc.Count > 0)
|
||||
{
|
||||
batchSent = false;
|
||||
// ciclo x tutte le righe che NON fossero con nesting effettuato
|
||||
foreach (var item in tabDesc)
|
||||
{
|
||||
batchProcessed = false;
|
||||
// se c'è qualcosa da processare lo richiede
|
||||
if (item.STATUS == 2)
|
||||
{
|
||||
nextIndex += 50;
|
||||
// 2021.07.19 FIX x caso batch vuoto: se non ho pezzi --> approvo direttamente e passo al successivo...
|
||||
var tabItems = DLMan.taIL.getByBatch(item.BatchID);
|
||||
if (tabItems != null)
|
||||
{
|
||||
// --> invio batch
|
||||
if (tabItems.Count > 0)
|
||||
{
|
||||
ComLib.sendBatchReq(item.BatchID, "Nesting", 2, false, nextIndex);
|
||||
// registro su DB nesting iniziato...
|
||||
DLMan.taBL.updateStatus(item.BatchID, (int)BatchStatus.NestRequested, "", -1);
|
||||
batchProcessed = true;
|
||||
batchSent = true;
|
||||
}
|
||||
}
|
||||
|
||||
//--> approvo direttamente e passo al successivo... (annullo batch)
|
||||
if (!batchProcessed)
|
||||
{
|
||||
// registro su DB batch DISCARDED (NON HA PEZZI...)
|
||||
DLMan.taBL.updateStatus(item.BatchID, (int)BatchStatus.Discarded, "", -1);
|
||||
}
|
||||
|
||||
// se ho fatto --> esco
|
||||
if (batchSent)
|
||||
break;
|
||||
}
|
||||
// se non ha trovato nulla --> prova update Batch Ancestor...
|
||||
}
|
||||
}
|
||||
}
|
||||
return batchSent;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Invia una richiesta di esecuzione di Nesting x un Batch
|
||||
/// </summary>
|
||||
@@ -2671,6 +2675,15 @@ namespace AppData
|
||||
memLayer.ML.setRSV(redCurrSheetId(macchina), SheetID.ToString());
|
||||
}
|
||||
|
||||
public static bool setMachLiveStatus(string machine, bool isLive)
|
||||
{
|
||||
string redKey = $"{redProdMachStateLive}:{machine}";
|
||||
string redVal = $"{isLive}";
|
||||
// salvo x 90 sec
|
||||
bool done = memLayer.ML.setRSV(redKey, redVal, 90);
|
||||
return done;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Salva per 5 sec la richiesta di reload delle pagine MachineUnload
|
||||
/// </summary>
|
||||
@@ -2749,6 +2762,7 @@ namespace AppData
|
||||
/// <param name="BinList"></param>
|
||||
public static void updateBinsFromNesting(int BatchID, List<NestBin> BinList)
|
||||
{
|
||||
Dictionary<string, string> part2update = new Dictionary<string, string>();
|
||||
DataLayer DLMan = new DataLayer();
|
||||
// inizio a processare... bunks!
|
||||
if (BinList != null)
|
||||
@@ -2772,6 +2786,30 @@ namespace AppData
|
||||
}
|
||||
}
|
||||
}
|
||||
// verifico se aggiornare part
|
||||
if (!part2update.ContainsKey(item.PartRev))
|
||||
{
|
||||
part2update.Add(item.PartRev, item.PartExtCode);
|
||||
}
|
||||
}
|
||||
// verifico se ho part da aggiornare
|
||||
if (part2update.Count > 0)
|
||||
{
|
||||
// recupero tabella parts in blocco da batch
|
||||
var item4batch = DLMan.taIL.getByBatch(BatchID);
|
||||
// chiamo stored x ogni esempio di part
|
||||
foreach (var item in part2update)
|
||||
{
|
||||
var currItemList = item4batch.Where(x => x.ItemExtCode == item.Value).ToList();
|
||||
if (currItemList != null && currItemList.Count > 0)
|
||||
{
|
||||
// processo!
|
||||
foreach (var currPart in currItemList)
|
||||
{
|
||||
DLMan.taIL.updateExtCodeFromBinNesting(BatchID, item.Value, item.Key);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2880,25 +2918,6 @@ namespace AppData
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Verifica ed eventualmente aggiunge part da aggiornare all'elenco
|
||||
/// </summary>
|
||||
/// <param name="part2update"></param>
|
||||
/// <param name="partList"></param>
|
||||
private static void addPart2Upd(ref Dictionary<string, int> part2update, List<Part> partList)
|
||||
{
|
||||
foreach (var item in partList)
|
||||
{
|
||||
if (!part2update.ContainsKey(item.PartRev))
|
||||
{
|
||||
part2update.Add(item.PartRev, item.PartId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Processa elenco items e salva in redis valori x css, elenchi, ...
|
||||
/// </summary>
|
||||
|
||||
Generated
+69
-21
@@ -30816,7 +30816,7 @@ SELECT ItemID, StatusID, KitID, ItemDtmx, ItemExtCode, ItemDesc, ItemNote, ItemQ
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
private void InitCommandCollection() {
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[22];
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[23];
|
||||
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = "SELECT *\r\n FROM dbo.ItemList";
|
||||
@@ -30925,45 +30925,53 @@ SELECT ItemID, StatusID, KitID, ItemDtmx, ItemExtCode, ItemDesc, ItemNote, ItemQ
|
||||
this._commandCollection[16].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ForceAll", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[17] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[17].Connection = this.Connection;
|
||||
this._commandCollection[17].CommandText = "dbo.stp_IL_updateExtCodeFromNesting";
|
||||
this._commandCollection[17].CommandText = "dbo.stp_IL_updateExtCodeFromBinNesting";
|
||||
this._commandCollection[17].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[17].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[17].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BatchID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[17].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[17].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PartExtCode", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[17].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PartRev", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[18] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[18].Connection = this.Connection;
|
||||
this._commandCollection[18].CommandText = "dbo.stp_IL_updateFromNesting";
|
||||
this._commandCollection[18].CommandText = "dbo.stp_IL_updateExtCodeFromNesting";
|
||||
this._commandCollection[18].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[18].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[18].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BatchID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[18].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[18].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[18].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PostProcList", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[18].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProcessesReq", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[18].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PdfFilePath", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[18].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PartExtCode", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[19] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[19].Connection = this.Connection;
|
||||
this._commandCollection[19].CommandText = "dbo.stp_IL_updateSheetStatus";
|
||||
this._commandCollection[19].CommandText = "dbo.stp_IL_updateFromNesting";
|
||||
this._commandCollection[19].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SheetID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StatusID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PlaceCod", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PostProcList", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProcessesReq", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PdfFilePath", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[20] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[20].Connection = this.Connection;
|
||||
this._commandCollection[20].CommandText = "dbo.stp_IL_updateSheetStatusPU";
|
||||
this._commandCollection[20].CommandText = "dbo.stp_IL_updateSheetStatus";
|
||||
this._commandCollection[20].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[20].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[20].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SheetID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[20].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StatusID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[20].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PlaceCod", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[21] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[21].Connection = this.Connection;
|
||||
this._commandCollection[21].CommandText = "dbo.stp_IL_updateStatus";
|
||||
this._commandCollection[21].CommandText = "dbo.stp_IL_updateSheetStatusPU";
|
||||
this._commandCollection[21].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[21].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[21].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[21].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StatusID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[21].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SheetID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[21].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PlaceCod", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[22] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[22].Connection = this.Connection;
|
||||
this._commandCollection[22].CommandText = "dbo.stp_IL_updateStatus";
|
||||
this._commandCollection[22].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[22].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[22].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[22].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StatusID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[22].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PlaceCod", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -31764,7 +31772,7 @@ SELECT ItemID, StatusID, KitID, ItemDtmx, ItemExtCode, ItemDesc, ItemNote, ItemQ
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int updateExtCodeFromNesting(global::System.Nullable<int> BatchID, global::System.Nullable<int> ItemID, string PartExtCode) {
|
||||
public virtual int updateExtCodeFromBinNesting(global::System.Nullable<int> BatchID, string PartExtCode, string PartRev) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[17];
|
||||
if ((BatchID.HasValue == true)) {
|
||||
command.Parameters[1].Value = ((int)(BatchID.Value));
|
||||
@@ -31772,6 +31780,46 @@ SELECT ItemID, StatusID, KitID, ItemDtmx, ItemExtCode, ItemDesc, ItemNote, ItemQ
|
||||
else {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((PartExtCode == null)) {
|
||||
command.Parameters[2].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
command.Parameters[2].Value = ((string)(PartExtCode));
|
||||
}
|
||||
if ((PartRev == null)) {
|
||||
command.Parameters[3].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
command.Parameters[3].Value = ((string)(PartRev));
|
||||
}
|
||||
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
|
||||
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
|
||||
!= global::System.Data.ConnectionState.Open)) {
|
||||
command.Connection.Open();
|
||||
}
|
||||
int returnValue;
|
||||
try {
|
||||
returnValue = command.ExecuteNonQuery();
|
||||
}
|
||||
finally {
|
||||
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
||||
command.Connection.Close();
|
||||
}
|
||||
}
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int updateExtCodeFromNesting(global::System.Nullable<int> BatchID, global::System.Nullable<int> ItemID, string PartExtCode) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[18];
|
||||
if ((BatchID.HasValue == true)) {
|
||||
command.Parameters[1].Value = ((int)(BatchID.Value));
|
||||
}
|
||||
else {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((ItemID.HasValue == true)) {
|
||||
command.Parameters[2].Value = ((int)(ItemID.Value));
|
||||
}
|
||||
@@ -31805,7 +31853,7 @@ SELECT ItemID, StatusID, KitID, ItemDtmx, ItemExtCode, ItemDesc, ItemNote, ItemQ
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int updateFromNesting(global::System.Nullable<int> ItemID, global::System.Nullable<int> MatID, string PostProcList, string ProcessesReq, string PdfFilePath) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[18];
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[19];
|
||||
if ((ItemID.HasValue == true)) {
|
||||
command.Parameters[1].Value = ((int)(ItemID.Value));
|
||||
}
|
||||
@@ -31857,7 +31905,7 @@ SELECT ItemID, StatusID, KitID, ItemDtmx, ItemExtCode, ItemDesc, ItemNote, ItemQ
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int updateSheetStatus(global::System.Nullable<int> SheetID, global::System.Nullable<int> StatusID, string PlaceCod) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[19];
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[20];
|
||||
if ((SheetID.HasValue == true)) {
|
||||
command.Parameters[1].Value = ((int)(SheetID.Value));
|
||||
}
|
||||
@@ -31897,7 +31945,7 @@ SELECT ItemID, StatusID, KitID, ItemDtmx, ItemExtCode, ItemDesc, ItemNote, ItemQ
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int updateSheetStatusPU(global::System.Nullable<int> SheetID, string PlaceCod) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[20];
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[21];
|
||||
if ((SheetID.HasValue == true)) {
|
||||
command.Parameters[1].Value = ((int)(SheetID.Value));
|
||||
}
|
||||
@@ -31931,7 +31979,7 @@ SELECT ItemID, StatusID, KitID, ItemDtmx, ItemExtCode, ItemDesc, ItemNote, ItemQ
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int updateStatus(global::System.Nullable<int> ItemID, global::System.Nullable<int> StatusID, string PlaceCod) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[21];
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[22];
|
||||
if ((ItemID.HasValue == true)) {
|
||||
command.Parameters[1].Value = ((int)(ItemID.Value));
|
||||
}
|
||||
|
||||
+18
-5
@@ -1040,7 +1040,20 @@ SELECT ItemID, StatusID, KitID, ItemDtmx, ItemExtCode, ItemDesc, ItemNote, ItemQ
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="Sauder_NKCConnectionString (Settings)" DbObjectName="Sauder_NKC.dbo.stp_IL_updateExtCodeFromNesting" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="updateExtCodeFromNesting" Modifier="Public" Name="updateExtCodeFromNesting" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy7" UserSourceName="updateExtCodeFromNesting">
|
||||
<DbSource ConnectionRef="Sauder_NKCConnectionString (Settings)" DbObjectName="Sauder_NKC.dbo.stp_IL_updateExtCodeFromBinNesting" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="updateExtCodeFromBinNesting" Modifier="Public" Name="updateExtCodeFromBinNesting" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy8" UserSourceName="updateExtCodeFromBinNesting">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_IL_updateExtCodeFromBinNesting</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@BatchID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@PartExtCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@PartRev" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="Sauder_NKCConnectionString (Settings)" DbObjectName="Sauder_NKC.dbo.stp_IL_updateExtCodeFromNesting" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="updateExtCodeFromNesting" Modifier="Public" Name="updateExtCodeFromNesting" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy3" UserSourceName="updateExtCodeFromNesting">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_IL_updateExtCodeFromNesting</CommandText>
|
||||
@@ -1053,7 +1066,7 @@ SELECT ItemID, StatusID, KitID, ItemDtmx, ItemExtCode, ItemDesc, ItemNote, ItemQ
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="Sauder_NKCConnectionString (Settings)" DbObjectName="Sauder_NKC.dbo.stp_IL_updateFromNesting" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="updateFromNesting" Modifier="Public" Name="updateFromNesting" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy3" UserSourceName="updateFromNesting">
|
||||
<DbSource ConnectionRef="Sauder_NKCConnectionString (Settings)" DbObjectName="Sauder_NKC.dbo.stp_IL_updateFromNesting" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="updateFromNesting" Modifier="Public" Name="updateFromNesting" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy4" UserSourceName="updateFromNesting">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_IL_updateFromNesting</CommandText>
|
||||
@@ -1068,7 +1081,7 @@ SELECT ItemID, StatusID, KitID, ItemDtmx, ItemExtCode, ItemDesc, ItemNote, ItemQ
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="Sauder_NKCConnectionString (Settings)" DbObjectName="Sauder_NKC.dbo.stp_IL_updateSheetStatus" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="updateSheetStatus" Modifier="Public" Name="updateSheetStatus" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy4" UserSourceName="updateSheetStatus">
|
||||
<DbSource ConnectionRef="Sauder_NKCConnectionString (Settings)" DbObjectName="Sauder_NKC.dbo.stp_IL_updateSheetStatus" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="updateSheetStatus" Modifier="Public" Name="updateSheetStatus" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy5" UserSourceName="updateSheetStatus">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_IL_updateSheetStatus</CommandText>
|
||||
@@ -1081,7 +1094,7 @@ SELECT ItemID, StatusID, KitID, ItemDtmx, ItemExtCode, ItemDesc, ItemNote, ItemQ
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="Sauder_NKCConnectionString (Settings)" DbObjectName="Sauder_NKC.dbo.stp_IL_updateSheetStatusPU" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="updateSheetStatusPU" Modifier="Public" Name="updateSheetStatusPU" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy5" UserSourceName="updateSheetStatusPU">
|
||||
<DbSource ConnectionRef="Sauder_NKCConnectionString (Settings)" DbObjectName="Sauder_NKC.dbo.stp_IL_updateSheetStatusPU" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="updateSheetStatusPU" Modifier="Public" Name="updateSheetStatusPU" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy6" UserSourceName="updateSheetStatusPU">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_IL_updateSheetStatusPU</CommandText>
|
||||
@@ -1093,7 +1106,7 @@ SELECT ItemID, StatusID, KitID, ItemDtmx, ItemExtCode, ItemDesc, ItemNote, ItemQ
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="Sauder_NKCConnectionString (Settings)" DbObjectName="Sauder_NKC.dbo.stp_IL_updateStatus" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="updateStatus" Modifier="Public" Name="updateStatus" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy6" UserSourceName="updateStatus">
|
||||
<DbSource ConnectionRef="Sauder_NKCConnectionString (Settings)" DbObjectName="Sauder_NKC.dbo.stp_IL_updateStatus" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="updateStatus" Modifier="Public" Name="updateStatus" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy7" UserSourceName="updateStatus">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_IL_updateStatus</CommandText>
|
||||
|
||||
Generated
+7
-7
@@ -1,10 +1,10 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Il codice è stato generato da uno strumento.
|
||||
// Versione runtime:4.0.30319.42000
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Le modifiche apportate a questo file possono provocare un comportamento non corretto e andranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace AppData.Properties {
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.2.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.10.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
@@ -26,8 +26,8 @@ namespace AppData.Properties {
|
||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=10.74.82.14;Initial Catalog=Sauder_NKC;Persist Security Info=True;Use" +
|
||||
"r ID=conn_NKC;Password=pwd_NKC")]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=SQL2016DEV;Initial Catalog=Sauder_NKC;Persist Security Info=True;User" +
|
||||
" ID=sa;Password=keyhammer16")]
|
||||
public string Sauder_NKCConnectionString {
|
||||
get {
|
||||
return ((string)(this["Sauder_NKCConnectionString"]));
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
<Setting Name="Sauder_NKCConnectionString" Type="(Connection string)" Scope="Application">
|
||||
<DesignTimeValue Profile="(Default)"><?xml version="1.0" encoding="utf-16"?>
|
||||
<SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<ConnectionString>Data Source=10.74.82.14;Initial Catalog=Sauder_NKC;Persist Security Info=True;User ID=conn_NKC;Password=pwd_NKC</ConnectionString>
|
||||
<ConnectionString>Data Source=SQL2016DEV;Initial Catalog=Sauder_NKC;Persist Security Info=True;User ID=sa;Password=keyhammer16</ConnectionString>
|
||||
<ProviderName>System.Data.SqlClient</ProviderName>
|
||||
</SerializableConnectionString></DesignTimeValue>
|
||||
<Value Profile="(Default)">Data Source=10.74.82.14;Initial Catalog=Sauder_NKC;Persist Security Info=True;User ID=conn_NKC;Password=pwd_NKC</Value>
|
||||
<Value Profile="(Default)">Data Source=SQL2016DEV;Initial Catalog=Sauder_NKC;Persist Security Info=True;User ID=sa;Password=keyhammer16</Value>
|
||||
</Setting>
|
||||
</Settings>
|
||||
</SettingsFile>
|
||||
+71
-69
@@ -1,72 +1,74 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
</configSections>
|
||||
<connectionStrings>
|
||||
<add name="AppData.Properties.Settings.Sauder_NKCConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=Sauder_NKC;Persist Security Info=True;User ID=conn_NKC;Password=pwd_NKC" providerName="System.Data.SqlClient" />
|
||||
</connectionStrings>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.IO.Pipelines" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-5.0.0.1" newVersion="5.0.0.1" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.1" newVersion="4.0.1.1" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.4.0" newVersion="4.1.4.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading.Channels" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.InteropServices.RuntimeInformation" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="SharpCompress" publicKeyToken="afb0a02973931d96" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-0.28.3.0" newVersion="0.28.3.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="DnsClient" publicKeyToken="4574bb5573c51424" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-1.5.0.0" newVersion="1.5.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.IO.Compression" publicKeyToken="b77a5c561934e089" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Security.Cryptography.Pkcs" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-5.0.0.1" newVersion="5.0.0.1" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="ICSharpCode.SharpZipLib" publicKeyToken="1b03e6acf1164f73" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-1.3.2.10" newVersion="1.3.2.10" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
<configSections>
|
||||
</configSections>
|
||||
<connectionStrings>
|
||||
<add name="AppData.Properties.Settings.Sauder_NKCConnectionString"
|
||||
connectionString="Data Source=SQL2016DEV;Initial Catalog=Sauder_NKC;Persist Security Info=True;User ID=sa;Password=keyhammer16"
|
||||
providerName="System.Data.SqlClient" />
|
||||
</connectionStrings>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.IO.Pipelines" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-5.0.0.1" newVersion="5.0.0.1" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.1" newVersion="4.0.1.1" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.4.0" newVersion="4.1.4.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading.Channels" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.InteropServices.RuntimeInformation" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="SharpCompress" publicKeyToken="afb0a02973931d96" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-0.28.3.0" newVersion="0.28.3.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="DnsClient" publicKeyToken="4574bb5573c51424" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-1.5.0.0" newVersion="1.5.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.IO.Compression" publicKeyToken="b77a5c561934e089" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Security.Cryptography.Pkcs" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-5.0.0.1" newVersion="5.0.0.1" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="ICSharpCode.SharpZipLib" publicKeyToken="1b03e6acf1164f73" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-1.3.2.10" newVersion="1.3.2.10" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
||||
@@ -21,8 +21,8 @@
|
||||
<package id="SharpZipLib" version="1.3.2" targetFramework="net462" />
|
||||
<package id="Snappy.NET" version="1.1.1.8" targetFramework="net462" />
|
||||
<package id="StackExchange.Redis" version="2.2.62" targetFramework="net462" />
|
||||
<package id="SteamWare" version="5.1.2108.1115" targetFramework="net462" />
|
||||
<package id="SteamWare.Logger" version="5.1.2108.1115" targetFramework="net462" />
|
||||
<package id="SteamWare" version="5.1.2108.1911" targetFramework="net462" />
|
||||
<package id="SteamWare.Logger" version="5.1.2108.1911" targetFramework="net462" />
|
||||
<package id="System.Buffers" version="4.5.1" targetFramework="net462" />
|
||||
<package id="System.Diagnostics.PerformanceCounter" version="5.0.1" targetFramework="net462" />
|
||||
<package id="System.IO.Compression" version="4.3.0" targetFramework="net462" />
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
<Version>10</Version>
|
||||
<SourceModelProvider>
|
||||
<ConnectionBasedModelProvider>
|
||||
<ConnectionString>Data Source=SQL2016DEV;Initial Catalog=Sauder_NKC;Persist Security Info=True;User ID=sa;Pooling=False;MultipleActiveResultSets=False;Connect Timeout=60;Encrypt=False;TrustServerCertificate=False</ConnectionString>
|
||||
<ConnectionString>Data Source=SQL2016DEV;Initial Catalog=Sauder_NKC;Integrated Security=True;Persist Security Info=False;Pooling=False;MultipleActiveResultSets=False;Connect Timeout=60;Encrypt=False;TrustServerCertificate=False</ConnectionString>
|
||||
</ConnectionBasedModelProvider>
|
||||
</SourceModelProvider>
|
||||
<TargetModelProvider>
|
||||
<ConnectionBasedModelProvider>
|
||||
<ConnectionString>Data Source=SQL2016PROD;Initial Catalog=Sauder_NKC_Prod;Persist Security Info=True;User ID=sa;Pooling=False;MultipleActiveResultSets=False;Connect Timeout=60;Encrypt=False;TrustServerCertificate=False</ConnectionString>
|
||||
<ConnectionString>Data Source=SQL2016PROD;Initial Catalog=Sauder_NKC2_Prod;Integrated Security=True;Persist Security Info=False;Pooling=False;MultipleActiveResultSets=False;Connect Timeout=60;Encrypt=False;TrustServerCertificate=False</ConnectionString>
|
||||
</ConnectionBasedModelProvider>
|
||||
</TargetModelProvider>
|
||||
<SchemaCompareSettingsService>
|
||||
@@ -35,6 +35,10 @@
|
||||
<Name>BackupDatabaseBeforeChanges</Name>
|
||||
<Value>False</Value>
|
||||
</PropertyElementName>
|
||||
<PropertyElementName>
|
||||
<Name>IgnoreIndexesStatisticsOnEnclaveEnabledColumns</Name>
|
||||
<Value>False</Value>
|
||||
</PropertyElementName>
|
||||
<PropertyElementName>
|
||||
<Name>BlockOnPossibleDataLoss</Name>
|
||||
<Value>True</Value>
|
||||
@@ -63,6 +67,10 @@
|
||||
<Name>DisableAndReenableDdlTriggers</Name>
|
||||
<Value>True</Value>
|
||||
</PropertyElementName>
|
||||
<PropertyElementName>
|
||||
<Name>DisableIndexesForDataPhase</Name>
|
||||
<Value>True</Value>
|
||||
</PropertyElementName>
|
||||
<PropertyElementName>
|
||||
<Name>DoNotAlterChangeDataCaptureObjects</Name>
|
||||
<Value>True</Value>
|
||||
@@ -107,6 +115,10 @@
|
||||
<Name>GenerateSmartDefaults</Name>
|
||||
<Value>False</Value>
|
||||
</PropertyElementName>
|
||||
<PropertyElementName>
|
||||
<Name>HashObjectNamesInLogs</Name>
|
||||
<Value>False</Value>
|
||||
</PropertyElementName>
|
||||
<PropertyElementName>
|
||||
<Name>IgnoreDdlTriggerOrder</Name>
|
||||
<Value>False</Value>
|
||||
@@ -267,10 +279,22 @@
|
||||
<Name>PopulateFilesOnFileGroups</Name>
|
||||
<Value>True</Value>
|
||||
</PropertyElementName>
|
||||
<PropertyElementName>
|
||||
<Name>PreserveIdentityLastValues</Name>
|
||||
<Value>False</Value>
|
||||
</PropertyElementName>
|
||||
<PropertyElementName>
|
||||
<Name>RegisterDataTierApplication</Name>
|
||||
<Value>False</Value>
|
||||
</PropertyElementName>
|
||||
<PropertyElementName>
|
||||
<Name>RebuildIndexesOfflineForDataPhase</Name>
|
||||
<Value>False</Value>
|
||||
</PropertyElementName>
|
||||
<PropertyElementName>
|
||||
<Name>RestoreSequenceCurrentValue</Name>
|
||||
<Value>True</Value>
|
||||
</PropertyElementName>
|
||||
<PropertyElementName>
|
||||
<Name>ScriptDatabaseCollation</Name>
|
||||
<Value>False</Value>
|
||||
@@ -301,11 +325,11 @@
|
||||
</PropertyElementName>
|
||||
<PropertyElementName>
|
||||
<Name>TargetDatabaseName</Name>
|
||||
<Value>Sauder_NKC_Prod</Value>
|
||||
<Value>Sauder_NKC2_Prod</Value>
|
||||
</PropertyElementName>
|
||||
<PropertyElementName>
|
||||
<Name>TargetConnectionString</Name>
|
||||
<Value>Data Source=SQL2016PROD;Initial Catalog=Sauder_NKC_Prod;Persist Security Info=True;User ID=sa;Pooling=False;MultipleActiveResultSets=False;Connect Timeout=60;Encrypt=False;TrustServerCertificate=False;Application Name="Microsoft SQL Server Data Tools, Schema Compare"</Value>
|
||||
<Value>Data Source=SQL2016PROD;Initial Catalog=Sauder_NKC2_Prod;Integrated Security=True;Persist Security Info=False;Pooling=False;MultipleActiveResultSets=False;Connect Timeout=60;Encrypt=False;TrustServerCertificate=False;Application Name="Microsoft SQL Server Data Tools, Schema Compare"</Value>
|
||||
</PropertyElementName>
|
||||
<PropertyElementName>
|
||||
<Name>TreatVerificationErrorsAsWarnings</Name>
|
||||
@@ -331,6 +355,10 @@
|
||||
<Name>AllowDropBlockingAssemblies</Name>
|
||||
<Value>False</Value>
|
||||
</PropertyElementName>
|
||||
<PropertyElementName>
|
||||
<Name>DoNotEvaluateSqlCmdVariables</Name>
|
||||
<Value>True</Value>
|
||||
</PropertyElementName>
|
||||
<PropertyElementName>
|
||||
<Name>DoNotDropAggregates</Name>
|
||||
<Value>False</Value>
|
||||
@@ -399,6 +427,22 @@
|
||||
<Name>DoNotDropDatabaseTriggers</Name>
|
||||
<Value>False</Value>
|
||||
</PropertyElementName>
|
||||
<PropertyElementName>
|
||||
<Name>IgnoreDatabaseWorkloadGroups</Name>
|
||||
<Value>False</Value>
|
||||
</PropertyElementName>
|
||||
<PropertyElementName>
|
||||
<Name>DoNotDropDatabaseWorkloadGroups</Name>
|
||||
<Value>False</Value>
|
||||
</PropertyElementName>
|
||||
<PropertyElementName>
|
||||
<Name>IgnoreWorkloadClassifiers</Name>
|
||||
<Value>False</Value>
|
||||
</PropertyElementName>
|
||||
<PropertyElementName>
|
||||
<Name>DoNotDropWorkloadClassifiers</Name>
|
||||
<Value>False</Value>
|
||||
</PropertyElementName>
|
||||
<PropertyElementName>
|
||||
<Name>DoNotDropDefaults</Name>
|
||||
<Value>False</Value>
|
||||
@@ -431,10 +475,18 @@
|
||||
<Name>DoNotDropExternalFileFormats</Name>
|
||||
<Value>False</Value>
|
||||
</PropertyElementName>
|
||||
<PropertyElementName>
|
||||
<Name>DoNotDropExternalStreamingJobs</Name>
|
||||
<Value>False</Value>
|
||||
</PropertyElementName>
|
||||
<PropertyElementName>
|
||||
<Name>DoNotDropExternalTables</Name>
|
||||
<Value>False</Value>
|
||||
</PropertyElementName>
|
||||
<PropertyElementName>
|
||||
<Name>DoNotDropExternalStreams</Name>
|
||||
<Value>False</Value>
|
||||
</PropertyElementName>
|
||||
<PropertyElementName>
|
||||
<Name>DoNotDropFilegroups</Name>
|
||||
<Value>False</Value>
|
||||
@@ -675,10 +727,18 @@
|
||||
<Name>ExcludeExternalFileFormats</Name>
|
||||
<Value>False</Value>
|
||||
</PropertyElementName>
|
||||
<PropertyElementName>
|
||||
<Name>ExcludeExternalStreamingJobs</Name>
|
||||
<Value>False</Value>
|
||||
</PropertyElementName>
|
||||
<PropertyElementName>
|
||||
<Name>ExcludeExternalTables</Name>
|
||||
<Value>False</Value>
|
||||
</PropertyElementName>
|
||||
<PropertyElementName>
|
||||
<Name>ExcludeExternalStreams</Name>
|
||||
<Value>False</Value>
|
||||
</PropertyElementName>
|
||||
<PropertyElementName>
|
||||
<Name>ExcludeEventSessions</Name>
|
||||
<Value>True</Value>
|
||||
@@ -943,5 +1003,30 @@
|
||||
<SelectedItem Type="Microsoft.Data.Tools.Schema.Sql.SchemaModel.SqlUser, Microsoft.Data.Tools.Schema.Sql, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<Name>conn_NKC</Name>
|
||||
</SelectedItem>
|
||||
<SelectedItem Type="Microsoft.Data.Tools.Schema.Sql.SchemaModel.SqlTable, Microsoft.Data.Tools.Schema.Sql, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<Name>dbo</Name>
|
||||
<Name>ControlloDefrag</Name>
|
||||
</SelectedItem>
|
||||
<SelectedItem Type="Microsoft.Data.Tools.Schema.Sql.SchemaModel.SqlExtendedProperty, Microsoft.Data.Tools.Schema.Sql, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<Name>SqlTableBase</Name>
|
||||
<Name>dbo</Name>
|
||||
<Name>ControlloDefrag</Name>
|
||||
<Name>Note</Name>
|
||||
</SelectedItem>
|
||||
<SelectedItem Type="Microsoft.Data.Tools.Schema.Sql.SchemaModel.SqlTable, Microsoft.Data.Tools.Schema.Sql, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<Name>dbo</Name>
|
||||
<Name>BatchReqList_OLD</Name>
|
||||
</SelectedItem>
|
||||
<SelectedItem Type="Microsoft.Data.Tools.Schema.Sql.SchemaModel.SqlExtendedProperty, Microsoft.Data.Tools.Schema.Sql, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<Name>SqlColumn</Name>
|
||||
<Name>dbo</Name>
|
||||
<Name>BatchReqList_OLD</Name>
|
||||
<Name>OrdID</Name>
|
||||
<Name>MS_Description</Name>
|
||||
</SelectedItem>
|
||||
<SelectedItem Type="Microsoft.Data.Tools.Schema.Sql.SchemaModel.SqlPrimaryKeyConstraint, Microsoft.Data.Tools.Schema.Sql, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<Name>dbo</Name>
|
||||
<Name>PK_BatchReqList</Name>
|
||||
</SelectedItem>
|
||||
</ExcludedTargetElements>
|
||||
</SchemaComparison>
|
||||
@@ -35,7 +35,7 @@
|
||||
<HintPath>..\packages\Newtonsoft.Json.13.0.1\lib\net40\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\NLog.4.7.10\lib\net40-client\NLog.dll</HintPath>
|
||||
<HintPath>..\packages\NLog.4.7.11\lib\net40-client\NLog.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Configuration" />
|
||||
|
||||
@@ -2763,6 +2763,7 @@
|
||||
<xs:element name="proxyAddress" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="url" minOccurs="0" maxOccurs="1" type="xs:anyURI" />
|
||||
<xs:element name="userAgent" minOccurs="0" maxOccurs="1" type="Layout" />
|
||||
<xs:element name="escapeDataNLogLegacy" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="escapeDataRfc3986" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="preAuthenticate" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
@@ -2816,6 +2817,11 @@
|
||||
<xs:documentation>Web service URL.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="userAgent" type="SimpleLayoutAttribute">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Value of the User-agent HTTP header.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="escapeDataNLogLegacy" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Value whether escaping be done according to the old NLog style (Very non-standard)</xs:documentation>
|
||||
|
||||
+20
-11
@@ -94,6 +94,11 @@ namespace NKC_SDK
|
||||
/// </summary>
|
||||
public int MaxTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indice di aprtenza (per carrelli, bins...)
|
||||
/// </summary>
|
||||
public int NumIndexStart { get; set; } = 1;
|
||||
|
||||
/// <summary>
|
||||
/// Elenco ordini richiesti da processare / nestare
|
||||
/// </summary>
|
||||
@@ -114,12 +119,6 @@ namespace NKC_SDK
|
||||
/// </summary>
|
||||
public int ProcType { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Indice di aprtenza (per carrelli, bins...)
|
||||
/// </summary>
|
||||
public int NumIndexStart { get; set; } = 1;
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
|
||||
@@ -342,11 +341,21 @@ namespace NKC_SDK
|
||||
/// </summary>
|
||||
public int BinIndex { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Codice ITEM esterno da cliente (HFA)
|
||||
/// </summary>
|
||||
public string PartExtCode { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// Elenco dei PART/ITEM dell'Ordine
|
||||
/// </summary>
|
||||
public List<Part> PartList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Revisione ITEM esterno da cliente (HFA)
|
||||
/// </summary>
|
||||
public string PartRev { get; set; } = "";
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
|
||||
@@ -750,11 +759,6 @@ namespace NKC_SDK
|
||||
/// </summary>
|
||||
public string PartExtCode { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// Revisione ITEM esterno da cliente (HFA)
|
||||
/// </summary>
|
||||
public string PartRev { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// Cod ITEM di NKC
|
||||
/// </summary>
|
||||
@@ -765,6 +769,11 @@ namespace NKC_SDK
|
||||
/// </summary>
|
||||
public int PartQty { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Revisione ITEM esterno da cliente (HFA)
|
||||
/// </summary>
|
||||
public string PartRev { get; set; } = "";
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Newtonsoft.Json" version="13.0.1" targetFramework="net40" />
|
||||
<package id="NLog" version="4.7.10" targetFramework="net40" />
|
||||
<package id="NLog.Config" version="4.7.10" targetFramework="net40" />
|
||||
<package id="NLog.Schema" version="4.7.10" targetFramework="net40" />
|
||||
<package id="NLog" version="4.7.11" targetFramework="net40" />
|
||||
<package id="NLog.Config" version="4.7.11" targetFramework="net40" />
|
||||
<package id="NLog.Schema" version="4.7.11" targetFramework="net40" />
|
||||
</packages>
|
||||
@@ -275,7 +275,14 @@ namespace NKC_WF
|
||||
/// <returns></returns>
|
||||
public string traduci(string lemma)
|
||||
{
|
||||
return SteamWare.user_std.UtSn.Traduci(lemma);
|
||||
string answ = $"__{lemma}__";
|
||||
try
|
||||
{
|
||||
answ = SteamWare.user_std.UtSn.Traduci(lemma);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
|
||||
#endregion Public Methods
|
||||
|
||||
@@ -107,7 +107,7 @@
|
||||
<HintPath>..\packages\Newtonsoft.Json.13.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\NLog.4.7.10\lib\net45\NLog.dll</HintPath>
|
||||
<HintPath>..\packages\NLog.4.7.11\lib\net45\NLog.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="PdfSharp, Version=1.50.5147.0, Culture=neutral, PublicKeyToken=f94615aa0424f9eb, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\PDFsharp.1.50.5147\lib\net20\PdfSharp.dll</HintPath>
|
||||
@@ -127,13 +127,11 @@
|
||||
<Reference Include="StackExchange.Redis, Version=2.0.0.0, Culture=neutral, PublicKeyToken=c219ff1ca8c2ce46, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\StackExchange.Redis.2.2.62\lib\net461\StackExchange.Redis.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="SteamWare, Version=5.1.2108.1115, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\SteamWare.5.1.2108.1115\lib\net462\SteamWare.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
<Reference Include="SteamWare, Version=5.1.2108.1912, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\SteamWare.5.1.2108.1912\lib\net462\SteamWare.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="SteamWare.Logger, Version=5.1.2108.1115, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\SteamWare.Logger.5.1.2108.1115\lib\net462\SteamWare.Logger.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
<Reference Include="SteamWare.Logger, Version=5.1.2108.1912, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\SteamWare.Logger.5.1.2108.1912\lib\net462\SteamWare.Logger.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll</HintPath>
|
||||
|
||||
@@ -81,6 +81,7 @@
|
||||
<add key="RedisConn" value="nkcredis.steamware.net,abortConnect=false,ssl=false,password=nkc.password"/>
|
||||
<add key="RedisConnAdmin" value="nkcredis.steamware.net,abortConnect=false,ssl=false,password=nkc.password,allowAdmin=true"/>
|
||||
<add key="redisDb" value="2"/>
|
||||
<add key="cacheDataTTL" value="2"/>
|
||||
<!--MongoDB-->
|
||||
<add key="mdbConnString" value="mongodb://W2019-MONGODB:27017"/>
|
||||
<add key="enableMongo" value="true"/>
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
<package id="MongoDB.Libmongocrypt" version="1.2.2" targetFramework="net462" />
|
||||
<package id="NETStandard.Library" version="2.0.3" targetFramework="net462" />
|
||||
<package id="Newtonsoft.Json" version="13.0.1" targetFramework="net462" />
|
||||
<package id="NLog" version="4.7.10" targetFramework="net462" />
|
||||
<package id="NLog" version="4.7.11" targetFramework="net462" />
|
||||
<package id="PDFsharp" version="1.50.5147" targetFramework="net462" />
|
||||
<package id="Pipelines.Sockets.Unofficial" version="2.2.0" targetFramework="net462" />
|
||||
<package id="popper.js" version="1.16.1" targetFramework="net462" />
|
||||
@@ -59,8 +59,8 @@
|
||||
<package id="SharpZipLib" version="1.3.2" targetFramework="net462" />
|
||||
<package id="Snappy.NET" version="1.1.1.8" targetFramework="net462" />
|
||||
<package id="StackExchange.Redis" version="2.2.62" targetFramework="net462" />
|
||||
<package id="SteamWare" version="5.1.2108.1115" targetFramework="net462" />
|
||||
<package id="SteamWare.Logger" version="5.1.2108.1115" targetFramework="net462" />
|
||||
<package id="SteamWare" version="5.1.2108.1912" targetFramework="net462" />
|
||||
<package id="SteamWare.Logger" version="5.1.2108.1912" targetFramework="net462" />
|
||||
<package id="System.Buffers" version="4.5.1" targetFramework="net462" />
|
||||
<package id="System.Diagnostics.PerformanceCounter" version="5.0.1" targetFramework="net462" />
|
||||
<package id="System.IO.Compression" version="4.3.0" targetFramework="net462" />
|
||||
|
||||
+206
-166
@@ -9,17 +9,19 @@ namespace NKC_WF.site
|
||||
{
|
||||
public partial class BatchPreview : BasePage
|
||||
{
|
||||
#region Protected Properties
|
||||
|
||||
/// <summary>
|
||||
/// Batch corrente...
|
||||
/// BunkId selezionato
|
||||
/// </summary>
|
||||
public int BatchId
|
||||
protected int BunkId
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = memLayer.ML.QSI("BatchId");
|
||||
return answ;
|
||||
return cmp_BP_bunkList.BunkIdSel;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Indice bunk selezionato (0..n-1)
|
||||
/// </summary>
|
||||
@@ -34,16 +36,18 @@ namespace NKC_WF.site
|
||||
cmp_BP_bunkList.selIndex = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// BunkId selezionato
|
||||
/// </summary>
|
||||
protected int BunkId
|
||||
protected int SheetId
|
||||
{
|
||||
get
|
||||
{
|
||||
return cmp_BP_bunkList.BunkIdSel;
|
||||
return cmp_BP_sheetList.SheetIdSel;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Indice sheet selezionato (0..n-1)
|
||||
/// </summary>
|
||||
@@ -58,34 +62,15 @@ namespace NKC_WF.site
|
||||
cmp_BP_sheetList.selIndex = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// BunkId selezionato
|
||||
/// </summary>
|
||||
protected int SheetId
|
||||
{
|
||||
get
|
||||
{
|
||||
return cmp_BP_sheetList.SheetIdSel;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// valore selezionato nello slider
|
||||
/// </summary>
|
||||
protected int valSlider
|
||||
{
|
||||
get
|
||||
{
|
||||
return cmp_slider.selValue;
|
||||
}
|
||||
set
|
||||
{
|
||||
cmp_slider.selValue = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Chaive URL base x gestione sheet del batch corrente
|
||||
/// </summary>
|
||||
protected string tabSheetKey;
|
||||
protected string tabSheetKey
|
||||
{
|
||||
get => $"{memLayer.ML.redHash($"TabSheets")}:{BatchId}";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Elenco fogli della gestione corrente
|
||||
/// </summary>
|
||||
@@ -108,145 +93,50 @@ namespace NKC_WF.site
|
||||
}
|
||||
set
|
||||
{
|
||||
string rawData = JsonConvert.SerializeObject(value);
|
||||
memLayer.ML.setRSV(tabSheetKey, rawData, 60);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Restituisce la riga dall'indice inserito (
|
||||
/// </summary>
|
||||
/// <param name="indice">valore 1..maxSheets</param>
|
||||
/// <returns></returns>
|
||||
protected DS_App.SheetListRow rigaSel(int indice)
|
||||
{
|
||||
DS_App.SheetListRow answ = null;
|
||||
// init var
|
||||
int maxNum = tabSheets.Count;
|
||||
// base 0 --> riduco di 1...
|
||||
indice--;
|
||||
// controllo valore sia accettabile...
|
||||
indice = indice < 0 ? 0 : indice;
|
||||
indice = indice >= maxNum ? maxNum - 1 : indice;
|
||||
try
|
||||
{
|
||||
answ = tabSheets[indice];
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// restituisco!
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// Restituisce la PRIMA riga dal codice BUNK inserito
|
||||
/// </summary>
|
||||
/// <param name="BunkId">valore 1..numBunk</param>
|
||||
/// <returns></returns>
|
||||
protected DS_App.SheetListRow rigaByBunk(int BunkId)
|
||||
{
|
||||
DS_App.SheetListRow answ = null;
|
||||
try
|
||||
{
|
||||
answ = tabSheets.First(x => x.StackID == BunkId);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// restituisco!
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// Restituisce la riga dal codice Sheet inserito
|
||||
/// </summary>
|
||||
/// <param name="SheetId">valore 1..numBunk</param>
|
||||
/// <returns></returns>
|
||||
protected DS_App.SheetListRow rigaBySheet(int SheetId)
|
||||
{
|
||||
DS_App.SheetListRow answ = null;
|
||||
try
|
||||
{
|
||||
answ = tabSheets.First(x => x.StackID == SheetId);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// restituisco!
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// caicamento pagina
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
((SiteMaster)this.Master).showSearch = false;
|
||||
tabSheetKey = $"{memLayer.ML.redHash($"TabSheets")}:{BatchId}";
|
||||
// imposto bunk!
|
||||
cmp_BP_bunkList.BatchId = BatchId;
|
||||
setupSlider();
|
||||
doUpdate();
|
||||
}
|
||||
cmp_BP_bunkList.eh_doRefresh += Cmp_BP_bunkList_eh_doRefresh;
|
||||
cmp_BP_sheetList.eh_doRefresh += Cmp_BP_sheetList_eh_doRefresh;
|
||||
cmp_slider.eh_doRefresh += Cmp_slider_eh_doRefresh;
|
||||
}
|
||||
/// <summary>
|
||||
/// Setup slider da num fogli
|
||||
/// </summary>
|
||||
private void setupSlider()
|
||||
{
|
||||
cmp_slider.minVal = 1;
|
||||
cmp_slider.maxVal = tabSheets.Count;
|
||||
cmp_slider.selValue = 1;
|
||||
}
|
||||
|
||||
|
||||
private void doUpdate()
|
||||
{
|
||||
updateBySlider();
|
||||
}
|
||||
private void Cmp_slider_eh_doRefresh(object sender, EventArgs e)
|
||||
{
|
||||
updateBySlider();
|
||||
}
|
||||
/// <summary>
|
||||
/// Effettua update da Slider --> valore selezionato
|
||||
/// </summary>
|
||||
private void updateBySlider()
|
||||
{
|
||||
// il valore assoluto dello slider è già corretto... cerco nella tab!
|
||||
DS_App.SheetListRow currRow = rigaSel(valSlider);
|
||||
if (currRow != null)
|
||||
{
|
||||
// recupero indice bunk e sheets e seleziono
|
||||
bunkIndex = currRow.StackIndex - 1;
|
||||
cmp_BP_sheetList.BunkId = cmp_BP_bunkList.BunkIdSel;
|
||||
sheetIndex = currRow.SheetIndex - 1;
|
||||
// update svg...
|
||||
cmp_MU_svgViewer.SheetId = currRow.SheetID;
|
||||
}
|
||||
}
|
||||
|
||||
private void Cmp_BP_sheetList_eh_doRefresh(object sender, EventArgs e)
|
||||
{
|
||||
// calcolo indice slider da chiave sheet...
|
||||
int num = 1;
|
||||
foreach (var item in tabSheets)
|
||||
{
|
||||
if (item.SheetID == cmp_BP_sheetList.SheetIdSel)
|
||||
string rawData = "";
|
||||
if (value.Count > 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
num++;
|
||||
rawData = JsonConvert.SerializeObject(value);
|
||||
}
|
||||
memLayer.ML.setRSV(tabSheetKey, rawData, 300);
|
||||
}
|
||||
cmp_slider.selValue = num;
|
||||
// update svg...
|
||||
cmp_MU_svgViewer.SheetId = cmp_BP_sheetList.SheetIdSel;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// valore selezionato nello slider
|
||||
/// </summary>
|
||||
protected int valSlider
|
||||
{
|
||||
get
|
||||
{
|
||||
return cmp_slider.selValue;
|
||||
}
|
||||
set
|
||||
{
|
||||
cmp_slider.selValue = value;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Protected Properties
|
||||
|
||||
#region Public Properties
|
||||
|
||||
/// <summary>
|
||||
/// Batch corrente...
|
||||
/// </summary>
|
||||
public int BatchId
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = memLayer.ML.QSI("BatchId");
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Public Properties
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private void Cmp_BP_bunkList_eh_doRefresh(object sender, EventArgs e)
|
||||
{
|
||||
DS_App.SheetListRow currRow = rigaByBunk(cmp_BP_bunkList.BunkIdSel);
|
||||
@@ -254,7 +144,8 @@ namespace NKC_WF.site
|
||||
{
|
||||
// calcolo indice slider da chiave sheet...
|
||||
int num = 1;
|
||||
foreach (var item in tabSheets)
|
||||
var currTabSheets = tabSheets;
|
||||
foreach (var item in currTabSheets)
|
||||
{
|
||||
if (item.SheetID == currRow.SheetID)
|
||||
{
|
||||
@@ -273,5 +164,154 @@ namespace NKC_WF.site
|
||||
cmp_MU_svgViewer.SheetId = currRow.SheetID;
|
||||
}
|
||||
}
|
||||
|
||||
private void Cmp_BP_sheetList_eh_doRefresh(object sender, EventArgs e)
|
||||
{
|
||||
// calcolo indice slider da chiave sheet...
|
||||
int num = 1;
|
||||
var currTabSheets = tabSheets;
|
||||
foreach (var item in currTabSheets)
|
||||
{
|
||||
if (item.SheetID == cmp_BP_sheetList.SheetIdSel)
|
||||
{
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
num++;
|
||||
}
|
||||
}
|
||||
cmp_slider.selValue = num;
|
||||
// update svg...
|
||||
cmp_MU_svgViewer.SheetId = cmp_BP_sheetList.SheetIdSel;
|
||||
}
|
||||
|
||||
private void Cmp_slider_eh_doRefresh(object sender, EventArgs e)
|
||||
{
|
||||
updateBySlider();
|
||||
}
|
||||
|
||||
private void doUpdate()
|
||||
{
|
||||
updateBySlider();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Setup slider da num fogli
|
||||
/// </summary>
|
||||
private void setupSlider()
|
||||
{
|
||||
cmp_slider.minVal = 1;
|
||||
cmp_slider.maxVal = tabSheets.Count;
|
||||
cmp_slider.selValue = 1;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Effettua update da Slider --> valore selezionato
|
||||
/// </summary>
|
||||
private void updateBySlider()
|
||||
{
|
||||
// il valore assoluto dello slider è già corretto... cerco nella tab!
|
||||
DS_App.SheetListRow currRow = rigaSel(valSlider);
|
||||
if (currRow != null)
|
||||
{
|
||||
// recupero indice bunk e sheets e seleziono
|
||||
bunkIndex = currRow.StackIndex - 1;
|
||||
cmp_BP_sheetList.BunkId = cmp_BP_bunkList.BunkIdSel;
|
||||
sheetIndex = currRow.SheetIndex - 1;
|
||||
// update svg...
|
||||
cmp_MU_svgViewer.SheetId = currRow.SheetID;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Private Methods
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
/// <summary>
|
||||
/// caicamento pagina
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
((SiteMaster)this.Master).showSearch = false;
|
||||
// imposto bunk!
|
||||
cmp_BP_bunkList.BatchId = BatchId;
|
||||
setupSlider();
|
||||
doUpdate();
|
||||
}
|
||||
cmp_BP_bunkList.eh_doRefresh += Cmp_BP_bunkList_eh_doRefresh;
|
||||
cmp_BP_sheetList.eh_doRefresh += Cmp_BP_sheetList_eh_doRefresh;
|
||||
cmp_slider.eh_doRefresh += Cmp_slider_eh_doRefresh;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Restituisce la PRIMA riga dal codice BUNK inserito
|
||||
/// </summary>
|
||||
/// <param name="BunkId">valore 1..numBunk</param>
|
||||
/// <returns></returns>
|
||||
protected DS_App.SheetListRow rigaByBunk(int BunkId)
|
||||
{
|
||||
DS_App.SheetListRow answ = null;
|
||||
try
|
||||
{
|
||||
var currTabSheets = tabSheets;
|
||||
answ = currTabSheets.First(x => x.StackID == BunkId);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// restituisco!
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Restituisce la riga dal codice Sheet inserito
|
||||
/// </summary>
|
||||
/// <param name="SheetId">valore 1..numBunk</param>
|
||||
/// <returns></returns>
|
||||
protected DS_App.SheetListRow rigaBySheet(int SheetId)
|
||||
{
|
||||
DS_App.SheetListRow answ = null;
|
||||
try
|
||||
{
|
||||
var currTabSheets = tabSheets;
|
||||
answ = currTabSheets.First(x => x.StackID == SheetId);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// restituisco!
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Restituisce la riga dall'indice inserito (
|
||||
/// </summary>
|
||||
/// <param name="indice">valore 1..maxSheets</param>
|
||||
/// <returns></returns>
|
||||
protected DS_App.SheetListRow rigaSel(int indice)
|
||||
{
|
||||
DS_App.SheetListRow answ = null;
|
||||
var currTabSheets = tabSheets;
|
||||
// init var
|
||||
int maxNum = currTabSheets.Count;
|
||||
// base 0 --> riduco di 1...
|
||||
indice--;
|
||||
// controllo valore sia accettabile...
|
||||
indice = indice < 0 ? 0 : indice;
|
||||
indice = indice >= maxNum ? maxNum - 1 : indice;
|
||||
try
|
||||
{
|
||||
answ = currTabSheets[indice];
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// restituisco!
|
||||
return answ;
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user