public ActionResult AddRemit(UserRemit remit) { ViewData["referer"] = ShopUtils.GetAdminRefererCookie(); if (!Users.IsExistMobile(remit.Mobile)) { return(PromptView("账号不存在")); } PartUserInfo user = Users.GetPartUserByMobile(remit.Mobile); MD_Remit rmt = new MD_Remit { Uid = user.Uid, Mobile = remit.Mobile, Type = "人工充值", Name = "系统充值", Account = "系统充值", Money = remit.Money, Status = 0 }; bool addres = NewUser.AddUserRemit(rmt); if (addres) { return(PromptView("添加成功")); } else { return(PromptView("添加失败")); } }
public ActionResult AddRemit() { ViewData["referer"] = ShopUtils.GetAdminRefererCookie(); UserRemit remit = new UserRemit { Type = "人工充值", Name = "系统充值", Account = "系统充值" }; return(View(remit)); }
public ActionResult EditRemit(int remitid, short status) { ViewData["referer"] = ShopUtils.GetAdminRefererCookie(); ViewData["remitid"] = remitid; ViewData["status"] = status; List <MD_Remit> remitlist = NewUser.GetUserRemitList(1, 1, " where a.remitid=" + remitid.ToString()); UserRemit remit = new UserRemit(); if (remitlist.Count > 0) { remit = new UserRemit { UserName = remitlist[0].UserName, Name = remitlist[0].Name, Account = remitlist[0].Account, Money = remitlist[0].Money, Type = remitlist[0].Type, Addtime = remitlist[0].Addtime }; } return(View(remit)); }