...
This commit is contained in:
@@ -14,6 +14,7 @@ namespace FCM0000.Inventory
|
||||
public RepInvStock()
|
||||
{
|
||||
InitializeComponent();
|
||||
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
|
||||
}
|
||||
|
||||
private void RepInvStock_Load(object sender, EventArgs e)
|
||||
|
||||
@@ -1,34 +1,35 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace FCM0000.Inventory
|
||||
{
|
||||
public partial class RepInvStockUser : Form
|
||||
{
|
||||
string userid = string.Empty;
|
||||
public RepInvStockUser(string uid)
|
||||
{
|
||||
InitializeComponent();
|
||||
this.userid = uid;
|
||||
}
|
||||
|
||||
private void RepInvStock_Load(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.ta.Fill(this.dSReport.PersonInvStock, this.userid);
|
||||
this.reportViewer1.RefreshReport();
|
||||
}catch (Exception ex)
|
||||
{
|
||||
FCOMMON.Util.MsgE(ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace FCM0000.Inventory
|
||||
{
|
||||
public partial class RepInvStockUser : Form
|
||||
{
|
||||
string userid = string.Empty;
|
||||
public RepInvStockUser(string uid)
|
||||
{
|
||||
InitializeComponent();
|
||||
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
|
||||
this.userid = uid;
|
||||
}
|
||||
|
||||
private void RepInvStock_Load(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.ta.Fill(this.dSReport.PersonInvStock, this.userid);
|
||||
this.reportViewer1.RefreshReport();
|
||||
}catch (Exception ex)
|
||||
{
|
||||
FCOMMON.Util.MsgE(ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,6 +15,7 @@ namespace FCM0000
|
||||
public fInventory()
|
||||
{
|
||||
InitializeComponent();
|
||||
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
|
||||
this.FormClosed += __Closed;
|
||||
this.dSInventory.vInventory.TableNewRow += Inventory_TableNewRow;
|
||||
this.dtSD.KeyDown += dtSD_KeyDown;
|
||||
|
||||
@@ -15,6 +15,7 @@ namespace FCM0000
|
||||
public fInventoryJagoList()
|
||||
{
|
||||
InitializeComponent();
|
||||
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
|
||||
this.FormClosed += __Closed;
|
||||
this.dtSD.KeyDown += dtSD_KeyDown;
|
||||
fn_fpcolsize = System.IO.Path.Combine(FCOMMON.Util.CurrentPath, "formSetting", "fp_" + this.Name + ".ini");
|
||||
|
||||
@@ -1,80 +1,81 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace FCM0000.Inventory
|
||||
{
|
||||
public partial class fInventoryJagoPlace : FCOMMON.fBase
|
||||
{
|
||||
public fInventoryJagoPlace(int itemIndex,string itemname)
|
||||
{
|
||||
|
||||
InitializeComponent();
|
||||
this.tbPumIDX.Text = itemIndex.ToString();
|
||||
this.tbPumName.Text = itemname;
|
||||
this.tbPumName.Tag = itemname;
|
||||
this.tbPumName.KeyDown += (s1, e1) => { if (e1.KeyCode == Keys.Enter) Lov_Item(tbPumName.Text, false); };
|
||||
}
|
||||
|
||||
private void fInventoryJagoPlace_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.Show();
|
||||
Application.DoEvents();
|
||||
button1.PerformClick();
|
||||
}
|
||||
|
||||
private void linkLabel5_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
{
|
||||
Lov_Item("", true);
|
||||
}
|
||||
void Lov_Item(string search, Boolean allowAll)
|
||||
{
|
||||
if (search == "" && allowAll == false)
|
||||
{
|
||||
FCOMMON.Util.MsgE("품명은 필수 값 입니다");
|
||||
tbPumName.Focus();
|
||||
return;
|
||||
}
|
||||
else if (search.ToLower() != tbPumName.Tag.ToString().ToLower() || tbPumIDX.Text == "-1" || tbPumIDX.Text == "") //값이 바뀌엇다면 검색을 해준다.
|
||||
{
|
||||
var f = new FCM0000.fLovItem(search);
|
||||
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
|
||||
{
|
||||
//인덱스값이 다르면 모델 및 가격을 업데이트 한다.
|
||||
tbPumName.Text = f.itemName;
|
||||
tbPumName.Tag = f.itemName;
|
||||
|
||||
this.tbPumIDX.Text = f.item.ToString();
|
||||
//this.tbPumModel.Text = f.itemmodel;
|
||||
//this.tbPumPrice.Text = f.itemprice.ToString();
|
||||
//this.tbSID.Text = f.SID;
|
||||
//this.tbSID.Tag = f.SID;
|
||||
//this.tbPumModel.Enabled = false;
|
||||
//if (tbSID.Text != "") tbSID.Enabled = false;
|
||||
//else tbSID.Enabled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
void refreshData()
|
||||
{
|
||||
var itmidx = 0;
|
||||
if(!int.TryParse(tbPumIDX.Text,out itmidx))
|
||||
{
|
||||
FCOMMON.Util.MsgE("품목을 먼저 선택하세요");
|
||||
return;
|
||||
}
|
||||
this.ta.FillByItemIdx(this.dSReport.jagosummaryPlace, FCOMMON.info.Login.gcode, DateTime.Now.ToShortDateString(), itmidx);
|
||||
}
|
||||
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
refreshData();
|
||||
}
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace FCM0000.Inventory
|
||||
{
|
||||
public partial class fInventoryJagoPlace : FCOMMON.fBase
|
||||
{
|
||||
public fInventoryJagoPlace(int itemIndex,string itemname)
|
||||
{
|
||||
|
||||
InitializeComponent();
|
||||
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
|
||||
this.tbPumIDX.Text = itemIndex.ToString();
|
||||
this.tbPumName.Text = itemname;
|
||||
this.tbPumName.Tag = itemname;
|
||||
this.tbPumName.KeyDown += (s1, e1) => { if (e1.KeyCode == Keys.Enter) Lov_Item(tbPumName.Text, false); };
|
||||
}
|
||||
|
||||
private void fInventoryJagoPlace_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.Show();
|
||||
Application.DoEvents();
|
||||
button1.PerformClick();
|
||||
}
|
||||
|
||||
private void linkLabel5_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
{
|
||||
Lov_Item("", true);
|
||||
}
|
||||
void Lov_Item(string search, Boolean allowAll)
|
||||
{
|
||||
if (search == "" && allowAll == false)
|
||||
{
|
||||
FCOMMON.Util.MsgE("품명은 필수 값 입니다");
|
||||
tbPumName.Focus();
|
||||
return;
|
||||
}
|
||||
else if (search.ToLower() != tbPumName.Tag.ToString().ToLower() || tbPumIDX.Text == "-1" || tbPumIDX.Text == "") //값이 바뀌엇다면 검색을 해준다.
|
||||
{
|
||||
var f = new FCM0000.fLovItem(search);
|
||||
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
|
||||
{
|
||||
//인덱스값이 다르면 모델 및 가격을 업데이트 한다.
|
||||
tbPumName.Text = f.itemName;
|
||||
tbPumName.Tag = f.itemName;
|
||||
|
||||
this.tbPumIDX.Text = f.item.ToString();
|
||||
//this.tbPumModel.Text = f.itemmodel;
|
||||
//this.tbPumPrice.Text = f.itemprice.ToString();
|
||||
//this.tbSID.Text = f.SID;
|
||||
//this.tbSID.Tag = f.SID;
|
||||
//this.tbPumModel.Enabled = false;
|
||||
//if (tbSID.Text != "") tbSID.Enabled = false;
|
||||
//else tbSID.Enabled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
void refreshData()
|
||||
{
|
||||
var itmidx = 0;
|
||||
if(!int.TryParse(tbPumIDX.Text,out itmidx))
|
||||
{
|
||||
FCOMMON.Util.MsgE("품목을 먼저 선택하세요");
|
||||
return;
|
||||
}
|
||||
this.ta.FillByItemIdx(this.dSReport.jagosummaryPlace, FCOMMON.info.Login.gcode, DateTime.Now.ToShortDateString(), itmidx);
|
||||
}
|
||||
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
refreshData();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace FCM0000
|
||||
public fInventoryUser()
|
||||
{
|
||||
InitializeComponent();
|
||||
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
|
||||
this.FormClosed += __Closed;
|
||||
this.dsMSSQL.InventoryUser.TableNewRow += Inventory_TableNewRow;
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@ namespace FCM0000
|
||||
public finventoryAdd(DSInventory.vInventoryRow dr_)
|
||||
{
|
||||
InitializeComponent();
|
||||
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
|
||||
bsManu = new BindingSource();
|
||||
bsModel = new BindingSource();
|
||||
this.dr = dr_;
|
||||
|
||||
Reference in New Issue
Block a user