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

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

@@ -1,4 +1,5 @@
using FCM0000.Mail;
using FarPoint.Excel.EntityClassLibrary.DrawingEx;
using FCM0000.Mail;
using FCOMMON;
using FEQ0000.Purchase;
using System;
@@ -28,7 +29,7 @@ namespace FEQ0000
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
Properties.Settings.Default["EEEntities"] = FCOMMON.info.CS;
bsManu = new BindingSource();
bsModel = new BindingSource();
@@ -163,7 +164,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();
@@ -197,6 +200,9 @@ 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;
if (dr.IsinqtyNull() == false)
@@ -232,6 +238,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)
@@ -503,11 +516,23 @@ 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 (advInput == true)
{
@@ -680,10 +705,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 (decimal.TryParse(tbPumPriceD.Text, out decimal priced))
{
@@ -745,6 +777,7 @@ namespace FEQ0000
dr.po = tbPO.Text;
dr.orderno = tbOrderNo.Text;
dr.bigo = tbBigo.Text;
dr.chkremark = tbBigoChk.Text;
if (chkInDate.Checked)
dr.inqty = int.Parse(tbInQty.Text.Replace(",", ""));
@@ -1154,7 +1187,7 @@ namespace FEQ0000
}
string filter = "svalue='" + btEQManu.Text.Replace("'", "''") + "'";
var bt = sender as Button;
var guun = bt.Tag.ToString();
var f = new FCM0000.fCode(guun, filter);