구매담당자 메세지 및 수량 항목 추가

This commit is contained in:
chi
2023-08-17 11:13:18 +09:00
parent 40112e039f
commit fed728d82f
15 changed files with 2924 additions and 1010 deletions

View File

@@ -190,7 +190,9 @@ namespace FEQ0000
tbPumModel.Text = dr.pumscale;
tbPumQty.Text = dr.pumqty.ToString();
tbPumStock.Text = "--";
if (dr.IspumqtyReqNull()) tbpumqtyReq.Text = "0"; //230817
else tbpumqtyReq.Text = dr.pumqtyReq.ToString();
if (dr.IspumidxNull()) tbPumIDX.Text = "-1";
else tbPumIDX.Text = dr.pumidx.ToString();
tbPumPrice.Text = dr.pumprice.ToString();
@@ -231,6 +233,8 @@ namespace FEQ0000
tbPO.Text = dr.po;
tbOrderNo.Text = dr.orderno;
tbBigo.Text = dr.bigo;
if (dr.IschkremarkNull()) tbBigoChk.Text = string.Empty;
else tbBigoChk.Text = dr.chkremark;
dtInDate.Text = dr.indate;
dtExpDate.Text = dr.edate;
@@ -270,6 +274,13 @@ namespace FEQ0000
groupBox1.Enabled = false;
groupBox2.Enabled = false;
}
tbBigoChk.Enabled = false;
tbpumqtyReq.Enabled = false;
}
else
{
tbBigoChk.Enabled = true;
tbpumqtyReq.Enabled = true;
}
if (advInput == false)
@@ -305,13 +316,13 @@ namespace FEQ0000
//복사된 자료는 isd가 잇으면 sid가 잇다면 자동 처리해준다.
if (tbSID.Text.StartsWith("10") && tbSID.TextLength == 9)
dbchk1 = tbPumName.Text.Trim();
}
}
else
{
sidchk1 = tbSID.Text.Trim();
sidchk1 = tbSID.Text.Trim();
dbchk1 = tbPumName.Text.Trim();
}
timer1.Start();
@@ -502,7 +513,7 @@ namespace FEQ0000
return false;
}
if(tbSID.Text.Equals("신규") || tbSID.Text.isEmpty())
if (tbSID.Text.Equals("신규") || tbSID.Text.isEmpty())
{
//FCOMMON.Util.MsgI($"신규 SID로 인해 SID 검사를 진행하지 않습니다");
}
@@ -524,7 +535,7 @@ namespace FEQ0000
}
}
//if (cbProcess.Text.Trim() == "")
//{
@@ -548,14 +559,26 @@ namespace FEQ0000
}
if (tbPumQty.Text == "")
{
FCOMMON.Util.MsgE("수량을 입력하세요.");
FCOMMON.Util.MsgE("수량(요청)을 입력하세요.");
tbPumQty.Focus();
return false;
}
if (tbBigoChk.Enabled && (cmbState.Text == "PO" || cmbState.Text == "PR"))
{
var qtycnv = int.TryParse(tbpumqtyReq.Text, out int qtyreq);
if (qtycnv == false || qtyreq < 1)
{
FCOMMON.Util.MsgE("수량(실 구매)을 입력하세요.");
tbpumqtyReq.Focus();
return false;
}
}
if (int.TryParse(tbProjectIndex.Text, out int pidx) == false || pidx < 1)
{
if(tbBigo.Text.isEmpty() == true)
if (tbBigo.Text.isEmpty() == true)
{
FCOMMON.Util.MsgE("프로젝트가 선택되지 않았습니다. 직접입력은 허용되지 않습니다.\n" +
"프로젝트 명을 입력하고 Enter 키를 눌러서 관련 프로젝트를 선택하세요\n" +
@@ -564,7 +587,7 @@ namespace FEQ0000
tbProject.SelectAll();
return false;
}
}
if (tbOrderNo.Text.isEmpty())
@@ -716,10 +739,17 @@ namespace FEQ0000
}
}
if (tbPumQty.Text.isEmpty()) tbPumQty.Text = "0";
if (tbPumPrice.Text.isEmpty()) tbPumPrice.Text = "0";
dr.pumqty = int.Parse(tbPumQty.Text);
dr.pumprice = decimal.Parse(tbPumPrice.Text);
if (int.TryParse(tbPumQty.Text, out int vqty) == false)
tbPumQty.Text = "0";
if (int.TryParse(tbpumqtyReq.Text, out int vqtyreq) == false)
tbpumqtyReq.Text = "0";
if (decimal.TryParse(tbPumPrice.Text, out decimal vpumprice) == false)
tbPumPrice.Text = "0";
dr.pumqty = vqty;// int.Parse(tbPumQty.Text);
dr.pumqtyReq = vqtyreq;// int.Parse(tbpumqtyReq.Text);
dr.pumprice = vpumprice;// decimal.Parse(tbPumPrice.Text);
if (int.TryParse(tbInQty.Text, out int inqty))
{
@@ -788,6 +818,7 @@ namespace FEQ0000
dr.po = tbPO.Text;
dr.orderno = tbOrderNo.Text;
dr.bigo = tbBigo.Text;
dr.chkremark = tbBigoChk.Text;
//품정보가 업데이트 되어있으면 해당 데이터의 이미지를 업데이트 한다.(크기비교)
//품정보가 없다면 그대로 생성을 해준다.
@@ -1026,7 +1057,7 @@ namespace FEQ0000
{
var sid = tbSID.Text.Trim();
if(sid.Equals("신규") || sid.isEmpty())
if (sid.Equals("신규") || sid.isEmpty())
{
Util.MsgI($"신규SID는 검사를 진행하지 않습니다");
return;
@@ -1048,7 +1079,7 @@ namespace FEQ0000
{
dr.chk1 = true;
this.sidchk1 = sid;
}
}
else
{
Util.MsgE("목록표시 창에서 '확인' 버튼을 눌러야 SID검색이 완료됩니다.");