구매 엑셀 업로드 기능 완료 및 메뉴얼 작성

This commit is contained in:
chi
2023-08-02 15:38:02 +09:00
parent d8ddd7cfa7
commit 20e36a3624
16 changed files with 924 additions and 640 deletions

View File

@@ -123,10 +123,12 @@ namespace FEQ0000
if (curLevel >= 5)
{
btSave.Visible = true;
ToolStripMenuItem.Visible = true;
}
else
{
ToolStripMenuItem.Visible = false;
btSave.Visible = false;
btViewDel.Visible = false;
fpSpread1.EditMode = false;
@@ -342,7 +344,7 @@ namespace FEQ0000
{
this.Validate();
this.bs.EndEdit();
try
{
var cnt = this.tam.UpdateAll(this.dsPurchase);
@@ -1050,7 +1052,7 @@ namespace FEQ0000
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
var f = new fPurchase_excelimport();
var f = new fPurchase_excelimport(false);
f.Show();
}
@@ -1305,7 +1307,7 @@ namespace FEQ0000
{
//state 가 ---인 데이터를 기준으로 함
//chk2 ==false 인 자료를 기준으로 함
var newlist = this.dsPurchase.Purchase.Where(t => (t.Ischk2Null() || t.chk2==false) && t.state.Equals("---")).ToList();
var newlist = this.dsPurchase.Purchase.Where(t => (t.Ischk2Null() || t.chk2 == false) && t.state.Equals("---")).ToList();
if (newlist.Any() == false)
{
FCOMMON.Util.MsgE($"신규 신청 데이터가 없습니다");
@@ -1315,10 +1317,10 @@ namespace FEQ0000
if (f.ShowDialog() == DialogResult.OK)
{
var cnt = 0;
foreach(var idx in f.chklist)
foreach (var idx in f.chklist)
{
var dr = newlist.Where(t => t.idx == idx).FirstOrDefault();
if (dr != null) { cnt += 1; dr.chk2 = true; dr.EndEdit(); }
if (dr != null) { cnt += 1; dr.chk2 = true; dr.EndEdit(); }
}
FCOMMON.Util.MsgI($"{cnt}건의 자료가 [구매담당확인] 되었습니다\n저장을 눌러야 최종 적용 됩니다");
}