public string check(string userName) { starweibo.BLL.userInfo findmail = new starweibo.BLL.userInfo(); List <starweibo.Model.userInfo> MNoteName = new List <starweibo.Model.userInfo>(); MNoteName = findmail.GetModelList("userName='******'"); return(MNoteName[0].userMail); }
public bool chongzhi(string userPwd, string userName) { List <starweibo.Model.userInfo> shengqing = new List <starweibo.Model.userInfo>(); starweibo.BLL.userInfo oneshenqing = new starweibo.BLL.userInfo(); shengqing = oneshenqing.GetModelList("userName='******'"); shengqing[0].userPwd = userPwd; return(oneshenqing.Update(shengqing[0])); }
public string shenqing(string userName, string userPwd, string userMail) { starweibo.Model.userInfo shengqing = new starweibo.Model.userInfo(); starweibo.BLL.userInfo oneshenqing = new starweibo.BLL.userInfo(); shengqing.userName = userName; shengqing.userPwd = userPwd; shengqing.userMail = userMail; shengqing.userHeadimage = "css/images/personalCenterimages/headimage.jpg"; return(oneshenqing.Add(shengqing).ToString()); }
public int checkname(string name) { starweibo.BLL.userInfo blluser = new starweibo.BLL.userInfo(); List <starweibo.Model.userInfo> moduser = new List <starweibo.Model.userInfo>(); moduser = blluser.GetModelList("userName='******'"); if (moduser.Count == 0) { return(-1); } else { return(moduser[0].id); } }
protected void Page_Load(object sender, EventArgs e) { if (Session["userid"] == null || Session["userid"].ToString() == "") { Response.Redirect("login.aspx"); } else { int userid = (int)Session["userid"]; starweibo.BLL.userInfo blluserinfo = new starweibo.BLL.userInfo(); DataSet ds = blluserinfo.GetList("id in (select senderId from chatV group by senderId,receiverId having receiverId=" + userid + " and receiverId <> senderId) "); //this.chatDL.DataSource = chatlist.GetListByPage("receiverid = "+userid+"","pubTime",0,10); this.chatDL.DataSource = ds; this.chatDL.DataBind(); } }
//发送公告 public void SendSysMsg(string msgContent) { starweibo.BLL.chatInfo SysMsg = new starweibo.BLL.chatInfo(); starweibo.Model.chatInfo molMsg = new starweibo.Model.chatInfo(); List <starweibo.Model.userInfo> SSM = new List <starweibo.Model.userInfo>(); starweibo.BLL.userInfo bllSSM = new starweibo.BLL.userInfo(); SSM = bllSSM.GetModelList("1=1"); foreach (starweibo.Model.userInfo onessm in SSM) { if (onessm.id != 44) { molMsg.receiverId = onessm.id; molMsg.msgContent = msgContent; molMsg.senderId = 44; molMsg.msgState = "noread"; SysMsg.Add(molMsg); } } }
public void charuP(string userName) { List <starweibo.Model.userInfo> shenqing = new List <starweibo.Model.userInfo>(); starweibo.BLL.userInfo oneshenqing = new starweibo.BLL.userInfo(); starweibo.BLL.powerInfo OP = new starweibo.BLL.powerInfo(); starweibo.Model.powerInfo IDP = new starweibo.Model.powerInfo(); shenqing = oneshenqing.GetModelList("userName='******'"); IDP.userId = shenqing[0].id; IDP.zan = "1"; IDP.pinglun = "1"; IDP.at = "1"; IDP.guanzhu = "1"; IDP.jubao = "1"; IDP.zhuanfa = "1"; IDP.shoucang = "1"; IDP.fasong = "1"; OP.Add(IDP); }