-------------------------------------------------------------------
吹膜选产品_TextBox1_KeyDown
Dim tbl As Table =
Tables("吹膜选产品_Table1")
If e.KeyCode =
Keys.Up Then
tbl.Position = tbl.Position - 1
e.Cancel = True
ElseIf e.KeyCode =
Keys.Down Then
tbl.Position = tbl.Position + 1
e.Cancel = True
ElseIf e.KeyCode =
Keys.Enter Then
If tbl.Current IsNot Nothing Then
'
Tables("chuimo").Current("chanpinname") =
tbl.Current("chanpinname")
' Tables("chuimo").Current("guige")
= tbl.Current("guige")
'Tables("chuimo").Current("danwei") =
tbl.Current("danwei")
Tables("chuimo").Current("chanpinid") =
tbl.Current("chanpinid")
Tables("chuimo").Current("addtime")= now()
Tables("chuimo").Current("adduser")=
user.name
'分割规格,分别自动填入 宽度 厚度
Dim guige1 As String = tbl.current("guige")
Dim sps() As Char
= {"*","="}
Dim s1() As
String=guige1.split(sps)
If s1.length >
1 Then
Tables("chuimo").current("kuandu")=s1(0)
Tables("chuimo").current("houdu")=s1(1)
Else
Tables("chuimo").current("kuandu")=""
Tables("chuimo").current("houdu")=""
End If
End If
e.Cancel = True
e.Form.Close()
End If