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); }
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)); } }
/// <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; }
public ReportManager() { _ReportDAOLinq = new ReportDAOLinq(); }
public void Setup() { dao = new ReportEntityFrameworkDAO(); }
public UserDao() { context = new EbbSEntities(); commentDAO = new CommentDAO(); reportDAO = new ReportDAO(); }
public ReportService() { reportDAO = new ReportDAO(); }