Esempio n. 1
0
        /// <summary>
        /// 保存微信公众平台
        ///
        /// </summary>
        /// <param name="model"></param>
        public void SaveWxPtInfo(Model.WxPtInfoModel model)
        {
            DAL.WxPtInfoDAL dal = new DAL.WxPtInfoDAL();
            if (model.WxPtId == 0)
            {
                //添加微信公众平台
                model.AccessTokenCreateTime = DateTime.Now;

                dal.Add(model);
            }
            else
            {
                //修改微信公众平台
                dal.Update(model);
            }
        }
Esempio n. 2
0
        public Model.WxPtInfoModel GetWxPtInfoModel(decimal WxPtId)
        {
            DAL.WxPtInfoDAL dal = new DAL.WxPtInfoDAL();

            return(dal.GetModel(WxPtId));
        }
Esempio n. 3
0
        public DataSet GetWxPtPageList(string strWhere, int c, int p, string col)
        {
            DAL.WxPtInfoDAL dal = new DAL.WxPtInfoDAL();

            return(dal.GetPageList(strWhere, c, p, col));
        }
Esempio n. 4
0
        /// <summary>
        /// 获取公众平台资料
        /// </summary>
        /// <param name="WxPtId"></param>
        /// <returns></returns>
        public DataSet GetWxPtInfoData(decimal WxPtId)
        {
            DAL.WxPtInfoDAL dal = new DAL.WxPtInfoDAL();

            return(dal.GetInfoData(WxPtId));
        }