protected void btnEnter_Click(object sender, EventArgs e)
    {
        Tz888.Model.StrikeOrder model = new Tz888.Model.StrikeOrder();
        Tz888.BLL.StrikeOrder   dal   = new Tz888.BLL.StrikeOrder();

        model.PayTypeCode     = "pnr";
        model.LoginName       = Page.User.Identity.Name; //充值人
        model.StrikeLoginName = lblLoginName.Text;       //充值帐户



        model.TotalCount = Convert.ToDouble(txtMoney.Value);

        int orderno = dal.CreateStrikeOrder(model);

        if (orderno > 0)
        {
            string postForm = OnlineStrike.pnrForm(orderno.ToString(), lblMoney.Text.Trim());
            Response.Write(postForm);
        }
        else
        {
            Tz888.Common.MessageBox.Show(this.Page, "订单提交失败!请重试!");
        }
    }
    protected void btnEnter_Click(object sender, EventArgs e)
    {
        if (!Tz888.Common.Utility.PageValidate.IsEmail(txtEmail.Value.Trim()))
        {
            Tz888.Common.MessageBox.Show(this.Page, "请输入正确的邮件地址");
            return;
        }
        Tz888.Model.StrikeOrder model = new Tz888.Model.StrikeOrder();
        Tz888.BLL.StrikeOrder   dal   = new Tz888.BLL.StrikeOrder();

        model.PayTypeCode     = "bank";
        model.LoginName       = Page.User.Identity.Name; //充值人
        model.StrikeLoginName = lblLoginName.Text;       //充值帐户

        model.Email    = txtEmail.Value.Trim();
        model.Tel      = txtTel.Value.Trim();
        model.RealName = txtName.Value.Trim();
        model.MobileNo = txtMobile.Value.Trim();

        model.TotalCount = Convert.ToDouble(txtMoney.Value);

        int orderno = dal.CreateStrikeOrder(model);

        if (orderno > 0)
        {
            Response.Redirect("strike_wait.aspx");
        }
        else
        {
            Tz888.Common.MessageBox.Show(this.Page, "订单提交失败!请重试!");
        }
    }
Example #3
0
    public void ImageButton1_Click(object sender, System.Web.UI.ImageClickEventArgs e)
    {
        if (Session["valationNo"] != null && txtB_yz.Text.Trim().ToLower() == Session["valationNo"].ToString().ToLower())
        {
            if (txtB_Name.Text.Trim() != "")
            {
                if (txtB_CzName.Text.Trim() != "" && txtB_CzName.Text.Trim() == txtB_ReCzName.Text.Trim())
                {
                    Tz888.Model.StrikeOrder model = new Tz888.Model.StrikeOrder();
                    Tz888.BLL.StrikeOrder   dal   = new Tz888.BLL.StrikeOrder();

                    model.PayTypeCode     = "tenpay";
                    model.LoginName       = Page.User.Identity.Name;                                             //充值人
                    model.StrikeLoginName = txtB_CzName.Text.Trim();                                             //你的财付通充值帐户
                    model.TotalCount      = Convert.ToDouble(txtB_PayPoint.Text.Trim());
                    model.BuyType         = "Pre-Paid";                                                          //购买类型
                    model.remark          = txtB_Name.Text.Trim() + "使用财付通充值" + txtB_PayPoint.Text.Trim() + "元"; //备注

                    int orderno = dal.CreateStrikeOrder(model);
                    if (orderno > 0)
                    {
                        string postForm = OnlineStrike.tenForm(orderno.ToString(), txtB_PayPoint.Text.Trim(), txtB_Name.Text.Trim());
                        Response.Redirect(postForm);
                    }
                    else
                    {
                        Tz888.Common.MessageBox.Show(this.Page, "订单提交失败!请重试!");
                    }
                }
                else
                {
                    Tz888.Common.MessageBox.Show(this.Page, "充值帐号不为空或者确认充值帐号不正确!");
                    return;
                }
            }
            else
            {
                Tz888.Common.MessageBox.Show(this.Page, "财付通帐号不为空!");
                return;
            }
        }
        else
        {
            Tz888.Common.MessageBox.Show(this.Page, "验证码错误!");
            return;
        }
    }
