휴가 승인자 정보 추적

This commit is contained in:
chi
2024-05-08 14:53:55 +09:00
parent 7eb2dbd2cd
commit e4f8981491
201 changed files with 1355 additions and 3219 deletions

View File

@@ -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;