..
This commit is contained in:
@@ -351,7 +351,19 @@
|
||||
' MsgBox("new")
|
||||
e.Row.Item("code") = GetMaxCode(DSET1.tbl_new)
|
||||
e.Row.Item("설명") = "신규데이터"
|
||||
e.Row.Item("sortkey") = GetNewSortKey()
|
||||
End Sub
|
||||
|
||||
Private Function GetNewSortKey() As String
|
||||
AddDebug("GetNewSortKey")
|
||||
|
||||
Dim drows() As DS.tbl_newRow = DSET1.tbl_new.Select("code <> '0'", "sortkey desc")
|
||||
If drows.Length < 1 Then Return 1
|
||||
Dim Dr As DS.tbl_newRow = drows(0)
|
||||
Dim maxsortkey As Integer = Dr.sortkey
|
||||
Return maxsortkey + 1
|
||||
|
||||
End Function
|
||||
#End Region
|
||||
|
||||
Private Sub 태양열종류ComboBox_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles cmb_태양열시스템종류.KeyDown
|
||||
|
||||
Reference in New Issue
Block a user