This commit is contained in:
chi
2023-10-08 00:04:31 +09:00
parent 37f2fdf053
commit b6291f2bd0
32 changed files with 1610 additions and 691 deletions

View File

@@ -23,7 +23,7 @@ namespace FPJ0000
void __Closed(object sender, FormClosedEventArgs e)
{
timer1.Stop();
}
private void __Load(object sender, EventArgs e)
@@ -42,7 +42,7 @@ namespace FPJ0000
" order by category";
var cmd = new System.Data.SqlClient.SqlCommand(sql, cn); cn.Open();
var rdr = cmd.ExecuteReader();
while(rdr.Read())
while (rdr.Read())
{
var category = rdr[0].ToString();
cmbCate.Items.Add(category);
@@ -135,7 +135,7 @@ namespace FPJ0000
foreach (FarPoint.Win.Spread.Column col in fpSpread1.ActiveSheet.Columns)
col.Locked = true;
}
timer1.Start();
}
@@ -580,6 +580,7 @@ namespace FPJ0000
f.ShowDialog();
}
bool Alert_DDate = false;
private void bs_CurrentChanged(object sender, EventArgs e)
{
//히스토리 데이터를 업데이트하고 첫번재 자료를 표시한다.
@@ -594,6 +595,19 @@ namespace FPJ0000
button2.BackColor = dr.jasmin > 0 ? Color.Lime : SystemColors.Control;
if (dr.status == "진행" && dr.edate.isEmpty())
{
if (DateTime.TryParse(dr.ddate, out DateTime dd))
{
if (dd <= DateTime.Now) Alert_DDate = true;
else Alert_DDate = false;
}
else Alert_DDate = false;
}
else Alert_DDate = false;
var progress = FCOMMON.DBM.GetProjectBuyInfo(dr.idx);
//var sql = "select ((sum((case when isnull(qtybuy,0) = isnull(qtyin,0) then 1 else 0 end))*1.0) / count(*))*100 " +
@@ -1051,6 +1065,16 @@ namespace FPJ0000
}
private void timer1_Tick(object sender, EventArgs e)
{
if (Alert_DDate)
{
if (label8.BackColor == Color.Gold)
label8.BackColor = SystemColors.Control;
else
label8.BackColor = Color.Gold;
}
else label8.BackColor = SystemColors.Control;
}
}
}