This commit is contained in:
chi
2023-01-16 22:53:29 +09:00
parent 913ae6b261
commit e487cdb3e3
20 changed files with 1527 additions and 2218 deletions

View File

@@ -29,6 +29,36 @@
private void InitializeComponent()
{
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.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.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.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();
FarPoint.Win.Spread.CellType.TextCellType textCellType16 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType17 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType18 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType19 = new FarPoint.Win.Spread.CellType.TextCellType();
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();
this.panel1 = new System.Windows.Forms.Panel();
this.btSave = new System.Windows.Forms.Button();
this.cmbUser = new System.Windows.Forms.ComboBox();
@@ -37,13 +67,22 @@
this.label1 = new System.Windows.Forms.Label();
this.btRefresh = new System.Windows.Forms.Button();
this.dv1 = new arCtl.arDatagridView();
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.bs = new System.Windows.Forms.BindingSource(this.components);
this.dsReport = new FPJ0000.dsReport();
this.ta = new FPJ0000.dsReportTableAdapters.JobReportDayTableAdapter();
this.fp1 = new FarPoint.Win.Spread.FpSpread();
this.fp1_Sheet1 = new FarPoint.Win.Spread.SheetView();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dv1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dsReport)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.fp1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.fp1_Sheet1)).BeginInit();
this.SuspendLayout();
//
// panel1
@@ -132,14 +171,50 @@
this.dv1.AllowUserToAddRows = false;
this.dv1.AllowUserToDeleteRows = false;
this.dv1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dv1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dv1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Column1,
this.Column2,
this.Column3,
this.Column4,
this.Column5});
this.dv1.Dock = System.Windows.Forms.DockStyle.Top;
this.dv1.Location = new System.Drawing.Point(0, 58);
this.dv1.Name = "dv1";
this.dv1.ReadOnly = true;
this.dv1.RowTemplate.Height = 23;
this.dv1.Size = new System.Drawing.Size(1114, 641);
this.dv1.Size = new System.Drawing.Size(1114, 219);
this.dv1.TabIndex = 1;
//
// Column1
//
this.Column1.HeaderText = "Column1";
this.Column1.Name = "Column1";
this.Column1.ReadOnly = true;
//
// Column2
//
this.Column2.HeaderText = "Column2";
this.Column2.Name = "Column2";
this.Column2.ReadOnly = true;
//
// Column3
//
this.Column3.HeaderText = "Column3";
this.Column3.Name = "Column3";
this.Column3.ReadOnly = true;
//
// Column4
//
this.Column4.HeaderText = "Column4";
this.Column4.Name = "Column4";
this.Column4.ReadOnly = true;
//
// Column5
//
this.Column5.HeaderText = "Column5";
this.Column5.Name = "Column5";
this.Column5.ReadOnly = true;
//
// bs
//
this.bs.DataMember = "JobReportDay";
@@ -154,11 +229,256 @@
//
this.ta.ClearBeforeFill = true;
//
// fp1
//
this.fp1.AccessibleDescription = "";
this.fp1.AutoFitColumnOptions = FarPoint.Win.Spread.PreferredSizeColumnOptions.IncludeAll;
this.fp1.AutoFitRowOptions = FarPoint.Win.Spread.PreferredSizeRowOptions.IncludeAll;
this.fp1.Dock = System.Windows.Forms.DockStyle.Fill;
this.fp1.EditModeReplace = true;
this.fp1.Font = new System.Drawing.Font("맑은 고딕", 9F);
this.fp1.Location = new System.Drawing.Point(0, 277);
this.fp1.Name = "fp1";
this.fp1.Sheets.AddRange(new FarPoint.Win.Spread.SheetView[] {
this.fp1_Sheet1});
this.fp1.Size = new System.Drawing.Size(1114, 422);
this.fp1.StatusBarVisible = true;
this.fp1.TabIndex = 8;
//
// fp1_Sheet1
//
this.fp1_Sheet1.Reset();
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.ActiveColumnIndex = -1;
this.fp1_Sheet1.ActiveRowIndex = -1;
this.fp1_Sheet1.AutoGenerateColumns = false;
this.fp1_Sheet1.ColumnFooter.DefaultStyle.BackColor = System.Drawing.Color.Empty;
this.fp1_Sheet1.ColumnFooter.DefaultStyle.ForeColor = System.Drawing.Color.Empty;
this.fp1_Sheet1.ColumnFooterSheetCornerStyle.BackColor = System.Drawing.Color.Empty;
this.fp1_Sheet1.ColumnFooterSheetCornerStyle.ForeColor = System.Drawing.Color.Empty;
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, 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, 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.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;
numberCellType1.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType1.MaximumValue = 2147483647D;
numberCellType1.MinimumValue = -2147483648D;
this.fp1_Sheet1.Columns.Get(0).CellType = numberCellType1;
this.fp1_Sheet1.Columns.Get(0).DataField = "idx";
this.fp1_Sheet1.Columns.Get(0).ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.fp1_Sheet1.Columns.Get(0).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fp1_Sheet1.Columns.Get(0).Label = "IDX";
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;
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(3).CellType = textCellType2;
this.fp1_Sheet1.Columns.Get(3).DataField = "ReqSite";
this.fp1_Sheet1.Columns.Get(3).Width = 18F;
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(5).CellType = textCellType4;
this.fp1_Sheet1.Columns.Get(5).DataField = "ReqPackage";
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(7).CellType = textCellType6;
this.fp1_Sheet1.Columns.Get(7).DataField = "part";
this.fp1_Sheet1.Columns.Get(7).Width = 18F;
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;
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).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";
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).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fp1_Sheet1.Columns.Get(11).Width = 15F;
this.fp1_Sheet1.Columns.Get(12).CellType = textCellType9;
this.fp1_Sheet1.Columns.Get(12).DataField = "sdate";
this.fp1_Sheet1.Columns.Get(12).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
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(13).CellType = textCellType10;
this.fp1_Sheet1.Columns.Get(13).DataField = "ddate";
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(14).CellType = textCellType11;
this.fp1_Sheet1.Columns.Get(14).DataField = "edate";
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;
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;
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;
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)))));
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(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(21).CellType = textCellType14;
this.fp1_Sheet1.Columns.Get(21).DataField = "name_design";
this.fp1_Sheet1.Columns.Get(21).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
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(22).CellType = textCellType15;
this.fp1_Sheet1.Columns.Get(22).DataField = "name_assembly";
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(23).CellType = textCellType16;
this.fp1_Sheet1.Columns.Get(23).DataField = "name_epanel";
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(24).CellType = textCellType17;
this.fp1_Sheet1.Columns.Get(24).DataField = "name_champion";
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(26).CellType = textCellType19;
this.fp1_Sheet1.Columns.Get(26).DataField = "memo";
this.fp1_Sheet1.Columns.Get(26).Label = "Comment";
this.fp1_Sheet1.Columns.Get(26).Width = 63F;
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(28).CellType = textCellType21;
this.fp1_Sheet1.Columns.Get(28).DataField = "model";
this.fp1_Sheet1.Columns.Get(28).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
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(29).CellType = textCellType22;
this.fp1_Sheet1.Columns.Get(29).DataField = "serial";
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.DataAutoSizeColumns = false;
this.fp1_Sheet1.DataSource = this.bs;
this.fp1_Sheet1.DefaultStyle.BackColor = System.Drawing.Color.Empty;
this.fp1_Sheet1.DefaultStyle.ForeColor = System.Drawing.Color.Empty;
this.fp1_Sheet1.FilterBarHeaderStyle.BackColor = System.Drawing.Color.Empty;
this.fp1_Sheet1.FilterBarHeaderStyle.ForeColor = System.Drawing.Color.Empty;
this.fp1_Sheet1.RowHeader.Columns.Default.Resizable = false;
this.fp1_Sheet1.RowHeader.DefaultStyle.BackColor = System.Drawing.Color.Empty;
this.fp1_Sheet1.RowHeader.DefaultStyle.ForeColor = System.Drawing.Color.Empty;
this.fp1_Sheet1.SheetCornerStyle.BackColor = System.Drawing.Color.Empty;
this.fp1_Sheet1.SheetCornerStyle.ForeColor = System.Drawing.Color.Empty;
this.fp1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
//
// rJobReportPrjSche
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1114, 699);
this.Controls.Add(this.fp1);
this.Controls.Add(this.dv1);
this.Controls.Add(this.panel1);
this.Name = "rJobReportPrjSche";
@@ -169,6 +489,8 @@
((System.ComponentModel.ISupportInitialize)(this.dv1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dsReport)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.fp1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.fp1_Sheet1)).EndInit();
this.ResumeLayout(false);
}
@@ -185,5 +507,12 @@
private System.Windows.Forms.ComboBox tbProcess;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button btRefresh;
private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
private FarPoint.Win.Spread.FpSpread fp1;
private FarPoint.Win.Spread.SheetView fp1_Sheet1;
}
}

