Exemple #1
0
        public ActionResult DeleteCommand(string processName, Guid guidCmd)
        {
            var success = RobotProcessController.DeleteCommand(processName, guidCmd);

            return(Json(new { Success = success }, JsonRequestBehavior.AllowGet));
        }
Exemple #2
0
        public ActionResult StartProcess(string processName)
        {
            var success = RobotProcessController.ExecuteProcess(MyRobot, processName, MvcApplication.LoadedTray, Logs);

            return(Json(new { Success = success }, JsonRequestBehavior.AllowGet));
        }
Exemple #3
0
 public ActionResult IsProcessExist(string processName)
 {
     return(Json(new { Exist = RobotProcessController.IsExistingProcess(processName) }, JsonRequestBehavior.AllowGet));
 }
Exemple #4
0
        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));
        }
Exemple #5
0
        public ActionResult AddMovement(string processName, string movementName)
        {
            var success = RobotProcessController.AddMovement(processName, movementName);

            return(Json(new { Success = success }, JsonRequestBehavior.AllowGet));
        }
Exemple #6
0
        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));
        }
Exemple #7
0
        public ActionResult AddCurrentPosition(string processName, Guid guidMovement)
        {
            var success = RobotProcessController.AddCurrentPosition(processName, guidMovement, MyRobot);

            return(Json(new { Success = success }, JsonRequestBehavior.AllowGet));
        }
Exemple #8
0
 public ActionResult GetProcessNameList()
 {
     return(Json(RobotProcessController.GetProcessNameList(), JsonRequestBehavior.AllowGet));
 }