..
This commit is contained in:
@@ -91,7 +91,7 @@
|
||||
this.linkLabel2 = new System.Windows.Forms.LinkLabel();
|
||||
this.arLabel2 = new arCtl.arLabel();
|
||||
this.panel3 = new System.Windows.Forms.Panel();
|
||||
this.textBox5 = new System.Windows.Forms.TextBox();
|
||||
this.tbSFI = new System.Windows.Forms.TextBox();
|
||||
this.textBox3 = new System.Windows.Forms.TextBox();
|
||||
this.textBox4 = new System.Windows.Forms.TextBox();
|
||||
this.arLabel5 = new arCtl.arLabel();
|
||||
@@ -821,7 +821,7 @@
|
||||
//
|
||||
this.panel3.BackColor = System.Drawing.Color.Gainsboro;
|
||||
this.panel3.Controls.Add(this.linkLabel1);
|
||||
this.panel3.Controls.Add(this.textBox5);
|
||||
this.panel3.Controls.Add(this.tbSFI);
|
||||
this.panel3.Controls.Add(this.textBox3);
|
||||
this.panel3.Controls.Add(label10);
|
||||
this.panel3.Controls.Add(this.textBox4);
|
||||
@@ -842,12 +842,12 @@
|
||||
//
|
||||
// textBox5
|
||||
//
|
||||
this.textBox5.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "sfi", true));
|
||||
this.textBox5.Location = new System.Drawing.Point(93, 86);
|
||||
this.textBox5.Name = "textBox5";
|
||||
this.textBox5.Size = new System.Drawing.Size(88, 21);
|
||||
this.textBox5.TabIndex = 92;
|
||||
this.textBox5.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
this.tbSFI.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "sfi", true));
|
||||
this.tbSFI.Location = new System.Drawing.Point(93, 86);
|
||||
this.tbSFI.Name = "textBox5";
|
||||
this.tbSFI.Size = new System.Drawing.Size(88, 21);
|
||||
this.tbSFI.TabIndex = 92;
|
||||
this.tbSFI.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
//
|
||||
// textBox3
|
||||
//
|
||||
@@ -1226,7 +1226,7 @@
|
||||
private System.Windows.Forms.CheckBox fanoutCheckBox;
|
||||
private System.Windows.Forms.TextBox textBox3;
|
||||
private System.Windows.Forms.TextBox textBox4;
|
||||
private System.Windows.Forms.TextBox textBox5;
|
||||
private System.Windows.Forms.TextBox tbSFI;
|
||||
private System.Windows.Forms.LinkLabel linkLabel1;
|
||||
}
|
||||
}
|
||||
@@ -170,9 +170,39 @@ namespace FPJ0000
|
||||
|
||||
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
{
|
||||
var f = new FCOMMON.fSFI("O",0f,0f,4,1);
|
||||
int cnt;
|
||||
if (int.TryParse(cntTextBox.Text, out cnt) == false)
|
||||
{
|
||||
FCOMMON.Util.MsgE($"수량이 입려되지 않았습니다");
|
||||
cntTextBox.Focus();
|
||||
return;
|
||||
}
|
||||
|
||||
var sfi_type = "O";
|
||||
var sfi_count = 0D;
|
||||
var sfi_time = 0D;
|
||||
var sfi_shiftcount = 0D;
|
||||
if (dr.Issfi_typeNull() == false) sfi_type = dr.sfi_type;
|
||||
if (dr.Issfi_savecountNull() == false) sfi_count = dr.sfi_savecount;
|
||||
if (dr.Issfi_savetimeNull() == false) sfi_time = dr.sfi_savetime;
|
||||
if (dr.Issfi_shiftcountNull() == false) sfi_shiftcount = dr.sfi_shiftcount;
|
||||
if (sfi_shiftcount == 0) sfi_shiftcount = 4;
|
||||
|
||||
|
||||
var f = new FCOMMON.fSFI(sfi_type, sfi_time, sfi_count, sfi_shiftcount, cnt);
|
||||
if (f.ShowDialog() == DialogResult.OK)
|
||||
textBox5.Text = f.Value.ToString("N2");
|
||||
{
|
||||
tbSFI.Text = f.Value.ToString("N2");
|
||||
dr.sfi_type = f.radO.Checked ? "O" : "M";
|
||||
if (f.radO.Checked)
|
||||
dr.sfi_savetime = (float)f.nudOsavetime.Value;
|
||||
else
|
||||
dr.sfi_savetime = (float)f.nudMsavetime.Value;
|
||||
dr.sfi_savecount = (float)f.nudMSaveCnt.Value;
|
||||
dr.sfi_shiftcount = (float)f.nudShiftCnt.Value;
|
||||
dr.EndEdit();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user