구매시 신규 sid 가능하게 함
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using FCOMMON;
|
||||
using FEQ0000.Purchase;
|
||||
using NetOffice.OutlookApi;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
@@ -268,7 +269,7 @@ namespace FEQ0000
|
||||
this.tbProjectIndex.Enabled = false;
|
||||
}
|
||||
this.Show();
|
||||
Application.DoEvents();
|
||||
System.Windows.Forms.Application.DoEvents();
|
||||
tbPumName.Focus();
|
||||
|
||||
////이미지를 불러온다.
|
||||
@@ -456,20 +457,29 @@ namespace FEQ0000
|
||||
return false;
|
||||
}
|
||||
|
||||
if (string.IsNullOrWhiteSpace(this.sidchk))
|
||||
if(tbSID.Text.Equals("신규") || tbSID.Text.isEmpty())
|
||||
{
|
||||
FCOMMON.Util.MsgE("SID검사가 필요합니다.\n상단의 검사 버튼을 눌러 SPR/NR 재고 여부를 확인 하세요");
|
||||
btSIDChk.Focus();
|
||||
return false;
|
||||
//FCOMMON.Util.MsgI($"신규 SID로 인해 SID 검사를 진행하지 않습니다");
|
||||
}
|
||||
else
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(this.sidchk))
|
||||
{
|
||||
FCOMMON.Util.MsgE("SID검사가 필요합니다.\n상단의 검사 버튼을 눌러 SPR/NR 재고 여부를 확인 하세요");
|
||||
btSIDChk.Focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
//시드검사한 자료와 현재 입력된 시드가 다르면 검사를 다시 하게 한다
|
||||
if (this.tbSID.Text.Trim().Equals(this.sidchk) == false)
|
||||
{
|
||||
Util.MsgE("SID검사 자료가 변경되었습니다. 다시 검사 하세요");
|
||||
sidchk = string.Empty;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
//시드검사한 자료와 현재 입력된 시드가 다르면 검사를 다시 하게 한다
|
||||
if (this.tbSID.Text.Trim().Equals(this.sidchk) == false)
|
||||
{
|
||||
Util.MsgE("SID검사 자료가 변경되었습니다. 다시 검사 하세요");
|
||||
sidchk = string.Empty;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
//if (cbProcess.Text.Trim() == "")
|
||||
//{
|
||||
@@ -947,10 +957,17 @@ namespace FEQ0000
|
||||
{
|
||||
if (tbSID.TextLength != 9)
|
||||
{
|
||||
if (btSIDChk.BackColor == Color.Gray)
|
||||
btSIDChk.BackColor = Color.Tomato;
|
||||
else
|
||||
if (tbSID.Text.Equals("신규") || tbSID.Text.isEmpty())
|
||||
{
|
||||
btSIDChk.BackColor = Color.Gray;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (btSIDChk.BackColor == Color.Gray)
|
||||
btSIDChk.BackColor = Color.Tomato;
|
||||
else
|
||||
btSIDChk.BackColor = Color.Gray;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -968,6 +985,13 @@ namespace FEQ0000
|
||||
private void btSIDChk_Click(object sender, EventArgs e)
|
||||
{
|
||||
var sid = tbSID.Text.Trim();
|
||||
|
||||
if(sid.Equals("신규") || sid.isEmpty())
|
||||
{
|
||||
Util.MsgI($"신규SID는 검사를 진행하지 않습니다");
|
||||
return;
|
||||
}
|
||||
|
||||
if (sid.Length != 9)
|
||||
{
|
||||
FCOMMON.Util.MsgE("검색 할 SID를 입력하세요");
|
||||
|
||||
Reference in New Issue
Block a user