검토기한 항목 추가 , 개인별 스케쥴 현황 변경

This commit is contained in:
chi
2023-02-09 13:38:26 +09:00
parent f5b0e77af3
commit e10610f15f
12 changed files with 1105 additions and 620 deletions

View File

@@ -30,25 +30,25 @@
{
this.components = new System.ComponentModel.Container();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType1 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType2 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType1 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType2 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType2 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType3 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType4 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType5 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType6 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType7 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType8 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType3 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType4 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType8 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType9 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType10 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType11 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType12 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType5 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType6 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType7 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType8 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType12 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType13 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType14 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType15 = new FarPoint.Win.Spread.CellType.TextCellType();
@@ -59,7 +59,9 @@
FarPoint.Win.Spread.CellType.TextCellType textCellType20 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType21 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType22 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType23 = new FarPoint.Win.Spread.CellType.TextCellType();
this.panel1 = new System.Windows.Forms.Panel();
this.tbWW = new System.Windows.Forms.TextBox();
this.btSave = new System.Windows.Forms.Button();
this.cmbUser = new System.Windows.Forms.ComboBox();
this.label4 = new System.Windows.Forms.Label();
@@ -71,7 +73,6 @@
this.ta = new FPJ0000.dsReportTableAdapters.JobReportDayTableAdapter();
this.fp1 = new FarPoint.Win.Spread.FpSpread();
this.fp1_Sheet1 = new FarPoint.Win.Spread.SheetView();
this.tbWW = new System.Windows.Forms.TextBox();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dsReport)).BeginInit();
@@ -96,6 +97,15 @@
this.panel1.Size = new System.Drawing.Size(1114, 58);
this.panel1.TabIndex = 7;
//
// tbWW
//
this.tbWW.Location = new System.Drawing.Point(243, 9);
this.tbWW.Name = "tbWW";
this.tbWW.ReadOnly = true;
this.tbWW.Size = new System.Drawing.Size(62, 21);
this.tbWW.TabIndex = 13;
this.tbWW.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// btSave
//
this.btSave.Dock = System.Windows.Forms.DockStyle.Right;
@@ -193,31 +203,32 @@
this.fp1_Sheet1.SheetName = "Sheet1";
// Formulas and custom names must be loaded with R1C1 reference style
this.fp1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.R1C1;
this.fp1_Sheet1.ColumnCount = 30;
this.fp1_Sheet1.ColumnCount = 31;
this.fp1_Sheet1.ActiveColumnIndex = -1;
this.fp1_Sheet1.ActiveRowIndex = -1;
this.fp1_Sheet1.AutoGenerateColumns = false;
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 0).Value = "IDX";
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 1).ColumnSpan = 8;
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 1).Value = "Basic Info";
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 2).Value = "Process /\r\nEquipment";
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 9).ColumnSpan = 6;
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 9).Value = "Schedule";
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 1).Value = "담당자";
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 2).ColumnSpan = 8;
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 2).Value = "Basic Info";
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 3).Value = "Process /\r\nEquipment";
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 10).ColumnSpan = 6;
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 10).Value = "Schedule";
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 15).ColumnSpan = 4;
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 15).Value = "Effect";
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 16).Value = "Original\r\n($K)";
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 17).StyleName = " ";
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 17).Value = "Input\r\n($K)";
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 18).Value = "Effect\r\n($K)";
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 19).Value = "Budget";
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 20).ColumnSpan = 5;
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 20).Value = "Human Resource";
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 25).ColumnSpan = 2;
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 25).Value = "Comment";
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 11).Value = "Schedule";
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 16).ColumnSpan = 4;
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 16).Value = "Effect";
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 17).Value = "Original\r\n($K)";
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 18).StyleName = " ";
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 18).Value = "Input\r\n($K)";
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 19).Value = "Effect\r\n($K)";
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 20).Value = "Budget";
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 21).ColumnSpan = 5;
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 21).Value = "Human Resource";
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 26).ColumnSpan = 2;
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 26).Value = "Comment";
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 27).ColumnSpan = 3;
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 27).Value = "Ext.Info";
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 27).Value = "Comment";
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 28).ColumnSpan = 3;
this.fp1_Sheet1.ColumnHeader.Cells.Get(0, 28).Value = "Ext.Info";
this.fp1_Sheet1.ColumnHeader.Rows.Get(0).Height = 29F;
this.fp1_Sheet1.Columns.Get(0).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
numberCellType1.DecimalPlaces = 0;
@@ -232,186 +243,182 @@
this.fp1_Sheet1.Columns.Get(0).Locked = true;
this.fp1_Sheet1.Columns.Get(0).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fp1_Sheet1.Columns.Get(0).Width = 28F;
this.fp1_Sheet1.Columns.Get(1).CellType = textCellType1;
this.fp1_Sheet1.Columns.Get(1).DataField = "uname";
this.fp1_Sheet1.Columns.Get(1).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fp1_Sheet1.Columns.Get(1).Label = "담당자";
this.fp1_Sheet1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
numberCellType2.DecimalPlaces = 0;
numberCellType2.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType2.MaximumValue = 2147483647D;
numberCellType2.MinimumValue = -2147483648D;
this.fp1_Sheet1.Columns.Get(1).CellType = numberCellType2;
this.fp1_Sheet1.Columns.Get(1).DataField = "pno";
this.fp1_Sheet1.Columns.Get(1).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fp1_Sheet1.Columns.Get(1).Label = "Basic Info";
this.fp1_Sheet1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fp1_Sheet1.Columns.Get(1).Width = 36F;
this.fp1_Sheet1.Columns.Get(2).AllowAutoFilter = true;
this.fp1_Sheet1.Columns.Get(2).CellType = textCellType1;
this.fp1_Sheet1.Columns.Get(2).DataField = "process";
this.fp1_Sheet1.Columns.Get(2).Label = "Process /\r\nEquipment";
this.fp1_Sheet1.Columns.Get(2).Width = 83F;
this.fp1_Sheet1.Columns.Get(2).CellType = numberCellType2;
this.fp1_Sheet1.Columns.Get(2).DataField = "pno";
this.fp1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fp1_Sheet1.Columns.Get(2).Label = "Basic Info";
this.fp1_Sheet1.Columns.Get(2).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fp1_Sheet1.Columns.Get(2).Width = 36F;
this.fp1_Sheet1.Columns.Get(3).AllowAutoFilter = true;
this.fp1_Sheet1.Columns.Get(3).CellType = textCellType2;
this.fp1_Sheet1.Columns.Get(3).DataField = "ReqSite";
this.fp1_Sheet1.Columns.Get(3).Width = 18F;
this.fp1_Sheet1.Columns.Get(3).DataField = "process";
this.fp1_Sheet1.Columns.Get(3).Label = "Process /\r\nEquipment";
this.fp1_Sheet1.Columns.Get(3).Width = 83F;
this.fp1_Sheet1.Columns.Get(4).CellType = textCellType3;
this.fp1_Sheet1.Columns.Get(4).DataField = "ReqPlant";
this.fp1_Sheet1.Columns.Get(4).Width = 15F;
this.fp1_Sheet1.Columns.Get(4).DataField = "ReqSite";
this.fp1_Sheet1.Columns.Get(4).Width = 18F;
this.fp1_Sheet1.Columns.Get(5).CellType = textCellType4;
this.fp1_Sheet1.Columns.Get(5).DataField = "ReqPackage";
this.fp1_Sheet1.Columns.Get(5).DataField = "ReqPlant";
this.fp1_Sheet1.Columns.Get(5).Width = 15F;
this.fp1_Sheet1.Columns.Get(6).CellType = textCellType5;
this.fp1_Sheet1.Columns.Get(6).DataField = "ReqLine";
this.fp1_Sheet1.Columns.Get(6).Width = 17F;
this.fp1_Sheet1.Columns.Get(6).DataField = "ReqPackage";
this.fp1_Sheet1.Columns.Get(6).Width = 15F;
this.fp1_Sheet1.Columns.Get(7).CellType = textCellType6;
this.fp1_Sheet1.Columns.Get(7).DataField = "part";
this.fp1_Sheet1.Columns.Get(7).Width = 18F;
this.fp1_Sheet1.Columns.Get(7).DataField = "ReqLine";
this.fp1_Sheet1.Columns.Get(7).Width = 17F;
this.fp1_Sheet1.Columns.Get(8).CellType = textCellType7;
this.fp1_Sheet1.Columns.Get(8).DataField = "name";
this.fp1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fp1_Sheet1.Columns.Get(8).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fp1_Sheet1.Columns.Get(8).Width = 12F;
this.fp1_Sheet1.Columns.Get(8).DataField = "part";
this.fp1_Sheet1.Columns.Get(8).Width = 18F;
this.fp1_Sheet1.Columns.Get(9).CellType = textCellType8;
this.fp1_Sheet1.Columns.Get(9).DataField = "name";
this.fp1_Sheet1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fp1_Sheet1.Columns.Get(9).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fp1_Sheet1.Columns.Get(9).Width = 12F;
numberCellType3.DecimalPlaces = 0;
numberCellType3.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType3.MaximumValue = 2147483647D;
numberCellType3.MinimumValue = -2147483648D;
this.fp1_Sheet1.Columns.Get(9).CellType = numberCellType3;
this.fp1_Sheet1.Columns.Get(9).DataField = "finishrate";
this.fp1_Sheet1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fp1_Sheet1.Columns.Get(9).Label = "Schedule";
this.fp1_Sheet1.Columns.Get(9).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fp1_Sheet1.Columns.Get(9).Width = 58F;
numberCellType4.DecimalPlaces = 0;
numberCellType4.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType4.MaximumValue = 2147483647D;
numberCellType4.MinimumValue = -2147483648D;
this.fp1_Sheet1.Columns.Get(10).CellType = numberCellType4;
this.fp1_Sheet1.Columns.Get(10).DataField = "ProgressPrj";
this.fp1_Sheet1.Columns.Get(10).CellType = numberCellType3;
this.fp1_Sheet1.Columns.Get(10).DataField = "finishrate";
this.fp1_Sheet1.Columns.Get(10).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fp1_Sheet1.Columns.Get(10).Label = "Schedule";
this.fp1_Sheet1.Columns.Get(10).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fp1_Sheet1.Columns.Get(10).Width = 58F;
this.fp1_Sheet1.Columns.Get(11).CellType = textCellType8;
this.fp1_Sheet1.Columns.Get(11).DataField = "status";
numberCellType4.DecimalPlaces = 0;
numberCellType4.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType4.MaximumValue = 2147483647D;
numberCellType4.MinimumValue = -2147483648D;
this.fp1_Sheet1.Columns.Get(11).CellType = numberCellType4;
this.fp1_Sheet1.Columns.Get(11).DataField = "ProgressPrj";
this.fp1_Sheet1.Columns.Get(11).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fp1_Sheet1.Columns.Get(11).Tag = "Status";
this.fp1_Sheet1.Columns.Get(11).Label = "Schedule";
this.fp1_Sheet1.Columns.Get(11).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fp1_Sheet1.Columns.Get(11).Width = 15F;
this.fp1_Sheet1.Columns.Get(11).Width = 58F;
this.fp1_Sheet1.Columns.Get(12).CellType = textCellType9;
this.fp1_Sheet1.Columns.Get(12).DataField = "sdate";
this.fp1_Sheet1.Columns.Get(12).DataField = "status";
this.fp1_Sheet1.Columns.Get(12).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fp1_Sheet1.Columns.Get(12).Tag = "Status";
this.fp1_Sheet1.Columns.Get(12).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fp1_Sheet1.Columns.Get(12).Width = 20F;
this.fp1_Sheet1.Columns.Get(12).Width = 15F;
this.fp1_Sheet1.Columns.Get(13).CellType = textCellType10;
this.fp1_Sheet1.Columns.Get(13).DataField = "ddate";
this.fp1_Sheet1.Columns.Get(13).DataField = "sdate";
this.fp1_Sheet1.Columns.Get(13).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fp1_Sheet1.Columns.Get(13).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fp1_Sheet1.Columns.Get(13).Width = 18F;
this.fp1_Sheet1.Columns.Get(13).Width = 20F;
this.fp1_Sheet1.Columns.Get(14).CellType = textCellType11;
this.fp1_Sheet1.Columns.Get(14).DataField = "edate";
this.fp1_Sheet1.Columns.Get(14).DataField = "ddate";
this.fp1_Sheet1.Columns.Get(14).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fp1_Sheet1.Columns.Get(14).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fp1_Sheet1.Columns.Get(14).Width = 18F;
this.fp1_Sheet1.Columns.Get(15).CellType = textCellType12;
this.fp1_Sheet1.Columns.Get(15).DataField = "edate";
this.fp1_Sheet1.Columns.Get(15).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fp1_Sheet1.Columns.Get(15).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fp1_Sheet1.Columns.Get(15).Width = 18F;
numberCellType5.DecimalPlaces = 0;
numberCellType5.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType5.MaximumValue = 2147483647D;
numberCellType5.MinimumValue = -2147483648D;
this.fp1_Sheet1.Columns.Get(15).CellType = numberCellType5;
this.fp1_Sheet1.Columns.Get(15).DataField = "cnt";
this.fp1_Sheet1.Columns.Get(15).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fp1_Sheet1.Columns.Get(15).Label = "Effect";
this.fp1_Sheet1.Columns.Get(15).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fp1_Sheet1.Columns.Get(15).Width = 39F;
this.fp1_Sheet1.Columns.Get(16).CellType = numberCellType5;
this.fp1_Sheet1.Columns.Get(16).DataField = "cnt";
this.fp1_Sheet1.Columns.Get(16).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fp1_Sheet1.Columns.Get(16).Label = "Effect";
this.fp1_Sheet1.Columns.Get(16).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fp1_Sheet1.Columns.Get(16).Width = 39F;
numberCellType6.MaximumValue = 999999999999999D;
numberCellType6.MinimumValue = -999999999999999D;
this.fp1_Sheet1.Columns.Get(16).CellType = numberCellType6;
this.fp1_Sheet1.Columns.Get(16).DataField = "costo";
this.fp1_Sheet1.Columns.Get(16).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fp1_Sheet1.Columns.Get(16).Label = "Original\r\n($K)";
this.fp1_Sheet1.Columns.Get(16).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fp1_Sheet1.Columns.Get(16).Width = 51F;
this.fp1_Sheet1.Columns.Get(17).CellType = numberCellType6;
this.fp1_Sheet1.Columns.Get(17).DataField = "costo";
this.fp1_Sheet1.Columns.Get(17).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fp1_Sheet1.Columns.Get(17).Label = "Original\r\n($K)";
this.fp1_Sheet1.Columns.Get(17).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fp1_Sheet1.Columns.Get(17).Width = 51F;
numberCellType7.MaximumValue = 999999999999999D;
numberCellType7.MinimumValue = -999999999999999D;
this.fp1_Sheet1.Columns.Get(17).CellType = numberCellType7;
this.fp1_Sheet1.Columns.Get(17).DataField = "costn";
this.fp1_Sheet1.Columns.Get(17).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fp1_Sheet1.Columns.Get(17).Label = "Input\r\n($K)";
this.fp1_Sheet1.Columns.Get(17).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fp1_Sheet1.Columns.Get(17).Width = 37F;
this.fp1_Sheet1.Columns.Get(18).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.fp1_Sheet1.Columns.Get(18).CellType = numberCellType7;
this.fp1_Sheet1.Columns.Get(18).DataField = "costn";
this.fp1_Sheet1.Columns.Get(18).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fp1_Sheet1.Columns.Get(18).Label = "Input\r\n($K)";
this.fp1_Sheet1.Columns.Get(18).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fp1_Sheet1.Columns.Get(18).Width = 37F;
this.fp1_Sheet1.Columns.Get(19).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
numberCellType8.MaximumValue = 999999999999999D;
numberCellType8.MinimumValue = -999999999999999D;
this.fp1_Sheet1.Columns.Get(18).CellType = numberCellType8;
this.fp1_Sheet1.Columns.Get(18).DataField = "coste";
this.fp1_Sheet1.Columns.Get(18).ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.fp1_Sheet1.Columns.Get(18).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fp1_Sheet1.Columns.Get(18).Label = "Effect\r\n($K)";
this.fp1_Sheet1.Columns.Get(18).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fp1_Sheet1.Columns.Get(18).Width = 39F;
this.fp1_Sheet1.Columns.Get(19).CellType = textCellType12;
this.fp1_Sheet1.Columns.Get(19).DataField = "orderno";
this.fp1_Sheet1.Columns.Get(19).Label = "Budget";
this.fp1_Sheet1.Columns.Get(19).Width = 47F;
this.fp1_Sheet1.Columns.Get(19).CellType = numberCellType8;
this.fp1_Sheet1.Columns.Get(19).DataField = "coste";
this.fp1_Sheet1.Columns.Get(19).ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.fp1_Sheet1.Columns.Get(19).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fp1_Sheet1.Columns.Get(19).Label = "Effect\r\n($K)";
this.fp1_Sheet1.Columns.Get(19).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fp1_Sheet1.Columns.Get(19).Width = 39F;
this.fp1_Sheet1.Columns.Get(20).CellType = textCellType13;
this.fp1_Sheet1.Columns.Get(20).DataField = "name_software";
this.fp1_Sheet1.Columns.Get(20).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fp1_Sheet1.Columns.Get(20).Label = "Human Resource";
this.fp1_Sheet1.Columns.Get(20).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fp1_Sheet1.Columns.Get(20).Width = 57F;
this.fp1_Sheet1.Columns.Get(20).DataField = "orderno";
this.fp1_Sheet1.Columns.Get(20).Label = "Budget";
this.fp1_Sheet1.Columns.Get(20).Width = 47F;
this.fp1_Sheet1.Columns.Get(21).CellType = textCellType14;
this.fp1_Sheet1.Columns.Get(21).DataField = "name_design";
this.fp1_Sheet1.Columns.Get(21).DataField = "name_software";
this.fp1_Sheet1.Columns.Get(21).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fp1_Sheet1.Columns.Get(21).Label = "Human Resource";
this.fp1_Sheet1.Columns.Get(21).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fp1_Sheet1.Columns.Get(21).Width = 17F;
this.fp1_Sheet1.Columns.Get(21).Width = 57F;
this.fp1_Sheet1.Columns.Get(22).CellType = textCellType15;
this.fp1_Sheet1.Columns.Get(22).DataField = "name_assembly";
this.fp1_Sheet1.Columns.Get(22).DataField = "name_design";
this.fp1_Sheet1.Columns.Get(22).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fp1_Sheet1.Columns.Get(22).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fp1_Sheet1.Columns.Get(22).Width = 20F;
this.fp1_Sheet1.Columns.Get(22).Width = 17F;
this.fp1_Sheet1.Columns.Get(23).CellType = textCellType16;
this.fp1_Sheet1.Columns.Get(23).DataField = "name_epanel";
this.fp1_Sheet1.Columns.Get(23).DataField = "name_assembly";
this.fp1_Sheet1.Columns.Get(23).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fp1_Sheet1.Columns.Get(23).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fp1_Sheet1.Columns.Get(23).Width = 16F;
this.fp1_Sheet1.Columns.Get(23).Width = 20F;
this.fp1_Sheet1.Columns.Get(24).CellType = textCellType17;
this.fp1_Sheet1.Columns.Get(24).DataField = "name_champion";
this.fp1_Sheet1.Columns.Get(24).DataField = "name_epanel";
this.fp1_Sheet1.Columns.Get(24).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fp1_Sheet1.Columns.Get(24).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fp1_Sheet1.Columns.Get(24).Width = 16F;
this.fp1_Sheet1.Columns.Get(25).CellType = textCellType18;
this.fp1_Sheet1.Columns.Get(25).DataField = "lasthistory";
this.fp1_Sheet1.Columns.Get(25).Label = "Comment";
this.fp1_Sheet1.Columns.Get(25).Width = 59F;
this.fp1_Sheet1.Columns.Get(25).DataField = "name_champion";
this.fp1_Sheet1.Columns.Get(25).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fp1_Sheet1.Columns.Get(25).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fp1_Sheet1.Columns.Get(25).Width = 16F;
this.fp1_Sheet1.Columns.Get(26).CellType = textCellType19;
this.fp1_Sheet1.Columns.Get(26).DataField = "memo";
this.fp1_Sheet1.Columns.Get(26).DataField = "lasthistory";
this.fp1_Sheet1.Columns.Get(26).Label = "Comment";
this.fp1_Sheet1.Columns.Get(26).Width = 63F;
this.fp1_Sheet1.Columns.Get(26).Width = 59F;
this.fp1_Sheet1.Columns.Get(27).CellType = textCellType20;
this.fp1_Sheet1.Columns.Get(27).DataField = "asset";
this.fp1_Sheet1.Columns.Get(27).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fp1_Sheet1.Columns.Get(27).Label = "Ext.Info";
this.fp1_Sheet1.Columns.Get(27).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fp1_Sheet1.Columns.Get(27).Width = 49F;
this.fp1_Sheet1.Columns.Get(27).DataField = "memo";
this.fp1_Sheet1.Columns.Get(27).Label = "Comment";
this.fp1_Sheet1.Columns.Get(27).Width = 63F;
this.fp1_Sheet1.Columns.Get(28).CellType = textCellType21;
this.fp1_Sheet1.Columns.Get(28).DataField = "model";
this.fp1_Sheet1.Columns.Get(28).DataField = "asset";
this.fp1_Sheet1.Columns.Get(28).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fp1_Sheet1.Columns.Get(28).Label = "Ext.Info";
this.fp1_Sheet1.Columns.Get(28).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fp1_Sheet1.Columns.Get(28).Width = 25F;
this.fp1_Sheet1.Columns.Get(28).Width = 49F;
this.fp1_Sheet1.Columns.Get(29).CellType = textCellType22;
this.fp1_Sheet1.Columns.Get(29).DataField = "serial";
this.fp1_Sheet1.Columns.Get(29).DataField = "model";
this.fp1_Sheet1.Columns.Get(29).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fp1_Sheet1.Columns.Get(29).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fp1_Sheet1.Columns.Get(29).Width = 26F;
this.fp1_Sheet1.Columns.Get(29).Width = 25F;
this.fp1_Sheet1.Columns.Get(30).CellType = textCellType23;
this.fp1_Sheet1.Columns.Get(30).DataField = "serial";
this.fp1_Sheet1.Columns.Get(30).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fp1_Sheet1.Columns.Get(30).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fp1_Sheet1.Columns.Get(30).Width = 26F;
this.fp1_Sheet1.DataAutoSizeColumns = false;
this.fp1_Sheet1.DataSource = this.bs;
this.fp1_Sheet1.RowHeader.Columns.Default.Resizable = false;
this.fp1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
//
// tbWW
//
this.tbWW.Location = new System.Drawing.Point(243, 9);
this.tbWW.Name = "tbWW";
this.tbWW.ReadOnly = true;
this.tbWW.Size = new System.Drawing.Size(62, 21);
this.tbWW.TabIndex = 13;
this.tbWW.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// rJobReportPrjSche
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -444,7 +451,7 @@
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button btRefresh;
private FarPoint.Win.Spread.FpSpread fp1;
private FarPoint.Win.Spread.SheetView fp1_Sheet1;
private System.Windows.Forms.TextBox tbWW;
private FarPoint.Win.Spread.SheetView fp1_Sheet1;
}
}

