nr구매입력창에 프로젝트 제한조건 해제.

This commit is contained in:
chi
2021-02-03 11:23:36 +09:00
parent 0da91d90a9
commit 6f2de421f4
21 changed files with 1194 additions and 379 deletions

View File

@@ -222,6 +222,9 @@ namespace FEQ0000
var delindex = this.fpSpread1.ActiveSheet.Columns["isdel"].Index;
var statindex = this.fpSpread1.ActiveSheet.Columns["state"].Index;
var crcfindex = this.fpSpread1.ActiveSheet.Columns["crcf"].Index;
var prjindex = this.fpSpread1.ActiveSheet.Columns["projectidx"].Index;
for (int i = 0; i < this.fpSpread1.ActiveSheet.Rows.Count; i++)
{
var state = this.fpSpread1.ActiveSheet.GetValue(i, statindex);
@@ -277,10 +280,24 @@ namespace FEQ0000
}
//프로젝트가 걸린데이터는 글자를 bold체로 변경한다.
var pidx = (int)this.fpSpread1.ActiveSheet.GetValue(i, prjindex);
if(pidx == -1) //프로젝트가 없다
{
this.fpSpread1.ActiveSheet.Rows[i].Font = fBase;
}
else
{
this.fpSpread1.ActiveSheet.Rows[i].Font = fBold;
}
}
this.fpSpread1.ResumeLayout();
}
Font fBase = new Font("맑은 고딕", 9);
Font fBold = new Font("맑은 고딕", 9, FontStyle.Bold);
private void saveData(Boolean prompt)
{
this.Validate();