구매시 sid검새 관련 오동작 수정,
구매시 sid,model 을 수정할수 없게 함
This commit is contained in:
@@ -543,6 +543,16 @@ namespace FEQ0000
|
||||
{
|
||||
var newdro = this.dsPurchase.EETGW_PurchaseCR.NewEETGW_PurchaseCRRow();
|
||||
FCOMMON.Util.CopyData(newdr, newdro);
|
||||
|
||||
newdro.SetpumidxNull();
|
||||
newdro.SetpumnameNull();
|
||||
newdro.SetpumamtNull();
|
||||
newdro.SetpumpriceDNull();
|
||||
newdro.SetpumpriceNull();
|
||||
newdro.SetpumscaleNull();
|
||||
newdro.SetpumunitNull();
|
||||
newdro.SetsidNull();
|
||||
|
||||
newdro.idx = -1;
|
||||
newdro.wdate = DateTime.Now;
|
||||
newdr = newdro; //change
|
||||
@@ -1058,6 +1068,16 @@ namespace FEQ0000
|
||||
{
|
||||
var newdro = this.dsPurchase.EETGW_PurchaseCR.NewEETGW_PurchaseCRRow();
|
||||
FCOMMON.Util.CopyData(newdr, newdro);
|
||||
|
||||
newdro.SetpumidxNull();
|
||||
newdro.SetpumnameNull();
|
||||
newdro.SetpumamtNull();
|
||||
newdro.SetpumpriceDNull();
|
||||
newdro.SetpumpriceNull();
|
||||
newdro.SetpumscaleNull();
|
||||
newdro.SetpumunitNull();
|
||||
newdro.SetsidNull();
|
||||
|
||||
newdro.idx = -1;
|
||||
newdro.wdate = DateTime.Now;
|
||||
newdr = newdro; //change
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace FEQ0000
|
||||
public Boolean repeatAdd = false;
|
||||
Boolean binit = false;
|
||||
string sidchk1 = string.Empty;
|
||||
string dbchk1 = string.Empty;
|
||||
string namechk1 = string.Empty;
|
||||
|
||||
public fPurchaseCR_Add(dsPurchase.EETGW_PurchaseCRRow dr_)
|
||||
{
|
||||
@@ -59,6 +59,8 @@ namespace FEQ0000
|
||||
//this.purchaseTableAdapter.Fill(this.dsPurchase.Purchase);
|
||||
// this.Show();
|
||||
// Application.DoEvents();
|
||||
tbSID.Enabled = false;
|
||||
tbPumModel.Enabled = false;
|
||||
advInput = FCOMMON.Util.getBit(FCOMMON.info.Login.gpermission, (int)FCOMMON.eGroupPermission.purchase_adv);
|
||||
tbPumName.ImeMode = ImeMode.Alpha;
|
||||
|
||||
@@ -321,22 +323,19 @@ namespace FEQ0000
|
||||
if (dr.RowState == DataRowState.Detached || dr.RowState == DataRowState.Added)
|
||||
{
|
||||
sidchk1 = string.Empty;
|
||||
dbchk1 = string.Empty;
|
||||
namechk1 = string.Empty;
|
||||
|
||||
//복사된 자료는 isd가 잇으면 sid가 잇다면 자동 처리해준다.
|
||||
if (tbSID.Text.StartsWith("10") && tbSID.TextLength == 9)
|
||||
dbchk1 = tbPumName.Text.Trim();
|
||||
if (tbSID.Text.isEmpty() == false && tbSID.TextLength == 9)
|
||||
namechk1 = tbPumName.Text.Trim();
|
||||
}
|
||||
else
|
||||
{
|
||||
sidchk1 = tbSID.Text.Trim();
|
||||
dbchk1 = tbPumName.Text.Trim();
|
||||
namechk1 = tbPumName.Text.Trim();
|
||||
}
|
||||
|
||||
|
||||
timer1.Start();
|
||||
|
||||
|
||||
}
|
||||
|
||||
string sidTrim(string sid)
|
||||
@@ -389,7 +388,7 @@ namespace FEQ0000
|
||||
{
|
||||
if (search == "" && allowAll == false)
|
||||
{
|
||||
dbchk1 = string.Empty;
|
||||
namechk1 = string.Empty;
|
||||
sidchk1 = string.Empty;
|
||||
FCOMMON.Util.MsgE("품명은 필수 값 입니다");
|
||||
tbPumName.Focus();
|
||||
@@ -400,7 +399,7 @@ namespace FEQ0000
|
||||
var f = new FCM0000.fLovItem(search);
|
||||
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
|
||||
{
|
||||
dbchk1 = f.itemName;
|
||||
namechk1 = f.itemName;
|
||||
sidchk1 = string.Empty;
|
||||
|
||||
//인덱스값이 다르면 모델 및 가격을 업데이트 한다.
|
||||
@@ -501,7 +500,7 @@ namespace FEQ0000
|
||||
|
||||
tbSID.Text = sidTrim(tbSID.Text);
|
||||
|
||||
if (dbchk1.isEmpty())
|
||||
if (namechk1.isEmpty())
|
||||
{
|
||||
Util.MsgE("품목 검사가 진행되지 않았습니다\n품명을 입력한 후 엔터를 누르거나 [품명] 버튼을 눌러서 검색을 수행한 후 다시 시도하세요");
|
||||
tbPumName.Focus();
|
||||
@@ -510,11 +509,11 @@ namespace FEQ0000
|
||||
}
|
||||
|
||||
//시드검사한 자료와 현재 입력된 시드가 다르면 검사를 다시 하게 한다
|
||||
if (this.tbPumName.Text.Trim().Equals(this.dbchk1) == false)
|
||||
if (this.tbPumName.Text.Trim().Equals(this.namechk1) == false)
|
||||
{
|
||||
Util.MsgE("품명검사 자료가 변경되었습니다. 다시 검사 하세요");
|
||||
Lov_Item("", true);
|
||||
dbchk1 = string.Empty;
|
||||
namechk1 = string.Empty;
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -915,6 +914,7 @@ namespace FEQ0000
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!saveData()) return;
|
||||
this.repeatAdd = false;
|
||||
DialogResult = System.Windows.Forms.DialogResult.OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -570,6 +570,15 @@ namespace FEQ0000
|
||||
{
|
||||
var newdro = this.dsPurchase.Purchase.NewPurchaseRow();
|
||||
FCOMMON.Util.CopyData(newdr, newdro);
|
||||
newdro.SetpumidxNull();
|
||||
newdro.SetpumnameNull();
|
||||
newdro.SetpumamtNull();
|
||||
newdro.SetpumpriceDNull();
|
||||
newdro.SetpumpriceNull();
|
||||
newdro.SetpumscaleNull();
|
||||
newdro.SetpumunitNull();
|
||||
newdro.SetsidNull();
|
||||
|
||||
newdro.idx = -1;
|
||||
newdro.wdate = DateTime.Now;
|
||||
newdr = newdro; //change
|
||||
@@ -889,6 +898,16 @@ namespace FEQ0000
|
||||
{
|
||||
var newdro = this.dsPurchase.Purchase.NewPurchaseRow();
|
||||
FCOMMON.Util.CopyData(newdr, newdro);
|
||||
|
||||
newdro.SetpumidxNull();
|
||||
newdro.SetpumnameNull();
|
||||
newdro.SetpumamtNull();
|
||||
newdro.SetpumpriceDNull();
|
||||
newdro.SetpumpriceNull();
|
||||
newdro.SetpumscaleNull();
|
||||
newdro.SetpumunitNull();
|
||||
newdro.SetsidNull();
|
||||
|
||||
newdro.idx = -1;
|
||||
newdro.wdate = DateTime.Now;
|
||||
newdr = newdro; //change
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace FEQ0000
|
||||
public Boolean repeatAdd = false;
|
||||
Boolean binit = false;
|
||||
string sidchk1 = string.Empty;
|
||||
string dbchk1 = string.Empty;
|
||||
string namechk1 = string.Empty;
|
||||
|
||||
public fPurchase_Add(dsPurchase.PurchaseRow dr_)
|
||||
{
|
||||
@@ -31,6 +31,9 @@ namespace FEQ0000
|
||||
|
||||
this.bs.DataSource = dr_;
|
||||
|
||||
tbSID.Enabled = false; //입력못하게
|
||||
tbPumModel.Enabled = false;
|
||||
|
||||
bsManu = new BindingSource();
|
||||
bsModel = new BindingSource();
|
||||
this.dr = dr_;
|
||||
@@ -380,19 +383,19 @@ namespace FEQ0000
|
||||
if (dr.RowState == DataRowState.Detached || dr.RowState == DataRowState.Added)
|
||||
{
|
||||
sidchk1 = string.Empty;
|
||||
dbchk1 = string.Empty;
|
||||
namechk1 = string.Empty;
|
||||
|
||||
//복사된 자료는 isd가 잇으면 sid가 잇다면 자동 처리해준다.
|
||||
if (tbSID.Text.StartsWith("10") && tbSID.TextLength == 9)
|
||||
if (tbSID.Text.isEmpty()==false && tbSID.TextLength == 9)
|
||||
{
|
||||
//sidchk1 = tbSID.Text;
|
||||
dbchk1 = tbPumName.Text.Trim();
|
||||
namechk1 = tbPumName.Text.Trim();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
sidchk1 = tbSID.Text.Trim();
|
||||
dbchk1 = tbPumName.Text.Trim();
|
||||
namechk1 = tbPumName.Text.Trim();
|
||||
}
|
||||
|
||||
timer1.Start();
|
||||
@@ -449,7 +452,7 @@ namespace FEQ0000
|
||||
{
|
||||
if (search == "" && allowAll == false)
|
||||
{
|
||||
dbchk1 = string.Empty;
|
||||
namechk1 = string.Empty;
|
||||
sidchk1 = string.Empty;
|
||||
FCOMMON.Util.MsgE("품명은 필수 값 입니다");
|
||||
tbPumName.Focus();
|
||||
@@ -460,7 +463,7 @@ namespace FEQ0000
|
||||
var f = new FCM0000.fLovItem(search);
|
||||
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
|
||||
{
|
||||
dbchk1 = f.itemName;
|
||||
namechk1 = f.itemName;
|
||||
sidchk1 = string.Empty;
|
||||
|
||||
//인덱스값이 다르면 모델 및 가격을 업데이트 한다.
|
||||
@@ -562,7 +565,7 @@ namespace FEQ0000
|
||||
|
||||
tbSID.Text = sidTrim(tbSID.Text);
|
||||
|
||||
if (dbchk1.isEmpty())
|
||||
if (namechk1.isEmpty())
|
||||
{
|
||||
Util.MsgE("품목 검사가 진행되지 않았습니다\n품명을 입력한 후 엔터를 누르거나 [품명] 버튼을 눌러서 검색을 수행한 후 다시 시도하세요");
|
||||
tbPumName.Focus();
|
||||
@@ -571,11 +574,11 @@ namespace FEQ0000
|
||||
}
|
||||
|
||||
//시드검사한 자료와 현재 입력된 시드가 다르면 검사를 다시 하게 한다
|
||||
if (this.tbPumName.Text.Trim().Equals(this.dbchk1.Trim()) == false)
|
||||
if (this.tbPumName.Text.Trim().Equals(this.namechk1.Trim()) == false)
|
||||
{
|
||||
Util.MsgE("품명검사 자료가 변경되었습니다. 다시 검사 하세요");
|
||||
Lov_Item("", true);
|
||||
dbchk1 = string.Empty;
|
||||
namechk1 = string.Empty;
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1005,6 +1008,7 @@ namespace FEQ0000
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!saveData()) return;
|
||||
repeatAdd = false;
|
||||
DialogResult = System.Windows.Forms.DialogResult.OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user