pm 용 구매 업데이트 기능 추가

This commit is contained in:
chi
2023-10-15 21:00:04 +09:00
parent b6291f2bd0
commit bf4852d84b
39 changed files with 2115 additions and 1342 deletions

View File

@@ -14,11 +14,15 @@ namespace FCM0000.Item
public partial class fItemAdd : FCOMMON.fBase
{
public int newIDX = -1;
public fItemAdd()
public string newSID = string.Empty;
public fItemAdd(string sidname)
{
InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
this.ControlBox = true;
this.MaximizeBox = true;
this.MinimizeBox = false;
tbSid.Text = sidname;
foreach (Control ctl in this.Controls)
{
if (ctl.GetType() == typeof(TextBox) || ctl.GetType() == typeof(ComboBox))
@@ -46,6 +50,11 @@ namespace FCM0000.Item
{
this.Location = new Point(0, 0);
}
this.Show();
Application.DoEvents();
if (tbSid.Text.isEmpty()) tbSid.Focus();
else tbName.Focus();
}
private void btOK_Click(object sender, EventArgs e)
@@ -151,6 +160,10 @@ namespace FCM0000.Item
else
{
newIDX = (int)(ta.ReadIDX(FCOMMON.info.Login.gcode, pumName, pumModel));
if (tbSid.Text.Length == 9 && tbSid.Text.StartsWith("10"))
newSID = tbSid.Text.Trim();
else newSID = string.Empty;
DialogResult = System.Windows.Forms.DialogResult.OK;
}
}