protected void ShowDetails(Location l) { if (l == null) { return; } _nodeControl.Show(l); // //This is to link an account to a location. // //Set this to the account.UUID // public string AccountReference; // //this replaces the Id field on the insert. the ParentId will reference this. // public int RootId ; txtAbbr.Text = l.Abbr; txtCode.Text = l.Code; //todo txtCurrencyUUID.Text = l.CurrencyUUID; //todo txtLocationType.text l.LocationType; txtLatitude.Text = l.Latitude.ToString(); txtLongitude.Text = l.Longitude.ToString(); //todo txtType.Text = l.Type; //todo txtDescription.Text = l.Description; txtFirstName.Text = l.FirstName; txtLastName.Text = l.LastName; txtAddress1.Text = l.Address1; txtAddress2.Text = l.Address2; //txtCity.Text = l.City; //txtState.Text = l.State; //txtCountry.Text = l.Country; txtPostal.Text = l.Postal; chkIsBillingAddress.Checked = l.IsBillingAddress; chkDispensary.Checked = l.Dispensary; chkCultivation.Checked = l.Cultivation; chkManufacturing.Checked = l.Manufacturing; chkLab.Checked = l.Lab; chkProcessor.Checked = l.Processor; chkRetailer.Checked = l.Retailer; chkVirtual.Checked = l.Virtual; chkisDefault.Checked = l.isDefault; chkOnlineStore.Checked = l.OnlineStore; }
protected void ShowDetails(User u) { if (u == null) { return; } _nodeControl.Show(u); lblLastLockoutDate.Text = u.LastLockoutDate.ToString(); lblLastLoginDate.Text = u.LastLoginDate.ToString(); lblLastPasswordChangedDate.Text = u.LastPasswordChangedDate.ToString(); chkAnonymous.Checked = u.Anonymous; chkApproved.Checked = u.Approved; chkBanned.Checked = u.Banned; chkSiteAdmin.Checked = u.SiteAdmin; chkLockedOut.Checked = u.LockedOut; txtEmail.Text = u.Email; txtLicenseNumber.Text = u.LicenseNumber; }