Example #4
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        //if (Session["valationNo"] != null && txtB_yz.Text.Trim().ToLower() == Session["valationNo"].ToString().ToLower())
        //{
        if (txtB_Name.Text.Trim() != "" && txtB_Name.Text.Trim() == txtB_ReName.Text.Trim())
        {
            string htmlFile = "";
            Tz888.Model.StrikeOrder model = new Tz888.Model.StrikeOrder();
            Tz888.BLL.StrikeOrder   dal   = new Tz888.BLL.StrikeOrder();

            model.PayTypeCode     = "QuickPay";
            model.LoginName       = Page.User.Identity.Name;                                            //充值人
            model.StrikeLoginName = txtB_Name.Text.Trim();                                              //充值帐户
            model.TotalCount      = Convert.ToDouble(txtB_PayPoint.Text.Trim());
            model.BuyType         = "Pre-Paid";                                                         //购买类型
            model.remark          = txtB_Name.Text.Trim() + "使用在线充值" + txtB_PayPoint.Text.Trim() + "元"; //备注

            int orderno = dal.CreateStrikeOrder(model);
            if (orderno > 0)
            {
                int money = Convert.ToInt32(txtB_PayPoint.Text.Trim());
                money = money * 100;

                QuickPaySample quick = new QuickPaySample();
                if (money > 0 || orderno > 0)
                {
                    quick.ProcessRequestList(htmlFile, "中国招商投资网资源信息", Convert.ToString(orderno), Convert.ToString(money), Page.User.Identity.Name);
                }
            }
            else
            {
                Tz888.Common.MessageBox.Show(this.Page, "订单提交失败!请重试!");
            }
        }
        else
        {
            Tz888.Common.MessageBox.Show(this.Page, "帐号不为空或者确认帐号不正确!");
            return;
        }
        //}
        //else
        //{
        //    Tz888.Common.MessageBox.Show(this.Page, "验证码错误!");
        //    return;
        //}
    }
Example #5
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        //if (Session["valationNo"] != null && txtB_yz.Text.Trim().ToLower() == Session["valationNo"].ToString().ToLower())
        //{
        if (txtB_Name.Text.Trim() != "" && txtB_Name.Text.Trim() == txtB_ReName.Text.Trim())
        {
            Tz888.Model.StrikeOrder model = new Tz888.Model.StrikeOrder();
            Tz888.BLL.StrikeOrder   dal   = new Tz888.BLL.StrikeOrder();

            model.PayTypeCode     = "alipay";
            model.LoginName       = txtB_Name.Text.Trim();                                               //充值人
            model.StrikeLoginName = txtB_Name.Text.Trim();                                               //充值帐户
            model.TotalCount      = Convert.ToDouble(txtB_PayPoint.Text.Trim());
            model.BuyType         = "Pre-Paid";                                                          //购买类型
            model.remark          = txtB_Name.Text.Trim() + "使用支付宝充值" + txtB_PayPoint.Text.Trim() + "元"; //备注

            int orderno = dal.CreateStrikeOrder(model);
            if (orderno > 0)
            {
                string posturl = OnlineStrike.alipayForm(orderno.ToString(), txtB_PayPoint.Text.Trim());
                Response.Redirect(posturl);
            }
            else
            {
                Tz888.Common.MessageBox.Show(this.Page, "订单提交失败!请重试!");
            }
        }
        else
        {
            Tz888.Common.MessageBox.Show(this.Page, "支付宝帐号不为空或者确认帐号不正确!");
            return;
        }
        //}
        //else
        //{
        //    Tz888.Common.MessageBox.Show(this.Page, "验证码错误!");
        //    return;
        //}
    }
