public JsonResult GetRelativeData(int activityID) { WFActivityModel model = new WFActivityModel(); Ctx ctx = Session["ctx"] as Ctx; return(Json(new { result = model.GetRelativeData(ctx, activityID) }, JsonRequestBehavior.AllowGet)); }
public JsonResult ApproveIt(int activityID, int nodeID, string txtMsg, object fwd, object answer) { WFActivityModel model = new WFActivityModel(); Ctx ctx = Session["ctx"] as Ctx; return(Json(new { result = model.ApproveIt(nodeID, activityID, txtMsg, fwd, answer, ctx) }, JsonRequestBehavior.AllowGet)); }
public JsonResult GetActivityInfo(int activityID, int nodeID, int wfProcessID) { WFActivityModel model = new WFActivityModel(); Ctx ctx = Session["ctx"] as Ctx; return(Json(new { result = model.GetActivityInfo(activityID, nodeID, wfProcessID, ctx) }, JsonRequestBehavior.AllowGet)); }
public JsonResult GetActivities(int pageNo, int pageSize, bool refresh) { WFActivityModel model = new WFActivityModel(); Ctx ctx = Session["ctx"] as Ctx; return(Json(new { result = model.GetActivities(ctx, ctx.GetAD_User_ID(), ctx.GetAD_Client_ID(), pageNo, pageSize, refresh) }, JsonRequestBehavior.AllowGet)); }
public JsonResult GetWorkflowWindows() { WFActivityModel model = new WFActivityModel(); Ctx ctx = Session["ctx"] as Ctx; return(Json(JsonConvert.SerializeObject(model.GetWorkflowWindows(ctx)), JsonRequestBehavior.AllowGet)); }
public JsonResult GetActivities(int pageNo, int pageSize, bool refresh, string searchText, int AD_Window_ID, DateTime?dateFrom, DateTime?dateTo, int AD_Node_ID) { WFActivityModel model = new WFActivityModel(); Ctx ctx = Session["ctx"] as Ctx; return(Json(new { result = model.GetActivities(ctx, ctx.GetAD_User_ID(), ctx.GetAD_Client_ID(), pageNo, pageSize, refresh, searchText, AD_Window_ID, dateFrom, dateTo, AD_Node_ID) }, JsonRequestBehavior.AllowGet)); }