Example #1
0
        public object Execute(object param)
        {
            string clsType = string.Format("{0}_MSSQL",
                ReportCommon.ReportCommon.GetReportDAO_ImplementClass_PrefixName(this.GetType()));

            Type type = Type.GetType(clsType);
            IReportDAO iRptDAO = Activator.CreateInstance(type) as IReportDAO;
            return iRptDAO.Execute(param);
        }
Example #2
0
        public object Execute(object param)
        {
            using (RisDAL oKodak = new RisDAL())
            {
                string clsType = string.Format("{0}_{1}", this.GetType().ToString(), oKodak.DriverClassName.ToUpper());

                Type       type    = Type.GetType(clsType);
                IReportDAO iRptDAO = Activator.CreateInstance(type) as IReportDAO;
                return(iRptDAO.Execute(param));
            }
        }
Example #3
0
        /// <summary>
        /// Execute
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        public object Execute(object param)
        {
            bool bHide0 = ServerPubFun.GetSystemProfile_Bool(ReportCommon.ProfileName.ReportList_HideCount, ReportCommon.ModuleID.Report);
            bool bHide1 = ServerPubFun.GetSystemProfile_Bool(ReportCommon.ProfileName.ReportPrint_HideCount, ReportCommon.ModuleID.Report);

            if (bHide0 && bHide1)
            {
                return(-1);
            }

            using (RisDAL oKodak = new RisDAL())
            {
                string clsType = string.Format("{0}_{1}", this.GetType().ToString(), oKodak.DriverClassName.ToUpper());
                if (oKodak != null)
                {
                    oKodak.Dispose();
                }

                Type       type    = Type.GetType(clsType);
                IReportDAO iRptDAO = Activator.CreateInstance(type) as IReportDAO;
                return(iRptDAO.Execute(param));
            }
        }
 public ReportLogic(IReportDAO reportDAO, IUserDAO userDAO, ICustomLogger customLogger)
 {
     _reportDAO    = reportDAO;
     _userDAO      = userDAO;
     _customLogger = customLogger;
 }
Example #5
0
 public ReportManager()
 {
     _ReportDAOLinq = new ReportDAOLinq();
 }
Example #6
0
 public void Setup()
 {
     dao = new ReportEntityFrameworkDAO();
 }
Example #7
0
 public UserDao()
 {
     context    = new EbbSEntities();
     commentDAO = new CommentDAO();
     reportDAO  = new ReportDAO();
 }
 public ReportService()
 {
     reportDAO = new ReportDAO();
 }
 public ReportManager()
 {
     _ReportDAOLinq = new ReportDAOLinq();
 }