Dim dtb1 As New DataTableBuilder("生产计划投料")
dtb1.AddDef("选中标记", Gettype(Boolean))
dtb1.AddDef("库区", Gettype(String), 10)
dtb1.AddDef("捆包号", Gettype(String), 50)
dtb1.AddDef("类别", Gettype(String), 30)
dtb1.AddDef("标识", Gettype(String), 10)
dtb1.AddDef("牌号", Gettype(String), 30)
dtb1.AddDef("表面", Gettype(String), 10)
dtb1.AddDef("厚度", Gettype(Double))
dtb1.AddDef("宽度", Gettype(Double))
dtb1.AddDef("长度", Gettype(Double))
dtb1.AddDef("单位", Gettype(String), 10)
dtb1.AddDef("数量", Gettype(Double))
dtb1.AddDef("件数", Gettype(Integer))
dtb1.AddDef("产地", Gettype(String), 8)
dtb1.AddDef("HV状态", Gettype(String), 4)
dtb1.AddDef("HV值", Gettype(Double))
dtb1.AddDef("目前工序", Gettype(String), 30)
dtb1.AddDef("工序纪要", Gettype(String), 255)
dtb1.AddDef("物料记录标记", Gettype(String), 100)
dtb1.Build()
‘Tables("生产计划投料").Visible = False
Dim t1 As Table = e.Form.Controls("Table1").Table
Dim dt1 As DataTable = DataTables("生产计划录入模式窗口_Table1")
t1.DataSource = DataTables("生产计划投料")
t1.Cols("选中标记").Visible = False
t1.DataTable.GlobalHandler.BeforeShowContextMenu = True
Dim dtb2 As New DataTableBuilder("生产计划内容")
dtb2.AddDef("序号", Gettype(Integer))
dtb2.AddDef("计划工序", Gettype(String), 30)
dtb2.AddDef("工序描述", Gettype(String), 30)
dtb2.AddDef("分剪排刀", Gettype(String), 100)
dtb2.AddDef("宽度公差", Gettype(String),30)
dtb2.AddDef("生产备注", Gettype(String), 100)
dtb2.Build()
'Tables("生产计划内容").Visible = False
Dim t2 As Table = e.Form.Controls("Table2").Table
Dim dt2 As DataTable = DataTables("生产计划录入模式窗口_Table2")
t2.DataSource = DataTables("生产计划内容")
t2.DataTable.GlobalHandler.DataRowAdded = True '开启全局事件
t2.DataTable.GlobalHandler.KeyPressEdit = True '开启全局事件
t2.Cols("计划工序").ComboList = _dt基础数据.SqlGetComboListString("内容" ," [类别] = '计划工序'")
t2.Cols("工序描述").ComboList = _dt基础数据.SqlGetComboListString("内容" ," [类别] = '计划工序描述'")
t2.Cols("宽度公差").ComboList = _dt基础数据.SqlGetComboListString("内容" ," [类别] = '计划宽度公差'")
DataTables("生产计划内容").DataCols("生产备注").ExtendType = ExtendTypeEnum.Values
t2.Cols("生产备注").ComboList = _dt基础数据.SqlGetComboListString("内容" ," [类别] = '计划生产备注'")
t2.Cols("序号").Width = 50
t2.Cols("计划工序").Width = 80
t2.Cols("工序描述").Width = 100
t2.Cols("分剪排刀").Width = 200
t2.Cols("宽度公差").Width = 100
t2.Cols("生产备注").Width = 200