View File

@@ -16,9 +16,6 @@ namespace FPJ0000.JobReport_
{
InitializeComponent();
this.WindowState = FormWindowState.Maximized;
// this.dts.Value = DateTime.Parse(DateTime.Now.AddMonths(-1).ToString("yyyy-MM-01"));
//this.dte.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-01")).AddMonths(1).AddDays(-1);
}
private void rJobReport_Load(object sender, EventArgs e)
@@ -36,7 +33,6 @@ namespace FPJ0000.JobReport_
//사용자 목록을 선택한다
UpdateUserList();
//this.tbMon.Text = DateTime.Now.ToString("yyyy-MM");
refrehData();
binit = true;
}
@@ -79,7 +75,7 @@ namespace FPJ0000.JobReport_
{
//근문일수,시간
// var vSD = dts.Value.ToShortDateString();
// var vSD = dts.Value.ToShortDateString();
//var vED = dte.Value.ToShortDateString();
string prcname = tbProcess.SelectedIndex < 1 ? "%" : tbProcess.Text.Trim();
@@ -98,15 +94,25 @@ namespace FPJ0000.JobReport_
this.dv1.Rows.Clear();
this.dv1.Columns.Clear();
fp1.ActiveSheet.RowCount = 0;
fp1.ActiveSheet.Columns.Clear();
var wekklist = new string[] { "일", "월", "화", "수", "목", "금", "토" };
//날짜에 해당하는 열을 먼저 생성한다
dv1.Columns.Add("dvcu_pidx", "*");
dv1.Columns.Add("dvcu_title", "프로젝트");
dv1.Columns.Add("dvcu_title", "시작");
dv1.Columns.Add("dvcu_title", "만료");
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 = "만료";
//dv1.Columns.Add("dvcu_hrs", "시간");
//오늘의WW추가
@@ -157,17 +163,27 @@ namespace FPJ0000.JobReport_
var yy1 = wwname.Substring(0, 2);
var ww1 = wwname.Substring(2);
dv1.Columns.Add("dvcu_ww" + item, $"w{ww1}\ny{yy1}");
dv1.Columns[dv1.Columns.Count - 1].Tag = item;
dv1.Columns[dv1.Columns.Count - 1].DefaultCellStyle.NullValue = "";
dv1.Columns[dv1.Columns.Count - 1].DefaultCellStyle.Format = "N2";
dv1.Columns[dv1.Columns.Count - 1].DefaultCellStyle.Font = wwfont;
dv1.Columns[dv1.Columns.Count - 1].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
fp1.ActiveSheet.Columns.Add(colidx, 1); fp1.ActiveSheet.Columns[colidx++].Label = $"w{ww1}\ny{yy1}";
}
//프로젝트별로 데이터를 표시한다.
var grp_list = dsReport.UserScheduleTable.GroupBy(t => t.name).OrderBy(t => t.Key);
var ridx = 0;
foreach (var grp in grp_list)
{
var prjname = grp.Key;
@@ -181,6 +197,22 @@ namespace FPJ0000.JobReport_
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)
{
@@ -192,6 +224,9 @@ namespace FPJ0000.JobReport_
var isw = int.Parse(sw.Replace("-", ""));
var iew = int.Parse(ew.Replace("-", ""));
bool first = true;
int startcol = -1;
int endcol = -1;
for (int i = row; i < dv1.ColumnCount; i++)
{
var col = dv1.Columns[i];
@@ -200,17 +235,62 @@ namespace FPJ0000.JobReport_
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;
}
//cell formation
foreach(DataGridViewRow dr in this.dv1.Rows)
fp1.ActiveSheet.AllowNoteEdit = true;
fp1.ActiveSheet.AutoUpdateNotes = true;
for (int i = 0; i < fp1.ActiveSheet.RowCount; i++)
{
for(int i = 4; i < dv1.ColumnCount;i++)
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;
//cell formation
foreach (DataGridViewRow dr in this.dv1.Rows)
{
for (int i = 4; i < dv1.ColumnCount; i++)
{
var cell = dr.Cells[i];
if (cell.Value == null)

View File

@@ -117,6 +117,21 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>181, 17</value>
</metadata>
@@ -126,4 +141,7 @@
<metadata name="ta.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>245, 17</value>
</metadata>
<metadata name="fp1_Sheet1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>307, 17</value>
</metadata>
</root>