업무일지 / 프로젝트목록 컨텍스트메뉴에 복사/편집/삭제 항목 추가
This commit is contained in:
116
SubProject/FPJ0000/JobReport/fJobReport.Designer.cs
generated
116
SubProject/FPJ0000/JobReport/fJobReport.Designer.cs
generated
@@ -30,18 +30,18 @@
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fJobReport));
|
||||
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();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType23 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType24 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType25 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType26 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
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.NumberCellType numberCellType9 = new FarPoint.Win.Spread.CellType.NumberCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType27 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType28 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType29 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType30 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType31 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType32 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType33 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType34 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType35 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.NumberCellType numberCellType10 = new FarPoint.Win.Spread.CellType.NumberCellType();
|
||||
FarPoint.Win.Spread.CellType.NumberCellType numberCellType11 = new FarPoint.Win.Spread.CellType.NumberCellType();
|
||||
FarPoint.Win.Spread.CellType.NumberCellType numberCellType12 = new FarPoint.Win.Spread.CellType.NumberCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType36 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
this.bn = new System.Windows.Forms.BindingNavigator(this.components);
|
||||
this.bs = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.dsMSSQL = new FPJ0000.dsPRJ();
|
||||
@@ -84,6 +84,7 @@
|
||||
this.dtSD = new System.Windows.Forms.ToolStripTextBox();
|
||||
this.lbEnd = new System.Windows.Forms.ToolStripLabel();
|
||||
this.dtED = new System.Windows.Forms.ToolStripTextBox();
|
||||
this.lbTime = new System.Windows.Forms.ToolStripLabel();
|
||||
this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel();
|
||||
this.cmbState = new System.Windows.Forms.ToolStripComboBox();
|
||||
@@ -91,7 +92,10 @@
|
||||
this.toolStripLabel3 = new System.Windows.Forms.ToolStripLabel();
|
||||
this.cmbUser = new System.Windows.Forms.ToolStripComboBox();
|
||||
this.btSearch = new System.Windows.Forms.ToolStripButton();
|
||||
this.lbTime = new System.Windows.Forms.ToolStripLabel();
|
||||
this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.복사ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.편집ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.삭제ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
|
||||
this.bn.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
|
||||
@@ -309,9 +313,13 @@
|
||||
this.toolStripMenuItem2,
|
||||
this.refreshToolStripMenuItem,
|
||||
this.toolStripMenuItem1,
|
||||
this.partListToolStripMenuItem});
|
||||
this.partListToolStripMenuItem,
|
||||
this.toolStripMenuItem3,
|
||||
this.복사ToolStripMenuItem,
|
||||
this.편집ToolStripMenuItem,
|
||||
this.삭제ToolStripMenuItem});
|
||||
this.cm.Name = "contextMenuStrip1";
|
||||
this.cm.Size = new System.Drawing.Size(226, 160);
|
||||
this.cm.Size = new System.Drawing.Size(226, 296);
|
||||
//
|
||||
// columnSizeToolStripMenuItem
|
||||
//
|
||||
@@ -441,68 +449,68 @@
|
||||
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 10).Value = "초과";
|
||||
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 11).Value = "비고";
|
||||
this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 28F;
|
||||
this.fpSpread1_Sheet1.Columns.Get(0).CellType = textCellType19;
|
||||
this.fpSpread1_Sheet1.Columns.Get(0).CellType = textCellType28;
|
||||
this.fpSpread1_Sheet1.Columns.Get(0).DataField = "pdate";
|
||||
this.fpSpread1_Sheet1.Columns.Get(0).Label = "날짜";
|
||||
this.fpSpread1_Sheet1.Columns.Get(0).Width = 58F;
|
||||
this.fpSpread1_Sheet1.Columns.Get(1).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
|
||||
this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType20;
|
||||
this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType29;
|
||||
this.fpSpread1_Sheet1.Columns.Get(1).DataField = "ww";
|
||||
this.fpSpread1_Sheet1.Columns.Get(1).Label = "WW";
|
||||
this.fpSpread1_Sheet1.Columns.Get(2).AllowAutoFilter = true;
|
||||
this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType21;
|
||||
this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType30;
|
||||
this.fpSpread1_Sheet1.Columns.Get(2).DataField = "requestpart";
|
||||
this.fpSpread1_Sheet1.Columns.Get(2).Label = "요청부서";
|
||||
this.fpSpread1_Sheet1.Columns.Get(2).Width = 78F;
|
||||
this.fpSpread1_Sheet1.Columns.Get(3).AllowAutoFilter = true;
|
||||
this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType22;
|
||||
this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType31;
|
||||
this.fpSpread1_Sheet1.Columns.Get(3).DataField = "package";
|
||||
this.fpSpread1_Sheet1.Columns.Get(3).Label = "패키지";
|
||||
this.fpSpread1_Sheet1.Columns.Get(3).Width = 86F;
|
||||
this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType23;
|
||||
this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType32;
|
||||
this.fpSpread1_Sheet1.Columns.Get(4).DataField = "status";
|
||||
this.fpSpread1_Sheet1.Columns.Get(4).Label = "상태";
|
||||
this.fpSpread1_Sheet1.Columns.Get(5).AllowAutoFilter = true;
|
||||
this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType24;
|
||||
this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType33;
|
||||
this.fpSpread1_Sheet1.Columns.Get(5).DataField = "type";
|
||||
this.fpSpread1_Sheet1.Columns.Get(5).Label = "업무형태";
|
||||
this.fpSpread1_Sheet1.Columns.Get(5).Width = 84F;
|
||||
this.fpSpread1_Sheet1.Columns.Get(6).AllowAutoFilter = true;
|
||||
this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType25;
|
||||
this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType34;
|
||||
this.fpSpread1_Sheet1.Columns.Get(6).DataField = "process";
|
||||
this.fpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
|
||||
this.fpSpread1_Sheet1.Columns.Get(6).Label = "업무분류";
|
||||
this.fpSpread1_Sheet1.Columns.Get(6).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(6).Width = 80F;
|
||||
this.fpSpread1_Sheet1.Columns.Get(7).AllowAutoFilter = true;
|
||||
this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType26;
|
||||
this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType35;
|
||||
this.fpSpread1_Sheet1.Columns.Get(7).DataField = "projectName";
|
||||
this.fpSpread1_Sheet1.Columns.Get(7).Label = "프로젝트(아이템)";
|
||||
this.fpSpread1_Sheet1.Columns.Get(7).Width = 158F;
|
||||
this.fpSpread1_Sheet1.Columns.Get(8).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
|
||||
numberCellType7.DecimalPlaces = 0;
|
||||
numberCellType7.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
|
||||
numberCellType7.MaximumValue = 2147483647D;
|
||||
numberCellType7.MinimumValue = -2147483648D;
|
||||
this.fpSpread1_Sheet1.Columns.Get(8).CellType = numberCellType7;
|
||||
numberCellType10.DecimalPlaces = 0;
|
||||
numberCellType10.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
|
||||
numberCellType10.MaximumValue = 2147483647D;
|
||||
numberCellType10.MinimumValue = -2147483648D;
|
||||
this.fpSpread1_Sheet1.Columns.Get(8).CellType = numberCellType10;
|
||||
this.fpSpread1_Sheet1.Columns.Get(8).DataField = "pidx";
|
||||
this.fpSpread1_Sheet1.Columns.Get(8).Label = "*";
|
||||
this.fpSpread1_Sheet1.Columns.Get(8).Width = 39F;
|
||||
numberCellType8.MaximumValue = 999999999999999D;
|
||||
numberCellType8.MinimumValue = -999999999999999D;
|
||||
this.fpSpread1_Sheet1.Columns.Get(9).CellType = numberCellType8;
|
||||
numberCellType11.MaximumValue = 999999999999999D;
|
||||
numberCellType11.MinimumValue = -999999999999999D;
|
||||
this.fpSpread1_Sheet1.Columns.Get(9).CellType = numberCellType11;
|
||||
this.fpSpread1_Sheet1.Columns.Get(9).DataField = "hrs";
|
||||
this.fpSpread1_Sheet1.Columns.Get(9).Label = "시간";
|
||||
this.fpSpread1_Sheet1.Columns.Get(9).Width = 52F;
|
||||
numberCellType9.MaximumValue = 999999999999999D;
|
||||
numberCellType9.MinimumValue = -999999999999999D;
|
||||
this.fpSpread1_Sheet1.Columns.Get(10).CellType = numberCellType9;
|
||||
numberCellType12.MaximumValue = 999999999999999D;
|
||||
numberCellType12.MinimumValue = -999999999999999D;
|
||||
this.fpSpread1_Sheet1.Columns.Get(10).CellType = numberCellType12;
|
||||
this.fpSpread1_Sheet1.Columns.Get(10).DataField = "ot";
|
||||
this.fpSpread1_Sheet1.Columns.Get(10).ForeColor = System.Drawing.Color.Red;
|
||||
this.fpSpread1_Sheet1.Columns.Get(10).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(10).Label = "초과";
|
||||
this.fpSpread1_Sheet1.Columns.Get(10).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(11).CellType = textCellType27;
|
||||
this.fpSpread1_Sheet1.Columns.Get(11).CellType = textCellType36;
|
||||
this.fpSpread1_Sheet1.Columns.Get(11).DataField = "description";
|
||||
this.fpSpread1_Sheet1.Columns.Get(11).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
|
||||
this.fpSpread1_Sheet1.Columns.Get(11).Label = "비고";
|
||||
@@ -567,6 +575,12 @@
|
||||
this.dtED.Text = "1982-11-23";
|
||||
this.dtED.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
//
|
||||
// lbTime
|
||||
//
|
||||
this.lbTime.Name = "lbTime";
|
||||
this.lbTime.Size = new System.Drawing.Size(29, 22);
|
||||
this.lbTime.Text = "{0}h";
|
||||
//
|
||||
// toolStripSeparator2
|
||||
//
|
||||
this.toolStripSeparator2.Name = "toolStripSeparator2";
|
||||
@@ -613,11 +627,31 @@
|
||||
this.btSearch.Text = "조회(&R)";
|
||||
this.btSearch.Click += new System.EventHandler(this.btSearch_Click);
|
||||
//
|
||||
// lbTime
|
||||
// toolStripMenuItem3
|
||||
//
|
||||
this.lbTime.Name = "lbTime";
|
||||
this.lbTime.Size = new System.Drawing.Size(29, 22);
|
||||
this.lbTime.Text = "{0}h";
|
||||
this.toolStripMenuItem3.Name = "toolStripMenuItem3";
|
||||
this.toolStripMenuItem3.Size = new System.Drawing.Size(222, 6);
|
||||
//
|
||||
// 복사ToolStripMenuItem
|
||||
//
|
||||
this.복사ToolStripMenuItem.Name = "복사ToolStripMenuItem";
|
||||
this.복사ToolStripMenuItem.Size = new System.Drawing.Size(225, 36);
|
||||
this.복사ToolStripMenuItem.Text = "복사";
|
||||
this.복사ToolStripMenuItem.Click += new System.EventHandler(this.복사ToolStripMenuItem_Click);
|
||||
//
|
||||
// 편집ToolStripMenuItem
|
||||
//
|
||||
this.편집ToolStripMenuItem.Name = "편집ToolStripMenuItem";
|
||||
this.편집ToolStripMenuItem.Size = new System.Drawing.Size(225, 36);
|
||||
this.편집ToolStripMenuItem.Text = "편집";
|
||||
this.편집ToolStripMenuItem.Click += new System.EventHandler(this.편집ToolStripMenuItem_Click);
|
||||
//
|
||||
// 삭제ToolStripMenuItem
|
||||
//
|
||||
this.삭제ToolStripMenuItem.Name = "삭제ToolStripMenuItem";
|
||||
this.삭제ToolStripMenuItem.Size = new System.Drawing.Size(225, 36);
|
||||
this.삭제ToolStripMenuItem.Text = "삭제";
|
||||
this.삭제ToolStripMenuItem.Click += new System.EventHandler(this.삭제ToolStripMenuItem_Click);
|
||||
//
|
||||
// fJobReport
|
||||
//
|
||||
@@ -698,5 +732,9 @@
|
||||
private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
|
||||
private System.Windows.Forms.ToolStripButton btReport;
|
||||
private System.Windows.Forms.ToolStripLabel lbTime;
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem3;
|
||||
private System.Windows.Forms.ToolStripMenuItem 복사ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 편집ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 삭제ToolStripMenuItem;
|
||||
}
|
||||
}
|
||||
@@ -155,7 +155,7 @@ namespace FPJ0000
|
||||
RefreshTime();
|
||||
}
|
||||
|
||||
void saveData()
|
||||
void funcSave()
|
||||
{
|
||||
this.Validate();
|
||||
this.bs.EndEdit();
|
||||
@@ -171,7 +171,7 @@ namespace FPJ0000
|
||||
|
||||
private void projectsBindingNavigatorSaveItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
saveData();
|
||||
funcSave();
|
||||
|
||||
}
|
||||
void Projects_TableNewRow(object sender, DataTableNewRowEventArgs e)
|
||||
@@ -298,9 +298,9 @@ namespace FPJ0000
|
||||
|
||||
private void btEdit_Click(object sender, EventArgs e)
|
||||
{
|
||||
Func_Edit();
|
||||
funcEdit();
|
||||
}
|
||||
void Func_Edit()
|
||||
void funcEdit()
|
||||
{
|
||||
var drv = this.bs.Current as DataRowView;
|
||||
if (drv == null) return;
|
||||
@@ -334,6 +334,10 @@ namespace FPJ0000
|
||||
}
|
||||
|
||||
private void btCopy_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
void funcCopy()
|
||||
{
|
||||
var drv = this.bs.Current as DataRowView;
|
||||
if (drv == null) return;
|
||||
@@ -362,6 +366,10 @@ namespace FPJ0000
|
||||
}
|
||||
|
||||
private void btDel_Click(object sender, EventArgs e)
|
||||
{
|
||||
funcDelete();
|
||||
}
|
||||
void funcDelete()
|
||||
{
|
||||
var drv = this.bs.Current as DataRowView;
|
||||
if (drv == null) return;
|
||||
@@ -374,12 +382,11 @@ namespace FPJ0000
|
||||
//dr.AcceptChanges();
|
||||
//FCOMMON.Util.MsgI("삭제 완료");
|
||||
}
|
||||
catch(Exception ex)
|
||||
catch (Exception ex)
|
||||
{
|
||||
FCOMMON.Util.MsgE("삭제실패\n\n"+ex.Message);
|
||||
FCOMMON.Util.MsgE("삭제실패\n\n" + ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
private void lbStt_Click(object sender, EventArgs e)
|
||||
{
|
||||
var f = new FCOMMON.fSelectMonth();
|
||||
@@ -406,5 +413,20 @@ namespace FPJ0000
|
||||
RefreshTime();
|
||||
}
|
||||
|
||||
private void 복사ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
funcCopy();
|
||||
}
|
||||
|
||||
private void 편집ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
funcEdit();
|
||||
}
|
||||
|
||||
private void 삭제ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
funcDelete();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user