public async Task <IActionResult> Index() { ViewData["MemberDefaultGroup"] = await _appService.GetParameterValue("MemberDefaultGroup"); ViewData["MemberDefaultPassword"] = await _appService.GetParameterValue("MemberDefaultPassword"); ViewData["RegAgreement"] = await _appService.GetParameterValue("RegAgreement"); ViewData["AutoReg"] = await _appService.GetParameterValue("AutoReg");; ViewData["RegSmsCode"] = await _appService.GetParameterValue("RegSmsCode"); ViewData["PointPaidPercentLimit"] = await _appService.GetParameterValue("PointPaidPercentLimit"); ViewData["PointPayPwd"] = await _appService.GetParameterValue("PointPayPwd"); ViewData["ValuePayPwd"] = await _appService.GetParameterValue("ValuePayPwd"); ViewData["MemberSignPoint"] = await _appService.GetParameterValue("MemberSignPoint"); ViewData["BusinessAgreement"] = await _appService.GetParameterValue("BusinessAgreement"); var levelDropDown = (await _levelAppService.GetDropDown()); ViewBag.Level = levelDropDown; return(View()); }
public async Task <ActionResult> Add(long goodsId, long memberId) { DataTable dt = await _specAppService.GetObjTableBuyObjId(goodsId); if (dt.Rows.Count == 0 || dt == null)//商品如果没有规格 { DataRow dr = dt.NewRow(); var goods = await _AppService.GetByIdAsync(goodsId); dr["Id"] = goodsId; dr["Text"] = "--"; dr["Stock"] = goods.Stock; dr["Price"] = goods.Price; dt.Rows.Add(dr); } ViewBag.Member = await _memAppService.GetEntity(memberId); decimal pp = Convert.ToDecimal(await _parService.GetParameterValue("PointPayPrice")); ViewBag.MaxIntegralToMoney = ((decimal)(ViewBag.Member.Integral / pp)).ToString("#0.00"); ViewBag.PayType = await _parService.GetParameterValue("PayType"); ViewBag.Coupon = _copAppService.GetUseableCoupon(memberId, (decimal)dt.Rows[0]["Price"]); return(View("_Select", dt)); }
public async Task <IActionResult> Index() { // ViewData["SettleType"] = await _appService.GetParameterValue("SettleType"); ViewData["PointPayPrice"] = await _appService.GetParameterValue("PointPayPrice"); ViewData["CouponPaidForSettlement"] = await _appService.GetParameterValue("CouponPaidForSettlement"); ViewData["PointPaidForSettlement"] = await _appService.GetParameterValue("PointPaidForSettlement"); int total; string table = $"select m.id,m.Title, cast(m.profit as float) profit from TMemberLevel m where 1=1 "; ViewData["cat"] = _levelAppService.GetPage(1, int.MaxValue, "", out total, "", table).Tables[0]; ViewBag.Global = await _globalAppService.GetGlobalSet(); return(View()); }
public async Task <IActionResult> Index() { ViewData["appID"] = await _appService.GetParameterValue("AppID"); ViewData["appsecret"] = await _appService.GetParameterValue("Appsecret"); ViewData["IsWeiXinDevelopment"] = await _appService.GetParameterValue("IsWeiXinDevelopment"); ViewData["url"] = await _appService.GetParameterValue("Url");; ViewData["token"] = await _appService.GetParameterValue("Token"); //ViewData["weiXinType"] = await _appService.GetParameterValue("WeiXinType"); ViewData["AttentionReply"] = await _appService.GetParameterValue("AttentionReply"); return(View()); }