Beispiel #1
0
 public ActionResult SaveForm(string strUserEntity, string verify)
 {
     try
     {
         RegisterUserEntity userEntity = strUserEntity.ToObject <RegisterUserEntity>();
         var user = userBLL.CheckMobile(userEntity.Mobile);
         if (user != null)
         {
             userEntity.VerifyMark = 1;
         }
         else
         {
             userEntity.VerifyMark = 0;
         }
         string keyValue = "";
         if (notifyBLL.CheckNotify(userEntity.Mobile, verify))
         {
             string objectId = registerUserBLL.SaveForm(keyValue, userEntity);
         }
         //RedirectToAction("/Regist/Audit", new { Mobile = userEntity.Mobile });
         Session["Mobile"] = userEntity.Mobile;
         return(Content(new AjaxResult {
             type = ResultType.success, message = "注册成功"
         }.ToJson()));
     }
     catch (Exception ex)
     {
         return(Content(new AjaxResult {
             type = ResultType.error, message = ex.Message
         }.ToJson()));
     }
 }
        public ActionResult SaveForm(string keyValue, string strUserEntity, string FormInstanceId, string strModuleFormInstanceEntity)
        {
            RegisterUserEntity       userEntity = strUserEntity.ToObject <RegisterUserEntity>();
            ModuleFormInstanceEntity moduleFormInstanceEntity = strModuleFormInstanceEntity.ToObject <ModuleFormInstanceEntity>();

            userEntity.CreateUserId = SystemInfo.CurrentUserId;
            string objectId = userBLL.SaveForm(keyValue, userEntity);

            moduleFormInstanceEntity.ObjectId = objectId;
            moduleFormInstanceBll.SaveEntity(FormInstanceId, moduleFormInstanceEntity);
            return(Success("操作成功。"));
        }