nr복사시 cr 값 복사 안하게

This commit is contained in:
chi
2021-08-23 11:06:55 +09:00
parent 6eeb1da673
commit 656791622b
3 changed files with 17 additions and 6 deletions

View File

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

View File

@@ -787,6 +787,7 @@ namespace FEQ0000
//현재 데이터를 입력하여 신규 추가를 한다. //현재 데이터를 입력하여 신규 추가를 한다.
var newdr = this.dsPurchase.Purchase.NewPurchaseRow(); var newdr = this.dsPurchase.Purchase.NewPurchaseRow();
FCOMMON.Util.CopyData((System.Data.DataRow)dr, (System.Data.DataRow)newdr); FCOMMON.Util.CopyData((System.Data.DataRow)dr, (System.Data.DataRow)newdr);
newdr.orderno = string.Empty; //CR값 복사 안하게 210823
newdr.pdate = DateTime.Now.ToShortDateString(); newdr.pdate = DateTime.Now.ToShortDateString();
newdr.wdate = DateTime.Now; newdr.wdate = DateTime.Now;
newdr.wuid = FCOMMON.info.Login.no; newdr.wuid = FCOMMON.info.Login.no;

View File

@@ -453,8 +453,18 @@ namespace FEQ0000
tbPumQty.Focus(); tbPumQty.Focus();
return false; return false;
} }
if (advInput == true) if (advInput == true)
{ {
if (tbOrderNo.Text.isEmpty() == false && tbProjectIndex.Text != "-1")
{
FCOMMON.Util.MsgI("구매경고\n" +
"프로젝트가 할당 되어있으며 CR/CF값이 입력되어있습니다.\n" +
"CR/CF 구매의 경우 프로젝트 파트리스트를 통해서 구매 신청 하세요\n" +
"이 화면은 NR구매요청 입니다");
}
if (tbProject.Text == "") if (tbProject.Text == "")
{ {
//프로젝트명에 입력이 안되있다 //프로젝트명에 입력이 안되있다
@@ -601,9 +611,9 @@ namespace FEQ0000
} }
//단가가없는경우 생성한다. //단가가없는경우 생성한다.
if(decimal.TryParse(tbPumPrice.Text,out decimal vprice)==false) if (decimal.TryParse(tbPumPrice.Text, out decimal vprice) == false)
{ {
if(decimal.TryParse(tbPumPriceD.Text,out decimal vpriced)==true) if (decimal.TryParse(tbPumPriceD.Text, out decimal vpriced) == true)
{ {
applyDollerToWon(); applyDollerToWon();
} }
@@ -938,7 +948,7 @@ namespace FEQ0000
{ {
//단가에 금액이 없는경우에는 환율을 곱해준다. //단가에 금액이 없는경우에는 환율을 곱해준다.
//if ( decimal.TryParse(tbPumPrice.Text, out decimal result) == false || result == 0) //if ( decimal.TryParse(tbPumPrice.Text, out decimal result) == false || result == 0)
if(binit) if (binit)
{ {
if (decimal.TryParse(tbPumPriceD.Text, out decimal priced) == true) if (decimal.TryParse(tbPumPriceD.Text, out decimal priced) == true)
{ {
@@ -950,7 +960,7 @@ namespace FEQ0000
tbPumPrice.Text = "0"; tbPumPrice.Text = "0";
} }
} }
} }
void applyDollerToWon() void applyDollerToWon()
{ {