diff --git a/ETS_Data/DataProxy_ProjEts.cs b/ETS_Data/DataProxy_ProjEts.cs index 1bbb463..8effbfb 100644 --- a/ETS_Data/DataProxy_ProjEts.cs +++ b/ETS_Data/DataProxy_ProjEts.cs @@ -13,6 +13,7 @@ namespace ETS_Data #region area table adapters /* Ds_ProjEts */ + public Ds_ProjEtsTableAdapters.AnagLabelsTableAdapter taAL; public Ds_ProjEtsTableAdapters.AnagProgettiTableAdapter taAP; public Ds_ProjEtsTableAdapters.AnagFasiTableAdapter taAF; public Ds_ProjEtsTableAdapters.DatiCommessaTableAdapter taDC; @@ -25,7 +26,9 @@ namespace ETS_Data public Ds_ProjEtsTableAdapters.DipendentiTableAdapter taDip; public Ds_ProjEtsTableAdapters.ImpiegoRisorseTableAdapter taIR; public Ds_ProjEtsTableAdapters.LabelsCommTableAdapter taL2C; + public Ds_ProjEtsTableAdapters.LogEmailBazTableAdapter taLEB; public Ds_ProjEtsTableAdapters.ReleasedWeekTableAdapter taReW; + public Ds_ProjEtsTableAdapters.TLockBazRATableAdapter taTLB; /* DS_utilsProjEts */ public DS_utilsProjEtsTableAdapters.v_selClientiTableAdapter taSelCli; public DS_utilsProjEtsTableAdapters.v_selProgettiTableAdapter taSelPro; @@ -38,6 +41,7 @@ namespace ETS_Data /// protected void initTA() { + taAL = new Ds_ProjEtsTableAdapters.AnagLabelsTableAdapter(); taAP = new Ds_ProjEtsTableAdapters.AnagProgettiTableAdapter(); taAF = new Ds_ProjEtsTableAdapters.AnagFasiTableAdapter(); taDC = new Ds_ProjEtsTableAdapters.DatiCommessaTableAdapter(); @@ -50,7 +54,9 @@ namespace ETS_Data taDip = new Ds_ProjEtsTableAdapters.DipendentiTableAdapter(); taIR = new Ds_ProjEtsTableAdapters.ImpiegoRisorseTableAdapter(); taL2C = new Ds_ProjEtsTableAdapters.LabelsCommTableAdapter(); + taLEB = new Ds_ProjEtsTableAdapters.LogEmailBazTableAdapter(); taReW = new Ds_ProjEtsTableAdapters.ReleasedWeekTableAdapter(); + taTLB = new Ds_ProjEtsTableAdapters.TLockBazRATableAdapter(); taSelCli = new DS_utilsProjEtsTableAdapters.v_selClientiTableAdapter(); taSelPro = new DS_utilsProjEtsTableAdapters.v_selProgettiTableAdapter(); taSelCom = new DS_utilsProjEtsTableAdapters.v_selCommesseTableAdapter(); @@ -63,6 +69,7 @@ namespace ETS_Data protected virtual void setupConnectionStringBase() { // connections del db + taAL.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); taAP.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); taAF.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); taDC.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); @@ -75,7 +82,9 @@ namespace ETS_Data taDip.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); taIR.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); taL2C.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); + taLEB.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); taReW.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); + taTLB.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); taSelCli.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); taSelPro.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); taSelCom.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); @@ -170,6 +179,141 @@ namespace ETS_Data return answ; } + /// + /// invia email ai singoli dipendenti delle ore programmate x la settimana indicata con link a bazaar + /// + /// anno + /// num settimana 1-53 + /// + public bool inviaEmailBazaar(int anno, int settimana) + { + bool answ = false; + int inviate = 0; + string oggettoEmail = utils.obj.confReadString("emailBaz_subject"); + string fromEmail = utils.obj.confReadString("_fromEmail"); + string toEmail = ""; + string aCapo = "
"; + string corpoEmail = ""; + string progSett = ""; + int idxDipendente = 0; + // leggo tutte commesse ed i dipendenti... + tabComm = DataProxy_ProjEts.DP.taSelCom.GetData(); + tabDip = DataProxy_ProjEts.DP.taDip.GetData(); + tabD2ATR = DataProxy_ProjEts.DP.taD2ATR.getBazOrd(); + Ds_ProjEts.DipendentiRow rigaDip; + + + // ciclo su TUTTI i dipendenti inseriti come risorse in bazaar + foreach (Ds_ProjEts.Dip2ATRRow riga in tabD2ATR) + { + idxDipendente = riga.idxDipendente; + rigaDip = (Ds_ProjEts.DipendentiRow)tabDip.Select(string.Format("idxDipendente={0}", idxDipendente))[0]; + + // se sono in testing resetto email a mia... + if (utils.obj.confReadBool("testMode")) + { + toEmail = "samuele@steamware.net"; + } + else + { + toEmail = rigaDip.email; + } + + // test: invio forzato sett 9!!! + settimana = 9; + + corpoEmail = "
PROJ-ETS
"; + corpoEmail += string.Format(utils.obj.confReadString("emailBaz_body_Head") + " {1:00}/{0} - {2} {3}", anno, settimana, rigaDip.Cognome, rigaDip.Nome) + aCapo + aCapo; + corpoEmail += string.Format(@"{1}", utils.obj.confReadString("baseUrl"), utils.obj.confReadString("emailBaz_body_Link")); + corpoEmail += aCapo + aCapo; + // compongo la programmazione settimanale utente... EVENTUALMENTE CON GIORNI VUOTI!!! + + progSett = getAgendDip(idxDipendente, anno, settimana); + + corpoEmail += progSett; + corpoEmail += "" + utils.obj.confReadString("emailBaz_body_Firma") + ""; + try + { + // invio email con link + resoconto breve impegno settimanale + utils.gestEmail.geAuth.mandaEmail(fromEmail, toEmail, oggettoEmail, corpoEmail); + inviate++; + } + catch + { } + + if (utils.obj.confReadBool("testMode") && inviate > 5) + { + answ = true; + return answ; + } + } + + answ = inviate > 0; // controlla che ALMENO 1 email sia stata inviata... + return answ; + } + protected Ds_ProjEts.DipendentiDataTable tabDip = new Ds_ProjEts.DipendentiDataTable(); + protected Ds_ProjEts.Dip2ATRDataTable tabD2ATR = new Ds_ProjEts.Dip2ATRDataTable(); + protected Ds_ProjEts.BazaarRisorseDataTable tabBazSingle = new Ds_ProjEts.BazaarRisorseDataTable(); + protected DS_utilsProjEts.v_selCommesseDataTable tabComm = new DS_utilsProjEts.v_selCommesseDataTable(); + /// + /// Formatta blocco impegni del dipendente x la settimana indicata + /// + /// identificativo dipendente + /// anno di riferimento + /// settimana desiderata + /// + protected string getAgendDip(int idxDipendente, int anno, int sett) + { + //default + string answ = ""; + // inizio a comporre tabella utente + answ += ""; + // recupero i dati x il dipendente corrente... + tabBazSingle = DataProxy_ProjEts.DP.taBaz.getByAnnoSettDip(anno, sett, idxDipendente); + // compongo la settimana a partire dalla data richiesta... + for (int i = 0; i < 5; i++) + { + answ += getAgendByDate(idxDipendente, anno, sett, i); + } + answ += "
"; + // restituisco risultato + return answ; + } + /// + /// Formatta blocco impegno x dipendente x una specifica data + /// + /// identificativo dipendente + /// anno di riferimento + /// settimana desiderata + /// shift (add) da applicare con base lunedì (0..4) + /// + protected string getAgendByDate(int idxDipendente, int anno, int sett, int shiftDay) + { + // variabili + string answ = ""; + DS_utilsProjEts.v_selCommesseRow rigaComm; + + // parto dal lunedì della sett indicata! + DateTime dataRif = datario.FirstDateOfWeekISO8601(anno, sett); + dataRif = dataRif.AddDays(shiftDay); + + // inserisco intestazione con data + answ += string.Format("{0:dd.MM.yyyy} {0:dddd}", dataRif).ToUpper(); + + // recupero tutte le assegnazioni x la giornata indicata (cerco alla posizione shiftDay se è != 0) + Ds_ProjEts.BazaarRisorseRow[] commGG = (Ds_ProjEts.BazaarRisorseRow[])tabBazSingle.Select(string.Format("SUBSTRING(SchemaWeek, {0}, 1) <> 0", shiftDay + 1)); + foreach (Ds_ProjEts.BazaarRisorseRow riga in commGG) + { + // recupero dati commessa... + rigaComm = (DS_utilsProjEts.v_selCommesseRow)tabComm.Select(string.Format("value = {0}", riga.idxFase))[0]; + answ += string.Format("{0} {1}", utils.trimChar(rigaComm.label, utils.obj.confReadInt("maxCharNomeComm")), riga.SchemaWeek); + } + // aggiungo spaziatura + answ += "

