protected void btnPerbh_Click(object sender, EventArgs e) { if (Request.QueryString["PerID"] != null) { int PerID = Convert.ToInt32(Request.QueryString["PerID"]); ZhongLi.Model.Person person = bll.GetModel(PerID); person.Flag = 3; person.AuthTime = DateTime.Now; bll.Update(person); //添加消息表 ZhongLi.Model.Person_Message msg = new ZhongLi.Model.Person_Message(); msg.MesCon = "您的身份认证被驳回了,需要重新上传哦"; msg.SendTime = DateTime.Now; msg.PerID = PerID; msg.MesType = 0; new ZhongLi.BLL.Person_Message().Add(msg); //推送通知 PushClass push = new PushClass(); push.title = "优青通知:"; push.content = "您的身份认证被驳回了,需要重新上传哦"; push.type = "1"; push.platform = "0"; push.groupName = "person"; push.userIds = "p" + PerID; push.ts_01(); webHelper.addLog("通过了求职者“" + person.RealName + "”的身份认证"); Page.ClientScript.RegisterStartupScript(Page.GetType(), "set", "<script>window.onload=showmsgclose('求职者认证','认证成功!','Auth.aspx?PerID='" + person.PerID + ",1)</script>"); } }
protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e) { if (e.CommandName.Equals("payFail")) { int ID = Convert.ToInt32(e.CommandArgument); int adminid = Convert.ToInt32(Utils.GetCookie("UserID")); string adminname = new ZhongLi.BLL.User_Managers().GetModel(adminid).RealName; string realname = ((Literal)e.Item.FindControl("ltlrealname")).Text; ZhongLi.Model.PresentApplication p = bll.GetModel(ID); if (bll.PayFail(adminid, adminname, ID, p.UserType.Value, p.UserID.Value, p.Money.Value)) { //推送通知 PushClass push = new PushClass(); push.title = "优青通知:"; push.content = "您的提现申请支付失败了,资金已退回到您的钱包,请检查您提现时填的资料是否正确"; push.type = "1"; push.platform = "0"; push.groupName = ""; if (p.UserType.Value == 0)//用户类型为人才 { push.userIds = "p" + p.UserID; } else { push.userIds = "s" + p.UserID; } push.ts_01(); webHelper.addLog(adminname + "设置" + realname + "的提现申请支付失败"); Page.ClientScript.RegisterStartupScript(Page.GetType(), "set", "<script>window.onload=showmsg('审核提现申请','操作成功!','',1)</script>"); databind(); } else { Page.ClientScript.RegisterStartupScript(Page.GetType(), "set", "<script>window.onload=showmsg('审核提现申请','操作失败!','',2)</script>"); } } }