View File

@@ -37,9 +37,9 @@ namespace FPJ0000.JobReport_
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;
//this.tbProcess.Text = FCOMMON.info.Login.process;
tbProcess.SelectedIndex = 0;
tbProcess.Enabled = false;
//사용자 목록을 선택한다
UpdateUserList();
@@ -51,7 +51,7 @@ namespace FPJ0000.JobReport_
var ta = new dsPRJTableAdapters.vJobReportForUserListTableAdapter();
cmbUser.Items.Clear();
cmbUser.Items.Add("--전체--"); ;
//일반사용자 목록 가져온다
dsPRJ.vJobReportForUserListDataTable userlist;
@@ -75,7 +75,7 @@ namespace FPJ0000.JobReport_
cmbUser.Items.Add(String.Format("[{0}] {1}", dr.id, dr.name));
}
if (tbProcess.SelectedIndex > 0)
//if (tbProcess.SelectedIndex > 0)
cmbUser.Text = string.Format("[{0}] {1}", FCOMMON.info.Login.no, FCOMMON.info.Login.nameK);
if (cmbUser.SelectedIndex < 0 && cmbUser.Items.Count > 0) cmbUser.SelectedIndex = 0; //기본전체로 선택해준다.
@@ -93,10 +93,44 @@ namespace FPJ0000.JobReport_
var taH = new dsReportTableAdapters.UserScheduleTableTableAdapter();
var username = cmbUser.Text.Trim();
var userfilter = "%";
var uid = string.Empty;
if (cmbUser.SelectedIndex > 0)
{
uid = username.Substring(1, username.IndexOf("]") - 1);// "395552";
userfilter = cmbUser.SelectedIndex == 0 ? "%" : "%" + uid + "%";
}
var uid = username.Substring(1, username.IndexOf("]") - 1);// "395552";
taH.Fill(this.dsReport.UserScheduleTable, FCOMMON.info.Login.gcode, userfilter);
//담당자별로 데이터를 쪼개야한다 230209
var dtnew = new dsReport.UserScheduleTableDataTable();
foreach (dsReport.UserScheduleTableRow dr in dsReport.UserScheduleTable)
{
var userlist = dr.uid.Replace(",", "/").Split(new char[] { '/' }, StringSplitOptions.RemoveEmptyEntries);
var namelist = dr.uidname.Replace(",", "/").Split(new char[] { '/' }, StringSplitOptions.RemoveEmptyEntries);
for (int i = 0; i < userlist.Length; i++)
{
var userid = userlist[i];
if (uid.isEmpty() == false && uid.Equals(userid) == false) continue;
var usernm = namelist[i];
//모든 컬럼의 데이터를 쓴다 단 idx는 제외한다
var newdr = dtnew.NewUserScheduleTableRow();
newdr.idx = dtnew.Rows.Count;
newdr.uid = userid;
newdr.uidname = usernm;
foreach (DataColumn dc in dtnew.Columns)
{
var colname = dc.ColumnName.ToLower();
if (colname.Equals("idx")) continue;
if (colname.Equals("uid")) continue;
if (colname.Equals("uidname")) continue;
newdr[colname] = dr[colname];
}
dtnew.AddUserScheduleTableRow(newdr);
}
}
taH.Fill(this.dsReport.UserScheduleTable, FCOMMON.info.Login.gcode, "%" + uid + "%");
//this.reportViewer1.SetDisplayMode(Microsoft.Reporting.WinForms.DisplayMode.PrintLayout);
//this.reportViewer1.ZoomMode = Microsoft.Reporting.WinForms.ZoomMode.PageWidth;
//this.reportViewer1.RefreshReport();
@@ -110,7 +144,9 @@ namespace FPJ0000.JobReport_
var colidx = 0;
fp1.ActiveSheet.Columns.Add(colidx, 1); fp1.ActiveSheet.Columns[colidx++].Label = "*";
fp1.ActiveSheet.Columns.Add(colidx, 1); fp1.ActiveSheet.Columns[colidx++].Label = "공정";
fp1.ActiveSheet.Columns.Add(colidx, 1); fp1.ActiveSheet.Columns[colidx++].Label = "담당자";
fp1.ActiveSheet.Columns.Add(colidx, 1); fp1.ActiveSheet.Columns[colidx++].Label = "상태";
fp1.ActiveSheet.Columns.Add(colidx, 1); fp1.ActiveSheet.Columns[colidx++].Label = "프로젝트";
fp1.ActiveSheet.Columns.Add(colidx, 1); fp1.ActiveSheet.Columns[colidx++].Label = "시작";
fp1.ActiveSheet.Columns.Add(colidx, 1); fp1.ActiveSheet.Columns[colidx++].Label = "만료";
@@ -129,7 +165,7 @@ namespace FPJ0000.JobReport_
List<int> wwlist = new List<int>();
wwlist.Add(curww);
int ww = 0;
foreach (dsReport.UserScheduleTableRow dr in dsReport.UserScheduleTable.Rows)
foreach (dsReport.UserScheduleTableRow dr in dtnew)
{
if (dr.sw.Equals("00-00") == false)
{
@@ -183,100 +219,129 @@ namespace FPJ0000.JobReport_
colidx += 1;
}
//프로젝트별로 데이터를 표시한다.
var grp_list = dsReport.UserScheduleTable.GroupBy(t => t.name).OrderBy(t => t.Key);
//사용자별로 그룹을 먼저 짓는다
var ridx = 0;
foreach (var grp in grp_list)
var grp_prc = dtnew.GroupBy(t => t.userprocess).OrderBy(t => t.Key);
foreach (var prc in grp_prc)
{
var prjname = grp.Key;
var sdate = grp.Max(t => t.sdate);
var ddate = grp.Max(t => t.ddate);
//string[] columns = new string[dv1.ColumnCount];
var row = 0;
//columns[row++] = grp.Max(t => t.idx).ToString();
//columns[row++] = prjname;
//columns[row++] = sdate;
//columns[row++] = ddate;
var cidx = 0;
fp1.ActiveSheet.RowCount += 1;//.AddRows(ridx, 1);
var ctdef = new FarPoint.Win.Spread.CellType.TextCellType();
ctdef.WordWrap = true;
ctdef.Multiline = true;
fp1.ActiveSheet.Cells[ridx, cidx].CellType = ctdef; fp1.ActiveSheet.Cells[ridx, cidx].VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; fp1.ActiveSheet.Cells[ridx, cidx++].Value = grp.Max(t => t.idx);
fp1.ActiveSheet.Cells[ridx, cidx].CellType = ctdef; fp1.ActiveSheet.Cells[ridx, cidx].VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; fp1.ActiveSheet.Cells[ridx, cidx++].Value = prjname;
fp1.ActiveSheet.Cells[ridx, cidx].CellType = ctdef; fp1.ActiveSheet.Cells[ridx, cidx].VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; fp1.ActiveSheet.Cells[ridx, cidx++].Value = sdate;
fp1.ActiveSheet.Cells[ridx, cidx].CellType = ctdef; fp1.ActiveSheet.Cells[ridx, cidx].VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; fp1.ActiveSheet.Cells[ridx, cidx++].Value = ddate;
//세부항목데이터를 넣는다
foreach (var dr in grp)
var grp_user = prc.GroupBy(t => t.uid).OrderBy(t => t.Key);
foreach (var user in grp_user)
{
//예측일
var sw = dr.sw;
if (sw.Equals("00-00")) continue;
var ew = dr.ew;
if (ew.Equals("00-00")) continue;
var isw = int.Parse(sw.Replace("-", ""));
var iew = int.Parse(ew.Replace("-", ""));
bool first = true;
int startcol = -1;
int endcol = -1;
for (int i = 4; i < fp1.ActiveSheet.ColumnCount; i++)
//프로젝트별로 데이터를 표시한다.
var grp_list = user.GroupBy(t => t.name).OrderBy(t => t.Key);
foreach (var grp in grp_list)
{
var col = fp1.ActiveSheet.Columns[i];
if (col.Tag == null) continue;
var colno = int.Parse(col.Tag.ToString());
if (colno >= isw && colno <= iew)
var prjname = grp.Key;
var sdate = grp.Max(t => t.sdate);
var ddate = grp.Max(t => t.ddate);
var uname = grp.Max(t => t.uidname);
var status = grp.Max(t => t.status);
//string[] columns = new string[dv1.ColumnCount];
var row = 0;
//columns[row++] = grp.Max(t => t.idx).ToString();
//columns[row++] = prjname;
//columns[row++] = sdate;
//columns[row++] = ddate;
var cidx = 0;
fp1.ActiveSheet.RowCount += 1;//.AddRows(ridx, 1);
var ctdef = new FarPoint.Win.Spread.CellType.TextCellType();
ctdef.WordWrap = true;
ctdef.Multiline = true;
fp1.ActiveSheet.Cells[ridx, cidx].CellType = ctdef; fp1.ActiveSheet.Cells[ridx, cidx].VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; fp1.ActiveSheet.Cells[ridx, cidx++].Value = prc.Key;
fp1.ActiveSheet.Cells[ridx, cidx].CellType = ctdef; fp1.ActiveSheet.Cells[ridx, cidx].VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; fp1.ActiveSheet.Cells[ridx, cidx++].Value = uname;
if (status.Equals("진행"))
{
// columns[i] = "O";
if (dr.complete || dr.progress > 99)
fp1.ActiveSheet.Cells[ridx, i].BackColor = Color.Lime;
else if (dr.progress < 50)
fp1.ActiveSheet.Cells[ridx, i].BackColor = Color.Tomato;
else
fp1.ActiveSheet.Cells[ridx, i].BackColor = Color.Gold;
if (first)
{
fp1.ActiveSheet.Cells[ridx, i].Value = dr.title + "\n" + dr.progress.ToString("N0") + "%";
fp1.ActiveSheet.Cells[ridx, i].Note = dr.title + "\n" + dr.progress.ToString("N0") + "%";
first = false;
startcol = i;
}
else
{
endcol = i;
}
fp1.ActiveSheet.Cells[ridx, cidx].BackColor = Color.White;
fp1.ActiveSheet.Cells[ridx, cidx+1].BackColor = Color.White;
}
else if (status.Equals("검토"))
{
fp1.ActiveSheet.Cells[ridx, cidx].BackColor = Color.SkyBlue;
fp1.ActiveSheet.Cells[ridx, cidx+1].BackColor = Color.SkyBlue;
}
fp1.ActiveSheet.Cells[ridx, i].HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
fp1.ActiveSheet.Cells[ridx, i].VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
fp1.ActiveSheet.Cells[ridx, i].Font = new Font("맑은 고딕", 7);
fp1.ActiveSheet.Cells[ridx, i].CellType = ctdef;
}
if (startcol != -1 && endcol != -1)
{
fp1.ActiveSheet.AddSpanCell(ridx, startcol, 1, (endcol - startcol + 1));
// fp1.ActiveSheet.Cells[ridx, startcol].CellType = ctdef;
}
fp1.ActiveSheet.Cells[ridx, cidx].CellType = ctdef; fp1.ActiveSheet.Cells[ridx, cidx].VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; fp1.ActiveSheet.Cells[ridx, cidx++].Value = status;// grp.Max(t => t.idx);
fp1.ActiveSheet.Cells[ridx, cidx].CellType = ctdef; fp1.ActiveSheet.Cells[ridx, cidx].VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; fp1.ActiveSheet.Cells[ridx, cidx++].Value = prjname;
fp1.ActiveSheet.Cells[ridx, cidx].CellType = ctdef; fp1.ActiveSheet.Cells[ridx, cidx].VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; fp1.ActiveSheet.Cells[ridx, cidx++].Value = sdate;
fp1.ActiveSheet.Cells[ridx, cidx].CellType = ctdef; fp1.ActiveSheet.Cells[ridx, cidx].VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; fp1.ActiveSheet.Cells[ridx, cidx++].Value = ddate;
//세부항목데이터를 넣는다
foreach (var dr in grp)
{
//예측일
var sw = dr.sw;
if (sw.Equals("00-00")) continue;
var ew = dr.ew;
if (ew.Equals("00-00")) continue;
var isw = int.Parse(sw.Replace("-", ""));
var iew = int.Parse(ew.Replace("-", ""));
bool first = true;
int startcol = -1;
int endcol = -1;
for (int i = 4; i < fp1.ActiveSheet.ColumnCount; i++)
{
var col = fp1.ActiveSheet.Columns[i];
if (col.Tag == null) continue;
var colno = int.Parse(col.Tag.ToString());
if (colno >= isw && colno <= iew)
{
// columns[i] = "O";
if (dr.complete || dr.progress > 99)
fp1.ActiveSheet.Cells[ridx, i].BackColor = Color.Lime;
else if (dr.progress < 50)
fp1.ActiveSheet.Cells[ridx, i].BackColor = Color.Tomato;
else
fp1.ActiveSheet.Cells[ridx, i].BackColor = Color.Gold;
if (first)
{
fp1.ActiveSheet.Cells[ridx, i].Value = dr.title + "\n" + dr.progress.ToString("N0") + "%";
fp1.ActiveSheet.Cells[ridx, i].Note = dr.title + "\n" + dr.progress.ToString("N0") + "%";
first = false;
startcol = i;
}
else
{
endcol = i;
}
}
fp1.ActiveSheet.Cells[ridx, i].HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
fp1.ActiveSheet.Cells[ridx, i].VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
fp1.ActiveSheet.Cells[ridx, i].Font = new Font("맑은 고딕", 7);
fp1.ActiveSheet.Cells[ridx, i].CellType = ctdef;
}
if (startcol != -1 && endcol != -1)
{
fp1.ActiveSheet.AddSpanCell(ridx, startcol, 1, (endcol - startcol + 1));
// fp1.ActiveSheet.Cells[ridx, startcol].CellType = ctdef;
}
}
// dv1.Rows.Add(columns);
ridx += 1;
}
}
// dv1.Rows.Add(columns);
ridx += 1;
}
fp1.ActiveSheet.AllowNoteEdit = true;
fp1.ActiveSheet.AutoUpdateNotes = true;
for (int i = 0; i < fp1.ActiveSheet.RowCount; i++)
@@ -284,10 +349,12 @@ namespace FPJ0000.JobReport_
fp1.ActiveSheet.Rows[i].Height = 40;
}
fp1.ActiveSheet.Columns[0].Width = 35;
fp1.ActiveSheet.Columns[1].Width = 250;
fp1.ActiveSheet.Columns[2].Width = 75;
fp1.ActiveSheet.Columns[3].Width = 75;
fp1.ActiveSheet.Columns[0].Width = 90;
fp1.ActiveSheet.Columns[1].Width = 50;
fp1.ActiveSheet.Columns[2].Width = 35;
fp1.ActiveSheet.Columns[3].Width = 250;
fp1.ActiveSheet.Columns[4].Width = 75;
fp1.ActiveSheet.Columns[5].Width = 75;
return;