update directory name and access visibility
This commit is contained in:
@@ -0,0 +1,144 @@
|
||||
using console_spo_utils.Services;
|
||||
|
||||
namespace console_spo_utils.Constants;
|
||||
|
||||
internal static class Fields
|
||||
{
|
||||
internal static string[] SiteFields
|
||||
{
|
||||
get
|
||||
{
|
||||
return new[]
|
||||
{
|
||||
"ID Progetto",
|
||||
"Cliente",
|
||||
"Causale"
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
internal static string[] SubSiteProject
|
||||
{
|
||||
get
|
||||
{
|
||||
return new string[]
|
||||
{
|
||||
"Item",
|
||||
"Codice Articolo",
|
||||
"Descrizione Articolo",
|
||||
"Matricola Macchina"
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
internal static string[] SubProject
|
||||
{
|
||||
get
|
||||
{
|
||||
return new string[]
|
||||
{
|
||||
"Type",
|
||||
"Name",
|
||||
"Description",
|
||||
"Item",
|
||||
"Codice Articolo",
|
||||
"Descrizione Articolo",
|
||||
"Matricola Macchina",
|
||||
"Modified",
|
||||
"Editor",
|
||||
"Version"
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
internal static string[] QuotationView
|
||||
{
|
||||
get
|
||||
{
|
||||
return new string[]
|
||||
{
|
||||
"Type",
|
||||
"Name",
|
||||
"ID Offerta",
|
||||
"Fornitore",
|
||||
"Causale",
|
||||
"Autore"
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
internal static Dictionary<string, string> SyntheticProjList
|
||||
{
|
||||
get
|
||||
{
|
||||
return new Dictionary<string, string>()
|
||||
{
|
||||
{ SynthticProjTitle[0], "<Eq><FieldRef Name = 'PAL_DlvReason' />"+"<Value Type = 'Choice'>01 VENDITA MACCHINE / IMPIANTI</Value></Eq>" },
|
||||
{ SynthticProjTitle[1], "<Eq><FieldRef Name = 'PAL_DlvReason' /><Value Type = 'Choice'>02 VENDITA RICAMBI</Value></Eq>" },
|
||||
{ SynthticProjTitle[2], "<And><Neq><FieldRef Name = 'PAL_DlvReason' /><Value Type = 'Choice'>01 VENDITA MACCHINE / IMPIANTI</Value></Neq>"+
|
||||
"<Neq><FieldRef Name = 'PAL_DlvReason' /><Value Type = 'Choice'>02 VENDITA RICAMBI</Value></Neq></And>"}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
internal static string[] SynthticProjTitle
|
||||
{
|
||||
get
|
||||
{
|
||||
return new[]
|
||||
{
|
||||
"Sintetica-caus01",
|
||||
"Sintetica-caus02",
|
||||
"Sintetica-causXX"
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
internal static Dictionary<string, string[]> ProjectCustomFields
|
||||
{
|
||||
get
|
||||
{
|
||||
return new Dictionary<string, string[]>()
|
||||
{
|
||||
{ "PAL_ID_Project", new string[] { "URL", "ID Progetto", "PAL Field", "FALSE", "TRUE", "TRUE", "TRUE", "TRUE", "TRUE", string.Empty } },
|
||||
{ "PAL_DlvReason", new string[] { "Choice", "Causale", "PAL Field", "FALSE", "TRUE", "TRUE", "TRUE", "TRUE", "TRUE", "<CHOICES><CHOICE>01 VENDITA MACCHINE / IMPIANTI</CHOICE><CHOICE>02 VENDITA RICAMBI</CHOICE><CHOICE>04 VENDITA SERVIZI FUORI COMMESSA</CHOICE><CHOICE>08 VENDITA RIPARAZIONI</CHOICE><CHOICE>09 ENGINEERING</CHOICE><CHOICE>11 VENDITA E LAVORAZ.CONTO TERZI</CHOICE><CHOICE>55 PREVENDITE</CHOICE><CHOICE>NC NON CONFORMITÁ</CHOICE></CHOICES>" } },
|
||||
{ "PAL_Customer", new string[] { "Text", "Cliente", "PAL Field", "FALSE", "TRUE", "TRUE", "TRUE", "TRUE", "TRUE", string.Empty } },
|
||||
{ "PAL_Item", new string[] { "Text", "Item", "PAL Field", "FALSE", "FALSE", "TRUE", "TRUE", "TRUE", "TRUE", string.Empty } },
|
||||
{ "PAL_ItemCode", new string[] { "Text", "Codice Articolo", "PAL Field", "FALSE", "FALSE", "TRUE", "TRUE", "TRUE", "TRUE", string.Empty } },
|
||||
{ "PAL_ItemDescription", new string[] { "Text", "Descrizione Articolo", "PAL Field", "FALSE", "FALSE", "TRUE", "TRUE", "TRUE", "TRUE", string.Empty } },
|
||||
{ "PAL_SerialNumber", new string[] { "Text", "Matricola Macchina", "PAL Field", "FALSE", "FALSE", "TRUE", "TRUE", "TRUE", "TRUE", string.Empty } }
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
internal static Dictionary<string, string[]> QuotationCustomFields
|
||||
{
|
||||
get
|
||||
{
|
||||
return new Dictionary<string, string[]>()
|
||||
{
|
||||
{ "PAL_Quotation_Reason", new string[] { "Choice", "Causale", "PAL Field", "FALSE", "TRUE", "TRUE", "TRUE", "TRUE", "TRUE", "<CHOICES><CHOICE>01 VENDITA MACCHINE / IMPIANTI</CHOICE><CHOICE>02 VENDITA RICAMBI</CHOICE><CHOICE>04 VENDITA SERVIZI FUORI COMMESSA</CHOICE><CHOICE>08 VENDITA RIPARAZIONI</CHOICE><CHOICE>09 ENGINEERING</CHOICE><CHOICE>11 VENDITA E LAVORAZ.CONTO TERZI</CHOICE><CHOICE>55 PREVENDITE</CHOICE><CHOICE>NC NON CONFORMITÁ</CHOICE></CHOICES>" } },
|
||||
{ "PAL_ID_Quotation", new string[] { "Text", "ID Offerta", "PAL Field", "FALSE", "FALSE", "TRUE", "TRUE", "TRUE", "TRUE", string.Empty } },
|
||||
{ "PAL_Quotation_Name", new string[] { "Text", "Fornitore", "PAL Field", "FALSE", "FALSE", "TRUE", "TRUE", "TRUE", "TRUE", string.Empty } },
|
||||
{ "PAL_Authors", new string[] { "Text", "Autore", "PAL Field", "FALSE", "FALSE", "TRUE", "TRUE", "TRUE", "TRUE", string.Empty } }
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
internal static Dictionary<string, string[]> NonComplianceCustomFields
|
||||
{
|
||||
get
|
||||
{
|
||||
return new Dictionary<string, string[]>()
|
||||
{
|
||||
{ "PAL_NC_Source", new string[] {"Choice", "Sorgente", "PAL Field", "FALSE", "FALSE", "TRUE", "TRUE", "TRUE", "TRUE", "<CHOICES><CHOICE>Interno</CHOICE><CHOICE>Cliente</CHOICE><CHOICE>Fornitore</CHOICE></CHOICES>" } },
|
||||
{ "PAL_NC_Reference", new string[] { "Text", "Rifermento", "PAL Field", "FALSE", "FALSE", "TRUE", "TRUE", "TRUE", "TRUE", string.Empty } },
|
||||
{ "PAL_NC_Nominative", new string[] { "Text", "Nominativo", "PAL Field", "FALSE", "FALSE", "TRUE", "TRUE", "TRUE", "TRUE", string.Empty } },
|
||||
{ "PAL_NC_DateOfDetection", new string[] { "Text", "Data Rilevazione", "PAL Field", "FALSE", "FALSE", "TRUE", "TRUE", "TRUE", "TRUE", string.Empty } },
|
||||
{ "PAL_NC_Project", new string[] { "Text", "Commessa", "PAL Field", "FALSE", "FALSE", "TRUE", "TRUE", "TRUE", "TRUE", string.Empty } },
|
||||
{ "PAL_NC_ItemCode", new string[] { "Text", "Parte", "PAL Field", "FALSE", "FALSE", "TRUE", "TRUE", "TRUE", "TRUE", string.Empty } },
|
||||
{ "PAL_NC_PortalUrl", new string[] {"URL", "Portal", "PAL Field", "FALSE", "FALSE", "TRUE", "TRUE", "TRUE", "TRUE", string.Empty } },
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
using System.Collections;
|
||||
using Microsoft.SharePoint.Client;
|
||||
|
||||
namespace console_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}" },
|
||||
{ $"Documenti {projName}", $"{subSiteUrl}/Documenti%20{projName}" },
|
||||
{ $"Media {projName}", $"{subSiteUrl}/Media%20{projName}" },
|
||||
{ $"SottoCommesse {projName}", $"{subSiteUrl}/SottoCommesse%20{projName}" }
|
||||
};
|
||||
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
|
||||
{
|
||||
get
|
||||
{
|
||||
string rev = "Rev. 1"; //TODO: Definire revisione
|
||||
return 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"
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user