공정 항목 추가 (업무일지, 프로젝트)

구매내역에 s/c 정렬 기능 추가
This commit is contained in:
chi
2020-01-06 16:27:21 +09:00
parent d73a2e212a
commit 178c295587
80 changed files with 12686 additions and 9599 deletions

View File

@@ -1,41 +1,42 @@
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 FCOMMON
{
public partial class fSelectMonth : Form
{
public int selectmon = -1;
public fSelectMonth()
{
InitializeComponent();
this.KeyDown += (s1,e1)=>{ if (e1.KeyCode == Keys.Escape) this.Close(); };
}
private void fSelectMonth_Load(object sender, EventArgs e)
{
for(int i = 1 ; i <=12;i++)
{
Button newbt = new Button();
newbt.Text = string.Format("{0}월",i);
newbt.Tag = i;
newbt.Click += newbt_Click;
newbt.Dock = DockStyle.Fill;
tableLayoutPanel1.Controls.Add(newbt);
}
}
void newbt_Click(object sender, EventArgs e)
{
var bt = sender as Button;
selectmon = int.Parse(bt.Tag.ToString());
DialogResult = System.Windows.Forms.DialogResult.OK;
}
}
}
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 FCOMMON
{
public partial class fSelectMonth : Form
{
public int selectmon { get; set; }
public fSelectMonth()
{
InitializeComponent();
selectmon = -1;
this.KeyDown += (s1,e1)=>{ if (e1.KeyCode == Keys.Escape) this.Close(); };
}
private void fSelectMonth_Load(object sender, EventArgs e)
{
for(int i = 1 ; i <=12;i++)
{
Button newbt = new Button();
newbt.Text = string.Format("{0}월",i);
newbt.Tag = i;
newbt.Click += newbt_Click;
newbt.Dock = DockStyle.Fill;
tableLayoutPanel1.Controls.Add(newbt);
}
}
void newbt_Click(object sender, EventArgs e)
{
var bt = sender as Button;
selectmon = int.Parse(bt.Tag.ToString());
DialogResult = System.Windows.Forms.DialogResult.OK;
}
}
}