파트리스트 가져오기 기능

파트리스트 구매등록 기능
This commit is contained in:
chikyun.kim
2019-05-17 17:30:51 +09:00
parent 736aaeb6d2
commit 3336898dc0
39 changed files with 10917 additions and 6033 deletions

View File

@@ -92,7 +92,7 @@ namespace FEQ0000
cmbState.Items.Add(item.Value);
cmbState.Items.Add("<=Received");
this.cmbState.SelectedIndex = 0; //all기본 - 양진원
//this.cmbCr.SelectedIndex = 1;
//일반사용자의경우에는 상태를 변경하지 못한다.
int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAutoType.purchase));
@@ -115,7 +115,7 @@ namespace FEQ0000
if(curLevel < 9)
{
toolStripButton2.Visible = false;
ToolStripMenuItem.Visible = false;
}
refreshData();
@@ -142,6 +142,8 @@ namespace FEQ0000
" from purchase " +
" where isnull(" + dateField + ",'') between @sd and @ed ";
if (btViewDel.Checked == false)
cmd.CommandText += " and isnull(isdel,0) = 0";
@@ -238,8 +240,8 @@ namespace FEQ0000
this.bs.EndEdit();
try
{
this.tam.UpdateAll(this.dsPurchase);
if(prompt) FCOMMON.Util.MsgI("저장 성공");
var cnt = this.tam.UpdateAll(this.dsPurchase);
if(prompt) FCOMMON.Util.MsgI(string.Format("{0}건의 자료가 저장 되었습니다.",cnt));
}catch (Exception ex)
{
FCOMMON.Util.MsgE("저장 실패\n" + ex.Message);
@@ -250,8 +252,10 @@ namespace FEQ0000
void showSummary()
{
decimal sum = 0;
foreach (dsPurchase.PurchaseRow dr in this.dsPurchase.Purchase.Rows)
if (!dr.IspumamtNull()) sum += dr.pumamt;
var list = this.dsPurchase.Purchase.Select(this.bs.Filter, "") as dsPurchase.PurchaseRow[];
sum = list.Sum(t => t.pumamt);
//foreach (dsPurchase.PurchaseRow dr in this.dsPurchase.Purchase.Rows)
//if (!dr.IspumamtNull()) sum += dr.pumamt;
lbSum.Text = sum.ToString("N0");
}
@@ -390,8 +394,12 @@ namespace FEQ0000
}
}
var dlg = FCOMMON.Util.MsgQ("현재 선택된 자료를 삭제하시겠습니까?");
if (dlg != System.Windows.Forms.DialogResult.Yes) return;
if (curLevel < 5)
{
var dlg = FCOMMON.Util.MsgQ("현재 선택된 자료를 삭제하시겠습니까?");
if (dlg != System.Windows.Forms.DialogResult.Yes) return;
}
bs.RemoveCurrent();
//일반사용자는 데이터를 바로 삭제한다.
@@ -460,6 +468,7 @@ namespace FEQ0000
}
tbFind.SelectAll();
tbFind.Focus();
showSummary();
}
catch (Exception ex)
{
@@ -661,9 +670,7 @@ namespace FEQ0000
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
Purchase.rPurchase f = new Purchase.rPurchase();
f.MdiParent = this.MdiParent;
f.Show();
}
private void copyToolStripMenuItem_Click(object sender, EventArgs e)
@@ -731,5 +738,12 @@ namespace FEQ0000
else newdr.Delete();
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
Purchase.rPurchase f = new Purchase.rPurchase();
f.MdiParent = this.MdiParent;
f.Show();
}
}
}