private bool DoEdit(int _id) { Model.wx_userweixin weixin = GetWeiXinCode(); Model.wx_fc_album model = bll.GetModel(_id); bool result = false; model.aid = MyCommFun.Str2Int(this.ddlAlbums.SelectedItem.Value); if (bll.Update(model)) { AddAdminLog(MXEnums.ActionEnum.Edit.ToString(), "修改相册信息,id:" + model.Id); //记录日志 result = true; } return(result); }
private bool DoAdd() { Model.wx_userweixin weixin = GetWeiXinCode(); Model.wx_fc_album model = new Model.wx_fc_album(); bool result = false; model.aid = MyCommFun.Str2Int(this.ddlAlbums.SelectedItem.Value); model.wid = weixin.id; model.createDate = DateTime.Now; model.fid = fid; if (bll.Add(model) > 0) { AddAdminLog(MXEnums.ActionEnum.Add.ToString(), "添加相册信息:" + model.fid); //记录日志 result = true; } return(result); }
private void ShowInfo(int _id) { Model.wx_fc_album model = bll.GetModel(_id); ddlAlbums.SelectedValue = model.aid.Value.ToString(); }