예제 #1
0
 public ActionResult ProcessDesign()
 {
     try
     {
         string        workflowJson     = this.Request["workflowJson"];
         WorkflowPanel wp               = Athena.common.Util.Json.ToObject <WorkflowPanel>(workflowJson);
         string        primitiveJSonStr = this.Request["primitiveJSonStr"];
         wp.workflowjson = primitiveJSonStr;
         bool result = wp.Save();
         return(Json(new { result = result }, JsonRequestBehavior.AllowGet));
     }
     catch (Exception ex)
     {
         string message = ex.Message;
         return(this.SuccessMsg());
     }
 }
예제 #2
0
 public void  ProcessDesign()
 {
     try
     {
         string        workflowJson     = ctx.Request["workflowJson"];
         WorkflowPanel wp               = Json.ToObject <WorkflowPanel>(workflowJson);
         string        primitiveJSonStr = ctx.Request["primitiveJSonStr"];
         wp.workflowjson = primitiveJSonStr;
         bool result = wp.Save();
         var  para   = new { result = result };
         writeJsonBack(para.ToJson());
     }
     catch (Exception ex)
     {
         writeJsonBack(new { result = false }.ToJson());
         string message = ex.Message;
     }
 }