Example #6
0
    protected void btnStatus_Click(object sender, EventArgs e)
    {
        string LoginName = bp.LoginName;

        if (txtLoginName.Text.Trim() != "")
        {
            MemberInfoBLL memberBll = new MemberInfoBLL();
            int           result    = memberBll.ValideNameUseable(txtLoginName.Text.Trim());
            if (result > 0)
            {       //不可用
                Tz888.Model.StrikeOrder model = new Tz888.Model.StrikeOrder();
                Tz888.BLL.StrikeOrder   dal   = new Tz888.BLL.StrikeOrder();

                model.PayTypeCode     = "bank";
                model.LoginName       = LoginName;                //充值人
                model.StrikeLoginName = txtLoginName.Text.Trim(); //充值帐户
                model.TotalCount      = Convert.ToDouble(txtMoney.Text.Trim());
                model.BuyType         = "Pre-Paid";               //购买类型
                if (txtBank.Text.ToString().Trim() == "")
                {
                    model.remark = txtLoginName.Text.Trim() + "使用银行汇款充值" + txtMoney.Text.Trim() + "元" + " 操作人 " + LoginName;    //备注
                }
                else
                {
                    model.remark = txtBank.Text.ToString().Trim();
                }
                model.OperationMan = LoginName;

                int orderno = dal.CreateStrikeOrder(model);
                if (orderno > 0)
                {
                    Tz888.BLL.StrikeOrder dall = new Tz888.BLL.StrikeOrder();
                    bool b = dall.StrikeSuccess(Convert.ToString(orderno), "bank", "", LoginName);
                    if (b)
                    {
                        Tz888.BLL.Order.BusStrikeRecBLL    RecBLL   = new Tz888.BLL.Order.BusStrikeRecBLL();
                        Tz888.Model.Orders.BusStrikeRecTab BusModel = new Tz888.Model.Orders.BusStrikeRecTab();
                        BusModel.CardNo     = Convert.ToInt64(orderno);
                        BusModel.ChangeBy   = LoginName;
                        BusModel.ChangeTime = System.DateTime.Now;
                        BusModel.Email      = txtEmail.Text.ToString().Trim();
                        BusModel.Tel        = txtTelCountry.Value.ToString().Trim() + txtTelZoneCode.Value.ToString().Trim() + txtTelNumber.Value.ToString().Trim();
                        BusModel.PointCount = Convert.ToDecimal(txtMoney.Text.ToString().Trim());
                        if (txtBank.Text.ToString().Trim() == "")
                        {
                            model.remark = txtLoginName.Text.Trim() + "使用银行汇款充值" + txtMoney.Text.Trim() + "元" + " 操作人 " + LoginName;    //备注
                        }
                        else
                        {
                            model.remark = txtBank.Text.ToString().Trim();
                        }
                        BusModel.StrikeType = "bank";
                        BusModel.Mobile     = txtMobile.Value.ToString().Trim();
                        BusModel.LoginName  = txtLoginName.Text.ToString().Trim();
                        BusModel.Free       = Convert.ToInt32(sType.Value.Trim());
                        int num = RecBLL.Add(BusModel);
                        if (num > 0)
                        {
                            Tz888.Common.MessageBox.Show(this.Page, "充值成功!");
                        }
                    }
                }
                else
                {
                    Tz888.Common.MessageBox.Show(this.Page, "订单提交失败!请重试!");
                }
            }
            else
            {
                Tz888.Common.MessageBox.Show(this.Page, "充值帐号不正确请重新输入!");
            }
        }

        else
        {
            Tz888.Common.MessageBox.Show(this.Page, "帐号不为空或者帐号不正确!");
            return;
        }
    }
