CryptoJones icon

-1??

CryptoJones | PRO | 01/12/16 11:55:36 PM UTC | 0 ⭐ | 825 👁️ | Never ⏰ | []
VB.NET |

890 B

|

None

|

0 👍

/

0 👎

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

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