hour
とminute
は、Pay Amount
とPay rate
に基づいてhour
に基づいて計算することは困難です。勤務時間を計算する
例:以下working duration = (wages/pay per hour)
が私のコードです。助けてください。
strActDuration = CStr(Math.Round((dblActual/dblPayAmount), 1))
Dim parts As String() = strActDuration.Split("."c)
Dim strhour As Integer = 0
Dim strminutes As Integer = 0
If parts.Length = 1 Then
strhour = Integer.Parse(parts(0))
strminutes = 0
ElseIf parts.Length = 2 Then
strhour = Integer.Parse(parts(0))
strminutes = Integer.Parse(parts(1))
'strroundminutes = CInt(Math.Round(strminutes, 3))
'strroundminutes = CInt(Math.Truncate(strminutes/10))
End If
strCombineDuration = strhour & "Hr " & strminutes & "Min"
あなたは 'sql'と' sql-server'タグを付けましたが、質問にはSQL情報がありません。 – LarsTech