Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
59aa189abd | ||
![]() |
46ce8de7e8 | ||
![]() |
1b81964399 | ||
![]() |
04c4af177f | ||
![]() |
fbbd9bbe34 | ||
![]() |
2e69b395cd | ||
![]() |
dd427a8d4e | ||
![]() |
3fe99e62ef | ||
![]() |
5bd867e735 | ||
![]() |
9d5901c3ac |
@ -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
|
||||||
@ -559,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.6"
|
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)
|
||||||
@ -889,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
|
||||||
@ -949,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()
|
||||||
@ -1259,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() = "False" 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
|
||||||
|
|
||||||
@ -1464,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
|
||||||
@ -3155,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
|
||||||
|
@ -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
|
||||||
|
@ -1,2 +1,6 @@
|
|||||||
1. 샷정보 확인 중 통신 연결 문제 발생 시 메세지 박스 중복 출현 가능 하도록 수정
|
1. program ver 1.1.12
|
||||||
2. program version 1.1.7
|
2. DBQueryScalar(DBCmd) 의 값이 count인 경우 integer로 받도록 수정
|
||||||
|
- "False" 를 0으로 변경
|
||||||
|
- Dim CtMaxResult As String = DBQueryScalar(DBCmd)
|
||||||
|
- If CtMaxResult = "False" Then
|
||||||
|
3. prodinputFunc()의 info1, info2 userID 점검 코드 삭제
|
||||||
|
Loading…
x
Reference in New Issue
Block a user