Пример #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
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Utils.CheckRole("4"))
     {
         Page.ClientScript.RegisterStartupScript(Page.GetType(), "set", "<script>window.onload=showmsgclose('权限信息','没有权限!','/Systestcomjun/index.aspx',2)</script>");
         return;
     }
     if (!IsPostBack)
     {
         if (Request.QueryString["PerID"] != null)
         {
             int PerID = Convert.ToInt32(Request.QueryString["PerID"]);
             url += PerID;
             //基本资料
             ZhongLi.Model.Person person = new ZhongLi.BLL.Person().GetModel(PerID);
             ltlRealName.Text  = person.RealName;
             ltlSex.Text       = person.Sex == true ? "男" : "女";
             ltlEducation.Text = person.Education;
             ltlWorkLife.Text  = person.WorkLife;
             ltlCity.Text      = person.City;
             ltlPhne.Text      = person.Phne;
             if (person.Photo != "")
             {
                 imgPhoto.ImageUrl = person.Photo;
             }
             ltlEmail.Text = person.Email;
             //期望工作
             List <ZhongLi.Model.Person_ExpectWork> listperex = new ZhongLi.BLL.Person_ExpectWork().GetModelList(" PerID=" + PerID);
             if (listperex.Count > 0)
             {
                 ltlExpectedPostion.Text = listperex[0].ExpectedPostion;
                 ltlWorkType.Text        = listperex[0].WorkType;
                 ltlExCity.Text          = listperex[0].ExCity;
                 ltlExSalary.Text        = listperex[0].ExSalary;
                 ltlReMark.Text          = listperex[0].ReMark;
             }
             //工作经历
             rptPerWork.DataSource = new ZhongLi.BLL.Person_Work().GetList(" PerID=" + PerID);
             rptPerWork.DataBind();
             //教育经历
             rptEducation.DataSource = new ZhongLi.BLL.Person_Education().GetList(" PerID=" + PerID);
             rptEducation.DataBind();
             //项目经历
             rptPerProject.DataSource = new ZhongLi.BLL.Person_Project().GetList(" PerID=" + PerID);
             rptPerProject.DataBind();
             //技能评价
             rptPerSkill.DataSource = new ZhongLi.BLL.Person_Skill().GetList("PerID=" + PerID);
             rptPerSkill.DataBind();
             //自我描述
             ltlMyDes.Text = person.MyDes;
         }
     }
 }
Пример #3
0
 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;
         //}
     }
 }
Пример #4
0
        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();
            }
        }
Пример #5
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);
            }
        }