구매시 신규 sid 가능하게 함

This commit is contained in:
chi
2023-07-14 11:38:09 +09:00
parent fd7e51b882
commit 503fa8312b
5 changed files with 82 additions and 35 deletions

View File

@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호가 자동으로 // 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호가 자동으로
// 지정되도록 할 수 있습니다. // 지정되도록 할 수 있습니다.
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("23.07.13.1350")] [assembly: AssemblyVersion("23.07.14.1130")]
[assembly: AssemblyFileVersion("23.07.13.1350")] [assembly: AssemblyFileVersion("23.07.14.1130")]

View File

@@ -342,6 +342,7 @@ namespace FEQ0000
{ {
this.Validate(); this.Validate();
this.bs.EndEdit(); this.bs.EndEdit();
try try
{ {
var cnt = this.tam.UpdateAll(this.dsPurchase); var cnt = this.tam.UpdateAll(this.dsPurchase);
@@ -1304,7 +1305,7 @@ namespace FEQ0000
{ {
//state 가 ---인 데이터를 기준으로 함 //state 가 ---인 데이터를 기준으로 함
//chk2 ==false 인 자료를 기준으로 함 //chk2 ==false 인 자료를 기준으로 함
var newlist = this.dsPurchase.Purchase.Where(t => t.Ischk2Null() && t.state.Equals("---")).ToList(); var newlist = this.dsPurchase.Purchase.Where(t => (t.Ischk2Null() || t.chk2==false) && t.state.Equals("---")).ToList();
var f = new fSIDCheckNR(newlist); var f = new fSIDCheckNR(newlist);
if (f.ShowDialog() == DialogResult.OK) if (f.ShowDialog() == DialogResult.OK)
{ {

View File

@@ -446,21 +446,28 @@ namespace FEQ0000
tbSID.Text = sidTrim(tbSID.Text); tbSID.Text = sidTrim(tbSID.Text);
if (tbSID.Text.Equals("신규") || tbSID.Text.isEmpty())
if(string.IsNullOrWhiteSpace(this.sidchk))
{ {
FCOMMON.Util.MsgE("SID검사가 필요합니다.\n상단의 검사 버튼을 눌러 SPR/NR 재고 여부를 확인 하세요"); //FCOMMON.Util.MsgI($"신규 SID로 인해 SID 검사를 진행하지 않습니다");
btSIDChk.Focus();
return false;
} }
else
//시드검사한 자료와 현재 입력된 시드가 다르면 검사를 다시 하게 한다
if (this.tbSID.Text.Trim().Equals(this.sidchk) == false)
{ {
Util.MsgE("SID검사 자료가 변경되었습니다. 다시 검사 하세요"); if (string.IsNullOrWhiteSpace(this.sidchk))
sidchk = string.Empty; {
return false; 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 (cbProcess.Text.Trim() == "") //if (cbProcess.Text.Trim() == "")
@@ -1044,6 +1051,14 @@ namespace FEQ0000
private void button8_Click(object sender, EventArgs e) private void button8_Click(object sender, EventArgs e)
{ {
var sid = tbSID.Text.Trim(); var sid = tbSID.Text.Trim();
if (sid.Equals("신규") || sid.isEmpty())
{
Util.MsgI($"신규SID는 검사를 진행하지 않습니다");
return;
}
if (sid.Length != 9) if (sid.Length != 9)
{ {
FCOMMON.Util.MsgE("검색 할 SID를 입력하세요"); FCOMMON.Util.MsgE("검색 할 SID를 입력하세요");
@@ -1055,12 +1070,12 @@ namespace FEQ0000
var dt = Amkor.RestfulService.SPMSIDSearch(sid); var dt = Amkor.RestfulService.SPMSIDSearch(sid);
if (dt.Complete) if (dt.Complete)
{ {
var f = new fSIDListSelect(sid,dt.Result); var f = new fSIDListSelect(sid, dt.Result);
if (f.ShowDialog() == DialogResult.OK) if (f.ShowDialog() == DialogResult.OK)
{ {
dr.chk1 = true; dr.chk1 = true;
this.sidchk = sid; this.sidchk = sid;
} }
else else
{ {
FCOMMON.Util.MsgE("목록표시 창에서 '확인' 버튼을 눌러야 SID검색이 완료됩니다."); FCOMMON.Util.MsgE("목록표시 창에서 '확인' 버튼을 눌러야 SID검색이 완료됩니다.");
@@ -1078,10 +1093,17 @@ namespace FEQ0000
{ {
if (tbSID.TextLength != 9) if (tbSID.TextLength != 9)
{ {
if (btSIDChk.BackColor == Color.Gray) if (tbSID.Text.Equals("신규") || tbSID.Text.isEmpty())
btSIDChk.BackColor = Color.Tomato; {
else
btSIDChk.BackColor = Color.Gray; btSIDChk.BackColor = Color.Gray;
}
else
{
if (btSIDChk.BackColor == Color.Gray)
btSIDChk.BackColor = Color.Tomato;
else
btSIDChk.BackColor = Color.Gray;
}
} }
else else
{ {

View File

@@ -1305,7 +1305,7 @@ namespace FEQ0000
{ {
//state 가 ---인 데이터를 기준으로 함 //state 가 ---인 데이터를 기준으로 함
//chk2 ==false 인 자료를 기준으로 함 //chk2 ==false 인 자료를 기준으로 함
var newlist = this.dsPurchase.EETGW_PurchaseCR.Where(t => t.Ischk2Null() && t.state.Equals("---")).ToList(); var newlist = this.dsPurchase.EETGW_PurchaseCR.Where(t => (t.Ischk2Null() || t.chk2 == false) && t.state.Equals("---")).ToList();
var f = new fSIDCheckNR(newlist); var f = new fSIDCheckNR(newlist);
if (f.ShowDialog() == DialogResult.OK) if (f.ShowDialog() == DialogResult.OK)
{ {

View File

@@ -1,5 +1,6 @@
using FCOMMON; using FCOMMON;
using FEQ0000.Purchase; using FEQ0000.Purchase;
using NetOffice.OutlookApi;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
@@ -268,7 +269,7 @@ namespace FEQ0000
this.tbProjectIndex.Enabled = false; this.tbProjectIndex.Enabled = false;
} }
this.Show(); this.Show();
Application.DoEvents(); System.Windows.Forms.Application.DoEvents();
tbPumName.Focus(); tbPumName.Focus();
////이미지를 불러온다. ////이미지를 불러온다.
@@ -456,20 +457,29 @@ namespace FEQ0000
return false; return false;
} }
if (string.IsNullOrWhiteSpace(this.sidchk)) if(tbSID.Text.Equals("신규") || tbSID.Text.isEmpty())
{ {
FCOMMON.Util.MsgE("SID검사가 필요합니다.\n상단의 검사 버튼을 눌러 SPR/NR 재고 여부를 확인 하세요"); //FCOMMON.Util.MsgI($"신규 SID로 인해 SID 검사를 진행하지 않습니다");
btSIDChk.Focus(); }
return false; 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() == "") //if (cbProcess.Text.Trim() == "")
//{ //{
@@ -947,10 +957,17 @@ namespace FEQ0000
{ {
if (tbSID.TextLength != 9) if (tbSID.TextLength != 9)
{ {
if (btSIDChk.BackColor == Color.Gray) if (tbSID.Text.Equals("신규") || tbSID.Text.isEmpty())
btSIDChk.BackColor = Color.Tomato; {
else
btSIDChk.BackColor = Color.Gray; btSIDChk.BackColor = Color.Gray;
}
else
{
if (btSIDChk.BackColor == Color.Gray)
btSIDChk.BackColor = Color.Tomato;
else
btSIDChk.BackColor = Color.Gray;
}
} }
else else
{ {
@@ -968,6 +985,13 @@ namespace FEQ0000
private void btSIDChk_Click(object sender, EventArgs e) private void btSIDChk_Click(object sender, EventArgs e)
{ {
var sid = tbSID.Text.Trim(); var sid = tbSID.Text.Trim();
if(sid.Equals("신규") || sid.isEmpty())
{
Util.MsgI($"신규SID는 검사를 진행하지 않습니다");
return;
}
if (sid.Length != 9) if (sid.Length != 9)
{ {
FCOMMON.Util.MsgE("검색 할 SID를 입력하세요"); FCOMMON.Util.MsgE("검색 할 SID를 입력하세요");