Skip to content

Commit

Permalink
Merge pull request #164 from Zolon-DOL/master
Browse files Browse the repository at this point in the history
Sprint changes 2023
  • Loading branch information
pbhatt17 authored Jun 24, 2023
2 parents abc2110 + db7b6bb commit db34780
Show file tree
Hide file tree
Showing 7 changed files with 505 additions and 360 deletions.
18 changes: 9 additions & 9 deletions Child Labor/EnforceTableViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ class EnforceTableViewController: UITableViewController {
setEnforcement(self.laborInspectorsLabel, text: enforcements["Labor_Inspectors"].element?.text)

setEnforcement(self.laborAccessPenaltiesLabel, text: enforcements["Authorized_Access_Penalties"].element?.text)
setEnforcement(self.laborInspectionsLabel, text: enforcements["Labor_Inspections"].element?.text)
setEnforcement(self.laborWorksiteInspectionsLabel, text: enforcements["Labor_Worksite_Inspections"].element?.text)
//setEnforcement(self.laborInspectionsLabel, text: enforcements["Labor_Inspections"].element?.text)
setEnforcement(self.laborWorksiteInspectionsLabel, text: enforcements["Labor_Inspections"].element?.text)

setEnforcement(self.laborViolationsLabel, text: enforcements["Labor_Violations"].element?.text)
setEnforcement(self.laborPenaltiesImposedLabel, text: enforcements["Labor_Penalties_Imposed"].element?.text)
Expand All @@ -96,22 +96,22 @@ class EnforceTableViewController: UITableViewController {
setEnforcement(self.laborUnannouncedConductedLabel, text: enforcements["Labor_Unannounced_Inspections_Conducted"].element?.text)
setEnforcement(self.laborEmployeeTrainingLabel, text: enforcements["Labor_New_Employee_Training"].element?.text)
setEnforcement(self.laborLawTrainingLabel, text: enforcements["Labor_New_Law_Training"].element?.text)
setEnforcement(self.laborRefresherCoursesLabel, text: enforcements["Labor_Refresher_Courses"].element?.text)
// setEnforcement(self.laborRefresherCoursesLabel, text: enforcements["Labor_Refresher_Courses"].element?.text)
setEnforcement(self.laborComplaintMechanismLabel, text: enforcements["Labor_Complaint_Mechanism"].element?.text)
setEnforcement(self.laborReferralMechanismLabel, text: enforcements["Labor_Referral_Mechanism"].element?.text)
setEnforcement(self.laborInspectorsMeetILORec, text: enforcements["Labor_Inspectors_Intl_Standards"].element?.text)

tempState = 1
setEnforcement(self.criminalInvestigationsLabel, text: enforcements["Criminal_Investigations"].element?.text)
setEnforcement(self.criminalViolationsLabel, text: enforcements["Criminal_Violations"].element?.text)
//setEnforcement(self.criminalViolationsLabel, text: enforcements["Criminal_Violations"].element?.text)
setEnforcement(self.criminalProsecutionsLabel, text: enforcements["Criminal_Prosecutions"].element?.text)
setEnforcement(self.criminalConvictionsLabel, text: enforcements["Criminal_Convictions"].element?.text)
setEnforcement(self.imposedPenaltiesForViolationsRelatedToTheWFCLLabel, text: enforcements["Criminal_Penalties_for_WFCL"].element?.text)
setEnforcement(self.criminalReferralMechanismLabel, text: enforcements["Criminal_Referral_Mechanism"].element?.text)

setEnforcement(self.criminalEmployeeTrainingLabel, text: enforcements["Criminal_New_Employee_Training"].element?.text)
setEnforcement(self.criminalNewLawsTrainingLabel, text: enforcements["Criminal_New_Law_Training"].element?.text)
setEnforcement(self.criminalRefresherCoursesLabel, text: enforcements["Criminal_Refresher_Courses"].element?.text)
// setEnforcement(self.criminalNewLawsTrainingLabel, text: enforcements["Criminal_New_Law_Training"].element?.text)
// setEnforcement(self.criminalRefresherCoursesLabel, text: enforcements["Criminal_Refresher_Courses"].element?.text)
}
}

Expand Down Expand Up @@ -173,9 +173,9 @@ class EnforceTableViewController: UITableViewController {
case 0:
return 4
case 1:
return 3
return 1
case 2:
return 2
return 1
case 3:
return 3
case 4:
Expand All @@ -191,7 +191,7 @@ class EnforceTableViewController: UITableViewController {
else {
switch section {
case 7:
return 3
return 2
case 8:
return 6
default:
Expand Down
4 changes: 3 additions & 1 deletion Child Labor/GoodController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ class GoodController: UITableViewController {
// Do any additional setup after loading the view.
self.title = goodName
goodTitle.text = goodName
goodImage.image = UIImage(named:"icons_" + goodName.replacingOccurrences(of: "/", with: "_").replacingOccurrences(of: " ", with: "_"))!
if let image = UIImage(named:"icons_" + goodName.replacingOccurrences(of: "/", with: "_").replacingOccurrences(of: " ", with: "_")) {
goodImage.image = image
}

let urlPathGoods = Bundle.main.path(forResource: "goods_2016", ofType: "xml")
var contentsGoods: NSString?
Expand Down
Loading

0 comments on commit db34780

Please sign in to comment.