Exemplo n.º 1
0
        void InsertTransDetails()
        {
            if (Request.QueryString["Type"] != null && Request.QueryString["Type"] != "")
            {
                if (Request.QueryString["Type"].ToString().Equals("signup"))
                {
                    //Pay Details , membership payment details update
                    EntityServiceReference.EntityServiceClient ServiceClient = new EntityServiceReference.EntityServiceClient();
                    ServiceClient.Open();
                    int Confirm = ServiceClient.UpdatePaymentDetails(LblMemberId.Text.ToString(), 0, 0, Convert.ToDecimal(LblAmount.Text.ToString()), LblMemberId.Text.ToString());
                    ServiceClient.Close();

                    //PG 
                    if (rbl_CardType.SelectedValue == "IDBI")
                    {
                        Response.Redirect("../Payment/Idbi/Default.aspx?type=idbi&transid=" + LblMemberId.Text.ToString() + "_" + LblType.Text.ToString()  +"&amt=" + LblAmount.Text.ToString() + "&show=" + LblType.Text.ToString());
                    }
                    else if (rbl_CardType.SelectedValue == "AMEX")
                    {
                        Response.Redirect("../Payment/Amex/Default.aspx?type=amex&transid=" + LblMemberId.Text.ToString() + "&amt=" + LblAmount.Text.ToString() + "&show=" + LblType.Text.ToString());
                    }
                    // end PG
                }
                else if (Request.QueryString["Type"].ToString().Equals("topup"))
                {
                    // top up insert
                    //Pay Details , membership payment details update
                    EntityServiceReference.EntityServiceClient ServiceClient = new EntityServiceReference.EntityServiceClient();
                    ServiceClient.Open();
                    // trans type 0=recharge, 1=payment
                    var Confirm = ServiceClient.InsertTopUpDetails(LblMemberId.Text.ToString(),Convert.ToDecimal(LblAmount.Text.ToString()),DateTime.Now.Date,LblMemberId.Text.ToString(),0);
                    if (Confirm[0].Transaction_Id != "")
                    {
                        LblTransId.Text = Confirm[0].Transaction_Id.ToString();
                    }
                    ServiceClient.Close();

                    //PG 
                    if (rbl_CardType.SelectedValue == "IDBI")
                    {
                        Response.Redirect("../Payment/Idbi/Default.aspx?type=idbi&transid=" + LblTransId.Text.ToString() + "_" + LblType.Text.ToString() + "&amt=" + LblAmount.Text.ToString() + "&show=" + LblType.Text.ToString());
                    }
                    else if (rbl_CardType.SelectedValue == "AMEX")
                    {                        
                        Response.Redirect("../Payment/Amex/Default.aspx?type=amex&transid=" + LblTransId.Text.ToString() + "&amt=" + LblAmount.Text.ToString() + "&show=" + LblType.Text.ToString());
                    }
                    else if (rbl_CardType.SelectedValue == "HDFC")
                    {
                        Response.Redirect("../Payment/HDFC/Default.aspx?type=hdfc&transid=" + LblTransId.Text.ToString() + "&amt=" + LblAmount.Text.ToString() + "&show=" + LblType.Text.ToString());
                    }
                    // end PG
                }
            }
        }
Exemplo n.º 2
0
        void InsertTransDetails()
        {
            if (Request.QueryString["Type"] != null && Request.QueryString["Type"] != "")
            {
                if (Request.QueryString["Type"].ToString().Equals("signup"))
                {
                    //Pay Details , membership payment details update
                    EntityServiceReference.EntityServiceClient ServiceClient = new EntityServiceReference.EntityServiceClient();
                    ServiceClient.Open();
                    int Confirm = ServiceClient.UpdatePaymentDetails(LblMemberId.Text.ToString(), 0, 0, Convert.ToDecimal(LblAmount.Text.ToString()), LblMemberId.Text.ToString());
                    ServiceClient.Close();

                    //PG
                    if (rbl_CardType.SelectedValue == "IDBI")
                    {
                        Response.Redirect("../Payment/Idbi/Default.aspx?type=idbi&transid=" + LblMemberId.Text.ToString() + "_" + LblType.Text.ToString() + "&amt=" + LblAmount.Text.ToString() + "&show=" + LblType.Text.ToString());
                    }
                    else if (rbl_CardType.SelectedValue == "AMEX")
                    {
                        Response.Redirect("../Payment/Amex/Default.aspx?type=amex&transid=" + LblMemberId.Text.ToString() + "&amt=" + LblAmount.Text.ToString() + "&show=" + LblType.Text.ToString());
                    }
                    // end PG
                }
                else if (Request.QueryString["Type"].ToString().Equals("topup"))
                {
                    // top up insert
                    //Pay Details , membership payment details update
                    EntityServiceReference.EntityServiceClient ServiceClient = new EntityServiceReference.EntityServiceClient();
                    ServiceClient.Open();
                    // trans type 0=recharge, 1=payment
                    var Confirm = ServiceClient.InsertTopUpDetails(LblMemberId.Text.ToString(), Convert.ToDecimal(LblAmount.Text.ToString()), DateTime.Now.Date, LblMemberId.Text.ToString(), 0);
                    if (Confirm[0].Transaction_Id != "")
                    {
                        LblTransId.Text = Confirm[0].Transaction_Id.ToString();
                    }
                    ServiceClient.Close();

                    //PG
                    if (rbl_CardType.SelectedValue == "IDBI")
                    {
                        Response.Redirect("../Payment/Idbi/Default.aspx?type=idbi&transid=" + LblTransId.Text.ToString() + "_" + LblType.Text.ToString() + "&amt=" + LblAmount.Text.ToString() + "&show=" + LblType.Text.ToString());
                    }
                    else if (rbl_CardType.SelectedValue == "AMEX")
                    {
                        Response.Redirect("../Payment/Amex/Default.aspx?type=amex&transid=" + LblTransId.Text.ToString() + "&amt=" + LblAmount.Text.ToString() + "&show=" + LblType.Text.ToString());
                    }
                    else if (rbl_CardType.SelectedValue == "HDFC")
                    {
                        Response.Redirect("../Payment/HDFC/Default.aspx?type=hdfc&transid=" + LblTransId.Text.ToString() + "&amt=" + LblAmount.Text.ToString() + "&show=" + LblType.Text.ToString());
                    }
                    // end PG
                }
            }
        }