Пример #1
0
 public virtual void Update(WorkflowDataModel workflow)
 {
     if (workflow.ID > 0)
     {
         WorkflowDAL.Update(workflow);
     }
     else
     {
         throw new Exception("Page not found");
     }
 }
Пример #2
0
        /// <summary>
        /// To Get All Module from database
        /// </summary>
        /// <returns></returns>
        public WorkFlowList getAllModule()
        {
            WorkflowDAL WorkflowDAL = new WorkflowDAL(); //Data pass -to Database Layer

            try
            {
                return(WorkflowDAL.getAllModule());
            }
            catch
            {
                throw;
            }
            finally
            {
                WorkflowDAL = null;
            }
        }
Пример #3
0
        /// <summary>
        /// To Get All Employee Name
        /// </summary>
        /// <param name="projectID"></param>
        /// <returns></returns>
        public WorkFlowList getAllEmpName(string projectID)
        {
            WorkflowDAL WorkflowDAL = new WorkflowDAL(); //Data pass -to Database Layer

            try
            {
                return(WorkflowDAL.getAllEmpName(projectID));
            }
            catch
            {
                throw;
            }
            finally
            {
                WorkflowDAL = null;
            }
        }
Пример #4
0
        /// <summary>
        /// To Edit Approver
        /// </summary>
        /// <param name="objWorkFlow"></param>
        /// <returns></returns>
        public int EditAPPROVALADD(WorkFlowBO objWorkFlow)
        {
            WorkflowDAL WorkflowDAL = new WorkflowDAL(); //Data pass -to Database Layer

            try
            {
                return(WorkflowDAL.EDITAPPROVER(objWorkFlow));
            }
            catch
            {
                throw;
            }
            finally
            {
                WorkflowDAL = null;
            }
        }
Пример #5
0
        /// <summary>
        /// To Get Work Flow By Module Id
        /// </summary>
        /// <param name="ModuleID"></param>
        /// <returns></returns>
        public WorkFlowList GetWorkFlowByModuleId(int ModuleID)
        {
            WorkflowDAL WorkflowDAL = new WorkflowDAL(); //Data pass -to Database Layer

            try
            {
                return(WorkflowDAL.GetWorkFlowByModuleId(ModuleID));
            }
            catch
            {
                throw;
            }
            finally
            {
                WorkflowDAL = null;
            }
        }
Пример #6
0
        /// <summary>
        /// To Update Work flow
        /// </summary>
        /// <param name="objWorkFlow"></param>
        /// <returns></returns>
        public int UpdateWorkflow(WorkFlowBO objWorkFlow)
        {
            WorkflowDAL WorkflowDAL = new WorkflowDAL(); //Data pass -to Database Layer

            try
            {
                return(WorkflowDAL.UpdateWorkflow(objWorkFlow));
            }
            catch
            {
                throw;
            }
            finally
            {
                WorkflowDAL = null;
            }
        }
Пример #7
0
        /// <summary>
        /// To Get Approval Role User ID
        /// </summary>
        /// <param name="projectID"></param>
        /// <param name="roleID"></param>
        /// <returns></returns>
        public WorkFlowList getApprovalRoleUserID(int projectID, int roleID)
        {
            WorkflowDAL WorkflowDAL = new WorkflowDAL(); //Data pass -to Database Layer

            try
            {
                return(WorkflowDAL.getApprovalRoleUserID(projectID, roleID));
            }
            catch
            {
                throw;
            }
            finally
            {
                WorkflowDAL = null;
            }
        }
Пример #8
0
        /// <summary>
        /// To Delete Approver
        /// </summary>
        /// <param name="WORKFLOWDEFID"></param>
        /// <returns></returns>
        public int DeleteApprover(int WORKFLOWDEFID)
        {
            WorkflowDAL WorkflowDALObj = new WorkflowDAL();

            return(WorkflowDALObj.DeleteApprover(WORKFLOWDEFID));
        }
Пример #9
0
        /// <summary>
        /// Approval Status Checklist
        /// </summary>
        /// <param name="objProjectRoute"></param>
        /// <returns></returns>
        public WorkFlowList ApprovalStatuschecklist(WorkFlowBO objProjectRoute)
        {
            WorkflowDAL ProjectRouteDALObj = new WorkflowDAL();

            return(ProjectRouteDALObj.ApprovalStatuschecklist(objProjectRoute));
        }
