휴가 승인자 정보 추적
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 chi
					chi