|
楼主 |
发表于 2022-11-4 00:40
|
显示全部楼层
Private Sub UserForm_Initialize()
Dim w
Me.MultiPage_多页框架.Value = 0
Me.MultiPage_多页框架.Style = fmTabStyleNone
Me.DTPicker_出库日期.Value = VBA.Date
Me.TextBox_出库单号.MaxLength = 3
Me.TextBox_出库单号.Text = VBA.Format(1, "000")
ODONumberUpdate '更新出库单号
Me.TextBox_出库单号.SetFocus
PriceListTree '生成价格表
w = Me.ListView_出库清单.Width
Me.ListView_出库清单.ColumnHeaders.Add 1, "C1", "销售日期", w / 8 - 1
Me.ListView_出库清单.ColumnHeaders.Add 2, "C2", "出库单号", w / 8 - 1, lvwColumnCenter
Me.ListView_出库清单.ColumnHeaders.Add 3, "C3", "商品代码", w / 8 - 1, lvwColumnCenter
Me.ListView_出库清单.ColumnHeaders.Add 4, "C4", "商品名称", w / 8 - 1, lvwColumnCenter
Me.ListView_出库清单.ColumnHeaders.Add 5, "C5", "型号", w / 8 - 1, lvwColumnCenter
Me.ListView_出库清单.ColumnHeaders.Add 6, "C6", "销售数量", w / 8 - 1, lvwColumnCenter
Me.ListView_出库清单.ColumnHeaders.Add 7, "C7", "销售单价", w / 8 - 1, lvwColumnCenter
Me.ListView_出库清单.ColumnHeaders.Add 8, "C8", "销售金额", w / 8 - 1, lvwColumnCenter
Me.ListView_出库清单.FullRowSelect = True
Me.ListView_出库清单.Gridlines = True
Me.ListView_出库清单.View = lvwReport
End Sub |
|