/// <summary> /// 更新价格 /// </summary> /// <param name="id"></param> /// <param name="jg"></param> /// <param name="jsj"></param> /// <returns></returns> public JsonResult UpdateQudaoTc(int id, decimal jg, decimal jsj, int sfxsjg) { int i = new XttcbService().UpdateTcJgJsj(id, jsj, jg, sfxsjg); if (i > 0) { return(Json(new { flag = true, msg = "" }, JsonRequestBehavior.AllowGet)); } else { return(Json(new { flag = false, msg = "更新失败" }, JsonRequestBehavior.AllowGet)); } }
/// <summary> /// 渠道套餐 /// </summary> /// <returns></returns> public ActionResult Tc(int page = 1, string sfqy = "", string qdbh = "", string tcmc = "") { int count = 0; Hashtable ht = new Hashtable(); ht.Add("yybh", GLYadmin.YYID); ht.Add("tcmc", tcmc); ht.Add("sfqy", sfqy); ht.Add("qdbh", qdbh); ht.Add("tclx", "2"); List <XttcbModel> list = new XttcbService().GetYyQdTcNew(ht, page, PageSize, ref count); ViewBag.Pager = PagingNewHelper.ShowFPageForBootstrapAdmin(page, PageSize, count);//生成分页条 if (Request.IsAjaxRequest()) { return(PartialView("TcPart", list)); } else { List <QuDaoJbxx> liQd = new QuDaoJbxxService().GetYyQudao(GLYadmin.YYID, ""); List <KeyValueModel> li = new List <KeyValueModel>(); foreach (QuDaoJbxx model in liQd) { li.Add(new KeyValueModel() { key = model.Bh, values = model.Mc }); } ViewBag.QdList = li; } XtJgbModel jgModel = new Service.XtjgbService().GetJg(GLYadmin.YYID); ViewBag.Zdbz = jgModel.zdbz; return(View(list)); }
public QudaoController() { _xttcbService = new XttcbService(); }
/// <summary> /// 套餐组合项目查看 /// </summary> /// <param name="jgid"></param> /// <param name="tcbh"></param> /// <returns></returns> public ActionResult QdTcZhxmIndex(string yybh, string tcbh = "") { List <XtZhxmbModel> list = new XttcbService().GetTcZhxm(yybh, tcbh); return(PartialView("TcDetailPart", list)); }