This commit is contained in:
chi
2020-06-23 18:37:02 +09:00
parent 6103a340e5
commit d88b1e1909
16 changed files with 1033 additions and 1105 deletions

View File

@@ -174,8 +174,11 @@ namespace FPJ0000
var col_qtyin = this.fpSpread1.ActiveSheet.Columns["qtyin"].Index;
var col_qtyn = this.fpSpread1.ActiveSheet.Columns["qtyn"].Index; //N대수량(전체수량)
var col_bbuy = this.fpSpread1.ActiveSheet.Columns["bbuy"].Index;
var col_supply = this.fpSpread1.ActiveSheet.Columns["supply"].Index;
// var col_bconf = this.fpSpread1.ActiveSheet.Columns["bconfirm"].Index;
var PO발행 = 0;
var PO발행전체 = 0;
var = 0;
var = 0;
var = 0;
@@ -192,6 +195,7 @@ namespace FPJ0000
var value_buy = this.fpSpread1.ActiveSheet.GetValue(i, col_buy);
var value_in = this.fpSpread1.ActiveSheet.GetValue(i, col_qtyin);
var value_bbuy = this.fpSpread1.ActiveSheet.GetValue(i, col_bbuy);
var value_supply = this.fpSpread1.ActiveSheet.GetValue(i, col_supply).ToString().Trim();
//var value_bconf = this.fpSpread1.ActiveSheet.GetValue(i, col_bconf);
Boolean bbuy = false;
@@ -200,19 +204,31 @@ namespace FPJ0000
if (value_bbuy != null) bbuy = (Boolean)value_bbuy;
// if (value_bconf != null) bconf = (Boolean)value_bconf;
if (bbuy) PO발행전체 += 1;
// if (bbuy && string.IsNullOrEmpty(value_supply))
+= 1;
int qty_in = 0;
int qty_buy = -1;
if (value_in != null) qty_in = (int)value_in;
if (value_buy != null) qty_buy = (int)value_buy;
if (bbuy)
{
//구매진행중인데 수량이 다르면 색상 변경
if (qty_in != qty_buy)
if (qty_in == 0 && string.IsNullOrEmpty(value_supply))
{
if(qty_buy < 1)
//입고량이 0인데 공급사가 없다면 PO발행대기건
row.ForeColor = Color.White;
row.BackColor = Color.OrangeRed;
PO발행 += 1;
}
//구매진행중인데 수량이 다르면 색상 변경
else if (qty_in != qty_buy)
{
//공급사가 없다면 ㅔo발행건으로 한다.
if (qty_buy < 1)
{
row.ForeColor = Color.Red;
row.BackColor = Color.DarkMagenta;
@@ -223,6 +239,7 @@ namespace FPJ0000
row.BackColor = Color.DarkMagenta;
}
+= 1;
}
else
{
@@ -243,7 +260,7 @@ namespace FPJ0000
}
else
{
row.ForeColor = Color.Black;
row.BackColor = Color.SkyBlue;
}
@@ -254,13 +271,16 @@ namespace FPJ0000
//prb6.Text = string.Format("전체 진행 ({0}/{1})", 비구매건수 + 구매완료건수, 전체건수);
//prb6.ProgressMax = 전체건수;
//prb6.ProgressValue = 비구매건수 + 구매완료건수;
prbPO.Text = string.Format("PO 발행 ({0}/{1})", PO발행, PO발행전체);
prbPO.ProgressMax = PO발행전체;
prbPO.ProgressValue = PO발행;
prb5.Text = string.Format("비 구매 ({0}/{1})", , );
prb5.ProgressMax = ;
prb5.ProgressValue = ;
prb2.Text = string.Format("구매 등록 신청 ({0}/{1})", , - );
prb2.ProgressMax = - ;
prb2.Text = string.Format("구매 등록 신청 ({0}/{1})", , - );
prb2.ProgressMax = - ;
prb2.ProgressValue = ;
prb4.Text = string.Format("구매 완료 ({0}/{1})", , );
@@ -431,8 +451,10 @@ namespace FPJ0000
fpSpread1.ActiveSheet.Cells[Rowidx, colidx_itemname].Value = f.itemName;
fpSpread1.ActiveSheet.Cells[Rowidx, colidx_sid].Value = f.SID;
fpSpread1.ActiveSheet.Cells[Rowidx, colidx_supplyidx].Value = f.itemSupplyidx;
fpSpread1.ActiveSheet.Cells[Rowidx, colidx_supply].Value = f.itemSupply;
//공급사는 기록하지 않는다 200623
//fpSpread1.ActiveSheet.Cells[Rowidx, colidx_supplyidx].Value = f.itemSupplyidx;
//fpSpread1.ActiveSheet.Cells[Rowidx, colidx_supply].Value = f.itemSupply;
if (f.itemmodel != "")
@@ -495,7 +517,7 @@ namespace FPJ0000
return;
}
var f = new fProjectPartToPurchase(ProjectIndex);
var f = new fProjectPartToPurchase(ProjectIndex, sortkey);
f.ShowDialog();
}