Compare commits

...

16 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
jiwonRepair
a724e836d8 fix: handle exception when ShotSearch returns timeout message
Problem:
- Unhandled exception occurs during ShotSearch execution.
- Error message: "Conversion from string 'The operation has timed out.'
  to type 'Double' is not valid."

Reproduction:
- Occurs when the communication port is disconnected during the
  "Information Input" state.

Cause:
- ShotSearch returns a timeout message as a string.
- Comparing this string directly to an integer (e.g., If ShotSearch() = 0)
  causes a runtime type conversion exception.

Fix:
- Updated condition from:
    If ShotSearch() = 0 Then
  to:
    If ShotSearch() = "False" Then
- Prevents runtime error by avoiding invalid comparison between string and integer.
2025-07-24 11:21:32 +09:00
jiwonRepair
d44e15e03b fix: Effect V3 Color list & serial number error message fixed 2025-07-21 16:18:44 +09:00
jiwonRepair
e5e9509217 feat: EFFECT model split cartridge color code V2 & V3 2025-07-17 16:34:47 +09:00
3 changed files with 38 additions and 20 deletions

View File

@ -1,8 +1,9 @@
Imports System.IO Imports System.IO
Imports System.IO.Ports Imports System.IO.Ports
Imports System.Math
Imports System.Text Imports System.Text
Imports System.Threading Imports System.Threading
Imports System.Math Imports Microsoft.VisualBasic.ApplicationServices
Public Class MainForm Public Class MainForm
Private Const TDMaxLength As Int16 = 10 Private Const TDMaxLength As Int16 = 10
@ -230,7 +231,8 @@ Public Class MainForm
Case "ALTO" Case "ALTO"
cboRegType.Items.Add("SET") cboRegType.Items.Add("SET")
Case "EFFECT" Case "EFFECT"
cboRegType.Items.Add("SET") cboRegType.Items.Add("V2")
cboRegType.Items.Add("V3")
Case "MAXIMUM ALPHA" Case "MAXIMUM ALPHA"
cboRegType.Items.Add("SET") cboRegType.Items.Add("SET")
Case Else Case Else
@ -282,10 +284,13 @@ Public Class MainForm
Case "EFFECT" Case "EFFECT"
Select Case cboRegType.SelectedItem Select Case cboRegType.SelectedItem
Case "SET" Case "V2"
cboRegColor.Items.Add("White_Brown") cboRegColor.Items.Add("White_Brown")
cboRegColor.Items.Add("White_Pink") cboRegColor.Items.Add("White_Pink")
cboRegColor.Items.Add("White_Sky") cboRegColor.Items.Add("White_Sky")
Case "V3"
cboRegColor.Items.Add("LineFrends_Brown")
cboRegColor.Items.Add("LineFrends_Sally")
Case Else Case Else
MsgBox("잘못된 경로입니다.", vbCritical) MsgBox("잘못된 경로입니다.", vbCritical)
End Select End Select
@ -395,8 +400,8 @@ Public Class MainForm
TDUseCompare = True TDUseCompare = True
Select Case dgvDataSet.Rows(cboSelect).Cells(2).Value Select Case dgvDataSet.Rows(cboSelect).Cells(2).Value
Case "SET" Case "V2"
TypeCode = "0" TypeCode = "0" 'SET 였을 0 으로 고정
Select Case dgvDataSet.Rows(cboSelect).Cells(5).Value Select Case dgvDataSet.Rows(cboSelect).Cells(5).Value
Case "White_Pink" Case "White_Pink"
@ -408,6 +413,18 @@ Public Class MainForm
Case Else Case Else
Return True Return True
End Select End Select
Case "V3"
TypeCode = "3" 'V3 혼란스럽지 않게 3으로 고정
Select Case dgvDataSet.Rows(cboSelect).Cells(5).Value
Case "LineFrends_Brown"
ColorCode = "4"
Case "LineFrends_Sally"
ColorCode = "5"
Case Else
Return True
End Select
End Select End Select
Case "MAXIMUM ALPHA" Case "MAXIMUM ALPHA"
@ -543,7 +560,7 @@ Public Class MainForm
Private Sub FormSetting() Private Sub FormSetting()
Const ProgramName As String = "Product Program Ver_" Const ProgramName As String = "Product Program Ver_"
Const VersionNum As String = "1.1.3" Const VersionNum As String = "1.1.12"
Me.Text = ProgramName & VersionNum Me.Text = ProgramName & VersionNum
Me.Size = New Size(1920, 1050) Me.Size = New Size(1920, 1050)
@ -796,7 +813,7 @@ FailFunc:
If DBSerialCheck() Then If DBSerialCheck() Then
Return False Return False
Else Else
MsgBox("시리얼 번호를 생성하는 과정에서 오류가 발생하였습니다.", vbCritical) MsgBox("생성 할 시리얼 번호 " & SerialNum & "은 이미 존재 합니다.", vbCritical)
Return True Return True
End If End If
End Function End Function
@ -873,7 +890,7 @@ FailFunc:
DBCmd = "SELECT COUNT(NUMBER) FROM " & ApplyNonTDDB & " WHERE Product_SN = '" & SerialNum & "'" DBCmd = "SELECT COUNT(NUMBER) FROM " & ApplyNonTDDB & " WHERE Product_SN = '" & SerialNum & "'"
End If End If
Dim UseCheck As String = DBQueryScalar(DBCmd) Dim UseCheck As Integer = DBQueryScalar(DBCmd)
If UseCheck = 0 Then If UseCheck = 0 Then
Return True Return True
@ -933,6 +950,7 @@ FailFunc:
Private Sub ProdInputFunc(sender As Object, e As EventArgs, SearchData As String) Private Sub ProdInputFunc(sender As Object, e As EventArgs, SearchData As String)
Dim userID As String = ""
StepReset() StepReset()
ValueReset() ValueReset()
@ -1243,7 +1261,7 @@ FinishFunc:
If ProdRegData(txbPDCP.Text, txbPDCC.Text, txbPDAgency.Text) Then If ProdRegData(txbPDCP.Text, txbPDCC.Text, txbPDAgency.Text) Then
If ShotReg(0) Then If ShotReg(0) 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 DBProdReg(txbPDCP.Text, txbPDCC.Text, txbPDAgency.Text, 0) Then
If TraySuccess() Then If TraySuccess() Then
@ -1266,6 +1284,7 @@ FinishFunc:
End If End If
Else Else
MsgBox("샷 수 정보 확인 실패!", vbCritical) MsgBox("샷 수 정보 확인 실패!", vbCritical)
MsgBox("통신 포트 연결을 확인하세요", vbExclamation, "포트 연결 확인")
GoTo LoadFail GoTo LoadFail
End If End If
Else Else
@ -1447,7 +1466,7 @@ FinishFunc:
Private Function CreateSerialCompare(SerialNum As String) As Boolean Private Function CreateSerialCompare(SerialNum As String) As Boolean
DBCmd = "SELECT COUNT(NUMBER) FROM " & ApplyCartDB & " WHERE Product_SN = '" & SerialNum & "'" 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 If CompareData > 0 Then
Return False Return False
End If End If
@ -3138,7 +3157,7 @@ FailLoad:
Private Function BeforeTrayData(NowYear As Int16, NowMonth As Int16) As Boolean 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 & "'" 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 If BeforeData > 0 Then
Return True ''있을 경우 Return True ''있을 경우
Else Else

View File

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

View File

@ -1,7 +1,6 @@
1. 맥시멈 알파 제품군, 색상 추가 1. program ver 1.1.12
2. 모델 이름(MAXIMUM ALPHA)에 따른 변수 길이 수정 2. DBQueryScalar(DBCmd) 의 값이 count인 경우 integer로 받도록 수정
- DB : jomtTesterDB > jomtCartidgeTbl ] - "False" 를 0으로 변경
- Ct_Model VARCHAR 10 >> 13 - Dim CtMaxResult As String = DBQueryScalar(DBCmd)
- P0_Model VARCHAR 10 >> 13 - If CtMaxResult = "False" Then
- P1_Model VARCHAR 10 >> 13 3. prodinputFunc()의 info1, info2 userID 점검 코드 삭제
- P2_Model VARCHAR 5 >> 13