..
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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취소하려면 새로고침을 누르세요");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user