コード例 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Utils.CheckRole("10"))
     {
         Page.ClientScript.RegisterStartupScript(Page.GetType(), "set", "<script>window.onload=showmsgclose('权限信息','没有权限!','/Systestcomjun/index.aspx',2)</script>");
         return;
     }
     if (!IsPostBack)
     {
         if (Request.QueryString["OrderID"] != null)
         {
             int OrderID = Convert.ToInt32(Request.QueryString["OrderID"]);
             ZhongLi.Model.Reward_Order order = new ZhongLi.BLL.Reward_Order().GetModel(OrderID);
             DataTable dt = new ZhongLi.BLL.Person().findField("RealName", order.PerID.Value);
             if (dt.Rows.Count > 0)
             {
                 ltlRealName.Text = dt.Rows[0][0].ToString();
             }
             ltlRewardMoney.Text     = order.RewardMoney.ToString();
             ltlRewardTime.Text      = order.RewardTime.ToString();
             ltlTrade.Text           = order.Trade;
             ltlCompanySize.Text     = order.CompanySize;
             ltlCompanyNature.Text   = order.CompanyNature;
             ltlEngagePost.Text      = order.EngagePost;
             ltlDemandPay.Text       = order.DemandPay;
             ltlJobCity.Text         = order.JobCity;
             ltlOtherDemand.Text     = order.OtherDemand;
             ltlCompanyMatching.Text = order.CompanyMatching;
             ltlOtherDemandDes.Text  = order.OtherDemandDes;
             ltlEducation.Text       = order.Education;
             ltlWorkLife.Text        = order.WorkLife;
         }
     }
 }
コード例 #2
0
ファイル: Auth.aspx.cs プロジェクト: tonyyzz/UQingHrMng
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Request.QueryString["OrderID"] != null)
     {
         int OrderID = Convert.ToInt32(Request.QueryString["OrderID"]);
         ZhongLi.Model.Reward_Order order = new ZhongLi.BLL.Reward_Order().GetModel(OrderID);
         DataTable Perdt = new ZhongLi.BLL.Person().findField("RealName,AuthImg", order.PerID.Value);
         if (Perdt.Rows.Count > 0)
         {
             ltlRealName.Text    = Perdt.Rows[0][0].ToString();
             img_PerImg.ImageUrl = Perdt.Rows[0][1].ToString();
         }
         ltlRewardMoney.Text     = order.RewardMoney.ToString();
         ltlRewardTime.Text      = order.RewardTime.ToString();
         ltlTrade.Text           = order.Trade;
         ltlCompanySize.Text     = order.CompanySize;
         ltlCompanyNature.Text   = order.CompanyNature;
         ltlEngagePost.Text      = order.EngagePost;
         ltlDemandPay.Text       = order.DemandPay;
         ltlJobCity.Text         = order.JobCity;
         ltlOtherDemand.Text     = order.OtherDemand;
         ltlCompanyMatching.Text = order.CompanyMatching;
         ltlOtherDemandDes.Text  = order.OtherDemandDes;
         DataTable Serdt = new ZhongLi.BLL.ServerUser().findField("RealName,IDCardImg", order.SerUserID.Value);
         if (Perdt.Rows.Count > 0)
         {
             ltlRealName.Text        = Serdt.Rows[0][0].ToString();
             ing_SerUserImg.ImageUrl = Serdt.Rows[0][1].ToString();
         }
         ltlCompany.Text         = order.Company;
         ltlTrade.Text           = order.Post_Trade;
         ltlScale.Text           = order.Scale;
         ltlNature.Text          = order.Nature;
         ltlPostName.Text        = order.PostName;
         ltlPostDuty.Text        = order.PostDuty;
         ltlSalary.Text          = order.Salary;
         ltlDevelopProspect.Text = order.DevelopProspect;
         ltlDirectLeader.Text    = order.DirectLeader;
         ltlWorkAdress.Text      = order.WorkAdress;
         ltlAdress.Text          = order.WorkAdress;
         ltlWelfareTag.Text      = order.WelfareTag;
         ltlCompanyMatching.Text = order.Post_CompanyMatching;
         ltlOtherPoint.Text      = order.OtherPoint;
         //DataTable dt = bll.getOrderImgAuth(OrderID) ;
         //img_Auth.ImageUrl = dt.Rows[0]["AutoImg"].ToString();
         //if (dt.Rows[0]["OrderState"].ToString() != "2")
         //{
         //    btnAuth.Visible = false;
         //    btnAuth.Visible = false;
         //}
     }
 }
