Compare commits

...

13 Commits

Author SHA1 Message Date
jiwonRepair
59aa189abd fix : CtMaxResult As String, If CtMaxResult = False 2025-08-05 10:20:18 +09:00
jiwonRepair
46ce8de7e8 fix : DBQueryScalar(DBCmd) modify 0 to False 2025-08-05 10:07:36 +09:00
jiwonRepair
1b81964399 fix : DBQueryScalar(DBCmd) Change return variable to Integer for COUNT result 2025-08-05 09:58:27 +09:00
jiwonRepair
04c4af177f docs: update report fix 2025-07-31 17:45:41 +09:00
jiwonRepair
fbbd9bbe34 fix : BeforeTrayData fucntion fix ( BeforeData > 0 ) 2025-07-31 17:44:21 +09:00
jiwonRepair
2e69b395cd fix: program ver 1.1.10 2025-07-31 17:07:41 +09:00
jiwonRepair
dd427a8d4e feat: Block serial number registration for non-info1/info2 accounts 2025-07-31 17:04:37 +09:00
jiwonRepair
3fe99e62ef Refactor : Changed ShotSearch() condition from False to 0 2025-07-31 15:38:41 +09:00
jiwonRepair
5bd867e735 feat: program version 1.1.8 2025-07-31 10:08:34 +09:00
jiwonRepair
9d5901c3ac fix: string to number comparison 2025-07-25 11:10:07 +09:00
jiwonRepair
29e6e56846 fix: Ensure both MsgBox messages are shown sequentially 2025-07-24 16:44:13 +09:00
jiwonRepair
de87e8c42d chore: edit release note 2025-07-24 11:35:47 +09:00
jiwonRepair
c8128ee586 chore: remove unused comment 2025-07-24 11:30:04 +09:00
3 changed files with 17 additions and 20 deletions

View File

@ -1,8 +1,9 @@
Imports System.IO
Imports System.IO.Ports
Imports System.Math
Imports System.Text
Imports System.Threading
Imports System.Math
Imports Microsoft.VisualBasic.ApplicationServices
Public Class MainForm
Private Const TDMaxLength As Int16 = 10
@ -559,7 +560,7 @@ Public Class MainForm
Private Sub FormSetting()
Const ProgramName As String = "Product Program Ver_"
Const VersionNum As String = "1.1.6"
Const VersionNum As String = "1.1.12"
Me.Text = ProgramName & VersionNum
Me.Size = New Size(1920, 1050)
@ -889,7 +890,7 @@ FailFunc:
DBCmd = "SELECT COUNT(NUMBER) FROM " & ApplyNonTDDB & " WHERE Product_SN = '" & SerialNum & "'"
End If
Dim UseCheck As String = DBQueryScalar(DBCmd)
Dim UseCheck As Integer = DBQueryScalar(DBCmd)
If UseCheck = 0 Then
Return True
@ -949,6 +950,7 @@ FailFunc:
Private Sub ProdInputFunc(sender As Object, e As EventArgs, SearchData As String)
Dim userID As String = ""
StepReset()
ValueReset()
@ -1259,7 +1261,7 @@ FinishFunc:
If ProdRegData(txbPDCP.Text, txbPDCC.Text, txbPDAgency.Text) Then
If ShotReg(0) Then
If ShotSearch() = "False" Then 'If ShotSearch() = 0 Then
If ShotSearch() = "0" Then 'If ShotSearch() = "False" Then 'hjw test
If DBProdReg(txbPDCP.Text, txbPDCC.Text, txbPDAgency.Text, 0) Then
If TraySuccess() Then
@ -1281,8 +1283,8 @@ FinishFunc:
GoTo LoadFail
End If
Else
MsgBox("샷 수 정보 확인 실패 !", vbCritical)
MsgBox("통신 포트 연결을 확인하세요", vbCritical)
MsgBox("샷 수 정보 확인 실패!", vbCritical)
MsgBox("통신 포트 연결을 확인하세요", vbExclamation, "포트 연결 확인")
GoTo LoadFail
End If
Else
@ -1464,7 +1466,7 @@ FinishFunc:
Private Function CreateSerialCompare(SerialNum As String) As Boolean
DBCmd = "SELECT COUNT(NUMBER) FROM " & ApplyCartDB & " WHERE Product_SN = '" & SerialNum & "'"
Dim CompareData As String = DBQueryScalar(DBCmd)
Dim CompareData As Integer = DBQueryScalar(DBCmd)
If CompareData > 0 Then
Return False
End If
@ -3155,7 +3157,7 @@ FailLoad:
Private Function BeforeTrayData(NowYear As Int16, NowMonth As Int16) As Boolean
DBCmd = "SELECT COUNT(UserID) FROM " & InfoRegStateDB & " WHERE UserID= '" & IDName & "' AND ModelNum = '" & ModelCode & "' AND TypeNum = '" & TypeCode & "' AND ColorNum = '" & ColorCode & "' AND UsageNum = '" & ClassCode & "' AND CreateYear = '" & NowYear & "' AND CreateMonth = '" & NowMonth & "'"
Dim BeforeData As String = DBQueryScalar(DBCmd)
Dim BeforeData As Integer = DBQueryScalar(DBCmd)
If BeforeData > 0 Then
Return True ''있을 경우
Else

View File

@ -65,7 +65,7 @@ Module mySQLModule
Return True
Catch ex As Exception
MsgBox("MySQL Command Error:" + vbCrLf + Err.Description)
MsgBox("MySQL Command Error:" + vbCrLf + Err.Description + "debug : " + cmdStr)
DBClose()
Return False
End Try

View File

@ -1,11 +1,6 @@
1. "작업 시간을 초과화였습니다." 에러 수정
1) 재현경로:
- "정보 입력중" 상태에서 통신 포트 연결이 끊어질 경우
2) 에러 발생 사유:
- 문자열을 경우 정수 값과 비교 하면 처리 되지 않은 예외 발생
3) 수정 내용:
- If ShotSearch() = 0 Then -> If ShotSearch() = "False"
2. program version 1.1.6
1. program ver 1.1.12
2. DBQueryScalar(DBCmd) 의 값이 count인 경우 integer로 받도록 수정
- "False" 를 0으로 변경
- Dim CtMaxResult As String = DBQueryScalar(DBCmd)
- If CtMaxResult = "False" Then
3. prodinputFunc()의 info1, info2 userID 점검 코드 삭제