毕业论文论文范文课程设计实践报告法律论文英语论文教学论文医学论文农学论文艺术论文行政论文管理论文计算机安全
您现在的位置: 毕业论文 >> 论文 >> 正文

物流运输管理系统 第6页

更新时间:2010-2-12:  来源:毕业论文
物流运输管理系统 第6页
  Next
        txtWeight.Text = sys.TextToNum(rs("Weight"))
        txtBasicCarriage.Text = sys.TextToNum(rs("BasicCarriage"))
        txtLocalCarriage.Text = sys.TextToNum(rs("LocalCarriage"))
        txtServeCharge.Text = sys.TextToNum(rs("ServeCharge"))
        txtLoadCharge.Text = sys.TextToNum(rs("LoadCharge"))
        txtFavourabile.Text = sys.TextToNum(rs("Favourabile"))
        txtShortCarriage.Text = sys.TextToNum(rs("ShortCarriage"))
        txtStorageCharge.Text = sys.TextToNum(rs("StorageCharge"))
        txtClearCharge.Text = sys.TextToNum(rs("ClearCharge"))
        txtTotal.Text = sys.TextToNum(rs("Total"))
        txtWeight.Text = sys.TextToNum(rs("Weight"))
        Call MakeTotal
    Else
        MsgBox "数据错误!"
        Unload Me
    End If
End Sub
Private Sub Form_Unload(Cancel As Integer)
    If frmTraffic.ActiveControl = True Then
        Call frmTraffic.query
    End If
End Sub
'合计
Private Sub MakeTotal()
    txtTotal.Text = sys.TextToNum(txtBasicCarriage.Text) + sys.TextToNum(txtLocalCarriage.Text) + sys.TextToNum(txtServeCharge.Text) - sys.TextToNum(txtFavourabile.Text) + sys.TextToNum(txtLoadCharge.Text) + sys.TextToNum(txtShortCarriage.Text) + sys.TextToNum(txtStorageCharge.Text) + sys.TextToNum(txtClearCharge.Text)
    If sys.TextToNum(txtWeight.Text) <> 0 Then
        txtAvg.Text = FormatNumber(sys.TextToNum(txtTotal.Text / txtWeight.Text), 2)
    Else
        txtAvg.Text = 0
    End If
End Sub
'检查表单数据
Private Function CheckForm() As Boolean
    CheckForm = False
    If txtCarNum.Text = "" Then
        MsgBox "车号不能为空!"
        txtCarNum.SetFocus
    ElseIf cmbProductName.Text = "" Then
        MsgBox "品名不能为空!"
        cmbProductName.SetFocus
    ElseIf cmbSendStation.Text = "" Then
        MsgBox "发站不能为空!"
        cmbSendStation.SetFocus
    ElseIf cmbReceiveStation.Text = "" Then
        MsgBox "到站不能为空!"
        cmbReceiveStation.SetFocus
    ElseIf txtWeight.Text = "" Then
        MsgBox "重量不能为空!"
        txtWeight.SetFocus
    ElseIf txtBasicCarriage.Text = "" Then
        MsgBox "国铁运费不能为空!"
        txtBasicCarriage.SetFocus
    ElseIf txtServeCharge.Text = "" Then
        MsgBox "服务费不能为空!"
        txtServeCharge.SetFocus
    Else
        CheckForm = True
    End If
End Function
Private Sub txtBasicCarriage_Change()
    Call MakeTotal
End Sub
Private Sub txtClearCharge_Change()
    Call MakeTotal
End Sub
Private Sub txtFavourabile_Change()
    Call MakeTotal
End Sub
Private Sub txtLoadCharge_Change()
    Call MakeTotal
End Sub
Private Sub txtLocalCarriage_Change()
    Call MakeTotal
End Sub
Private Sub txtServeCharge_Change()
    Call MakeTotal
End Sub
Private Sub txtShortCarriage_Change()
    Call MakeTotal
End Sub
Private Sub txtStorageCharge_Change()
    Call MakeTotal
End Sub
Private Sub txtWeight_Change()
    Call MakeTotal
End Sub

上一页  [1] [2] [3] [4] [5] [6] [7] [8] [9] 下一页

物流运输管理系统 第6页下载如图片无法显示或论文不完整,请联系qq752018766
设为首页 | 联系站长 | 友情链接 | 网站地图 |

copyright©751com.cn 辣文论文网 严禁转载
如果本毕业论文网损害了您的利益或者侵犯了您的权利,请及时联系,我们一定会及时改正。