구매입력시 엔터키, 기본 일자 조회범위를 90일로 변경.
This commit is contained in:
@@ -145,6 +145,12 @@ namespace FPJ0000.JobReport_
|
||||
row.Add("--");
|
||||
row.Add("비 프로젝트 업무");
|
||||
}
|
||||
else if (dr.Key == "미팅")
|
||||
{
|
||||
row.Add("--");
|
||||
row.Add("미팅");
|
||||
addholy = true;
|
||||
}
|
||||
else if (dr.Key == "휴가")
|
||||
{
|
||||
row.Add("--");
|
||||
@@ -186,7 +192,7 @@ namespace FPJ0000.JobReport_
|
||||
|
||||
row.Add(tperc);
|
||||
|
||||
if (string.IsNullOrEmpty(dr.Key))
|
||||
if (string.IsNullOrEmpty(dr.Key) || dr.Key == "휴가" || dr.Key == "미팅")
|
||||
dv1.Rows.Insert(0, row.ToArray());
|
||||
else
|
||||
dv1.Rows.Add(row.ToArray());
|
||||
@@ -226,28 +232,45 @@ namespace FPJ0000.JobReport_
|
||||
}
|
||||
|
||||
//첫줄은 색상을 변경해준다.
|
||||
if (dv1.RowCount > 0)
|
||||
{
|
||||
var dvrow = dv1.Rows[0];
|
||||
for (int i = 0; i < this.dv1.ColumnCount; i++)
|
||||
{
|
||||
var c = dvrow.Cells[i];
|
||||
c.Style.BackColor = Color.LightGray;
|
||||
}
|
||||
//if (dv1.RowCount > 0)
|
||||
//{
|
||||
// var dvrow = dv1.Rows[0];
|
||||
// for (int i = 0; i < this.dv1.ColumnCount; i++)
|
||||
// {
|
||||
// var c = dvrow.Cells[i];
|
||||
// c.Style.BackColor = Color.LightGray;
|
||||
// }
|
||||
|
||||
}
|
||||
if (addholy && dv1.RowCount > 1)
|
||||
//}
|
||||
for(int r = 0; r < dv1.RowCount;r++)
|
||||
{
|
||||
var dvrow = dv1.Rows[1];
|
||||
for (int i = 0; i < this.dv1.ColumnCount; i++)
|
||||
var dvrow = dv1.Rows[r];
|
||||
var idxvlaue = dvrow.Cells[0].Value.ToString();
|
||||
if (idxvlaue == "-1")
|
||||
{
|
||||
var c = dvrow.Cells[i];
|
||||
c.Style.BackColor = Color.LightGray;
|
||||
for (int i = 0; i < this.dv1.ColumnCount; i++)
|
||||
{
|
||||
var c = dvrow.Cells[i];
|
||||
c.Style.BackColor = Color.LightGray;
|
||||
}
|
||||
}
|
||||
|
||||
else break;
|
||||
|
||||
}
|
||||
|
||||
|
||||
//if (addholy && dv1.RowCount > 1)
|
||||
//{
|
||||
// var dvrow = dv1.Rows[1];
|
||||
// for (int i = 0; i < this.dv1.ColumnCount; i++)
|
||||
// {
|
||||
// var c = dvrow.Cells[i];
|
||||
// c.Style.BackColor = Color.LightGray;
|
||||
// }
|
||||
|
||||
//}
|
||||
|
||||
|
||||
this.dv1.AutoResizeColumns();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user