업무일지 등록시 메일 알림 기능 추가

This commit is contained in:
chi
2023-04-11 12:06:04 +09:00
parent b6f5351878
commit 90db05a366
22 changed files with 551 additions and 348 deletions

View File

@@ -73,9 +73,9 @@ namespace FPJ0000.Project
Boolean brect = true;
protected override void OnPaint(PaintEventArgs pe)
{
if (items == null || items.Count != 10)
if (items == null || items.Count != 12)
{
for (int i = 1; i <= 10; i++)
for (int i = 1; i <= 12; i++)
{
items.Add(new itemdata()
{
@@ -119,9 +119,9 @@ namespace FPJ0000.Project
//var fNo = new Font("Consolas", 20, FontStyle.Bold);
//내부그리드 그리기 2*5 배열이나.. 1칸이 총 2x2 칸으로 구성되니 2배로 한다.
var cnt = 1;
var itemp = 10;
var colcount = 5;
var rowcount = 2;
var itemp = 12;
var colcount = 4;
var rowcount = 3;
var itemw = (rect.Width / colcount) - (itemp * (colcount - 1));
var itemh = (rect.Height / rowcount) - (itemp * (rowcount - 1));
for (int i = 0; i < colcount; i++)
@@ -135,6 +135,8 @@ namespace FPJ0000.Project
itemh);
var data = items[cnt - 1];
var no = j * colcount + i + 1;
if (cnt == 12) continue;
pe.Graphics.DrawRectangle(Pens.White, r.Left, r.Top, r.Width, r.Height);
@@ -148,7 +150,7 @@ namespace FPJ0000.Project
pe.Graphics.FillRectangle(Brushes.White, rno);
pe.Graphics.DrawRectangle(Pens.White, rno.Left, rno.Top, rno.Width, rno.Height);
pe.Graphics.DrawString(cnt.ToString(), fontNo, Brushes.Black, rno, new StringFormat { Alignment = StringAlignment.Center, LineAlignment = StringAlignment.Center });
pe.Graphics.DrawString(no.ToString(), fontNo, Brushes.Black, rno, new StringFormat { Alignment = StringAlignment.Center, LineAlignment = StringAlignment.Center });
pe.Graphics.DrawRectangle(Pens.White, rnm.Left, rnm.Top, rnm.Width, rnm.Height);
pe.Graphics.DrawString(data.champion, fontName, Brushes.White, rnm, new StringFormat { Alignment = StringAlignment.Center, LineAlignment = StringAlignment.Center });
//pe.Graphics.DrawRectangle(Pens.White, rbd.Left, rbd.Top, rbd.Width, rbd.Height);
@@ -175,7 +177,7 @@ namespace FPJ0000.Project
pe.Graphics.FillRectangle(Brushes.White, rno);
pe.Graphics.DrawRectangle(Pens.White, rno.Left, rno.Top, rno.Width, rno.Height);
pe.Graphics.DrawString(cnt.ToString(), fontNo, Brushes.Black, rno, new StringFormat { Alignment = StringAlignment.Center, LineAlignment = StringAlignment.Center });
pe.Graphics.DrawString(no.ToString(), fontNo, Brushes.Black, rno, new StringFormat { Alignment = StringAlignment.Center, LineAlignment = StringAlignment.Center });
pe.Graphics.DrawRectangle(Pens.White, rnm.Left, rnm.Top, rnm.Width, rnm.Height);
pe.Graphics.DrawString(data.champion, fontName, Brushes.White, rnm, new StringFormat { Alignment = StringAlignment.Center, LineAlignment = StringAlignment.Center });
//pe.Graphics.DrawRectangle(Pens.White, rbd.Left, rbd.Top, rbd.Width, rbd.Height);