diff --git a/ETS_Data/DataProxy_ProjEts.cs b/ETS_Data/DataProxy_ProjEts.cs index d51a6cf..b188007 100644 --- a/ETS_Data/DataProxy_ProjEts.cs +++ b/ETS_Data/DataProxy_ProjEts.cs @@ -5,133 +5,136 @@ using System.Text; namespace ETS_Data { + /// + /// classe proxy dati x PROJ-ETS + /// + public class DataProxy_ProjEts + { + #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; + public Ds_ProjEtsTableAdapters.DatiCommFornTableAdapter taDCF; + public Ds_ProjEtsTableAdapters.DatiCommIntegTableAdapter taDCI; + public Ds_ProjEtsTableAdapters.BdgtRisorseFasiTableAdapter taBRF; + public Ds_ProjEtsTableAdapters.AnagTipoRisorseTableAdapter taATR; + public Ds_ProjEtsTableAdapters.BazaarRisorseTableAdapter taBaz; + public Ds_ProjEtsTableAdapters.Dip2ATRTableAdapter taD2ATR; + 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; + public Ds_ProjEtsTableAdapters.v_CommessaTableAdapter taVComm; + /* DS_utilsProjEts */ + public DS_utilsProjEtsTableAdapters.v_selClientiTableAdapter taSelCli; + public DS_utilsProjEtsTableAdapters.v_selProgettiTableAdapter taSelPro; + public DS_utilsProjEtsTableAdapters.v_selCommesseTableAdapter taSelCom; + public DS_utilsProjEtsTableAdapters.v_selFornitoriClaTableAdapter taSelForn; + public DS_utilsProjEtsTableAdapters.v_FattureETSTableAdapter taFattETS; + /// - /// classe proxy dati x PROJ-ETS + /// init dei table adapters /// - public class DataProxy_ProjEts + protected void initTA() { - #region area table adapters + taAL = new Ds_ProjEtsTableAdapters.AnagLabelsTableAdapter(); + taAP = new Ds_ProjEtsTableAdapters.AnagProgettiTableAdapter(); + taAF = new Ds_ProjEtsTableAdapters.AnagFasiTableAdapter(); + taDC = new Ds_ProjEtsTableAdapters.DatiCommessaTableAdapter(); + taDCF = new Ds_ProjEtsTableAdapters.DatiCommFornTableAdapter(); + taDCI = new Ds_ProjEtsTableAdapters.DatiCommIntegTableAdapter(); + taBRF = new Ds_ProjEtsTableAdapters.BdgtRisorseFasiTableAdapter(); + taATR = new Ds_ProjEtsTableAdapters.AnagTipoRisorseTableAdapter(); + taBaz = new Ds_ProjEtsTableAdapters.BazaarRisorseTableAdapter(); + taD2ATR = new Ds_ProjEtsTableAdapters.Dip2ATRTableAdapter(); + 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(); + taVComm = new Ds_ProjEtsTableAdapters.v_CommessaTableAdapter(); + taSelCli = new DS_utilsProjEtsTableAdapters.v_selClientiTableAdapter(); + taSelPro = new DS_utilsProjEtsTableAdapters.v_selProgettiTableAdapter(); + taSelCom = new DS_utilsProjEtsTableAdapters.v_selCommesseTableAdapter(); + taSelForn = new DS_utilsProjEtsTableAdapters.v_selFornitoriClaTableAdapter(); + taFattETS = new DS_utilsProjEtsTableAdapters.v_FattureETSTableAdapter(); + } + /// + /// effettua setup dei connection strings da web.config delal singola applicazione + /// + 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"); + taDCF.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); + taDCI.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); + taBRF.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); + taATR.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); + taBaz.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); + taD2ATR.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); + 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"); + taVComm.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"); + taSelForn.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); + taFattETS.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); + } - /* Ds_ProjEts */ - public Ds_ProjEtsTableAdapters.AnagLabelsTableAdapter taAL; - public Ds_ProjEtsTableAdapters.AnagProgettiTableAdapter taAP; - public Ds_ProjEtsTableAdapters.AnagFasiTableAdapter taAF; - public Ds_ProjEtsTableAdapters.DatiCommessaTableAdapter taDC; - public Ds_ProjEtsTableAdapters.DatiCommFornTableAdapter taDCF; - public Ds_ProjEtsTableAdapters.DatiCommIntegTableAdapter taDCI; - public Ds_ProjEtsTableAdapters.BdgtRisorseFasiTableAdapter taBRF; - public Ds_ProjEtsTableAdapters.AnagTipoRisorseTableAdapter taATR; - public Ds_ProjEtsTableAdapters.BazaarRisorseTableAdapter taBaz; - public Ds_ProjEtsTableAdapters.Dip2ATRTableAdapter taD2ATR; - 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; - public DS_utilsProjEtsTableAdapters.v_selCommesseTableAdapter taSelCom; - public DS_utilsProjEtsTableAdapters.v_selFornitoriClaTableAdapter taSelForn; - public DS_utilsProjEtsTableAdapters.v_FattureETSTableAdapter taFattETS; + #endregion - /// - /// init dei table adapters - /// - protected void initTA() + protected DataProxy_ProjEts() + { + initTA(); + setupConnectionStringBase(); + } + /// + /// Singleton accesso a DataProxy + /// + public static DataProxy_ProjEts DP = new DataProxy_ProjEts(); + + #region utility public esposte + + + /// + /// idxDipendente in sessione + /// + public static int idxDipendente + { + get + { + int idx = 0; + try { - taAL = new Ds_ProjEtsTableAdapters.AnagLabelsTableAdapter(); - taAP = new Ds_ProjEtsTableAdapters.AnagProgettiTableAdapter(); - taAF = new Ds_ProjEtsTableAdapters.AnagFasiTableAdapter(); - taDC = new Ds_ProjEtsTableAdapters.DatiCommessaTableAdapter(); - taDCF = new Ds_ProjEtsTableAdapters.DatiCommFornTableAdapter(); - taDCI = new Ds_ProjEtsTableAdapters.DatiCommIntegTableAdapter(); - taBRF = new Ds_ProjEtsTableAdapters.BdgtRisorseFasiTableAdapter(); - taATR = new Ds_ProjEtsTableAdapters.AnagTipoRisorseTableAdapter(); - taBaz = new Ds_ProjEtsTableAdapters.BazaarRisorseTableAdapter(); - taD2ATR = new Ds_ProjEtsTableAdapters.Dip2ATRTableAdapter(); - 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(); - taSelForn = new DS_utilsProjEtsTableAdapters.v_selFornitoriClaTableAdapter(); - taFattETS = new DS_utilsProjEtsTableAdapters.v_FattureETSTableAdapter(); - } - /// - /// effettua setup dei connection strings da web.config delal singola applicazione - /// - 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"); - taDCF.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); - taDCI.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); - taBRF.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); - taATR.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); - taBaz.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); - taD2ATR.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); - 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"); - taSelForn.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); - taFattETS.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString"); + idx = utils.obj.IntSessionObj("IdxDipendente"); } + catch + { } + return idx; + } + set + { + utils.obj.setSessionVal("idxDipendente", value); + } + } - #endregion - - protected DataProxy_ProjEts() - { - initTA(); - setupConnectionStringBase(); - } - /// - /// Singleton accesso a DataProxy - /// - public static DataProxy_ProjEts DP = new DataProxy_ProjEts(); - - #region utility public esposte - - - /// - /// idxDipendente in sessione - /// - public static int idxDipendente - { - get - { - int idx = 0; - try - { - idx = utils.obj.IntSessionObj("IdxDipendente"); - } - catch - { } - return idx; - } - set - { - utils.obj.setSessionVal("idxDipendente", value); - } - } - - public string CognomeNomeByIdx(int idxDip) - { - string answ = ""; + public string CognomeNomeByIdx(int idxDip) + { + string answ = ""; #if false try { @@ -141,176 +144,176 @@ namespace ETS_Data catch { } #endif - return answ; - } - /// - /// calcola se una commessa sia attiva (da idxFase) - /// - /// - /// - public bool commessaAttiva(int idxFase) - { - bool answ = false; - try - { - answ = taAF.getByIdx(idxFase)[0].Attivo; - } - catch - { } - return answ; - } - /// - /// effettua export su GPW dei singoli dipendenti delle ore programmate x la settimana indicata - /// - /// anno - /// num settimana 1-53 - /// Utente che congela la settimana - /// - public bool esportaBazaarSuGPW(int anno, int settimana, string UsernameAD) - { - bool answ = false; - try - { - taBaz.copy2GPW(anno, settimana, UsernameAD); - answ = true; - } - catch - { } - 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 = utils.obj.confReadString("stdEmail"); - } - else - { - toEmail = rigaDip.email; - } - - 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 + return answ; } + /// + /// calcola se una commessa sia attiva (da idxFase) + /// + /// + /// + public bool commessaAttiva(int idxFase) + { + bool answ = false; + try + { + answ = taAF.getByIdx(idxFase)[0].Attivo; + } + catch + { } + return answ; + } + /// + /// effettua export su GPW dei singoli dipendenti delle ore programmate x la settimana indicata + /// + /// anno + /// num settimana 1-53 + /// Utente che congela la settimana + /// + public bool esportaBazaarSuGPW(int anno, int settimana, string UsernameAD) + { + bool answ = false; + try + { + taBaz.copy2GPW(anno, settimana, UsernameAD); + answ = true; + } + catch + { } + 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 = utils.obj.confReadString("stdEmail"); + } + else + { + toEmail = rigaDip.email; + } + + 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 4ced034..c5db368 100644 --- a/ETS_Data/Ds_ProjEts.Designer.cs +++ b/ETS_Data/Ds_ProjEts.Designer.cs @@ -62,6 +62,8 @@ namespace ETS_Data { private LogEmailBazDataTable tableLogEmailBaz; + private v_CommessaDataTable tablev_Commessa; + private global::System.Data.DataRelation relationAnagProgetti_AnagFasi; private global::System.Data.DataRelation relationDatiCommessa_AnagFasi; @@ -161,6 +163,9 @@ namespace ETS_Data { if ((ds.Tables["LogEmailBaz"] != null)) { base.Tables.Add(new LogEmailBazDataTable(ds.Tables["LogEmailBaz"])); } + if ((ds.Tables["v_Commessa"] != null)) { + base.Tables.Add(new v_CommessaDataTable(ds.Tables["v_Commessa"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -369,6 +374,16 @@ 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 v_CommessaDataTable v_Commessa { + get { + return this.tablev_Commessa; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -493,6 +508,9 @@ namespace ETS_Data { if ((ds.Tables["LogEmailBaz"] != null)) { base.Tables.Add(new LogEmailBazDataTable(ds.Tables["LogEmailBaz"])); } + if ((ds.Tables["v_Commessa"] != null)) { + base.Tables.Add(new v_CommessaDataTable(ds.Tables["v_Commessa"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -640,6 +658,12 @@ namespace ETS_Data { this.tableLogEmailBaz.InitVars(); } } + this.tablev_Commessa = ((v_CommessaDataTable)(base.Tables["v_Commessa"])); + if ((initTable == true)) { + if ((this.tablev_Commessa != null)) { + this.tablev_Commessa.InitVars(); + } + } this.relationAnagProgetti_AnagFasi = this.Relations["AnagProgetti_AnagFasi"]; this.relationDatiCommessa_AnagFasi = this.Relations["DatiCommessa_AnagFasi"]; this.relationDatiCommessa_DatiCommForn = this.Relations["DatiCommessa_DatiCommForn"]; @@ -695,6 +719,8 @@ namespace ETS_Data { base.Tables.Add(this.tableTLockBazRA); this.tableLogEmailBaz = new LogEmailBazDataTable(); base.Tables.Add(this.tableLogEmailBaz); + this.tablev_Commessa = new v_CommessaDataTable(); + base.Tables.Add(this.tablev_Commessa); 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); @@ -839,6 +865,12 @@ namespace ETS_Data { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializev_Commessa() { + 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) { @@ -951,6 +983,9 @@ namespace ETS_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void LogEmailBazRowChangeEventHandler(object sender, LogEmailBazRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void v_CommessaRowChangeEventHandler(object sender, v_CommessaRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -8730,6 +8765,672 @@ namespace ETS_Data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class v_CommessaDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnidxFase; + + private global::System.Data.DataColumn columnidxProgetto; + + private global::System.Data.DataColumn columnnomeFase; + + private global::System.Data.DataColumn columndescrizioneFase; + + private global::System.Data.DataColumn columnenableTime; + + private global::System.Data.DataColumn columnenableMoney; + + private global::System.Data.DataColumn columnAttivo; + + private global::System.Data.DataColumn columncodExt; + + private global::System.Data.DataColumn columnAnnoCommessa; + + private global::System.Data.DataColumn columnNumeroCommessa; + + private global::System.Data.DataColumn columnCheckOk; + + private global::System.Data.DataColumn columnCapoCommessa; + + private global::System.Data.DataColumn columnSQC; + + private global::System.Data.DataColumn columnPubblico; + + private global::System.Data.DataColumn columnEnteProcuratore; + + private global::System.Data.DataColumn columnImporto; + + private global::System.Data.DataColumn columnImportoFornExt; + + private global::System.Data.DataColumn columnImportoIntegrazioni; + + private global::System.Data.DataColumn columnBCWS_ore; + + private global::System.Data.DataColumn columnBCWS_money; + + private global::System.Data.DataColumn columnDataApertura; + + private global::System.Data.DataColumn columnrifOfferta; + + private global::System.Data.DataColumn columnurlOfferta; + + private global::System.Data.DataColumn columnrifOrdine; + + private global::System.Data.DataColumn columnurlOrdine; + + private global::System.Data.DataColumn columnIndirizzo; + + private global::System.Data.DataColumn columnNote; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_CommessaDataTable() { + this.TableName = "v_Commessa"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal v_CommessaDataTable(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 v_CommessaDataTable(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 idxFaseColumn { + get { + return this.columnidxFase; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn idxProgettoColumn { + get { + return this.columnidxProgetto; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn nomeFaseColumn { + get { + return this.columnnomeFase; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn descrizioneFaseColumn { + get { + return this.columndescrizioneFase; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn enableTimeColumn { + get { + return this.columnenableTime; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn enableMoneyColumn { + get { + return this.columnenableMoney; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn AttivoColumn { + get { + return this.columnAttivo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn codExtColumn { + get { + return this.columncodExt; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn AnnoCommessaColumn { + get { + return this.columnAnnoCommessa; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn NumeroCommessaColumn { + get { + return this.columnNumeroCommessa; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CheckOkColumn { + get { + return this.columnCheckOk; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CapoCommessaColumn { + get { + return this.columnCapoCommessa; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn SQCColumn { + get { + return this.columnSQC; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn PubblicoColumn { + get { + return this.columnPubblico; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn EnteProcuratoreColumn { + get { + return this.columnEnteProcuratore; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ImportoColumn { + get { + return this.columnImporto; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ImportoFornExtColumn { + get { + return this.columnImportoFornExt; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ImportoIntegrazioniColumn { + get { + return this.columnImportoIntegrazioni; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn BCWS_oreColumn { + get { + return this.columnBCWS_ore; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn BCWS_moneyColumn { + get { + return this.columnBCWS_money; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DataAperturaColumn { + get { + return this.columnDataApertura; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn rifOffertaColumn { + get { + return this.columnrifOfferta; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn urlOffertaColumn { + get { + return this.columnurlOfferta; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn rifOrdineColumn { + get { + return this.columnrifOrdine; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn urlOrdineColumn { + get { + return this.columnurlOrdine; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IndirizzoColumn { + get { + return this.columnIndirizzo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn NoteColumn { + get { + return this.columnNote; + } + } + + [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 v_CommessaRow this[int index] { + get { + return ((v_CommessaRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_CommessaRowChangeEventHandler v_CommessaRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_CommessaRowChangeEventHandler v_CommessaRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_CommessaRowChangeEventHandler v_CommessaRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_CommessaRowChangeEventHandler v_CommessaRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Addv_CommessaRow(v_CommessaRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_CommessaRow Addv_CommessaRow( + int idxFase, + int idxProgetto, + string nomeFase, + string descrizioneFase, + bool enableTime, + bool enableMoney, + bool Attivo, + string codExt, + int AnnoCommessa, + int NumeroCommessa, + bool CheckOk, + string CapoCommessa, + bool SQC, + bool Pubblico, + string EnteProcuratore, + decimal Importo, + decimal ImportoFornExt, + decimal ImportoIntegrazioni, + decimal BCWS_ore, + decimal BCWS_money, + System.DateTime DataApertura, + string rifOfferta, + string urlOfferta, + string rifOrdine, + string urlOrdine, + string Indirizzo, + string Note) { + v_CommessaRow rowv_CommessaRow = ((v_CommessaRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + idxFase, + idxProgetto, + nomeFase, + descrizioneFase, + enableTime, + enableMoney, + Attivo, + codExt, + AnnoCommessa, + NumeroCommessa, + CheckOk, + CapoCommessa, + SQC, + Pubblico, + EnteProcuratore, + Importo, + ImportoFornExt, + ImportoIntegrazioni, + BCWS_ore, + BCWS_money, + DataApertura, + rifOfferta, + urlOfferta, + rifOrdine, + urlOrdine, + Indirizzo, + Note}; + rowv_CommessaRow.ItemArray = columnValuesArray; + this.Rows.Add(rowv_CommessaRow); + return rowv_CommessaRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_CommessaRow FindByidxFase(int idxFase) { + return ((v_CommessaRow)(this.Rows.Find(new object[] { + idxFase}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + v_CommessaDataTable cln = ((v_CommessaDataTable)(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 v_CommessaDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnidxFase = base.Columns["idxFase"]; + this.columnidxProgetto = base.Columns["idxProgetto"]; + this.columnnomeFase = base.Columns["nomeFase"]; + this.columndescrizioneFase = base.Columns["descrizioneFase"]; + this.columnenableTime = base.Columns["enableTime"]; + this.columnenableMoney = base.Columns["enableMoney"]; + this.columnAttivo = base.Columns["Attivo"]; + this.columncodExt = base.Columns["codExt"]; + this.columnAnnoCommessa = base.Columns["AnnoCommessa"]; + this.columnNumeroCommessa = base.Columns["NumeroCommessa"]; + this.columnCheckOk = base.Columns["CheckOk"]; + this.columnCapoCommessa = base.Columns["CapoCommessa"]; + this.columnSQC = base.Columns["SQC"]; + this.columnPubblico = base.Columns["Pubblico"]; + this.columnEnteProcuratore = base.Columns["EnteProcuratore"]; + this.columnImporto = base.Columns["Importo"]; + this.columnImportoFornExt = base.Columns["ImportoFornExt"]; + this.columnImportoIntegrazioni = base.Columns["ImportoIntegrazioni"]; + this.columnBCWS_ore = base.Columns["BCWS_ore"]; + this.columnBCWS_money = base.Columns["BCWS_money"]; + this.columnDataApertura = base.Columns["DataApertura"]; + this.columnrifOfferta = base.Columns["rifOfferta"]; + this.columnurlOfferta = base.Columns["urlOfferta"]; + this.columnrifOrdine = base.Columns["rifOrdine"]; + this.columnurlOrdine = base.Columns["urlOrdine"]; + this.columnIndirizzo = base.Columns["Indirizzo"]; + this.columnNote = base.Columns["Note"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnidxFase = new global::System.Data.DataColumn("idxFase", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnidxFase); + this.columnidxProgetto = new global::System.Data.DataColumn("idxProgetto", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnidxProgetto); + this.columnnomeFase = new global::System.Data.DataColumn("nomeFase", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnnomeFase); + this.columndescrizioneFase = new global::System.Data.DataColumn("descrizioneFase", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columndescrizioneFase); + this.columnenableTime = new global::System.Data.DataColumn("enableTime", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnenableTime); + this.columnenableMoney = new global::System.Data.DataColumn("enableMoney", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnenableMoney); + this.columnAttivo = new global::System.Data.DataColumn("Attivo", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnAttivo); + this.columncodExt = new global::System.Data.DataColumn("codExt", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columncodExt); + this.columnAnnoCommessa = new global::System.Data.DataColumn("AnnoCommessa", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnAnnoCommessa); + this.columnNumeroCommessa = new global::System.Data.DataColumn("NumeroCommessa", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumeroCommessa); + this.columnCheckOk = new global::System.Data.DataColumn("CheckOk", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCheckOk); + this.columnCapoCommessa = new global::System.Data.DataColumn("CapoCommessa", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCapoCommessa); + this.columnSQC = new global::System.Data.DataColumn("SQC", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnSQC); + this.columnPubblico = new global::System.Data.DataColumn("Pubblico", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPubblico); + this.columnEnteProcuratore = new global::System.Data.DataColumn("EnteProcuratore", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnEnteProcuratore); + this.columnImporto = new global::System.Data.DataColumn("Importo", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnImporto); + this.columnImportoFornExt = new global::System.Data.DataColumn("ImportoFornExt", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnImportoFornExt); + this.columnImportoIntegrazioni = new global::System.Data.DataColumn("ImportoIntegrazioni", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnImportoIntegrazioni); + this.columnBCWS_ore = new global::System.Data.DataColumn("BCWS_ore", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnBCWS_ore); + this.columnBCWS_money = new global::System.Data.DataColumn("BCWS_money", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnBCWS_money); + this.columnDataApertura = new global::System.Data.DataColumn("DataApertura", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDataApertura); + this.columnrifOfferta = new global::System.Data.DataColumn("rifOfferta", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnrifOfferta); + this.columnurlOfferta = new global::System.Data.DataColumn("urlOfferta", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnurlOfferta); + this.columnrifOrdine = new global::System.Data.DataColumn("rifOrdine", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnrifOrdine); + this.columnurlOrdine = new global::System.Data.DataColumn("urlOrdine", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnurlOrdine); + this.columnIndirizzo = new global::System.Data.DataColumn("Indirizzo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIndirizzo); + this.columnNote = new global::System.Data.DataColumn("Note", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNote); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnidxFase}, true)); + this.columnidxFase.AllowDBNull = false; + this.columnidxFase.Unique = true; + this.columnnomeFase.MaxLength = 250; + this.columndescrizioneFase.MaxLength = 250; + this.columnAttivo.AllowDBNull = false; + this.columncodExt.MaxLength = 50; + this.columnCapoCommessa.MaxLength = 50; + this.columnSQC.AllowDBNull = false; + this.columnPubblico.AllowDBNull = false; + this.columnEnteProcuratore.MaxLength = 100; + this.columnImporto.AllowDBNull = false; + this.columnBCWS_ore.ReadOnly = true; + this.columnBCWS_money.ReadOnly = true; + this.columnrifOfferta.MaxLength = 100; + this.columnurlOfferta.MaxLength = 250; + this.columnrifOrdine.MaxLength = 100; + this.columnurlOrdine.MaxLength = 250; + this.columnIndirizzo.MaxLength = 100; + this.columnNote.MaxLength = 500; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_CommessaRow Newv_CommessaRow() { + return ((v_CommessaRow)(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 v_CommessaRow(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(v_CommessaRow); + } + + [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.v_CommessaRowChanged != null)) { + this.v_CommessaRowChanged(this, new v_CommessaRowChangeEvent(((v_CommessaRow)(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.v_CommessaRowChanging != null)) { + this.v_CommessaRowChanging(this, new v_CommessaRowChangeEvent(((v_CommessaRow)(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.v_CommessaRowDeleted != null)) { + this.v_CommessaRowDeleted(this, new v_CommessaRowChangeEvent(((v_CommessaRow)(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.v_CommessaRowDeleting != null)) { + this.v_CommessaRowDeleting(this, new v_CommessaRowChangeEvent(((v_CommessaRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Removev_CommessaRow(v_CommessaRow 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 = "v_CommessaDataTable"; + 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. /// @@ -13867,6 +14568,693 @@ namespace ETS_Data { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class v_CommessaRow : global::System.Data.DataRow { + + private v_CommessaDataTable tablev_Commessa; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal v_CommessaRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablev_Commessa = ((v_CommessaDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int idxFase { + get { + return ((int)(this[this.tablev_Commessa.idxFaseColumn])); + } + set { + this[this.tablev_Commessa.idxFaseColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int idxProgetto { + get { + try { + return ((int)(this[this.tablev_Commessa.idxProgettoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'idxProgetto\' nella tabella \'v_Commessa\' è DBNull.", e); + } + } + set { + this[this.tablev_Commessa.idxProgettoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string nomeFase { + get { + try { + return ((string)(this[this.tablev_Commessa.nomeFaseColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'nomeFase\' nella tabella \'v_Commessa\' è DBNull.", e); + } + } + set { + this[this.tablev_Commessa.nomeFaseColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string descrizioneFase { + get { + try { + return ((string)(this[this.tablev_Commessa.descrizioneFaseColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'descrizioneFase\' nella tabella \'v_Commessa\' è DBNull.", e); + } + } + set { + this[this.tablev_Commessa.descrizioneFaseColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool enableTime { + get { + try { + return ((bool)(this[this.tablev_Commessa.enableTimeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'enableTime\' nella tabella \'v_Commessa\' è DBNull.", e); + } + } + set { + this[this.tablev_Commessa.enableTimeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool enableMoney { + get { + try { + return ((bool)(this[this.tablev_Commessa.enableMoneyColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'enableMoney\' nella tabella \'v_Commessa\' è DBNull.", e); + } + } + set { + this[this.tablev_Commessa.enableMoneyColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool Attivo { + get { + return ((bool)(this[this.tablev_Commessa.AttivoColumn])); + } + set { + this[this.tablev_Commessa.AttivoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string codExt { + get { + try { + return ((string)(this[this.tablev_Commessa.codExtColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'codExt\' nella tabella \'v_Commessa\' è DBNull.", e); + } + } + set { + this[this.tablev_Commessa.codExtColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int AnnoCommessa { + get { + try { + return ((int)(this[this.tablev_Commessa.AnnoCommessaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'AnnoCommessa\' nella tabella \'v_Commessa\' è DBNull.", e); + } + } + set { + this[this.tablev_Commessa.AnnoCommessaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int NumeroCommessa { + get { + try { + return ((int)(this[this.tablev_Commessa.NumeroCommessaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'NumeroCommessa\' nella tabella \'v_Commessa\' è DBNull.", e); + } + } + set { + this[this.tablev_Commessa.NumeroCommessaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool CheckOk { + get { + try { + return ((bool)(this[this.tablev_Commessa.CheckOkColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'CheckOk\' nella tabella \'v_Commessa\' è DBNull.", e); + } + } + set { + this[this.tablev_Commessa.CheckOkColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string CapoCommessa { + get { + try { + return ((string)(this[this.tablev_Commessa.CapoCommessaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'CapoCommessa\' nella tabella \'v_Commessa\' è DBNull.", e); + } + } + set { + this[this.tablev_Commessa.CapoCommessaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool SQC { + get { + return ((bool)(this[this.tablev_Commessa.SQCColumn])); + } + set { + this[this.tablev_Commessa.SQCColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool Pubblico { + get { + return ((bool)(this[this.tablev_Commessa.PubblicoColumn])); + } + set { + this[this.tablev_Commessa.PubblicoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string EnteProcuratore { + get { + try { + return ((string)(this[this.tablev_Commessa.EnteProcuratoreColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'EnteProcuratore\' nella tabella \'v_Commessa\' è DBNull.", e); + } + } + set { + this[this.tablev_Commessa.EnteProcuratoreColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal Importo { + get { + return ((decimal)(this[this.tablev_Commessa.ImportoColumn])); + } + set { + this[this.tablev_Commessa.ImportoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal ImportoFornExt { + get { + try { + return ((decimal)(this[this.tablev_Commessa.ImportoFornExtColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'ImportoFornExt\' nella tabella \'v_Commessa\' è DBNull.", e); + } + } + set { + this[this.tablev_Commessa.ImportoFornExtColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal ImportoIntegrazioni { + get { + try { + return ((decimal)(this[this.tablev_Commessa.ImportoIntegrazioniColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'ImportoIntegrazioni\' nella tabella \'v_Commessa\' è DBNull" + + ".", e); + } + } + set { + this[this.tablev_Commessa.ImportoIntegrazioniColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal BCWS_ore { + get { + try { + return ((decimal)(this[this.tablev_Commessa.BCWS_oreColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'BCWS_ore\' nella tabella \'v_Commessa\' è DBNull.", e); + } + } + set { + this[this.tablev_Commessa.BCWS_oreColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal BCWS_money { + get { + try { + return ((decimal)(this[this.tablev_Commessa.BCWS_moneyColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'BCWS_money\' nella tabella \'v_Commessa\' è DBNull.", e); + } + } + set { + this[this.tablev_Commessa.BCWS_moneyColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime DataApertura { + get { + try { + return ((global::System.DateTime)(this[this.tablev_Commessa.DataAperturaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'DataApertura\' nella tabella \'v_Commessa\' è DBNull.", e); + } + } + set { + this[this.tablev_Commessa.DataAperturaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string rifOfferta { + get { + try { + return ((string)(this[this.tablev_Commessa.rifOffertaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'rifOfferta\' nella tabella \'v_Commessa\' è DBNull.", e); + } + } + set { + this[this.tablev_Commessa.rifOffertaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string urlOfferta { + get { + try { + return ((string)(this[this.tablev_Commessa.urlOffertaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'urlOfferta\' nella tabella \'v_Commessa\' è DBNull.", e); + } + } + set { + this[this.tablev_Commessa.urlOffertaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string rifOrdine { + get { + try { + return ((string)(this[this.tablev_Commessa.rifOrdineColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'rifOrdine\' nella tabella \'v_Commessa\' è DBNull.", e); + } + } + set { + this[this.tablev_Commessa.rifOrdineColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string urlOrdine { + get { + try { + return ((string)(this[this.tablev_Commessa.urlOrdineColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'urlOrdine\' nella tabella \'v_Commessa\' è DBNull.", e); + } + } + set { + this[this.tablev_Commessa.urlOrdineColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Indirizzo { + get { + try { + return ((string)(this[this.tablev_Commessa.IndirizzoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'Indirizzo\' nella tabella \'v_Commessa\' è DBNull.", e); + } + } + set { + this[this.tablev_Commessa.IndirizzoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Note { + get { + try { + return ((string)(this[this.tablev_Commessa.NoteColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'Note\' nella tabella \'v_Commessa\' è DBNull.", e); + } + } + set { + this[this.tablev_Commessa.NoteColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsidxProgettoNull() { + return this.IsNull(this.tablev_Commessa.idxProgettoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetidxProgettoNull() { + this[this.tablev_Commessa.idxProgettoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsnomeFaseNull() { + return this.IsNull(this.tablev_Commessa.nomeFaseColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetnomeFaseNull() { + this[this.tablev_Commessa.nomeFaseColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsdescrizioneFaseNull() { + return this.IsNull(this.tablev_Commessa.descrizioneFaseColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetdescrizioneFaseNull() { + this[this.tablev_Commessa.descrizioneFaseColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsenableTimeNull() { + return this.IsNull(this.tablev_Commessa.enableTimeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetenableTimeNull() { + this[this.tablev_Commessa.enableTimeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsenableMoneyNull() { + return this.IsNull(this.tablev_Commessa.enableMoneyColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetenableMoneyNull() { + this[this.tablev_Commessa.enableMoneyColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IscodExtNull() { + return this.IsNull(this.tablev_Commessa.codExtColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetcodExtNull() { + this[this.tablev_Commessa.codExtColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsAnnoCommessaNull() { + return this.IsNull(this.tablev_Commessa.AnnoCommessaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetAnnoCommessaNull() { + this[this.tablev_Commessa.AnnoCommessaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsNumeroCommessaNull() { + return this.IsNull(this.tablev_Commessa.NumeroCommessaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetNumeroCommessaNull() { + this[this.tablev_Commessa.NumeroCommessaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsCheckOkNull() { + return this.IsNull(this.tablev_Commessa.CheckOkColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetCheckOkNull() { + this[this.tablev_Commessa.CheckOkColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsCapoCommessaNull() { + return this.IsNull(this.tablev_Commessa.CapoCommessaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetCapoCommessaNull() { + this[this.tablev_Commessa.CapoCommessaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsEnteProcuratoreNull() { + return this.IsNull(this.tablev_Commessa.EnteProcuratoreColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetEnteProcuratoreNull() { + this[this.tablev_Commessa.EnteProcuratoreColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsImportoFornExtNull() { + return this.IsNull(this.tablev_Commessa.ImportoFornExtColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetImportoFornExtNull() { + this[this.tablev_Commessa.ImportoFornExtColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsImportoIntegrazioniNull() { + return this.IsNull(this.tablev_Commessa.ImportoIntegrazioniColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetImportoIntegrazioniNull() { + this[this.tablev_Commessa.ImportoIntegrazioniColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsBCWS_oreNull() { + return this.IsNull(this.tablev_Commessa.BCWS_oreColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetBCWS_oreNull() { + this[this.tablev_Commessa.BCWS_oreColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsBCWS_moneyNull() { + return this.IsNull(this.tablev_Commessa.BCWS_moneyColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetBCWS_moneyNull() { + this[this.tablev_Commessa.BCWS_moneyColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDataAperturaNull() { + return this.IsNull(this.tablev_Commessa.DataAperturaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDataAperturaNull() { + this[this.tablev_Commessa.DataAperturaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsrifOffertaNull() { + return this.IsNull(this.tablev_Commessa.rifOffertaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetrifOffertaNull() { + this[this.tablev_Commessa.rifOffertaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsurlOffertaNull() { + return this.IsNull(this.tablev_Commessa.urlOffertaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SeturlOffertaNull() { + this[this.tablev_Commessa.urlOffertaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsrifOrdineNull() { + return this.IsNull(this.tablev_Commessa.rifOrdineColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetrifOrdineNull() { + this[this.tablev_Commessa.rifOrdineColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsurlOrdineNull() { + return this.IsNull(this.tablev_Commessa.urlOrdineColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SeturlOrdineNull() { + this[this.tablev_Commessa.urlOrdineColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsIndirizzoNull() { + return this.IsNull(this.tablev_Commessa.IndirizzoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetIndirizzoNull() { + this[this.tablev_Commessa.IndirizzoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsNoteNull() { + return this.IsNull(this.tablev_Commessa.NoteColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetNoteNull() { + this[this.tablev_Commessa.NoteColumn] = global::System.Convert.DBNull; + } + } + /// ///Row event argument class /// @@ -14512,6 +15900,40 @@ namespace ETS_Data { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class v_CommessaRowChangeEvent : global::System.EventArgs { + + private v_CommessaRow 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 v_CommessaRowChangeEvent(v_CommessaRow 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 v_CommessaRow 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 { @@ -23250,6 +24672,222 @@ SELECT Anno, Sett, DtLastSend, SentBy FROM LogEmailBaz WHERE (Anno = @Anno) AND } } + /// + ///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 v_CommessaTableAdapter : 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 v_CommessaTableAdapter() { + 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 = "v_Commessa"; + tableMapping.ColumnMappings.Add("idxFase", "idxFase"); + tableMapping.ColumnMappings.Add("idxProgetto", "idxProgetto"); + tableMapping.ColumnMappings.Add("nomeFase", "nomeFase"); + tableMapping.ColumnMappings.Add("descrizioneFase", "descrizioneFase"); + tableMapping.ColumnMappings.Add("enableTime", "enableTime"); + tableMapping.ColumnMappings.Add("enableMoney", "enableMoney"); + tableMapping.ColumnMappings.Add("Attivo", "Attivo"); + tableMapping.ColumnMappings.Add("codExt", "codExt"); + tableMapping.ColumnMappings.Add("AnnoCommessa", "AnnoCommessa"); + tableMapping.ColumnMappings.Add("NumeroCommessa", "NumeroCommessa"); + tableMapping.ColumnMappings.Add("CheckOk", "CheckOk"); + tableMapping.ColumnMappings.Add("CapoCommessa", "CapoCommessa"); + tableMapping.ColumnMappings.Add("SQC", "SQC"); + tableMapping.ColumnMappings.Add("Pubblico", "Pubblico"); + tableMapping.ColumnMappings.Add("EnteProcuratore", "EnteProcuratore"); + tableMapping.ColumnMappings.Add("Importo", "Importo"); + tableMapping.ColumnMappings.Add("ImportoFornExt", "ImportoFornExt"); + tableMapping.ColumnMappings.Add("ImportoIntegrazioni", "ImportoIntegrazioni"); + tableMapping.ColumnMappings.Add("BCWS_ore", "BCWS_ore"); + tableMapping.ColumnMappings.Add("BCWS_money", "BCWS_money"); + tableMapping.ColumnMappings.Add("DataApertura", "DataApertura"); + tableMapping.ColumnMappings.Add("rifOfferta", "rifOfferta"); + tableMapping.ColumnMappings.Add("urlOfferta", "urlOfferta"); + tableMapping.ColumnMappings.Add("rifOrdine", "rifOrdine"); + tableMapping.ColumnMappings.Add("urlOrdine", "urlOrdine"); + tableMapping.ColumnMappings.Add("Indirizzo", "Indirizzo"); + tableMapping.ColumnMappings.Add("Note", "Note"); + this._adapter.TableMappings.Add(tableMapping); + } + + [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 idxFase, idxProgetto, nomeFase, descrizioneFase, enableTime, enableMoney, Attivo, codExt, AnnoCommessa, NumeroCommessa, CheckOk, CapoCommessa, SQC, Pubblico, EnteProcuratore, Importo, ImportoFornExt, ImportoIntegrazioni, BCWS_ore, BCWS_money, DataApertura, rifOfferta, urlOfferta, rifOrdine, urlOrdine, Indirizzo, Note FROM dbo.v_Commessa"; + 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_VC_getByYear"; + 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("@minYear", 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.v_CommessaDataTable 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.v_CommessaDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + Ds_ProjEts.v_CommessaDataTable dataTable = new Ds_ProjEts.v_CommessaDataTable(); + 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.v_CommessaDataTable getByYearMin(global::System.Nullable minYear) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((minYear.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(minYear.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + Ds_ProjEts.v_CommessaDataTable dataTable = new Ds_ProjEts.v_CommessaDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// @@ -23710,6 +25348,15 @@ SELECT Anno, Sett, DtLastSend, SentBy FROM LogEmailBaz WHERE (Anno = @Anno) AND 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._labelsCommTableAdapter != null)) { global::System.Data.DataRow[] updatedRows = dataSet.LabelsComm.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); @@ -23755,12 +25402,12 @@ SELECT Anno, Sett, DtLastSend, SentBy FROM LogEmailBaz WHERE (Anno = @Anno) AND allChangedRows.AddRange(updatedRows); } } - if ((this._tLockBazRATableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.TLockBazRA.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._tLockBazRATableAdapter.Update(updatedRows)); + result = (result + this._logEmailBazTableAdapter.Update(updatedRows)); allChangedRows.AddRange(updatedRows); } } @@ -23791,15 +25438,6 @@ SELECT Anno, Sett, DtLastSend, SentBy FROM LogEmailBaz WHERE (Anno = @Anno) AND allChangedRows.AddRange(updatedRows); } } - 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._logEmailBazTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } return result; } @@ -23850,6 +25488,14 @@ SELECT Anno, Sett, DtLastSend, SentBy FROM LogEmailBaz WHERE (Anno = @Anno) AND 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._labelsCommTableAdapter != null)) { global::System.Data.DataRow[] addedRows = dataSet.LabelsComm.Select(null, null, global::System.Data.DataViewRowState.Added); if (((addedRows != null) @@ -23890,11 +25536,11 @@ SELECT Anno, Sett, DtLastSend, SentBy FROM LogEmailBaz WHERE (Anno = @Anno) AND allAddedRows.AddRange(addedRows); } } - if ((this._tLockBazRATableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.TLockBazRA.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._tLockBazRATableAdapter.Update(addedRows)); + result = (result + this._logEmailBazTableAdapter.Update(addedRows)); allAddedRows.AddRange(addedRows); } } @@ -23922,14 +25568,6 @@ SELECT Anno, Sett, DtLastSend, SentBy FROM LogEmailBaz WHERE (Anno = @Anno) AND allAddedRows.AddRange(addedRows); } } - 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._logEmailBazTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } return result; } @@ -23940,14 +25578,6 @@ SELECT Anno, Sett, DtLastSend, SentBy FROM LogEmailBaz WHERE (Anno = @Anno) AND [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._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._logEmailBazTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } if ((this._datiCommFornTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.DatiCommForn.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) @@ -23972,11 +25602,11 @@ SELECT Anno, Sett, DtLastSend, SentBy FROM LogEmailBaz WHERE (Anno = @Anno) AND allChangedRows.AddRange(deletedRows); } } - if ((this._tLockBazRATableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.TLockBazRA.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._tLockBazRATableAdapter.Update(deletedRows)); + result = (result + this._logEmailBazTableAdapter.Update(deletedRows)); allChangedRows.AddRange(deletedRows); } } @@ -24020,6 +25650,14 @@ SELECT Anno, Sett, DtLastSend, SentBy FROM LogEmailBaz WHERE (Anno = @Anno) AND allChangedRows.AddRange(deletedRows); } } + 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._tLockBazRATableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } if ((this._anagTipoRisorseTableAdapter != null)) { global::System.Data.DataRow[] deletedRows = dataSet.AnagTipoRisorse.Select(null, null, global::System.Data.DataViewRowState.Deleted); if (((deletedRows != null) diff --git a/ETS_Data/Ds_ProjEts.xsd b/ETS_Data/Ds_ProjEts.xsd index 2c266d3..470cdcf 100644 --- a/ETS_Data/Ds_ProjEts.xsd +++ b/ETS_Data/Ds_ProjEts.xsd @@ -1661,7 +1661,7 @@ SELECT idxFase, CodLabel FROM LabelsComm WHERE (CodLabel = @CodLabel) AND (idxFa - + dbo.stp_L2C_massRecalc @@ -1671,7 +1671,7 @@ SELECT idxFase, CodLabel FROM LabelsComm WHERE (CodLabel = @CodLabel) AND (idxFa - + dbo.stp_L2C_UpsertQuery @@ -1855,6 +1855,60 @@ SELECT Anno, Sett, DtLastSend, SentBy FROM LogEmailBaz WHERE (Anno = @Anno) AND + + + + + + SELECT idxFase, idxProgetto, nomeFase, descrizioneFase, enableTime, enableMoney, Attivo, codExt, AnnoCommessa, NumeroCommessa, CheckOk, CapoCommessa, SQC, Pubblico, EnteProcuratore, Importo, ImportoFornExt, ImportoIntegrazioni, BCWS_ore, BCWS_money, DataApertura, rifOfferta, urlOfferta, rifOrdine, urlOrdine, Indirizzo, Note FROM dbo.v_Commessa + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_VC_getByYear + + + + + + + + + @@ -1863,7 +1917,7 @@ SELECT Anno, Sett, DtLastSend, SentBy FROM LogEmailBaz WHERE (Anno = @Anno) AND - + @@ -1906,7 +1960,7 @@ SELECT Anno, Sett, DtLastSend, SentBy FROM LogEmailBaz WHERE (Anno = @Anno) AND - + @@ -1956,7 +2010,7 @@ SELECT Anno, Sett, DtLastSend, SentBy FROM LogEmailBaz WHERE (Anno = @Anno) AND - + @@ -2052,7 +2106,7 @@ SELECT Anno, Sett, DtLastSend, SentBy FROM LogEmailBaz WHERE (Anno = @Anno) AND - + @@ -2103,7 +2157,7 @@ SELECT Anno, Sett, DtLastSend, SentBy FROM LogEmailBaz WHERE (Anno = @Anno) AND - + @@ -2155,7 +2209,7 @@ SELECT Anno, Sett, DtLastSend, SentBy FROM LogEmailBaz WHERE (Anno = @Anno) AND - + @@ -2258,7 +2312,7 @@ SELECT Anno, Sett, DtLastSend, SentBy FROM LogEmailBaz WHERE (Anno = @Anno) AND - + @@ -2306,7 +2360,7 @@ SELECT Anno, Sett, DtLastSend, SentBy FROM LogEmailBaz WHERE (Anno = @Anno) AND - + @@ -2323,7 +2377,7 @@ SELECT Anno, Sett, DtLastSend, SentBy FROM LogEmailBaz WHERE (Anno = @Anno) AND - + @@ -2344,7 +2398,7 @@ SELECT Anno, Sett, DtLastSend, SentBy FROM LogEmailBaz WHERE (Anno = @Anno) AND - + @@ -2365,7 +2419,7 @@ SELECT Anno, Sett, DtLastSend, SentBy FROM LogEmailBaz WHERE (Anno = @Anno) AND - + @@ -2500,7 +2554,7 @@ SELECT Anno, Sett, DtLastSend, SentBy FROM LogEmailBaz WHERE (Anno = @Anno) AND - + @@ -2519,7 +2573,7 @@ SELECT Anno, Sett, DtLastSend, SentBy FROM LogEmailBaz WHERE (Anno = @Anno) AND - + @@ -2530,7 +2584,7 @@ SELECT Anno, Sett, DtLastSend, SentBy FROM LogEmailBaz WHERE (Anno = @Anno) AND - + @@ -2546,7 +2600,7 @@ SELECT Anno, Sett, DtLastSend, SentBy FROM LogEmailBaz WHERE (Anno = @Anno) AND - + @@ -2575,7 +2629,7 @@ SELECT Anno, Sett, DtLastSend, SentBy FROM LogEmailBaz WHERE (Anno = @Anno) AND - + @@ -2595,7 +2649,7 @@ SELECT Anno, Sett, DtLastSend, SentBy FROM LogEmailBaz WHERE (Anno = @Anno) AND - + @@ -2609,7 +2663,7 @@ SELECT Anno, Sett, DtLastSend, SentBy FROM LogEmailBaz WHERE (Anno = @Anno) AND - + @@ -2624,7 +2678,7 @@ SELECT Anno, Sett, DtLastSend, SentBy FROM LogEmailBaz WHERE (Anno = @Anno) AND - + @@ -2640,6 +2694,105 @@ SELECT Anno, Sett, DtLastSend, SentBy FROM LogEmailBaz WHERE (Anno = @Anno) AND + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2730,16 +2883,20 @@ SELECT Anno, Sett, DtLastSend, SentBy FROM LogEmailBaz WHERE (Anno = @Anno) AND + + + + - - - - - - - + + + + + + + \ No newline at end of file diff --git a/ETS_Data/Ds_ProjEts.xss b/ETS_Data/Ds_ProjEts.xss index 999dec8..fe98910 100644 --- a/ETS_Data/Ds_ProjEts.xss +++ b/ETS_Data/Ds_ProjEts.xss @@ -4,30 +4,31 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + - + 370 @@ -39,7 +40,7 @@ - + 876 @@ -51,7 +52,7 @@ - + 1107 @@ -63,7 +64,7 @@ - + 1107 @@ -83,7 +84,7 @@ - + 495 @@ -99,7 +100,7 @@ - + 172 @@ -115,7 +116,7 @@ - + 1298 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 22a468c..d4e0d44 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/PROJ-ETS/PROJ-ETS/Temp/Programmazione settimana 29-2017.csv b/PROJ-ETS/PROJ-ETS/Temp/Programmazione settimana 29-2017.csv index 13b21f4..3b424ab 100644 --- a/PROJ-ETS/PROJ-ETS/Temp/Programmazione settimana 29-2017.csv +++ b/PROJ-ETS/PROJ-ETS/Temp/Programmazione settimana 29-2017.csv @@ -24,8 +24,6 @@ 0315-2016;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0;0;8;8;8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 0130-2016;;;;;;;;;;;;;;;;;;;;;;;;;;4;4;4;4;4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0;8;8;8;8;0;8;0;0;8;;;;;;8;8;8;8;8;8;8;8;8;8;4;4;0;0;0;8;8;0;0;0;0;0;8;0;8;8;8;8;8;8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 0179-2017;;;;;;;;;;;;;;;;4;0;0;0;0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8;0;0;0;0;;;;;;8;8;0;0;0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -0250-2017;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0;0;4;0;8;;;;;;;;;;;4;0;0;0;0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -0251-2017;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0;4;0;0;0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 0120-2017;;;;;;;;;;;;;;;;;;;;;4;4;0;0;0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8;0;0;0;0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; diff --git a/PROJ-ETS/PROJ-ETS/Web.config b/PROJ-ETS/PROJ-ETS/Web.config index 3e2f03a..d478fb1 100644 --- a/PROJ-ETS/PROJ-ETS/Web.config +++ b/PROJ-ETS/PROJ-ETS/Web.config @@ -29,8 +29,8 @@ - - + + @@ -55,7 +55,8 @@ - + + diff --git a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_ImportBazaarCSV.ascx b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_ImportBazaarCSV.ascx index fc23905..e6faa55 100644 --- a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_ImportBazaarCSV.ascx +++ b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_ImportBazaarCSV.ascx @@ -10,44 +10,58 @@
-
+
Step 1 : Import File
-
+
-
+
separatore: 
-
+
Step 2 : Info File
-
+
-
+
Step 3 : Verifica commesse e risorse
-
+
-
+
Step 4: Conferma
-
- -
+
+ +
-
- Carica dati +
+ +
+ +
+
+
+ Carica dati +
+
+
+
+ Step 5: Esito +
+
+

diff --git a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_ImportBazaarCSV.ascx.cs b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_ImportBazaarCSV.ascx.cs index 74e25c1..7615e18 100644 --- a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_ImportBazaarCSV.ascx.cs +++ b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_ImportBazaarCSV.ascx.cs @@ -23,13 +23,35 @@ namespace PROJ_ETS.WebUserControls /// Elenco allocazioni risorse... /// public List elAllocazioni; + /// + /// Oggetto elenco commesse + /// + public Ds_ProjEts.v_CommessaDataTable tabComm; + /// + /// Oggetto elenco dipendenti + /// + public Ds_ProjEts.DipendentiDataTable tabDip; + /// + /// Anno minimo da recuperare x commesse + /// + public int minYear = 0; + protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { + // inizializzo... + lblStep02.Text = ""; + lblStep03.Text = ""; + lblStep04.Text = ""; + lblErr.Text = ""; + lblOut.Text = ""; + lbtShow.Visible = false; + lbtShowErr.Visible = false; elRisorse = new List(); elCommesse = new List(); elAllocazioni = new List(); + minYear = DateTime.Today.Year; } mod_fileUpload.eh_fileCaricato += Mod_fileUpload_eh_fileCaricato; mod_fileUpload.eh_error += Mod_fileUpload_eh_error; @@ -81,9 +103,15 @@ namespace PROJ_ETS.WebUserControls elRisorse = new List(); elCommesse = new List(); elAllocazioni = new List(); + int numErrRis = 0; + int numErrCom = 0; lblStep02.Text = ""; lblStep03.Text = ""; lblStep04.Text = ""; + lblOut.Text = ""; + lblErr.Text = ""; + lbtShow.Visible = false; + lbtShowErr.Visible = false; // inizio processing... lblStep02.Text = string.Format("Caricato il file {0}.", mod_fileUpload.nomeFile); // ora lo leggo e verifico @@ -91,51 +119,85 @@ namespace PROJ_ETS.WebUserControls string fileName = string.Format(@"{0}\{1}", mod_fileUpload.folderPath, mod_fileUpload.nomeFile); string linea; totRighe = File.ReadLines(fileName).Count(); - // carica da file... - System.IO.StreamReader file = new System.IO.StreamReader(fileName); - // leggo 1 linea alla volta... - int numRiga = 0; - while ((linea = file.ReadLine()) != null) + if (totRighe > 0) { - // se è la prima riga LEGGO INTESTAZIONE... - if (numRiga == 0) + lbtShow.Visible = true; + // carica da file... + System.IO.StreamReader file = new System.IO.StreamReader(fileName); + // leggo 1 linea alla volta... + int numRiga = 0; + while ((linea = file.ReadLine()) != null) { - decodeRisorse(linea, charSep); - numRiga++; + // se è la prima riga LEGGO INTESTAZIONE... + if (numRiga == 0) + { + decodeRisorse(linea, charSep); + numRiga++; + } + else + { + // SE non è un commento... + if (linea.Substring(0, 1) != "#") + { + decodeCommessa(linea, charSep); + numRiga++; + } + } + } + // chiudo file + file.Close(); + + // recupero elenco dipendenti... + tabDip = DataProxy_ProjEts.DP.taDip.GetData(); + // recupero elenco commesse... + tabComm = DataProxy_ProjEts.DP.taVComm.getByYearMin(minYear); + // controllo tutti i dipendenti rilevati.. + foreach (var item in elRisorse) + { + // verifico SE ci sia tra i dipendenti... + if (tabDip.Select(string.Format("codHw ='{0}'", item)).Length == 0) + { + numErrRis++; + lblErr.Text += string.Format("KO Risorsa: {0}
", item); + lbtShowErr.Visible = true; + } + } + //controllo le commesse rilevate + foreach (var item in elCommesse) + { + // verifico SE ci sia tra i dipendenti... + if (tabComm.Select(string.Format("nomeFase ='{0}'", item)).Length == 0) + { + numErrCom++; + lblErr.Text += string.Format("KO Commessa: {0}
", item); + lbtShowErr.Visible = true; + } + } + + // mostro risultato lettura + lblStep03.Text += string.Format("Righe file: {0}
", totRighe); + lblStep03.Text += string.Format("Num Risorse: {0} ({1} errori)
", elRisorse.Count, numErrRis); + lblStep03.Text += string.Format("Num Commesse: {0} ({1} errori)
", elCommesse.Count, numErrCom); + lblStep03.Text += string.Format("Num allocazioni schedulate: {0}
", elAllocazioni.Count); + + // salvo allocazioni riconosciute + foreach (var item in elAllocazioni) + { + lblStep04.Text += string.Format("{0} | {1} | {2:00000}
", item.commessa, item.risorsa, item.allocazione); + } + // se passano i controlli mostro pulsante carica... + if (numErrCom == 0) + { + lbtConferma.Visible = true; } else { - // SE non è un commento... - if (linea.Substring(0, 1) != "#") - { - decodeCommessa(linea, charSep); - numRiga++; - } + lbtConferma.Visible = false; } } - // chiudo file - file.Close(); - // mostro risultato lettura - lblStep03.Text += string.Format("Righe file: {0}
", totRighe); - lblStep03.Text += string.Format("Num Risorse: {0}
", elRisorse.Count); - lblStep03.Text += string.Format("Num Commesse: {0} (check bloccante)
", elCommesse.Count); - lblStep03.Text += string.Format("Num allocazioni schedulate: {0}
", elAllocazioni.Count); - if (false) - { - lblStep03.Text += string.Format("Risorse non riconosciute: {0}
", totRighe); - } - foreach (var item in elAllocazioni) - { - lblStep04.Text += string.Format("{0} | {1} | {2:00000}
", item.commessa, item.risorsa, item.allocazione); - } - // se passano i controlli mostro pulsante carica... - if (true) - { - lbtConferma.Visible = true; - } else { - lbtConferma.Visible = false; + lblStep03.Text += "Errore! file vuoto"; } } @@ -172,10 +234,19 @@ namespace PROJ_ETS.WebUserControls { string[] valori = linea.Split(separator); int _allocazione = 0; + int annoC = 0; // la prima è la commessa, poi allocazioni giornaliere a blocchi di 5... SE c'è (!="") if (valori[0] != "") { elCommesse.Add(valori[0]); + // verifico anno minimo... + try + { + annoC = Convert.ToInt32(valori[0].Split('-')[1]); + minYear = annoC < minYear ? annoC : minYear; + } + catch + { } // ciclo a blocchi di 5 sull'elenco risorse... for (int i = 0; i < elRisorse.Count; i++) { @@ -301,13 +372,48 @@ namespace PROJ_ETS.WebUserControls protected void lbtShow_Click(object sender, EventArgs e) { divPreview.Visible = !divPreview.Visible; - if(divPreview.Visible) + if (divPreview.Visible) { - lbtShow.Text = "Nascondi Anteprima"; + lbtShow.Text = "Nascondi Anteprima Dati"; } else { - lbtShow.Text = "Mostra Anteprima"; + lbtShow.Text = "Mostra Anteprima Dati"; + } + } + + protected void lbtShowErr_Click(object sender, EventArgs e) + { + divErr.Visible = !divErr.Visible; + if (divErr.Visible) + { + lbtShowErr.Text = "Nascondi Anteprima ERRORI"; + } + else + { + lbtShowErr.Text = "Mostra Anteprima ERRORI"; + } + } + /// + /// Effettua caricamento dati + /// + /// + /// + protected void lbtConferma_Click(object sender, EventArgs e) + { + // verifico periodo sia ok (FUTURO...) + if (cudEnabled) + { + // elimino eventuali vecchi dati + + // effettuo caricamento dati! + + // mostro esito + lblOut.Text = "OK! dati caricati"; + } + else + { + lblOut.Text = "Errore: impossibile caricare i dati sulla settimana indicata (periodo protetto)"; } } } diff --git a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_ImportBazaarCSV.ascx.designer.cs b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_ImportBazaarCSV.ascx.designer.cs index d205e12..936c4f0 100644 --- a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_ImportBazaarCSV.ascx.designer.cs +++ b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_ImportBazaarCSV.ascx.designer.cs @@ -84,6 +84,33 @@ namespace PROJ_ETS.WebUserControls { /// protected global::System.Web.UI.WebControls.Label lblStep04; + /// + /// Controllo lbtShowErr. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.LinkButton lbtShowErr; + + /// + /// Controllo divErr. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl divErr; + + /// + /// Controllo lblErr. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.Label lblErr; + /// /// Controllo lbtConferma. /// @@ -92,5 +119,14 @@ namespace PROJ_ETS.WebUserControls { /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::System.Web.UI.WebControls.LinkButton lbtConferma; + + /// + /// Controllo lblOut. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.Label lblOut; } } diff --git a/PROJ-ETS/PROJ-ETS/bin/ETS_Data.dll b/PROJ-ETS/PROJ-ETS/bin/ETS_Data.dll index 09c9889..95882ba 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 eff1cb1..880fe05 100644 Binary files a/PROJ-ETS/PROJ-ETS/bin/PROJ-ETS.dll and b/PROJ-ETS/PROJ-ETS/bin/PROJ-ETS.dll differ