コード例 #3
0
 void aTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
 {
     if (DateTime.Now.Hour == 11 || DateTime.Now.Hour == 12)
     {
         try
         {
             ZhongLi.BLL.Reward_Order bll = new ZhongLi.BLL.Reward_Order();
             int OrderCanceTime           = bll.getOrderCanceDay();//订单过期天数
             //已经过期的订单数据
             DataTable IsOverDt = bll.getOrderOverTime();
             //给已过期的订单的用户发送推送
             foreach (DataRow dr in IsOverDt.Rows)
             {
                 JPushApiExample.ALERT       = "您有悬赏订单已过期,快去延期吧~";
                 JPushApiExample.MSG_CONTENT = "您有悬赏订单已过期,快去延期吧~";
                 PushPayload pushsms1 = JPushApiExample.PushObject_ios_audienceMore_messageWithExtras("p" + dr["PerID"], "Order");
                 JPushApiExample.push(pushsms1);
             }
             //过期订单还没有修改状态的订单
             DataTable OverDt = bll.getOrderOverTime(OrderCanceTime);
             if (OverDt.Rows.Count > 0)
             {
                 if (bll.setOrderOverTime(OverDt, OrderCanceTime))
                 {
                     foreach (DataRow dr in OverDt.Rows)
                     {
                         JPushApiExample.ALERT       = "您有悬赏订单已过期,快去延期吧~";
                         JPushApiExample.MSG_CONTENT = "您有悬赏订单已过期,快去延期吧~";
                         PushPayload pushsms1 = JPushApiExample.PushObject_ios_audienceMore_messageWithExtras("p" + dr["PerID"], "Order");
                         JPushApiExample.push(pushsms1);
                     }
                 }
             }
         }
         catch (Exception ex)
         {
         }
     }
 }
コード例 #4
0
ファイル: Post.aspx.cs プロジェクト: tonyyzz/UQingHrMng
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Utils.CheckRole("10"))
     {
         Page.ClientScript.RegisterStartupScript(Page.GetType(), "set", "<script>window.onload=showmsgclose('权限信息','没有权限!','/Systestcomjun/index.aspx',2)</script>");
         return;
     }
     if (!IsPostBack)
     {
         if (Request.QueryString["OrderID"] != null)
         {
             int OrderID = Convert.ToInt32(Request.QueryString["OrderID"]);
             ZhongLi.BLL.Reward_Order   bll   = new ZhongLi.BLL.Reward_Order();
             ZhongLi.Model.Reward_Order order = bll.GetModel(OrderID);
             DataTable dt = new ZhongLi.BLL.ServerUser().findField("RealName", order.SerUserID.Value);
             if (dt.Rows.Count > 0)
             {
                 ltlRealName.Text = dt.Rows[0][0].ToString();
             }
             ltlCompany.Text         = order.Company;
             ltlTrade.Text           = order.Post_Trade;
             ltlScale.Text           = order.Scale;
             ltlNature.Text          = order.Nature;
             ltlPostName.Text        = order.PostName;
             ltlPostDuty.Text        = order.PostDuty;
             ltlSalary.Text          = order.Salary;
             ltlDevelopProspect.Text = order.DevelopProspect;
             ltlDirectLeader.Text    = order.DirectLeader;
             ltlWorkAdress.Text      = order.WorkAdress;
             ltlAdress.Text          = order.WorkAdress;
             ltlWelfareTag.Text      = order.WelfareTag;
             ltlCompanyMatching.Text = order.Post_CompanyMatching;
             ltlOtherPoint.Text      = order.OtherPoint;
         }
     }
 }
