コード例 #1
0
        public int GetIdBl(string BlId)
        {
            S_ControlsCollection CollezioneControlli = new S_ControlsCollection();
            int      cntParametri = 0;
            S_Object pBlId        = new S_Object();

            pBlId.ParameterName = "pBlId";
            pBlId.DbType        = CustomDBType.VarChar;
            pBlId.Direction     = ParameterDirection.Input;
            pBlId.Size          = 8;
            pBlId.Value         = BlId;
            pBlId.Index         = cntParametri++;
            CollezioneControlli.Add(pBlId);

            S_Object pIdBl = new S_Object();

            pIdBl.ParameterName = "pIdBl";
            pIdBl.DbType        = CustomDBType.Integer;
            pIdBl.Direction     = ParameterDirection.Output;
            pIdBl.Size          = 32;
            pIdBl.Index         = cntParametri++;
            CollezioneControlli.Add(pIdBl);
            ApplicationDataLayer.OracleDataLayer _OraDl = new OracleDataLayer(s_ConnStr);
            string s_StrSql = "PACK_CAD.Sp_BlId_To_IdBl";

            //_OraDl.ExecuteProcedure(CollezioneControlli,s_StrSql);

            System.Data.OracleClient.OracleParameterCollection pc = _OraDl.ParametersArray(CollezioneControlli, s_StrSql);
            return(Convert.ToInt32(pc[1].Value));
        }
コード例 #2
0
        public string GetDescrizionePiano(int IdPiano)
        {
            S_ControlsCollection CollezioneControlli = new S_ControlsCollection();
            int      cntParametri = 0;
            S_Object pIdPiano     = new S_Object();

            pIdPiano.ParameterName = "pIdPiano";
            pIdPiano.DbType        = CustomDBType.Integer;
            pIdPiano.Direction     = ParameterDirection.Input;
            pIdPiano.Size          = 32;
            pIdPiano.Value         = IdPiano;
            pIdPiano.Index         = cntParametri++;
            CollezioneControlli.Add(pIdPiano);

            S_Object pDescrizionePiano = new S_Object();

            pDescrizionePiano.ParameterName = "pDescrizionePiano";
            pDescrizionePiano.DbType        = CustomDBType.VarChar;
            pDescrizionePiano.Direction     = ParameterDirection.Output;
            pDescrizionePiano.Size          = 250;
            pDescrizionePiano.Index         = cntParametri++;
            CollezioneControlli.Add(pDescrizionePiano);
            ApplicationDataLayer.OracleDataLayer _OraDl = new OracleDataLayer(s_ConnStr);
            string s_StrSql = "PACK_CAD.Sp_IdPiano_to_decPiano";

            //_OraDl.ExecuteProcedure(CollezioneControlli,s_StrSql);

            System.Data.OracleClient.OracleParameterCollection pc = _OraDl.ParametersArray(CollezioneControlli, s_StrSql);
            return(Convert.ToString(pc[1].Value));
        }
コード例 #3
0
        public string GetDecServizioById(int IdServizio)
        {
            S_ControlsCollection CollezioneControlli = new S_ControlsCollection();
            int      cntParametri = 0;
            S_Object pIdServizio  = new S_Object();

            pIdServizio.ParameterName = "pIdServizio";
            pIdServizio.DbType        = CustomDBType.Integer;
            pIdServizio.Direction     = ParameterDirection.Input;
            pIdServizio.Size          = 32;
            pIdServizio.Value         = IdServizio;
            pIdServizio.Index         = cntParametri++;
            CollezioneControlli.Add(pIdServizio);

            S_Object pDescServizio = new S_Object();

            pDescServizio.ParameterName = "pDescServizio";
            pDescServizio.DbType        = CustomDBType.VarChar;
            pDescServizio.Direction     = ParameterDirection.Output;
            pDescServizio.Size          = 255;
            pDescServizio.Index         = cntParametri++;
            CollezioneControlli.Add(pDescServizio);
            ApplicationDataLayer.OracleDataLayer _OraDl = new OracleDataLayer(s_ConnStr);
            string s_StrSql = "PACK_SERVIZI.GetDecServizioById";

            System.Data.OracleClient.OracleParameterCollection pc = _OraDl.ParametersArray(CollezioneControlli, s_StrSql);
            return(pc[1].Value.ToString());
        }
