/// <summary> /// 分页获取数据列表 /// </summary> //public DataSet GetList(int PageSize,int PageIndex,string strWhere) //{ //return dal.GetList(PageSize,PageIndex,strWhere); //} #endregion BasicMethod #region ExtensionMethod /// <summary> /// 添加access_token值 /// </summary> /// <param name="wid"></param> /// <param name="access_token"></param> /// <returns></returns> public string AddAccess_Token(int wid, string access_token) { string ret = ""; try { XCWeiXin.Model.wx_property_info wxProperty = new XCWeiXin.Model.wx_property_info(); wxProperty.iName = "access_token"; wxProperty.typeId = 1; wxProperty.typeName = "base"; wxProperty.iContent = access_token; wxProperty.expires_in = 1200; wxProperty.createDate = DateTime.Now; wxProperty.count = 1; wxProperty.wid = wid; Add(wxProperty); } catch (Exception ex) { throw new Exception(ex.Message); } return(""); }
/// <summary> /// 更新一条数据 /// </summary> public bool Update(XCWeiXin.Model.wx_property_info model) { return(dal.Update(model)); }
/// <summary> /// 增加一条数据 /// </summary> public int Add(XCWeiXin.Model.wx_property_info model) { return(dal.Add(model)); }