setParameters() private method

private setParameters ( cParameters value ) : void
value cParameters
return void
Ejemplo n.º 1
0
        public bool getDataSourceColumnsInfo(string str, csDataSourceType csDataSourceType)
        {
            string sqlstmt;

            if (m_dataSourceType == csDataSourceType.CDDTPROCEDURE)
            {
                if (!fillParameters(m_dataSource))
                {
                    return(false);
                }

                fParameters f = new fParameters();
                f.setParameters(m_parameters);
                f.ShowDialog();
                if (f.getOk())
                {
                    sqlstmt = "[" + m_dataSource + "] " + f.getSqlParameters();
                }
                else
                {
                    return(false);
                }
            }
            else
            {
                sqlstmt = "select * from [" + m_dataSource + "]";
            }

            return(fillColumns(sqlstmt));
        }
Ejemplo n.º 2
0
		public bool getDataSourceColumnsInfo(string str, csDataSourceType csDataSourceType)
		{
            string sqlstmt;

            if(m_dataSourceType == csDataSourceType.CDDTPROCEDURE)
            {
                if(! fillParameters(m_dataSource))
                {
                    return false;
                }

                fParameters f = new fParameters();
                f.setParameters(m_parameters);
                f.ShowDialog();
                if (f.getOk())
                {
                    sqlstmt = "[" + m_dataSource + "] " + f.getSqlParameters();
                }
                else
                {
                    return false;
                }
            }
            else
            {
                sqlstmt = "select * from [" + m_dataSource + "]";
            }

            return fillColumns(sqlstmt);
		}