단가 0 입력 불가
This commit is contained in:
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
||||
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호가 자동으로
|
||||
// 지정되도록 할 수 있습니다.
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("24.02.01.1350")]
|
||||
[assembly: AssemblyFileVersion("24.02.01.1350")]
|
||||
[assembly: AssemblyVersion("24.02.07.1430")]
|
||||
[assembly: AssemblyFileVersion("24.02.07.1430")]
|
||||
|
||||
@@ -239,15 +239,24 @@ namespace FPJ0000
|
||||
foreach (DataGridViewRow row in this.dv1.Rows)
|
||||
{
|
||||
var spmval = row.Cells["dvc_spm"].Value.ToString();
|
||||
var sidval = row.Cells["dvc_sid"].Value.ToString();//dvc_price
|
||||
var prival = row.Cells["dvc_price"].Value.ToString().Replace(",", "");//dvc_price
|
||||
if (spmval.isEmpty())
|
||||
{
|
||||
FCOMMON.Util.MsgE("SPM검사가 완료되지 않았습니다");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//if (sidval.Length != 9)
|
||||
{
|
||||
decimal.TryParse(prival, out decimal price);
|
||||
if (price < 2)
|
||||
{
|
||||
FCOMMON.Util.MsgE("단가를 입력해야 합니다\n신규 품목이라면 견적서의 단가를 입력하세요\n기존 품목 중 단가를 알 수 없다면 [구매담당]에게 문의하세요");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (this.dv1.Rows.Count < 1)
|
||||
{
|
||||
@@ -451,11 +460,13 @@ namespace FPJ0000
|
||||
newdr.wdate = DateTime.Now;
|
||||
newdr.orderno = tbCr.Text.Trim();
|
||||
newdr.bigo = item.Cells["dvc_remark"].Value.ToString();//dr.memo.Trim();
|
||||
newdr.chk1 = true;
|
||||
newdr.EndEdit();
|
||||
dtNR.AddPurchaseRow(newdr);
|
||||
}
|
||||
else
|
||||
{
|
||||
newdr.chk1 = true;
|
||||
newdr.pumqtyReq += v_qty;// (int)item.Cells[Col_Qty].Value;// dr.qty; //SQL = SQL.Replace("{qty}", dr.qty.ToString()); //일반수량이 아닌 필요수량으로
|
||||
newdr.pumamt += v_price * v_qty;// (decimal)item.Cells["dvc_amt"].Value;// dr.amt; //SQL = SQL.Replace("{amt}", dr.amt.ToString());
|
||||
newdr.bigo += "," + item.Cells["dvc_remark"].Value.ToString();//dr.memo.Trim();
|
||||
|
||||
Reference in New Issue
Block a user