업무일지 등록시 분류가 1개라면 자동 선택, 업무형태 글자 짤림으로 인해 늘리기

This commit is contained in:
chi
2023-10-26 20:17:02 +09:00
parent c18b72ede6
commit a95b26c55d
26 changed files with 2916 additions and 1571 deletions

View File

@@ -32,8 +32,6 @@ namespace FCOMMON
this.radO = new System.Windows.Forms.RadioButton();
this.radM = new System.Windows.Forms.RadioButton();
this.panel1 = new System.Windows.Forms.Panel();
this.numericUpDown3 = new System.Windows.Forms.NumericUpDown();
this.label16 = new System.Windows.Forms.Label();
this.nudSFIOffice = new System.Windows.Forms.NumericUpDown();
this.numericUpDown2 = new System.Windows.Forms.NumericUpDown();
this.nudOsavetime = new System.Windows.Forms.NumericUpDown();
@@ -42,8 +40,7 @@ namespace FCOMMON
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.panel2 = new System.Windows.Forms.Panel();
this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
this.label15 = new System.Windows.Forms.Label();
this.label17 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.nudShiftCnt = new System.Windows.Forms.NumericUpDown();
this.label11 = new System.Windows.Forms.Label();
@@ -63,14 +60,13 @@ namespace FCOMMON
this.button1 = new System.Windows.Forms.Button();
this.label14 = new System.Windows.Forms.Label();
this.nudCnt = new System.Windows.Forms.NumericUpDown();
this.label17 = new System.Windows.Forms.Label();
this.label18 = new System.Windows.Forms.Label();
this.label19 = new System.Windows.Forms.Label();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.nudSFIOffice)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.nudOsavetime)).BeginInit();
this.panel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.nudShiftCnt)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown9)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.nudMSaveCnt)).BeginInit();
@@ -101,17 +97,15 @@ namespace FCOMMON
this.radM.Location = new System.Drawing.Point(21, 200);
this.radM.Margin = new System.Windows.Forms.Padding(6, 10, 6, 10);
this.radM.Name = "radM";
this.radM.Size = new System.Drawing.Size(258, 41);
this.radM.Size = new System.Drawing.Size(155, 41);
this.radM.TabIndex = 0;
this.radM.Text = "MFG 인원(단위:분)";
this.radM.Text = "MFG 인원";
this.radM.UseVisualStyleBackColor = true;
this.radM.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged);
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.panel1.Controls.Add(this.numericUpDown3);
this.panel1.Controls.Add(this.label16);
this.panel1.Controls.Add(this.nudSFIOffice);
this.panel1.Controls.Add(this.numericUpDown2);
this.panel1.Controls.Add(this.nudOsavetime);
@@ -124,30 +118,6 @@ namespace FCOMMON
this.panel1.Size = new System.Drawing.Size(720, 115);
this.panel1.TabIndex = 2;
//
// numericUpDown3
//
this.numericUpDown3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.numericUpDown3.Location = new System.Drawing.Point(515, 57);
this.numericUpDown3.Maximum = new decimal(new int[] {
999999999,
0,
0,
0});
this.numericUpDown3.Name = "numericUpDown3";
this.numericUpDown3.Size = new System.Drawing.Size(147, 43);
this.numericUpDown3.TabIndex = 18;
this.numericUpDown3.Tag = "";
this.numericUpDown3.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// label16
//
this.label16.AutoSize = true;
this.label16.Location = new System.Drawing.Point(400, 60);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(109, 37);
this.label16.TabIndex = 17;
this.label16.Text = "Indirect";
//
// nudSFIOffice
//
this.nudSFIOffice.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
@@ -246,9 +216,9 @@ namespace FCOMMON
// panel2
//
this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.panel2.Controls.Add(this.label19);
this.panel2.Controls.Add(this.label18);
this.panel2.Controls.Add(this.label17);
this.panel2.Controls.Add(this.numericUpDown1);
this.panel2.Controls.Add(this.label15);
this.panel2.Controls.Add(this.label12);
this.panel2.Controls.Add(this.nudShiftCnt);
this.panel2.Controls.Add(this.label11);
@@ -271,34 +241,20 @@ namespace FCOMMON
this.panel2.Size = new System.Drawing.Size(720, 223);
this.panel2.TabIndex = 2;
//
// numericUpDown1
// label17
//
this.numericUpDown1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.numericUpDown1.Location = new System.Drawing.Point(515, 169);
this.numericUpDown1.Maximum = new decimal(new int[] {
999999999,
0,
0,
0});
this.numericUpDown1.Name = "numericUpDown1";
this.numericUpDown1.Size = new System.Drawing.Size(147, 43);
this.numericUpDown1.TabIndex = 16;
this.numericUpDown1.Tag = "";
this.numericUpDown1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// label15
//
this.label15.AutoSize = true;
this.label15.Location = new System.Drawing.Point(400, 172);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(109, 37);
this.label15.TabIndex = 15;
this.label15.Text = "Indirect";
this.label17.AutoSize = true;
this.label17.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.label17.Location = new System.Drawing.Point(399, 76);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(26, 21);
this.label17.TabIndex = 17;
this.label17.Text = "분";
//
// label12
//
this.label12.AutoSize = true;
this.label12.Location = new System.Drawing.Point(588, 67);
this.label12.Location = new System.Drawing.Point(523, 68);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(73, 37);
this.label12.TabIndex = 14;
@@ -307,7 +263,7 @@ namespace FCOMMON
// nudShiftCnt
//
this.nudShiftCnt.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
this.nudShiftCnt.Location = new System.Drawing.Point(520, 64);
this.nudShiftCnt.Location = new System.Drawing.Point(455, 65);
this.nudShiftCnt.Maximum = new decimal(new int[] {
999999999,
0,
@@ -328,7 +284,7 @@ namespace FCOMMON
// label11
//
this.label11.AutoSize = true;
this.label11.Location = new System.Drawing.Point(487, 67);
this.label11.Location = new System.Drawing.Point(424, 68);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(30, 37);
this.label11.TabIndex = 12;
@@ -339,14 +295,14 @@ namespace FCOMMON
this.numericUpDown9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
this.numericUpDown9.DecimalPlaces = 2;
this.numericUpDown9.Font = new System.Drawing.Font("맑은 고딕", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.numericUpDown9.Location = new System.Drawing.Point(264, 65);
this.numericUpDown9.Location = new System.Drawing.Point(233, 65);
this.numericUpDown9.Maximum = new decimal(new int[] {
999999999,
0,
0,
0});
this.numericUpDown9.Name = "numericUpDown9";
this.numericUpDown9.Size = new System.Drawing.Size(165, 43);
this.numericUpDown9.Size = new System.Drawing.Size(161, 43);
this.numericUpDown9.TabIndex = 11;
this.numericUpDown9.Tag = "m";
this.numericUpDown9.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
@@ -372,9 +328,10 @@ namespace FCOMMON
// label10
//
this.label10.AutoSize = true;
this.label10.Location = new System.Drawing.Point(400, 14);
this.label10.Font = new System.Drawing.Font("맑은 고딕", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.label10.Location = new System.Drawing.Point(424, 16);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(194, 37);
this.label10.Size = new System.Drawing.Size(170, 32);
this.label10.TabIndex = 8;
this.label10.Text = "x Shift 당 횟수";
//
@@ -399,16 +356,17 @@ namespace FCOMMON
// label13
//
this.label13.AutoSize = true;
this.label13.Location = new System.Drawing.Point(8, 67);
this.label13.Font = new System.Drawing.Font("맑은 고딕", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.label13.Location = new System.Drawing.Point(9, 70);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(250, 37);
this.label13.Size = new System.Drawing.Size(220, 32);
this.label13.TabIndex = 6;
this.label13.Text = "1 Shift 당 개선절감";
//
// label9
//
this.label9.AutoSize = true;
this.label9.Location = new System.Drawing.Point(6, 14);
this.label9.Location = new System.Drawing.Point(17, 14);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(212, 37);
this.label9.TabIndex = 6;
@@ -434,7 +392,7 @@ namespace FCOMMON
// numericUpDown5
//
this.numericUpDown5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.numericUpDown5.Location = new System.Drawing.Point(466, 120);
this.numericUpDown5.Location = new System.Drawing.Point(460, 120);
this.numericUpDown5.Maximum = new decimal(new int[] {
999999999,
0,
@@ -471,9 +429,10 @@ namespace FCOMMON
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(668, 123);
this.label5.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.label5.Location = new System.Drawing.Point(659, 139);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(44, 37);
this.label5.Size = new System.Drawing.Size(26, 21);
this.label5.TabIndex = 2;
this.label5.Text = "분";
this.label5.Click += new System.EventHandler(this.label1_Click);
@@ -481,7 +440,7 @@ namespace FCOMMON
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(122, 172);
this.label6.Location = new System.Drawing.Point(124, 172);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(105, 37);
this.label6.TabIndex = 2;
@@ -491,17 +450,18 @@ namespace FCOMMON
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(400, 123);
this.label7.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.label7.Location = new System.Drawing.Point(399, 139);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(64, 37);
this.label7.Size = new System.Drawing.Size(26, 21);
this.label7.TabIndex = 2;
this.label7.Text = "분 /";
this.label7.Text = "분";
this.label7.Click += new System.EventHandler(this.label1_Click);
//
// label8
//
this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(6, 123);
this.label8.Location = new System.Drawing.Point(8, 123);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(221, 37);
this.label8.TabIndex = 2;
@@ -548,14 +508,24 @@ namespace FCOMMON
0});
this.nudCnt.ValueChanged += new System.EventHandler(this.numericUpDown1_ValueChanged);
//
// label17
// label18
//
this.label17.AutoSize = true;
this.label17.Location = new System.Drawing.Point(435, 70);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(44, 37);
this.label17.TabIndex = 17;
this.label17.Text = "분";
this.label18.AutoSize = true;
this.label18.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.label18.Location = new System.Drawing.Point(399, 28);
this.label18.Name = "label18";
this.label18.Size = new System.Drawing.Size(26, 21);
this.label18.TabIndex = 18;
this.label18.Text = "분";
//
// label19
//
this.label19.AutoSize = true;
this.label19.Location = new System.Drawing.Point(424, 125);
this.label19.Name = "label19";
this.label19.Size = new System.Drawing.Size(28, 37);
this.label19.TabIndex = 19;
this.label19.Text = "/";
//
// fSFI
//
@@ -577,13 +547,11 @@ namespace FCOMMON
this.Load += new System.EventHandler(this.fSFI_Load);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.nudSFIOffice)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.nudOsavetime)).EndInit();
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.nudShiftCnt)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown9)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.nudMSaveCnt)).EndInit();
@@ -616,7 +584,6 @@ namespace FCOMMON
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.NumericUpDown numericUpDown9;
private System.Windows.Forms.NumericUpDown nudShiftCnt;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.Label label13;
@@ -628,10 +595,9 @@ namespace FCOMMON
public System.Windows.Forms.NumericUpDown nudMsavetime;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.NumericUpDown nudCnt;
private System.Windows.Forms.NumericUpDown numericUpDown1;
private System.Windows.Forms.Label label15;
private System.Windows.Forms.NumericUpDown numericUpDown3;
private System.Windows.Forms.Label label16;
private System.Windows.Forms.Label label17;
public System.Windows.Forms.NumericUpDown nudShiftCnt;
private System.Windows.Forms.Label label19;
private System.Windows.Forms.Label label18;
}
}

View File

@@ -13,7 +13,7 @@ namespace FCOMMON
{
public partial class fSFI : Form
{
public fSFI(string sfi_type, float time, float cnt, double shiftcount, int itemcnt)
public fSFI(string sfi_type, double time, double cnt, double shiftcount, int itemcnt)
{
InitializeComponent();
if (sfi_type == "M")
@@ -107,14 +107,14 @@ namespace FCOMMON
{
//offcie update
var sfi = (double)nudSFIOffice.Value;
numericUpDown3.Value = (decimal)(sfi * 1.25);
//numericUpDown3.Value = (decimal)(sfi * 1.25);
}
private void numericUpDown4_ValueChanged(object sender, EventArgs e)
{
//mfg update
var sfi = (double)nudSFIMFG.Value;
numericUpDown1.Value = (decimal)(sfi * 1.25);
//numericUpDown1.Value = (decimal)(sfi * 1.25);
}
}
}