Exemple #1
0
 protected Location GetLocationDetail()
 {
     _selectedLocation      = (Location)_nodeControl.Get();
     _selectedLocation.Abbr = txtAbbr.Text;;
     _selectedLocation.Code = txtCode.Text;
     //_selectedLocation.CurrencyUUID = txtCurrencyUUID.Text;
     //_selectedLocation.LocationType = txtLocationType.text;
     //_selectedLocation.Latitude = txtLatitude.Text;
     //_selectedLocation.Longitude = txtLongitude.Text;
     //_selectedLocation.Longitude = txtLongitude.Text;
     //_selectedLocation.Type = txtType.Text;
     //_selectedLocation.Description = txtDescription.Text;
     _selectedLocation.FirstName = txtFirstName.Text;
     _selectedLocation.LastName  = txtLastName.Text;
     _selectedLocation.Address1  = txtAddress1.Text;
     _selectedLocation.Address2  = txtAddress2.Text;
     //_selectedLocation.City = txtCity.Text;
     //_selectedLocation.State = txtState.Text;
     //_selectedLocation.Country = txtCountry.Text;
     _selectedLocation.Postal           = txtPostal.Text;
     _selectedLocation.IsBillingAddress = chkIsBillingAddress.Checked;
     _selectedLocation.Dispensary       = chkDispensary.Checked;
     _selectedLocation.Cultivation      = chkCultivation.Checked;
     _selectedLocation.Manufacturing    = chkManufacturing.Checked;
     _selectedLocation.Lab         = chkLab.Checked;
     _selectedLocation.Processor   = chkProcessor.Checked;
     _selectedLocation.Retailer    = chkRetailer.Checked;
     _selectedLocation.Virtual     = chkVirtual.Checked;
     _selectedLocation.isDefault   = chkisDefault.Checked;
     _selectedLocation.OnlineStore = chkOnlineStore.Checked;
     return(_selectedLocation);
 }
Exemple #2
0
 protected User GetUserDetail()
 {
     _selectedUser               = (User)_nodeControl.Get();
     _selectedUser.Email         = txtEmail.Text;
     _selectedUser.Anonymous     = chkAnonymous.Checked;
     _selectedUser.Approved      = chkApproved.Checked;
     _selectedUser.Banned        = chkBanned.Checked;
     _selectedUser.SiteAdmin     = chkSiteAdmin.Checked;
     _selectedUser.LockedOut     = chkLockedOut.Checked;
     _selectedUser.LicenseNumber = txtLicenseNumber.Text;
     return(_selectedUser);
 }