추석전 변경사항
This commit is contained in:
@@ -11,6 +11,13 @@ namespace FCM0000
|
||||
{
|
||||
public partial class fLovItem : Form
|
||||
{
|
||||
public string itemName = string.Empty;
|
||||
public int item = -1;
|
||||
public string itemmodel = string.Empty;
|
||||
public decimal itemprice = 0;
|
||||
public string SID = string.Empty;
|
||||
public string itemSupply = string.Empty;
|
||||
|
||||
string keyword = string.Empty;
|
||||
public fLovItem(string search_)
|
||||
{
|
||||
@@ -31,12 +38,11 @@ namespace FCM0000
|
||||
|
||||
private void itemsBindingNavigatorSaveItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (itemName.isEmpty() || Item == -1) DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
if (itemName.isEmpty() || item == -1) DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
else DialogResult = System.Windows.Forms.DialogResult.OK;
|
||||
}
|
||||
|
||||
public string itemName = string.Empty;
|
||||
public int Item = -1;
|
||||
|
||||
private void bs_CurrentChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
@@ -50,14 +56,22 @@ namespace FCM0000
|
||||
if (drv == null)
|
||||
{
|
||||
itemName = string.Empty;
|
||||
Item = -1;
|
||||
item = -1;
|
||||
itemmodel = string.Empty;
|
||||
itemprice = 0;
|
||||
itemSupply = string.Empty;
|
||||
SID = string.Empty;
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
var dr = drv.Row as dsMSSQL.ItemsRow;
|
||||
Item = dr.idx;
|
||||
item = dr.idx;
|
||||
itemName = dr.name;
|
||||
itemmodel = dr.model;
|
||||
itemprice = dr.price;
|
||||
itemSupply = dr.supply;
|
||||
SID = dr.sid;
|
||||
}
|
||||
btOK.PerformClick();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user