Example #1
0
        protected void lbtnCreateAccountArtist_Click(object sender, EventArgs e)
        {
            Account artType = new Account();

            artType.password    = txtArtistConfirm.Text;
            artType.accountType = "artist";
            artType.firstName   = txtArtistFName.Text;
            artType.lastName    = txtArtistLName.Text;
            artType.email       = txtArtistEmail.Text;
            artType.PhoneNumber = txtArtistPhone.Text;

            NewAccount(artType);

            NewAccountService.Artist artist = new NewAccountService.Artist();

            artist.artist_FName  = txtArtistFName.Text;
            artist.artist_LName  = txtArtistLName.Text;
            artist.email         = txtArtistEmail.Text;
            artist.phoneNumber   = txtArtistPhone.Text;
            artist.company       = txtArtistCompany.Text;
            artist.rating        = Convert.ToDecimal("0.0");
            artist.certification = txtArtistCert.Text;
            artist.city          = txtArtistCity.Text;
            artist.state         = txtArtistState.Text;
            artist.zipcode       = txtArtistZipcode.Text;
            artist.streetAddress = txtArtistStreetAddress.Text;
            artist.address2      = txtArtistAddress2.Text;

            NewAccountService.NewAccount proxy = new NewAccountService.NewAccount();

            if (proxy.AddArtist(artist))
            {
                DataSet userData = procedure.getaccountidfromemail(txtArtistEmail.Text);
                //Email verificationEmail = new Email();
                //string receiveremail = txtCustomerEmail.Text;
                //string senderEmail = "*****@*****.**";
                //string subject = "Verify your account";
                int account = int.Parse(userData.Tables[0].Rows[0]["Account_ID"].ToString());

                //string body = "Please refer to this URL to confirm your account creation. http://localhost:63822/verification.aspx?ID=" + account;
                //verificationEmail.SendMail(receiveremail, senderEmail, subject, body);

                Response.Redirect("verification.aspx?ID=" + account);
                lblStoreName.Text = "Artist Account was created successfully!";
            }
            else
            {
                lblStoreName.Text = "Account was not created D:";
            }
        }
        protected void btnLocationSearch_Click(object sender, EventArgs e)
        {
            NewAccountService.NewAccount proxy = new NewAccountService.NewAccount();

            NewAccountService.Artist artist = proxy.GetArtistByZip(txtLocationArtist.Text);

            if (artist != null)
            {
                lblArtistFName.Text = artist.artist_FName;
                lblArtistLName.Text = artist.artist_LName;
                lblCompany.Text     = artist.company;
                lblCity.Text        = artist.city;
                lblState.Text       = artist.state;
            }
            else
            {
                lblArtistFName.Text = "Nothing.";
            }
        }
Example #3
0
        protected void lbtnCreateAccountArtist_Click(object sender, EventArgs e)
        {
            Account artType = new Account();

            artType.password    = txtArtistConfirm.Text;
            artType.accountType = "artist";
            artType.firstName   = txtArtistFName.Text;
            artType.lastName    = txtArtistLName.Text;
            artType.email       = txtArtistEmail.Text;
            artType.PhoneNumber = txtArtistPhone.Text;

            NewAccount(artType);

            NewAccountService.Artist artist = new NewAccountService.Artist();

            artist.artist_FName  = txtArtistFName.Text;
            artist.artist_LName  = txtArtistLName.Text;
            artist.email         = txtArtistEmail.Text;
            artist.phoneNumber   = txtArtistPhone.Text;
            artist.company       = txtArtistCompany.Text;
            artist.rating        = Convert.ToDecimal("0.0");
            artist.certification = txtArtistCert.Text;
            artist.city          = txtArtistCity.Text;
            artist.state         = txtArtistState.Text;
            artist.zipcode       = txtArtistZipcode.Text;
            artist.streetAddress = txtArtistStreetAddress.Text;
            artist.address2      = txtArtistAddress2.Text;

            NewAccountService.NewAccount proxy = new NewAccountService.NewAccount();

            if (proxy.AddArtist(artist))
            {
                lblStoreName.Text = "Artist Account was created successfully!";
            }
            else
            {
                lblStoreName.Text = "Account was not created D:";
            }
        }
Example #4
0
 /// <remarks/>
 public void AddArtistAsync(Artist art)
 {
     this.AddArtistAsync(art, null);
 }