public void BindData(int wid, int aid, string openid) { //基本表信息 BLL.wx_vote_base baseBll = new BLL.wx_vote_base(); baseinfo = baseBll.GetModel(aid); if (baseinfo == null) { return; } //投票选项字符串设置\ BLL.wx_vote_item itemBll = new BLL.wx_vote_item(); IList<Model.wx_vote_item> itemlist = itemBll.GetModelList("baseid=" + baseinfo.id ); if (itemlist == null || itemlist.Count <= 0) { return; } ItemListStr(itemlist,openid); }
public void BindData(int wid, int aid, string openid) { //基本表信息 BLL.wx_vote_base baseBll = new BLL.wx_vote_base(); baseinfo = baseBll.GetModel(aid); if (baseinfo == null) { return; } //投票选项字符串设置\ BLL.wx_vote_item itemBll = new BLL.wx_vote_item(); IList <Model.wx_vote_item> itemlist = itemBll.GetModelList("baseid=" + baseinfo.id); if (itemlist == null || itemlist.Count <= 0) { return; } ItemListStr(itemlist, openid); }
public void BindData(int wid, int aid, string openid) { //基本表信息 BLL.wx_vote_base baseBll = new BLL.wx_vote_base(); List <Model.wx_vote_base> mlist = baseBll.GetModelList(string.Format(" id={0} and wid={1} ", aid, wid)); if (mlist.Count <= 0 || mlist == null) { return; } baseinfo = mlist[0]; //投票选项字符串设置 BLL.wx_vote_item itemBll = new BLL.wx_vote_item(); IList <Model.wx_vote_item> itemlist = itemBll.GetModelList("baseid=" + baseinfo.id); if (itemlist == null || itemlist.Count <= 0) { return; } ItemListStr(itemlist, openid); }