This commit is contained in:
chi
2024-01-04 15:09:43 +09:00
parent e26efda0fc
commit aca27c5484
9 changed files with 695 additions and 629 deletions

View File

@@ -96,6 +96,8 @@
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator();
this.cm1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.columnSizeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.resetToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@@ -139,8 +141,7 @@
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
@@ -474,6 +475,18 @@
this.ToolStripMenuItem.Text = "견적서 폴더 열기";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 현재목록메일전송ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "현재목록메일전송ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(182, 22);
this.ToolStripMenuItem.Text = "현재 목록 메일 전송";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// toolStripMenuItem2
//
this.toolStripMenuItem2.Name = "toolStripMenuItem2";
this.toolStripMenuItem2.Size = new System.Drawing.Size(179, 6);
//
// cm1
//
this.cm1.Font = new System.Drawing.Font("맑은 고딕", 20F);
@@ -482,6 +495,7 @@
this.toolStripMenuItem3,
this.exportDataToolStripMenuItem,
this.toolStripMenuItem4,
this.ToolStripMenuItem,
this.ToolStripMenuItem,
this.ToolStripMenuItem,
this.makeRepeatToolStripMenuItem,
@@ -491,7 +505,7 @@
this.sC검색ToolStripMenuItem,
this.cRCF검색ToolStripMenuItem});
this.cm1.Name = "contextMenuStrip1";
this.cm1.Size = new System.Drawing.Size(314, 400);
this.cm1.Size = new System.Drawing.Size(314, 464);
//
// columnSizeToolStripMenuItem
//
@@ -1137,17 +1151,12 @@
this.label2.Text = "--";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// toolStripMenuItem2
// 상태일괄변경ToolStripMenuItem
//
this.toolStripMenuItem2.Name = "toolStripMenuItem2";
this.toolStripMenuItem2.Size = new System.Drawing.Size(179, 6);
//
// 현재목록메일전송ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "현재목록메일전송ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(182, 22);
this.ToolStripMenuItem.Text = "현재 목록 메일 전송";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
this.ToolStripMenuItem.Name = "상태일괄변경ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(313, 42);
this.ToolStripMenuItem.Text = "상태 일괄 변경";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// fPurchaseEB
//
@@ -1261,5 +1270,6 @@
private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem2;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
}
}

View File

@@ -129,12 +129,13 @@ namespace FEQ0000
if (curLevel >= 5)
{
btSave.Visible = true;
ToolStripMenuItem.Visible = true;
ToolStripMenuItem.Enabled = true;
ToolStripMenuItem.Enabled = true;
}
else
{
ToolStripMenuItem.Visible = false;
ToolStripMenuItem.Enabled = false;
ToolStripMenuItem.Enabled = false;
btSave.Visible = false;
btViewDel.Visible = false;
fpSpread1.EditMode = false;
@@ -1531,5 +1532,43 @@ namespace FEQ0000
"아웃룩의 설정이 정상인지 확인하세요");
}
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
var selected = this.fpSpread1_Sheet1.GetSelections(); //선택된 개체확인
List<int> rows = new List<int>();
foreach (var item in selected)
{
for (int i = item.Row; i < item.Row + item.RowCount; i++)
{
if (rows.Contains(i) == false)
{
if (fpSpread1_Sheet1.IsRowBound(i))
{
rows.Add(i);
}
}
}
}
//이대상의 실제 데이터베이스 인덱스값을 생성해서 폼에 전송한다.
var codlist = DBM.getCodeList("04");
var f = new FEQ0000.Purchase.fBatchUpdate(rows);
if (f.ShowDialog() != DialogResult.OK) return;
var colstat = fpSpread1_Sheet1.Columns["state"];
var value = f.cmbState.Text;
foreach (var rowindex in rows)
{
fpSpread1_Sheet1.SetValue(rowindex, colstat.Index, value);
}
FCOMMON.Util.MsgI($"{rows.Count} 건의 자료가 변경되었습니다\n저장 버튼을 누르면 적용 됩니다\n취소하려면 새로고침을 누르세요");
}
}
}