9.6 KiB
Weldlog Employer View Guide
Overview
The Weldlog Employer View is a specialized read-only interface designed to display filtered weld log data specifically for employer/client review. This view shows only the data that employers should see, excluding repair records and non-acceptable NDT results.
Purpose
The Employer View serves to:
- Display only acceptable weld log records to employers
- Hide repair-related information
- Filter out non-acceptable NDT test results
- Provide a clean, professional view of welding progress
- Show release information from release logs
Access
To access the Employer View:
- Login to the system
- Navigate to Admin → Types
- Select Weldlog - Employer View
URL: /admin/types/weldlog-employer-view
Key Features
1. Filtered Data Display
The Employer View automatically filters data to show only:
- ✅ Records with Accept / Годен NDT results
- ✅ Records with empty/null NDT results
- ✅ Records NOT in repair status
- ❌ Records with repair status = 'Repair' (hidden)
- ❌ Records with non-acceptable NDT results (hidden)
2. Calculated Field: Joint Type RU
The view includes a calculated field "Joint Type RU" that displays the joint type from the WPS (Welding Procedure Specification) table based on the wps_no field.
How it works:
- The system looks up
weld_logs.wps_noin thew_p_stable - Retrieves the corresponding
joint_type_ruvalue - Displays it in the "Joint Type Connection" group header
Filtering:
- You can filter by Joint Type RU using the header filter
- The filter automatically converts to
wps_nofiltering on the backend - Only joint types that actually exist in the data are shown in the filter dropdown
3. Infinite Scrolling
Unlike the standard weldlog view, the Employer View uses infinite scrolling instead of pagination:
- Scroll down to load more records automatically
- No page numbers or page size selection
- Smooth, continuous data loading
4. Read-Only Mode
The Employer View is read-only:
- No editing capabilities
- No data modification
- View-only access for employers
Data Structure
Group Headers
The Employer View organizes data into the following group headers:
-
Attachment
- PDF Engineering
- PDF Spool ISO
- PDF As Build
-
Information About the PIPE
- General Contractor, Contractor, Project
- Piping Type, Design Area
- Line Specification, Line Number
- Fluid Code, Service Category, Fluid Group
- Piping Class
- Design/Operating Temperature and Pressure
- Painting Cycle, External Finish Type
-
ISO Information
- ISO Number, Quantity of ISO
- ISO Revision, Spool Number
-
Information about the welding
- Type of Joint, Joint Number
- Type of Welds
- Fit-up Date, Welding Date
- WPS Number, WPS Approval Date
- Welding Method
- Welding Materials (1, 2, 3) with Lot Numbers and Certificates
- Fitter Name
- Welder 1 & 2 with Certificates and WPQ Reports
-
Joint Type Connection (New)
- Joint Type RU (calculated from WPS table)
- Shows C21, C17, etc. based on WPS joint type
-
Control Information
- Mechanic Supervisor & Control Date
- Welding Supervisor & Control Date
- Fit-up Report Number & Date
- Welding Report Number & Date
-
Information about the welding elements 1 & 2
- Element Code, Pose Number, Member Number
- Material Number, Product Standard
- RU Material Group, Certificate Number
- Heat Number
- NPS, Thickness by ASME, Outside Diameter
- Note: Wall Thickness (SCH1/SCH2) is hidden in employer view
-
NDT Test Sections
- VT (Visual Testing)
- RT (Radiographic Testing)
- UT (Ultrasonic Testing)
- PT (Penetrant Testing)
- MT (Magnetic Particle Testing)
- PMI (Positive Material Identification)
- PWHT (Post Weld Heat Treatment)
- HT (Hardness Testing)
- Ferrite Check
-
PIPE Testing
- Test Package Number
- Test Pressure, Type of Test
- Date Test, Test Result
-
Release (All data from release log)
- NDT Release Number & Date
- Spool NDT Check & Check Number
- Register Paint Number & Date
- Paint Release Number & Date
- Spool Paint Check
- Clearance Number & Date
- Spool Zone, Spool Status
- Spool Release Date
-
Status
- STE Subcontractor
- Remarks, Remarks 2
- Note: Real Welder 1 & 2 are hidden in employer view
Filtering
Header Filters
You can filter data using header filters on any column:
- Click the filter icon in the column header
- Select values from the dropdown
- Multiple selections are supported
- Filters are combined with AND logic
Joint Type RU Filter
Special filtering for Joint Type RU:
- Click the filter icon on "Joint Type RU" column
- Select one or more joint types (C21, C17, etc.)
- The system automatically converts this to
wps_nofiltering - Only joint types that exist in the data are shown
Technical Details:
- For 1 WPS number: Uses
wps_no = value - For 2-5 WPS numbers: Uses OR conditions
- For more than 5 WPS numbers: Uses IN clause for performance
Hidden Fields in Employer View
The following fields are not displayed in the Employer View (as per requirements):
- Main Material - Hidden
- Main NPS - Hidden
- SCH1 (Wall Thickness 1) - Hidden
- SCH2 (Wall Thickness 2) - Hidden
- Real Welder 1 - Hidden
- Real Welder 2 - Hidden
- RQ Date fields for all NDT methods - Hidden
- RQ No fields for all NDT methods - Hidden
Technical Implementation
Backend Filtering
The system applies the following filters automatically:
// Filter 1: Exclude repair logs
NOT EXISTS (
SELECT 1 FROM repair_logs
WHERE repair_logs.iso_number = weld_logs.iso_number
AND repair_logs.new_joint_no = weld_logs.no_of_the_joint_as_per_as_built_survey
AND repair_logs.repair_status = 'Repair'
)
// Filter 2: Only acceptable NDT results
AND (
(vt_result IN ('Accept / Годен', '') OR vt_result IS NULL)
AND (rt_result IN ('Accept / Годен', '') OR rt_result IS NULL)
AND (ut_result IN ('Accept / Годен', '') OR ut_result IS NULL)
AND (pt_result IN ('Accept / Годен', '') OR pt_result IS NULL)
AND (mt_result IN ('Accept / Годен', '') OR mt_result IS NULL)
AND (pmi_result IN ('Accept / Годен', '') OR pmi_result IS NULL)
AND (ferrite_result IN ('Accept / Годен', '') OR ferrite_result IS NULL)
AND (ht_result IN ('Accept / Годен', '') OR ht_result IS NULL)
)
Calculated Field Implementation
The wps_joint_type_ru field is calculated on the frontend:
calculateCellValue: function(rowData) {
var wpsNo = rowData ? rowData.wps_no : null;
if (wpsNo && wpsJointTypeRuMapping[wpsNo]) {
return wpsJointTypeRuMapping[wpsNo];
}
return null;
}
The mapping is loaded from the backend:
w_p_stable:details(wps_no) →joint_type_ru- Only existing joint types in
weld_logsare shown in filters
Performance Optimizations
-
IN Clause Support: For filters with many values, the system uses SQL IN clause instead of multiple OR conditions to avoid URL length issues (414 errors)
-
Existing Joint Types Query: Only joint types that actually exist in the data are loaded for the filter dropdown
-
Infinite Scrolling: Reduces initial load time by loading data in chunks
Common Tasks
Viewing Weld Logs
- Navigate to Weldlog - Employer View
- Use header filters to narrow down results
- Scroll down to load more records
- Use column sorting if needed
Filtering by Joint Type
- Locate the "Joint Type RU" column in "Joint Type Connection" group
- Click the filter icon
- Select desired joint types (e.g., C21, C17)
- The grid will automatically filter and show matching records
Exporting Data
The Employer View supports standard DevExtreme export features:
- Export to Excel
- Export to PDF
- Column selection before export
Troubleshooting
No Data Showing
Possible causes:
- All records are in repair status
- All records have non-acceptable NDT results
- Filters are too restrictive
Solution:
- Check if filters are applied
- Verify that records exist with acceptable NDT results
- Clear filters and try again
Joint Type RU Filter Not Working
Possible causes:
- No WPS mapping exists for selected joint types
- Filter conversion error
Solution:
- Check if WPS records have
joint_type_ruvalues - Verify that
wps_noin weld_logs matchesdetailsin w_p_s table - Check browser console for errors
Performance Issues
Possible causes:
- Too many records loaded
- Complex filters
Solution:
- Use more specific filters to reduce dataset
- Wait for infinite scroll to load data in chunks
- Check network tab for slow queries
Best Practices
- Use Filters Wisely: Apply filters to narrow down large datasets
- Scroll Efficiently: Let infinite scrolling load data gradually
- Export When Needed: Export filtered data for offline review
- Check Data Regularly: Verify that acceptable records are showing correctly
Related Documentation
- Weldlog Guide - Standard weldlog view documentation
- Weldmap Guide - Weldmap module documentation
- NDT Calculation Guide - NDT testing documentation
- Repair Log Guide - Repair log documentation
Support
For issues or questions regarding the Employer View:
- Check this guide first
- Review related documentation
- Contact system administrator
- Report bugs through the support system
Last Updated: 2025-01-12
Version: 1.0