コード例 #5
0
ファイル: ResultNotify.cs プロジェクト: tonyyzz/UQingHrMng
        public override void ProcessNotify()
        {
            WxPayData notifyData = GetNotifyData();

            WxLogger("微信回调");
            //检查支付结果中transaction_id是否存在
            if (!notifyData.IsSet("transaction_id"))
            {
                //若transaction_id不存在,则立即返回结果给微信支付后台
                WxPayData res = new WxPayData();
                res.SetValue("return_code", "FAIL");
                res.SetValue("return_msg", "支付结果中微信订单号不存在");
                WxLogger("支付订单不存在");
                Log.Error(this.GetType().ToString(), "The Pay result is error : " + res.ToXml());
                page.Response.Write(res.ToXml());
                page.Response.End();
            }

            string transaction_id = notifyData.GetValue("transaction_id").ToString();
            string out_trade_no   = notifyData.GetValue("out_trade_no").ToString();

            //查询订单,判断订单真实性
            if (!QueryOrder(transaction_id))
            {
                //若订单查询失败,则立即返回结果给微信支付后台
                WxLogger("订单查询失败");
                WxPayData res = new WxPayData();
                res.SetValue("return_code", "FAIL");
                res.SetValue("return_msg", "订单查询失败");
                Log.Error(this.GetType().ToString(), "Order query failure : " + res.ToXml());
                page.Response.Write(res.ToXml());
                page.Response.End();
            }
            //查询订单成功
            else
            {
                WxLogger("订单查询成功");
                string t = out_trade_no.Substring(0, 1);
                //WxLogger("编号" + sPara["out_trade_no"] + "--t:" + t);
                if (t.Equals("d"))
                {
                    WxLogger("订单");
                    if (new ZhongLi.BLL.Reward_Order().isOrderState(out_trade_no))
                    {
                        bool issuss = new ZhongLi.BLL.Reward_Order().modOrderStateByOrderNum(out_trade_no, "微信");
                        WxLogger("修改数据库:" + issuss);
                    }
                    else
                    {
                        WxLogger("已修改数据库:" + out_trade_no);
                    }
                }
                else if (t.Equals("c"))
                {
                    WxLogger("充值");
                    if (new ZhongLi.BLL.Person().IsPayCheck(out_trade_no))
                    {
                        bool issuss = new ZhongLi.BLL.Person().EditPayCheck(out_trade_no, "微信");
                        WxLogger("修改数据库:" + issuss);
                    }
                    else
                    {
                        WxLogger("已修改数据库" + out_trade_no);
                    }
                }
                else if (t.Equals("y"))
                {
                    WxLogger("指定职位订单悬赏");
                    if (new ZhongLi.BLL.Reward_Order().isOrderState(out_trade_no))
                    {
                        bool issuss = new ZhongLi.BLL.Reward_Order().modOrderStateByNumPost(out_trade_no, "微信");
                        WxLogger("执行结果:" + issuss);
                        if (issuss)
                        {
                            DataTable dt = new ZhongLi.BLL.Reward_Order().getOrderInfo("SerUserID,RealName,EngagePost", out_trade_no);
                            JPushApiExample.ALERT       = "求职者" + dt.Rows[0]["RealName"] + "针对您的职位 " + dt.Rows[0]["EngagePost"] + "发送了悬赏订单,赶紧去我的订单里面查看吧";
                            JPushApiExample.MSG_CONTENT = "求职者" + dt.Rows[0]["RealName"] + "针对您的职位" + dt.Rows[0]["EngagePost"] + "发送了悬赏订单,赶紧去我的订单里面查看吧";
                            PushPayload pushsms = JPushApiExample.PushObject_ios_audienceMore_messageWithExtras("s" + dt.Rows[0]["SerUserID"], "Order");
                            JPushApiExample.push(pushsms);
                        }
                    }
                    else
                    {
                    }
                }

                WxPayData res = new WxPayData();
                res.SetValue("return_code", "SUCCESS");
                res.SetValue("return_msg", "OK");
                Log.Info(this.GetType().ToString(), "order query success : " + res.ToXml());
                page.Response.Write(res.ToXml());
                page.Response.End();
            }
        }
