示例#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);
            }
        }
示例#2
0
        public Model.WxPtInfoModel GetWxPtInfoModel(decimal WxPtId)
        {
            DAL.WxPtInfoDAL dal = new DAL.WxPtInfoDAL();

            return(dal.GetModel(WxPtId));
        }
示例#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));
        }
示例#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));
        }