Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Protected Sub addCrewFormAssignment(Optional sfarFk As Integer = 0)
- 'validate the data
- Dim crewId = crewAssDrop.SelectedValue
- Dim custId = customerInput.SelectedValue
- If (custId = String.Empty) Then
- End If
- If (crewId = "-1") Then
- success.Text = "<span class='errorClass'>Please select a crew member to add it to.</span>"
- success.Show()
- Exit Sub
- End If
- If (assToDrop.SelectedValue = "1") Then
- If Not IsDate(crewDateInput.SelectedDate) Then
- success.Text = "<span class='errorClass'>Please select a start date.</span>"
- success.Show()
- Exit Sub
- End If
- ElseIf (assToDrop.SelectedValue = "4") Then
- If Not IsDate(dotStartInput.SelectedDate) Then
- success.Text = "<span class='errorClass'>Please select a start date.</span>"
- success.Show()
- Exit Sub
- End If
- End If
Add Comment
Please, Sign In to add comment