public virtual void Update(WorkflowDataModel workflow) { if (workflow.ID > 0) { WorkflowDAL.Update(workflow); } else { throw new Exception("Page not found"); } }
/// <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; } }
/// <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; } }
/// <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; } }
/// <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; } }
/// <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; } }
/// <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; } }
/// <summary> /// To Delete Approver /// </summary> /// <param name="WORKFLOWDEFID"></param> /// <returns></returns> public int DeleteApprover(int WORKFLOWDEFID) { WorkflowDAL WorkflowDALObj = new WorkflowDAL(); return(WorkflowDALObj.DeleteApprover(WORKFLOWDEFID)); }
/// <summary> /// Approval Status Checklist /// </summary> /// <param name="objProjectRoute"></param> /// <returns></returns> public WorkFlowList ApprovalStatuschecklist(WorkFlowBO objProjectRoute) { WorkflowDAL ProjectRouteDALObj = new WorkflowDAL(); return(ProjectRouteDALObj.ApprovalStatuschecklist(objProjectRoute)); }
/// <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)); }
/// <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)); }
/// <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)); }
public List <WorkflowDataModel> GetAll(int id = 0) { return(WorkflowDAL.GetAll()); }
/// <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)); }
/// <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)); }
/// <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)); }
/// <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)); }
public WorkflowDataModel Get(int id) { return(WorkflowDAL.Get(id)); }
/// <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)); }
public virtual void Create(WorkflowDataModel workflow) { WorkflowDAL.Create(workflow); }
public int GetActivityCount(int workflowID) { return(WorkflowDAL.GetActivityCount(workflowID)); }