Continuo fix commenti
This commit is contained in:
@@ -4,20 +4,67 @@
|
||||
{
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
/// Eliminazione record
|
||||
/// </summary>
|
||||
/// <param name="rec2del"></param>
|
||||
/// <returns></returns>
|
||||
Task<bool> DeleteAsync(ItemModel model);
|
||||
|
||||
/// <summary>
|
||||
/// Recupera alternative per item specifico
|
||||
/// </summary>
|
||||
/// <param name="recId">ID Record da cercare</param>
|
||||
/// <returns></returns>
|
||||
Task<List<ItemModel>> GetAltAsync(int recId);
|
||||
|
||||
/// <summary>
|
||||
/// Fissa ItemID mancanti nella BOM cercando corrispondenze per codice esterno
|
||||
/// </summary>
|
||||
/// <param name="listOrg">Lista BOM originale da correggere</param>
|
||||
/// <returns></returns>
|
||||
Task<List<BomItemDTO>> GetBomFixItemIdAsync(List<BomItemDTO> listOrg);
|
||||
|
||||
/// <summary>
|
||||
/// Filtra items per gruppo e tipo classe
|
||||
/// </summary>
|
||||
/// <param name="CodGroup">Codice gruppo filtro</param>
|
||||
/// <param name="ItemType">Tipo classe item</param>
|
||||
/// <returns></returns>
|
||||
Task<List<ItemModel>> GetFiltAsync(string CodGroup, ItemClassType ItemType);
|
||||
|
||||
/// <summary>
|
||||
/// Cerca items tramite termine di ricerca
|
||||
/// </summary>
|
||||
/// <param name="term">Termine di ricerca</param>
|
||||
/// <returns></returns>
|
||||
Task<List<ItemModel>> GetSearchAsync(string term);
|
||||
|
||||
/// <summary>
|
||||
/// Aggiornamento massivo costi e parametri item
|
||||
/// </summary>
|
||||
/// <param name="list2upd">Lista items da aggiornare</param>
|
||||
/// <param name="setCost">Costo da impostare</param>
|
||||
/// <param name="defMargin">Margine di default</param>
|
||||
/// <param name="defQtyMax">Quantità massima default</param>
|
||||
/// <param name="defUM">Unità di misura default</param>
|
||||
/// <param name="roundVal">Valore per arrotondamento</param>
|
||||
/// <param name="scaleFactor">Fattore di scala</param>
|
||||
/// <returns></returns>
|
||||
Task<bool> MassUpdateAsync(List<BomItemDTO> list2upd, double setCost, double defMargin, double defQtyMax, string defUM, int roundVal = 0, double scaleFactor = 1_000_000.0);
|
||||
|
||||
/// <summary>
|
||||
/// Upsert record Item (aggiorna o inserisce)
|
||||
/// </summary>
|
||||
/// <param name="upsRec"></param>
|
||||
/// <returns></returns>
|
||||
Task<bool> UpsertAsync(ItemModel upsRec);
|
||||
|
||||
/// <summary>
|
||||
/// Inserisce/aggiorna items dalla BOM
|
||||
/// </summary>
|
||||
/// <param name="bomList">Lista BOM da processare</param>
|
||||
/// <returns></returns>
|
||||
Task<bool> UpsertFromBomAsync(List<BomItemDTO> bomList);
|
||||
|
||||
#endregion Public Methods
|
||||
|
||||
@@ -4,14 +4,40 @@
|
||||
{
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
/// Eliminazione record
|
||||
/// </summary>
|
||||
/// <param name="rec2del"></param>
|
||||
/// <returns></returns>
|
||||
Task<bool> DeleteAsync(SellingItemModel model);
|
||||
|
||||
/// <summary>
|
||||
/// Recupera items filtrati per ambiente ed tipo sorgente
|
||||
/// </summary>
|
||||
/// <param name="envir">Ambiente di esecuzione</param>
|
||||
/// <param name="sourceType">Tipo sorgente item</param>
|
||||
/// <returns></returns>
|
||||
Task<List<SellingItemModel>> GetFiltAsync(Constants.EXECENVIRONMENTS envir, ItemSourceType sourceType);
|
||||
|
||||
/// <summary>
|
||||
/// Recupera items per ambiente di esecuzione
|
||||
/// </summary>
|
||||
/// <param name="envir">Ambiente di esecuzione</param>
|
||||
/// <returns></returns>
|
||||
Task<List<SellingItemModel>> GetByEnvirAsync(Constants.EXECENVIRONMENTS envir);
|
||||
|
||||
/// <summary>
|
||||
/// Aggiorna dati file per item vendibile
|
||||
/// </summary>
|
||||
/// <param name="updRec">Record con nuovi dati file</param>
|
||||
/// <returns></returns>
|
||||
Task<bool> UpdateFileDataAsync(SellingItemModel upsRec);
|
||||
|
||||
/// <summary>
|
||||
/// Upsert record SellingItem (aggiorna o inserisce)
|
||||
/// </summary>
|
||||
/// <param name="upsRec"></param>
|
||||
/// <returns></returns>
|
||||
Task<bool> UpsertAsync(SellingItemModel upsRec);
|
||||
|
||||
#endregion Public Methods
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<bool> DeleteAsync(ItemModel rec2del)
|
||||
{
|
||||
return await TraceAsync($"{_className}.Delete", async (activity) =>
|
||||
@@ -35,6 +36,7 @@
|
||||
});
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<List<ItemModel>> GetAltAsync(int recId)
|
||||
{
|
||||
// Uso helper TraceAsync che gestisce automaticamente StartActivity, Log e Exception tracking
|
||||
@@ -48,6 +50,7 @@
|
||||
});
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<List<BomItemDTO>> GetBomFixItemIdAsync(List<BomItemDTO> listOrg)
|
||||
{
|
||||
return await TraceAsync($"{_className}.GetBomFixItemIdAsync", async (activity) =>
|
||||
@@ -68,6 +71,7 @@
|
||||
});
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<List<ItemModel>> GetFiltAsync(string CodGroup, ItemClassType ItemType)
|
||||
{
|
||||
return await TraceAsync($"{_className}.GetFilt", async (activity) =>
|
||||
@@ -80,6 +84,7 @@
|
||||
});
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<List<ItemModel>> GetSearchAsync(string term)
|
||||
{
|
||||
return await TraceAsync($"{_className}.GetSearch", async (activity) =>
|
||||
@@ -92,6 +97,7 @@
|
||||
});
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<bool> MassUpdateAsync(List<BomItemDTO> list2upd, double setCost, double defMargin, double defQtyMax, string defUM, int roundVal = 0, double scaleFactor = 1_000_000.0)
|
||||
{
|
||||
return await TraceAsync($"{_className}.MassUpdate", async (activity) =>
|
||||
@@ -110,6 +116,7 @@
|
||||
});
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<bool> UpsertAsync(ItemModel upsRec)
|
||||
{
|
||||
return await TraceAsync($"{_className}.Upsert", async (activity) =>
|
||||
@@ -141,7 +148,7 @@
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<bool> UpsertFromBomAsync(List<BomItemDTO> bomList)
|
||||
{
|
||||
return await TraceAsync($"{_className}.UpsertFromBomAsync", async (activity) =>
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<bool> DeleteAsync(SellingItemModel rec2del)
|
||||
{
|
||||
return await TraceAsync($"{_className}.Delete", async (activity) =>
|
||||
@@ -35,6 +36,7 @@
|
||||
});
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<List<SellingItemModel>> GetByEnvirAsync(Constants.EXECENVIRONMENTS envir)
|
||||
{
|
||||
// Uso helper TraceAsync che gestisce automaticamente StartActivity, Log e Exception tracking
|
||||
@@ -48,6 +50,7 @@
|
||||
});
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<List<SellingItemModel>> GetFiltAsync(Constants.EXECENVIRONMENTS envir, ItemSourceType sourceType)
|
||||
{
|
||||
// Uso helper TraceAsync che gestisce automaticamente StartActivity, Log e Exception tracking
|
||||
@@ -61,6 +64,7 @@
|
||||
});
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<bool> UpdateFileDataAsync(SellingItemModel updRec)
|
||||
{
|
||||
return await TraceAsync($"{_className}.UpdateFileData", async (activity) =>
|
||||
@@ -101,6 +105,7 @@
|
||||
});
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<bool> UpsertAsync(SellingItemModel upsRec)
|
||||
{
|
||||
return await TraceAsync($"{_className}.Upsert", async (activity) =>
|
||||
|
||||
Reference in New Issue
Block a user