Esempio n. 1
0
 public virtual ActionResult CreateNode(FlowStep created)
 {
     if (ModelState.IsValid)
     {
         try
         {
             created.StepType = 1;
             entities.FlowSteps.AddObject(created);
             entities.SaveChanges();
             var js = " $('.info_div').hide();$('#success').fadeIn('slow');";
             return JavaScript(js);
         }
         catch
         {
             var js = " $('.info_div').hide();$('#fail').fadeIn('slow');";
             return JavaScript(js);
         }
     }
     return JavaScript(" $('.info_div').hide(); $('#warning').fadeIn('slow');");
 }
Esempio n. 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the FlowSteps EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToFlowSteps(FlowStep flowStep)
 {
     base.AddObject("FlowSteps", flowStep);
 }
Esempio n. 3
0
 /// <summary>
 /// Create a new FlowStep object.
 /// </summary>
 /// <param name="stepID">Initial value of the StepID property.</param>
 /// <param name="stepName">Initial value of the StepName property.</param>
 /// <param name="processGroup">Initial value of the ProcessGroup property.</param>
 public static FlowStep CreateFlowStep(global::System.Int32 stepID, global::System.String stepName, global::System.Int32 processGroup)
 {
     FlowStep flowStep = new FlowStep();
     flowStep.StepID = stepID;
     flowStep.StepName = stepName;
     flowStep.ProcessGroup = processGroup;
     return flowStep;
 }