100 lines
3.3 KiB
C#
100 lines
3.3 KiB
C#
using System.Collections;
|
|
using Microsoft.SharePoint.Client;
|
|
using Microsoft.VisualBasic;
|
|
|
|
namespace library_spo_utils.Constants;
|
|
|
|
internal static class Folders
|
|
{
|
|
internal static Dictionary<string, string> GetProjectFolders(string projName)
|
|
{
|
|
var folderName = new Dictionary<string, string>
|
|
{
|
|
{ "01_Costificazioni", $"Commerciale {projName}" },
|
|
{ "02_Conferma_Ordine", $"Commerciale {projName}" },
|
|
{ "03_Amministrazione", $"Commerciale {projName}" },
|
|
{ "05_Documenti_di_Spedizione", $"Documenti {projName}" },
|
|
{ "07_Service", $"Documenti {projName}" },
|
|
{ "08_Specifiche_Tecniche_E_Meeting", $"Documenti {projName}" },
|
|
{ "10_Fornitori", $"Documenti {projName}" },
|
|
{ "11_Documenti_Tecnici", $"Documenti {projName}" }
|
|
};
|
|
return folderName;
|
|
}
|
|
internal static Dictionary<string, string> GetProjectQuickMenu(string projName, string subSiteUrl)
|
|
{
|
|
var itemQuickMenu = new Dictionary<string, string>
|
|
{
|
|
{ $"Commerciale {projName}", $"{subSiteUrl}/Commerciale%20{projName.Replace("-","")}" },
|
|
{ $"Documenti {projName}", $"{subSiteUrl}/Documenti%20{projName.Replace("-","")}" },
|
|
{ $"Media {projName}", $"{subSiteUrl}/Media%20{projName.Replace("-","")}" },
|
|
{ $"SottoCommesse {projName}", $"{subSiteUrl}/SottoCommesse%20{projName.Replace("-", "")}" }
|
|
};
|
|
return itemQuickMenu;
|
|
}
|
|
internal static Dictionary<string, ListTemplateType> GetProjectDocLib(string ssProjectTitle)
|
|
{
|
|
var docLibNames = new Dictionary<string, ListTemplateType>
|
|
{
|
|
{ $"Documenti {ssProjectTitle}", ListTemplateType.DocumentLibrary },
|
|
{ $"Media {ssProjectTitle}", ListTemplateType.PictureLibrary },
|
|
{ $"SottoCommesse {ssProjectTitle}", ListTemplateType.DocumentLibrary },
|
|
{ $"Commerciale {ssProjectTitle}", ListTemplateType.DocumentLibrary },
|
|
};
|
|
return docLibNames;
|
|
}
|
|
|
|
internal static IEnumerable SubProjectDocSet
|
|
{
|
|
get
|
|
{
|
|
return new string[]
|
|
{
|
|
"09_Documenti_Tecnici",
|
|
"12_Disegni_Costruttivi",
|
|
"13_Manuali",
|
|
"15_Documentazione_Elettrica",
|
|
"16_Liste_Ricambi"
|
|
};
|
|
}
|
|
}
|
|
|
|
internal static IEnumerable OfferDocSet(string rev) =>
|
|
new string[]
|
|
{
|
|
rev,
|
|
$"{rev}/01_Costificazione",
|
|
$"{rev}/02_Offerta",
|
|
$"{rev}/03_Meeting",
|
|
$"{rev}/04_Corrispondenza",
|
|
$"{rev}/08_Specifiche_Tecniche",
|
|
$"{rev}/10_Fornitori",
|
|
$"{rev}/11_Documenti_Tecnici",
|
|
$"{rev}/14_Foto"
|
|
};
|
|
|
|
|
|
|
|
internal static IEnumerable PurchasingOneNoteDir(string year) =>
|
|
new string[]
|
|
{
|
|
$"{year}",
|
|
$"{year}/Ordini di Acquisto",
|
|
$"{year}/DDT di Acquisto",
|
|
$"{year}/Richieste di Acquisto"
|
|
};
|
|
|
|
|
|
internal static IEnumerable PurchasingOrder
|
|
{
|
|
get
|
|
{
|
|
return new string[]
|
|
{
|
|
"Conferma ordine",
|
|
"Offerte",
|
|
"Richiesta di Offerta"
|
|
};
|
|
}
|
|
}
|
|
} |