当前位置:跳过导航链接计算机毕业设计首页 : VB计算机毕业设计 : 详细内容

VB销售管理系统(9)

来源:xiaoniu168.com 作者:本站原创 添加时间:2012-02-07 点击数:20480

计算机毕业设计采购登记明细介绍:

(2)frmCgdjMx(采购登记明细)
此模块可以查看已经登记过的采购明细,包括采购代码、采购商、采购日期,商品名称、商品类别、商品规格、计量单位、单价、数量、金额;总数量、总金额、录入人和备注。并可以将此单据作废。

以下是引用片段:

Private Sub Form_Resize()
'动态改变当前窗体的布局和控件内容
Call FormFace(Me, TopPicture, KKShape)
Call TopCaption(Me.TopPicture, Label2.Caption)
Me.ddd.Move 0, Me.ddd.Top, Me.Width, Me.Height - Me.ddd.Top
End Sub

Private Sub TopPicture_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
'准备窗体移动标志
intOldX = X
intOldy = Y
boolMouseFlag = True
End Sub

Private Sub TopPicture_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
'存储窗提议动前的left,top
Dim intLeft, intTop As Integer
intLeft = Me.Left
intTop = Me.Top
If Me.WindowState = 2 Then Exit Sub
If boolMouseFlag = True Then
    Me.Left = intLeft + (X - intOldX)
    Me.Top = intTop + (Y - intOldy)
End If
End Sub

Private Sub TopPicture_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
'还原当前的窗体移动标志
boolMouseFlag = False
End Sub

Public Sub UpdateList()
'显示列表的样式和表头
'通过检索数据库找出符合当前条件的记录显示在列表中
'1
Dim arrName()
    arrName = Array("采购代码", "采购日期", "供应商名称", "总数量", "总金额", "记录人", "备注")
Dim arrColwidth()
    arrColwidth = Array(0, 3000, 3000, 2500, 2000, 2000, 3000)
ddd.Cols = 7
ddd.Rows = 2
Dim i As Long
For i = 0 To ddd.Cols - 1
    ddd.ColWidth(i) = arrColwidth(i)
    ddd.TextMatrix(0, i) = arrName(i)
    ddd.TextMatrix(1, i) = ""
Next
ddd.Rows = 27
'2
Call UpdateDDD(ddd, ExecSql("select  cgid, cgrq, khmc, zsl, zje,jlr, bz from cgdj  order by  cgrq desc "))
End Sub

Private Sub UserControl11_Click()
Call UpdateList
End Sub

Private Sub UserControl13_Click()
'关闭窗体
Unload Me
End Sub

〖资料来源:计算机毕业论文 www.xiaoniu168.com

第10页为计算机毕业论文查询功能介绍......

【联系方式】

【本站信誉】

用心做计算机毕业设计论文网
计算机毕业设计客服
计算机毕业论文客服在线 计算机毕业论文客服在线
计算机毕业论文在线,计算机毕业设计在线