"; + + return answ; + } + #endregion } } diff --git a/ETS_Data/Ds_ProjEts.Designer.cs b/ETS_Data/Ds_ProjEts.Designer.cs index 8a5e84a..005ad20 100644 --- a/ETS_Data/Ds_ProjEts.Designer.cs +++ b/ETS_Data/Ds_ProjEts.Designer.cs @@ -58,6 +58,10 @@ namespace ETS_Data { private LabelsCommDataTable tableLabelsComm; + private TLockBazRADataTable tableTLockBazRA; + + private LogEmailBazDataTable tableLogEmailBaz; + private global::System.Data.DataRelation relationAnagProgetti_AnagFasi; private global::System.Data.DataRelation relationDatiCommessa_AnagFasi; @@ -151,6 +155,12 @@ namespace ETS_Data { if ((ds.Tables["LabelsComm"] != null)) { base.Tables.Add(new LabelsCommDataTable(ds.Tables["LabelsComm"])); } + if ((ds.Tables["TLockBazRA"] != null)) { + base.Tables.Add(new TLockBazRADataTable(ds.Tables["TLockBazRA"])); + } + if ((ds.Tables["LogEmailBaz"] != null)) { + base.Tables.Add(new LogEmailBazDataTable(ds.Tables["LogEmailBaz"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -339,6 +349,26 @@ namespace ETS_Data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public TLockBazRADataTable TLockBazRA { + get { + return this.tableTLockBazRA; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public LogEmailBazDataTable LogEmailBaz { + get { + return this.tableLogEmailBaz; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -457,6 +487,12 @@ namespace ETS_Data { if ((ds.Tables["LabelsComm"] != null)) { base.Tables.Add(new LabelsCommDataTable(ds.Tables["LabelsComm"])); } + if ((ds.Tables["TLockBazRA"] != null)) { + base.Tables.Add(new TLockBazRADataTable(ds.Tables["TLockBazRA"])); + } + if ((ds.Tables["LogEmailBaz"] != null)) { + base.Tables.Add(new LogEmailBazDataTable(ds.Tables["LogEmailBaz"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -592,6 +628,18 @@ namespace ETS_Data { this.tableLabelsComm.InitVars(); } } + this.tableTLockBazRA = ((TLockBazRADataTable)(base.Tables["TLockBazRA"])); + if ((initTable == true)) { + if ((this.tableTLockBazRA != null)) { + this.tableTLockBazRA.InitVars(); + } + } + this.tableLogEmailBaz = ((LogEmailBazDataTable)(base.Tables["LogEmailBaz"])); + if ((initTable == true)) { + if ((this.tableLogEmailBaz != null)) { + this.tableLogEmailBaz.InitVars(); + } + } this.relationAnagProgetti_AnagFasi = this.Relations["AnagProgetti_AnagFasi"]; this.relationDatiCommessa_AnagFasi = this.Relations["DatiCommessa_AnagFasi"]; this.relationDatiCommessa_DatiCommForn = this.Relations["DatiCommessa_DatiCommForn"]; @@ -643,6 +691,10 @@ namespace ETS_Data { base.Tables.Add(this.tableAnagLabels); this.tableLabelsComm = new LabelsCommDataTable(); base.Tables.Add(this.tableLabelsComm); + this.tableTLockBazRA = new TLockBazRADataTable(); + base.Tables.Add(this.tableTLockBazRA); + this.tableLogEmailBaz = new LogEmailBazDataTable(); + base.Tables.Add(this.tableLogEmailBaz); this.relationAnagProgetti_AnagFasi = new global::System.Data.DataRelation("AnagProgetti_AnagFasi", new global::System.Data.DataColumn[] { this.tableAnagProgetti.idxProgettoColumn}, new global::System.Data.DataColumn[] { this.tableAnagFasi.idxProgettoColumn}, false); @@ -775,6 +827,18 @@ namespace ETS_Data { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeTLockBazRA() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeLogEmailBaz() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { @@ -881,6 +945,12 @@ namespace ETS_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void LabelsCommRowChangeEventHandler(object sender, LabelsCommRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void TLockBazRARowChangeEventHandler(object sender, TLockBazRARowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void LogEmailBazRowChangeEventHandler(object sender, LogEmailBazRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -8064,6 +8134,602 @@ namespace ETS_Data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class TLockBazRADataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnidxDipendente; + + private global::System.Data.DataColumn columnDtLock; + + private global::System.Data.DataColumn columnLockedBy; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TLockBazRADataTable() { + this.TableName = "TLockBazRA"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal TLockBazRADataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected TLockBazRADataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn idxDipendenteColumn { + get { + return this.columnidxDipendente; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DtLockColumn { + get { + return this.columnDtLock; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn LockedByColumn { + get { + return this.columnLockedBy; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TLockBazRARow this[int index] { + get { + return ((TLockBazRARow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event TLockBazRARowChangeEventHandler TLockBazRARowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event TLockBazRARowChangeEventHandler TLockBazRARowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event TLockBazRARowChangeEventHandler TLockBazRARowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event TLockBazRARowChangeEventHandler TLockBazRARowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddTLockBazRARow(TLockBazRARow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TLockBazRARow AddTLockBazRARow(int idxDipendente, System.DateTime DtLock, string LockedBy) { + TLockBazRARow rowTLockBazRARow = ((TLockBazRARow)(this.NewRow())); + object[] columnValuesArray = new object[] { + idxDipendente, + DtLock, + LockedBy}; + rowTLockBazRARow.ItemArray = columnValuesArray; + this.Rows.Add(rowTLockBazRARow); + return rowTLockBazRARow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TLockBazRARow FindByidxDipendente(int idxDipendente) { + return ((TLockBazRARow)(this.Rows.Find(new object[] { + idxDipendente}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + TLockBazRADataTable cln = ((TLockBazRADataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new TLockBazRADataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnidxDipendente = base.Columns["idxDipendente"]; + this.columnDtLock = base.Columns["DtLock"]; + this.columnLockedBy = base.Columns["LockedBy"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnidxDipendente = new global::System.Data.DataColumn("idxDipendente", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnidxDipendente); + this.columnDtLock = new global::System.Data.DataColumn("DtLock", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDtLock); + this.columnLockedBy = new global::System.Data.DataColumn("LockedBy", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnLockedBy); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnidxDipendente}, true)); + this.columnidxDipendente.AllowDBNull = false; + this.columnidxDipendente.Unique = true; + this.columnDtLock.AllowDBNull = false; + this.columnLockedBy.AllowDBNull = false; + this.columnLockedBy.MaxLength = 250; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TLockBazRARow NewTLockBazRARow() { + return ((TLockBazRARow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new TLockBazRARow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(TLockBazRARow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.TLockBazRARowChanged != null)) { + this.TLockBazRARowChanged(this, new TLockBazRARowChangeEvent(((TLockBazRARow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.TLockBazRARowChanging != null)) { + this.TLockBazRARowChanging(this, new TLockBazRARowChangeEvent(((TLockBazRARow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.TLockBazRARowDeleted != null)) { + this.TLockBazRARowDeleted(this, new TLockBazRARowChangeEvent(((TLockBazRARow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.TLockBazRARowDeleting != null)) { + this.TLockBazRARowDeleting(this, new TLockBazRARowChangeEvent(((TLockBazRARow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveTLockBazRARow(TLockBazRARow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + Ds_ProjEts ds = new Ds_ProjEts(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "TLockBazRADataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class LogEmailBazDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnAnno; + + private global::System.Data.DataColumn columnSett; + + private global::System.Data.DataColumn columnDtLastSend; + + private global::System.Data.DataColumn columnSentBy; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public LogEmailBazDataTable() { + this.TableName = "LogEmailBaz"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal LogEmailBazDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected LogEmailBazDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn AnnoColumn { + get { + return this.columnAnno; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn SettColumn { + get { + return this.columnSett; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DtLastSendColumn { + get { + return this.columnDtLastSend; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn SentByColumn { + get { + return this.columnSentBy; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public LogEmailBazRow this[int index] { + get { + return ((LogEmailBazRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event LogEmailBazRowChangeEventHandler LogEmailBazRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event LogEmailBazRowChangeEventHandler LogEmailBazRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event LogEmailBazRowChangeEventHandler LogEmailBazRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event LogEmailBazRowChangeEventHandler LogEmailBazRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddLogEmailBazRow(LogEmailBazRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public LogEmailBazRow AddLogEmailBazRow(int Anno, int Sett, System.DateTime DtLastSend, string SentBy) { + LogEmailBazRow rowLogEmailBazRow = ((LogEmailBazRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + Anno, + Sett, + DtLastSend, + SentBy}; + rowLogEmailBazRow.ItemArray = columnValuesArray; + this.Rows.Add(rowLogEmailBazRow); + return rowLogEmailBazRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public LogEmailBazRow FindByDtLastSendSettAnno(System.DateTime DtLastSend, int Sett, int Anno) { + return ((LogEmailBazRow)(this.Rows.Find(new object[] { + DtLastSend, + Sett, + Anno}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + LogEmailBazDataTable cln = ((LogEmailBazDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new LogEmailBazDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnAnno = base.Columns["Anno"]; + this.columnSett = base.Columns["Sett"]; + this.columnDtLastSend = base.Columns["DtLastSend"]; + this.columnSentBy = base.Columns["SentBy"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnAnno = new global::System.Data.DataColumn("Anno", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnAnno); + this.columnSett = new global::System.Data.DataColumn("Sett", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnSett); + this.columnDtLastSend = new global::System.Data.DataColumn("DtLastSend", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDtLastSend); + this.columnSentBy = new global::System.Data.DataColumn("SentBy", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnSentBy); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnDtLastSend, + this.columnSett, + this.columnAnno}, true)); + this.columnAnno.AllowDBNull = false; + this.columnSett.AllowDBNull = false; + this.columnDtLastSend.AllowDBNull = false; + this.columnSentBy.AllowDBNull = false; + this.columnSentBy.MaxLength = 250; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public LogEmailBazRow NewLogEmailBazRow() { + return ((LogEmailBazRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new LogEmailBazRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(LogEmailBazRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.LogEmailBazRowChanged != null)) { + this.LogEmailBazRowChanged(this, new LogEmailBazRowChangeEvent(((LogEmailBazRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.LogEmailBazRowChanging != null)) { + this.LogEmailBazRowChanging(this, new LogEmailBazRowChangeEvent(((LogEmailBazRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.LogEmailBazRowDeleted != null)) { + this.LogEmailBazRowDeleted(this, new LogEmailBazRowChangeEvent(((LogEmailBazRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.LogEmailBazRowDeleting != null)) { + this.LogEmailBazRowDeleting(this, new LogEmailBazRowChangeEvent(((LogEmailBazRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveLogEmailBazRow(LogEmailBazRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + Ds_ProjEts ds = new Ds_ProjEts(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "LogEmailBazDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + /// ///Represents strongly named DataRow class. /// @@ -13089,6 +13755,113 @@ namespace ETS_Data { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class TLockBazRARow : global::System.Data.DataRow { + + private TLockBazRADataTable tableTLockBazRA; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal TLockBazRARow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableTLockBazRA = ((TLockBazRADataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int idxDipendente { + get { + return ((int)(this[this.tableTLockBazRA.idxDipendenteColumn])); + } + set { + this[this.tableTLockBazRA.idxDipendenteColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime DtLock { + get { + return ((global::System.DateTime)(this[this.tableTLockBazRA.DtLockColumn])); + } + set { + this[this.tableTLockBazRA.DtLockColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string LockedBy { + get { + return ((string)(this[this.tableTLockBazRA.LockedByColumn])); + } + set { + this[this.tableTLockBazRA.LockedByColumn] = value; + } + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class LogEmailBazRow : global::System.Data.DataRow { + + private LogEmailBazDataTable tableLogEmailBaz; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal LogEmailBazRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableLogEmailBaz = ((LogEmailBazDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int Anno { + get { + return ((int)(this[this.tableLogEmailBaz.AnnoColumn])); + } + set { + this[this.tableLogEmailBaz.AnnoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int Sett { + get { + return ((int)(this[this.tableLogEmailBaz.SettColumn])); + } + set { + this[this.tableLogEmailBaz.SettColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime DtLastSend { + get { + return ((global::System.DateTime)(this[this.tableLogEmailBaz.DtLastSendColumn])); + } + set { + this[this.tableLogEmailBaz.DtLastSendColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string SentBy { + get { + return ((string)(this[this.tableLogEmailBaz.SentByColumn])); + } + set { + this[this.tableLogEmailBaz.SentByColumn] = value; + } + } + } + /// ///Row event argument class /// @@ -13666,6 +14439,74 @@ namespace ETS_Data { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class TLockBazRARowChangeEvent : global::System.EventArgs { + + private TLockBazRARow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TLockBazRARowChangeEvent(TLockBazRARow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TLockBazRARow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class LogEmailBazRowChangeEvent : global::System.EventArgs { + + private LogEmailBazRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public LogEmailBazRowChangeEvent(LogEmailBazRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public LogEmailBazRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } } } namespace ETS_Data.Ds_ProjEtsTableAdapters { @@ -20832,11 +21673,25 @@ SELECT CodLabel, DescrLabel FROM AnagLabels WHERE (CodLabel = @CodLabel)"; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "SELECT CodLabel, DescrLabel FROM dbo.AnagLabels"; this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_AL_DeleteQuery"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].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[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodLabel", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_AL_UpdateQuery"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].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[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodLabel", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrLabel", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodLabel", 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()] @@ -21014,6 +21869,76 @@ SELECT CodLabel, DescrLabel FROM AnagLabels WHERE (CodLabel = @CodLabel)"; public virtual int Update(string DescrLabel, string Original_CodLabel, string Original_DescrLabel) { return this.Update(Original_CodLabel, DescrLabel, Original_CodLabel, Original_DescrLabel); } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, false)] + public virtual int DeleteQuery(string Original_CodLabel) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1]; + if ((Original_CodLabel == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(Original_CodLabel)); + } + 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", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, false)] + public virtual int UpdateQuery(string CodLabel, string DescrLabel, string Original_CodLabel) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2]; + if ((CodLabel == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(CodLabel)); + } + if ((DescrLabel == null)) { + command.Parameters[2].Value = global::System.DBNull.Value; + } + else { + command.Parameters[2].Value = ((string)(DescrLabel)); + } + if ((Original_CodLabel == null)) { + command.Parameters[3].Value = global::System.DBNull.Value; + } + else { + command.Parameters[3].Value = ((string)(Original_CodLabel)); + } + 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; + } } /// @@ -21178,7 +22103,7 @@ SELECT CodLabel, DescrLabel FROM AnagLabels WHERE (CodLabel = @CodLabel)"; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[6]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "SELECT idxFase, CodLabel FROM dbo.LabelsComm"; @@ -21191,17 +22116,28 @@ SELECT CodLabel, DescrLabel FROM AnagLabels WHERE (CodLabel = @CodLabel)"; this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxFase", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[2].Connection = this.Connection; - this._commandCollection[2].CommandText = "dbo.stp_L2C_getByIdxFase"; + this._commandCollection[2].CommandText = "dbo.stp_L2C_getByCodLabel"; this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[2].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[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxFase", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodLabel", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[3].Connection = this.Connection; - this._commandCollection[3].CommandText = "dbo.stp_L2C_UpsertQuery"; + this._commandCollection[3].CommandText = "dbo.stp_L2C_getByIdxFase"; this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[3].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[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxFase", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodLabel", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[4].Connection = this.Connection; + this._commandCollection[4].CommandText = "dbo.stp_L2C_massRecalc"; + this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[4].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[5] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[5].Connection = this.Connection; + this._commandCollection[5].CommandText = "dbo.stp_L2C_UpsertQuery"; + this._commandCollection[5].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[5].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[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxFase", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodLabel", 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()] @@ -21232,8 +22168,25 @@ SELECT CodLabel, DescrLabel FROM AnagLabels WHERE (CodLabel = @CodLabel)"; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] - public virtual Ds_ProjEts.LabelsCommDataTable getByIdxFase(global::System.Nullable idxFase) { + public virtual Ds_ProjEts.LabelsCommDataTable getByCodLabel(string CodLabel) { this.Adapter.SelectCommand = this.CommandCollection[2]; + if ((CodLabel == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodLabel)); + } + Ds_ProjEts.LabelsCommDataTable dataTable = new Ds_ProjEts.LabelsCommDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual Ds_ProjEts.LabelsCommDataTable getByIdxFase(global::System.Nullable idxFase) { + this.Adapter.SelectCommand = this.CommandCollection[3]; if ((idxFase.HasValue == true)) { this.Adapter.SelectCommand.Parameters[1].Value = ((int)(idxFase.Value)); } @@ -21402,12 +22355,34 @@ SELECT CodLabel, DescrLabel FROM AnagLabels WHERE (CodLabel = @CodLabel)"; return returnValue; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int massRecalc() { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4]; + 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", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, false)] public virtual int UpsertQuery(global::System.Nullable idxFase, string CodLabel) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[5]; if ((idxFase.HasValue == true)) { command.Parameters[1].Value = ((int)(idxFase.Value)); } @@ -21438,6 +22413,838 @@ SELECT CodLabel, DescrLabel FROM AnagLabels WHERE (CodLabel = @CodLabel)"; } } + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class TLockBazRATableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TLockBazRATableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "TLockBazRA"; + tableMapping.ColumnMappings.Add("idxDipendente", "idxDipendente"); + tableMapping.ColumnMappings.Add("DtLock", "DtLock"); + tableMapping.ColumnMappings.Add("LockedBy", "LockedBy"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[TLockBazRA] WHERE (([idxDipendente] = @Original_idxDipendente)" + + " AND ([DtLock] = @Original_DtLock) AND ([LockedBy] = @Original_LockedBy))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxDipendente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxDipendente", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DtLock", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtLock", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_LockedBy", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LockedBy", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[TLockBazRA] ([idxDipendente], [DtLock], [LockedBy]) VALUES (@i" + + "dxDipendente, @DtLock, @LockedBy);\r\nSELECT idxDipendente, DtLock, LockedBy FROM " + + "TLockBazRA WHERE (idxDipendente = @idxDipendente)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxDipendente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxDipendente", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtLock", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtLock", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LockedBy", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LockedBy", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[TLockBazRA] SET [idxDipendente] = @idxDipendente, [DtLock] = @DtLock, [LockedBy] = @LockedBy WHERE (([idxDipendente] = @Original_idxDipendente) AND ([DtLock] = @Original_DtLock) AND ([LockedBy] = @Original_LockedBy)); +SELECT idxDipendente, DtLock, LockedBy FROM TLockBazRA WHERE (idxDipendente = @idxDipendente)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxDipendente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxDipendente", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtLock", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtLock", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LockedBy", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LockedBy", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxDipendente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxDipendente", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DtLock", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtLock", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_LockedBy", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LockedBy", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::ETS_Data.Properties.Settings.Default.ETS_PROJConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[5]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT idxDipendente, DtLock, LockedBy FROM dbo.TLockBazRA"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_TLB_getByDip"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].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[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxDipendente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_TLB_lockDip"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].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[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxDipendente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LockedBy", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[3].Connection = this.Connection; + this._commandCollection[3].CommandText = "dbo.stp_TLB_unlockDip"; + this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[3].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[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxDipendente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[4].Connection = this.Connection; + this._commandCollection[4].CommandText = "dbo.stp_TLB_unlockExpired"; + this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[4].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[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@expireMin", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(Ds_ProjEts.TLockBazRADataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual Ds_ProjEts.TLockBazRADataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + Ds_ProjEts.TLockBazRADataTable dataTable = new Ds_ProjEts.TLockBazRADataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual Ds_ProjEts.TLockBazRADataTable getByDip(global::System.Nullable idxDipendente) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((idxDipendente.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(idxDipendente.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + Ds_ProjEts.TLockBazRADataTable dataTable = new Ds_ProjEts.TLockBazRADataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(Ds_ProjEts.TLockBazRADataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(Ds_ProjEts dataSet) { + return this.Adapter.Update(dataSet, "TLockBazRA"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(int Original_idxDipendente, System.DateTime Original_DtLock, string Original_LockedBy) { + this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idxDipendente)); + this.Adapter.DeleteCommand.Parameters[1].Value = ((System.DateTime)(Original_DtLock)); + if ((Original_LockedBy == null)) { + throw new global::System.ArgumentNullException("Original_LockedBy"); + } + else { + this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_LockedBy)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(int idxDipendente, System.DateTime DtLock, string LockedBy) { + this.Adapter.InsertCommand.Parameters[0].Value = ((int)(idxDipendente)); + this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(DtLock)); + if ((LockedBy == null)) { + throw new global::System.ArgumentNullException("LockedBy"); + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = ((string)(LockedBy)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(int idxDipendente, System.DateTime DtLock, string LockedBy, int Original_idxDipendente, System.DateTime Original_DtLock, string Original_LockedBy) { + this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(idxDipendente)); + this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(DtLock)); + if ((LockedBy == null)) { + throw new global::System.ArgumentNullException("LockedBy"); + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(LockedBy)); + } + this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_idxDipendente)); + this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(Original_DtLock)); + if ((Original_LockedBy == null)) { + throw new global::System.ArgumentNullException("Original_LockedBy"); + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_LockedBy)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(System.DateTime DtLock, string LockedBy, int Original_idxDipendente, System.DateTime Original_DtLock, string Original_LockedBy) { + return this.Update(Original_idxDipendente, DtLock, LockedBy, Original_idxDipendente, Original_DtLock, Original_LockedBy); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int lockDip(global::System.Nullable idxDipendente, string LockedBy) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2]; + if ((idxDipendente.HasValue == true)) { + command.Parameters[1].Value = ((int)(idxDipendente.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + if ((LockedBy == null)) { + command.Parameters[2].Value = global::System.DBNull.Value; + } + else { + command.Parameters[2].Value = ((string)(LockedBy)); + } + 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", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int unlockDip(global::System.Nullable idxDipendente) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3]; + if ((idxDipendente.HasValue == true)) { + command.Parameters[1].Value = ((int)(idxDipendente.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + 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", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, false)] + public virtual int unlockExpired(global::System.Nullable expireMin) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4]; + if ((expireMin.HasValue == true)) { + command.Parameters[1].Value = ((int)(expireMin.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + 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; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class LogEmailBazTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public LogEmailBazTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "LogEmailBaz"; + tableMapping.ColumnMappings.Add("Anno", "Anno"); + tableMapping.ColumnMappings.Add("Sett", "Sett"); + tableMapping.ColumnMappings.Add("DtLastSend", "DtLastSend"); + tableMapping.ColumnMappings.Add("SentBy", "SentBy"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[LogEmailBaz] WHERE (([Anno] = @Original_Anno) AND ([Sett] = @O" + + "riginal_Sett) AND ([DtLastSend] = @Original_DtLastSend) AND ([SentBy] = @Origina" + + "l_SentBy))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Anno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Anno", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Sett", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Sett", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DtLastSend", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtLastSend", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SentBy", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SentBy", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[LogEmailBaz] ([Anno], [Sett], [DtLastSend], [SentBy]) VALUES (" + + "@Anno, @Sett, @DtLastSend, @SentBy);\r\nSELECT Anno, Sett, DtLastSend, SentBy FROM" + + " LogEmailBaz WHERE (Anno = @Anno) AND (DtLastSend = @DtLastSend) AND (Sett = @Se" + + "tt)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Anno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Anno", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Sett", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Sett", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtLastSend", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtLastSend", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SentBy", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SentBy", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[LogEmailBaz] SET [Anno] = @Anno, [Sett] = @Sett, [DtLastSend] = @DtLastSend, [SentBy] = @SentBy WHERE (([Anno] = @Original_Anno) AND ([Sett] = @Original_Sett) AND ([DtLastSend] = @Original_DtLastSend) AND ([SentBy] = @Original_SentBy)); +SELECT Anno, Sett, DtLastSend, SentBy FROM LogEmailBaz WHERE (Anno = @Anno) AND (DtLastSend = @DtLastSend) AND (Sett = @Sett)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Anno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Anno", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Sett", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Sett", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtLastSend", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtLastSend", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SentBy", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SentBy", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Anno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Anno", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Sett", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Sett", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DtLastSend", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtLastSend", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SentBy", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SentBy", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::ETS_Data.Properties.Settings.Default.ETS_PROJConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT Anno, Sett, DtLastSend, SentBy FROM dbo.LogEmailBaz"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_LEB_getByWeek"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].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[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@anno", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sett", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(Ds_ProjEts.LogEmailBazDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual Ds_ProjEts.LogEmailBazDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + Ds_ProjEts.LogEmailBazDataTable dataTable = new Ds_ProjEts.LogEmailBazDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual Ds_ProjEts.LogEmailBazDataTable getByWeek(global::System.Nullable anno, global::System.Nullable sett) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((anno.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(anno.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((sett.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((int)(sett.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + Ds_ProjEts.LogEmailBazDataTable dataTable = new Ds_ProjEts.LogEmailBazDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(Ds_ProjEts.LogEmailBazDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(Ds_ProjEts dataSet) { + return this.Adapter.Update(dataSet, "LogEmailBaz"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(int Original_Anno, int Original_Sett, System.DateTime Original_DtLastSend, string Original_SentBy) { + this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Anno)); + this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_Sett)); + this.Adapter.DeleteCommand.Parameters[2].Value = ((System.DateTime)(Original_DtLastSend)); + if ((Original_SentBy == null)) { + throw new global::System.ArgumentNullException("Original_SentBy"); + } + else { + this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_SentBy)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(int Anno, int Sett, System.DateTime DtLastSend, string SentBy) { + this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Anno)); + this.Adapter.InsertCommand.Parameters[1].Value = ((int)(Sett)); + this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(DtLastSend)); + if ((SentBy == null)) { + throw new global::System.ArgumentNullException("SentBy"); + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = ((string)(SentBy)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(int Anno, int Sett, System.DateTime DtLastSend, string SentBy, int Original_Anno, int Original_Sett, System.DateTime Original_DtLastSend, string Original_SentBy) { + this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(Anno)); + this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Sett)); + this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(DtLastSend)); + if ((SentBy == null)) { + throw new global::System.ArgumentNullException("SentBy"); + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(SentBy)); + } + this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_Anno)); + this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_Sett)); + this.Adapter.UpdateCommand.Parameters[6].Value = ((System.DateTime)(Original_DtLastSend)); + if ((Original_SentBy == null)) { + throw new global::System.ArgumentNullException("Original_SentBy"); + } + else { + this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_SentBy)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string SentBy, int Original_Anno, int Original_Sett, System.DateTime Original_DtLastSend, string Original_SentBy) { + return this.Update(Original_Anno, Original_Sett, Original_DtLastSend, SentBy, Original_Anno, Original_Sett, Original_DtLastSend, Original_SentBy); + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// @@ -21476,6 +23283,10 @@ SELECT CodLabel, DescrLabel FROM AnagLabels WHERE (CodLabel = @CodLabel)"; private LabelsCommTableAdapter _labelsCommTableAdapter; + private TLockBazRATableAdapter _tLockBazRATableAdapter; + + private LogEmailBazTableAdapter _logEmailBazTableAdapter; + private bool _backupDataSetBeforeUpdate; private global::System.Data.IDbConnection _connection; @@ -21673,6 +23484,34 @@ SELECT CodLabel, DescrLabel FROM AnagLabels WHERE (CodLabel = @CodLabel)"; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + + "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + + "a", "System.Drawing.Design.UITypeEditor")] + public TLockBazRATableAdapter TLockBazRATableAdapter { + get { + return this._tLockBazRATableAdapter; + } + set { + this._tLockBazRATableAdapter = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + + "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + + "a", "System.Drawing.Design.UITypeEditor")] + public LogEmailBazTableAdapter LogEmailBazTableAdapter { + get { + return this._logEmailBazTableAdapter; + } + set { + this._logEmailBazTableAdapter = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool BackupDataSetBeforeUpdate { @@ -21744,6 +23583,14 @@ SELECT CodLabel, DescrLabel FROM AnagLabels WHERE (CodLabel = @CodLabel)"; && (this._labelsCommTableAdapter.Connection != null))) { return this._labelsCommTableAdapter.Connection; } + if (((this._tLockBazRATableAdapter != null) + && (this._tLockBazRATableAdapter.Connection != null))) { + return this._tLockBazRATableAdapter.Connection; + } + if (((this._logEmailBazTableAdapter != null) + && (this._logEmailBazTableAdapter.Connection != null))) { + return this._logEmailBazTableAdapter.Connection; + } return null; } set { @@ -21796,6 +23643,12 @@ SELECT CodLabel, DescrLabel FROM AnagLabels WHERE (CodLabel = @CodLabel)"; if ((this._labelsCommTableAdapter != null)) { count = (count + 1); } + if ((this._tLockBazRATableAdapter != null)) { + count = (count + 1); + } + if ((this._logEmailBazTableAdapter != null)) { + count = (count + 1); + } return count; } } @@ -21825,6 +23678,15 @@ SELECT CodLabel, DescrLabel FROM AnagLabels WHERE (CodLabel = @CodLabel)"; allChangedRows.AddRange(updatedRows); } } + if ((this._anagFasiTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.AnagFasi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._anagFasiTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } if ((this._anagLabelsTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.AnagLabels.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -21843,57 +23705,12 @@ SELECT CodLabel, DescrLabel FROM AnagLabels WHERE (CodLabel = @CodLabel)"; allChangedRows.AddRange(updatedRows); } } - if ((this._anagFasiTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.AnagFasi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + if ((this._labelsCommTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.LabelsComm.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); if (((updatedRows != null) && (0 < updatedRows.Length))) { - result = (result + this._anagFasiTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } - if ((this._datiCommIntegTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.DatiCommInteg.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._datiCommIntegTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } - if ((this._bdgtRisorseFasiTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.BdgtRisorseFasi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._bdgtRisorseFasiTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } - if ((this._dip2ATRTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.Dip2ATR.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._dip2ATRTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } - if ((this._bazaarRisorseTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.BazaarRisorse.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._bazaarRisorseTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } - if ((this._impiegoRisorseTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.ImpiegoRisorse.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._impiegoRisorseTableAdapter.Update(updatedRows)); + result = (result + this._labelsCommTableAdapter.Update(updatedRows)); allChangedRows.AddRange(updatedRows); } } @@ -21906,6 +23723,60 @@ SELECT CodLabel, DescrLabel FROM AnagLabels WHERE (CodLabel = @CodLabel)"; allChangedRows.AddRange(updatedRows); } } + if ((this._impiegoRisorseTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.ImpiegoRisorse.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._impiegoRisorseTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + if ((this._bazaarRisorseTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.BazaarRisorse.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._bazaarRisorseTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + if ((this._dip2ATRTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.Dip2ATR.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._dip2ATRTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + if ((this._tLockBazRATableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.TLockBazRA.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._tLockBazRATableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + if ((this._bdgtRisorseFasiTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.BdgtRisorseFasi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._bdgtRisorseFasiTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + if ((this._datiCommIntegTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.DatiCommInteg.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._datiCommIntegTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } if ((this._datiCommFornTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.DatiCommForn.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -21915,12 +23786,12 @@ SELECT CodLabel, DescrLabel FROM AnagLabels WHERE (CodLabel = @CodLabel)"; allChangedRows.AddRange(updatedRows); } } - if ((this._labelsCommTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.LabelsComm.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + if ((this._logEmailBazTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.LogEmailBaz.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); if (((updatedRows != null) && (0 < updatedRows.Length))) { - result = (result + this._labelsCommTableAdapter.Update(updatedRows)); + result = (result + this._logEmailBazTableAdapter.Update(updatedRows)); allChangedRows.AddRange(updatedRows); } } @@ -21950,6 +23821,14 @@ SELECT CodLabel, DescrLabel FROM AnagLabels WHERE (CodLabel = @CodLabel)"; allAddedRows.AddRange(addedRows); } } + if ((this._anagFasiTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.AnagFasi.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._anagFasiTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } if ((this._anagLabelsTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.AnagLabels.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -21966,51 +23845,11 @@ SELECT CodLabel, DescrLabel FROM AnagLabels WHERE (CodLabel = @CodLabel)"; allAddedRows.AddRange(addedRows); } } - if ((this._anagFasiTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.AnagFasi.Select(null, null, global::System.Data.DataViewRowState.Added); + if ((this._labelsCommTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.LabelsComm.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) && (0 < addedRows.Length))) { - result = (result + this._anagFasiTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } - if ((this._datiCommIntegTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.DatiCommInteg.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._datiCommIntegTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } - if ((this._bdgtRisorseFasiTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.BdgtRisorseFasi.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._bdgtRisorseFasiTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } - if ((this._dip2ATRTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.Dip2ATR.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._dip2ATRTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } - if ((this._bazaarRisorseTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.BazaarRisorse.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._bazaarRisorseTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } - if ((this._impiegoRisorseTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.ImpiegoRisorse.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._impiegoRisorseTableAdapter.Update(addedRows)); + result = (result + this._labelsCommTableAdapter.Update(addedRows)); allAddedRows.AddRange(addedRows); } } @@ -22022,6 +23861,54 @@ SELECT CodLabel, DescrLabel FROM AnagLabels WHERE (CodLabel = @CodLabel)"; allAddedRows.AddRange(addedRows); } } + if ((this._impiegoRisorseTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.ImpiegoRisorse.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._impiegoRisorseTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + if ((this._bazaarRisorseTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.BazaarRisorse.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._bazaarRisorseTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + if ((this._dip2ATRTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.Dip2ATR.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._dip2ATRTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + if ((this._tLockBazRATableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.TLockBazRA.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._tLockBazRATableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + if ((this._bdgtRisorseFasiTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.BdgtRisorseFasi.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._bdgtRisorseFasiTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + if ((this._datiCommIntegTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.DatiCommInteg.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._datiCommIntegTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } if ((this._datiCommFornTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.DatiCommForn.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -22030,11 +23917,11 @@ SELECT CodLabel, DescrLabel FROM AnagLabels WHERE (CodLabel = @CodLabel)"; allAddedRows.AddRange(addedRows); } } - if ((this._labelsCommTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.LabelsComm.Select(null, null, global::System.Data.DataViewRowState.Added); + if ((this._logEmailBazTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.LogEmailBaz.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) && (0 < addedRows.Length))) { - result = (result + this._labelsCommTableAdapter.Update(addedRows)); + result = (result + this._logEmailBazTableAdapter.Update(addedRows)); allAddedRows.AddRange(addedRows); } } @@ -22048,11 +23935,11 @@ SELECT CodLabel, DescrLabel FROM AnagLabels WHERE (CodLabel = @CodLabel)"; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private int UpdateDeletedRows(Ds_ProjEts dataSet, global::System.Collections.Generic.List allChangedRows) { int result = 0; - if ((this._labelsCommTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.LabelsComm.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if ((this._logEmailBazTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.LogEmailBaz.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) && (0 < deletedRows.Length))) { - result = (result + this._labelsCommTableAdapter.Update(deletedRows)); + result = (result + this._logEmailBazTableAdapter.Update(deletedRows)); allChangedRows.AddRange(deletedRows); } } @@ -22064,35 +23951,11 @@ SELECT CodLabel, DescrLabel FROM AnagLabels WHERE (CodLabel = @CodLabel)"; allChangedRows.AddRange(deletedRows); } } - if ((this._releasedWeekTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.ReleasedWeek.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if ((this._datiCommIntegTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.DatiCommInteg.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) && (0 < deletedRows.Length))) { - result = (result + this._releasedWeekTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } - if ((this._impiegoRisorseTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.ImpiegoRisorse.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._impiegoRisorseTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } - if ((this._bazaarRisorseTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.BazaarRisorse.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._bazaarRisorseTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } - if ((this._dip2ATRTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.Dip2ATR.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._dip2ATRTableAdapter.Update(deletedRows)); + result = (result + this._datiCommIntegTableAdapter.Update(deletedRows)); allChangedRows.AddRange(deletedRows); } } @@ -22104,19 +23967,51 @@ SELECT CodLabel, DescrLabel FROM AnagLabels WHERE (CodLabel = @CodLabel)"; allChangedRows.AddRange(deletedRows); } } - if ((this._datiCommIntegTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.DatiCommInteg.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if ((this._tLockBazRATableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.TLockBazRA.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) && (0 < deletedRows.Length))) { - result = (result + this._datiCommIntegTableAdapter.Update(deletedRows)); + result = (result + this._tLockBazRATableAdapter.Update(deletedRows)); allChangedRows.AddRange(deletedRows); } } - if ((this._anagFasiTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.AnagFasi.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if ((this._dip2ATRTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.Dip2ATR.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) && (0 < deletedRows.Length))) { - result = (result + this._anagFasiTableAdapter.Update(deletedRows)); + result = (result + this._dip2ATRTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + if ((this._bazaarRisorseTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.BazaarRisorse.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._bazaarRisorseTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + if ((this._impiegoRisorseTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.ImpiegoRisorse.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._impiegoRisorseTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + if ((this._releasedWeekTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.ReleasedWeek.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._releasedWeekTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + if ((this._labelsCommTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.LabelsComm.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._labelsCommTableAdapter.Update(deletedRows)); allChangedRows.AddRange(deletedRows); } } @@ -22136,6 +24031,14 @@ SELECT CodLabel, DescrLabel FROM AnagLabels WHERE (CodLabel = @CodLabel)"; allChangedRows.AddRange(deletedRows); } } + if ((this._anagFasiTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.AnagFasi.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._anagFasiTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } if ((this._datiCommessaTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.DatiCommessa.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -22256,6 +24159,16 @@ SELECT CodLabel, DescrLabel FROM AnagLabels WHERE (CodLabel = @CodLabel)"; throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + "tring."); } + if (((this._tLockBazRATableAdapter != null) + && (this.MatchTableAdapterConnection(this._tLockBazRATableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + + "tring."); + } + if (((this._logEmailBazTableAdapter != null) + && (this.MatchTableAdapterConnection(this._logEmailBazTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + + "tring."); + } global::System.Data.IDbConnection workConnection = this.Connection; if ((workConnection == null)) { throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" + @@ -22405,6 +24318,24 @@ SELECT CodLabel, DescrLabel FROM AnagLabels WHERE (CodLabel = @CodLabel)"; adaptersWithAcceptChangesDuringUpdate.Add(this._labelsCommTableAdapter.Adapter); } } + if ((this._tLockBazRATableAdapter != null)) { + revertConnections.Add(this._tLockBazRATableAdapter, this._tLockBazRATableAdapter.Connection); + this._tLockBazRATableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._tLockBazRATableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._tLockBazRATableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._tLockBazRATableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._tLockBazRATableAdapter.Adapter); + } + } + if ((this._logEmailBazTableAdapter != null)) { + revertConnections.Add(this._logEmailBazTableAdapter, this._logEmailBazTableAdapter.Connection); + this._logEmailBazTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._logEmailBazTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._logEmailBazTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._logEmailBazTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._logEmailBazTableAdapter.Adapter); + } + } // //---- Perform updates ----------- // @@ -22515,6 +24446,14 @@ SELECT CodLabel, DescrLabel FROM AnagLabels WHERE (CodLabel = @CodLabel)"; this._labelsCommTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._labelsCommTableAdapter])); this._labelsCommTableAdapter.Transaction = null; } + if ((this._tLockBazRATableAdapter != null)) { + this._tLockBazRATableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tLockBazRATableAdapter])); + this._tLockBazRATableAdapter.Transaction = null; + } + if ((this._logEmailBazTableAdapter != null)) { + this._logEmailBazTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._logEmailBazTableAdapter])); + this._logEmailBazTableAdapter.Transaction = null; + } if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) { global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count]; adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters); diff --git a/ETS_Data/Ds_ProjEts.cs b/ETS_Data/Ds_ProjEts.cs index ecb40d3..57d033a 100644 --- a/ETS_Data/Ds_ProjEts.cs +++ b/ETS_Data/Ds_ProjEts.cs @@ -12,3 +12,10 @@ namespace ETS_Data { public partial class Ds_ProjEts { } } + +namespace ETS_Data.Ds_ProjEtsTableAdapters { + + + public partial class LabelsCommTableAdapter { + } +} diff --git a/ETS_Data/Ds_ProjEts.xsd b/ETS_Data/Ds_ProjEts.xsd index ecdf584..2c266d3 100644 --- a/ETS_Data/Ds_ProjEts.xsd +++ b/ETS_Data/Ds_ProjEts.xsd @@ -1554,7 +1554,32 @@ SELECT CodLabel, DescrLabel FROM AnagLabels WHERE (CodLabel = @CodLabel) - + + + + + dbo.stp_AL_DeleteQuery + + + + + + + + + + + dbo.stp_AL_UpdateQuery + + + + + + + + + + @@ -1614,6 +1639,17 @@ SELECT idxFase, CodLabel FROM LabelsComm WHERE (CodLabel = @CodLabel) AND (idxFa + + + + dbo.stp_L2C_getByCodLabel + + + + + + + @@ -1625,6 +1661,16 @@ SELECT idxFase, CodLabel FROM LabelsComm WHERE (CodLabel = @CodLabel) AND (idxFa + + + + dbo.stp_L2C_massRecalc + + + + + + @@ -1639,6 +1685,176 @@ SELECT idxFase, CodLabel FROM LabelsComm WHERE (CodLabel = @CodLabel) AND (idxFa + + + + + + DELETE FROM [dbo].[TLockBazRA] WHERE (([idxDipendente] = @Original_idxDipendente) AND ([DtLock] = @Original_DtLock) AND ([LockedBy] = @Original_LockedBy)) + + + + + + + + + + INSERT INTO [dbo].[TLockBazRA] ([idxDipendente], [DtLock], [LockedBy]) VALUES (@idxDipendente, @DtLock, @LockedBy); +SELECT idxDipendente, DtLock, LockedBy FROM TLockBazRA WHERE (idxDipendente = @idxDipendente) + + + + + + + + + + SELECT idxDipendente, DtLock, LockedBy FROM dbo.TLockBazRA + + + + + + UPDATE [dbo].[TLockBazRA] SET [idxDipendente] = @idxDipendente, [DtLock] = @DtLock, [LockedBy] = @LockedBy WHERE (([idxDipendente] = @Original_idxDipendente) AND ([DtLock] = @Original_DtLock) AND ([LockedBy] = @Original_LockedBy)); +SELECT idxDipendente, DtLock, LockedBy FROM TLockBazRA WHERE (idxDipendente = @idxDipendente) + + + + + + + + + + + + + + + + + + + + + + dbo.stp_TLB_getByDip + + + + + + + + + + + dbo.stp_TLB_lockDip + + + + + + + + + + + + dbo.stp_TLB_unlockDip + + + + + + + + + + + dbo.stp_TLB_unlockExpired + + + + + + + + + + + + + + + DELETE FROM [dbo].[LogEmailBaz] WHERE (([Anno] = @Original_Anno) AND ([Sett] = @Original_Sett) AND ([DtLastSend] = @Original_DtLastSend) AND ([SentBy] = @Original_SentBy)) + + + + + + + + + + + INSERT INTO [dbo].[LogEmailBaz] ([Anno], [Sett], [DtLastSend], [SentBy]) VALUES (@Anno, @Sett, @DtLastSend, @SentBy); +SELECT Anno, Sett, DtLastSend, SentBy FROM LogEmailBaz WHERE (Anno = @Anno) AND (DtLastSend = @DtLastSend) AND (Sett = @Sett) + + + + + + + + + + + SELECT Anno, Sett, DtLastSend, SentBy FROM dbo.LogEmailBaz + + + + + + UPDATE [dbo].[LogEmailBaz] SET [Anno] = @Anno, [Sett] = @Sett, [DtLastSend] = @DtLastSend, [SentBy] = @SentBy WHERE (([Anno] = @Original_Anno) AND ([Sett] = @Original_Sett) AND ([DtLastSend] = @Original_DtLastSend) AND ([SentBy] = @Original_SentBy)); +SELECT Anno, Sett, DtLastSend, SentBy FROM LogEmailBaz WHERE (Anno = @Anno) AND (DtLastSend = @DtLastSend) AND (Sett = @Sett) + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_LEB_getByWeek + + + + + + + + + + @@ -1647,7 +1863,7 @@ SELECT idxFase, CodLabel FROM LabelsComm WHERE (CodLabel = @CodLabel) AND (idxFa - + @@ -1690,7 +1906,7 @@ SELECT idxFase, CodLabel FROM LabelsComm WHERE (CodLabel = @CodLabel) AND (idxFa - + @@ -1740,7 +1956,7 @@ SELECT idxFase, CodLabel FROM LabelsComm WHERE (CodLabel = @CodLabel) AND (idxFa - + @@ -1836,7 +2052,7 @@ SELECT idxFase, CodLabel FROM LabelsComm WHERE (CodLabel = @CodLabel) AND (idxFa - + @@ -1887,7 +2103,7 @@ SELECT idxFase, CodLabel FROM LabelsComm WHERE (CodLabel = @CodLabel) AND (idxFa - + @@ -1939,7 +2155,7 @@ SELECT idxFase, CodLabel FROM LabelsComm WHERE (CodLabel = @CodLabel) AND (idxFa - + @@ -2042,7 +2258,7 @@ SELECT idxFase, CodLabel FROM LabelsComm WHERE (CodLabel = @CodLabel) AND (idxFa - + @@ -2090,7 +2306,7 @@ SELECT idxFase, CodLabel FROM LabelsComm WHERE (CodLabel = @CodLabel) AND (idxFa - + @@ -2107,7 +2323,7 @@ SELECT idxFase, CodLabel FROM LabelsComm WHERE (CodLabel = @CodLabel) AND (idxFa - + @@ -2128,7 +2344,7 @@ SELECT idxFase, CodLabel FROM LabelsComm WHERE (CodLabel = @CodLabel) AND (idxFa - + @@ -2149,7 +2365,7 @@ SELECT idxFase, CodLabel FROM LabelsComm WHERE (CodLabel = @CodLabel) AND (idxFa - + @@ -2284,7 +2500,7 @@ SELECT idxFase, CodLabel FROM LabelsComm WHERE (CodLabel = @CodLabel) AND (idxFa - + @@ -2303,7 +2519,7 @@ SELECT idxFase, CodLabel FROM LabelsComm WHERE (CodLabel = @CodLabel) AND (idxFa - + @@ -2314,7 +2530,7 @@ SELECT idxFase, CodLabel FROM LabelsComm WHERE (CodLabel = @CodLabel) AND (idxFa - + @@ -2330,7 +2546,7 @@ SELECT idxFase, CodLabel FROM LabelsComm WHERE (CodLabel = @CodLabel) AND (idxFa - + @@ -2359,7 +2575,7 @@ SELECT idxFase, CodLabel FROM LabelsComm WHERE (CodLabel = @CodLabel) AND (idxFa - + @@ -2379,7 +2595,7 @@ SELECT idxFase, CodLabel FROM LabelsComm WHERE (CodLabel = @CodLabel) AND (idxFa - + @@ -2393,6 +2609,37 @@ SELECT idxFase, CodLabel FROM LabelsComm WHERE (CodLabel = @CodLabel) AND (idxFa + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2473,16 +2720,26 @@ SELECT idxFase, CodLabel FROM LabelsComm WHERE (CodLabel = @CodLabel) AND (idxFa + + + + + + + + + + - - - - - - - + + + + + + + \ No newline at end of file diff --git a/ETS_Data/Ds_ProjEts.xss b/ETS_Data/Ds_ProjEts.xss index 9c319c6..999dec8 100644 --- a/ETS_Data/Ds_ProjEts.xss +++ b/ETS_Data/Ds_ProjEts.xss @@ -4,28 +4,30 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - + 370 @@ -37,7 +39,7 @@ - + 876 @@ -49,7 +51,7 @@ - + 1107 @@ -61,7 +63,7 @@ - + 1107 @@ -81,23 +83,23 @@ - + 495 91 - 403 + 458 91 - 403 - 679 + 458 + 667 - + 172 @@ -105,23 +107,23 @@ 172 - 826 + 747 - 235 - 826 + 290 + 747 - + - 1259 - 773 + 1298 + 811 - 1259 - 813 + 1298 + 841 diff --git a/ETS_Data/bin/ETS/ETS_Data.dll b/ETS_Data/bin/ETS/ETS_Data.dll index 2567090..1e78c55 100644 Binary files a/ETS_Data/bin/ETS/ETS_Data.dll and b/ETS_Data/bin/ETS/ETS_Data.dll differ diff --git a/ETS_Data/bin/Release/ETS_Data.dll b/ETS_Data/bin/Release/ETS_Data.dll index 799076d..9f2a23b 100644 Binary files a/ETS_Data/bin/Release/ETS_Data.dll and b/ETS_Data/bin/Release/ETS_Data.dll differ diff --git a/ETS_Data/obj/Debug/TempPE/Ds_ProjEts.Designer.cs.dll b/ETS_Data/obj/Debug/TempPE/Ds_ProjEts.Designer.cs.dll index 17ed184..86d6850 100644 Binary files a/ETS_Data/obj/Debug/TempPE/Ds_ProjEts.Designer.cs.dll and b/ETS_Data/obj/Debug/TempPE/Ds_ProjEts.Designer.cs.dll differ diff --git a/ETS_Data/obj/ETS/DesignTimeResolveAssemblyReferences.cache b/ETS_Data/obj/ETS/DesignTimeResolveAssemblyReferences.cache index 8dde906..9745ea8 100644 Binary files a/ETS_Data/obj/ETS/DesignTimeResolveAssemblyReferences.cache and b/ETS_Data/obj/ETS/DesignTimeResolveAssemblyReferences.cache differ diff --git a/ETS_Data/obj/ETS/ETS_Data.csprojResolveAssemblyReference.cache b/ETS_Data/obj/ETS/ETS_Data.csprojResolveAssemblyReference.cache index deff4e9..2dd1e8d 100644 Binary files a/ETS_Data/obj/ETS/ETS_Data.csprojResolveAssemblyReference.cache and b/ETS_Data/obj/ETS/ETS_Data.csprojResolveAssemblyReference.cache differ diff --git a/ETS_Data/obj/ETS/ETS_Data.dll b/ETS_Data/obj/ETS/ETS_Data.dll index 2567090..1e78c55 100644 Binary files a/ETS_Data/obj/ETS/ETS_Data.dll and b/ETS_Data/obj/ETS/ETS_Data.dll differ diff --git a/ETS_Data/obj/ETS/TempPE/Ds_ProjEts.Designer.cs.dll b/ETS_Data/obj/ETS/TempPE/Ds_ProjEts.Designer.cs.dll index 4816a0e..0a0963e 100644 Binary files a/ETS_Data/obj/ETS/TempPE/Ds_ProjEts.Designer.cs.dll and b/ETS_Data/obj/ETS/TempPE/Ds_ProjEts.Designer.cs.dll differ diff --git a/ETS_Data/utils.cs b/ETS_Data/utils.cs index a136a56..bcf43ce 100644 --- a/ETS_Data/utils.cs +++ b/ETS_Data/utils.cs @@ -515,6 +515,76 @@ namespace ETS_Data #endregion + + #region querystring + + /// + /// recupera valore querystring STRING + /// + /// + /// valore string + public string QSS(string nome) + { + string answ = ""; + try + { + answ = HttpContext.Current.Request.QueryString[nome].ToString().Trim(); + } + catch + { } + return answ; + } + /// + /// recupera valore querystring INT + /// + /// + /// valore INT + public int QSI(string nome) + { + int answ = 0; + try + { + answ = Convert.ToInt32(HttpContext.Current.Request.QueryString[nome]); + } + catch + { } + return answ; + } + /// + /// recupera valore querystring BOOL + /// + /// + /// valore string + public bool QSB(string nome) + { + bool answ = false; + try + { + answ = Convert.ToBoolean(HttpContext.Current.Request.QueryString[nome]); + } + catch + { } + return answ; + } + /// + /// recupera valore querystring DATE + /// + /// + /// valore DATE + public DateTime QSD(string nome) + { + DateTime answ = DateTime.Now; + try + { + answ = Convert.ToDateTime(HttpContext.Current.Request.QueryString[nome]); + } + catch + { } + return answ; + } + + #endregion + #region area varie /// @@ -601,7 +671,7 @@ namespace ETS_Data /// /// /// - public string trimChar(object stringaIn, object maxChar) + public static string trimChar(object stringaIn, object maxChar) { string answ = ""; int maxNum = 0; @@ -651,6 +721,88 @@ namespace ETS_Data } } #endregion + + #region gestione ruoli utente... + + /// + /// risponde alla domanda se l'utente sia PowerUser + /// + /// + public bool isPowerUser + { + get + { + return user_std.UtSn.userHasRight("PowerUser"); + } + } + /// + /// risponde alla domanda se l'utente sia PowerReader + /// + /// + public bool isPowerReader + { + get + { + return user_std.UtSn.userHasRight("PowerReader"); + } + } + /// + /// risponde alla domanda se l'utente sia ProjectManager + /// + /// + public bool isPM + { + get + { + return user_std.UtSn.userHasRight("PM"); + } + } + /// + /// risponde alla domanda se l'utente sia CapoCommessa + /// + /// + public bool isCC + { + get + { + return user_std.UtSn.userHasRight("CC"); + } + } + /// + /// risponde alla domanda se l'utente sia User + /// + /// + public bool isUser + { + get + { + return user_std.UtSn.userHasRight("User"); + } + } + /// + /// risponde alla domanda se l'utente sia CC della commessa indicata dalla fase + /// + /// + /// + public bool isCurrentCC(int idxFase) + { + bool answ = false; + string CapoCommessa = ""; + try + { + CapoCommessa = DataProxy_ProjEts.DP.taDC.GetData(idxFase)[0].CapoCommessa; + } + catch + { } + if (user_std.UtSn.NomeCognome == CapoCommessa || user_std.UtSn.CognomeNome == CapoCommessa) + { + answ = true; + } + return answ; + } + + #endregion + } /// /// definisce un intervalo di 2 date @@ -965,5 +1117,28 @@ namespace ETS_Data var day = (int)CultureInfo.CurrentCulture.Calendar.GetDayOfWeek(date); return CultureInfo.CurrentCulture.Calendar.GetWeekOfYear(date.AddDays(4 - (day == 0 ? 7 : day)), CalendarWeekRule.FirstFourDayWeek, DayOfWeek.Monday); } + /// + /// restituisce la prima data della settimana richiesta + /// + /// + /// + /// + public static DateTime FirstDateOfWeekISO8601(int year, int weekOfYear) + { + DateTime jan1 = new DateTime(year, 1, 1); + int daysOffset = DayOfWeek.Thursday - jan1.DayOfWeek; + + DateTime firstThursday = jan1.AddDays(daysOffset); + var cal = CultureInfo.CurrentCulture.Calendar; + int firstWeek = cal.GetWeekOfYear(firstThursday, CalendarWeekRule.FirstFourDayWeek, DayOfWeek.Monday); + + var weekNum = weekOfYear; + if (firstWeek <= 1) + { + weekNum -= 1; + } + var result = firstThursday.AddDays(weekNum * 7); + return result.AddDays(-3); + } } } diff --git a/PROJ-ETS/PROJ-ETS/Bundle.config b/PROJ-ETS/PROJ-ETS/Bundle.config index 3cf3ef2..a4eec9d 100644 --- a/PROJ-ETS/PROJ-ETS/Bundle.config +++ b/PROJ-ETS/PROJ-ETS/Bundle.config @@ -6,7 +6,8 @@ - + + diff --git a/PROJ-ETS/PROJ-ETS/Content/Style.css b/PROJ-ETS/PROJ-ETS/Content/Style.css index aada023..c5e850a 100644 --- a/PROJ-ETS/PROJ-ETS/Content/Style.css +++ b/PROJ-ETS/PROJ-ETS/Content/Style.css @@ -163,22 +163,22 @@ q { } /*#region area comp Extra */ /* floating window */ -.ui-dialog-sw { +.ui-dialog { padding: .2em; overflow: hidden; -moz-box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.8); -webkit-box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.8); box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.8); } -.ui-dialog-sw .ui-dialog-sw-titlebar { +.ui-dialog .ui-dialog-titlebar { padding: .5em 1em .3em; position: relative; } -.ui-dialog-sw .ui-dialog-sw-title { +.ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .2em 0; } -.ui-dialog-sw .ui-dialog-sw-titlebar-close { +.ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; @@ -188,15 +188,15 @@ q { height: 18px; -moz-border-radius: 10px; } -.ui-dialog-sw .ui-dialog-sw-titlebar-close span { +.ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; } -.ui-dialog-sw .ui-dialog-sw-titlebar-close:hover, -.ui-dialog-sw .ui-dialog-sw-titlebar-close:focus { +.ui-dialog .ui-dialog-titlebar-close:hover, +.ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; } -.ui-dialog-sw .ui-dialog-sw-content { +.ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; @@ -204,33 +204,33 @@ q { overflow: auto; zoom: 1; } -.ui-dialog-sw .ui-dialog-sw-buttonpane { +.ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; } -.ui-dialog-sw .ui-dialog-sw-buttonpane .ui-dialog-sw-buttonset { +.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { float: right; } -.ui-dialog-sw .ui-dialog-sw-buttonpane button { +.ui-dialog .ui-dialog-buttonpane button { margin: .5em .4em .5em 0; cursor: pointer; } -.ui-dialog-sw .ui-resizable-se { +.ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; } -.ui-draggable .ui-dialog-sw-titlebar { +.ui-draggable .ui-dialog-titlebar { cursor: move; } -.ui-dialog-sw { +.ui-dialog { padding: 0; } -.ui-dialog-sw .ui-dialog-sw-titlebar { +.ui-dialog .ui-dialog-titlebar { border-top: none; border-right: none; border-left: none; @@ -254,13 +254,13 @@ q { } .ui-widget-sw-content { border: 1px solid #a8a8a8; - background: #ffffff; + background: white; color: #4f4f4f; } .ui-widget-sw-header { border: 1px solid #a8a8a8; background: #c0c0c0 url('../images/ui-bg_highlight-soft_100_c0c0c0_1x100.png') repeat-x 50% top; - color: #333; + color: #333333; font-weight: bold; text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.7); } @@ -317,7 +317,7 @@ q { background-image: linear-gradient(#4683ff, #2461BF); } .secColA-5 { - /*background-color: #B8E1FD;*/ + /*background-color: @blu08;*/ background-image: -webkit-gradient(linear, left top, left bottom, from(#B8E1FD), to(#2461BF)); background-image: -webkit-linear-gradient(#B8E1FD, #2461BF); background-image: -moz-linear-gradient(#B8E1FD, #2461BF); @@ -357,21 +357,21 @@ q { } .lightBlue { border: 1px solid #CDCDCD; - background-image: -webkit-gradient(linear, left top, left bottom, from(#ddf), to(#e1f1ff)); - background-image: -webkit-linear-gradient(#ddf, #e1f1ff); - background-image: -moz-linear-gradient(#ddf, #e1f1ff); - background-image: -ms-linear-gradient(#ddf, #e1f1ff); - background-image: -o-linear-gradient(#ddf, #e1f1ff); - background-image: linear-gradient(#ddf, #e1f1ff); + background-image: -webkit-gradient(linear, left top, left bottom, from(#DDDDFF), to(#E1F1FF)); + background-image: -webkit-linear-gradient(#DDDDFF, #E1F1FF); + background-image: -moz-linear-gradient(#DDDDFF, #E1F1FF); + background-image: -ms-linear-gradient(#DDDDFF, #E1F1FF); + background-image: -o-linear-gradient(#DDDDFF, #E1F1FF); + background-image: linear-gradient(#DDDDFF, #E1F1FF); } .lightGray { /*background-color: #EDEDED;*/ - background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f1f1f1)); - background-image: -webkit-linear-gradient(#fff, #f1f1f1); - background-image: -moz-linear-gradient(#fff, #f1f1f1); - background-image: -ms-linear-gradient(#fff, #f1f1f1); - background-image: -o-linear-gradient(#fff, #f1f1f1); - background-image: linear-gradient(#fff, #f1f1f1); + background-image: -webkit-gradient(linear, left top, left bottom, from(white), to(#F1F1F1)); + background-image: -webkit-linear-gradient(white, #F1F1F1); + background-image: -moz-linear-gradient(white, #F1F1F1); + background-image: -ms-linear-gradient(white, #F1F1F1); + background-image: -o-linear-gradient(white, #F1F1F1); + background-image: linear-gradient(white, #F1F1F1); border: 1px solid #CDCDCD; } /* FINE Schema colori */ @@ -406,30 +406,30 @@ q { } .rowStyle { /*background-color: #DEE2EA;*/ - background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f1f1f1)); - background-image: -webkit-linear-gradient(#fff, #f1f1f1); - background-image: -moz-linear-gradient(#fff, #f1f1f1); - background-image: -ms-linear-gradient(#fff, #f1f1f1); - background-image: -o-linear-gradient(#fff, #f1f1f1); - background-image: linear-gradient(#fff, #f1f1f1); + background-image: -webkit-gradient(linear, left top, left bottom, from(white), to(#F1F1F1)); + background-image: -webkit-linear-gradient(white, #F1F1F1); + background-image: -moz-linear-gradient(white, #F1F1F1); + background-image: -ms-linear-gradient(white, #F1F1F1); + background-image: -o-linear-gradient(white, #F1F1F1); + background-image: linear-gradient(white, #F1F1F1); border: 1px solid #CDCDCD; } .alternatingRowStyle { /*background-color: White;*/ border: 1px solid #CDCDCD; - background-image: -webkit-gradient(linear, left top, left bottom, from(#ddf), to(#e1f1ff)); - background-image: -webkit-linear-gradient(#ddf, #e1f1ff); - background-image: -moz-linear-gradient(#ddf, #e1f1ff); - background-image: -ms-linear-gradient(#ddf, #e1f1ff); - background-image: -o-linear-gradient(#ddf, #e1f1ff); - background-image: linear-gradient(#ddf, #e1f1ff); + background-image: -webkit-gradient(linear, left top, left bottom, from(#DDDDFF), to(#E1F1FF)); + background-image: -webkit-linear-gradient(#DDDDFF, #E1F1FF); + background-image: -moz-linear-gradient(#DDDDFF, #E1F1FF); + background-image: -ms-linear-gradient(#DDDDFF, #E1F1FF); + background-image: -o-linear-gradient(#DDDDFF, #E1F1FF); + background-image: linear-gradient(#DDDDFF, #E1F1FF); /* - background-image: -webkit-gradient(linear,left top,left bottom,from( #fff ),to( #f1f1f1 )); - background-image: -webkit-linear-gradient( #fff,#f1f1f1 ); - background-image: -moz-linear-gradient( #fff,#f1f1f1 ); - background-image: -ms-linear-gradient( #fff,#f1f1f1 ); - background-image: -o-linear-gradient( #fff,#f1f1f1 ); - background-image: linear-gradient( #fff,#f1f1f1 ); + background-image: -webkit-gradient(linear,left top,left bottom,from( white ),to( @grigio01 )); + background-image: -webkit-linear-gradient( white,@grigio01 ); + background-image: -moz-linear-gradient( white,@grigio01 ); + background-image: -ms-linear-gradient( white,@grigio01 ); + background-image: -o-linear-gradient( white,@grigio01 ); + background-image: linear-gradient( white,@grigio01 ); */ } .editRowStyle { @@ -568,7 +568,7 @@ A:hover { background-color: #DEDEDE; width: 160px; height: 40px; - border: 1px solid #333; + border: 1px solid #333333; vertical-align: middle; margin: auto; font-size: 10pt; @@ -692,7 +692,7 @@ A:hover { .btnStd { font-size: 3em; color: #696969; - border: solid 4px #333; + border: solid 4px #333333; background-color: #ACACAC; width: 100%; min-height: 200px; @@ -753,7 +753,7 @@ A:hover { text-align: center; } .badgeStd { - border: solid 2px #333; + border: solid 2px #333333; background-color: #EEE; width: 100%; text-align: center; @@ -772,7 +772,7 @@ A:hover { } /*end etichette calcolate */ .rltUpdate { - background-color: #FFFF33; + background-color: whiteF33; } /* end */ /*#region override jQueryUI */ @@ -1000,7 +1000,7 @@ div > ul > li > a.selected.menuNav { font-size: 8pt; background-color: White; padding: 2px 2px 2px 2px; - border: 1px solid #333; + border: 1px solid #333333; /* z-index: 1; overflow: Auto; @@ -1010,7 +1010,7 @@ div > ul > li > a.selected.menuNav { /* @end */ /* gestione blocco dati */ .dataBlock { - background-color: #FFFFFF; + background-color: white; font-size: 9pt; float: left; border-top: solid 1px gray; @@ -1106,10 +1106,7 @@ div > ul > li > a.selected.menuNav { .grView { color: #333333; font-size: 8pt; - padding-left: 1px; - padding-right: 1px; - padding-top: 1px; - padding-bottom: 1px; + padding: 1px; } .ctrHeaderPager { background-color: #b8b8b8; @@ -1152,7 +1149,7 @@ div > ul > li > a.selected.menuNav { color: #00a300; } .lblBlu { - color: #3333FF; + color: #333333; } /* gestione celle tabella registro ore full */ .cTabRO { @@ -1162,71 +1159,72 @@ div > ul > li > a.selected.menuNav { } .cEmp { /*background-image: url('../Images/grigio_80.png');*/ - background-color: #d5d5d5; - background-image: -webkit-gradient(linear, left top, left bottom, from(#f8fbff), to(#d5d5d5)); - background-image: -webkit-linear-gradient(#f8fbff, #d5d5d5); - background-image: -moz-linear-gradient(#f8fbff, #d5d5d5); - background-image: -ms-linear-gradient(#f8fbff, #d5d5d5); - background-image: -o-linear-gradient(#f8fbff, #d5d5d5); - background-image: linear-gradient(#f8fbff, #d5d5d5); + background-color: #D5D5D5; + background-image: -webkit-gradient(linear, left top, left bottom, from(#F8FBFF), to(#D5D5D5)); + background-image: -webkit-linear-gradient(#F8FBFF, #D5D5D5); + background-image: -moz-linear-gradient(#F8FBFF, #D5D5D5); + background-image: -ms-linear-gradient(#F8FBFF, #D5D5D5); + background-image: -o-linear-gradient(#F8FBFF, #D5D5D5); + background-image: linear-gradient(#F8FBFF, #D5D5D5); } .cS01 { /*background-image: url('../Images/grigioChiaro_80.png');*/ - background-color: #f8fbff; - background-image: -webkit-gradient(linear, left top, left bottom, from(#ffff8e), to(#f8fbff)); - background-image: -webkit-linear-gradient(#ffff8e, #f8fbff); - background-image: -moz-linear-gradient(#ffff8e, #f8fbff); - background-image: -ms-linear-gradient(#ffff8e, #f8fbff); - background-image: -o-linear-gradient(#ffff8e, #f8fbff); - background-image: linear-gradient(#ffff8e, #f8fbff); + background-color: #F8FBFF; + background-image: -webkit-gradient(linear, left top, left bottom, from(#FFFF8E), to(#F8FBFF)); + background-image: -webkit-linear-gradient(#FFFF8E, #F8FBFF); + background-image: -moz-linear-gradient(#FFFF8E, #F8FBFF); + background-image: -ms-linear-gradient(#FFFF8E, #F8FBFF); + background-image: -o-linear-gradient(#FFFF8E, #F8FBFF); + background-image: linear-gradient(#FFFF8E, #F8FBFF); } .cS02 { /*background-image: url('../Images/verde_80.png');*/ - background-color: #ffff8e; - background-image: -webkit-gradient(linear, left top, left bottom, from(#ffff4d), to(#ffff8e)); - background-image: -webkit-linear-gradient(#ffff4d, #ffff8e); - background-image: -moz-linear-gradient(#ffff4d, #ffff8e); - background-image: -ms-linear-gradient(#ffff4d, #ffff8e); - background-image: -o-linear-gradient(#ffff4d, #ffff8e); - background-image: linear-gradient(#ffff4d, #ffff8e); - color: #333; + background-color: #FFFF8E; + background-image: -webkit-gradient(linear, left top, left bottom, from(#FFFF4D), to(#FFFF8E)); + background-image: -webkit-linear-gradient(#FFFF4D, #FFFF8E); + background-image: -moz-linear-gradient(#FFFF4D, #FFFF8E); + background-image: -ms-linear-gradient(#FFFF4D, #FFFF8E); + background-image: -o-linear-gradient(#FFFF4D, #FFFF8E); + background-image: linear-gradient(#FFFF4D, #FFFF8E); + color: #333333; } .cS03 { /*background-image: url('../Images/giallo_80.png');*/ - background-color: #ffff4d; - background-image: -webkit-gradient(linear, left top, left bottom, from(#f1f100), to(#ffff4d)); - background-image: -webkit-linear-gradient(#f1f100, #ffff4d); - background-image: -moz-linear-gradient(#f1f100, #ffff4d); - background-image: -ms-linear-gradient(#f1f100, #ffff4d); - background-image: -o-linear-gradient(#f1f100, #ffff4d); - background-image: linear-gradient(#f1f100, #ffff4d); - color: #333; + background-color: #FFFF4D; + background-image: -webkit-gradient(linear, left top, left bottom, from(#F1F100), to(#FFFF4D)); + background-image: -webkit-linear-gradient(#F1F100, #FFFF4D); + background-image: -moz-linear-gradient(#F1F100, #FFFF4D); + background-image: -ms-linear-gradient(#F1F100, #FFFF4D); + background-image: -o-linear-gradient(#F1F100, #FFFF4D); + background-image: linear-gradient(#F1F100, #FFFF4D); + color: #333333; } .cS04 { /*background-image: url('../Images/arancio_80.png');*/ - background-color: #f1f100; - background-image: -webkit-gradient(linear, left top, left bottom, from(#e4e400), to(#f1f100)); - background-image: -webkit-linear-gradient(#e4e400, #f1f100); - background-image: -moz-linear-gradient(#e4e400, #f1f100); - background-image: -ms-linear-gradient(#e4e400, #f1f100); - background-image: -o-linear-gradient(#e4e400, #f1f100); - background-image: linear-gradient(#e4e400, #f1f100); - color: #333; + background-color: #F1F100; + background-image: -webkit-gradient(linear, left top, left bottom, from(#E4E400), to(#F1F100)); + background-image: -webkit-linear-gradient(#E4E400, #F1F100); + background-image: -moz-linear-gradient(#E4E400, #F1F100); + background-image: -ms-linear-gradient(#E4E400, #F1F100); + background-image: -o-linear-gradient(#E4E400, #F1F100); + background-image: linear-gradient(#E4E400, #F1F100); + color: #333333; } .cOvr { /*background-image: url('../Images/rosso_80.png');*/ - background-color: #e4e400; - background-image: -webkit-gradient(linear, left top, left bottom, from(#caca00), to(#e4e400)); - background-image: -webkit-linear-gradient(#caca00, #e4e400); - background-image: -moz-linear-gradient(#caca00, #e4e400); - background-image: -ms-linear-gradient(#caca00, #e4e400); - background-image: -o-linear-gradient(#caca00, #e4e400); - background-image: linear-gradient(#caca00, #e4e400); + background-color: #E4E400; + background-image: -webkit-gradient(linear, left top, left bottom, from(#CACA00), to(#E4E400)); + background-image: -webkit-linear-gradient(#CACA00, #E4E400); + background-image: -moz-linear-gradient(#CACA00, #E4E400); + background-image: -ms-linear-gradient(#CACA00, #E4E400); + background-image: -o-linear-gradient(#CACA00, #E4E400); + background-image: linear-gradient(#CACA00, #E4E400); } .cBia { - font-weight: bold; height: 20px; - width: 29px; + width: 32px; + -ms-align-content: center; + -webkit-align-content: center; align-content: center; } .selCel { @@ -1235,75 +1233,115 @@ div > ul > li > a.selected.menuNav { /*font-weight: bold;*/ text-align: center; } +.baseLock { + text-align: center; + text-decoration: none; +} +.baseLock a { + text-decoration: none; + color: white; +} +.baseLock a:link { + text-decoration: underline; + color: black; +} +.lockCol { + text-align: center; + text-decoration: none; + background-color: #288EFF; +} +.lockCol a { + text-decoration: none; + color: white; +} +.lockCol a:link { + text-decoration: underline; + color: black; +} +.myLock { + text-align: center; + text-decoration: none; + background-color: #1BFF1B; +} +.myLock a { + text-decoration: none; + color: white; +} +.myLock a:link { + text-decoration: underline; + color: black; +} .cTab { text-align: center; height: 20px; - width: 29px; + width: 32px; + -ms-align-content: center; + -webkit-align-content: center; align-content: center; border: solid 1px #777; } .cREmp { /*background-image: url('../Images/grigio_80.png');*/ - background-color: #c3c3c3; - background-image: -webkit-gradient(linear, left top, left bottom, from(#f8fbff), to(#c3c3c3)); - background-image: -webkit-linear-gradient(#f8fbff, #c3c3c3); - background-image: -moz-linear-gradient(#f8fbff, #c3c3c3); - background-image: -ms-linear-gradient(#f8fbff, #c3c3c3); - background-image: -o-linear-gradient(#f8fbff, #c3c3c3); - background-image: linear-gradient(#f8fbff, #c3c3c3); + background-color: #C3C3C3; + background-image: -webkit-gradient(linear, left top, left bottom, from(#F8FBFF), to(#C3C3C3)); + background-image: -webkit-linear-gradient(#F8FBFF, #C3C3C3); + background-image: -moz-linear-gradient(#F8FBFF, #C3C3C3); + background-image: -ms-linear-gradient(#F8FBFF, #C3C3C3); + background-image: -o-linear-gradient(#F8FBFF, #C3C3C3); + background-image: linear-gradient(#F8FBFF, #C3C3C3); } .cR01 { /*background-image: url('../Images/grigioChiaro_80.png');*/ - background-color: #f8fbff; - background-image: -webkit-gradient(linear, left top, left bottom, from(#90c4ff), to(#f8fbff)); - background-image: -webkit-linear-gradient(#90c4ff, #f8fbff); - background-image: -moz-linear-gradient(#90c4ff, #f8fbff); - background-image: -ms-linear-gradient(#90c4ff, #f8fbff); - background-image: -o-linear-gradient(#90c4ff, #f8fbff); - background-image: linear-gradient(#90c4ff, #f8fbff); + background-color: #F8FBFF; + background-image: -webkit-gradient(linear, left top, left bottom, from(#90C4FF), to(#F8FBFF)); + background-image: -webkit-linear-gradient(#90C4FF, #F8FBFF); + background-image: -moz-linear-gradient(#90C4FF, #F8FBFF); + background-image: -ms-linear-gradient(#90C4FF, #F8FBFF); + background-image: -o-linear-gradient(#90C4FF, #F8FBFF); + background-image: linear-gradient(#90C4FF, #F8FBFF); } .cR02 { /*background-image: url('../Images/verde_80.png');*/ - background-color: #90c4ff; - background-image: -webkit-gradient(linear, left top, left bottom, from(#76b8ff), to(#90c4ff)); - background-image: -webkit-linear-gradient(#76b8ff, #90c4ff); - background-image: -moz-linear-gradient(#76b8ff, #90c4ff); - background-image: -ms-linear-gradient(#76b8ff, #90c4ff); - background-image: -o-linear-gradient(#76b8ff, #90c4ff); - background-image: linear-gradient(#76b8ff, #90c4ff); + background-color: #90C4FF; + background-image: -webkit-gradient(linear, left top, left bottom, from(#76B8FF), to(#90C4FF)); + background-image: -webkit-linear-gradient(#76B8FF, #90C4FF); + background-image: -moz-linear-gradient(#76B8FF, #90C4FF); + background-image: -ms-linear-gradient(#76B8FF, #90C4FF); + background-image: -o-linear-gradient(#76B8FF, #90C4FF); + background-image: linear-gradient(#76B8FF, #90C4FF); color: White; } .cR03 { /*background-image: url('../Images/giallo_80.png');*/ - background-color: #76b8ff; - background-image: -webkit-gradient(linear, left top, left bottom, from(#5caaff), to(#76b8ff)); - background-image: -webkit-linear-gradient(#5caaff, #76b8ff); - background-image: -moz-linear-gradient(#5caaff, #76b8ff); - background-image: -ms-linear-gradient(#5caaff, #76b8ff); - background-image: -o-linear-gradient(#5caaff, #76b8ff); - background-image: linear-gradient(#5caaff, #76b8ff); + background-color: #76B8FF; + background-image: -webkit-gradient(linear, left top, left bottom, from(#5CAAFF), to(#76B8FF)); + background-image: -webkit-linear-gradient(#5CAAFF, #76B8FF); + background-image: -moz-linear-gradient(#5CAAFF, #76B8FF); + background-image: -ms-linear-gradient(#5CAAFF, #76B8FF); + background-image: -o-linear-gradient(#5CAAFF, #76B8FF); + background-image: linear-gradient(#5CAAFF, #76B8FF); color: White; } .cR04 { /*background-image: url('../Images/arancio_80.png');*/ - background-color: #5caaff; - background-image: -webkit-gradient(linear, left top, left bottom, from(#288eff), to(#5caaff)); - background-image: -webkit-linear-gradient(#288eff, #5caaff); - background-image: -moz-linear-gradient(#288eff, #5caaff); - background-image: -ms-linear-gradient(#288eff, #5caaff); - background-image: -o-linear-gradient(#288eff, #5caaff); - background-image: linear-gradient(#288eff, #5caaff); + background-color: #5CAAFF; + background-image: -webkit-gradient(linear, left top, left bottom, from(#288EFF), to(#5CAAFF)); + background-image: -webkit-linear-gradient(#288EFF, #5CAAFF); + background-image: -moz-linear-gradient(#288EFF, #5CAAFF); + background-image: -ms-linear-gradient(#288EFF, #5CAAFF); + background-image: -o-linear-gradient(#288EFF, #5CAAFF); + background-image: linear-gradient(#288EFF, #5CAAFF); color: White; } .cROvr { /*background-image: url('../Images/rosso_80.png');*/ - background-color: #288eff; - background-image: -webkit-gradient(linear, left top, left bottom, from(#3333d9), to(#288eff)); - background-image: -webkit-linear-gradient(#3333d9, #288eff); - background-image: -moz-linear-gradient(#3333d9, #288eff); - background-image: -ms-linear-gradient(#3333d9, #288eff); - background-image: -o-linear-gradient(#3333d9, #288eff); - background-image: linear-gradient(#3333d9, #288eff); + background-color: #288EFF; + background-image: -webkit-gradient(linear, left top, left bottom, from(#3333D9), to(#288EFF)); + background-image: -webkit-linear-gradient(#3333D9, #288EFF); + background-image: -moz-linear-gradient(#3333D9, #288EFF); + background-image: -ms-linear-gradient(#3333D9, #288EFF); + background-image: -o-linear-gradient(#3333D9, #288EFF); + background-image: linear-gradient(#3333D9, #288EFF); color: White; } .cRBia { @@ -1312,7 +1350,7 @@ div > ul > li > a.selected.menuNav { vertical-align: middle; font-weight: bold; height: 16px; - padding: 0px 2px; + padding: 0 2px; } .cCent { text-align: center; @@ -1325,45 +1363,45 @@ div > ul > li > a.selected.menuNav { } .cTEmp { /*background-image: url('../Images/grigio_80.png');*/ - background-color: #c3c3c3; - background-image: -webkit-gradient(linear, left top, left bottom, from(#f8fbff), to(#c3c3c3)); - background-image: -webkit-linear-gradient(#f8fbff, #c3c3c3); - background-image: -moz-linear-gradient(#f8fbff, #c3c3c3); - background-image: -ms-linear-gradient(#f8fbff, #c3c3c3); - background-image: -o-linear-gradient(#f8fbff, #c3c3c3); - background-image: linear-gradient(#f8fbff, #c3c3c3); + background-color: #C3C3C3; + background-image: -webkit-gradient(linear, left top, left bottom, from(#F8FBFF), to(#C3C3C3)); + background-image: -webkit-linear-gradient(#F8FBFF, #C3C3C3); + background-image: -moz-linear-gradient(#F8FBFF, #C3C3C3); + background-image: -ms-linear-gradient(#F8FBFF, #C3C3C3); + background-image: -o-linear-gradient(#F8FBFF, #C3C3C3); + background-image: linear-gradient(#F8FBFF, #C3C3C3); } .cTUnd { /*background-image: url('../Images/verde_80.png');*/ - background-color: #ffb769; - background-image: -webkit-gradient(linear, left top, left bottom, from(#ff851b), to(#ffb769)); - background-image: -webkit-linear-gradient(#ff851b, #ffb769); - background-image: -moz-linear-gradient(#ff851b, #ffb769); - background-image: -ms-linear-gradient(#ff851b, #ffb769); - background-image: -o-linear-gradient(#ff851b, #ffb769); - background-image: linear-gradient(#ff851b, #ffb769); + background-color: #FFB769; + background-image: -webkit-gradient(linear, left top, left bottom, from(#FF851B), to(#FFB769)); + background-image: -webkit-linear-gradient(#FF851B, #FFB769); + background-image: -moz-linear-gradient(#FF851B, #FFB769); + background-image: -ms-linear-gradient(#FF851B, #FFB769); + background-image: -o-linear-gradient(#FF851B, #FFB769); + background-image: linear-gradient(#FF851B, #FFB769); color: #666; } .cTOk { /*background-image: url('../Images/arancio_80.png');*/ - background-color: #1bff1b; - background-image: -webkit-gradient(linear, left top, left bottom, from(#009800), to(#1bff1b)); - background-image: -webkit-linear-gradient(#009800, #1bff1b); - background-image: -moz-linear-gradient(#009800, #1bff1b); - background-image: -ms-linear-gradient(#009800, #1bff1b); - background-image: -o-linear-gradient(#009800, #1bff1b); - background-image: linear-gradient(#009800, #1bff1b); + background-color: #1BFF1B; + background-image: -webkit-gradient(linear, left top, left bottom, from(#009800), to(#1BFF1B)); + background-image: -webkit-linear-gradient(#009800, #1BFF1B); + background-image: -moz-linear-gradient(#009800, #1BFF1B); + background-image: -ms-linear-gradient(#009800, #1BFF1B); + background-image: -o-linear-gradient(#009800, #1BFF1B); + background-image: linear-gradient(#009800, #1BFF1B); color: Yellow; } .cTOvr { /*background-image: url('../Images/rosso_80.png');*/ - background-color: #ff871b; - background-image: -webkit-gradient(linear, left top, left bottom, from(#c12424), to(#ff871b)); - background-image: -webkit-linear-gradient(#c12424, #ff871b); - background-image: -moz-linear-gradient(#c12424, #ff871b); - background-image: -ms-linear-gradient(#c12424, #ff871b); - background-image: -o-linear-gradient(#c12424, #ff871b); - background-image: linear-gradient(#c12424, #ff871b); + background-color: #FF871B; + background-image: -webkit-gradient(linear, left top, left bottom, from(#C12424), to(#FF871B)); + background-image: -webkit-linear-gradient(#C12424, #FF871B); + background-image: -moz-linear-gradient(#C12424, #FF871B); + background-image: -ms-linear-gradient(#C12424, #FF871B); + background-image: -o-linear-gradient(#C12424, #FF871B); + background-image: linear-gradient(#C12424, #FF871B); color: #f6f6f6; } .cTBia { diff --git a/PROJ-ETS/PROJ-ETS/Content/Style.less b/PROJ-ETS/PROJ-ETS/Content/Style.less index af78227..38441aa 100644 --- a/PROJ-ETS/PROJ-ETS/Content/Style.less +++ b/PROJ-ETS/PROJ-ETS/Content/Style.less @@ -74,10 +74,10 @@ blockquote, q { /*#endregion */ /*Gestione label commessa*/ -.lblBox{ +.lblBox { font-size: 0.8em; - border: 1px solid #0A64A4; - background-color: #B8E1FD; + border: 1px solid @blu01; + background-color: @blu08; padding: 0 4px; line-height: 1.6em; } @@ -99,7 +99,7 @@ blockquote, q { a:hover { - background-color: #B8E1FD; + background-color: @blu08; color: black; } } @@ -126,7 +126,7 @@ blockquote, q { /* floating window */ -.ui-dialog-sw { +.ui-dialog { padding: .2em; overflow: hidden; -moz-box-shadow: 0px 5px 10px rgba(0,0,0,0.8); @@ -134,17 +134,17 @@ blockquote, q { box-shadow: 0px 5px 10px rgba(0,0,0,0.8); } - .ui-dialog-sw .ui-dialog-sw-titlebar { + .ui-dialog .ui-dialog-titlebar { padding: .5em 1em .3em; position: relative; } - .ui-dialog-sw .ui-dialog-sw-title { + .ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .2em 0; } - .ui-dialog-sw .ui-dialog-sw-titlebar-close { + .ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; @@ -155,16 +155,16 @@ blockquote, q { -moz-border-radius: 10px; } - .ui-dialog-sw .ui-dialog-sw-titlebar-close span { + .ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; } - .ui-dialog-sw .ui-dialog-sw-titlebar-close:hover, .ui-dialog-sw .ui-dialog-sw-titlebar-close:focus { + .ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; } - .ui-dialog-sw .ui-dialog-sw-content { + .ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; @@ -173,7 +173,7 @@ blockquote, q { zoom: 1; } - .ui-dialog-sw .ui-dialog-sw-buttonpane { + .ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; @@ -181,31 +181,31 @@ blockquote, q { padding: .3em 1em .5em .4em; } - .ui-dialog-sw .ui-dialog-sw-buttonpane .ui-dialog-sw-buttonset { + .ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { float: right; } - .ui-dialog-sw .ui-dialog-sw-buttonpane button { + .ui-dialog .ui-dialog-buttonpane button { margin: .5em .4em .5em 0; cursor: pointer; } - .ui-dialog-sw .ui-resizable-se { + .ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; } -.ui-draggable .ui-dialog-sw-titlebar { +.ui-draggable .ui-dialog-titlebar { cursor: move; } -.ui-dialog-sw { +.ui-dialog { padding: 0; } - .ui-dialog-sw .ui-dialog-sw-titlebar { + .ui-dialog .ui-dialog-titlebar { border-top: none; border-right: none; border-left: none; @@ -214,7 +214,7 @@ blockquote, q { border-radius: 0; } - .ui-dialog-sw .ui-dialog-sw-titlebar-close { + .ui-dialog .ui-dialog-titlebar-close { } .ui-widget-sw { @@ -232,15 +232,15 @@ blockquote, q { } .ui-widget-sw-content { - border: 1px solid #a8a8a8; - background: #ffffff; + border: 1px solid @grigio05; + background: white; color: #4f4f4f; } .ui-widget-sw-header { - border: 1px solid #a8a8a8; + border: 1px solid @grigio05; background: #c0c0c0 url('../images/ui-bg_highlight-soft_100_c0c0c0_1x100.png') repeat-x 50% top; - color: #333; + color: @grigio03; font-weight: bold; text-shadow: 0px 1px 0px rgba(255,255,255,0.7); } @@ -255,130 +255,162 @@ blockquote, q { /*#region area ETS */ .areaTitolo { - background-color: #0A64A4; + background-color: @blu01; background-image: url('../images/bg-menu-main.png'); background-repeat: repeat-x; - color: #ECECEC; + color: @grigio04; } /* Schema colori */ +@arancio01: #FF9000; +@arancio02: #BF8130; +@arancio03: #A65E00; +@arancio04: #FFAC40; +@arancio05: #FDD7A6; +@arancio06: #FF4500; +@arancio07: #BF5730; +@arancio08: #A62D00; +@arancio09: #FF7340; +@arancio10: #FFCEBC; +@azzurro01: #E1F1FF; +@azzurro02: #DDDDFF; +@blu01: #0A64A4; +@blu02: #4481DF; +@blu03: #2d9eff; +@blu04: #24577B; +@blu05: #03406A; +@blu06: #4683ff; +@blu07: #2461BF; +@blu08: #B8E1FD; +@grigio01: #F1F1F1; +@grigio02: #CDCDCD; +@grigio03: #333333; +@grigio04: #ECECEC; +@grigio05: #a8a8a8; +@verde01: #00B060; +@verde02: #218457; +@verde03: #00733E; +@verde04: #36D88E; +@verde05: #C3FFE4; + .priCol-1 { - background-color: #00B060; + background-color: @verde01; } .priCol-2 { - background-color: #218457; + background-color: @verde02; } .priCol-3 { - background-color: #00733E; + background-color: @verde03; } .priCol-4 { - background-color: #36D88E; + background-color: @verde04; } .priCol-5 { - background-color: #C3FFE4; + background-color: @verde05; } .secColA-1 { - background-color: #2d9eff; - background-image: -webkit-gradient(linear,left top,left bottom,from( #0A64A4 ),to( #4481DF )); - background-image: -webkit-linear-gradient( #0A64A4,#4481DF ); - background-image: -moz-linear-gradient( #0A64A4,#4481DF ); - background-image: -ms-linear-gradient( #0A64A4,#4481DF ); - background-image: -o-linear-gradient( #0A64A4,#4481DF ); - background-image: linear-gradient( #0A64A4,#4481DF ); + background-color: @blu03; + background-image: -webkit-gradient(linear,left top,left bottom,from( @blu01 ),to( @blu02 )); + background-image: -webkit-linear-gradient( @blu01,@blu02 ); + background-image: -moz-linear-gradient( @blu01,@blu02 ); + background-image: -ms-linear-gradient( @blu01,@blu02 ); + background-image: -o-linear-gradient( @blu01,@blu02 ); + background-image: linear-gradient( @blu01,@blu02 ); } .secColA-2 { - background-color: #24577B; + background-color: @blu04; } .secColA-3 { - background-color: #03406A; + background-color: @blu05; } .secColA-4 { /*background-color: #3E94D1;*/ - background-image: -webkit-gradient(linear,left top,left bottom,from( #4683ff ),to( #2461BF )); - background-image: -webkit-linear-gradient( #4683ff,#2461BF ); - background-image: -moz-linear-gradient( #4683ff,#2461BF ); - background-image: -ms-linear-gradient( #4683ff,#2461BF ); - background-image: -o-linear-gradient( #4683ff,#2461BF ); - background-image: linear-gradient( #4683ff,#2461BF ); + background-image: -webkit-gradient(linear,left top,left bottom,from( @blu06 ),to( @blu07 )); + background-image: -webkit-linear-gradient( @blu06,@blu07 ); + background-image: -moz-linear-gradient( @blu06,@blu07 ); + background-image: -ms-linear-gradient( @blu06,@blu07 ); + background-image: -o-linear-gradient( @blu06,@blu07 ); + background-image: linear-gradient( @blu06,@blu07 ); } .secColA-5 { - /*background-color: #B8E1FD;*/ - background-image: -webkit-gradient(linear,left top,left bottom,from( #B8E1FD ),to( #2461BF )); - background-image: -webkit-linear-gradient( #B8E1FD,#2461BF ); - background-image: -moz-linear-gradient( #B8E1FD,#2461BF ); - background-image: -ms-linear-gradient( #B8E1FD,#2461BF ); - background-image: -o-linear-gradient( #B8E1FD,#2461BF ); - background-image: linear-gradient( #B8E1FD,#2461BF ); + /*background-color: @blu08;*/ + background-image: -webkit-gradient(linear,left top,left bottom,from( @blu08 ),to( @blu07 )); + background-image: -webkit-linear-gradient( @blu08,@blu07 ); + background-image: -moz-linear-gradient( @blu08,@blu07 ); + background-image: -ms-linear-gradient( @blu08,@blu07 ); + background-image: -o-linear-gradient( @blu08,@blu07 ); + background-image: linear-gradient( @blu08,@blu07 ); } .secColB-1 { - background-color: #FF9000; + background-color: @arancio01; } .secColB-2 { - background-color: #BF8130; + background-color: @arancio02; } .secColB-3 { - background-color: #A65E00; + background-color: @arancio03; } .secColB-4 { - background-color: #FFAC40; + background-color: @arancio04; } .secColB-5 { - background-color: #FDD7A6; + background-color: @arancio05; } .comCol-1 { - background-color: #FF4500; + background-color: @arancio06; } .comCol-2 { - background-color: #BF5730; + background-color: @arancio07; } .comCol-3 { - background-color: #A62D00; + background-color: @arancio08; } .comCol-4 { - background-color: #FF7340; + background-color: @arancio09; } .comCol-5 { - background-color: #FFCEBC; + background-color: @arancio10; } + .lightBlue { - border: 1px solid #CDCDCD; - background-image: -webkit-gradient(linear,left top,left bottom,from( #ddf ),to( #e1f1ff )); - background-image: -webkit-linear-gradient( #ddf,#e1f1ff ); - background-image: -moz-linear-gradient( #ddf,#e1f1ff ); - background-image: -ms-linear-gradient( #ddf,#e1f1ff ); - background-image: -o-linear-gradient( #ddf,#e1f1ff ); - background-image: linear-gradient( #ddf,#e1f1ff ); + border: 1px solid @grigio02; + background-image: -webkit-gradient(linear,left top,left bottom,from( @azzurro02 ),to( @azzurro01 )); + background-image: -webkit-linear-gradient( @azzurro02,@azzurro01 ); + background-image: -moz-linear-gradient( @azzurro02,@azzurro01 ); + background-image: -ms-linear-gradient( @azzurro02,@azzurro01 ); + background-image: -o-linear-gradient( @azzurro02,@azzurro01 ); + background-image: linear-gradient( @azzurro02,@azzurro01 ); } .lightGray { /*background-color: #EDEDED;*/ - background-image: -webkit-gradient(linear,left top,left bottom,from( #fff ),to( #f1f1f1 )); - background-image: -webkit-linear-gradient( #fff,#f1f1f1 ); - background-image: -moz-linear-gradient( #fff,#f1f1f1 ); - background-image: -ms-linear-gradient( #fff,#f1f1f1 ); - background-image: -o-linear-gradient( #fff,#f1f1f1 ); - background-image: linear-gradient( #fff,#f1f1f1 ); - border: 1px solid #CDCDCD; + background-image: -webkit-gradient(linear,left top,left bottom,from( white ),to( @grigio01 )); + background-image: -webkit-linear-gradient( white,@grigio01 ); + background-image: -moz-linear-gradient( white,@grigio01 ); + background-image: -ms-linear-gradient( white,@grigio01 ); + background-image: -o-linear-gradient( white,@grigio01 ); + background-image: linear-gradient( white,@grigio01 ); + border: 1px solid @grigio02; } /* FINE Schema colori */ @@ -408,7 +440,7 @@ blockquote, q { } .pagerStyle { - background-color: #2461BF; + background-color: @blu07; color: White; white-space: nowrap; text-align: center; @@ -418,31 +450,31 @@ blockquote, q { .rowStyle { /*background-color: #DEE2EA;*/ - background-image: -webkit-gradient(linear,left top,left bottom,from( #fff ),to( #f1f1f1 )); - background-image: -webkit-linear-gradient( #fff,#f1f1f1 ); - background-image: -moz-linear-gradient( #fff,#f1f1f1 ); - background-image: -ms-linear-gradient( #fff,#f1f1f1 ); - background-image: -o-linear-gradient( #fff,#f1f1f1 ); - background-image: linear-gradient( #fff,#f1f1f1 ); - border: 1px solid #CDCDCD; + background-image: -webkit-gradient(linear,left top,left bottom,from( white ),to( @grigio01 )); + background-image: -webkit-linear-gradient( white,@grigio01 ); + background-image: -moz-linear-gradient( white,@grigio01 ); + background-image: -ms-linear-gradient( white,@grigio01 ); + background-image: -o-linear-gradient( white,@grigio01 ); + background-image: linear-gradient( white,@grigio01 ); + border: 1px solid @grigio02; } .alternatingRowStyle { /*background-color: White;*/ - border: 1px solid #CDCDCD; - background-image: -webkit-gradient(linear,left top,left bottom,from( #ddf ),to( #e1f1ff )); - background-image: -webkit-linear-gradient( #ddf,#e1f1ff ); - background-image: -moz-linear-gradient( #ddf,#e1f1ff ); - background-image: -ms-linear-gradient( #ddf,#e1f1ff ); - background-image: -o-linear-gradient( #ddf,#e1f1ff ); - background-image: linear-gradient( #ddf,#e1f1ff ); + border: 1px solid @grigio02; + background-image: -webkit-gradient(linear,left top,left bottom,from( @azzurro02 ),to( @azzurro01 )); + background-image: -webkit-linear-gradient( @azzurro02,@azzurro01 ); + background-image: -moz-linear-gradient( @azzurro02,@azzurro01 ); + background-image: -ms-linear-gradient( @azzurro02,@azzurro01 ); + background-image: -o-linear-gradient( @azzurro02,@azzurro01 ); + background-image: linear-gradient( @azzurro02,@azzurro01 ); /* - background-image: -webkit-gradient(linear,left top,left bottom,from( #fff ),to( #f1f1f1 )); - background-image: -webkit-linear-gradient( #fff,#f1f1f1 ); - background-image: -moz-linear-gradient( #fff,#f1f1f1 ); - background-image: -ms-linear-gradient( #fff,#f1f1f1 ); - background-image: -o-linear-gradient( #fff,#f1f1f1 ); - background-image: linear-gradient( #fff,#f1f1f1 ); + background-image: -webkit-gradient(linear,left top,left bottom,from( white ),to( @grigio01 )); + background-image: -webkit-linear-gradient( white,@grigio01 ); + background-image: -moz-linear-gradient( white,@grigio01 ); + background-image: -ms-linear-gradient( white,@grigio01 ); + background-image: -o-linear-gradient( white,@grigio01 ); + background-image: linear-gradient( white,@grigio01 ); */ } @@ -490,7 +522,7 @@ blockquote, q { /* end gridView */ .divTitoloAdmin { - background-color: #BF8130; + background-color: @arancio02; padding: 5px 0px 5px 5px; color: White; } @@ -579,7 +611,7 @@ A:hover { background-image: url(../images/new_m.png); background-repeat: no-repeat; background-position: right; - border: 1px solid #333333; + border: 1px solid @grigio03; padding: 4px; padding-right: 28px; } @@ -588,7 +620,7 @@ A:hover { background-image: url(../images/pin_m.png); background-repeat: no-repeat; background-position: right; - border: 1px solid #333333; + border: 1px solid @grigio03; padding: 4px; padding-right: 28px; } @@ -597,7 +629,7 @@ A:hover { background-image: url(../images/pinDis_m.png); background-repeat: no-repeat; background-position: right; - border: 1px solid #333333; + border: 1px solid @grigio03; padding: 4px; padding-right: 28px; } @@ -606,7 +638,7 @@ A:hover { background-image: url(../images/elimina_m.png); background-repeat: no-repeat; background-position: right; - border: 1px solid #333333; + border: 1px solid @grigio03; padding: 4px; padding-right: 28px; } @@ -618,7 +650,7 @@ A:hover { background-color: #DEDEDE; width: 160px; height: 40px; - border: 1px solid #333; + border: 1px solid @grigio03; vertical-align: middle; margin: auto; font-size: 10pt; @@ -629,7 +661,7 @@ A:hover { background-image: url(../images/InOutArrows_l.png); background-repeat: no-repeat; background-position: right; - border: 1px solid #333333; + border: 1px solid @grigio03; padding: 8px; padding-right: 32px; } @@ -638,7 +670,7 @@ A:hover { background-image: url(../images/edit_l.png); background-repeat: no-repeat; background-position: right; - border: 1px solid #333333; + border: 1px solid @grigio03; padding: 4px; padding-right: 28px; } @@ -647,7 +679,7 @@ A:hover { background-image: url(../images/edit_m.png); background-repeat: no-repeat; background-position: right; - border: 1px solid #333333; + border: 1px solid @grigio03; padding: 4px; padding-right: 28px; } @@ -656,7 +688,7 @@ A:hover { background-image: url(../images/clonaObj_l.png); background-repeat: no-repeat; background-position: right; - border: 1px solid #333333; + border: 1px solid @grigio03; padding: 4px; padding-right: 28px; } @@ -665,7 +697,7 @@ A:hover { background-image: url(../images/clonaObj_m.png); background-repeat: no-repeat; background-position: right; - border: 1px solid #333333; + border: 1px solid @grigio03; padding: 4px; padding-right: 28px; } @@ -674,7 +706,7 @@ A:hover { background-image: url(../images/email_l.png); background-repeat: no-repeat; background-position: right; - border: 1px solid #333333; + border: 1px solid @grigio03; padding: 4px; padding-right: 38px; } @@ -766,7 +798,7 @@ A:hover { .btnStd { font-size: 3em; color: #696969; - border: solid 4px #333; + border: solid 4px @grigio03; background-color: #ACACAC; width: 100%; min-height: 200px; @@ -847,7 +879,7 @@ A:hover { } .badgeStd { - border: solid 2px #333; + border: solid 2px @grigio03; background-color: #EEE; width: 100%; text-align: center; @@ -869,7 +901,7 @@ A:hover { /*end etichette calcolate */ .rltUpdate { - background-color: #FFFF33; + background-color: whiteF33; } /* end */ @@ -886,7 +918,7 @@ A:hover { /*#endregion */ /* zona menù top */ -@menuColS: #B8E1FD; +@menuColS: @blu08; @menuColE: #8591ff; @menuSelColS: #6dc3fd; @menuSelColE: #2a44ff; @@ -899,7 +931,7 @@ A:hover { li.static { margin: 2px 4px 0px 0px; - border-color: #CDCDCD; + border-color: @grigio02; border-style: solid; border-width: 1px 1px 0px 1px; border-top-right-radius: @menuRad; @@ -927,7 +959,7 @@ div > ul > li > a.selected.menuNav { .areaContMenu { background-color: white; padding: 4px; - border-color: #CDCDCD; + border-color: @grigio02; border-style: solid; border-width: 1px 1px 1px 1px; } @@ -950,7 +982,7 @@ div > ul > li > a.selected.menuNav { } .sfondoGrigio { - background-color: #ECECEC; + background-color: @grigio04; } .bordoGrigio { @@ -1034,11 +1066,13 @@ div > ul > li > a.selected.menuNav { /* @end */ /* area gestione etichette tab */ +@verde06: #DDFFDD; +@verde07: #339933; .tabLabelGreen { - background-color: #DDFFDD; - border-top: 1px solid #339933; - border-left: 1px solid #339933; - border-right: 1px solid #339933; + background-color: @verde06; + border-top: 1px solid @verde07; + border-left: 1px solid @verde07; + border-right: 1px solid @verde07; height: 1.5em; vertical-align: middle; padding-top: 0.5em; @@ -1047,7 +1081,7 @@ div > ul > li > a.selected.menuNav { } .tabBodyGreen { - background-color: #DDFFDD; + background-color: @verde06; border-bottom: 1px solid green; border-left: 1px solid green; border-right: 1px solid green; @@ -1055,9 +1089,9 @@ div > ul > li > a.selected.menuNav { .tabLabelGray { background-color: #DEDEDE; - border-top: 1px solid #333333; - border-left: 1px solid #333333; - border-right: 1px solid #333333; + border-top: 1px solid @grigio03; + border-left: 1px solid @grigio03; + border-right: 1px solid @grigio03; height: 1.5em; vertical-align: middle; padding-top: 0.5em; @@ -1144,7 +1178,7 @@ div > ul > li > a.selected.menuNav { font-size: 8pt; background-color: White; padding: 2px 2px 2px 2px; - border: 1px solid #333; + border: 1px solid @grigio03; /* z-index: 1; overflow: Auto; @@ -1157,7 +1191,7 @@ div > ul > li > a.selected.menuNav { /* gestione blocco dati */ .dataBlock { - background-color: #FFFFFF; + background-color: white; font-size: 9pt; float: left; border-top: solid 1px gray; @@ -1270,12 +1304,9 @@ div > ul > li > a.selected.menuNav { /* standard gridview */ .grView { - color: #333333; + color: @grigio03; font-size: 8pt; - padding-left: 1px; - padding-right: 1px; - padding-top: 1px; - padding-bottom: 1px; + padding: 1px; } .ctrHeaderPager { @@ -1330,13 +1361,13 @@ div > ul > li > a.selected.menuNav { } .lblBlu { - color: #3333FF; + color: @grigio03; } /* gestione celle tabella registro ore full */ @grigioCellaRO: #777; @altezzaCellaRO: 16px; -@larghCella: 29px; +@larghCella: 32px; @grigioCella: #777; @altezzaCella: 20px; @@ -1347,13 +1378,13 @@ div > ul > li > a.selected.menuNav { border: solid 1px @grigioCellaRO; } -@S06: #caca00; -@S05: #e4e400; -@S04: #f1f100; -@S03: #ffff4d; -@S02: #ffff8e; -@S01: #f8fbff; -@S00: #d5d5d5; +@S06: #CACA00; +@S05: #E4E400; +@S04: #F1F100; +@S03: #FFFF4D; +@S02: #FFFF8E; +@S01: #F8FBFF; +@S00: #D5D5D5; .cEmp { /*background-image: url('../Images/grigio_80.png');*/ @@ -1386,7 +1417,7 @@ div > ul > li > a.selected.menuNav { background-image: -ms-linear-gradient( @S03,@S02 ); background-image: -o-linear-gradient( @S03,@S02 ); background-image: linear-gradient( @S03,@S02 ); - color: #333; + color: @grigio03; } .cS03 { @@ -1398,7 +1429,7 @@ div > ul > li > a.selected.menuNav { background-image: -ms-linear-gradient( @S04,@S03 ); background-image: -o-linear-gradient( @S04,@S03 ); background-image: linear-gradient( @S04,@S03 ); - color: #333; + color: @grigio03; } .cS04 { @@ -1410,7 +1441,7 @@ div > ul > li > a.selected.menuNav { background-image: -ms-linear-gradient( @S05,@S04 ); background-image: -o-linear-gradient( @S05,@S04 ); background-image: linear-gradient( @S05,@S04 ); - color: #333; + color: @grigio03; } .cOvr { @@ -1425,9 +1456,10 @@ div > ul > li > a.selected.menuNav { } .cBia { - font-weight: bold; height: @altezzaCella; width: @larghCella; + -ms-align-content: center; + -webkit-align-content: center; align-content: center; } @@ -1437,21 +1469,51 @@ div > ul > li > a.selected.menuNav { text-align: center; } +.baseLock +{ + text-align: center; + text-decoration: none; + + + a { + text-decoration: none; + color: white; + } + + a:link { + text-decoration: underline; + color: black; + } +} + +.lockCol { + .baseLock; + background-color: @R05; +} + +.myLock { + .baseLock; + background-color: @T04; +} + + .cTab { text-align: center; height: @altezzaCella; width: @larghCella; + -ms-align-content: center; + -webkit-align-content: center; align-content: center; border: solid 1px @grigioCella; } -@R06: #3333d9; -@R05: #288eff; -@R04: #5caaff; -@R03: #76b8ff; -@R02: #90c4ff; -@R01: #f8fbff; -@R00: #c3c3c3; +@R06: #3333D9; +@R05: #288EFF; +@R04: #5CAAFF; +@R03: #76B8FF; +@R02: #90C4FF; +@R01: #F8FBFF; +@R00: #C3C3C3; .cREmp { /*background-image: url('../Images/grigio_80.png');*/ @@ -1529,7 +1591,7 @@ div > ul > li > a.selected.menuNav { vertical-align: middle; font-weight: bold; height: @altezzaCellaRO; - padding: 0px 2px; + padding: 0 2px; } .cCent { @@ -1544,14 +1606,14 @@ div > ul > li > a.selected.menuNav { -@T07: #c12424; -@T06: #ff871b; +@T07: #C12424; +@T06: #FF871B; @T05: #009800; -@T04: #1bff1b; -@T03: #ff851b; -@T02: #ffb769; -@T01: #f8fbff; -@T00: #c3c3c3; +@T04: #1BFF1B; +@T03: #FF851B; +@T02: #FFB769; +@T01: #F8FBFF; +@T00: #C3C3C3; .cTEmp { /*background-image: url('../Images/grigio_80.png');*/ diff --git a/PROJ-ETS/PROJ-ETS/Content/Style.min.css b/PROJ-ETS/PROJ-ETS/Content/Style.min.css index 86f3567..9c43719 100644 --- a/PROJ-ETS/PROJ-ETS/Content/Style.min.css +++ b/PROJ-ETS/PROJ-ETS/Content/Style.min.css @@ -1 +1 @@ -html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-weight:inherit;font-style:inherit;font-family:Verdana,Arial;}:focus{outline:0;}body{line-height:1;color:#000;background:#fff;}ol,ul{list-style:none;}table{border-collapse:collapse;border-spacing:0;}caption,th,td{text-align:left;font-weight:normal;}blockquote:before,blockquote:after,q:before,q:after{content:"";}blockquote,q{quotes:"" "";}.fullscreen{display:block;top:0;left:0;width:100%;height:100%;}.bottomWrite{vertical-align:bottom;border-top:#0d0083 1px solid;margin-top:2px;padding-top:2px;}.smallText{font-size:8pt;}.lblBox{font-size:.8em;border:1px solid #0a64a4;background-color:#b8e1fd;padding:0 4px;line-height:1.6em;}.GridPager a,.GridPager span{display:block;height:1.6em;width:2em;text-align:center;text-decoration:none;}.GridPager a{background-color:#f5f5f5;color:#969696;}.GridPager a:hover{background-color:#b8e1fd;color:#000;}.GridPager span{background-color:#a1dcf2;color:#000;font-weight:bold;}.imgNoPad{margin-top:-3px;margin-bottom:-7px;}.imgHead{margin:0;vertical-align:top;}.ui-dialog-sw{padding:.2em;overflow:hidden;-moz-box-shadow:0 5px 10px rgba(0,0,0,.8);-webkit-box-shadow:0 5px 10px rgba(0,0,0,.8);box-shadow:0 5px 10px rgba(0,0,0,.8);}.ui-dialog-sw .ui-dialog-sw-titlebar{padding:.5em 1em .3em;position:relative;}.ui-dialog-sw .ui-dialog-sw-title{float:left;margin:.1em 16px .2em 0;}.ui-dialog-sw .ui-dialog-sw-titlebar-close{position:absolute;right:.3em;top:50%;width:19px;margin:-10px 0 0 0;padding:1px;height:18px;-moz-border-radius:10px;}.ui-dialog-sw .ui-dialog-sw-titlebar-close span{display:block;margin:1px;}.ui-dialog-sw .ui-dialog-sw-titlebar-close:hover,.ui-dialog-sw .ui-dialog-sw-titlebar-close:focus{padding:0;}.ui-dialog-sw .ui-dialog-sw-content{position:relative;border:0;padding:.5em 1em;background:none;overflow:auto;zoom:1;}.ui-dialog-sw .ui-dialog-sw-buttonpane{text-align:left;border-width:1px 0 0 0;background-image:none;margin:.5em 0 0 0;padding:.3em 1em .5em .4em;}.ui-dialog-sw .ui-dialog-sw-buttonpane .ui-dialog-sw-buttonset{float:right;}.ui-dialog-sw .ui-dialog-sw-buttonpane button{margin:.5em .4em .5em 0;cursor:pointer;}.ui-dialog-sw .ui-resizable-se{width:14px;height:14px;right:3px;bottom:3px;}.ui-draggable .ui-dialog-sw-titlebar{cursor:move;}.ui-dialog-sw{padding:0;}.ui-dialog-sw .ui-dialog-sw-titlebar{border-top:none;border-right:none;border-left:none;-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;}.ui-widget-sw{font-family:Arial,sans-serif;font-size:1.1em;}.ui-widget-sw .ui-widget-sw{font-size:1em;}.ui-widget-sw input,.ui-widget-sw select,.ui-widget-sw textarea,.ui-widget-sw button{font-family:Arial,sans-serif;font-size:1em;}.ui-widget-sw-content{border:1px solid #a8a8a8;background:#fff;color:#4f4f4f;}.ui-widget-sw-header{border:1px solid #a8a8a8;background:#c0c0c0 url('../images/ui-bg_highlight-soft_100_c0c0c0_1x100.png') repeat-x 50% top;color:#333;font-weight:bold;text-shadow:0 1px 0 rgba(255,255,255,.7);}.ui-widget-sw-header a{color:#4f4f4f;}.areaTitolo{background-color:#0a64a4;background-image:url('../images/bg-menu-main.png');background-repeat:repeat-x;color:#ececec;}.priCol-1{background-color:#00b060;}.priCol-2{background-color:#218457;}.priCol-3{background-color:#00733e;}.priCol-4{background-color:#36d88e;}.priCol-5{background-color:#c3ffe4;}.secColA-1{background-color:#2d9eff;background-image:-webkit-gradient(linear,left top,left bottom,from(#0a64a4),to(#4481df));background-image:-webkit-linear-gradient(#0a64a4,#4481df);background-image:-moz-linear-gradient(#0a64a4,#4481df);background-image:-ms-linear-gradient(#0a64a4,#4481df);background-image:-o-linear-gradient(#0a64a4,#4481df);background-image:linear-gradient(#0a64a4,#4481df);}.secColA-2{background-color:#24577b;}.secColA-3{background-color:#03406a;}.secColA-4{background-image:-webkit-gradient(linear,left top,left bottom,from(#4683ff),to(#2461bf));background-image:-webkit-linear-gradient(#4683ff,#2461bf);background-image:-moz-linear-gradient(#4683ff,#2461bf);background-image:-ms-linear-gradient(#4683ff,#2461bf);background-image:-o-linear-gradient(#4683ff,#2461bf);background-image:linear-gradient(#4683ff,#2461bf);}.secColA-5{background-image:-webkit-gradient(linear,left top,left bottom,from(#b8e1fd),to(#2461bf));background-image:-webkit-linear-gradient(#b8e1fd,#2461bf);background-image:-moz-linear-gradient(#b8e1fd,#2461bf);background-image:-ms-linear-gradient(#b8e1fd,#2461bf);background-image:-o-linear-gradient(#b8e1fd,#2461bf);background-image:linear-gradient(#b8e1fd,#2461bf);}.secColB-1{background-color:#ff9000;}.secColB-2{background-color:#bf8130;}.secColB-3{background-color:#a65e00;}.secColB-4{background-color:#ffac40;}.secColB-5{background-color:#fdd7a6;}.comCol-1{background-color:#ff4500;}.comCol-2{background-color:#bf5730;}.comCol-3{background-color:#a62d00;}.comCol-4{background-color:#ff7340;}.comCol-5{background-color:#ffcebc;}.lightBlue{border:1px solid #cdcdcd;background-image:-webkit-gradient(linear,left top,left bottom,from(#ddf),to(#e1f1ff));background-image:-webkit-linear-gradient(#ddf,#e1f1ff);background-image:-moz-linear-gradient(#ddf,#e1f1ff);background-image:-ms-linear-gradient(#ddf,#e1f1ff);background-image:-o-linear-gradient(#ddf,#e1f1ff);background-image:linear-gradient(#ddf,#e1f1ff);}.lightGray{background-image:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#f1f1f1));background-image:-webkit-linear-gradient(#fff,#f1f1f1);background-image:-moz-linear-gradient(#fff,#f1f1f1);background-image:-ms-linear-gradient(#fff,#f1f1f1);background-image:-o-linear-gradient(#fff,#f1f1f1);background-image:linear-gradient(#fff,#f1f1f1);border:1px solid #cdcdcd;}.headerStyle{background-color:#507cd1;font-weight:bold;color:#fff;white-space:nowrap;}.footeStyle{background-color:#507cd1;font-weight:bold;color:#fff;white-space:nowrap;}.footerRowStyle{background-image:-webkit-gradient(linear,left top,left bottom,from(#ff7a00),to(#cc3800));background-image:-webkit-linear-gradient(#ff7a00,#cc3800);background-image:-moz-linear-gradient(#ff7a00,#cc3800);background-image:-ms-linear-gradient(#ff7a00,#cc3800);background-image:-o-linear-gradient(#ff7a00,#cc3800);background-image:linear-gradient(#ff7a00,#cc3800);}.pagerStyle{background-color:#2461bf;color:#fff;white-space:nowrap;text-align:center;margin:auto;font-size:medium;}.rowStyle{background-image:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#f1f1f1));background-image:-webkit-linear-gradient(#fff,#f1f1f1);background-image:-moz-linear-gradient(#fff,#f1f1f1);background-image:-ms-linear-gradient(#fff,#f1f1f1);background-image:-o-linear-gradient(#fff,#f1f1f1);background-image:linear-gradient(#fff,#f1f1f1);border:1px solid #cdcdcd;}.alternatingRowStyle{border:1px solid #cdcdcd;background-image:-webkit-gradient(linear,left top,left bottom,from(#ddf),to(#e1f1ff));background-image:-webkit-linear-gradient(#ddf,#e1f1ff);background-image:-moz-linear-gradient(#ddf,#e1f1ff);background-image:-ms-linear-gradient(#ddf,#e1f1ff);background-image:-o-linear-gradient(#ddf,#e1f1ff);background-image:linear-gradient(#ddf,#e1f1ff);}.editRowStyle{border:1px solid #5282de;background-image:-webkit-gradient(linear,left top,left bottom,from(#e2ebff),to(#94b4ea));background-image:-webkit-linear-gradient(#e2ebff,#94b4ea);background-image:-moz-linear-gradient(#e2ebff,#94b4ea);background-image:-ms-linear-gradient(#e2ebff,#94b4ea);background-image:-o-linear-gradient(#e2ebff,#94b4ea);background-image:linear-gradient(#e2ebff,#94b4ea);}.selectedRowStyle{background-image:-webkit-gradient(linear,left top,left bottom,from(#dfd),to(#80ff80));background-image:-webkit-linear-gradient(#dfd,#80ff80);background-image:-moz-linear-gradient(#dfd,#80ff80);background-image:-ms-linear-gradient(#dfd,#80ff80);background-image:-o-linear-gradient(#dfd,#80ff80);background-image:linear-gradient(#dfd,#80ff80);font-weight:bold;}.sortAscHead{background-color:#6d95e1;}.sortDescHead{background-color:#4870be;}.sortAscCell{background-color:#f5f7fb;}.sortDescCell{background-color:#e9ebef;}.divTitoloAdmin{background-color:#bf8130;padding:5px 0 5px 5px;color:#fff;}A:hover{color:#f00;}.float-left{float:left;}.float-right{float:right;}.divSx{float:left;}.divDx{float:right;}.divCenter{float:none;text-align:center;padding:0;margin:0 auto 0 auto;}.clearDiv{clear:both;}.padSxDx{padding-left:2px;padding-right:2px;}.shadowBox{-moz-box-shadow:0 4px 8px rgba(0,0,0,.5);-webkit-box-shadow:0 4px 8px rgba(0,0,0,.5);box-shadow:0 4px 8px rgba(0,0,0,.5);}.half{width:50%;}.third{width:33%;}.quarter{width:25%;}.fifth{width:20%;}.modalBackground{background-color:#808080;filter:alpha(opacity=70);opacity:.7;}.btnNew{background-image:url(../images/new_m.png);background-repeat:no-repeat;background-position:right;border:1px solid #333;padding:4px;padding-right:28px;}.btnPinned{background-image:url(../images/pin_m.png);background-repeat:no-repeat;background-position:right;border:1px solid #333;padding:4px;padding-right:28px;}.btnPinnedDis{background-image:url(../images/pinDis_m.png);background-repeat:no-repeat;background-position:right;border:1px solid #333;padding:4px;padding-right:28px;}.btnDelete{background-image:url(../images/elimina_m.png);background-repeat:no-repeat;background-position:right;border:1px solid #333;padding:4px;padding-right:28px;}.btnUpdate{background-image:url(../images/reload_l.png);background-repeat:no-repeat;background-position:center right;background-color:#dedede;width:160px;height:40px;border:1px solid #333;vertical-align:middle;margin:auto;font-size:10pt;font-family:Arial;}.btnMoveBig{background-image:url(../images/InOutArrows_l.png);background-repeat:no-repeat;background-position:right;border:1px solid #333;padding:8px;padding-right:32px;}.btnEditBig{background-image:url(../images/edit_l.png);background-repeat:no-repeat;background-position:right;border:1px solid #333;padding:4px;padding-right:28px;}.btnEdit{background-image:url(../images/edit_m.png);background-repeat:no-repeat;background-position:right;border:1px solid #333;padding:4px;padding-right:28px;}.btnClonaBig{background-image:url(../images/clonaObj_l.png);background-repeat:no-repeat;background-position:right;border:1px solid #333;padding:4px;padding-right:28px;}.btnClona{background-image:url(../images/clonaObj_m.png);background-repeat:no-repeat;background-position:right;border:1px solid #333;padding:4px;padding-right:28px;}.btnEmail{background-image:url(../images/email_l.png);background-repeat:no-repeat;background-position:right;border:1px solid #333;padding:4px;padding-right:38px;}.btnRosso{border:solid 2px #f00;background-color:#faa;width:100%;text-align:center;}.btnRossoGrad{border:solid 2px #f00;background-color:#faa;text-align:center;background-image:-webkit-gradient(linear,left top,left bottom,from(#faa),to(red));background-image:-webkit-linear-gradient(#faa,red);background-image:-moz-linear-gradient(#faa,red);background-image:-ms-linear-gradient(#faa,red);background-image:-o-linear-gradient(#faa,red);background-image:linear-gradient(#faa,red);}.btnArancio{border:solid 2px #e48800;background-color:#ffb44d;width:100%;text-align:center;}.btnArancioGrad{border:solid 2px #e48800;background-color:#ffb44d;text-align:center;background-image:-webkit-gradient(linear,left top,left bottom,from(#ffb44d),to(#e48800));background-image:-webkit-linear-gradient(#ffb44d,#e48800);background-image:-moz-linear-gradient(#ffb44d,#e48800);background-image:-ms-linear-gradient(#ffb44d,#e48800);background-image:-o-linear-gradient(#ffb44d,#e48800);background-image:linear-gradient(#ffb44d,#e48800);}.btnVerde{border:solid 2px #008000;background-color:#afa;width:100%;text-align:center;}.btnVerdeGrad{border:solid 2px #008000;background-color:#afa;text-align:center;background-image:-webkit-gradient(linear,left top,left bottom,from(#afa),to(green));background-image:-webkit-linear-gradient(#afa,green);background-image:-moz-linear-gradient(#afa,green);background-image:-ms-linear-gradient(#afa,green);background-image:-o-linear-gradient(#afa,green);background-image:linear-gradient(#afa,green);}.btnBlu{border:solid 2px #00f;background-color:#aaf;width:100%;text-align:center;}.btnPreferred{font-size:3em;border:solid 4px #f00;background-color:#ffacac;width:100%;min-height:200px;height:100%;text-align:center;white-space:pre;}.btnStd{font-size:3em;color:#696969;border:solid 4px #333;background-color:#acacac;width:100%;min-height:200px;height:100%;text-align:center;white-space:pre;}.btnDisabled{border:solid 2px #999;background-color:#dedede;text-align:center;background-image:-webkit-gradient(linear,left top,left bottom,from(#dedede),to(#999));background-image:-webkit-linear-gradient(#dedede,#999);background-image:-moz-linear-gradient(#dedede,#999);background-image:-ms-linear-gradient(#dedede,#999);background-image:-o-linear-gradient(#dedede,#999);background-image:linear-gradient(#dedede,#999);}.btnGialloGrad{border:solid 2px #a93;background-color:#fe6;text-align:center;background-image:-webkit-gradient(linear,left top,left bottom,from(#fe6),to(#a93));background-image:-webkit-linear-gradient(#fe6,#a93);background-image:-moz-linear-gradient(#fe6,#a93);background-image:-ms-linear-gradient(#fe6,#a93);background-image:-o-linear-gradient(#fe6,#a93);background-image:linear-gradient(#fe6,#a93);}.pad26{padding:2px 6px;}.textArancio{color:#fa3;}.textAzzurro{color:#36f;}.textNero{color:#000;}.textGrigio{color:#888;}.textVerde{color:#3a3;}.textRosso{color:#a33;}.badgeRosso{border:solid 2px #f00;background-color:#faa;width:100%;text-align:center;}.badgeStd{border:solid 2px #333;background-color:#eee;width:100%;text-align:center;}.badgeVerde{border:solid 2px #008000;background-color:#afa;width:100%;text-align:center;}.badgeArancio{border:solid 2px #980;background-color:#fe6;width:100%;text-align:center;}.rltUpdate{background-color:#ff3;}.ui-autocomplete{max-height:200px;overflow-y:auto;overflow-x:hidden;padding-right:20px;}li.static{margin:2px 4px 0 0;border-color:#cdcdcd;border-style:solid;border-width:1px 1px 0 1px;border-top-right-radius:4px;border-top-left-radius:4px;}.menuNav{background-color:#e6e6e6;color:#284e98;font-size:1em;border-top-right-radius:4px;border-top-left-radius:4px;}.menuNav:hover{background-color:#b5c7de;color:#000;}div>ul>li>a.selected.menuNav{background-color:#fff;color:#000;}.areaContMenu{background-color:#fff;padding:4px;border-color:#cdcdcd;border-style:solid;border-width:1px 1px 1px 1px;}.roundedCorner{-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;}.padStd{padding:4px;}.sfondoGrigio{background-color:#ececec;}.bordoGrigio{padding:4px;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;border:2px solid #818181;}.bordoVerde{padding:4px;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;border:2px solid #008000;}.bordoRosso{padding:4px;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;border:2px solid #f00;}.bordoNero{padding:4px;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;border:2px solid #000;background-color:#fff;}.bordoAzzurro{padding:4px;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;border:2px solid #4da3ff;}.placardGrigio{padding:4px;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;border:2px solid #818181;background-color:#ececec;}.docIcon{background-image:url(../images/download_s.png);background-repeat:no-repeat;background-position:right;padding:2px;padding-right:16px;min-height:16px;}.filtro_1{background-color:#88f;}.filtro_2{background-color:#aaf;}.filtro_2:hover{color:#88f;background-color:#dedeff;}.filtro_2 a:link{color:#fff;background-color:transparent;}.filtro_3{background-color:#ccf;}.filtro_4{background-color:#dedeff;}.filtro_5{background-color:#efefff;}.tabLabelGreen{background-color:#dfd;border-top:1px solid #393;border-left:1px solid #393;border-right:1px solid #393;height:1.5em;vertical-align:middle;padding-top:.5em;font-size:13pt;font-weight:bold;}.tabBodyGreen{background-color:#dfd;border-bottom:1px solid #008000;border-left:1px solid #008000;border-right:1px solid #008000;}.tabLabelGray{background-color:#dedede;border-top:1px solid #333;border-left:1px solid #333;border-right:1px solid #333;height:1.5em;vertical-align:middle;padding-top:.5em;font-size:13pt;font-weight:bold;}.tabBodyGray{background-color:#dedede;border-bottom:1px solid #000;border-left:1px solid #000;border-right:1px solid #000;}.fontTitolo{font-size:24pt;height:36px;}.fontMedio{font-size:16pt;}.fontStd{font-size:10pt;}.fontPiccolo{font-size:8pt;}.fontMini{font-size:7pt;}.fontMicro{font-size:6pt;}.labelInput{font-size:9pt;color:#555;}.watermark{color:#808080;font-style:italic;}.autocomplete{width:400px;color:#808080;background-color:#fff;font-size:8pt;padding:4px 1px 4px 1px;border-bottom:1px solid #888;}.autocompleteHiglight{width:400px;color:#000;background-color:#ff0;font-size:8pt;padding:4px 1px 4px 1px;border-bottom:1px solid #888;}.autocompleteElemID{width:400px;background-color:#f00;font-weight:bold;}.autocompleteListCssClass{width:400px;font-size:8pt;background-color:#fff;padding:2px 2px 2px 2px;border:1px solid #333;}.dataBlock{background-color:#fff;font-size:9pt;float:left;border-top:solid 1px #808080;border-bottom:solid 1px #808080;border-left:solid 1px #808080;border-right:solid 1px #808080;margin:0;padding:4px;vertical-align:text-top;text-align:left;}.dataBlockHeader{border-top:solid 2px #808080;border-bottom:solid 1px #808080;border-left:solid 2px #808080;border-right:solid 2px #808080;background-color:#efefef;font-weight:bold;padding:2px;}.dataBlockSx{float:left;text-align:left;}.dataBlockDx{float:right;text-align:right;}.dataBlockLabel{border-top:solid 1px #fefefe;padding-right:2px;padding-left:2px;}.dataBlockValue{color:#000;font-weight:bold;padding-right:4px;padding-left:4px;margin-bottom:0;}.dataBlockReset{clear:both;padding-bottom:2px;margin-bottom:2px;}.dataBlockResetGray{border-bottom:solid 1px #cecece;clear:both;padding-bottom:2px;margin-bottom:2px;}.dataBlockResetDark{border-bottom:solid 1px #363636;clear:both;padding-bottom:2px;margin-bottom:2px;}.dataBlockBtn{background-color:#fafafa;border:solid 1px #808080;padding-top:4px;padding-bottom:4px;vertical-align:text-top;margin:0;text-align:center;}.blockSizeSmallest{width:175px;}.blockSizeSmaller{width:200px;}.blockSizeSmall{width:225px;}.blockSizeMed{width:250px;}.blockSizeLarge{width:275px;}.blockSizeXLarge{width:300px;}.blockSizeXXLarge{width:350px;}.blockSizeXXXLarge{width:400px;}.grView{color:#333;font-size:8pt;padding-left:1px;padding-right:1px;padding-top:1px;padding-bottom:1px;}.ctrHeaderPager{background-color:#b8b8b8;font-weight:bold;color:#fff;}.ctrHeaderPagerRight{background-color:#b8b8b8;font-weight:bold;color:#fff;text-align:right;}.ctrHeaderPagerBlue{background-color:#507cd1;height:1px;}.ctrHeaderPagerBlueRight{background-color:#507cd1;height:1px;text-align:right;}.ctrFooter{background-color:#507cd1;font-weight:bold;color:#fff;}.ctrRowStyle{vertical-align:top;background-color:#eff3fb;}.valignMiddle{vertical-align:middle;}.lblErrore{color:#f00;}.lblGreen{color:#00a300;}.lblBlu{color:#33f;}.cTabRO{text-align:center;height:16px;border:solid 1px #777;}.cEmp{background-color:#d5d5d5;background-image:-webkit-gradient(linear,left top,left bottom,from(#f8fbff),to(#d5d5d5));background-image:-webkit-linear-gradient(#f8fbff,#d5d5d5);background-image:-moz-linear-gradient(#f8fbff,#d5d5d5);background-image:-ms-linear-gradient(#f8fbff,#d5d5d5);background-image:-o-linear-gradient(#f8fbff,#d5d5d5);background-image:linear-gradient(#f8fbff,#d5d5d5);}.cS01{background-color:#f8fbff;background-image:-webkit-gradient(linear,left top,left bottom,from(#ffff8e),to(#f8fbff));background-image:-webkit-linear-gradient(#ffff8e,#f8fbff);background-image:-moz-linear-gradient(#ffff8e,#f8fbff);background-image:-ms-linear-gradient(#ffff8e,#f8fbff);background-image:-o-linear-gradient(#ffff8e,#f8fbff);background-image:linear-gradient(#ffff8e,#f8fbff);}.cS02{background-color:#ffff8e;background-image:-webkit-gradient(linear,left top,left bottom,from(#ffff4d),to(#ffff8e));background-image:-webkit-linear-gradient(#ffff4d,#ffff8e);background-image:-moz-linear-gradient(#ffff4d,#ffff8e);background-image:-ms-linear-gradient(#ffff4d,#ffff8e);background-image:-o-linear-gradient(#ffff4d,#ffff8e);background-image:linear-gradient(#ffff4d,#ffff8e);color:#333;}.cS03{background-color:#ffff4d;background-image:-webkit-gradient(linear,left top,left bottom,from(#f1f100),to(#ffff4d));background-image:-webkit-linear-gradient(#f1f100,#ffff4d);background-image:-moz-linear-gradient(#f1f100,#ffff4d);background-image:-ms-linear-gradient(#f1f100,#ffff4d);background-image:-o-linear-gradient(#f1f100,#ffff4d);background-image:linear-gradient(#f1f100,#ffff4d);color:#333;}.cS04{background-color:#f1f100;background-image:-webkit-gradient(linear,left top,left bottom,from(#e4e400),to(#f1f100));background-image:-webkit-linear-gradient(#e4e400,#f1f100);background-image:-moz-linear-gradient(#e4e400,#f1f100);background-image:-ms-linear-gradient(#e4e400,#f1f100);background-image:-o-linear-gradient(#e4e400,#f1f100);background-image:linear-gradient(#e4e400,#f1f100);color:#333;}.cOvr{background-color:#e4e400;background-image:-webkit-gradient(linear,left top,left bottom,from(#caca00),to(#e4e400));background-image:-webkit-linear-gradient(#caca00,#e4e400);background-image:-moz-linear-gradient(#caca00,#e4e400);background-image:-ms-linear-gradient(#caca00,#e4e400);background-image:-o-linear-gradient(#caca00,#e4e400);background-image:linear-gradient(#caca00,#e4e400);}.cBia{font-weight:bold;height:20px;width:29px;align-content:center;}.selCel{background-color:#cbebff;border:dashed 2px #2af;text-align:center;}.cTab{text-align:center;height:20px;width:29px;align-content:center;border:solid 1px #777;}.cREmp{background-color:#c3c3c3;background-image:-webkit-gradient(linear,left top,left bottom,from(#f8fbff),to(#c3c3c3));background-image:-webkit-linear-gradient(#f8fbff,#c3c3c3);background-image:-moz-linear-gradient(#f8fbff,#c3c3c3);background-image:-ms-linear-gradient(#f8fbff,#c3c3c3);background-image:-o-linear-gradient(#f8fbff,#c3c3c3);background-image:linear-gradient(#f8fbff,#c3c3c3);}.cR01{background-color:#f8fbff;background-image:-webkit-gradient(linear,left top,left bottom,from(#90c4ff),to(#f8fbff));background-image:-webkit-linear-gradient(#90c4ff,#f8fbff);background-image:-moz-linear-gradient(#90c4ff,#f8fbff);background-image:-ms-linear-gradient(#90c4ff,#f8fbff);background-image:-o-linear-gradient(#90c4ff,#f8fbff);background-image:linear-gradient(#90c4ff,#f8fbff);}.cR02{background-color:#90c4ff;background-image:-webkit-gradient(linear,left top,left bottom,from(#76b8ff),to(#90c4ff));background-image:-webkit-linear-gradient(#76b8ff,#90c4ff);background-image:-moz-linear-gradient(#76b8ff,#90c4ff);background-image:-ms-linear-gradient(#76b8ff,#90c4ff);background-image:-o-linear-gradient(#76b8ff,#90c4ff);background-image:linear-gradient(#76b8ff,#90c4ff);color:#fff;}.cR03{background-color:#76b8ff;background-image:-webkit-gradient(linear,left top,left bottom,from(#5caaff),to(#76b8ff));background-image:-webkit-linear-gradient(#5caaff,#76b8ff);background-image:-moz-linear-gradient(#5caaff,#76b8ff);background-image:-ms-linear-gradient(#5caaff,#76b8ff);background-image:-o-linear-gradient(#5caaff,#76b8ff);background-image:linear-gradient(#5caaff,#76b8ff);color:#fff;}.cR04{background-color:#5caaff;background-image:-webkit-gradient(linear,left top,left bottom,from(#288eff),to(#5caaff));background-image:-webkit-linear-gradient(#288eff,#5caaff);background-image:-moz-linear-gradient(#288eff,#5caaff);background-image:-ms-linear-gradient(#288eff,#5caaff);background-image:-o-linear-gradient(#288eff,#5caaff);background-image:linear-gradient(#288eff,#5caaff);color:#fff;}.cROvr{background-color:#288eff;background-image:-webkit-gradient(linear,left top,left bottom,from(#3333d9),to(#288eff));background-image:-webkit-linear-gradient(#3333d9,#288eff);background-image:-moz-linear-gradient(#3333d9,#288eff);background-image:-ms-linear-gradient(#3333d9,#288eff);background-image:-o-linear-gradient(#3333d9,#288eff);background-image:linear-gradient(#3333d9,#288eff);color:#fff;}.cRBia{white-space:nowrap;margin:auto;vertical-align:middle;font-weight:bold;height:16px;padding:0 2px;}.cCent{text-align:center;}.selCelR{background-color:#cbebff;border:dashed 2px #2af;text-align:center;}.cTEmp{background-color:#c3c3c3;background-image:-webkit-gradient(linear,left top,left bottom,from(#f8fbff),to(#c3c3c3));background-image:-webkit-linear-gradient(#f8fbff,#c3c3c3);background-image:-moz-linear-gradient(#f8fbff,#c3c3c3);background-image:-ms-linear-gradient(#f8fbff,#c3c3c3);background-image:-o-linear-gradient(#f8fbff,#c3c3c3);background-image:linear-gradient(#f8fbff,#c3c3c3);}.cTUnd{background-color:#ffb769;background-image:-webkit-gradient(linear,left top,left bottom,from(#ff851b),to(#ffb769));background-image:-webkit-linear-gradient(#ff851b,#ffb769);background-image:-moz-linear-gradient(#ff851b,#ffb769);background-image:-ms-linear-gradient(#ff851b,#ffb769);background-image:-o-linear-gradient(#ff851b,#ffb769);background-image:linear-gradient(#ff851b,#ffb769);color:#666;}.cTOk{background-color:#1bff1b;background-image:-webkit-gradient(linear,left top,left bottom,from(#009800),to(#1bff1b));background-image:-webkit-linear-gradient(#009800,#1bff1b);background-image:-moz-linear-gradient(#009800,#1bff1b);background-image:-ms-linear-gradient(#009800,#1bff1b);background-image:-o-linear-gradient(#009800,#1bff1b);background-image:linear-gradient(#009800,#1bff1b);color:#ff0;}.cTOvr{background-color:#ff871b;background-image:-webkit-gradient(linear,left top,left bottom,from(#c12424),to(#ff871b));background-image:-webkit-linear-gradient(#c12424,#ff871b);background-image:-moz-linear-gradient(#c12424,#ff871b);background-image:-ms-linear-gradient(#c12424,#ff871b);background-image:-o-linear-gradient(#c12424,#ff871b);background-image:linear-gradient(#c12424,#ff871b);color:#f6f6f6;}.cTBia{text-align:center;font-weight:bold;height:20px;padding:0 2px;}.selCelT{background-color:#cbebff;border:dashed 2px #2af;text-align:center;} \ No newline at end of file +html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-weight:inherit;font-style:inherit;font-family:Verdana,Arial;}:focus{outline:0;}body{line-height:1;color:#000;background:#fff;}ol,ul{list-style:none;}table{border-collapse:collapse;border-spacing:0;}caption,th,td{text-align:left;font-weight:normal;}blockquote:before,blockquote:after,q:before,q:after{content:"";}blockquote,q{quotes:"" "";}.fullscreen{display:block;top:0;left:0;width:100%;height:100%;}.bottomWrite{vertical-align:bottom;border-top:#0d0083 1px solid;margin-top:2px;padding-top:2px;}.smallText{font-size:8pt;}.lblBox{font-size:.8em;border:1px solid #0a64a4;background-color:#b8e1fd;padding:0 4px;line-height:1.6em;}.GridPager a,.GridPager span{display:block;height:1.6em;width:2em;text-align:center;text-decoration:none;}.GridPager a{background-color:#f5f5f5;color:#969696;}.GridPager a:hover{background-color:#b8e1fd;color:#000;}.GridPager span{background-color:#a1dcf2;color:#000;font-weight:bold;}.imgNoPad{margin-top:-3px;margin-bottom:-7px;}.imgHead{margin:0;vertical-align:top;}.ui-dialog{padding:.2em;overflow:hidden;-moz-box-shadow:0 5px 10px rgba(0,0,0,.8);-webkit-box-shadow:0 5px 10px rgba(0,0,0,.8);box-shadow:0 5px 10px rgba(0,0,0,.8);}.ui-dialog .ui-dialog-titlebar{padding:.5em 1em .3em;position:relative;}.ui-dialog .ui-dialog-title{float:left;margin:.1em 16px .2em 0;}.ui-dialog .ui-dialog-titlebar-close{position:absolute;right:.3em;top:50%;width:19px;margin:-10px 0 0 0;padding:1px;height:18px;-moz-border-radius:10px;}.ui-dialog .ui-dialog-titlebar-close span{display:block;margin:1px;}.ui-dialog .ui-dialog-titlebar-close:hover,.ui-dialog .ui-dialog-titlebar-close:focus{padding:0;}.ui-dialog .ui-dialog-content{position:relative;border:0;padding:.5em 1em;background:none;overflow:auto;zoom:1;}.ui-dialog .ui-dialog-buttonpane{text-align:left;border-width:1px 0 0 0;background-image:none;margin:.5em 0 0 0;padding:.3em 1em .5em .4em;}.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{float:right;}.ui-dialog .ui-dialog-buttonpane button{margin:.5em .4em .5em 0;cursor:pointer;}.ui-dialog .ui-resizable-se{width:14px;height:14px;right:3px;bottom:3px;}.ui-draggable .ui-dialog-titlebar{cursor:move;}.ui-dialog{padding:0;}.ui-dialog .ui-dialog-titlebar{border-top:none;border-right:none;border-left:none;-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;}.ui-widget-sw{font-family:Arial,sans-serif;font-size:1.1em;}.ui-widget-sw .ui-widget-sw{font-size:1em;}.ui-widget-sw input,.ui-widget-sw select,.ui-widget-sw textarea,.ui-widget-sw button{font-family:Arial,sans-serif;font-size:1em;}.ui-widget-sw-content{border:1px solid #a8a8a8;background:#fff;color:#4f4f4f;}.ui-widget-sw-header{border:1px solid #a8a8a8;background:#c0c0c0 url('../images/ui-bg_highlight-soft_100_c0c0c0_1x100.png') repeat-x 50% top;color:#333;font-weight:bold;text-shadow:0 1px 0 rgba(255,255,255,.7);}.ui-widget-sw-header a{color:#4f4f4f;}.areaTitolo{background-color:#0a64a4;background-image:url('../images/bg-menu-main.png');background-repeat:repeat-x;color:#ececec;}.priCol-1{background-color:#00b060;}.priCol-2{background-color:#218457;}.priCol-3{background-color:#00733e;}.priCol-4{background-color:#36d88e;}.priCol-5{background-color:#c3ffe4;}.secColA-1{background-color:#2d9eff;background-image:-webkit-gradient(linear,left top,left bottom,from(#0a64a4),to(#4481df));background-image:-webkit-linear-gradient(#0a64a4,#4481df);background-image:-moz-linear-gradient(#0a64a4,#4481df);background-image:-ms-linear-gradient(#0a64a4,#4481df);background-image:-o-linear-gradient(#0a64a4,#4481df);background-image:linear-gradient(#0a64a4,#4481df);}.secColA-2{background-color:#24577b;}.secColA-3{background-color:#03406a;}.secColA-4{background-image:-webkit-gradient(linear,left top,left bottom,from(#4683ff),to(#2461bf));background-image:-webkit-linear-gradient(#4683ff,#2461bf);background-image:-moz-linear-gradient(#4683ff,#2461bf);background-image:-ms-linear-gradient(#4683ff,#2461bf);background-image:-o-linear-gradient(#4683ff,#2461bf);background-image:linear-gradient(#4683ff,#2461bf);}.secColA-5{background-image:-webkit-gradient(linear,left top,left bottom,from(#b8e1fd),to(#2461bf));background-image:-webkit-linear-gradient(#b8e1fd,#2461bf);background-image:-moz-linear-gradient(#b8e1fd,#2461bf);background-image:-ms-linear-gradient(#b8e1fd,#2461bf);background-image:-o-linear-gradient(#b8e1fd,#2461bf);background-image:linear-gradient(#b8e1fd,#2461bf);}.secColB-1{background-color:#ff9000;}.secColB-2{background-color:#bf8130;}.secColB-3{background-color:#a65e00;}.secColB-4{background-color:#ffac40;}.secColB-5{background-color:#fdd7a6;}.comCol-1{background-color:#ff4500;}.comCol-2{background-color:#bf5730;}.comCol-3{background-color:#a62d00;}.comCol-4{background-color:#ff7340;}.comCol-5{background-color:#ffcebc;}.lightBlue{border:1px solid #cdcdcd;background-image:-webkit-gradient(linear,left top,left bottom,from(#ddf),to(#e1f1ff));background-image:-webkit-linear-gradient(#ddf,#e1f1ff);background-image:-moz-linear-gradient(#ddf,#e1f1ff);background-image:-ms-linear-gradient(#ddf,#e1f1ff);background-image:-o-linear-gradient(#ddf,#e1f1ff);background-image:linear-gradient(#ddf,#e1f1ff);}.lightGray{background-image:-webkit-gradient(linear,left top,left bottom,from(white),to(#f1f1f1));background-image:-webkit-linear-gradient(white,#f1f1f1);background-image:-moz-linear-gradient(white,#f1f1f1);background-image:-ms-linear-gradient(white,#f1f1f1);background-image:-o-linear-gradient(white,#f1f1f1);background-image:linear-gradient(white,#f1f1f1);border:1px solid #cdcdcd;}.headerStyle{background-color:#507cd1;font-weight:bold;color:#fff;white-space:nowrap;}.footeStyle{background-color:#507cd1;font-weight:bold;color:#fff;white-space:nowrap;}.footerRowStyle{background-image:-webkit-gradient(linear,left top,left bottom,from(#ff7a00),to(#cc3800));background-image:-webkit-linear-gradient(#ff7a00,#cc3800);background-image:-moz-linear-gradient(#ff7a00,#cc3800);background-image:-ms-linear-gradient(#ff7a00,#cc3800);background-image:-o-linear-gradient(#ff7a00,#cc3800);background-image:linear-gradient(#ff7a00,#cc3800);}.pagerStyle{background-color:#2461bf;color:#fff;white-space:nowrap;text-align:center;margin:auto;font-size:medium;}.rowStyle{background-image:-webkit-gradient(linear,left top,left bottom,from(white),to(#f1f1f1));background-image:-webkit-linear-gradient(white,#f1f1f1);background-image:-moz-linear-gradient(white,#f1f1f1);background-image:-ms-linear-gradient(white,#f1f1f1);background-image:-o-linear-gradient(white,#f1f1f1);background-image:linear-gradient(white,#f1f1f1);border:1px solid #cdcdcd;}.alternatingRowStyle{border:1px solid #cdcdcd;background-image:-webkit-gradient(linear,left top,left bottom,from(#ddf),to(#e1f1ff));background-image:-webkit-linear-gradient(#ddf,#e1f1ff);background-image:-moz-linear-gradient(#ddf,#e1f1ff);background-image:-ms-linear-gradient(#ddf,#e1f1ff);background-image:-o-linear-gradient(#ddf,#e1f1ff);background-image:linear-gradient(#ddf,#e1f1ff);}.editRowStyle{border:1px solid #5282de;background-image:-webkit-gradient(linear,left top,left bottom,from(#e2ebff),to(#94b4ea));background-image:-webkit-linear-gradient(#e2ebff,#94b4ea);background-image:-moz-linear-gradient(#e2ebff,#94b4ea);background-image:-ms-linear-gradient(#e2ebff,#94b4ea);background-image:-o-linear-gradient(#e2ebff,#94b4ea);background-image:linear-gradient(#e2ebff,#94b4ea);}.selectedRowStyle{background-image:-webkit-gradient(linear,left top,left bottom,from(#dfd),to(#80ff80));background-image:-webkit-linear-gradient(#dfd,#80ff80);background-image:-moz-linear-gradient(#dfd,#80ff80);background-image:-ms-linear-gradient(#dfd,#80ff80);background-image:-o-linear-gradient(#dfd,#80ff80);background-image:linear-gradient(#dfd,#80ff80);font-weight:bold;}.sortAscHead{background-color:#6d95e1;}.sortDescHead{background-color:#4870be;}.sortAscCell{background-color:#f5f7fb;}.sortDescCell{background-color:#e9ebef;}.divTitoloAdmin{background-color:#bf8130;padding:5px 0 5px 5px;color:#fff;}A:hover{color:#f00;}.float-left{float:left;}.float-right{float:right;}.divSx{float:left;}.divDx{float:right;}.divCenter{float:none;text-align:center;padding:0;margin:0 auto 0 auto;}.clearDiv{clear:both;}.padSxDx{padding-left:2px;padding-right:2px;}.shadowBox{-moz-box-shadow:0 4px 8px rgba(0,0,0,.5);-webkit-box-shadow:0 4px 8px rgba(0,0,0,.5);box-shadow:0 4px 8px rgba(0,0,0,.5);}.half{width:50%;}.third{width:33%;}.quarter{width:25%;}.fifth{width:20%;}.modalBackground{background-color:#808080;filter:alpha(opacity=70);opacity:.7;}.btnNew{background-image:url(../images/new_m.png);background-repeat:no-repeat;background-position:right;border:1px solid #333;padding:4px;padding-right:28px;}.btnPinned{background-image:url(../images/pin_m.png);background-repeat:no-repeat;background-position:right;border:1px solid #333;padding:4px;padding-right:28px;}.btnPinnedDis{background-image:url(../images/pinDis_m.png);background-repeat:no-repeat;background-position:right;border:1px solid #333;padding:4px;padding-right:28px;}.btnDelete{background-image:url(../images/elimina_m.png);background-repeat:no-repeat;background-position:right;border:1px solid #333;padding:4px;padding-right:28px;}.btnUpdate{background-image:url(../images/reload_l.png);background-repeat:no-repeat;background-position:center right;background-color:#dedede;width:160px;height:40px;border:1px solid #333;vertical-align:middle;margin:auto;font-size:10pt;font-family:Arial;}.btnMoveBig{background-image:url(../images/InOutArrows_l.png);background-repeat:no-repeat;background-position:right;border:1px solid #333;padding:8px;padding-right:32px;}.btnEditBig{background-image:url(../images/edit_l.png);background-repeat:no-repeat;background-position:right;border:1px solid #333;padding:4px;padding-right:28px;}.btnEdit{background-image:url(../images/edit_m.png);background-repeat:no-repeat;background-position:right;border:1px solid #333;padding:4px;padding-right:28px;}.btnClonaBig{background-image:url(../images/clonaObj_l.png);background-repeat:no-repeat;background-position:right;border:1px solid #333;padding:4px;padding-right:28px;}.btnClona{background-image:url(../images/clonaObj_m.png);background-repeat:no-repeat;background-position:right;border:1px solid #333;padding:4px;padding-right:28px;}.btnEmail{background-image:url(../images/email_l.png);background-repeat:no-repeat;background-position:right;border:1px solid #333;padding:4px;padding-right:38px;}.btnRosso{border:solid 2px #f00;background-color:#faa;width:100%;text-align:center;}.btnRossoGrad{border:solid 2px #f00;background-color:#faa;text-align:center;background-image:-webkit-gradient(linear,left top,left bottom,from(#faa),to(red));background-image:-webkit-linear-gradient(#faa,red);background-image:-moz-linear-gradient(#faa,red);background-image:-ms-linear-gradient(#faa,red);background-image:-o-linear-gradient(#faa,red);background-image:linear-gradient(#faa,red);}.btnArancio{border:solid 2px #e48800;background-color:#ffb44d;width:100%;text-align:center;}.btnArancioGrad{border:solid 2px #e48800;background-color:#ffb44d;text-align:center;background-image:-webkit-gradient(linear,left top,left bottom,from(#ffb44d),to(#e48800));background-image:-webkit-linear-gradient(#ffb44d,#e48800);background-image:-moz-linear-gradient(#ffb44d,#e48800);background-image:-ms-linear-gradient(#ffb44d,#e48800);background-image:-o-linear-gradient(#ffb44d,#e48800);background-image:linear-gradient(#ffb44d,#e48800);}.btnVerde{border:solid 2px #008000;background-color:#afa;width:100%;text-align:center;}.btnVerdeGrad{border:solid 2px #008000;background-color:#afa;text-align:center;background-image:-webkit-gradient(linear,left top,left bottom,from(#afa),to(green));background-image:-webkit-linear-gradient(#afa,green);background-image:-moz-linear-gradient(#afa,green);background-image:-ms-linear-gradient(#afa,green);background-image:-o-linear-gradient(#afa,green);background-image:linear-gradient(#afa,green);}.btnBlu{border:solid 2px #00f;background-color:#aaf;width:100%;text-align:center;}.btnPreferred{font-size:3em;border:solid 4px #f00;background-color:#ffacac;width:100%;min-height:200px;height:100%;text-align:center;white-space:pre;}.btnStd{font-size:3em;color:#696969;border:solid 4px #333;background-color:#acacac;width:100%;min-height:200px;height:100%;text-align:center;white-space:pre;}.btnDisabled{border:solid 2px #999;background-color:#dedede;text-align:center;background-image:-webkit-gradient(linear,left top,left bottom,from(#dedede),to(#999));background-image:-webkit-linear-gradient(#dedede,#999);background-image:-moz-linear-gradient(#dedede,#999);background-image:-ms-linear-gradient(#dedede,#999);background-image:-o-linear-gradient(#dedede,#999);background-image:linear-gradient(#dedede,#999);}.btnGialloGrad{border:solid 2px #a93;background-color:#fe6;text-align:center;background-image:-webkit-gradient(linear,left top,left bottom,from(#fe6),to(#a93));background-image:-webkit-linear-gradient(#fe6,#a93);background-image:-moz-linear-gradient(#fe6,#a93);background-image:-ms-linear-gradient(#fe6,#a93);background-image:-o-linear-gradient(#fe6,#a93);background-image:linear-gradient(#fe6,#a93);}.pad26{padding:2px 6px;}.textArancio{color:#fa3;}.textAzzurro{color:#36f;}.textNero{color:#000;}.textGrigio{color:#888;}.textVerde{color:#3a3;}.textRosso{color:#a33;}.badgeRosso{border:solid 2px #f00;background-color:#faa;width:100%;text-align:center;}.badgeStd{border:solid 2px #333;background-color:#eee;width:100%;text-align:center;}.badgeVerde{border:solid 2px #008000;background-color:#afa;width:100%;text-align:center;}.badgeArancio{border:solid 2px #980;background-color:#fe6;width:100%;text-align:center;}.rltUpdate{background-color:whiteF33;}.ui-autocomplete{max-height:200px;overflow-y:auto;overflow-x:hidden;padding-right:20px;}li.static{margin:2px 4px 0 0;border-color:#cdcdcd;border-style:solid;border-width:1px 1px 0 1px;border-top-right-radius:4px;border-top-left-radius:4px;}.menuNav{background-color:#e6e6e6;color:#284e98;font-size:1em;border-top-right-radius:4px;border-top-left-radius:4px;}.menuNav:hover{background-color:#b5c7de;color:#000;}div>ul>li>a.selected.menuNav{background-color:#fff;color:#000;}.areaContMenu{background-color:#fff;padding:4px;border-color:#cdcdcd;border-style:solid;border-width:1px 1px 1px 1px;}.roundedCorner{-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;}.padStd{padding:4px;}.sfondoGrigio{background-color:#ececec;}.bordoGrigio{padding:4px;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;border:2px solid #818181;}.bordoVerde{padding:4px;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;border:2px solid #008000;}.bordoRosso{padding:4px;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;border:2px solid #f00;}.bordoNero{padding:4px;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;border:2px solid #000;background-color:#fff;}.bordoAzzurro{padding:4px;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;border:2px solid #4da3ff;}.placardGrigio{padding:4px;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;border:2px solid #818181;background-color:#ececec;}.docIcon{background-image:url(../images/download_s.png);background-repeat:no-repeat;background-position:right;padding:2px;padding-right:16px;min-height:16px;}.filtro_1{background-color:#88f;}.filtro_2{background-color:#aaf;}.filtro_2:hover{color:#88f;background-color:#dedeff;}.filtro_2 a:link{color:#fff;background-color:transparent;}.filtro_3{background-color:#ccf;}.filtro_4{background-color:#dedeff;}.filtro_5{background-color:#efefff;}.tabLabelGreen{background-color:#dfd;border-top:1px solid #393;border-left:1px solid #393;border-right:1px solid #393;height:1.5em;vertical-align:middle;padding-top:.5em;font-size:13pt;font-weight:bold;}.tabBodyGreen{background-color:#dfd;border-bottom:1px solid #008000;border-left:1px solid #008000;border-right:1px solid #008000;}.tabLabelGray{background-color:#dedede;border-top:1px solid #333;border-left:1px solid #333;border-right:1px solid #333;height:1.5em;vertical-align:middle;padding-top:.5em;font-size:13pt;font-weight:bold;}.tabBodyGray{background-color:#dedede;border-bottom:1px solid #000;border-left:1px solid #000;border-right:1px solid #000;}.fontTitolo{font-size:24pt;height:36px;}.fontMedio{font-size:16pt;}.fontStd{font-size:10pt;}.fontPiccolo{font-size:8pt;}.fontMini{font-size:7pt;}.fontMicro{font-size:6pt;}.labelInput{font-size:9pt;color:#555;}.watermark{color:#808080;font-style:italic;}.autocomplete{width:400px;color:#808080;background-color:#fff;font-size:8pt;padding:4px 1px 4px 1px;border-bottom:1px solid #888;}.autocompleteHiglight{width:400px;color:#000;background-color:#ff0;font-size:8pt;padding:4px 1px 4px 1px;border-bottom:1px solid #888;}.autocompleteElemID{width:400px;background-color:#f00;font-weight:bold;}.autocompleteListCssClass{width:400px;font-size:8pt;background-color:#fff;padding:2px 2px 2px 2px;border:1px solid #333;}.dataBlock{background-color:#fff;font-size:9pt;float:left;border-top:solid 1px #808080;border-bottom:solid 1px #808080;border-left:solid 1px #808080;border-right:solid 1px #808080;margin:0;padding:4px;vertical-align:text-top;text-align:left;}.dataBlockHeader{border-top:solid 2px #808080;border-bottom:solid 1px #808080;border-left:solid 2px #808080;border-right:solid 2px #808080;background-color:#efefef;font-weight:bold;padding:2px;}.dataBlockSx{float:left;text-align:left;}.dataBlockDx{float:right;text-align:right;}.dataBlockLabel{border-top:solid 1px #fefefe;padding-right:2px;padding-left:2px;}.dataBlockValue{color:#000;font-weight:bold;padding-right:4px;padding-left:4px;margin-bottom:0;}.dataBlockReset{clear:both;padding-bottom:2px;margin-bottom:2px;}.dataBlockResetGray{border-bottom:solid 1px #cecece;clear:both;padding-bottom:2px;margin-bottom:2px;}.dataBlockResetDark{border-bottom:solid 1px #363636;clear:both;padding-bottom:2px;margin-bottom:2px;}.dataBlockBtn{background-color:#fafafa;border:solid 1px #808080;padding-top:4px;padding-bottom:4px;vertical-align:text-top;margin:0;text-align:center;}.blockSizeSmallest{width:175px;}.blockSizeSmaller{width:200px;}.blockSizeSmall{width:225px;}.blockSizeMed{width:250px;}.blockSizeLarge{width:275px;}.blockSizeXLarge{width:300px;}.blockSizeXXLarge{width:350px;}.blockSizeXXXLarge{width:400px;}.grView{color:#333;font-size:8pt;padding:1px;}.ctrHeaderPager{background-color:#b8b8b8;font-weight:bold;color:#fff;}.ctrHeaderPagerRight{background-color:#b8b8b8;font-weight:bold;color:#fff;text-align:right;}.ctrHeaderPagerBlue{background-color:#507cd1;height:1px;}.ctrHeaderPagerBlueRight{background-color:#507cd1;height:1px;text-align:right;}.ctrFooter{background-color:#507cd1;font-weight:bold;color:#fff;}.ctrRowStyle{vertical-align:top;background-color:#eff3fb;}.valignMiddle{vertical-align:middle;}.lblErrore{color:#f00;}.lblGreen{color:#00a300;}.lblBlu{color:#333;}.cTabRO{text-align:center;height:16px;border:solid 1px #777;}.cEmp{background-color:#d5d5d5;background-image:-webkit-gradient(linear,left top,left bottom,from(#f8fbff),to(#d5d5d5));background-image:-webkit-linear-gradient(#f8fbff,#d5d5d5);background-image:-moz-linear-gradient(#f8fbff,#d5d5d5);background-image:-ms-linear-gradient(#f8fbff,#d5d5d5);background-image:-o-linear-gradient(#f8fbff,#d5d5d5);background-image:linear-gradient(#f8fbff,#d5d5d5);}.cS01{background-color:#f8fbff;background-image:-webkit-gradient(linear,left top,left bottom,from(#ffff8e),to(#f8fbff));background-image:-webkit-linear-gradient(#ffff8e,#f8fbff);background-image:-moz-linear-gradient(#ffff8e,#f8fbff);background-image:-ms-linear-gradient(#ffff8e,#f8fbff);background-image:-o-linear-gradient(#ffff8e,#f8fbff);background-image:linear-gradient(#ffff8e,#f8fbff);}.cS02{background-color:#ffff8e;background-image:-webkit-gradient(linear,left top,left bottom,from(#ffff4d),to(#ffff8e));background-image:-webkit-linear-gradient(#ffff4d,#ffff8e);background-image:-moz-linear-gradient(#ffff4d,#ffff8e);background-image:-ms-linear-gradient(#ffff4d,#ffff8e);background-image:-o-linear-gradient(#ffff4d,#ffff8e);background-image:linear-gradient(#ffff4d,#ffff8e);color:#333;}.cS03{background-color:#ffff4d;background-image:-webkit-gradient(linear,left top,left bottom,from(#f1f100),to(#ffff4d));background-image:-webkit-linear-gradient(#f1f100,#ffff4d);background-image:-moz-linear-gradient(#f1f100,#ffff4d);background-image:-ms-linear-gradient(#f1f100,#ffff4d);background-image:-o-linear-gradient(#f1f100,#ffff4d);background-image:linear-gradient(#f1f100,#ffff4d);color:#333;}.cS04{background-color:#f1f100;background-image:-webkit-gradient(linear,left top,left bottom,from(#e4e400),to(#f1f100));background-image:-webkit-linear-gradient(#e4e400,#f1f100);background-image:-moz-linear-gradient(#e4e400,#f1f100);background-image:-ms-linear-gradient(#e4e400,#f1f100);background-image:-o-linear-gradient(#e4e400,#f1f100);background-image:linear-gradient(#e4e400,#f1f100);color:#333;}.cOvr{background-color:#e4e400;background-image:-webkit-gradient(linear,left top,left bottom,from(#caca00),to(#e4e400));background-image:-webkit-linear-gradient(#caca00,#e4e400);background-image:-moz-linear-gradient(#caca00,#e4e400);background-image:-ms-linear-gradient(#caca00,#e4e400);background-image:-o-linear-gradient(#caca00,#e4e400);background-image:linear-gradient(#caca00,#e4e400);}.cBia{height:20px;width:32px;-ms-align-content:center;-webkit-align-content:center;align-content:center;}.selCel{background-color:#cbebff;border:dashed 2px #2af;text-align:center;}.baseLock{text-align:center;text-decoration:none;}.baseLock a{text-decoration:none;color:#fff;}.baseLock a:link{text-decoration:underline;color:#000;}.lockCol{text-align:center;text-decoration:none;background-color:#288eff;}.lockCol a{text-decoration:none;color:#fff;}.lockCol a:link{text-decoration:underline;color:#000;}.myLock{text-align:center;text-decoration:none;background-color:#1bff1b;}.myLock a{text-decoration:none;color:#fff;}.myLock a:link{text-decoration:underline;color:#000;}.cTab{text-align:center;height:20px;width:32px;-ms-align-content:center;-webkit-align-content:center;align-content:center;border:solid 1px #777;}.cREmp{background-color:#c3c3c3;background-image:-webkit-gradient(linear,left top,left bottom,from(#f8fbff),to(#c3c3c3));background-image:-webkit-linear-gradient(#f8fbff,#c3c3c3);background-image:-moz-linear-gradient(#f8fbff,#c3c3c3);background-image:-ms-linear-gradient(#f8fbff,#c3c3c3);background-image:-o-linear-gradient(#f8fbff,#c3c3c3);background-image:linear-gradient(#f8fbff,#c3c3c3);}.cR01{background-color:#f8fbff;background-image:-webkit-gradient(linear,left top,left bottom,from(#90c4ff),to(#f8fbff));background-image:-webkit-linear-gradient(#90c4ff,#f8fbff);background-image:-moz-linear-gradient(#90c4ff,#f8fbff);background-image:-ms-linear-gradient(#90c4ff,#f8fbff);background-image:-o-linear-gradient(#90c4ff,#f8fbff);background-image:linear-gradient(#90c4ff,#f8fbff);}.cR02{background-color:#90c4ff;background-image:-webkit-gradient(linear,left top,left bottom,from(#76b8ff),to(#90c4ff));background-image:-webkit-linear-gradient(#76b8ff,#90c4ff);background-image:-moz-linear-gradient(#76b8ff,#90c4ff);background-image:-ms-linear-gradient(#76b8ff,#90c4ff);background-image:-o-linear-gradient(#76b8ff,#90c4ff);background-image:linear-gradient(#76b8ff,#90c4ff);color:#fff;}.cR03{background-color:#76b8ff;background-image:-webkit-gradient(linear,left top,left bottom,from(#5caaff),to(#76b8ff));background-image:-webkit-linear-gradient(#5caaff,#76b8ff);background-image:-moz-linear-gradient(#5caaff,#76b8ff);background-image:-ms-linear-gradient(#5caaff,#76b8ff);background-image:-o-linear-gradient(#5caaff,#76b8ff);background-image:linear-gradient(#5caaff,#76b8ff);color:#fff;}.cR04{background-color:#5caaff;background-image:-webkit-gradient(linear,left top,left bottom,from(#288eff),to(#5caaff));background-image:-webkit-linear-gradient(#288eff,#5caaff);background-image:-moz-linear-gradient(#288eff,#5caaff);background-image:-ms-linear-gradient(#288eff,#5caaff);background-image:-o-linear-gradient(#288eff,#5caaff);background-image:linear-gradient(#288eff,#5caaff);color:#fff;}.cROvr{background-color:#288eff;background-image:-webkit-gradient(linear,left top,left bottom,from(#3333d9),to(#288eff));background-image:-webkit-linear-gradient(#3333d9,#288eff);background-image:-moz-linear-gradient(#3333d9,#288eff);background-image:-ms-linear-gradient(#3333d9,#288eff);background-image:-o-linear-gradient(#3333d9,#288eff);background-image:linear-gradient(#3333d9,#288eff);color:#fff;}.cRBia{white-space:nowrap;margin:auto;vertical-align:middle;font-weight:bold;height:16px;padding:0 2px;}.cCent{text-align:center;}.selCelR{background-color:#cbebff;border:dashed 2px #2af;text-align:center;}.cTEmp{background-color:#c3c3c3;background-image:-webkit-gradient(linear,left top,left bottom,from(#f8fbff),to(#c3c3c3));background-image:-webkit-linear-gradient(#f8fbff,#c3c3c3);background-image:-moz-linear-gradient(#f8fbff,#c3c3c3);background-image:-ms-linear-gradient(#f8fbff,#c3c3c3);background-image:-o-linear-gradient(#f8fbff,#c3c3c3);background-image:linear-gradient(#f8fbff,#c3c3c3);}.cTUnd{background-color:#ffb769;background-image:-webkit-gradient(linear,left top,left bottom,from(#ff851b),to(#ffb769));background-image:-webkit-linear-gradient(#ff851b,#ffb769);background-image:-moz-linear-gradient(#ff851b,#ffb769);background-image:-ms-linear-gradient(#ff851b,#ffb769);background-image:-o-linear-gradient(#ff851b,#ffb769);background-image:linear-gradient(#ff851b,#ffb769);color:#666;}.cTOk{background-color:#1bff1b;background-image:-webkit-gradient(linear,left top,left bottom,from(#009800),to(#1bff1b));background-image:-webkit-linear-gradient(#009800,#1bff1b);background-image:-moz-linear-gradient(#009800,#1bff1b);background-image:-ms-linear-gradient(#009800,#1bff1b);background-image:-o-linear-gradient(#009800,#1bff1b);background-image:linear-gradient(#009800,#1bff1b);color:#ff0;}.cTOvr{background-color:#ff871b;background-image:-webkit-gradient(linear,left top,left bottom,from(#c12424),to(#ff871b));background-image:-webkit-linear-gradient(#c12424,#ff871b);background-image:-moz-linear-gradient(#c12424,#ff871b);background-image:-ms-linear-gradient(#c12424,#ff871b);background-image:-o-linear-gradient(#c12424,#ff871b);background-image:linear-gradient(#c12424,#ff871b);color:#f6f6f6;}.cTBia{text-align:center;font-weight:bold;height:20px;padding:0 2px;}.selCelT{background-color:#cbebff;border:dashed 2px #2af;text-align:center;} \ No newline at end of file diff --git a/PROJ-ETS/PROJ-ETS/Default.aspx.cs b/PROJ-ETS/PROJ-ETS/Default.aspx.cs index 63fd8b3..c244457 100644 --- a/PROJ-ETS/PROJ-ETS/Default.aspx.cs +++ b/PROJ-ETS/PROJ-ETS/Default.aspx.cs @@ -14,10 +14,15 @@ namespace PROJ_ETS protected void Page_Load(object sender, EventArgs e) { Logger lg = LogManager.GetCurrentClassLogger(); + // resetto utente e diritti + //Session.RemoveAll(); + user_std.UtSn.logOffUtente(); + + // loggo e faccio login... lg.Info("User login: {0} ({1})", utils.obj.currUserCognomeNome, utils.obj.currUserAD); - // rimando a gestione documenti - Response.Redirect("~/Menu"); + // rimando a menu + Response.Redirect("~/Login"); } } } \ No newline at end of file diff --git a/PROJ-ETS/PROJ-ETS/PROJ-ETS.csproj b/PROJ-ETS/PROJ-ETS/PROJ-ETS.csproj index 7e2e6b7..0a951c2 100644 --- a/PROJ-ETS/PROJ-ETS/PROJ-ETS.csproj +++ b/PROJ-ETS/PROJ-ETS/PROJ-ETS.csproj @@ -464,11 +464,14 @@ + + + @@ -704,6 +707,13 @@ WS_Data.asmx Component + + Setup.aspx + ASPXCodeBehind + + + Setup.aspx + Site.Mobile.Master ASPXCodeBehind @@ -718,6 +728,13 @@ SpostaCommesse.aspx + + Execute.aspx + ASPXCodeBehind + + + Execute.aspx + Test.aspx ASPXCodeBehind @@ -760,6 +777,13 @@ Site.Master + + mod_AnagLabels.ascx + ASPXCodeBehind + + + mod_AnagLabels.ascx + mod_autocomplete.ascx ASPXCodeBehind diff --git a/PROJ-ETS/PROJ-ETS/Progetti.sitemap b/PROJ-ETS/PROJ-ETS/Progetti.sitemap index 806fc02..7a4f9cf 100644 --- a/PROJ-ETS/PROJ-ETS/Progetti.sitemap +++ b/PROJ-ETS/PROJ-ETS/Progetti.sitemap @@ -8,6 +8,7 @@ - + + diff --git a/PROJ-ETS/PROJ-ETS/Setup.aspx b/PROJ-ETS/PROJ-ETS/Setup.aspx new file mode 100644 index 0000000..0219103 --- /dev/null +++ b/PROJ-ETS/PROJ-ETS/Setup.aspx @@ -0,0 +1,8 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/Progetti.master" AutoEventWireup="true" CodeBehind="Setup.aspx.cs" Inherits="PROJ_ETS.Setup" %> + +<%@ Register Src="~/WebUserControls/mod_AnagLabels.ascx" TagPrefix="uc1" TagName="mod_AnagLabels" %> + + +

Gestione Labels

+ +
diff --git a/PROJ-ETS/PROJ-ETS/Setup.aspx.cs b/PROJ-ETS/PROJ-ETS/Setup.aspx.cs new file mode 100644 index 0000000..99513d2 --- /dev/null +++ b/PROJ-ETS/PROJ-ETS/Setup.aspx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace PROJ_ETS +{ + public partial class Setup : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/PROJ-ETS/PROJ-ETS/Setup.aspx.designer.cs b/PROJ-ETS/PROJ-ETS/Setup.aspx.designer.cs new file mode 100644 index 0000000..8f99c22 --- /dev/null +++ b/PROJ-ETS/PROJ-ETS/Setup.aspx.designer.cs @@ -0,0 +1,24 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace PROJ_ETS { + + + public partial class Setup { + + /// + /// mod_AnagLabels control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::PROJ_ETS.WebUserControls.mod_AnagLabels mod_AnagLabels; + } +} diff --git a/PROJ-ETS/PROJ-ETS/Task/Execute.aspx b/PROJ-ETS/PROJ-ETS/Task/Execute.aspx new file mode 100644 index 0000000..09586ca --- /dev/null +++ b/PROJ-ETS/PROJ-ETS/Task/Execute.aspx @@ -0,0 +1,24 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Execute.aspx.cs" Inherits="PROJ_ETS.Task.Execute" %> + + + + + + + + +
+
+

Esecuzione Task su chiamata URL

+ La chiamata di questa pagina scatena l'esecuzione dei vari task di update/gestione periodica. Chiamate ammissibili:
+
    +
  • ~/Task/Execute?mode=SendEmailBaz --> invio email resoconto programmazione settimanale (se non già inviata) per anno/settimana CORRENTI al momento della richiesta
  • +
  • ~/Task/Execute?mode=UpdateLabels --> aggiornamento delle labels associate alle commesse tramite stored procedure
  • +
+
+
+ +
+
+ + diff --git a/PROJ-ETS/PROJ-ETS/Task/Execute.aspx.cs b/PROJ-ETS/PROJ-ETS/Task/Execute.aspx.cs new file mode 100644 index 0000000..dd146d4 --- /dev/null +++ b/PROJ-ETS/PROJ-ETS/Task/Execute.aspx.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using ETS_Data; + +namespace PROJ_ETS.Task +{ + public partial class Execute : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + // verifico quale richiesta sia stata effettuata + string mode = utils.obj.QSS("mode"); + switch (mode) + { + case "SendEmailBaz": + lblOut.Text = checkSendEmailBaz(); + break; + case "UpdateLabels": + lblOut.Text = updateLabels(); + break; + default: + lblOut.Text = "Nessuna richiesta valida ricevuta..."; + break; + } + } + /// + /// Effettua update massivo labels e restituisce stringa con esito + /// + /// + private string updateLabels() + { + string answ = "NA"; + // chiamo la stored stp_L2C_massRecalc x il ricalcolo delle labels... + DataProxy_ProjEts.DP.taL2C.massRecalc(); + answ = "Aggiornamento effettuato."; + return answ; + } + /// + /// Verifica possibilità di inviare email e restituisce stringa con esito + /// + /// + private string checkSendEmailBaz() + { + string answ = "NA"; + int anno = DateTime.Now.Year; + int sett = datario.WeekOfYearISO8601(DateTime.Now); + + bool force = utils.obj.QSB("force"); + // verifico che NON sia stata inviata email x settimana corrente... + if (DataProxy_ProjEts.DP.taLEB.getByWeek(anno, sett).Rows.Count == 0 || force) + { + // invio email + try + { + DataProxy_ProjEts.DP.inviaEmailBazaar(anno, sett); + DataProxy_ProjEts.DP.taLEB.Insert(anno, sett, DateTime.Now, "AUTORUN"); + } + catch + { } + answ = "Invio email effettuato."; + } + else + { + answ = "Email già inviate."; + } + return answ; + } + } +} \ No newline at end of file diff --git a/PROJ-ETS/PROJ-ETS/Task/Execute.aspx.designer.cs b/PROJ-ETS/PROJ-ETS/Task/Execute.aspx.designer.cs new file mode 100644 index 0000000..c443782 --- /dev/null +++ b/PROJ-ETS/PROJ-ETS/Task/Execute.aspx.designer.cs @@ -0,0 +1,33 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace PROJ_ETS.Task { + + + public partial class Execute { + + /// + /// form1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// lblOut control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblOut; + } +} diff --git a/PROJ-ETS/PROJ-ETS/Web.ETS.config b/PROJ-ETS/PROJ-ETS/Web.ETS.config index 89367fd..256f147 100644 --- a/PROJ-ETS/PROJ-ETS/Web.ETS.config +++ b/PROJ-ETS/PROJ-ETS/Web.ETS.config @@ -15,6 +15,7 @@ --> + diff --git a/PROJ-ETS/PROJ-ETS/Web.config b/PROJ-ETS/PROJ-ETS/Web.config index 2a10806..1176417 100644 --- a/PROJ-ETS/PROJ-ETS/Web.config +++ b/PROJ-ETS/PROJ-ETS/Web.config @@ -14,7 +14,8 @@
- + + @@ -31,6 +32,7 @@ + @@ -59,13 +61,21 @@ + + + + + + + + - + @@ -120,11 +130,11 @@ - - - - - + + + + + diff --git a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_AnagLabels.ascx b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_AnagLabels.ascx new file mode 100644 index 0000000..513a8cb --- /dev/null +++ b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_AnagLabels.ascx @@ -0,0 +1,62 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_AnagLabels.ascx.cs" Inherits="PROJ_ETS.WebUserControls.mod_AnagLabels" %> + + + + + + + + + + + + + + Nessun record + + + + +
+ +
+
+ + + + + + +
+ + + + +
+ +
+
+ + + + + + + +
+
+
+ + + + + + + + + + + + + + diff --git a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_AnagLabels.ascx.cs b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_AnagLabels.ascx.cs new file mode 100644 index 0000000..90ebdab --- /dev/null +++ b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_AnagLabels.ascx.cs @@ -0,0 +1,76 @@ +using ETS_Data; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace PROJ_ETS.WebUserControls +{ + public partial class mod_AnagLabels : System.Web.UI.UserControl + { + /// + /// pagina corrente (URL finale) + /// + public string _paginaCorrente { get; set; } + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + PagCorrente(); + //idxProgetto = utils.obj.confReadInt("idxProgetto_sel"); + //ddlPageSize.SelectedValue = utils.pageSize.ToString(); + } + //setDetVisibility(); + } + /// + /// salva in variabile pagina il nome della pagina corrente + /// + protected void PagCorrente() + { + Uri MyUrl = Request.Url; + string delimStr = "/"; + char[] delimiter = delimStr.ToCharArray(); + string[] finalUrl = MyUrl.LocalPath.ToString().Split(delimiter); + int n = finalUrl.Length; + _paginaCorrente = finalUrl[n - 1].ToString(); + } + /// + /// risponde alla domanda se l'utente abbia permesso tipo writable (S) nel permessi2funzione + /// + /// + public bool isWritable() + { + bool answ = false; + if (_paginaCorrente == null) + { + PagCorrente(); + } + answ = user_std.UtSn.isPageWriteEnabled(_paginaCorrente); + return answ; + } + /// + /// determina se sia eliminabile il record (=non usato) + /// + /// + /// + public bool delEnabled(object CodLabel) + { + // verifico NON ci siano record... + bool noRecord =DataProxy_ProjEts.DP.taL2C.getByCodLabel(CodLabel.ToString()).Rows.Count == 0; + return (isWritable() && noRecord); + } + /// + /// gestione evento richiesta nuovo valore QUANDO NON CI SIANO RECORDS! + /// + /// + /// + protected void btnNew_Click(object sender, EventArgs e) + { + DataProxy_ProjEts.DP.taAL.Insert("_NewLabel", "_NewLabel"); + grView.EditIndex = 0; + grView.DataBind(); + } + } +} \ No newline at end of file diff --git a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_AnagLabels.ascx.designer.cs b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_AnagLabels.ascx.designer.cs new file mode 100644 index 0000000..3b3f0f8 --- /dev/null +++ b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_AnagLabels.ascx.designer.cs @@ -0,0 +1,33 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace PROJ_ETS.WebUserControls { + + + public partial class mod_AnagLabels { + + /// + /// grView control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.GridView grView; + + /// + /// ods control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource ods; + } +} diff --git a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_commesseFull.ascx b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_commesseFull.ascx index 579fba6..7723eb0 100644 --- a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_commesseFull.ascx +++ b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_commesseFull.ascx @@ -96,7 +96,7 @@ Font-Bold="true" />
- +
@@ -154,58 +154,58 @@ --%> - + - + - +
- +
- +
- +
- + - + - +
- +
- +
- +
- + - + diff --git a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_commesseFull.ascx.cs b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_commesseFull.ascx.cs index 85e9f84..13de2a4 100644 --- a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_commesseFull.ascx.cs +++ b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_commesseFull.ascx.cs @@ -843,6 +843,35 @@ namespace PROJ_ETS.WebUserControls grView.DataBind(); } + /// + /// determina se possa vedere dati avanzati (economici tipicamente) dato idx fase + /// + /// idx fase interessata... + /// + public bool canSeeAdvData(object _idxFase) + { + bool answ = false; + int idxFase = 0; + try + { + idxFase = Convert.ToInt32(_idxFase); + } + catch + { } + // se è POWER* o PM PUO' vedere... + if(utils.obj.isPowerUser || utils.obj.isPowerReader || utils.obj.isPM) + { + answ = true; + } + else if(utils.obj.isCC && utils.obj.isCurrentCC(idxFase)) + { + // controllo SE sia sua la commessa... + answ = true; + } + + return answ; + } + #endregion } diff --git a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_datiComm.ascx b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_datiComm.ascx index c86d977..5a29948 100644 --- a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_datiComm.ascx +++ b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_datiComm.ascx @@ -1,6 +1,8 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_datiComm.ascx.cs" Inherits="PROJ_ETS.WebUserControls.mod_datiComm" %> <%@ Register Src="mod_navDettComm.ascx" TagName="mod_navDettComm" TagPrefix="uc1" %> +<%@ Register Src="~/WebUserControls/mod_labelsComm.ascx" TagPrefix="uc1" TagName="mod_labelsComm" %> +
@@ -34,6 +36,12 @@
+
+ +
+ +
+
@@ -162,6 +170,12 @@
+
+ +
+ +
+
@@ -305,7 +319,7 @@
- +
diff --git a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_labelsComm.ascx b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_labelsComm.ascx index 983d9c0..2fdc22a 100644 --- a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_labelsComm.ascx +++ b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_labelsComm.ascx @@ -1,14 +1,27 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_labelsComm.ascx.cs" Inherits="PROJ_ETS.WebUserControls.mod_labelsComm" %> + +
+ + + + ADD + <%-- RES--%> +
+ +
+ + + <%# Eval("CodLabel") %>   + + + + + + + + + <%--AAA BBB CCC--%> +
+ - - - <%# Eval("CodLabel") %> - - - - - - - - -<%--AAA BBB CCC--%> \ No newline at end of file + diff --git a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_labelsComm.ascx.cs b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_labelsComm.ascx.cs index 57fb367..7a5752b 100644 --- a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_labelsComm.ascx.cs +++ b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_labelsComm.ascx.cs @@ -1,4 +1,5 @@ -using System; +using ETS_Data; +using System; using System.Collections.Generic; using System.Linq; using System.Web; @@ -11,9 +12,12 @@ namespace PROJ_ETS.WebUserControls { protected void Page_Load(object sender, EventArgs e) { - + divModLabels.Visible = delEnabled; + lblBtns.Visible = !delEnabled; } - + /// + /// idx fase di cui mostrare dettaglio etichette + /// public int idxFase { get @@ -32,5 +36,55 @@ namespace PROJ_ETS.WebUserControls hfIdxFase.Value = value.ToString(); } } + /// + /// abilitazione o meno all'eliminazione dei tags + /// + public bool delEnabled + { + get + { + bool answ = false; + try + { + answ = Convert.ToBoolean(hfDelEnabled.Value); + } + catch + { } + return answ; + } + set + { + hfDelEnabled.Value = value.ToString(); + divModLabels.Visible = value; + } + } + + + protected void lbtAddLabel_Click(object sender, EventArgs e) + { + // UPSERT... + DataProxy_ProjEts.DP.taL2C.UpsertQuery(idxFase, ddlSelLabel.SelectedValue); + repLabels.DataBind(); + } + + protected void lbtResetLabels_Click(object sender, EventArgs e) + { + DataProxy_ProjEts.DP.taL2C.deleteByFase(idxFase); + repLabels.DataBind(); + } + + protected void lbtDel_Click(object sender, EventArgs e) + { + try + { + // recupero argomento + LinkButton lb = (LinkButton)sender; + //lb.CommandArgument + DataProxy_ProjEts.DP.taL2C.Delete(idxFase, lb.CommandArgument); + } + catch + { } + repLabels.DataBind(); + } } } \ No newline at end of file diff --git a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_labelsComm.ascx.designer.cs b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_labelsComm.ascx.designer.cs index 532618e..d32e9fc 100644 --- a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_labelsComm.ascx.designer.cs +++ b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_labelsComm.ascx.designer.cs @@ -13,13 +13,49 @@ namespace PROJ_ETS.WebUserControls { public partial class mod_labelsComm { /// - /// hfIdxFase control. + /// divModLabels control. /// /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// - protected global::System.Web.UI.WebControls.HiddenField hfIdxFase; + protected global::System.Web.UI.HtmlControls.HtmlGenericControl divModLabels; + + /// + /// lblBtns control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblBtns; + + /// + /// ddlSelLabel control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList ddlSelLabel; + + /// + /// lbtAddLabel control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.LinkButton lbtAddLabel; + + /// + /// odsLabel control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsLabel; /// /// repLabels control. @@ -38,5 +74,23 @@ namespace PROJ_ETS.WebUserControls { /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.ObjectDataSource ods; + + /// + /// hfIdxFase control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HiddenField hfIdxFase; + + /// + /// hfDelEnabled control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HiddenField hfDelEnabled; } } diff --git a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_login.ascx.cs b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_login.ascx.cs index f319270..bdd31a9 100644 --- a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_login.ascx.cs +++ b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_login.ascx.cs @@ -144,7 +144,6 @@ public partial class mod_login : System.Web.UI.UserControl else { lblMessage.Text = "Accesso fallito
key foce login non valida!!! tentativo registrata!!!"; - //mandaEmail(_fromEmail, _adminEmail, "Attenzione: tentativo di accesso non autorizzato!", String.Format("Tentativo di forcing user non autorizzato!
L'utente {0} ha tentato di accedere a {1} forzando l'utente ma la sua key autorizzativa e' sbagliata...", Page.User.Identity.Name, user_std.UtSn.Traduci(SteamWare.memLayer.ML.confReadString("defaultApp")))); string _rigaLog = String.Format("User {0}\t tried to force user - wrong password - he tried to log as \t {1}\\{2}", Page.User.Identity.Name, dominio.Text, user.Text); lg.Warn(_rigaLog); if (Login_Error != null) @@ -155,7 +154,6 @@ public partial class mod_login : System.Web.UI.UserControl } else { - //mandaEmail(_fromEmail, _adminEmail, "Attenzione: tentativo di accesso non autorizzato!", String.Format("Tentativo di forcing user non autorizzato!
L'utente {0} ha tentato di accedere a {1} forzando l'utente ma la funzione e' disabilitata...", Page.User.Identity.Name, user_std.UtSn.Traduci(SteamWare.memLayer.ML.confReadString("defaultApp")))); string _rigaLog = String.Format("User {0}\t tried to force user - access disabled - he tried to log as \t {1}\\{2}", Page.User.Identity.Name, dominio.Text, user.Text); lg.Warn(_rigaLog); if (Login_Error != null) diff --git a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_spostaComm.ascx.cs b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_spostaComm.ascx.cs index 15678cb..6a1b745 100644 --- a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_spostaComm.ascx.cs +++ b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_spostaComm.ascx.cs @@ -237,7 +237,6 @@ namespace PROJ_ETS.WebUserControls break; case tipoSpostamento.moveRA: //enableBtnSposta = true; - //testoBtn = traduci("moveRA"); //cssBtn = "btnBlu ui-corner-all shadowBox btnEditBig"; break; default: diff --git a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx index 08dbd1f..6b2d5fd 100644 --- a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx +++ b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx @@ -3,14 +3,14 @@
-
- +
+
-
- +
+
-
- +
+
diff --git a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx.cs b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx.cs index a5ce1e6..3c2113a 100644 --- a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx.cs +++ b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx.cs @@ -135,8 +135,8 @@ namespace PROJ_ETS.WebUserControls // aggiunta commesse e clona seguono stessa regola di visibilità e abilitazione... btnAddNew.Enabled = cudEnabled; btnCloneWeek.Enabled = cudEnabled; - btnAddNew.Visible = isWritable() && isPowerUser; - btnCloneWeek.Visible = isWritable() && isPowerUser; + btnAddNew.Visible = isWritable() && (utils.obj.isPowerUser || utils.obj.isPM); + btnCloneWeek.Visible = isWritable() && utils.obj.isPowerUser; fixBtnAddNewComm(); if (!cudEnabled) { @@ -153,7 +153,7 @@ namespace PROJ_ETS.WebUserControls btnCloneWeek.ToolTip = "Copia le Commesse dalla settimana precedente"; } // rilascio / congelamento ore in GPW ha sua regola (NON lo mostra direttamente se "scaduto") - btnReleaseWeek.Visible = isWritable() && isPowerUser && cudEnabled; + btnReleaseWeek.Visible = isWritable() && utils.obj.isPowerUser && cudEnabled; // a seconda che sia stata rilasciata o meno la settimana mostro sblocco o rilascio settimana... if (isReleased) { @@ -217,6 +217,7 @@ namespace PROJ_ETS.WebUserControls ///
private void caricaDatiBlocco() { + unlockRes(); int totCelle = 0; int idxDip = 0; // recupero il numero di TUTTE le celle @@ -230,7 +231,7 @@ namespace PROJ_ETS.WebUserControls tabCommShort = DataProxy_ProjEts.DP.taSelCom.getCommShort(); // leggo tutte commesse formato short (nickname...) // calcolo il primo dip idxDip = tabBaz[0].idxDipendente; - // calcolo num celel totali + // calcolo num celle totali totCelle = tabBaz.Rows.Count; tabBazSingle = DataProxy_ProjEts.DP.taBaz.getByAnnoSettDip(anno, settimana, idxDip); // calcolo numero commesse! @@ -300,6 +301,18 @@ namespace PROJ_ETS.WebUserControls } } } + /// + /// sblocca le risorse scadute (= lock da oltre tempo max) + /// + private void unlockRes() + { + int minBlockEditRes = utils.obj.confReadInt("minBlockEditRes"); + if (minBlockEditRes > 0) + { + DataProxy_ProjEts.DP.taTLB.unlockExpired(minBlockEditRes); + } + } + /// /// disegna la riga di intestazione/chiusura x dipendenti /// @@ -318,10 +331,19 @@ namespace PROJ_ETS.WebUserControls { cell = new TableCell(); cell.CssClass = "cBia cCent"; + // se è ultima riga... if (showOre && numDip > 0 && numComm > 0) { - cell.Text = string.Format("{0:0#} h
{1}", oreTotDip[pos_x], schemaOreDip[pos_x]); - cell.ToolTip = ""; + cell.Text = string.Format("{0:0#} h
{1}", oreTotDip[pos_x], schemaOreDip[pos_x]); + if (userIsLocked(tabD2ATR[pos_x].idxDipendente)) + { + cell.ToolTip = string.Format("LOCK: {0} in modifica", lockedBy(tabD2ATR[pos_x].idxDipendente)); + } + else + { + //cell.ToolTip = ""; + cell.ToolTip = schemaOreDip[pos_x]; + } // SE sono 40h coloro di verde!!! if (oreTotDip[pos_x] == 40) { @@ -364,13 +386,13 @@ namespace PROJ_ETS.WebUserControls /// controlla abilitazione edit x celle e cancellazione, ovvero /// - cudEnabled (controllo periodo scaduto e permette sett future) /// - isWritable (utente con permessi RW = S) - /// - utente poweruser oppure settimana non rialasciata x utente CC + /// - utente PowerUser/ProjectManager oppure settimana non rilasciata (x utente CapoComm) ///
protected bool editEnabled { get { - return cudEnabled && isWritable() && (isPowerUser || !isReleased); + return cudEnabled && isWritable() && (utils.obj.isPowerUser || utils.obj.isPM || !isReleased); } } /// @@ -393,7 +415,7 @@ namespace PROJ_ETS.WebUserControls if (showOre) { // controllo edit è abilitato - if (editEnabled && (isPowerUser || isCurrentCC(tabBazSingle[pos_y].idxFase))) + if (editEnabled && (utils.obj.isPowerUser || utils.obj.isPM || utils.obj.isCurrentCC(tabBazSingle[pos_y].idxFase))) { // aggiungo button x fare elemento cliccabile LinkButton lnkbDel = new LinkButton(); @@ -488,6 +510,9 @@ namespace PROJ_ETS.WebUserControls // salvo valori IdxDipSel = Convert.ToInt32(valori[0]); IdxFaseSel = Convert.ToInt32(valori[1]); + // blocco dip! + DataProxy_ProjEts.DP.taTLB.lockDip(IdxDipSel, user_std.UtSn.NomeCognome); + // continuo rigaBaz = (Ds_ProjEts.BazaarRisorseRow)tabBaz.Select(string.Format("idxDipendente={0} AND idxFase={1}", IdxDipSel, IdxFaseSel))[0]; rigaDip = (Ds_ProjEts.DipendentiRow)tabDip.Select(string.Format("idxDipendente={0}", IdxDipSel))[0]; rigaComm = (DS_utilsProjEts.v_selCommesseRow)tabComm.Select(string.Format("value = {0}", IdxFaseSel))[0]; @@ -518,16 +543,25 @@ namespace PROJ_ETS.WebUserControls cell = new TableCell(); cell.CssClass = TabellaRisorse[pos_x, pos_y].Css; // controllo edit è abilitato - if (editEnabled && (isPowerUser || isCurrentCC(TabellaRisorse[pos_x, pos_y].IdxFase))) + if (editEnabled && (utils.obj.isPowerUser || utils.obj.isPM || utils.obj.isCurrentCC(TabellaRisorse[pos_x, pos_y].IdxFase))) { // aggiungo button x fare elemento cliccabile LinkButton lnkb = new LinkButton(); lnkb.ToolTip = TabellaRisorse[pos_x, pos_y].ToolTip; lnkb.Text = TabellaRisorse[pos_x, pos_y].Label; - lnkb.CssClass = "openDiag"; // server x far si che apra il dialog modale... - lnkb.Click += new EventHandler(lnkb_Click); - lnkb.CommandArgument = string.Format("{0}#{1}", TabellaRisorse[pos_x, pos_y].IdxDipendente, TabellaRisorse[pos_x, pos_y].IdxFase); - lnkb.Enabled = cudEnabled && isWritable(); + // controllo che user NON sia locked... + if (!userIsLocked(TabellaRisorse[pos_x, pos_y].IdxDipendente) || lockedByMe(TabellaRisorse[pos_x, pos_y].IdxDipendente)) + { + lnkb.CssClass = "openDiag"; // server x far si che apra il dialog modale... + lnkb.Click += new EventHandler(lnkb_Click); + lnkb.CommandArgument = string.Format("{0}#{1}", TabellaRisorse[pos_x, pos_y].IdxDipendente, TabellaRisorse[pos_x, pos_y].IdxFase); + lnkb.Enabled = cudEnabled && isWritable(); + } + else + { + lnkb.Enabled = lockedByMe(TabellaRisorse[pos_x, pos_y].IdxDipendente); + //lnkb.Enabled = false; + } cell.Controls.Add(lnkb); } else @@ -540,6 +574,18 @@ namespace PROJ_ETS.WebUserControls { cell.CssClass = "selCel"; } + // altrimenti controllo se la COLONNA di un dip bloccato, nel caso SEGNALO e blocco.... + else if (userIsLocked(TabellaRisorse[pos_x, pos_y].IdxDipendente)) + { + if (lockedByMe(TabellaRisorse[pos_x, pos_y].IdxDipendente)) + { + cell.CssClass = "myLock"; + } + else + { + cell.CssClass = "lockCol"; + } + } // carico in cella di tabella il linkButton riga.Cells.Add(cell); } @@ -549,6 +595,48 @@ namespace PROJ_ETS.WebUserControls // metto ultima riga con indicazione valori NUMERICI del totale ore x dipendente setupRigaDip(true); } + /// + /// verifica se utente sia locked + /// + /// + /// + protected bool userIsLocked(int IdxDipendente) + { + return DataProxy_ProjEts.DP.taTLB.getByDip(IdxDipendente).Rows.Count > 0; + } + /// + /// verifica se sia io a tenere in lock... + /// + /// + /// + protected bool lockedByMe(int IdxDipendente) + { + bool answ = false; + try + { + // controllo: SE sono io che ho bloccato allora NON vale blocco x ME... + answ = DataProxy_ProjEts.DP.taTLB.getByDip(IdxDipendente)[0].LockedBy == user_std.UtSn.NomeCognome; + } + catch + { } + return answ; + } + /// + /// restituisce nome di chi ha lock su risorsa (dipendente)... + /// + /// + /// + protected string lockedBy(int IdxDipendente) + { + string answ = "ND"; + try + { + answ = DataProxy_ProjEts.DP.taTLB.getByDip(IdxDipendente)[0].LockedBy; + } + catch + { } + return answ; + } /// /// gestione visualizzaizone pannello elenco commesse da inserire @@ -577,7 +665,7 @@ namespace PROJ_ETS.WebUserControls /// protected void btnReleaseWeek_Click(object sender, EventArgs e) { - // controllo se la settimana è rialsciata o meno e di conseguenza opero... + // controllo se la settimana è rilasciata o meno e di conseguenza opero... if (isReleased) { // sblocco @@ -627,7 +715,7 @@ namespace PROJ_ETS.WebUserControls /// public string trimChar(object stringaIn, object maxChar) { - return utils.obj.trimChar(stringaIn, maxChar); + return utils.trimChar(stringaIn, maxChar); } /// @@ -715,6 +803,8 @@ namespace PROJ_ETS.WebUserControls { allocazione = Convert.ToInt32(txtAllocazione.Text.Trim()); DataProxy_ProjEts.DP.taBaz.updateQuery(anno, settimana, IdxDipSel, IdxFaseSel, allocazione); + // sblocco dip! + DataProxy_ProjEts.DP.taTLB.unlockDip(IdxDipSel); } catch { } @@ -727,6 +817,9 @@ namespace PROJ_ETS.WebUserControls protected void btnCancel_Click(object sender, EventArgs e) { + // sblocco dip! + DataProxy_ProjEts.DP.taTLB.unlockDip(IdxDipSel); + // resetto lblOut.Text = ""; IdxDipSel = 0; IdxFaseSel = 0; @@ -782,71 +875,6 @@ namespace PROJ_ETS.WebUserControls return answ; } /// - /// risponde alla domanda se l'utente sia PowerUser - /// - /// - public bool isPowerUser - { - get - { - return user_std.UtSn.userHasRight("PowerUser"); - } - } - /// - /// risponde alla domanda se l'utente sia PowerReader - /// - /// - public bool isPowerReader - { - get - { - return user_std.UtSn.userHasRight("PowerReader"); - } - } - /// - /// risponde alla domanda se l'utente sia User - /// - /// - public bool isUser - { - get - { - return user_std.UtSn.userHasRight("User"); - } - } - /// - /// risponde alla domanda se l'utente sia CapoCommessa - /// - /// - public bool isCC - { - get - { - return user_std.UtSn.userHasRight("CC"); - } - } - /// - /// risponde alla domanda se l'utente sia CC della commessa indicata dalla fase - /// - /// - /// - public bool isCurrentCC(int idxFase) - { - bool answ = false; - string CapoCommessa = ""; - try - { - CapoCommessa = DataProxy_ProjEts.DP.taDC.GetData(idxFase)[0].CapoCommessa; - } - catch - { } - if (user_std.UtSn.currUserNomeCognome == CapoCommessa || user_std.UtSn.currUserCognomeNome == CapoCommessa) - { - answ = true; - } - return answ; - } - /// /// indica se la settimana sia già stata rilasciata (c'è record in tab ReleasedWeek e quindi è stato esportato su GPW) /// public bool isReleased diff --git a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekRA.ascx.cs b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekRA.ascx.cs index ce2baf7..9174cb6 100644 --- a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekRA.ascx.cs +++ b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekRA.ascx.cs @@ -104,7 +104,7 @@ namespace PROJ_ETS.WebUserControls // calcolo num celle totali totCelle = tabIR.Rows.Count; // a secondo del ruolo utente (PowerUser|PowerReader oppure CC) determino quali commesse siano visibili - if (isCC && !(isPowerReader || isPowerUser)) + if (utils.obj.isCC && !(utils.obj.isPowerReader || utils.obj.isPowerUser)) { tabIRPareto = DataProxy_ProjEts.DP.taIR.getFullWeekParetoCC(anno, settimana, user_std.UtSn.currUserNomeCognome); } @@ -381,6 +381,7 @@ namespace PROJ_ETS.WebUserControls answ = user_std.UtSn.isPageWriteEnabled(_paginaCorrente); return answ; } +#if false /// /// risponde alla domanda se l'utente sia PowerUser /// @@ -425,5 +426,17 @@ namespace PROJ_ETS.WebUserControls return user_std.UtSn.userHasRight("CC"); } } + /// + /// risponde alla domanda se l'utente sia ProjectManager + /// + /// + public bool isPM + { + get + { + return user_std.UtSn.userHasRight("PM"); + } + } +#endif } } \ No newline at end of file diff --git a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekVerify.ascx.cs b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekVerify.ascx.cs index 83e5c8e..5c81a16 100644 --- a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekVerify.ascx.cs +++ b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekVerify.ascx.cs @@ -112,7 +112,7 @@ namespace PROJ_ETS.WebUserControls // calcolo num celle totali totCelle = tabIR.Rows.Count; // a secondo del ruolo utente (PowerUser|PowerReader oppure CC) determino quali commesse siano visibili - if (isCC && !(isPowerReader || isPowerUser)) + if (utils.obj.isCC && !(utils.obj.isPowerReader || utils.obj.isPowerUser)) { tabIRPareto = DataProxy_ProjEts.DP.taIR.getBazWeekParetoCC(anno, settimana, user_std.UtSn.currUserNomeCognome); } @@ -481,6 +481,7 @@ namespace PROJ_ETS.WebUserControls answ = user_std.UtSn.isPageWriteEnabled(_paginaCorrente); return answ; } +#if false /// /// risponde alla domanda se l'utente sia PowerUser /// @@ -525,5 +526,17 @@ namespace PROJ_ETS.WebUserControls return user_std.UtSn.userHasRight("CC"); } } + /// + /// risponde alla domanda se l'utente sia ProjectManager + /// + /// + public bool isPM + { + get + { + return user_std.UtSn.userHasRight("PM"); + } + } +#endif } } \ No newline at end of file diff --git a/PROJ-ETS/PROJ-ETS/bin/ETS_Data.dll b/PROJ-ETS/PROJ-ETS/bin/ETS_Data.dll index 2567090..1e78c55 100644 Binary files a/PROJ-ETS/PROJ-ETS/bin/ETS_Data.dll and b/PROJ-ETS/PROJ-ETS/bin/ETS_Data.dll differ diff --git a/PROJ-ETS/PROJ-ETS/bin/PROJ-ETS.dll b/PROJ-ETS/PROJ-ETS/bin/PROJ-ETS.dll index 50ee686..140cbb6 100644 Binary files a/PROJ-ETS/PROJ-ETS/bin/PROJ-ETS.dll and b/PROJ-ETS/PROJ-ETS/bin/PROJ-ETS.dll differ diff --git a/PROJ-ETS/PROJ-ETS/bin/PROJ-ETS.dll.config b/PROJ-ETS/PROJ-ETS/bin/PROJ-ETS.dll.config index 2a10806..1176417 100644 --- a/PROJ-ETS/PROJ-ETS/bin/PROJ-ETS.dll.config +++ b/PROJ-ETS/PROJ-ETS/bin/PROJ-ETS.dll.config @@ -14,7 +14,8 @@
- + + @@ -31,6 +32,7 @@ + @@ -59,13 +61,21 @@ + + + + + + + + - + @@ -120,11 +130,11 @@ - - - - - + + + + + diff --git a/PROJ-ETS/ReleaseClienti/ETS/PROJ-ETS.zip b/PROJ-ETS/ReleaseClienti/ETS/PROJ-ETS.zip index 6c6c226..e55d997 100644 Binary files a/PROJ-ETS/ReleaseClienti/ETS/PROJ-ETS.zip and b/PROJ-ETS/ReleaseClienti/ETS/PROJ-ETS.zip differ diff --git a/VersGen/CodeVersion.cs b/VersGen/CodeVersion.cs index de92df0..d101ef3 100644 --- a/VersGen/CodeVersion.cs +++ b/VersGen/CodeVersion.cs @@ -5,7 +5,7 @@ using System.Reflection; -[assembly: AssemblyVersion("2.2.1.163")] -[assembly: AssemblyFileVersion("2.2.1.163")] +[assembly: AssemblyVersion("2.2.3.164")] +[assembly: AssemblyFileVersion("2.2.3.164")] [assembly: AssemblyCopyright("Steamware © 2013-2016")] [assembly: AssemblyCompany("Steamware")] diff --git a/VersGen/CodeVersion.tt b/VersGen/CodeVersion.tt index e8dfcde..786b23b 100644 --- a/VersGen/CodeVersion.tt +++ b/VersGen/CodeVersion.tt @@ -6,8 +6,8 @@ using System.Reflection; -[assembly: AssemblyVersion("2.2.1.<#= this.RevisionNumber #>")] -[assembly: AssemblyFileVersion("2.2.1.<#= this.RevisionNumber #>")] +[assembly: AssemblyVersion("2.2.3.<#= this.RevisionNumber #>")] +[assembly: AssemblyFileVersion("2.2.3.<#= this.RevisionNumber #>")] [assembly: AssemblyCopyright("Steamware © 2013-<#= DateTime.Now.Year #>")] [assembly: AssemblyCompany("Steamware")] <#+ diff --git a/VersGen/bin/Debug/VersGen.dll b/VersGen/bin/Debug/VersGen.dll index cb14e36..0c3f2d1 100644 Binary files a/VersGen/bin/Debug/VersGen.dll and b/VersGen/bin/Debug/VersGen.dll differ diff --git a/VersGen/bin/Release/VersGen.dll b/VersGen/bin/Release/VersGen.dll index 9c429e2..73b07b5 100644 Binary files a/VersGen/bin/Release/VersGen.dll and b/VersGen/bin/Release/VersGen.dll differ diff --git a/VersGen/obj/Debug/TempPE/CodeVersion.cs.dll b/VersGen/obj/Debug/TempPE/CodeVersion.cs.dll index 0d0e3b1..200eb9e 100644 Binary files a/VersGen/obj/Debug/TempPE/CodeVersion.cs.dll and b/VersGen/obj/Debug/TempPE/CodeVersion.cs.dll differ diff --git a/VersGen/obj/Debug/VersGen.dll b/VersGen/obj/Debug/VersGen.dll index cb14e36..0c3f2d1 100644 Binary files a/VersGen/obj/Debug/VersGen.dll and b/VersGen/obj/Debug/VersGen.dll differ diff --git a/VersGen/obj/Release/TempPE/CodeVersion.cs.dll b/VersGen/obj/Release/TempPE/CodeVersion.cs.dll index dc458e2..400d5ea 100644 Binary files a/VersGen/obj/Release/TempPE/CodeVersion.cs.dll and b/VersGen/obj/Release/TempPE/CodeVersion.cs.dll differ diff --git a/VersGen/obj/Release/VersGen.dll b/VersGen/obj/Release/VersGen.dll index 9c429e2..73b07b5 100644 Binary files a/VersGen/obj/Release/VersGen.dll and b/VersGen/obj/Release/VersGen.dll differ