This commit is contained in:
ykh
2023-10-27 23:05:50 +09:00
parent 0b976ad2ab
commit ec0e3013c6
50 changed files with 4751 additions and 1383 deletions

View File

@@ -278,7 +278,19 @@
Private Sub AddNewDataRow_bunbae(ByVal sender As Object, ByVal e As System.Data.DataTableNewRowEventArgs)
e.Row.Item("code") = GetMaxCode(DSET1.tbl_nbunbae)
e.Row.Item("설명") = "신규데이터"
e.Row.Item("sortkey") = GetNewSortKey()
End Sub
Private Function GetNewSortKey() As String
AddDebug("GetNewSortKey")
Dim drows() As DS.tbl_nbunbaeRow = DSET1.tbl_nbunbae.Select("code <> '0'", "sortkey desc")
If drows.Length < 1 Then Return 1
Dim Dr As DS.tbl_nbunbaeRow = 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