/// <summary> /// Ricerca le Richieste della Manutenzione Correttiva /// Usata nella Pagian ApprovaRDL Manutenzione Correttiva /// </summary> /// <param name="CollezioneControlli"></param> /// <returns></returns> public override DataSet GetData(S_Controls.Collections.S_ControlsCollection CollezioneControlli) { DataSet _Ds; S_Controls.Collections.S_Object s_IdIn = new S_Object(); s_IdIn.ParameterName = "p_utente"; s_IdIn.DbType = CustomDBType.VarChar; s_IdIn.Direction = ParameterDirection.Input; s_IdIn.Index = CollezioneControlli.Count + 1; s_IdIn.Value = this.username; CollezioneControlli.Add(s_IdIn); S_Controls.Collections.S_Object s_Cursor = new S_Object(); s_Cursor.ParameterName = "IO_CURSOR"; s_Cursor.DbType = CustomDBType.Cursor; s_Cursor.Direction = ParameterDirection.Output; s_Cursor.Index = CollezioneControlli.Count + 1; CollezioneControlli.Add(s_Cursor); string s_StrSql = "PACK_MANCORRETIVA.SP_RICERCARDL"; _Ds = _OraDl.GetRows(CollezioneControlli, s_StrSql).Copy(); return(_Ds); }
private void EliminaTRAddetto() { S_Controls.Collections.S_Object s_id_tr = new S_Object(); s_id_tr.ParameterName = "p_id_tr"; s_id_tr.DbType = CustomDBType.Integer; s_id_tr.Direction = ParameterDirection.Input; s_id_tr.Index = 0; s_id_tr.Value = 0; S_Controls.Collections.S_Object s_addetto_id = new S_Object(); s_addetto_id.ParameterName = "p_addetto_id"; s_addetto_id.DbType = CustomDBType.Integer; s_addetto_id.Direction = ParameterDirection.Input; s_addetto_id.Index = 1; s_addetto_id.Value = itemId; string S_Operazione = "Delall"; S_Controls.Collections.S_ControlsCollection _SCollection = new S_Controls.Collections.S_ControlsCollection(); _SCollection.Add(s_id_tr); _SCollection.Add(s_addetto_id); TheSite.Classi.ClassiAnagrafiche.Addetti _Addetti = new TheSite.Classi.ClassiAnagrafiche.Addetti(); _Addetti.ExecuteUpdatePMPAdd_TR(_SCollection, S_Operazione); }
public S_ControlsCollection getParam() { S_Controls.Collections.S_ControlsCollection _SCollection = new S_Controls.Collections.S_ControlsCollection(); S_Controls.Collections.S_Object s_p_Bl_Id = new S_Controls.Collections.S_Object(); s_p_Bl_Id.ParameterName = "p_Id_bl"; s_p_Bl_Id.DbType = ApplicationDataLayer.DBType.CustomDBType.VarChar; s_p_Bl_Id.Direction = ParameterDirection.Input; s_p_Bl_Id.Size = 50; s_p_Bl_Id.Index = _SCollection.Count; s_p_Bl_Id.Value = this.blid; _SCollection.Add(s_p_Bl_Id); S_Controls.Collections.S_Object s_p_piano = new S_Controls.Collections.S_Object(); s_p_piano.ParameterName = "p_piani"; s_p_piano.DbType = ApplicationDataLayer.DBType.CustomDBType.Integer; s_p_piano.Direction = ParameterDirection.Input; s_p_piano.Index = _SCollection.Count; s_p_piano.Value = (this.piano == "")?0:int.Parse(this.piano); _SCollection.Add(s_p_piano); S_Controls.Collections.S_Object s_p_stanza = new S_Controls.Collections.S_Object(); s_p_stanza.ParameterName = "p_stanza"; s_p_stanza.DbType = ApplicationDataLayer.DBType.CustomDBType.VarChar; s_p_stanza.Direction = ParameterDirection.Input; s_p_stanza.Size = 50; s_p_stanza.Index = _SCollection.Count; s_p_stanza.Value = this.codstanza; _SCollection.Add(s_p_stanza); return(_SCollection); }
public int GetIdProgetto(string Bl_id) { S_Controls.Collections.S_ControlsCollection control = new S_Controls.Collections.S_ControlsCollection(); S_Controls.Collections.S_Object s_bl_id = new S_Object(); s_bl_id.ParameterName = "p_bl_id"; s_bl_id.DbType = CustomDBType.VarChar; s_bl_id.Size = 10; s_bl_id.Value = Bl_id; s_bl_id.Index = control.Count; control.Add(s_bl_id); S_Controls.Collections.S_Object s_IdOut = new S_Object(); s_IdOut.ParameterName = "p_IdOut"; s_IdOut.DbType = CustomDBType.Integer; s_IdOut.Direction = ParameterDirection.Output; s_IdOut.Index = control.Count; control.Add(s_IdOut); ApplicationDataLayer.OracleDataLayer _OraDl = new OracleDataLayer(s_ConnStr); int i_Result = _OraDl.GetRowsAffected(control, "PACK_PIANI_APPROVATI.SP_GETIDPROGETTO"); return(i_Result); }
private DataSet UpdateWo(int itemId) { Classi.ManProgrammata.CompletaOrdine _Completa = new TheSite.Classi.ManProgrammata.CompletaOrdine(); int wo_id = itemId; S_Controls.Collections.S_ControlsCollection CollezioneControlli = new S_Controls.Collections.S_ControlsCollection(); S_Controls.Collections.S_Object p_wo_id = new S_Object(); p_wo_id.ParameterName = "p_wo_id"; p_wo_id.DbType = CustomDBType.Integer; p_wo_id.Direction = ParameterDirection.Input; p_wo_id.Index = 0; p_wo_id.Value = wo_id; CollezioneControlli.Add(p_wo_id); S_Controls.Collections.S_Object p_addetto_id = new S_Object(); p_addetto_id.ParameterName = "p_addetto_id"; p_addetto_id.DbType = CustomDBType.Integer; p_addetto_id.Direction = ParameterDirection.Input; p_addetto_id.Index = 1; p_addetto_id.Value = addetto_id; CollezioneControlli.Add(p_addetto_id); DataSet Ds = _Completa.AggiornaWO(CollezioneControlli); return(Ds); }
private string generacodice(int id_eqstd, int id_freq) { S_Controls.Collections.S_ControlsCollection _SCollection = new S_Controls.Collections.S_ControlsCollection(); S_Controls.Collections.S_Object s_p_id_eqstd = new S_Object(); s_p_id_eqstd.ParameterName = "p_id_eqstd"; s_p_id_eqstd.DbType = CustomDBType.Integer; s_p_id_eqstd.Direction = ParameterDirection.Input; s_p_id_eqstd.Value = id_eqstd; s_p_id_eqstd.Size = 10; s_p_id_eqstd.Index = 0; _SCollection.Add(s_p_id_eqstd); S_Controls.Collections.S_Object s_p_id_freq = new S_Object(); s_p_id_freq.ParameterName = "p_id_freq"; s_p_id_freq.DbType = CustomDBType.Integer; s_p_id_freq.Direction = ParameterDirection.Input; s_p_id_freq.Value = id_freq; s_p_id_freq.Size = 10; s_p_id_freq.Index = 1; _SCollection.Add(s_p_id_freq); Classi.ClassiAnagrafiche.Pmp _Pmp = new TheSite.Classi.ClassiAnagrafiche.Pmp(); return(_Pmp.GetCodicepmp(_SCollection)); }
public override DataSet GetSingleData(int id) { DataSet _Ds; S_Controls.Collections.S_ControlsCollection CollezioneControlli = new S_Controls.Collections.S_ControlsCollection(); S_Controls.Collections.S_Object s_p_id_letture_contatori = new S_Object(); s_p_id_letture_contatori.ParameterName = "p_id_letture_contatori"; s_p_id_letture_contatori.DbType = CustomDBType.VarChar; s_p_id_letture_contatori.Direction = ParameterDirection.Input; s_p_id_letture_contatori.Index = CollezioneControlli.Count + 1; s_p_id_letture_contatori.Value = id; s_p_id_letture_contatori.Size = 50; CollezioneControlli.Add(s_p_id_letture_contatori); S_Controls.Collections.S_Object s_Cursor = new S_Object(); s_Cursor.ParameterName = "IO_CURSOR"; s_Cursor.DbType = CustomDBType.Cursor; s_Cursor.Direction = ParameterDirection.Output; s_Cursor.Index = CollezioneControlli.Count + 1; CollezioneControlli.Add(s_Cursor); ApplicationDataLayer.OracleDataLayer _OraDl = new OracleDataLayer(s_ConnStr); string s_StrSql = "PACK_LETTURACONTATORI.GETALLLETTURE"; _Ds = _OraDl.GetRows(CollezioneControlli, s_StrSql).Copy(); return(_Ds); }
private void btnsEliminaglb_Click(object sender, System.EventArgs e) { Classi.MailSend _MailSend = new TheSite.Classi.MailSend(); S_Controls.Collections.S_ControlsCollection _SColl = new S_Controls.Collections.S_ControlsCollection(); S_Controls.Collections.S_Object s_email = new S_Controls.Collections.S_Object(); s_email.ParameterName = "p_email_Id"; s_email.DbType = ApplicationDataLayer.DBType.CustomDBType.Integer; s_email.Direction = ParameterDirection.Input; s_email.Index = 0; s_email.Value = itemId; S_Controls.Collections.S_Object s_Operazione = new S_Object(); s_Operazione.ParameterName = "p_Operazione"; s_Operazione.DbType = ApplicationDataLayer.DBType.CustomDBType.VarChar; s_Operazione.Direction = ParameterDirection.Input; s_Operazione.Index = 1; s_Operazione.Value = "Delete"; S_Controls.Collections.S_Object s_IdOut = new S_Object(); s_IdOut.ParameterName = "p_IdOut"; s_IdOut.DbType = ApplicationDataLayer.DBType.CustomDBType.Integer; s_IdOut.Direction = ParameterDirection.Output; s_IdOut.Index = 2; _SColl.Add(s_email); _SColl.Add(s_Operazione); _SColl.Add(s_IdOut); _MailSend.UpdateEmailEdificiServiziglb(_SColl); lblMessage.Text = "Elimina Associazione Email Edifici Servizi Globale"; }
public DataSet GetInfoDoc(int id) { DataSet _Ds; S_Controls.Collections.S_ControlsCollection control = new S_Controls.Collections.S_ControlsCollection(); S_Controls.Collections.S_Object s_p = new S_Object(); s_p.ParameterName = "p_id"; s_p.DbType = CustomDBType.Integer; s_p.Direction = ParameterDirection.Input; s_p.Index = control.Count + 1; s_p.Value = id; control.Add(s_p); S_Controls.Collections.S_Object s_Cursor = new S_Object(); s_Cursor.ParameterName = "IO_CURSOR"; s_Cursor.DbType = CustomDBType.Cursor; s_Cursor.Direction = ParameterDirection.Output; s_Cursor.Index = control.Count; control.Add(s_Cursor); ApplicationDataLayer.OracleDataLayer _OraDl = new OracleDataLayer(s_ConnStr); string s_StrSql = "PACK_PIANI_APPROVATI.SP_GETINFOEDIF"; _Ds = _OraDl.GetRows(control, s_StrSql).Copy(); return(_Ds); }
/// <summary> /// Ricerca le Richieste della Manutenzione Correttiva /// Usata nella Pagina Completamento Manutenzione Correttiva /// </summary> /// <param name="CollezioneControlli"></param> /// <returns></returns> public DataSet GetDataCompletamento(S_Controls.Collections.S_ControlsCollection CollezioneControlli) { S_Controls.Collections.S_Object s_p_username = new S_Object(); s_p_username.ParameterName = "p_username"; s_p_username.DbType = CustomDBType.VarChar; s_p_username.Direction = ParameterDirection.Input; s_p_username.Index = CollezioneControlli.Count + 1; s_p_username.Value = this.username; s_p_username.Size = 50; CollezioneControlli.Add(s_p_username); S_Controls.Collections.S_Object s_Cursor = new S_Object(); s_Cursor.ParameterName = "IO_CURSOR"; s_Cursor.DbType = CustomDBType.Cursor; s_Cursor.Direction = ParameterDirection.Output; s_Cursor.Index = CollezioneControlli.Count + 1; CollezioneControlli.Add(s_Cursor); ApplicationDataLayer.OracleDataLayer _OraDl = new OracleDataLayer(s_ConnStr); string s_StrSql = "PACK_MANCORRETIVA.SP_GETCOMPLETAMENTO"; DataSet _Ds = _OraDl.GetRows(CollezioneControlli, s_StrSql).Copy(); return(_Ds); }
private void btnCopiaRuolo_Click(object sender, System.EventArgs e) { Classi.Ruolo _Ruolo = new TheSite.Classi.Ruolo(); S_Controls.Collections.S_ControlsCollection _SColl = new S_Controls.Collections.S_ControlsCollection(); S_Controls.Collections.S_Object s_p_ruolo_Id = new S_Object(); s_p_ruolo_Id.ParameterName = "p_ruolo_Id"; s_p_ruolo_Id.DbType = CustomDBType.Integer; s_p_ruolo_Id.Direction = ParameterDirection.Input; s_p_ruolo_Id.Size = 8; s_p_ruolo_Id.Index = _SColl.Count; s_p_ruolo_Id.Value = itemId; _SColl.Add(s_p_ruolo_Id); S_Controls.Collections.S_Object s_p_ruolo_da_copiare = new S_Object(); s_p_ruolo_da_copiare.ParameterName = "p_ruolo_da_copiare"; s_p_ruolo_da_copiare.DbType = CustomDBType.Integer; s_p_ruolo_da_copiare.Direction = ParameterDirection.Input; s_p_ruolo_da_copiare.Size = 8; s_p_ruolo_da_copiare.Index = _SColl.Count; s_p_ruolo_da_copiare.Value = Convert.ToInt32(cmbCopiaruolo.SelectedValue); _SColl.Add(s_p_ruolo_da_copiare); int rows = _Ruolo.CopiaFunzioni(_SColl); BindGrid(); }
public DataSet GetEdifici(string username) { DataSet _Ds; S_Controls.Collections.S_ControlsCollection control = new S_Controls.Collections.S_ControlsCollection(); S_Controls.Collections.S_Object p = new S_Object(); p.ParameterName = "p_username"; p.DbType = CustomDBType.VarChar; p.Direction = ParameterDirection.Input; p.Index = control.Count; p.Size = 20; p.Value = username; control.Add(p); S_Controls.Collections.S_Object s_Cursor = new S_Object(); s_Cursor.ParameterName = "IO_CURSOR"; s_Cursor.DbType = CustomDBType.Cursor; s_Cursor.Direction = ParameterDirection.Output; s_Cursor.Index = control.Count; control.Add(s_Cursor); ApplicationDataLayer.OracleDataLayer _OraDl = new OracleDataLayer(s_ConnStr); string s_StrSql = "PACK_KPI_VODAFONE.sp_getedifici"; _Ds = _OraDl.GetRows(control, s_StrSql).Copy(); return(_Ds); }
private void BtSalva_Click(object sender, System.EventArgs e) { // chiama dll string ConnectionStr = System.Configuration.ConfigurationSettings.AppSettings["ConnectionString"]; KPIVod.KPIVod kpi = new KPIVod.KPIVod(ConnectionStr); string FileMaster = Path.Combine(Server.MapPath("../MasterExcel"), "KPI_Vodafone.xls"); string PathOut = Path.Combine(Server.MapPath("../Doc_Db"), @"KPI\KPI Vod\KPI Eseguiti"); string file = kpi.WriteReport(FileMaster, PathOut, Convert.ToInt32(DropMeseIni.SelectedValue), Convert.ToInt32(DropMeseFine.SelectedValue), Convert.ToInt32(DropAnno.SelectedValue)); TheSite.Classi.SoddCliente.KPI _kpi = new TheSite.Classi.SoddCliente.KPI(); S_Controls.Collections.S_ControlsCollection control = new S_Controls.Collections.S_ControlsCollection(); S_Controls.Collections.S_Object p = new S_Object(); p.ParameterName = "P_NOMEFILE"; p.DbType = CustomDBType.VarChar; p.Direction = ParameterDirection.Input; p.Index = control.Count; p.Size = 50; p.Value = Path.GetFileName(file); control.Add(p); p = new S_Object(); p.ParameterName = "P_USERNAME"; p.DbType = CustomDBType.VarChar; p.Direction = ParameterDirection.Input; p.Index = control.Count; p.Size = 10; p.Value = Context.User.Identity.Name; control.Add(p); p = new S_Object(); p.ParameterName = "P_DATESTART"; p.DbType = CustomDBType.VarChar; p.Direction = ParameterDirection.Input; p.Index = control.Count; p.Size = 10; p.Value = DropMeseIni.SelectedValue + "/" + DropAnno.SelectedValue; control.Add(p); p = new S_Object(); p.ParameterName = "P_DATEEND"; p.DbType = CustomDBType.VarChar; p.Direction = ParameterDirection.Input; p.Index = control.Count; p.Size = 10; p.Value = DropMeseFine.SelectedValue + "/" + DropAnno.SelectedValue; control.Add(p); _kpi.SaveReportVod(control); string scriptString = "<script language=JavaScript>alert('Il file è stato salvato correttamente.');</script>"; if (!this.IsClientScriptBlockRegistered("clientScriptexp")) { this.RegisterStartupScript("clientScriptexp", scriptString); } }
private bool Execute(bool reset) { bool chech = true; Classi.AnagrafeImpianti.Apparecchiature _Apparecchiature = new TheSite.Classi.AnagrafeImpianti.Apparecchiature(Context.User.Identity.Name); S_Controls.Collections.S_ControlsCollection _SCollection = riempiDatasetRicerca(); S_Controls.Collections.S_Object s_p_pageindex = new S_Object(); s_p_pageindex.ParameterName = "pageindex"; s_p_pageindex.DbType = CustomDBType.Integer; s_p_pageindex.Direction = ParameterDirection.Input; s_p_pageindex.Index = _SCollection.Count + 1; s_p_pageindex.Value = MyDataGrid1.CurrentPageIndex + 1; _SCollection.Add(s_p_pageindex); S_Controls.Collections.S_Object s_p_pagesize = new S_Object(); s_p_pagesize.ParameterName = "pagesize"; s_p_pagesize.DbType = CustomDBType.Integer; s_p_pagesize.Direction = ParameterDirection.Input; s_p_pagesize.Index = _SCollection.Count + 1; s_p_pagesize.Value = MyDataGrid1.PageSize; _SCollection.Add(s_p_pagesize); DataSet Ds = _Apparecchiature.RicercaApparecchiatura(_SCollection).Copy(); GridTitle1.Visible = true; if (reset == true) { _SCollection = riempiDatasetRicerca(); int _totalRecords = _Apparecchiature.RicercaApparecchiaturaCount(_SCollection); this.GridTitle1.NumeroRecords = _totalRecords.ToString(); } MyDataGrid1.DataSource = Ds.Tables[0]; this.MyDataGrid1.VirtualItemCount = int.Parse(this.GridTitle1.NumeroRecords); this.MyDataGrid1.DataBind(); if (int.Parse(this.GridTitle1.NumeroRecords) > 0 && int.Parse(this.GridTitle1.NumeroRecords) < MaxRecord + 1) { setvisiblecontrol(true); GridTitle1.DescriptionTitle = ""; chech = true; } else if (int.Parse(this.GridTitle1.NumeroRecords) > MaxRecord) { setvisiblecontrol(true); chech = false; } else { setvisiblecontrol(false); chech = false; } return(chech); }
public bool ControllaRuoloBlServizi(int ruolo_id, int bl_id, int servizio_id) { DataSet _Ds; S_Controls.Collections.S_ControlsCollection _SColl = new S_Controls.Collections.S_ControlsCollection(); S_Controls.Collections.S_Object s_Ruolo = new S_Controls.Collections.S_Object(); s_Ruolo.ParameterName = "p_Ruolo_Id"; s_Ruolo.DbType = ApplicationDataLayer.DBType.CustomDBType.Integer; s_Ruolo.Direction = ParameterDirection.Input; s_Ruolo.Index = 0; s_Ruolo.Value = ruolo_id; S_Controls.Collections.S_Object s_Edificio_Id = new S_Controls.Collections.S_Object(); s_Edificio_Id.ParameterName = "p_Bl_Id"; s_Edificio_Id.DbType = ApplicationDataLayer.DBType.CustomDBType.Integer; s_Edificio_Id.Direction = ParameterDirection.Input; s_Edificio_Id.Index = 1; s_Edificio_Id.Value = bl_id; S_Controls.Collections.S_Object s_Servizio_Id = new S_Controls.Collections.S_Object(); s_Servizio_Id.ParameterName = "p_Servizio_Id"; s_Servizio_Id.DbType = ApplicationDataLayer.DBType.CustomDBType.Integer; s_Servizio_Id.Direction = ParameterDirection.Input; s_Servizio_Id.Index = 2; s_Servizio_Id.Value = servizio_id; S_Controls.Collections.S_Object s_Cursor = new S_Object(); s_Cursor.ParameterName = "IO_CURSOR"; s_Cursor.DbType = CustomDBType.Cursor; s_Cursor.Direction = ParameterDirection.Output; s_Cursor.Index = 3; _SColl.Add(s_Ruolo); _SColl.Add(s_Edificio_Id); _SColl.Add(s_Servizio_Id); _SColl.Add(s_Cursor); ApplicationDataLayer.OracleDataLayer _OraDl = new OracleDataLayer(s_ConnStr); string s_StrSql = "PACK_EDIFICI.SP_CONTROLLARUOLOBLSERVIZIO"; _Ds = _OraDl.GetRows(_SColl, s_StrSql).Copy(); if (_Ds.Tables[0].Rows.Count > 0) { return(true); } else { return(false); } }
private void Ricerca() { S_Controls.Collections.S_ControlsCollection control = new S_Controls.Collections.S_ControlsCollection(); S_Controls.Collections.S_Object p = new S_Object(); p.ParameterName = "p_nome_file"; p.DbType = CustomDBType.VarChar; p.Direction = ParameterDirection.Input; p.Index = control.Count; p.Size = 50; p.Value = txtNomeDoc.Text; control.Add(p); p = new S_Object(); p.ParameterName = "p_id_bl"; p.DbType = CustomDBType.Integer; p.Direction = ParameterDirection.Input; p.Index = control.Count; p.Value = DrEdifici.SelectedValue; control.Add(p); p = new S_Object(); p.ParameterName = "p_anno"; p.DbType = CustomDBType.Integer; p.Direction = ParameterDirection.Input; p.Index = control.Count; p.Value = DropAnno.SelectedValue; control.Add(p); p = new S_Object(); p.ParameterName = "p_mese"; p.DbType = CustomDBType.Integer; p.Direction = ParameterDirection.Input; p.Index = control.Count; p.Value = DropMese.SelectedValue; control.Add(p); p = new S_Object(); p.ParameterName = "p_tipodoc"; p.DbType = CustomDBType.Integer; p.Direction = ParameterDirection.Input; p.Index = control.Count; p.Value = DropTipoDoc.SelectedValue; control.Add(p); DataSet ds = _kpi.GetData(control); this.DataGridRicerca.DataSource = ds.Tables[0]; this.DataGridRicerca.DataBind(); GridTitle1.NumeroRecords = ds.Tables[0].Rows.Count.ToString(); }
private void Ricerca(bool reset) { //Session.Remove("DataSet"); //DataGridRicerca cmbsDitta.DBDefaultValue = "0"; cmbsServizio.DBDefaultValue = "0"; S_Controls.Collections.S_ControlsCollection CollezioneControlli = GetControl(); S_Controls.Collections.S_Object s_p_pageindex = new S_Object(); s_p_pageindex.ParameterName = "pageindex"; s_p_pageindex.DbType = CustomDBType.Integer; s_p_pageindex.Direction = ParameterDirection.Input; s_p_pageindex.Index = 16; s_p_pageindex.Value = DataGridRicerca.CurrentPageIndex + 1; CollezioneControlli.Add(s_p_pageindex); S_Controls.Collections.S_Object s_p_pagesize = new S_Object(); s_p_pagesize.ParameterName = "pagesize"; s_p_pagesize.DbType = CustomDBType.Integer; s_p_pagesize.Direction = ParameterDirection.Input; s_p_pagesize.Index = 17; s_p_pagesize.Value = DataGridRicerca.PageSize; CollezioneControlli.Add(s_p_pagesize); Classi.ManProgrammata.Impostazioni _Imp = new TheSite.Classi.ManProgrammata.Impostazioni(); DataSet _MyDs = _Imp.GetImpostazioniDefaultPaging(CollezioneControlli).Copy(); if (reset == true) { CollezioneControlli = GetControl(); int _totalRecords = _Imp.GetImpostazioniDefaultCount(CollezioneControlli); this.GridTitle1.NumeroRecords = _totalRecords.ToString(); } DataGridRicerca.Visible = true; this.DataGridRicerca.DataSource = _MyDs.Tables[0]; this.DataGridRicerca.VirtualItemCount = int.Parse(this.GridTitle1.NumeroRecords); this.DataGridRicerca.DataBind(); if (int.Parse(this.GridTitle1.NumeroRecords) > 0) { PanelAddetto.Visible = true; } else { PanelAddetto.Visible = false; } }
private void Execute(bool reset) { S_Controls.Collections.S_ControlsCollection _SCollection = GetControl(); S_Controls.Collections.S_Object s_p_pageindex = new S_Object(); s_p_pageindex.ParameterName = "pageindex"; s_p_pageindex.DbType = CustomDBType.Integer; s_p_pageindex.Direction = ParameterDirection.Input; s_p_pageindex.Index = _SCollection.Count + 1; s_p_pageindex.Value = MyDataGrid1.CurrentPageIndex + 1; _SCollection.Add(s_p_pageindex); S_Controls.Collections.S_Object s_p_pagesize = new S_Object(); s_p_pagesize.ParameterName = "pagesize"; s_p_pagesize.DbType = CustomDBType.Integer; s_p_pagesize.Direction = ParameterDirection.Input; s_p_pagesize.Index = _SCollection.Count + 1; s_p_pagesize.Value = MyDataGrid1.PageSize; _SCollection.Add(s_p_pagesize); DataSet Ds; if (lettura == "") { Classi.AnagrafeImpianti.Apparecchiature _Apparecchiature = new Classi.AnagrafeImpianti.Apparecchiature(Context.User.Identity.Name); Ds = _Apparecchiature.RicercaApparecchiaturaPS(_SCollection); if (reset == true) { _SCollection = GetControl(); int _totalRecords = _Apparecchiature.RicercaApparecchiaturaPSCount(_SCollection); this.GridTitle1.NumeroRecords = _totalRecords.ToString(); } } else { Classi.ClassiAnagrafiche.LetturaContatori _ApparecchiatureConLett = new Classi.ClassiAnagrafiche.LetturaContatori(Context.User.Identity.Name); Ds = _ApparecchiatureConLett.RicercaApparecchiaturaPSPaging(_SCollection); if (reset == true) { _SCollection = GetControl(); int _totalRecords = _ApparecchiatureConLett.RicercaApparecchiaturaPSCount(_SCollection); this.GridTitle1.NumeroRecords = _totalRecords.ToString(); } } MyDataGrid1.DataSource = Ds.Tables[0]; this.MyDataGrid1.VirtualItemCount = int.Parse(this.GridTitle1.NumeroRecords); this.MyDataGrid1.DataBind(); }
private void BindingEdifici(string BlId) { BlId = "'" + BlId.Replace(",", "','") + "'"; ///Istanzio un nuovo oggetto Collection per aggiungere i parametri S_Controls.Collections.S_ControlsCollection _SCollection = new S_Controls.Collections.S_ControlsCollection(); ///creo i parametri S_Controls.Collections.S_Object s_bl_id = new S_Controls.Collections.S_Object(); s_bl_id.ParameterName = "p_Bl_Id"; s_bl_id.DbType = CustomDBType.VarChar; s_bl_id.Direction = ParameterDirection.Input; s_bl_id.Size = 4000; s_bl_id.Index = 0; s_bl_id.Value = BlId; _SCollection.Add(s_bl_id); S_Controls.Collections.S_Object s_p_Servizio = new S_Controls.Collections.S_Object(); s_p_Servizio.ParameterName = "p_servizio_id"; s_p_Servizio.DbType = ApplicationDataLayer.DBType.CustomDBType.Integer; s_p_Servizio.Direction = ParameterDirection.Input; s_p_Servizio.Index = 1; s_p_Servizio.Value = (cmbsServizio.SelectedValue == string.Empty)? 0:Int32.Parse(cmbsServizio.SelectedValue); ///Aggiungo i parametri alla collection _SCollection.Add(s_p_Servizio); S_Controls.Collections.S_Object s_p_idapparecchiatura = new S_Controls.Collections.S_Object(); s_p_idapparecchiatura.ParameterName = "p_idapparecchiatura"; s_p_idapparecchiatura.DbType = ApplicationDataLayer.DBType.CustomDBType.Integer; s_p_idapparecchiatura.Direction = ParameterDirection.Input; s_p_idapparecchiatura.Index = 2; s_p_idapparecchiatura.Value = (cmbsApparecchiatura.SelectedValue == string.Empty)? 0:Int32.Parse(cmbsApparecchiatura.SelectedValue); _SCollection.Add(s_p_idapparecchiatura); Classi.AnagrafeImpianti.ServiziEdifici _ServiziEdifici = new Classi.AnagrafeImpianti.ServiziEdifici(Context.User.Identity.Name); DataSet Ds = _ServiziEdifici.GetData(_SCollection); if (Ds.Tables[0].Rows.Count > 0) { PopolaTreeview(Ds); Panel1.Visible = true; } else { Panel1.Visible = false; } }
private bool checkdate(int itemId) { bool b_return = true; int i_Datain = Int32.Parse(txtsorain.Text + txtsorainmin.Text); int i_Dataout = Int32.Parse(txtsoraout.Text + txtsoraoutmin.Text); S_Controls.Collections.S_ControlsCollection _SCollection = new S_Controls.Collections.S_ControlsCollection(); S_Controls.Collections.S_Object s_addetto_id = new S_Object(); s_addetto_id.ParameterName = "p_addetto_id"; s_addetto_id.DbType = CustomDBType.Integer; s_addetto_id.Direction = ParameterDirection.Input; s_addetto_id.Index = 0; s_addetto_id.Value = cmbsadd.SelectedValue; S_Controls.Collections.S_Object s_giorno_id = new S_Object(); s_giorno_id.ParameterName = "p_giorno_id"; s_giorno_id.DbType = CustomDBType.Integer; s_giorno_id.Direction = ParameterDirection.Input; s_giorno_id.Index = 1; s_giorno_id.Value = cmbsgiorno.SelectedValue; _SCollection.Add(s_addetto_id); _SCollection.Add(s_giorno_id); Classi.ClassiAnagrafiche.Addetti _Addetti = new TheSite.Classi.ClassiAnagrafiche.Addetti(); DataSet _Ds = _Addetti.GetDateRep(_SCollection); DataTable _Dt = _Ds.Tables[0]; foreach (DataRow _Dr in _Dt.Rows) { if (i_Datain >= Int32.Parse(_Dr["datain"].ToString()) && i_Datain <= Int32.Parse(_Dr["dataout"].ToString())) { b_return = false; break; } if (i_Dataout >= Int32.Parse(_Dr["datain"].ToString()) && i_Dataout <= Int32.Parse(_Dr["dataout"].ToString())) { b_return = false; break; } } return(b_return); }
private void Ricerca(bool reset) { //Session.Remove("DataSet"); S_Controls.Collections.S_ControlsCollection CollezioneControlli = new S_Controls.Collections.S_ControlsCollection(); cmbsComune.DBDefaultValue = "0"; cmbsEdificio.DBDefaultValue = "0"; cmbsServizio.DBDefaultValue = "0"; CollezioneControlli = GetData(); S_Controls.Collections.S_Object s_p_pageindex = new S_Object(); s_p_pageindex.ParameterName = "pageindex"; s_p_pageindex.DbType = CustomDBType.Integer; s_p_pageindex.Direction = ParameterDirection.Input; s_p_pageindex.Index = 16; s_p_pageindex.Value = DataGridRicerca.CurrentPageIndex + 1; CollezioneControlli.Add(s_p_pageindex); S_Controls.Collections.S_Object s_p_pagesize = new S_Object(); s_p_pagesize.ParameterName = "pagesize"; s_p_pagesize.DbType = CustomDBType.Integer; s_p_pagesize.Direction = ParameterDirection.Input; s_p_pagesize.Index = 17; s_p_pagesize.Value = DataGridRicerca.PageSize; CollezioneControlli.Add(s_p_pagesize); Classi.ManProgrammata.Rapportino _Rapportino = new TheSite.Classi.ManProgrammata.Rapportino(); DataSet _MyDs = _Rapportino.GetData(CollezioneControlli).Copy(); if (reset) { CollezioneControlli.Clear(); CollezioneControlli = GetData(); int _totalRecords = _Rapportino.getCount(CollezioneControlli); this.GridTitle1.NumeroRecords = _totalRecords.ToString(); } this.DataGridRicerca.DataSource = _MyDs.Tables[0]; // this.GridTitle1.NumeroRecords = _MyDs.Tables[0].Rows.Count.ToString(); this.DataGridRicerca.VirtualItemCount = int.Parse(this.GridTitle1.NumeroRecords); this.DataGridRicerca.DataBind(); }
private S_Controls.Collections.S_ControlsCollection GetDatistanza() { ///Istanzio un nuovo oggetto Collection per aggiungere i parametri S_Controls.Collections.S_ControlsCollection _SCollection = new S_Controls.Collections.S_ControlsCollection(); ///creo i parametri S_Controls.Collections.S_Object s_p_Bl_Id = new S_Controls.Collections.S_Object(); s_p_Bl_Id.ParameterName = "p_Bl_Id"; s_p_Bl_Id.DbType = ApplicationDataLayer.DBType.CustomDBType.VarChar; s_p_Bl_Id.Direction = ParameterDirection.Input; s_p_Bl_Id.Size = 50; s_p_Bl_Id.Index = 0; s_p_Bl_Id.Value = RicercaModulo1.TxtCodice.Text; _SCollection.Add(s_p_Bl_Id); S_Controls.Collections.S_Object s_p_campus = new S_Controls.Collections.S_Object(); s_p_campus.ParameterName = "p_campus"; s_p_campus.DbType = ApplicationDataLayer.DBType.CustomDBType.VarChar; s_p_campus.Direction = ParameterDirection.Input; s_p_campus.Index = 1; s_p_campus.Size = 50; s_p_campus.Value = RicercaModulo1.TxtRicerca.Text; ///Aggiungo i parametri alla collection _SCollection.Add(s_p_campus); S_Controls.Collections.S_Object s_p_idpiano = new S_Controls.Collections.S_Object(); s_p_idpiano.ParameterName = "p_idpiano"; s_p_idpiano.DbType = ApplicationDataLayer.DBType.CustomDBType.Integer; s_p_idpiano.Direction = ParameterDirection.Input; s_p_idpiano.Size = 10; s_p_idpiano.Index = 2; s_p_idpiano.Value = (cmbsPiano.SelectedValue == string.Empty)? 0:Int32.Parse(cmbsPiano.SelectedValue); _SCollection.Add(s_p_idpiano); S_Controls.Collections.S_Object s_p_uso = new S_Controls.Collections.S_Object(); s_p_uso.ParameterName = "p_uso"; s_p_uso.DbType = ApplicationDataLayer.DBType.CustomDBType.VarChar; s_p_uso.Direction = ParameterDirection.Input; s_p_uso.Index = 3; s_p_uso.Size = 100; s_p_uso.Value = TxtUso.Text; ///Aggiungo i parametri alla collection _SCollection.Add(s_p_uso); return(_SCollection); }
private void UpdateServizi_Ditta(DataTable UpdateDataTable) { foreach (DataRow dr in UpdateDataTable.Rows) { if (dr["Operazione"] != DBNull.Value) { Classi.ClassiAnagrafiche.Ditte _Ditte = new TheSite.Classi.ClassiAnagrafiche.Ditte(); try { S_Controls.Collections.S_ControlsCollection _SColl = new S_Controls.Collections.S_ControlsCollection(); S_Controls.Collections.S_Object s_DittaId = new S_Controls.Collections.S_Object(); s_DittaId.ParameterName = "p_Ditta_Id"; s_DittaId.DbType = ApplicationDataLayer.DBType.CustomDBType.Integer; s_DittaId.Direction = ParameterDirection.Input; s_DittaId.Index = 0; s_DittaId.Value = itemId; S_Controls.Collections.S_Object s_ServizioId = new S_Controls.Collections.S_Object(); s_ServizioId.ParameterName = "p_Servizio_Id"; s_ServizioId.DbType = ApplicationDataLayer.DBType.CustomDBType.Integer; s_ServizioId.Direction = ParameterDirection.Input; s_ServizioId.Index = 1; s_ServizioId.Value = Convert.ToInt32(dr["Id"].ToString()); _SColl.Add(s_DittaId); _SColl.Add(s_ServizioId); Classi.ExecuteType Operazione; if (dr["Operazione"].ToString() == "I") { Operazione = Classi.ExecuteType.Insert; } else { Operazione = Classi.ExecuteType.Delete; } _Ditte.UpdateServizi_Ditta(_SColl, Operazione); } catch (Exception ex) { throw ex; } } } }
/// <summary> /// /// </summary> /// <param name="itemId"></param> /// <returns></returns> public DataSet GetSingleData(string itemId) { DataSet _Ds; ///Istanzio un nuovo oggetto Collection per aggiungere i parametri S_Controls.Collections.S_ControlsCollection _SCollection = new S_Controls.Collections.S_ControlsCollection(); S_Controls.Collections.S_Object s_bl_id = new S_Controls.Collections.S_Object(); s_bl_id.ParameterName = "p_Bl_Id"; s_bl_id.DbType = ApplicationDataLayer.DBType.CustomDBType.VarChar; s_bl_id.Direction = ParameterDirection.Input; s_bl_id.Size = 8; s_bl_id.Index = 0; s_bl_id.Value = itemId; _SCollection.Add(s_bl_id); S_Controls.Collections.S_Object s_User = new S_Controls.Collections.S_Object(); s_User.ParameterName = "p_Username"; s_User.DbType = ApplicationDataLayer.DBType.CustomDBType.VarChar; s_User.Direction = ParameterDirection.Input; s_User.Size = 50; s_User.Index = 1; s_User.Value = this.Username; _SCollection.Add(s_User); S_Controls.Collections.S_Object s_Campus = new S_Controls.Collections.S_Object(); s_Campus.ParameterName = "p_Campus"; s_Campus.DbType = ApplicationDataLayer.DBType.CustomDBType.VarChar; s_Campus.Direction = ParameterDirection.Input; s_Campus.Size = 50; s_Campus.Index = 2; s_Campus.Value = ""; _SCollection.Add(s_Campus); S_Controls.Collections.S_Object s_Cursor = new S_Object(); s_Cursor.ParameterName = "IO_CURSOR"; s_Cursor.DbType = CustomDBType.Cursor; s_Cursor.Direction = ParameterDirection.Output; s_Cursor.Index = _SCollection.Count + 1; _SCollection.Add(s_Cursor); ApplicationDataLayer.OracleDataLayer _OraDl = new OracleDataLayer(s_ConnStr); string s_StrSql = "PACK_EDIFICI.SP_GETEDIFICI"; _Ds = _OraDl.GetRows(_SCollection, s_StrSql).Copy(); return(_Ds); }
private void Execute(bool reset) { ///Istanzio la Classe per eseguire la Strore Procedure Classi.AnagrafeImpianti.Apparecchiature _Apparecchiature = new TheSite.Classi.AnagrafeImpianti.Apparecchiature(Context.User.Identity.Name); S_Controls.Collections.S_ControlsCollection _SCollection = GetDatiAprrarecchiature(); S_Controls.Collections.S_Object s_p_pageindex = new S_Object(); s_p_pageindex.ParameterName = "pageindex"; s_p_pageindex.DbType = CustomDBType.Integer; s_p_pageindex.Direction = ParameterDirection.Input; s_p_pageindex.Index = _SCollection.Count; s_p_pageindex.Value = MyDataGrid1.CurrentPageIndex + 1; _SCollection.Add(s_p_pageindex); S_Controls.Collections.S_Object s_p_pagesize = new S_Object(); s_p_pagesize.ParameterName = "pagesize"; s_p_pagesize.DbType = CustomDBType.Integer; s_p_pagesize.Direction = ParameterDirection.Input; s_p_pagesize.Index = _SCollection.Count; s_p_pagesize.Value = MyDataGrid1.PageSize; _SCollection.Add(s_p_pagesize); DataSet Ds = _Apparecchiature.RicercApparecchiatura(_SCollection).Copy(); GridTitle1.Visible = true; if (reset == true) { _SCollection = GetDatiAprrarecchiature(); int _totalRecords = _Apparecchiature.RicercApparecchiaturaCount(_SCollection); this.GridTitle1.NumeroRecords = _totalRecords.ToString(); } MyDataGrid1.DataSource = Ds.Tables[0]; this.MyDataGrid1.VirtualItemCount = int.Parse(this.GridTitle1.NumeroRecords); this.MyDataGrid1.DataBind(); if (int.Parse(this.GridTitle1.NumeroRecords) > 0) { setvisiblecontrol(true); GridTitle1.DescriptionTitle = ""; } else { GridTitle1.DescriptionTitle = "Nessun dato trovato."; setvisiblecontrol(false); } }
private int cancellaTutto(Classi.PmpS _PmpS) { int i_Result = 0; int i_MaxParametri = 0; S_Controls.Collections.S_ControlsCollection _SCollection = new S_Controls.Collections.S_ControlsCollection();; S_Controls.Collections.S_Object s_Istruz; S_Controls.Collections.S_Object s_Tmp; S_Controls.Collections.S_Object s_Step; //Classi.PmpS _PmpS = new TheSite.Classi.PmpS(); //ISTRUZIONI s_Istruz = new S_Object(); s_Istruz.ParameterName = "p_Istruzioni"; s_Istruz.DbType = CustomDBType.VarChar; s_Istruz.Direction = ParameterDirection.Input; s_Istruz.Size = 4000; s_Istruz.Index = i_MaxParametri; s_Istruz.Value = ""; i_MaxParametri++; //TEMPO s_Tmp = new S_Object(); s_Tmp.ParameterName = "p_Tempo"; s_Tmp.DbType = CustomDBType.Integer; s_Tmp.Direction = ParameterDirection.Input; s_Tmp.Size = 10; s_Tmp.Index = i_MaxParametri; s_Tmp.Value = 0; //PASSO s_Step = new S_Object(); s_Step.ParameterName = "p_seq_id"; s_Step.DbType = CustomDBType.Integer; s_Step.Direction = ParameterDirection.Input; s_Step.Size = 10; s_Step.Index = i_MaxParametri; s_Step.Value = 0; _SCollection.Add(s_Istruz); _SCollection.Add(s_Tmp); _SCollection.Add(s_Step); i_Result = _PmpS.Delete(_SCollection, itemId); return(i_Result); }
private void Execute(bool reset) { ///Istanzio un nuovo oggetto Collection per aggiungere i parametri S_Controls.Collections.S_ControlsCollection _SCollection = new S_Controls.Collections.S_ControlsCollection(); ///creo i parametri _SCollection = getParam(); // nuovi parametri paginazione S_Controls.Collections.S_Object s_p_pageindex = new S_Object(); s_p_pageindex.ParameterName = "pageindex"; s_p_pageindex.DbType = CustomDBType.Integer; s_p_pageindex.Direction = ParameterDirection.Input; s_p_pageindex.Index = 16; s_p_pageindex.Value = MyDataGrid1.CurrentPageIndex + 1; _SCollection.Add(s_p_pageindex); S_Controls.Collections.S_Object s_p_pagesize = new S_Object(); s_p_pagesize.ParameterName = "pagesize"; s_p_pagesize.DbType = CustomDBType.Integer; s_p_pagesize.Direction = ParameterDirection.Input; s_p_pagesize.Index = 17; s_p_pagesize.Value = MyDataGrid1.PageSize; _SCollection.Add(s_p_pagesize); ///Istanzio la Classe per eseguire la Strore Procedure Classi.AnagrafeImpianti.Apparecchiature _Apparecchiature = new Classi.AnagrafeImpianti.Apparecchiature(Context.User.Identity.Name); ///Eseguo il Binding sulla Griglia. DataSet Ds = _Apparecchiature.RicercaDescStanze(_SCollection); // GridTitle1.NumeroRecords=(Ds.Tables[0].Rows.Count)==0? "0":Ds.Tables[0].Rows.Count.ToString(); MyDataGrid1.DataSource = Ds; if (reset) { _SCollection.Clear(); _SCollection = getParam(); int _totalRecords = _Apparecchiature.RicercaStanzeDescCount(_SCollection); this.GridTitle1.NumeroRecords = _totalRecords.ToString(); } this.MyDataGrid1.VirtualItemCount = int.Parse(this.GridTitle1.NumeroRecords); MyDataGrid1.DataBind(); }
private void EliminaAssociazioni(int bl_id) { Classi.ClassiDettaglio.Edificio _Edificio = new TheSite.Classi.ClassiDettaglio.Edificio(Context.User.Identity.Name); S_Controls.Collections.S_ControlsCollection _SColl = new S_Controls.Collections.S_ControlsCollection(); S_Controls.Collections.S_Object s_Ruolo = new S_Controls.Collections.S_Object(); s_Ruolo.ParameterName = "p_Ruolo_Id"; s_Ruolo.DbType = ApplicationDataLayer.DBType.CustomDBType.Integer; s_Ruolo.Direction = ParameterDirection.Input; s_Ruolo.Index = 0; s_Ruolo.Value = itemId; S_Controls.Collections.S_Object s_Edificio_Id = new S_Controls.Collections.S_Object(); s_Edificio_Id.ParameterName = "p_Edificio_Id"; s_Edificio_Id.DbType = ApplicationDataLayer.DBType.CustomDBType.Integer; s_Edificio_Id.Direction = ParameterDirection.Input; s_Edificio_Id.Index = 1; s_Edificio_Id.Value = bl_id; S_Controls.Collections.S_Object s_Servizio_Id = new S_Controls.Collections.S_Object(); s_Servizio_Id.ParameterName = "p_Servizio_Id"; s_Servizio_Id.DbType = ApplicationDataLayer.DBType.CustomDBType.Integer; s_Servizio_Id.Direction = ParameterDirection.Input; s_Servizio_Id.Index = 2; s_Servizio_Id.Value = 0; S_Controls.Collections.S_Object s_Operazione = new S_Object(); s_Operazione.ParameterName = "p_Operazione"; s_Operazione.DbType = ApplicationDataLayer.DBType.CustomDBType.VarChar; s_Operazione.Direction = ParameterDirection.Input; s_Operazione.Index = 3; s_Operazione.Value = "Delete"; S_Controls.Collections.S_Object s_IdOut = new S_Object(); s_IdOut.ParameterName = "p_IdOut"; s_IdOut.DbType = ApplicationDataLayer.DBType.CustomDBType.Integer; s_IdOut.Direction = ParameterDirection.Output; s_IdOut.Index = 4; _SColl.Add(s_Ruolo); _SColl.Add(s_Edificio_Id); _SColl.Add(s_Servizio_Id); _SColl.Add(s_Operazione); _SColl.Add(s_IdOut); _Edificio.UpdateRuoliEdificiServizi(_SColl); }
private void EliminaAssociazioni(int bl_id) { Classi.MailSend _MailSend = new TheSite.Classi.MailSend(); S_Controls.Collections.S_ControlsCollection _SColl = new S_Controls.Collections.S_ControlsCollection(); S_Controls.Collections.S_Object s_email = new S_Controls.Collections.S_Object(); s_email.ParameterName = "p_email_Id"; s_email.DbType = ApplicationDataLayer.DBType.CustomDBType.Integer; s_email.Direction = ParameterDirection.Input; s_email.Index = 0; s_email.Value = itemId; S_Controls.Collections.S_Object s_Edificio_Id = new S_Controls.Collections.S_Object(); s_Edificio_Id.ParameterName = "p_Edificio_Id"; s_Edificio_Id.DbType = ApplicationDataLayer.DBType.CustomDBType.Integer; s_Edificio_Id.Direction = ParameterDirection.Input; s_Edificio_Id.Index = 1; s_Edificio_Id.Value = bl_id; S_Controls.Collections.S_Object s_Servizio_Id = new S_Controls.Collections.S_Object(); s_Servizio_Id.ParameterName = "p_Servizio_Id"; s_Servizio_Id.DbType = ApplicationDataLayer.DBType.CustomDBType.Integer; s_Servizio_Id.Direction = ParameterDirection.Input; s_Servizio_Id.Index = 2; s_Servizio_Id.Value = 0; S_Controls.Collections.S_Object s_Operazione = new S_Object(); s_Operazione.ParameterName = "p_Operazione"; s_Operazione.DbType = ApplicationDataLayer.DBType.CustomDBType.VarChar; s_Operazione.Direction = ParameterDirection.Input; s_Operazione.Index = 3; s_Operazione.Value = "Delete"; S_Controls.Collections.S_Object s_IdOut = new S_Object(); s_IdOut.ParameterName = "p_IdOut"; s_IdOut.DbType = ApplicationDataLayer.DBType.CustomDBType.Integer; s_IdOut.Direction = ParameterDirection.Output; s_IdOut.Index = 4; _SColl.Add(s_email); _SColl.Add(s_Edificio_Id); _SColl.Add(s_Servizio_Id); _SColl.Add(s_Operazione); _SColl.Add(s_IdOut); _MailSend.UpdateEmailEdificiServizi(_SColl); }
private void CaricaScheda() { S_Controls.Collections.S_ControlsCollection CollezioneControlli = new S_Controls.Collections.S_ControlsCollection(); S_Controls.Collections.S_Object s_p_eq_std = new S_Controls.Collections.S_Object(); s_p_eq_std.ParameterName = "p_eq_std"; s_p_eq_std.DbType = CustomDBType.VarChar; s_p_eq_std.Direction = ParameterDirection.Input; s_p_eq_std.Index = 0; s_p_eq_std.Value = this.eq_id_char; s_p_eq_std.Size = 50; CollezioneControlli.Add(s_p_eq_std); Classi.ClassiDettaglio.SchedaApparecchiatura _SchedaApparecchiatura = new Classi.ClassiDettaglio.SchedaApparecchiatura(""); DataSet Ds = _SchedaApparecchiatura.GetData(CollezioneControlli); if (Ds.Tables[0].Rows.Count > 0) { S_lblcodicecomponente.Text = Ds.Tables[0].Rows[0]["var_eq_eq_id"].ToString(); S_lblstdapparecchiature.Text = Ds.Tables[0].Rows[0]["var_eqstd_description"].ToString(); S_lblcodiceedificio.Text = Ds.Tables[0].Rows[0]["var_eq_bl_id"].ToString(); S_lbledificio.Text = Ds.Tables[0].Rows[0]["var_bl_name"].ToString(); this.eq_id = Ds.Tables[0].Rows[0][0].ToString(); } else { S_lblcodicecomponente.Text = ""; S_lblstdapparecchiature.Text = ""; S_lblcodiceedificio.Text = ""; S_lbledificio.Text = ""; } }