public ActionResult DeleteCommand(string processName, Guid guidCmd) { var success = RobotProcessController.DeleteCommand(processName, guidCmd); return(Json(new { Success = success }, JsonRequestBehavior.AllowGet)); }
public ActionResult StartProcess(string processName) { var success = RobotProcessController.ExecuteProcess(MyRobot, processName, MvcApplication.LoadedTray, Logs); return(Json(new { Success = success }, JsonRequestBehavior.AllowGet)); }
public ActionResult IsProcessExist(string processName) { return(Json(new { Exist = RobotProcessController.IsExistingProcess(processName) }, JsonRequestBehavior.AllowGet)); }
public ActionResult AddTrayAction(string processName, bool isWithdraw) { var success = RobotProcessController.AddTrayAction(processName, isWithdraw ? TrayAction.Action.Withdraw : TrayAction.Action.Depose, MyRobot); return(Json(new { Success = success }, JsonRequestBehavior.AllowGet)); }
public ActionResult AddMovement(string processName, string movementName) { var success = RobotProcessController.AddMovement(processName, movementName); return(Json(new { Success = success }, JsonRequestBehavior.AllowGet)); }
public ActionResult AddGripperAction(string processName, bool open) { var success = RobotProcessController.AddGripperAction(processName, open ? GripperAction.Action.Open : GripperAction.Action.Close, MyRobot); return(Json(new { Success = success }, JsonRequestBehavior.AllowGet)); }
public ActionResult AddCurrentPosition(string processName, Guid guidMovement) { var success = RobotProcessController.AddCurrentPosition(processName, guidMovement, MyRobot); return(Json(new { Success = success }, JsonRequestBehavior.AllowGet)); }
public ActionResult GetProcessNameList() { return(Json(RobotProcessController.GetProcessNameList(), JsonRequestBehavior.AllowGet)); }