Esempio n. 1
0
 public JsonResult GetErrorLogProd()
 {
     try
     {
         ResponseContent <List <string> > result         = new ResponseContent <List <string> >();
         RFID_WebSite.Models.SPCYModels   SPCYModelsData = new RFID_WebSite.Models.SPCYModels();
         List <string> objs = SPCYModelsData.GetErrorLogProd();
         result.Status  = "200";
         result.Message = objs;
         return(Json(result, JsonRequestBehavior.AllowGet));
     }
     catch (Exception e)
     {
         ResponseContent <string> result = new ResponseContent <string>();
         result.Status  = "500";
         result.Message = e.Message + " " + e.StackTrace;
         return(Json(result, JsonRequestBehavior.AllowGet));
     }
 }
Esempio n. 2
0
        public JsonResult GetConfig(string Step, string Prod_ID, string Parameter)
        {
            try
            {
                ResponseContent <List <SPCYModels.Config> > result = new ResponseContent <List <SPCYModels.Config> >();


                RFID_WebSite.Models.SPCYModels SPCYModelsData     = new RFID_WebSite.Models.SPCYModels();
                List <RFID_WebSite.Models.SPCYModels.Config> objs = SPCYModelsData.GetConfig(Step, Prod_ID, Parameter);
                result.Status  = "200";
                result.Message = objs;
                return(Json(result, JsonRequestBehavior.AllowGet));
            }
            catch (Exception e)
            {
                ResponseContent <string> result = new ResponseContent <string>();
                result.Status  = "500";
                result.Message = e.Message + " " + e.StackTrace;
                return(Json(result, JsonRequestBehavior.AllowGet));
            }
        }