Exemplo n.º 1
0
 protected void btnsave_Click(object sender, EventArgs e)
 {
     if (Request.QueryString["OrderID"] != null)
     {
         int        OrderID     = Convert.ToInt32(Request.QueryString["OrderID"]);
         DataTable  perdt       = bll.getPerByOrderID(OrderID);
         int        PerID       = Convert.ToInt32(perdt.Rows[0]["PerID"]);
         string     RealName    = perdt.Rows[0]["RealName"].ToString();
         int        SerUserID   = Convert.ToInt32(perdt.Rows[0]["SerUserID"]);
         decimal    RewardMoney = Convert.ToDecimal(perdt.Rows[0]["RewardMoney"]);
         siteconfig site        = new ZhongLi.Bll.siteconfig().loadConfig(Server.MapPath("/xmlconfig/site.config"));
         if (bll.PassAuth(OrderID, PerID, SerUserID, RewardMoney, site.Commission))
         {
             DateTime time = DateTime.Now;
             //添加消息表
             ZhongLi.Model.Person_Message msg = new ZhongLi.Model.Person_Message();
             msg.MesCon   = "您的悬赏订单审核通过啦,恭喜您成功入职!";
             msg.SendTime = time;
             msg.PerID    = PerID;
             msg.MesType  = 0;
             new ZhongLi.BLL.Person_Message().Add(msg);
             ZhongLi.Model.ServerUser_Message sermsg = new ZhongLi.Model.ServerUser_Message();
             sermsg.MesCon    = "您的订单审核通过啦,您已获得悬赏佣金,赶紧去钱包查看吧!";
             sermsg.SendTime  = time;
             sermsg.SerUserID = SerUserID;
             sermsg.MesType   = 0;
             new ZhongLi.BLL.ServerUser_Message().Add(sermsg);
             //推送通知
             //求职者
             JPushApiExample.ALERT       = "您的悬赏订单审核通过啦,恭喜您成功入职!";
             JPushApiExample.MSG_CONTENT = "您的悬赏订单审核通过啦,恭喜您成功入职!";
             PushPayload pushsms = JPushApiExample.PushObject_ios_audienceMore_messageWithExtras("p" + PerID, "OrderAuth");
             JPushApiExample.push(pushsms);
             //人才经纪人
             JPushApiExample.ALERT       = "您的订单审核通过啦,您已获得悬赏佣金,赶紧去钱包查看吧!";
             JPushApiExample.MSG_CONTENT = "您的订单审核通过啦,您已获得悬赏佣金,赶紧去钱包查看吧!";
             PushPayload pushsms1 = JPushApiExample.PushObject_ios_audienceMore_messageWithExtras("s" + SerUserID, "OrderAuth");
             JPushApiExample.push(pushsms1);
             webHelper.addLog("通过了“" + RealName + "”的入职资料审核");
             Page.ClientScript.RegisterStartupScript(Page.GetType(), "set", "<script>window.onload=showmsgclose('入职协议审核','审核成功!','Auth.aspx?OrderID=" + OrderID + "',1)</script>");
         }
         else
         {
             Page.ClientScript.RegisterStartupScript(Page.GetType(), "set", "<script>window.onload=showmsgclose('入职协议审核','审核失败!','Auth.aspx?OrderID=" + OrderID + "',1)</script>");
         }
     }
 }
Exemplo n.º 2
0
        protected void btnPerbh_Click(object sender, EventArgs e)
        {
            if (Request.QueryString["OrderID"] != null)
            {
                int       OrderID   = Convert.ToInt32(Request.QueryString["OrderID"]);
                DataTable perdt     = bll.getPerByOrderID(OrderID);
                int       PerID     = Convert.ToInt32(perdt.Rows[0]["PerID"]);
                string    RealName  = perdt.Rows[0]["RealName"].ToString();
                int       SerUserID = Convert.ToInt32(perdt.Rows[0]["SerUserID"]);
                if (bll.editOrderState(OrderID, 7))
                {
                    DateTime time = DateTime.Now;
                    //添加消息表
                    ZhongLi.Model.Person_Message msg = new ZhongLi.Model.Person_Message();
                    msg.MesCon   = "您的悬赏订单没有通过审核,快去检查入职协议并重新上传资料吧";
                    msg.SendTime = time;
                    msg.PerID    = PerID;
                    msg.MesType  = 0;
                    new ZhongLi.BLL.Person_Message().Add(msg);
                    //添加消息表
                    ZhongLi.Model.ServerUser_Message sermsg = new ZhongLi.Model.ServerUser_Message();
                    sermsg.MesCon    = "您的悬赏订单没有通过审核,快去检查入职协议并重新上传资料吧";
                    sermsg.SendTime  = time;
                    sermsg.SerUserID = PerID;
                    sermsg.MesType   = 0;
                    new ZhongLi.BLL.ServerUser_Message().Add(sermsg);
                    //推送通知

                    JPushApiExample.ALERT       = "您的订单没有通过审核,去检查一下您入职协议中的认证资料吧";
                    JPushApiExample.MSG_CONTENT = "您的订单没有通过审核,去检查一下您入职协议中的认证资料吧";
                    PushPayload pushsms = JPushApiExample.PushObject_ios_audienceMore_messageWithExtras("p" + PerID, "OrderAuth");
                    JPushApiExample.push(pushsms);

                    JPushApiExample.ALERT       = "您的订单没有通过审核,去检查一下入职协议吧";
                    JPushApiExample.MSG_CONTENT = "您的订单没有通过审核,去检查一下入职协议吧";
                    PushPayload pushsms1 = JPushApiExample.PushObject_ios_audienceMore_messageWithExtras("s" + SerUserID, "OrderAuth");
                    JPushApiExample.push(pushsms1);
                    webHelper.addLog("不通过“" + RealName + "”的悬赏订单审核");
                    Page.ClientScript.RegisterStartupScript(Page.GetType(), "set", "<script>window.onload=showmsgclose('入职协议审核','审核成功!','Auth.aspx?OrderID=" + OrderID + "',1)</script>");
                }
                else
                {
                    Page.ClientScript.RegisterStartupScript(Page.GetType(), "set", "<script>window.onload=showmsgclose('入职协议审核','审核失败!','Auth.aspx?OrderID=" + OrderID + "',1)</script>");
                }
            }
        }
Exemplo n.º 3
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(ZhongLi.Model.ServerUser_Message model)
 {
     return(dal.Update(model));
 }
Exemplo n.º 4
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int Add(ZhongLi.Model.ServerUser_Message model)
 {
     return(dal.Add(model));
 }