コード例 #1
0
        public ActionResult SaveRegistCode(string keyValue, RegistManageEntity entity)
        {
            RegistManageBLL registManageBLL = new RegistManageBLL();

            registManageBLL.SaveForm(keyValue, entity);
            return(Success("操作成功"));
        }
コード例 #2
0
        public ActionResult GetRegistManageForm(string keyValue)
        {
            RegistManageBLL    registManageBLL = new RegistManageBLL();
            RegistManageEntity data            = registManageBLL.GetForm(keyValue);

            return(Json(data, JsonRequestBehavior.AllowGet));
        }
コード例 #3
0
        public ActionResult GetRegistCodeList(string keyword)
        {
            RegistManageBLL           registManageBLL = new RegistManageBLL();
            List <RegistManageEntity> entities        = registManageBLL.GetList(keyword);

            return(Json(entities, JsonRequestBehavior.AllowGet));
        }
コード例 #4
0
        public ActionResult RemoveRegistManage(string keyValue)
        {
            RegistManageBLL registManageBLL = new RegistManageBLL();

            registManageBLL.RemoveRegistManage(keyValue);

            return(Success("操作成功"));
        }
コード例 #5
0
 public object GetApiUrl([FromBody] JObject json)
 {
     try
     {
         string             res             = json.Value <string>("json");
         dynamic            dy              = JsonConvert.DeserializeObject <ExpandoObject>(res);
         string             registcode      = dy.registcode;//注册码
         RegistManageBLL    registManageBLL = new RegistManageBLL();
         RegistManageEntity data            = registManageBLL.GetEntity(registcode);
         if (data == null)
         {
             return(new { Code = -1, Info = "获取数据失败", Message = "没有找到对应的数据" });
         }
         return(new { Code = 0, Info = "获取数据成功", data });
     }
     catch (Exception ex)
     {
         return(new { Code = -1, Info = "获取数据失败", ex.Message });
     }
 }