update x gestione metodi opzionali da DB
This commit is contained in:
@@ -15,6 +15,55 @@ namespace MP_ADM
|
||||
|
||||
#endregion Internal Fields
|
||||
|
||||
#region Public Fields
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione gestione Controlli periodici
|
||||
/// </summary>
|
||||
public bool enableControlli = memLayer.ML.cdvb("enableControlli");
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione gestione Disegno articolo
|
||||
/// </summary>
|
||||
public bool enableDisegno = memLayer.ML.cdvb("enableDisegno");
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione gestione grafici JScript
|
||||
/// </summary>
|
||||
public bool enableGraphJS = memLayer.ML.cdvb("enableGraphJS");
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione gestione Pezzi LAsciati in macchina
|
||||
/// </summary>
|
||||
public bool enablePzProdLasciati = memLayer.ML.cdvb("enablePzProdLasciati");
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione gestione Richieste - Promesse - ODL
|
||||
/// </summary>
|
||||
public bool enableRPO = memLayer.ML.cdvb("enableRPO");
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione gestione scarti
|
||||
/// </summary>
|
||||
public bool enableScarti = memLayer.ML.cdvb("enableScarti");
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione scheda Tecnica
|
||||
/// </summary>
|
||||
public bool enableSchedaTecnica = memLayer.ML.cdvb("enableSchedaTecnica");
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione gestione SplitODL
|
||||
/// </summary>
|
||||
public bool enableSplitODL = memLayer.ML.cdvb("enableSplitODL");
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione gestione Set PZ Pallet su tablet
|
||||
/// </summary>
|
||||
public bool enableTabSetPzPallet = memLayer.ML.cdvb("enableTabSetPzPallet");
|
||||
|
||||
#endregion Public Fields
|
||||
|
||||
#region Public Events
|
||||
|
||||
public event EventHandler eh_nuovoValore;
|
||||
|
||||
@@ -190,7 +190,7 @@ namespace MP_ADM.WebUserControls
|
||||
{
|
||||
get
|
||||
{
|
||||
return !memLayer.ML.CRB("enableRPO");
|
||||
return !enableRPO;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+49
-12
@@ -14,6 +14,55 @@ namespace MP_SITE
|
||||
|
||||
#endregion Internal Fields
|
||||
|
||||
#region Public Fields
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione gestione Controlli periodici
|
||||
/// </summary>
|
||||
public bool enableControlli = memLayer.ML.cdvb("enableControlli");
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione gestione Disegno articolo
|
||||
/// </summary>
|
||||
public bool enableDisegno = memLayer.ML.cdvb("enableDisegno");
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione gestione grafici JScript
|
||||
/// </summary>
|
||||
public bool enableGraphJS = memLayer.ML.cdvb("enableGraphJS");
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione gestione Pezzi LAsciati in macchina
|
||||
/// </summary>
|
||||
public bool enablePzProdLasciati = memLayer.ML.cdvb("enablePzProdLasciati");
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione gestione Richieste - Promesse - ODL
|
||||
/// </summary>
|
||||
public bool enableRPO = memLayer.ML.cdvb("enableRPO");
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione gestione scarti
|
||||
/// </summary>
|
||||
public bool enableScarti = memLayer.ML.cdvb("enableScarti");
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione scheda Tecnica
|
||||
/// </summary>
|
||||
public bool enableSchedaTecnica = memLayer.ML.cdvb("enableSchedaTecnica");
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione gestione SplitODL
|
||||
/// </summary>
|
||||
public bool enableSplitODL = memLayer.ML.cdvb("enableSplitODL");
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione gestione Set PZ Pallet su tablet
|
||||
/// </summary>
|
||||
public bool enableTabSetPzPallet = memLayer.ML.cdvb("enableTabSetPzPallet");
|
||||
|
||||
#endregion Public Fields
|
||||
|
||||
#region Protected Properties
|
||||
|
||||
/// <summary>
|
||||
@@ -34,18 +83,6 @@ namespace MP_SITE
|
||||
|
||||
#endregion Protected Properties
|
||||
|
||||
#region Public Properties
|
||||
|
||||
public bool enableGraphJS
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.CRB("enableGraphJS");
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Public Properties
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
|
||||
+49
-11
@@ -18,6 +18,55 @@ namespace MoonProTablet
|
||||
|
||||
#endregion Internal Fields
|
||||
|
||||
#region Public Fields
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione gestione Controlli periodici
|
||||
/// </summary>
|
||||
public bool enableControlli = memLayer.ML.cdvb("enableControlli");
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione gestione Disegno articolo
|
||||
/// </summary>
|
||||
public bool enableDisegno = memLayer.ML.cdvb("enableDisegno");
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione gestione grafici JScript
|
||||
/// </summary>
|
||||
public bool enableGraphJS = memLayer.ML.cdvb("enableGraphJS");
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione gestione Pezzi LAsciati in macchina
|
||||
/// </summary>
|
||||
public bool enablePzProdLasciati = memLayer.ML.cdvb("enablePzProdLasciati");
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione gestione Richieste - Promesse - ODL
|
||||
/// </summary>
|
||||
public bool enableRPO = memLayer.ML.cdvb("enableRPO");
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione gestione scarti
|
||||
/// </summary>
|
||||
public bool enableScarti = memLayer.ML.cdvb("enableScarti");
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione scheda Tecnica
|
||||
/// </summary>
|
||||
public bool enableSchedaTecnica = memLayer.ML.cdvb("enableSchedaTecnica");
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione gestione SplitODL
|
||||
/// </summary>
|
||||
public bool enableSplitODL = memLayer.ML.cdvb("enableSplitODL");
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione gestione Set PZ Pallet su tablet
|
||||
/// </summary>
|
||||
public bool enableTabSetPzPallet = memLayer.ML.cdvb("enableTabSetPzPallet");
|
||||
|
||||
#endregion Public Fields
|
||||
|
||||
#region Protected Properties
|
||||
|
||||
/// <summary>
|
||||
@@ -36,17 +85,6 @@ namespace MoonProTablet
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Verifica (su tab config) se sia abilitata la gestione flusso RPO (Richieste - Promesse - ODL)
|
||||
/// </summary>
|
||||
protected bool enableRPO
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.cdvb("enableRPO");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Verifica se la macchina MAIN sia MASTER
|
||||
/// </summary>
|
||||
|
||||
@@ -6,6 +6,20 @@ namespace MoonProTablet
|
||||
{
|
||||
public partial class DettaglioMacchina : BasePage
|
||||
{
|
||||
#region Private Methods
|
||||
|
||||
private void mod_confProd1_eh_newVal(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
private void mod_confProd1_eh_reset(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
#endregion Private Methods
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
@@ -18,14 +32,6 @@ namespace MoonProTablet
|
||||
mod_confProd1.eh_reset += mod_confProd1_eh_reset;
|
||||
}
|
||||
|
||||
void mod_confProd1_eh_reset(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
void mod_confProd1_eh_newVal(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// evento timer
|
||||
/// </summary>
|
||||
@@ -35,25 +41,7 @@ namespace MoonProTablet
|
||||
{
|
||||
mod_dettMacchina1.doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// Verifica abilitazione gestione scarti
|
||||
/// </summary>
|
||||
public bool enableScarti
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.cdvb("enableScarti");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Verifica abilitazione gestione scarti
|
||||
/// </summary>
|
||||
public bool enableControlli
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.cdvb("enableControlli");
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
}
|
||||
}
|
||||
@@ -15,7 +15,6 @@ namespace MoonProTablet
|
||||
|
||||
private void checkModuleEnabled()
|
||||
{
|
||||
bool enableSchedaTecnica = memLayer.ML.cdvb("enableSchedaTecnica");
|
||||
cmp_sheetTech.Visible = enableSchedaTecnica;
|
||||
cmp_disabled.Visible = !enableSchedaTecnica;
|
||||
}
|
||||
|
||||
@@ -60,6 +60,7 @@
|
||||
<add key="DevicesConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="DevicesAuthConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="MoonProConnectionStringArca" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro_IS_EdilChim;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="MoonProConnectionStringMAG" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro_MAG;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
<add name="MoonProConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
|
||||
|
||||
@@ -32,6 +32,55 @@ namespace MoonProTablet.WebUserControls
|
||||
|
||||
#endregion Internal Fields
|
||||
|
||||
#region Public Fields
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione gestione Controlli periodici
|
||||
/// </summary>
|
||||
public bool enableControlli = memLayer.ML.cdvb("enableControlli");
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione gestione Disegno articolo
|
||||
/// </summary>
|
||||
public bool enableDisegno = memLayer.ML.cdvb("enableDisegno");
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione gestione grafici JScript
|
||||
/// </summary>
|
||||
public bool enableGraphJS = memLayer.ML.cdvb("enableGraphJS");
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione gestione Pezzi LAsciati in macchina
|
||||
/// </summary>
|
||||
public bool enablePzProdLasciati = memLayer.ML.cdvb("enablePzProdLasciati");
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione gestione Richieste - Promesse - ODL
|
||||
/// </summary>
|
||||
public bool enableRPO = memLayer.ML.cdvb("enableRPO");
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione gestione scarti
|
||||
/// </summary>
|
||||
public bool enableScarti = memLayer.ML.cdvb("enableScarti");
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione scheda Tecnica
|
||||
/// </summary>
|
||||
public bool enableSchedaTecnica = memLayer.ML.cdvb("enableSchedaTecnica");
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione gestione SplitODL
|
||||
/// </summary>
|
||||
public bool enableSplitODL = memLayer.ML.cdvb("enableSplitODL");
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione gestione Set PZ Pallet su tablet
|
||||
/// </summary>
|
||||
public bool enableTabSetPzPallet = memLayer.ML.cdvb("enableTabSetPzPallet");
|
||||
|
||||
#endregion Public Fields
|
||||
|
||||
#region Public Events
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -46,17 +46,6 @@ namespace MoonProTablet.WebUserControls
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Verifica (su tab config) se sia abilitata la gestione flusso RPO (Richieste - Promesse - ODL)
|
||||
/// </summary>
|
||||
protected bool enableRPO
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.cdvb("enableRPO");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Restituisce il codice IdxMacchina dell'altra tavola (se multi) altrimenti la stessa macchina...
|
||||
/// </summary>
|
||||
@@ -488,7 +477,6 @@ namespace MoonProTablet.WebUserControls
|
||||
}
|
||||
// deve controllare abbia ODL o PROMESSE odl...
|
||||
bool hasNewOdl = DataLayerObj.taSelOdlFree.getUnused(idxMacchinaFix, chkTutti.Checked).Rows.Count > 1;
|
||||
bool enableSchedaTecnica = memLayer.ML.CRB("enableSchedaTecnica");
|
||||
// sistemo buttons!
|
||||
lbtStartAttr.Enabled = (isEnabled && (!inAttr && hasNewOdl));
|
||||
lbtEndProd.Enabled = (isEnabled && (!inAttr && currHasOdl));
|
||||
@@ -677,7 +665,7 @@ namespace MoonProTablet.WebUserControls
|
||||
cmp_dettPODL.idxODLSel = idxODLSel;
|
||||
divDettPOdl.Visible = show && idxODLSel > 0;
|
||||
// se abilitato da config su DB mostro selezione del numPzPallet...
|
||||
cmp_selPzPallet.enableSet = memLayer.ML.CRB("enableTabSetPzPallet");
|
||||
cmp_selPzPallet.enableSet = enableTabSetPzPallet;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -1049,7 +1037,7 @@ namespace MoonProTablet.WebUserControls
|
||||
TCRichAttr = TCAssegnato(idxODLSel);
|
||||
}
|
||||
int idxODL = 0;
|
||||
if (memLayer.ML.CRB("enableSplitODL"))
|
||||
if (enableSplitODL)
|
||||
{
|
||||
// splitto VECCHIO ODL (se è rimasto qualcosa da produrre e se ce ne è rimasto uno.......)
|
||||
try
|
||||
@@ -1220,7 +1208,7 @@ namespace MoonProTablet.WebUserControls
|
||||
{
|
||||
DataLayerObj.taODL.fixMachineSlave(idxMacchina, 30, 1);
|
||||
}
|
||||
// se c'è gesitone SchedaTecnica --> chiamo procedura update x lotti
|
||||
// se c'è gestione SchedaTecnica --> chiamo procedura update x lotti
|
||||
|
||||
// FixMe-ToDo
|
||||
|
||||
|
||||
@@ -239,7 +239,6 @@ namespace MoonProTablet.WebUserControls
|
||||
private void checkConfig()
|
||||
{
|
||||
// verifico SE sia permesso gestire i "Pezzi lasciati" in macchina...
|
||||
bool enablePzProdLasciati = memLayer.ML.cdvb("enablePzProdLasciati");
|
||||
lblNumLasciati.Visible = enablePzProdLasciati;
|
||||
txtNumLasciati.Visible = enablePzProdLasciati;
|
||||
lblEmptyNumLasciati.Visible = !enablePzProdLasciati;
|
||||
|
||||
@@ -91,7 +91,7 @@ namespace MoonProTablet.WebUserControls
|
||||
// default è ND...
|
||||
bool answ = false;
|
||||
// SE abilitata gestione controlli...
|
||||
if (memLayer.ML.cdvb("enableDisegno"))
|
||||
if (enableDisegno)
|
||||
{
|
||||
// recupero da anagrafica articoli...
|
||||
try
|
||||
|
||||
Generated
+12
-1
@@ -12,7 +12,7 @@ namespace MapoDb.Properties {
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.7.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.8.1.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
@@ -77,5 +77,16 @@ namespace MapoDb.Properties {
|
||||
return ((string)(this["MoonPro_IS_ArcaConnectionString"]));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=SQL2016DEV;Initial Catalog=MoonPro_MAG;Persist Security Info=True;Use" +
|
||||
"r ID=sa;Password=keyhammer16")]
|
||||
public string MoonPro_MAGConnectionString {
|
||||
get {
|
||||
return ((string)(this["MoonPro_MAGConnectionString"]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,5 +42,13 @@
|
||||
</SerializableConnectionString></DesignTimeValue>
|
||||
<Value Profile="(Default)">Data Source=SQL2016DEV;Initial Catalog=MoonPro_IS_EdilChim;Persist Security Info=True;User ID=sa;Password=keyhammer16</Value>
|
||||
</Setting>
|
||||
<Setting Name="MoonPro_MAGConnectionString" 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=SQL2016DEV;Initial Catalog=MoonPro_MAG;Persist Security Info=True;User ID=sa;Password=keyhammer16</ConnectionString>
|
||||
<ProviderName>System.Data.SqlClient</ProviderName>
|
||||
</SerializableConnectionString></DesignTimeValue>
|
||||
<Value Profile="(Default)">Data Source=SQL2016DEV;Initial Catalog=MoonPro_MAG;Persist Security Info=True;User ID=sa;Password=keyhammer16</Value>
|
||||
</Setting>
|
||||
</Settings>
|
||||
</SettingsFile>
|
||||
Reference in New Issue
Block a user