コード例 #6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            WxLogger("进入回调函数ali_notify");
            try
            {
                Dictionary <string, string> sPara = GetRequestPost();
                string notify_id = Request.Form["notify_id"]; //获取notify_id
                string sign      = Request.Form["sign"];      //获取sign
                //过滤空值、sign与sign_type参数
                //Dictionary<string, string> aaa = Core.FilterPara(sPara);

                //获取待签名字符串
                //string preSignStr = Core.CreateLinkString(aaa);
                //WxLogger("参数:" + preSignStr);
                if (notify_id != null && notify_id != "")//判断是否有带返回参数
                {
                    Notify aliNotify = new Notify();
                    //WxLogger("公钥:" + Config.alipay_public_key.Trim());
                    //WxLogger("sign:" + sign);
                    //WxLogger("issign:" + aliNotify.GetSignVeryfy(sPara, sign));
                    //WxLogger("ResponseTxt:" + aliNotify.GetResponseTxt(Request.Form["notify_id"]));
                    //WxLogger("公钥:" + Notify.getPublicKeyStr(Config.alipay_public_key), context);
                    if (aliNotify.GetResponseTxt(notify_id) == "true")
                    {
                        if (aliNotify.GetSignVeryfy(sPara, sign))
                        {
                            //卖家支付宝账号	//订单号//
                            WxLogger("验证成功");
                            WxLogger("订单号:" + sPara["out_trade_no"]);
                            WxLogger("金额:" + sPara["total_fee"]);
                            //修改订单状态
                            string t = sPara["out_trade_no"].Substring(0, 1);
                            //WxLogger("编号" + sPara["out_trade_no"] + "--t:" + t);
                            if (t.Equals("d"))
                            {
                                WxLogger("订单");
                                if (new ZhongLi.BLL.Reward_Order().isOrderState(sPara["out_trade_no"]))
                                {
                                    bool issuss = new ZhongLi.BLL.Reward_Order().modOrderStateByOrderNum(sPara["out_trade_no"], "支付宝");
                                    WxLogger("修改数据库:" + issuss);
                                }
                                else
                                {
                                    WxLogger("已修改数据库:" + sPara["out_trade_no"]);
                                }
                            }
                            else if (t.Equals("c"))
                            {
                                WxLogger("充值");
                                if (new ZhongLi.BLL.Person().IsPayCheck(sPara["out_trade_no"]))
                                {
                                    bool issuss = new ZhongLi.BLL.Person().EditPayCheck(sPara["out_trade_no"], "支付宝");
                                    WxLogger("修改数据库:" + issuss);
                                }
                                else
                                {
                                    WxLogger("已修改数据库" + sPara["out_trade_no"]);
                                }
                            }
                            else if (t.Equals("y"))
                            {
                                WxLogger("指定职位订单悬赏");
                                if (new ZhongLi.BLL.Reward_Order().isOrderState(sPara["out_trade_no"]))
                                {
                                    bool issuss = new ZhongLi.BLL.Reward_Order().modOrderStateByNumPost(sPara["out_trade_no"], "支付宝");
                                    WxLogger("执行结果:" + issuss);
                                    if (issuss)
                                    {
                                        DataTable dt = new ZhongLi.BLL.Reward_Order().getOrderInfo("SerUserID,RealName,EngagePost", sPara["out_trade_no"]);
                                        JPushApiExample.ALERT       = "求职者" + dt.Rows[0]["RealName"] + "针对您的职位 " + dt.Rows[0]["EngagePost"] + "发送了悬赏订单,赶紧去我的订单里面查看吧";
                                        JPushApiExample.MSG_CONTENT = "求职者" + dt.Rows[0]["RealName"] + "针对您的职位" + dt.Rows[0]["EngagePost"] + "发送了悬赏订单,赶紧去我的订单里面查看吧";
                                        PushPayload pushsms = JPushApiExample.PushObject_ios_audienceMore_messageWithExtras("s" + dt.Rows[0]["SerUserID"], "Order");
                                        JPushApiExample.push(pushsms);
                                    }
                                }
                                else
                                {
                                }
                            }
                            Response.Write("success");
                        }
                        else
                        {
                            WxLogger("订单号:" + sPara["out_trade_no"]);
                            WxLogger("验证失败");
                            Response.Write("sign fail!");
                        }
                    }
                    else
                    {
                        Response.Write("sign fail!");
                    }
                }
                else
                {
                    // Response.Write("非通知参数!");
                }
            }
            catch (Exception ex)
            {
                WxLogger("异常:" + ex.Message);
            }
        }