Example #7
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        string LoginName = this.Page.User.Identity.Name;

        if (txtLoginName.Text.Trim() != "")
        {
            int           result    = 0;
            MemberInfoBLL memberBll = new MemberInfoBLL();

            int result1 = memberBll.ValideNameUseable(txtLoginName.Text.Trim());
            if (result1 > 0)
            {
                result = memberBll.RechargeCard(txtNumber.Text.ToString().Trim());
            }
            else
            {
                Tz888.Common.MessageBox.Show(this.Page, "充值帐号不正确请重新输入!");
            }
            if (result > 0)
            {   //不可用
                int passresult = memberBll.CardPassWord(txtNumber.Text.ToString().Trim(), txtpassword.Text.ToString().Trim());
                if (passresult > 0)
                {
                    int state = memberBll.RechargeStateCard(txtNumber.Text.ToString().Trim());
                    if (state == 0)
                    {
                        string Money = memberBll.CarMoney(txtNumber.Text.ToString().Trim());
                        Tz888.Model.StrikeOrder model = new Tz888.Model.StrikeOrder();
                        Tz888.BLL.StrikeOrder   dal   = new Tz888.BLL.StrikeOrder();

                        model.PayTypeCode     = "Card";
                        model.LoginName       = LoginName;                //充值人
                        model.StrikeLoginName = txtLoginName.Text.Trim(); //充值帐户
                        model.TotalCount      = Convert.ToDouble(Money);
                        model.BuyType         = "Pre-Paid";               //购买类型
                        if (txtBank.Text.ToString().Trim() == "")
                        {
                            model.remark = txtLoginName.Text.Trim() + "使用银行汇款充值" + Money + "元" + " 操作人 " + LoginName;//备注
                        }
                        else
                        {
                            model.remark = txtBank.Text.ToString().Trim();
                        }
                        model.OperationMan = LoginName;

                        int orderno = dal.CreateStrikeOrder(model);
                        if (orderno > 0)
                        {
                            Tz888.BLL.StrikeOrder dall = new Tz888.BLL.StrikeOrder();
                            bool b = dall.RechargeCardSuccess(Convert.ToString(orderno), "Card", "", LoginName, txtNumber.Text.ToString().Trim(), Convert.ToInt32(1));
                            if (b)
                            {
                                Tz888.BLL.Order.BusStrikeRecBLL    RecBLL   = new Tz888.BLL.Order.BusStrikeRecBLL();
                                Tz888.Model.Orders.BusStrikeRecTab BusModel = new Tz888.Model.Orders.BusStrikeRecTab();
                                BusModel.CardNo     = Convert.ToInt64(orderno);
                                BusModel.ChangeBy   = LoginName;
                                BusModel.ChangeTime = System.DateTime.Now;
                                BusModel.Email      = txtEmail.Text.ToString().Trim();
                                BusModel.Tel        = txtTelCountry.Value.ToString().Trim() + txtTelZoneCode.Value.ToString().Trim() + txtTelNumber.Value.ToString().Trim();
                                BusModel.PointCount = Convert.ToDecimal(Money);
                                if (txtBank.Text.ToString().Trim() == "")
                                {
                                    BusModel.Remark = txtLoginName.Text.Trim() + "使用银行汇款充值" + Money + "元" + " 操作人 " + LoginName;//备注
                                }
                                else
                                {
                                    BusModel.Remark = txtBank.Text.ToString().Trim();
                                }
                                BusModel.StrikeType = "Card";
                                BusModel.Mobile     = txtMobile.Value.ToString().Trim();
                                BusModel.LoginName  = txtLoginName.Text.ToString().Trim();
                                BusModel.Free       = Convert.ToInt32(1);
                                BusModel.CardNumber = txtNumber.Text.ToString().Trim();
                                int num = RecBLL.Add(BusModel);
                                if (num > 0)
                                {
                                    Tz888.Common.MessageBox.Show(this.Page, "充值成功!");
                                }
                            }
                        }
                        else
                        {
                            Tz888.Common.MessageBox.Show(this.Page, "订单提交失败!请重试!");
                        }
                    }
                    else
                    {
                        Tz888.Common.MessageBox.Show(this.Page, "该卡号已充值,不能重复充值!");
                    }
                }
                else
                {
                    Tz888.Common.MessageBox.Show(this.Page, "充值卡密码不正确请重新输入!");
                }
            }
            else
            {
                Tz888.Common.MessageBox.Show(this.Page, "充值卡号不正确请重新输入!");
            }
        }

        else
        {
            Tz888.Common.MessageBox.Show(this.Page, "帐号不为空或者帐号不正确!");
            return;
        }
    }