コード例 #1
0
        public DataSet GetGridCol(string gridName, string userGuid)
        {
            string clsType = string.Format("{0}_MSSQL",
                                           ReportCommon.ReportCommon.GetReportDAO_ImplementClass_PrefixName(this.GetType()));

            Type type = Type.GetType(clsType);
            IReportGridColumn iGridCol = Activator.CreateInstance(type) as IReportGridColumn;

            return(iGridCol.GetGridCol(gridName, userGuid));
        }
コード例 #2
0
        /// <summary>
        /// GetGridCol
        /// </summary>
        /// <param name="gridName"></param>
        /// <param name="userGuid"></param>
        /// <returns>DataSet contains columns' info</returns>
        public DataSet GetGridCol(string gridName, string userGuid)
        {
            using (RisDAL oKodak = new RisDAL())
            {
                string clsType = string.Format("{0}_{1}", this.GetType().ToString(), oKodak.DriverClassName.ToUpper());

                Type type = Type.GetType(clsType);
                IReportGridColumn iGridCol = Activator.CreateInstance(type) as IReportGridColumn;
                return(iGridCol.GetGridCol(gridName, userGuid));
            }
        }