예제 #1
0
        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));
        }
예제 #2
0
        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));
        }
예제 #3
0
        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));
        }
예제 #4
0
        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));
        }