public void LoadForm(int id) { STD_REGISTRY registry = ServiceInterfaceManager.STD_REGISTRY_GET_COMPLETE(HttpContext.Current.User.Identity.Name, UserSession.CurrentRegistryId, id); if (registry != null) { lblRegistryNameValue.Text = (registry.NAME == string.Empty ? "N/A" : registry.NAME); lblRegistryCodeValue.Text = (registry.CODE == string.Empty ? "N/A" : registry.CODE); lblRegistryDescriptionValue.Text = (registry.DESCRIPTION_TEXT == string.Empty ? "N/A" : registry.DESCRIPTION_TEXT); if (!registry.INACTIVE_FLAG) { lblRegistryStatusValue.Text = "Enabled"; } else { lblRegistryStatusValue.Text = "Disabled"; } if (registry.REGISTRY_OWNER_USER != null) { lblRegistryOwnerValue.Text = (registry.REGISTRY_OWNER_USER.FULL_NAME == string.Empty ? "N/A" : registry.REGISTRY_OWNER_USER.FULL_NAME); } else { lblRegistryOwnerValue.Text = "N/A"; } if (registry.REGISTRY_ADMINISTRATOR_USER != null) { lblRegistryAdministratorValue.Text = (registry.REGISTRY_ADMINISTRATOR_USER.FULL_NAME == string.Empty ? "N/A" : registry.REGISTRY_ADMINISTRATOR_USER.FULL_NAME); } else { lblRegistryAdministratorValue.Text = "N/A"; } if (registry.SUPPORT_CONTACT_USER != null) { lblSupportContactValue.Text = (registry.SUPPORT_CONTACT_USER.FULL_NAME == string.Empty ? "N/A" : registry.SUPPORT_CONTACT_USER.FULL_NAME); } else { lblSupportContactValue.Text = "N/A"; } } USERS user = ServiceInterfaceManager.USERS_GET_BY_NAME(HttpContext.Current.User.Identity.Name, UserSession.CurrentRegistryId, HttpContext.Current.User.Identity.Name); if (user != null) { if (UserSession.CurrentRegistryId == user.DEFAULT_REGISTRY_ID) { chkRegistryDefault.Checked = true; } else { chkRegistryDefault.Checked = false; } } }