public static RinnaiPortalRepository CreateRinnaiPortalRepo()
        {
            var dc = ConnectionFactory.GetPortalDC();

            return(new RinnaiPortalRepository(dc));
        }
        public static WorkflowQueryRepository CreateWorkflowQueryRepo()
        {
            var dc = ConnectionFactory.GetPortalDC();

            return(new WorkflowQueryRepository(dc));
        }
        public static SalaryLimitRepository CreateSalaryLimitRepo()
        {
            var dc = ConnectionFactory.GetPortalDC();

            return(new SalaryLimitRepository(dc, CreateRootRepo()));
        }
        public static WorkflowDetailRepository CreateWorkflowDetailRepo()
        {
            var dc = ConnectionFactory.GetPortalDC();

            return(new WorkflowDetailRepository(dc, CreateRootRepo()));
        }
        //20161209 新增(主管簽核歷程查詢用)
        public static ProcessSignedRepository CreateSignQueryRepo()
        {
            var dc = ConnectionFactory.GetPortalDC();

            return(new ProcessSignedRepository(dc, CreateRootRepo()));
        }
        public static OvertimeSettingRepository CreateOvertimeSettingRepo()
        {
            var dc = ConnectionFactory.GetPortalDC();

            return(new OvertimeSettingRepository(dc));
        }
        public static AutoInsertHandler CreateAutoInsert(string SignDocID)
        {
            var dc = ConnectionFactory.GetSmartManDC();

            return(new AutoInsertHandler(dc, SignDocID));
        }
        public static EmployeeRepository CreateEmployeeRepo()
        {
            var dc = ConnectionFactory.GetPortalDC();

            return(new EmployeeRepository(dc, CreateRootRepo()));
        }
        public static GroupRepository CreateGroupRepo()
        {
            var dc = ConnectionFactory.GetPortalDC();

            return(new GroupRepository(dc, CreateRootRepo()));
        }
        public static BbsListRepository CreateBbsListRepo()
        {
            var dc = ConnectionFactory.GetPortalDC();

            return(new BbsListRepository(dc, CreateRootRepo()));
        }
        public static DailyRepository CreateDailyRepo()
        {
            var dc = ConnectionFactory.GetSmartManDC();

            return(new DailyRepository(dc, CreateRootRepo()));
        }
        public static DepartmentRepository CreateDepartmentRepo()
        {
            var dc = ConnectionFactory.GetPortalDC();

            return(new DepartmentRepository(dc, CreateRootRepo()));
        }
        public static TrainDetailRepository CreateTrainDetailRepo()
        {
            var dc = ConnectionFactory.GetTrainingDC();

            return(new TrainDetailRepository(dc, CreateRootRepo(), CreateProcessWorkflowRepo()));
        }
        public static TrainRepository CreateTrainRepo()
        {
            var dc = ConnectionFactory.GetTrainingDC();

            return(new TrainRepository(dc));
        }
        public static MemberRepository CreateMemberRepo()
        {
            var dc = ConnectionFactory.GetPortalDC();

            return(new MemberRepository(dc, CreateRootRepo()));
        }
        public static ProcedureRepository CreateProcedureRepo()
        {
            var dc = ConnectionFactory.GetPortalDC();

            return(new ProcedureRepository(dc));
        }
        //Manage Repo
        // Specify Repo
        public static MealTaxiRepository CreateMealTaxiRepo()
        {
            var dc = ConnectionFactory.GetPortalDC();

            return(new MealTaxiRepository(dc));
        }
        public static ProcessWorkflowRepository CreateProcessWorkflowRepo()
        {
            var dc = ConnectionFactory.GetPortalDC();

            return(new ProcessWorkflowRepository(dc, CreateRootRepo()));
        }
        //SmartMan
        // Specify Repo
        public static SmartManRepository CreateSmartManRepo()
        {
            var dc = ConnectionFactory.GetSmartManDC();

            return(new SmartManRepository(dc));
        }
        public static AutoInsertHandler CreateAutoInsert()
        {
            var dc = ConnectionFactory.GetSmartManDC();

            return(new AutoInsertHandler(dc));
        }