휴가 승인자 정보 추적
This commit is contained in:
1
SubProject/FBS0000/.vs/FBS0000.csproj.dtbcache.json
Normal file
1
SubProject/FBS0000/.vs/FBS0000.csproj.dtbcache.json
Normal file
File diff suppressed because one or more lines are too long
@@ -27,10 +27,11 @@ namespace FBS0000
|
||||
tbGrp.Text = string.Empty;
|
||||
//this.dv1.CellFormatting += dv1_CellFormatting;
|
||||
}
|
||||
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
EnsureVisibleAndUsableSize();
|
||||
//일반사용자의경우에는 상태를 변경하지 못한다.
|
||||
int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.holyday));
|
||||
if (curLevel >= 5)
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -10,7 +11,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FBS0000.Holiday
|
||||
{
|
||||
public partial class fErrorChk : Form
|
||||
public partial class fErrorChk : fBase
|
||||
{
|
||||
public fErrorChk()
|
||||
{
|
||||
@@ -23,43 +24,12 @@ namespace FBS0000.Holiday
|
||||
private void fErrorChk_Load(object sender, EventArgs e)
|
||||
{
|
||||
//기본 이번달 설정한다
|
||||
EnsureVisibleAndUsableSize();
|
||||
button2.PerformClick();
|
||||
}
|
||||
|
||||
//void dtSD_KeyDown(object sender, KeyEventArgs e)
|
||||
//{
|
||||
// if (e.KeyCode != Keys.Enter) return;
|
||||
// var tb = sender as TextBox;
|
||||
// var input = tb.Text.Trim();
|
||||
// if (input == "") tb.Text = DateTime.Now.ToShortDateString();
|
||||
// else
|
||||
// {
|
||||
// string dt = string.Empty;
|
||||
// if (!FCOMMON.Util.MakeDateString(input, out dt))
|
||||
// {
|
||||
// FCOMMON.Util.MsgE("입력값이 올바르지 않습니다.");
|
||||
// tb.SelectAll();
|
||||
// tb.Focus();
|
||||
// return;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// tb.Text = dt;
|
||||
// }
|
||||
// }
|
||||
// if (tb == dtSD)
|
||||
// {
|
||||
// dtED.Focus();
|
||||
// dtED.SelectAll();
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// // btSearch.PerformClick();
|
||||
// tb.SelectAll();
|
||||
// }
|
||||
//}
|
||||
|
||||
private void listView1_SelectedIndexChanged(object sender, EventArgs e)
|
||||
private void listView1_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -9,7 +10,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FBS0000
|
||||
{
|
||||
public partial class fHolyDayData : Form
|
||||
public partial class fHolyDayData : fBase
|
||||
{
|
||||
bool binit = false;
|
||||
public fHolyDayData(string sdate, string uid)
|
||||
@@ -36,11 +37,14 @@ namespace FBS0000
|
||||
}
|
||||
|
||||
private void rJobReport_Load(object sender, EventArgs e)
|
||||
{
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
refreshData();
|
||||
binit = true;
|
||||
|
||||
}
|
||||
|
||||
|
||||
string GetUIDValue()
|
||||
{
|
||||
string uid = "%";
|
||||
|
||||
@@ -36,11 +36,30 @@ namespace FBS0000
|
||||
}
|
||||
|
||||
private void rJobReport_Load(object sender, EventArgs e)
|
||||
{
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
refreshData();
|
||||
binit = true;
|
||||
|
||||
}
|
||||
private void EnsureVisibleAndUsableSize()
|
||||
{
|
||||
var visibleBounds = Screen.GetWorkingArea(this);
|
||||
var isOutOfView = (Left > visibleBounds.Right) || (Top > visibleBounds.Bottom) ||
|
||||
(Right < visibleBounds.Left) || (Bottom < visibleBounds.Top);
|
||||
if (isOutOfView)
|
||||
{
|
||||
CenterToScreen();
|
||||
}
|
||||
var minW = Math.Max(320, this.MinimumSize.Width);
|
||||
var minH = Math.Max(240, this.MinimumSize.Height);
|
||||
|
||||
if (Width < minW || Height < minH)
|
||||
{
|
||||
this.Size = new Size(minW, minH);
|
||||
}
|
||||
}
|
||||
|
||||
//string GetUIDValue()
|
||||
//{
|
||||
// string uid = "%";
|
||||
|
||||
@@ -32,9 +32,11 @@ namespace FBS0000
|
||||
//if (cate == "0") dv1.Rows[e.RowIndex].DefaultCellStyle.ForeColor = Color.Blue;// = Color.Gray;
|
||||
//else dv1.Rows[e.RowIndex].DefaultCellStyle.ForeColor = Color.Black;
|
||||
}
|
||||
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.holyday));
|
||||
//엔터키누르면 아래로 이동하게함ㄷ
|
||||
FarPoint.Win.Spread.InputMap im = this.fpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenFocused);
|
||||
|
||||
@@ -23,10 +23,10 @@ namespace FBS0000
|
||||
this.tbED.Text = ed;
|
||||
p_uid = uid;
|
||||
}
|
||||
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
EnsureVisibleAndUsableSize();
|
||||
//udpate user list
|
||||
var userList = FCOMMON.DBM.getUserList();
|
||||
this.cmbUser.Items.Clear();
|
||||
|
||||
@@ -56,9 +56,9 @@ namespace FBS0000
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
cmbUser.SelectedValue = dr.uid;// FCOMMON.info.Login.no;// .Text = FCOMMON.info.Login.nameK + "(" + FCOMMON.info.Login.no + ")";
|
||||
dateTimePicker1.Value = dr.sdate;
|
||||
dateTimePicker2.Value = dr.edate;
|
||||
|
||||
@@ -20,9 +20,9 @@ namespace FBS0000.Holiday
|
||||
|
||||
private void fImpKunTae_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
EnsureVisibleAndUsableSize();
|
||||
}
|
||||
|
||||
|
||||
private void button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Clipboard.ContainsText() == false)
|
||||
|
||||
@@ -36,6 +36,7 @@ namespace FBS0000
|
||||
}
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
UpdateGrpList();
|
||||
if (cmbGrp.Items.Count > 0) cmbGrp.SelectedIndex = 0;
|
||||
//일반사용자의경우에는 상태를 변경하지 못한다.
|
||||
@@ -51,7 +52,7 @@ namespace FBS0000
|
||||
|
||||
RefreshData();
|
||||
}
|
||||
|
||||
|
||||
void Holyday_TableNewRow(object sender, DataTableNewRowEventArgs e)
|
||||
{
|
||||
e.Row["gcode"] = FCOMMON.info.Login.gcode;
|
||||
|
||||
@@ -32,9 +32,11 @@ namespace FBS0000
|
||||
//if (cate == "0") dv1.Rows[e.RowIndex].DefaultCellStyle.ForeColor = Color.Blue;// = Color.Gray;
|
||||
//else dv1.Rows[e.RowIndex].DefaultCellStyle.ForeColor = Color.Black;
|
||||
}
|
||||
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.holyday));
|
||||
//엔터키누르면 아래로 이동하게함ㄷ
|
||||
FarPoint.Win.Spread.InputMap im = this.fpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenFocused);
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using FarPoint.Excel.EntityClassLibrary.DrawingVML;
|
||||
using FarPoint.Win.Spread;
|
||||
using FarPoint.Win.Spread.CellType.BarCode;
|
||||
using FCOMMON;
|
||||
using NetOffice.Extensions.Invoker;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -14,7 +15,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FBS0000
|
||||
{
|
||||
public partial class rHolidaySummary : Form
|
||||
public partial class rHolidaySummary : fBase
|
||||
{
|
||||
public rHolidaySummary()
|
||||
{
|
||||
@@ -25,17 +26,7 @@ namespace FBS0000
|
||||
|
||||
private void rJobReport_Load(object sender, EventArgs e)
|
||||
{
|
||||
// TODO: 이 코드는 데이터를 'dsReport.holydata' 테이블에 로드합니다. 필요 시 이 코드를 이동하거나 제거할 수 있습니다.
|
||||
//this.ta.Fill(this.dsReport.holydata);
|
||||
//this.tbProcess.Items.Clear();
|
||||
//tbProcess.Items.Add("전체");
|
||||
//var taProcess = new dsReportTableAdapters.holydataTableAdapter();
|
||||
//var dtProcessList = taProcess.GetData(FCOMMON.info.Login.gcode);
|
||||
//foreach (dsReport.ProcessListRow dr in dtProcessList.Rows)
|
||||
// tbProcess.Items.Add(dr.processs);
|
||||
|
||||
//this.tbProcess.Text = FCOMMON.info.Login.process;
|
||||
//if (tbProcess.SelectedIndex < 0) tbProcess.SelectedIndex = 0;
|
||||
EnsureVisibleAndUsableSize();
|
||||
|
||||
this.tbMon.Text = DateTime.Now.ToShortDateString();
|
||||
|
||||
@@ -310,22 +301,54 @@ namespace FBS0000
|
||||
for (int i = 0; i < fpSpread1_Sheet1.RowCount; i++)
|
||||
fpSpread1_Sheet1.Cells[i, 0].BackColor = Color.White;
|
||||
|
||||
|
||||
|
||||
for (int i = 4; i <= grpend2; i++)
|
||||
{
|
||||
var colname = fpSpread1_Sheet1.Columns[i - 1].Label;
|
||||
var cellf = fpSpread1_Sheet1.Cells.Get(row, i - 1).CellType;
|
||||
|
||||
|
||||
if (colname.Contains("%") == false)
|
||||
if (colname.Contains("%") == false) //일반 컬럼은 합계를 ㅏㅎㄴ다
|
||||
{
|
||||
fpSpread1_Sheet1.SetFormula(row, i - 1, $"SUM(R1C{i}:R{row}C{i})");
|
||||
}
|
||||
else
|
||||
{
|
||||
fpSpread1_Sheet1.SetFormula(row, i - 1, $"AVERAGE(R1C{i}:R{row}C{i})");
|
||||
fpSpread1_Sheet1.Cells[row, i - 1].CellType = numcell1;
|
||||
var startindex = colname.StartsWith("소진율") ? 2 : 3;
|
||||
//이월
|
||||
var o이월 = fpSpread1_Sheet1.Cells[row, i - (startindex + 4)].Value;
|
||||
//발생
|
||||
var o발생 = fpSpread1_Sheet1.Cells[row, i - (startindex + 3)].Value;
|
||||
//사용
|
||||
var o사용 = fpSpread1_Sheet1.Cells[row, i - (startindex + 2)].Value;
|
||||
//잔여
|
||||
var o잔여 = fpSpread1_Sheet1.Cells[row, i - (startindex + 1)].Value;
|
||||
//초과
|
||||
var o초과 = fpSpread1_Sheet1.Cells[row, i - (startindex + 0)].Value;
|
||||
|
||||
float 이월, 발생, 사용, 잔여, 초과;
|
||||
이월 = o이월 != null ? float.Parse(o이월.ToString()) : 0;
|
||||
발생 = o발생 != null ? float.Parse(o발생.ToString()) : 0;
|
||||
사용 = o사용 != null ? float.Parse(o사용.ToString()) : 0;
|
||||
잔여 = o잔여 != null ? float.Parse(o잔여.ToString()) : 0;
|
||||
초과 = o초과 != null ? float.Parse(o초과.ToString()) : 0;
|
||||
|
||||
|
||||
var 소진율 = 0f;
|
||||
if ((발생 + 이월) != 0) 소진율 = (사용 / (발생 + 이월)) * 100f;
|
||||
var 소진율2 = 0f;
|
||||
if (발생 != 0) 소진율2 = ((사용 - 이월) / 발생) * 100f;
|
||||
|
||||
if (colname.StartsWith("소진율"))
|
||||
{
|
||||
|
||||
fpSpread1_Sheet1.SetValue(row, i - 1, 소진율);//.SetFormula(row, i - 1, $"AVERAGE(R1C{i}:R{row}C{i})");
|
||||
fpSpread1_Sheet1.Cells[row, i - 1].CellType = numcell1;
|
||||
}
|
||||
else
|
||||
{
|
||||
fpSpread1_Sheet1.SetValue(row, i - 1, 소진율2);// fpSpread1_Sheet1.SetFormula(row, i - 1, $"AVERAGE(R1C{i}:R{row}C{i})");
|
||||
fpSpread1_Sheet1.Cells[row, i - 1].CellType = numcell1;
|
||||
}
|
||||
|
||||
//var 발생 = (double)fpSpread1_Sheet1.GetValue(row, i - 1 - 4);
|
||||
//var 사용 = (double)fpSpread1_Sheet1.GetValue(row, i - 1 - 3);
|
||||
//var 사용률 = 0.0;
|
||||
|
||||
1
SubProject/FBS0000/fLovWorkUser.Designer.cs
generated
1
SubProject/FBS0000/fLovWorkUser.Designer.cs
generated
@@ -75,7 +75,6 @@
|
||||
this.arDatagridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.arDatagridView1.Size = new System.Drawing.Size(313, 496);
|
||||
this.arDatagridView1.TabIndex = 0;
|
||||
this.arDatagridView1.DoubleClick += new System.EventHandler(this.arDatagridView1_DoubleClick);
|
||||
this.arDatagridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.arDatagridView1_KeyDown);
|
||||
//
|
||||
// bs
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -9,7 +10,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FBS0000
|
||||
{
|
||||
public partial class fLovWorkUser : Form
|
||||
public partial class fLovWorkUser : fBase
|
||||
{
|
||||
public dsMSSQL.EETGW_WorkTableUserRow dr = null;
|
||||
public fLovWorkUser(List<dsMSSQL.EETGW_WorkTableUserRow> users)
|
||||
@@ -22,16 +23,12 @@ namespace FBS0000
|
||||
|
||||
private void fLovWorkUser_Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
this.Show();
|
||||
Application.DoEvents();
|
||||
this.arDatagridView1.AutoResizeColumns();
|
||||
}
|
||||
|
||||
private void arDatagridView1_DoubleClick(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
private void arDatagridView1_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if(e.KeyCode == Keys.Enter)
|
||||
|
||||
@@ -30,11 +30,13 @@ namespace FBS0000
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
this.Show();
|
||||
Application.DoEvents();
|
||||
|
||||
refreshData();
|
||||
}
|
||||
|
||||
void refreshData()
|
||||
{
|
||||
//refresh data
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FCOMMON;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -9,7 +10,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace FBS0000
|
||||
{
|
||||
public partial class fMinutesDetail : Form
|
||||
public partial class fMinutesDetail : fBase
|
||||
{
|
||||
int idx = -1;
|
||||
public fMinutesDetail(int idx_)
|
||||
@@ -27,13 +28,13 @@ namespace FBS0000
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
this.Show();
|
||||
Application.DoEvents();
|
||||
|
||||
//refresh Data
|
||||
this.ta.FillByIDX(this.dsMSSQL.minutes,this.idx);
|
||||
}
|
||||
|
||||
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
{
|
||||
var f = new FCM0000.fLovProject("");
|
||||
|
||||
Reference in New Issue
Block a user