Beispiel #1
0
 public ActionResult Edit(string Code)
 {
     var search = new LoadShopCriteria()
     {
         SysCode = SecurityPortal.ApplicationName,
         Code = Code
     };
     Shop entity = BusinessPortal.Load<Shop>(search);
     return View(entity);
 }
Beispiel #2
0
        public JsonResult CheckShopAuthPwd(string pwd)
        {
            var search = new LoadShopCriteria()
            {
                SysCode = SecurityPortal.ApplicationName,
                Code = App.Framework.Security.User.Current.ShopCode
            };
            Shop entity = BusinessPortal.Load<Shop>(search);

            if (QuickInvoke.Encrypt(pwd) == entity.AUTH_PWD)
            {
                return Json(new { Result = true }, JsonRequestBehavior.AllowGet);
            }
            else
            {
                return Json(new { Result = false }, JsonRequestBehavior.AllowGet);
            }
        }