Пример #1
0
        /// <summary>
        /// 获取模板列表
        /// </summary>
        public void GetTempleList()
        {
            var typeid = GetInt("typeid");
            var start  = GetInt("start");
            var limit  = GetInt("limit");
            var result = TempleHelper.GetList(typeid, start * limit, limit);

            var jt = new JsonTransfer();

            jt.Add("list", result.Results);
            jt.Add("totalcount", result.TotalCount);
            Response.Write(jt.ToJson());
            Response.End();
        }
Пример #2
0
        /// <summary>
        /// 获取商户详情页面的一些配置列表
        /// </summary>
        public void GetCfgList()
        {
            var result     = MerchantTypeHelper.GetList();
            var tresult    = TempleHelper.GetList();
            var signlist   = ParamHelper.PlatformCfgData.SignList;
            var jt         = new JsonTransfer();
            var nowdate    = DateTime.Now.ToString("yyyy-MM-d");
            var serverdata = DateTime.Now.AddYears(1).ToString("yyyy-MM-d");;

            jt.Add("mertypelist", result);
            jt.Add("templelist", tresult.Results);
            jt.Add("signlist", signlist);
            jt.Add("nowdate", nowdate);
            jt.Add("serverdata", serverdata);

            Response.Write(jt.ToJson());
            Response.End();
        }