전자실 구매관련 업데이트

This commit is contained in:
chi
2023-11-06 09:50:39 +09:00
parent adee51915b
commit f14de05f94
22 changed files with 2436 additions and 643 deletions

View File

@@ -37,43 +37,43 @@ namespace FEQ0000.Purchase
}
void refreshData()
{
this.ta.FillByDateExceptCR(this.dsPurchase.Purchase, dtSD.Text, dtED.Text,FCOMMON.info.Login.gcode);
this.ta.FillDate(this.dsPurchase.EETGW_PurchaseEB, dtSD.Text, dtED.Text,FCOMMON.info.Login.gcode);
//Set DataSource
Microsoft.Reporting.WinForms.ReportDataSource DsEQ = new Microsoft.Reporting.WinForms.ReportDataSource();
DsEQ.Name = "DataSet1";
DsEQ.Value = this.dsPurchase.Purchase;
DsEQ.Value = this.dsPurchase.EETGW_PurchaseEB;
switch (this.cmbReport.SelectedIndex)
{
case 0: //사용자 - 월
this.rpv1.LocalReport.ReportEmbeddedResource = "FEQ0000.Purchase.Rpt_Purchase.rdlc";
this.rpv1.LocalReport.ReportEmbeddedResource = "FEQ0000.PurchaseEB.Rpt_Purchase.rdlc";
break;
case 1: //공정 - 월
this.rpv1.LocalReport.ReportEmbeddedResource = "FEQ0000.Purchase.Rpt_PurchasePrc.rdlc";
break;
case 2: //프로젝트 - 월
//비고를 짤라서 처리해야한다.
foreach(dsPurchase.PurchaseRow dr in dsPurchase.Purchase)
{
if (dr.IsbigoNull()) dr.bigo = string.Empty;
else
{
dr.bigo = dr.bigo.Split('/')[0].Trim();
}
if(dr.projectidx == -1)
{
dr.state = "비 프로젝트";
}
else
{
dr.state = "프로젝트";
}
if (dr.bigo.isEmpty()) dr.bigo = "(없음)";
}
dsPurchase.Purchase.AcceptChanges();
this.rpv1.LocalReport.ReportEmbeddedResource = "FEQ0000.Purchase.Rpt_PurchasePrj.rdlc";
this.rpv1.LocalReport.ReportEmbeddedResource = "FEQ0000.PurchaseEB.Rpt_PurchasePrc.rdlc";
break;
//case 2: //프로젝트 - 월
// //비고를 짤라서 처리해야한다.
// foreach(dsPurchase.PurchaseRow dr in dsPurchase.Purchase)
// {
// if (dr.IsbigoNull()) dr.bigo = string.Empty;
// else
// {
// dr.bigo = dr.bigo.Split('/')[0].Trim();
// }
// if(dr.projectidx == -1)
// {
// dr.state = "비 프로젝트";
// }
// else
// {
// dr.state = "프로젝트";
// }
// if (dr.bigo.isEmpty()) dr.bigo = "(없음)";
// }
// dsPurchase.Purchase.AcceptChanges();
// this.rpv1.LocalReport.ReportEmbeddedResource = "FEQ0000.Purchase.Rpt_PurchasePrj.rdlc";
// break;
}
this.rpv1.LocalReport.DataSources.Clear();
this.rpv1.LocalReport.DataSources.Add(DsEQ);