Пример #10
0
        /// <summary>
        /// To Get Total Count Approval
        /// </summary>
        /// <param name="objProjectRoute"></param>
        /// <returns></returns>
        public WorkFlowList getTotalcountapproval(WorkFlowBO objProjectRoute)
        {
            WorkflowDAL ProjectRouteDALObj = new WorkflowDAL();

            return(ProjectRouteDALObj.getTotalcountapproval(objProjectRoute));
        }
Пример #11
0
        /// <summary>
        /// To get WOrk Flow Approval ID
        /// </summary>
        /// <param name="projectID"></param>
        /// <param name="workflowCode"></param>
        /// <returns></returns>
        public WorkFlowBO getWOrkFlowApprovalID(int projectID, string workflowCode)
        {
            WorkflowDAL ProjectRouteDALObj = new WorkflowDAL();

            return(ProjectRouteDALObj.getWOrkFlowApprovalID(projectID, workflowCode));
        }
Пример #12
0
        /// <summary>
        /// To Get Work Flow Definition
        /// </summary>
        /// <param name="projectID"></param>
        /// <returns></returns>
        public WorkFlowList GetWorkFlowDefinition(string projectID)
        {
            WorkflowDAL WorkflowDALObj = new WorkflowDAL();

            return(WorkflowDALObj.GetWorkFlowDefinition(projectID));
        }
Пример #13
0
 public List <WorkflowDataModel> GetAll(int id = 0)
 {
     return(WorkflowDAL.GetAll());
 }
Пример #14
0
        /// <summary>
        /// To Get Work Flow By Id
        /// </summary>
        /// <param name="WORKAPPROVALID"></param>
        /// <returns></returns>
        public WorkFlowBO GetWorkFlowById(int WORKAPPROVALID)
        {
            WorkflowDAL WorkflowDALObj = new WorkflowDAL();

            return(WorkflowDALObj.GetWorkFlowById(WORKAPPROVALID));
        }
Пример #15
0
        /// <summary>
        /// To Get Approver
        /// </summary>
        /// <param name="projectID"></param>
        /// <param name="WorkflowDefID"></param>
        /// <returns></returns>
        public WorkFlowList GetApprover(string projectID, string WorkflowDefID)
        {
            WorkflowDAL WorkflowDALObj = new WorkflowDAL();

            return(WorkflowDALObj.GetApprover(projectID, WorkflowDefID));
        }
Пример #16
0
        /// <summary>
        ///  To Delete Work Flow Definition
        /// </summary>
        /// <param name="WorkFlowDefID"></param>
        /// <returns></returns>
        public string DeleteWorkFlowDef(int WorkFlowDefID)
        {
            WorkflowDAL WorkflowDALObj = new WorkflowDAL();

            return(WorkflowDALObj.DeleteWorkFlowDef(WorkFlowDefID));
        }
Пример #17
0
        /// <summary>
        /// To Get Work Flow Definition by ID
        /// </summary>
        /// <param name="WorkFlowDefID"></param>
        /// <returns></returns>
        public WorkFlowBO GetWorkFlowDefByID(int WorkFlowDefID)
        {
            WorkflowDAL WorkflowDALObj = new WorkflowDAL();

            return(WorkflowDALObj.GetWorkFlowDefByID(WorkFlowDefID));
        }
Пример #18
0
 public WorkflowDataModel Get(int id)
 {
     return(WorkflowDAL.Get(id));
 }
Пример #19
0
        /// <summary>
        /// To Get All Saved WORK FLOW Data
        /// </summary>
        /// <param name="pID"></param>
        /// <returns></returns>
        public WorkFlowBO getALLSaveWORKFLOWData(string pID)
        {
            WorkflowDAL WorkflowDALObj = new WorkflowDAL();

            return(WorkflowDALObj.getALLSaveWORKFLOWData(pID));
        }
Пример #20
0
 public virtual void Create(WorkflowDataModel workflow)
 {
     WorkflowDAL.Create(workflow);
 }
Пример #21
0
 public int GetActivityCount(int workflowID)
 {
     return(WorkflowDAL.GetActivityCount(workflowID));
 }