User Information Page
+ +@Model.DisplayFullName
+ @if (!Model.CurrentAffiliate) + { +Not Current
+ } +-
+ @if (!string.IsNullOrEmpty(Model.Title))
+ {
+
- @Model.Title + } + @if (!string.IsNullOrEmpty(Model.Department)) + { +
- @Model.Department + } + @if (!string.IsNullOrEmpty(Model.Email)) + { +
- @Model.Email @(!string.IsNullOrEmpty(Model.EmailHost) ? $"({Model.EmailHost})" : "") + } + @if (!string.IsNullOrEmpty(Model.LoginId)) + { +
- Login ID: @Model.LoginId + } + @if (!string.IsNullOrEmpty(Model.LabeledUri)) + { +
- URI: @Model.LabeledUri + } + @if (!string.IsNullOrEmpty(Model.Phone)) + { +
- + Phone: @Model.Phone + + } + @if (!string.IsNullOrEmpty(Model.Mobile)) + { +
- + Mobile: @Model.Mobile + + } + @if (!string.IsNullOrEmpty(Model.Pager)) + { +
- Pager: @Model.Pager + } + @if (!string.IsNullOrEmpty(Model.PostalAddress)) + { +
- Address: @Html.Raw(Model.PostalAddress) + } + @if (Model.CanViewStudentID && !string.IsNullOrEmpty(Model.StudentId)) + { +
- Student ID: @Model.StudentId + } + @if (Model.CanViewDirectoryDetail) + { + @if (!string.IsNullOrEmpty(Model.MothraId)) + { +
- Mothra ID: @Model.MothraId + } + @if (!string.IsNullOrEmpty(Model.IamId)) + { +
- IAM ID: @Model.IamId + } + @if (!string.IsNullOrEmpty(Model.EmployeeId)) + { +
- Employee ID: @Model.EmployeeId + } + @if (!string.IsNullOrEmpty(Model.Pidm)) + { +
- PIDM: @Model.Pidm + } + @if (!string.IsNullOrEmpty(Model.MivId) && Model.MivId != "0") + { +
- MIV ID: @Model.MivId + } + } +
Employee Information
+-
+ @if (!string.IsNullOrEmpty(Model.EmployeeId))
+ {
+
- Employee ID: @Model.EmployeeId + } + @if (!string.IsNullOrEmpty(Model.EmployeePrimaryTitle)) + { +
- Primary Title: @Model.EmployeePrimaryTitle + } + @if (!string.IsNullOrEmpty(Model.EmployeeSchoolDivision)) + { +
- School Division: @Model.EmployeeSchoolDivision + } + @if (!string.IsNullOrEmpty(Model.EmployeeStatus)) + { +
- Status: @Model.EmployeeStatus + } + @if (!string.IsNullOrEmpty(Model.EmployeeTerm)) + { +
- Term: @Model.EmployeeTerm + } + @if (!string.IsNullOrEmpty(Model.EmployeeHomeDepartment)) + { +
- Home Department: @Model.EmployeeHomeDepartment + } + @if (!string.IsNullOrEmpty(Model.EmployeeEffortHomeDepartment)) + { +
- Effort Home Department: @Model.EmployeeEffortHomeDepartment + } + @if (!string.IsNullOrEmpty(Model.EmployeeTeachingHomeDepartment)) + { +
- Teaching Home Department: @Model.EmployeeTeachingHomeDepartment + } + @if (!string.IsNullOrEmpty(Model.EmployeeTeachingPercentFulltime)) + { +
- Teaching Percent Full-time: @Model.EmployeeTeachingPercentFulltime + } +
Student Information
+-
+ @if (!string.IsNullOrEmpty(Model.StudentPriorName))
+ {
+
- Prior Name: @Model.StudentPriorName + } + @if (!string.IsNullOrEmpty(Model.StudentBannerId)) + { +
- Banner ID: @Model.StudentBannerId + } +
- Confidential?: @(Model.StudentConfidential ? "Yes" : "No") + @if (!string.IsNullOrEmpty(Model.StudentStatus)) + { +
- Student Status: @Model.StudentStatus + } + @if (!string.IsNullOrEmpty(Model.StudentPrimaryMajor)) + { +
- Primary Major: @Model.StudentPrimaryMajor + } + @if (!string.IsNullOrEmpty(Model.StudentAllMajors)) + { +
- All Majors: @Model.StudentAllMajors + } + @if (!string.IsNullOrEmpty(Model.StudentRegistrationStatus)) + { +
- Registration Status: @Model.StudentRegistrationStatus + } + @if (!string.IsNullOrEmpty(Model.StudentClassLevel)) + { +
- Class Level: @Model.StudentClassLevel + } + @if (!string.IsNullOrEmpty(Model.StudentClassOf)) + { +
- Class Of: @Model.StudentClassOf + } + @if (!string.IsNullOrEmpty(Model.StudentTermDescription)) + { +
- Term: @Model.StudentTermDescription + } + @if (!string.IsNullOrEmpty(Model.StudentDegreeSought)) + { +
- Degree Sought: @Model.StudentDegreeSought + } + @if (!string.IsNullOrEmpty(Model.StudentAdmitTerm)) + { +
- Admit Term: @Model.StudentAdmitTerm + } + @if (!string.IsNullOrEmpty(Model.StudentAdmitClassYear)) + { +
- Admit Class Year: @Model.StudentAdmitClassYear + } +
- Dual Degree?: @(Model.StudentIsDualDegree ? "Yes" : "No") + + @if (Model.CanViewStudentID) + { + @if (!string.IsNullOrEmpty(Model.StudentAcademicStanding)) + { +
- Academic Standing: @Model.StudentAcademicStanding + } + @if (!string.IsNullOrEmpty(Model.StudentCumulativeGPA)) + { +
- GPA: @Model.StudentCumulativeGPA + } + @if (!string.IsNullOrEmpty(Model.StudentClassRank)) + { +
- Class Rank: @Model.StudentClassRank + } + @if (!string.IsNullOrEmpty(Model.StudentBirthDate)) + { +
- Birth Date: @Model.StudentBirthDate + } + @if (!string.IsNullOrEmpty(Model.StudentAge)) + { +
- Age: @Model.StudentAge + } + @if (!string.IsNullOrEmpty(Model.StudentGender)) + { +
- Gender: @Model.StudentGender + } + @if (!string.IsNullOrEmpty(Model.StudentNewEthnicity) || !string.IsNullOrEmpty(Model.StudentEthnicity)) + { +
- Ethnicity: @(Model.StudentNewEthnicity ?? Model.StudentEthnicity) + } +
- CA Resident?: @(Model.StudentIsCAResident ? "Yes" : "No") +
- US Citizen?: @(Model.StudentIsUSCitizen ? "Yes" : "No") +
- Employed?: @(Model.StudentIsEmployed ? "Yes" : "No") + @if (Model.StudentIsEmployed) + { + @if (!string.IsNullOrEmpty(Model.StudentEmployeeId)) + { +
- Student Employee ID: @Model.StudentEmployeeId + } + @if (!string.IsNullOrEmpty(Model.StudentEmployer)) + { +
- Student Employer: @Model.StudentEmployer + } + } + @if (!string.IsNullOrEmpty(Model.StudentPermanentAddress)) + { +
- Permanent Address: @Model.StudentPermanentAddress @(!string.IsNullOrEmpty(Model.StudentPermanentPhone) ? $"(Phone: {Model.StudentPermanentPhone})" : "") + } + @if (!string.IsNullOrEmpty(Model.StudentMailingAddress)) + { +
- Mailing Address: @Model.StudentMailingAddress @(!string.IsNullOrEmpty(Model.StudentMailingPhone) ? $"(Phone: {Model.StudentMailingPhone})" : "") + } + @if (!string.IsNullOrEmpty(Model.StudentBillingAddress)) + { +
- Billing Address: @Model.StudentBillingAddress @(!string.IsNullOrEmpty(Model.StudentBillingPhone) ? $"(Phone: {Model.StudentBillingPhone})" : "") + } + } +
IAM Information
+-
+ @foreach (var iam in Model.IamPeople)
+ {
+ @if (!string.IsNullOrEmpty(iam.IamId))
+ {
+
- IAM ID: @iam.IamId + } + @if (!string.IsNullOrEmpty(iam.PpsId)) + { +
- PPS ID: @iam.PpsId + } + @if (!string.IsNullOrEmpty(iam.OFullName)) + { +
- Full Name: @iam.OFullName + } +
- Employee? @(iam.IsEmployee ? "Yes" : "No") +
- HS Employee? @(iam.IsHSEmployee ? "Yes" : "No") +
- Faculty? @(iam.IsFaculty ? "Yes" : "No") +
- Student? @(iam.IsStudent ? "Yes" : "No") +
- Staff? @(iam.IsStaff ? "Yes" : "No") +
- External? @(iam.IsExternal ? "Yes" : "No") + } +
-
+ @foreach (var associations in Model.IamAssociations)
+ {
+ @if (!string.IsNullOrEmpty(associations.TitleDisplayName))
+ {
+
- Title: @associations.TitleDisplayName @(!string.IsNullOrEmpty(associations.TitleCode) ? $"({associations.TitleCode})" : "") + } + @if (!string.IsNullOrEmpty(associations.DeptDisplayName)) + { +
- Department: @associations.DeptDisplayName @(!string.IsNullOrEmpty(associations.DeptCode) ? $"({associations.DeptCode})" : "") + } + @if (!string.IsNullOrEmpty(associations.AdminDeptDisplayName)) + { + var parts = new List
- Admin Department: @associations.AdminDeptDisplayName@extra + } + @if (!string.IsNullOrEmpty(associations.ApptDeptDisplayName)) + { + var parts = new List
- Appointment Department: @associations.ApptDeptDisplayName@extra + } + @if (!string.IsNullOrEmpty(associations.PositionType)) + { +
- Position Type: @associations.PositionType + } + @if (!string.IsNullOrEmpty(associations.EmplClassDesc)) + { +
- Employee Class: @associations.EmplClassDesc + } + @if (!string.IsNullOrEmpty(associations.PercentFullTime)) + { +
- Percent Full-time: @ShowPercent(associations.PercentFullTime) + } + @if (associations.AssocStartDate.HasValue) + { +
- Association: @associations.AssocStartDate.Value.ToString("M/d/yyyy") – @(associations.AssocEndDate?.ToString("M/d/yyyy") ?? "present") + } + } +
System Roles
+| @system | + } +
|---|
| + @if (i < systemRoles.Count) + { + @systemRoles[i].DisplayName + } + else + { + @Html.Raw(" ") + } + | + } +
UC Path
+-
+
- Roles: @(Model.UCPathFlags.Any() ? string.Join(", ", Model.UCPathFlags) : "none") +
-
+
- Position: @Model.UCPathJobCode @Model.UCPathJobDescription — @Model.UCPathDepartmentId @Model.UCPathDepartmentDescription +
- Status: @Model.UCPathJobStatus (@Model.UCPathEmployeeStatus: @Model.UCPathJobStatusDescription) +
- Effective: @Model.UCPathPositionEffectiveDate?.ToString("M/d/yyyy") – @(Model.UCPathExpectedEndDate?.ToString("M/d/yyyy") ?? "present") +
- FTE: @(Model.UCPathFTE.HasValue ? $"{Model.UCPathFTE.Value * 100:F0}%" : "") +
- Union: @Model.UCPathUnion +
- Reports to: @Model.UCPathReportsToName@(!string.IsNullOrEmpty(Model.UCPathReportsToName) && !string.IsNullOrEmpty(Model.UCPathReportsToPosition) ? ", " : "")@Model.UCPathReportsToPosition +
UCPath History
+| Job Description | +Action Description | +Effective Date | +Reports To | +
|---|---|---|---|
| @history.JobCode @history.JobCodeDescription — @history.DepartmentId @history.DepartmentDescription | +@history.ActionDescription | +@history.PositionEffectiveDate?.ToString("M/d/yyyy") | +@history.ReportsTo@(!string.IsNullOrEmpty(history.ReportsTo) && !string.IsNullOrEmpty(history.ReportsToPosition) ? ", " : "")@history.ReportsToPosition | +
ID Cards
+ @if (!Model.IDCards.Any()) + { +No records.
+ } + else + { +| Card Number | +Card Info | +Status | +Applied | +Issued | +Deactivated | +|
|---|---|---|---|---|---|---|
| @card.Number | +@card.DisplayName @card.LastName / @card.Line2 | +@card.StatusDescription | +@card.Applied?.ToString("M/d/yyyy") | +@card.Issued?.ToString("M/d/yyyy") | +@card.DeactivatedReason | +@card.Deactivated?.ToString("M/d/yyyy") | +
Keys Assigned
+ @if (!Model.Keys.Any()) + { +No records.
+ } + else + { +| Access Description | +Key Number | +Cut Number | +Issued | +
|---|---|---|---|
| @key.AccessDescription | +@key.KeyNumber | +@key.CutNumber | +Issued @key.IssuedDate?.ToString("M/d/yyyy") by @key.IssuedBy | +
Loaner Equipment
+ @if (!Model.Loans.Any()) + { +No records.
+ } + else + { +| Asset | +Loan Date | +Due Date | +Comments | +
|---|---|---|---|
| @loan.AssetName | +@loan.LoanDate?.ToString("M/d/yyyy") | +@loan.DueDate?.ToString("M/d/yyyy") | +@loan.Comments | +
Instinct
+ @if (string.IsNullOrEmpty(Model.InstinctId)) + { +No current account.
+ } + else + { +-
+
- Instinct ID: @Model.InstinctId +
- Instinct Username: @Model.InstinctUsername +
- Roles: @string.Join(", ", Model.InstinctRoles) +
- Status: @Model.InstinctStatus +
- Password expires: @(Model.InstinctPasswordExpiresAt?.ToString("M/d/yyyy") ?? "Does not expire") +
- Active account?: @(Model.InstinctIsActive ? "Yes" : "No") +
Active Directory Group Membership
+ @if (string.IsNullOrEmpty(Model.ADDisplayName)) + { +No records.
+ } + else + { +-
+
- Display Name: @Model.ADDisplayName +
- Mail: @Model.ADMail +
- SAM Account Name: @Model.ADSamAccountName +
- User Principal Name: @Model.ADUserPrincipalName +
- Distinguished Name: @Model.ADDistinguishedName +
Member of:
+-
+ @{
+ var isProd = HttpHelper.Environment?.IsProduction() ?? false;
+ var domains = isProd
+ ? new[] { "ad3.ucdavis.edu", "ou.ad3.ucdavis.edu", "ucsvm.ucdavis.edu", "ad.vmth.ucdavis.edu", "vetmed.ucdavis.edu", "svm.ucdavis.edu" }
+ : new[] { "t3.ucdavis.edu" };
+ }
+ @foreach (var domain in domains)
+ {
+ var domainGroups = Model.ADMemberOf.Where(g => g.Contains(domain, StringComparison.OrdinalIgnoreCase)).ToList();
+ if (domainGroups.Any())
+ {
+
-
+ ++
@domain
+-
+ @foreach (var group in domainGroups)
+ {
+
- @group + } +
+ }
+ }
+