Ejemplo n.º 1
0
 public virtual CloudAccountDA.PaymentGatewayPaypalMasterDataTable GetData()
 {
     this.Adapter.SelectCommand = this.CommandCollection[0];
     CloudAccountDA.PaymentGatewayPaypalMasterDataTable dataTable = new CloudAccountDA.PaymentGatewayPaypalMasterDataTable();
     this.Adapter.Fill(dataTable);
     return(dataTable);
 }
Ejemplo n.º 2
0
 public virtual int Fill(CloudAccountDA.PaymentGatewayPaypalMasterDataTable dataTable)
 {
     this.Adapter.SelectCommand = this.CommandCollection[0];
     if (this.ClearBeforeFill)
     {
         dataTable.Clear();
     }
     return(this.Adapter.Fill(dataTable));
 }
 private void SetRecord(string iD)
 {
     this.objPaymentGatewayPaypalMasterDT = this.objPaymentGatewayPaypalMasterBll.GetDataByPaymentGatewayID(int.Parse(iD));
     if (this.objPaymentGatewayPaypalMasterDT.Rows.Count <= 0)
     {
         return;
     }
     this.hfPaymentGateway.Value = this.objPaymentGatewayPaypalMasterDT.Rows[0]["PaymentGatewayPaypalID"].ToString();
     this.txtPaypalID.Text       = this.objPaymentGatewayPaypalMasterDT.Rows[0]["PaypalID"].ToString();
 }
Ejemplo n.º 4
0
 public virtual CloudAccountDA.PaymentGatewayPaypalMasterDataTable GetDataByPaymentGatewayPaypalID(int?PaymentGatewayPaypalID)
 {
     this.Adapter.SelectCommand = this.CommandCollection[1];
     if (PaymentGatewayPaypalID.HasValue)
     {
         this.Adapter.SelectCommand.Parameters[1].Value = PaymentGatewayPaypalID.Value;
     }
     else
     {
         this.Adapter.SelectCommand.Parameters[1].Value = DBNull.Value;
     }
     CloudAccountDA.PaymentGatewayPaypalMasterDataTable dataTable = new CloudAccountDA.PaymentGatewayPaypalMasterDataTable();
     this.Adapter.Fill(dataTable);
     return(dataTable);
 }
Ejemplo n.º 5
0
        protected void btnPay_Click(object sender, ImageClickEventArgs e)
        {
            string str1 = "https://www.paypal.com/cgi-bin/webscr?cmd=_xclick";

            this.objPaymentGatewayPaypalMasterDT = this.objPaymentGatewayPaypalMasterBll.GetAllDetail();
            string str2 = this.objPaymentGatewayPaypalMasterDT.Rows.Count <= 0 ? str1 + "&[email protected]" : str1 + (object)"&business=" + (string)this.objPaymentGatewayPaypalMasterDT.Rows[0]["PaypalID"];

            if (!string.IsNullOrEmpty(this.lblPackageName.Text))
            {
                str2 = str2 + "&item_name=" + this.lblPackageName.Text;
            }
            if (this.rblMonth1.Checked)
            {
                if (!string.IsNullOrEmpty(this.lblPriceMonth.Text))
                {
                    str2 = str2 + "&amount=" + this.lblPriceMonth.Text;
                }
            }
            else if (this.rblYear1.Checked && !string.IsNullOrEmpty(this.lblPriceYear.Text))
            {
                str2 = str2 + "&amount=" + this.lblPriceYear.Text;
            }
            this.Response.Redirect(str2 + "&return=" + ConfigurationManager.AppSettings["SuccessAdminURL"] + "&cancel_return=" + ConfigurationManager.AppSettings["FailedAdminURL"]);
        }
Ejemplo n.º 6
0
 public virtual int Update(CloudAccountDA.PaymentGatewayPaypalMasterDataTable dataTable)
 {
     return(this.Adapter.Update(dataTable));
 }