コード例 #4
0
        public string[] GetValueParametri()
        {
            S_ControlsCollection CollezioneControlli = new S_ControlsCollection();

            S_Controls.Collections.S_Object s_totEQ = new S_Object();
            s_totEQ.ParameterName = "p_totEQ";
            s_totEQ.DbType        = CustomDBType.Integer;
            s_totEQ.Direction     = ParameterDirection.Output;
            s_totEQ.Index         = 0;
            s_totEQ.Size          = 50;

            S_Controls.Collections.S_Object s_totEQSTDinEQ = new S_Object();
            s_totEQSTDinEQ.ParameterName = "p_totEQSTDinEQ";
            s_totEQSTDinEQ.DbType        = CustomDBType.Integer;
            s_totEQSTDinEQ.Direction     = ParameterDirection.Output;
            s_totEQSTDinEQ.Index         = 1;
            s_totEQSTDinEQ.Size          = 50;

            S_Controls.Collections.S_Object s_totEQinPMS = new S_Object();
            s_totEQinPMS.ParameterName = "p_totEQinPMS";
            s_totEQinPMS.DbType        = CustomDBType.Integer;
            s_totEQinPMS.Direction     = ParameterDirection.Output;
            s_totEQinPMS.Index         = 2;
            s_totEQinPMS.Size          = 50;

            S_Controls.Collections.S_Object s_totEQnoPMS = new S_Object();
            s_totEQnoPMS.ParameterName = "p_totEQnoPMS";
            s_totEQnoPMS.DbType        = CustomDBType.Integer;
            s_totEQnoPMS.Direction     = ParameterDirection.Output;
            s_totEQnoPMS.Index         = 3;
            s_totEQnoPMS.Size          = 50;

            S_Controls.Collections.S_Object s_totEQSTDinPMP = new S_Object();
            s_totEQSTDinPMP.ParameterName = "p_totEQSTDinPMP";
            s_totEQSTDinPMP.DbType        = CustomDBType.Integer;
            s_totEQSTDinPMP.Direction     = ParameterDirection.Output;
            s_totEQSTDinPMP.Index         = 4;
            s_totEQSTDinPMP.Size          = 50;

            S_Controls.Collections.S_Object s_totEQSTDEQinPMP = new S_Object();
            s_totEQSTDEQinPMP.ParameterName = "p_totEQSTDEQinPMP";
            s_totEQSTDEQinPMP.DbType        = CustomDBType.Integer;
            s_totEQSTDEQinPMP.Direction     = ParameterDirection.Output;
            s_totEQSTDEQinPMP.Index         = 5;
            s_totEQSTDEQinPMP.Size          = 50;

            S_Controls.Collections.S_Object s_totEQSTD = new S_Object();
            s_totEQSTD.ParameterName = "p_totEQSTD";
            s_totEQSTD.DbType        = CustomDBType.Integer;
            s_totEQSTD.Direction     = ParameterDirection.Output;
            s_totEQSTD.Index         = 6;
            s_totEQSTD.Size          = 50;

            CollezioneControlli.Add(s_totEQ);
            CollezioneControlli.Add(s_totEQSTDinEQ);
            CollezioneControlli.Add(s_totEQinPMS);
            CollezioneControlli.Add(s_totEQnoPMS);
            CollezioneControlli.Add(s_totEQSTDinPMP);
            CollezioneControlli.Add(s_totEQSTDEQinPMP);
            CollezioneControlli.Add(s_totEQSTD);

            ApplicationDataLayer.OracleDataLayer _OraDl = new OracleDataLayer(s_ConnStr);
            string s_StrSql = "PACK_SCHEDULA.getConta_EQ_PMP";

            System.Data.OracleClient.OracleParameterCollection Parametri = _OraDl.ParametersArray(CollezioneControlli, s_StrSql);

            string[] ParValues = new string[Parametri.Count];
            for (int Par = 0; Par < Parametri.Count; Par++)
            {
                //ParValues.SetValue(Parametri[Par].Value,Par);
                ParValues[Par] = Parametri[Par].Value.ToString();
            }
            return(ParValues);
        }