send mail 프로젝트 폐기
This commit is contained in:
@@ -307,11 +307,23 @@ namespace FPJ0000
|
||||
|
||||
void RefreshSum()
|
||||
{
|
||||
decimal sum = this.dsPRJ.ProjectsPart.Where(t => t.RowState != DataRowState.Deleted && t.RowState != DataRowState.Detached).Sum(t => t.amt);
|
||||
decimal sumN = this.dsPRJ.ProjectsPart.Where(t => t.RowState != DataRowState.Deleted && t.RowState != DataRowState.Detached).Sum(t => t.amtn);
|
||||
|
||||
var rows = dsPRJ.ProjectsPart.Select(this.bsPart.Filter);
|
||||
decimal s1 = 0;
|
||||
decimal s2 = 0;
|
||||
foreach(dsPRJ.ProjectsPartRow dr in rows)
|
||||
{
|
||||
if (dr.RowState == DataRowState.Detached || dr.RowState == DataRowState.Deleted) continue;
|
||||
s1 += dr.amt;
|
||||
s2 += dr.amtn;
|
||||
}
|
||||
|
||||
|
||||
lbSum.Text = string.Format("1:{0:N0} / N:{1:N0}", sum, sumN);
|
||||
//decimal sum = this.dsPRJ.ProjectsPart.Where(t => t.RowState != DataRowState.Deleted && t.RowState != DataRowState.Detached).Sum(t => t.amt);
|
||||
//decimal sumN = this.dsPRJ.ProjectsPart.Where(t => t.RowState != DataRowState.Deleted && t.RowState != DataRowState.Detached).Sum(t => t.amtn);
|
||||
|
||||
|
||||
lbSum.Text = string.Format("1:{0:N0} / N:{1:N0}", s1, s2);
|
||||
}
|
||||
|
||||
|
||||
@@ -543,7 +555,7 @@ namespace FPJ0000
|
||||
if (e.KeyCode == Keys.Enter)
|
||||
{
|
||||
var search = tbFind.Text.Trim();
|
||||
var ColumnList = new string[] { "ItemName", "ItemModel", "ItemSupply", "ItemManu", "ItemSid" };
|
||||
var ColumnList = new string[] { "ItemGroup","option1","ItemName", "ItemModel", "ItemSupply", "ItemManu", "ItemSid" };
|
||||
var Filter = "";
|
||||
if (search != "")
|
||||
{
|
||||
@@ -565,6 +577,10 @@ namespace FPJ0000
|
||||
this.bsPart.Filter = "";
|
||||
tbFind.BackColor = SystemColors.Window;
|
||||
}
|
||||
|
||||
RefreshSum();
|
||||
//FormattingData();
|
||||
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user