public void init()
{
LGDLoadSSCDataForEvaluation lgdLoadSSCDataForEvaluation = LGDLoadSSCDataForEvaluation::construct();
int yearSelected = 0;
LGDSSCPeriodType periodSelected;
Dialog dialog;
DialogField dialogField;
str supplierId;
LGDSSCEvaluation lgdSSCEvaluation;
super();
if (lgdLoadSSCDataForEvaluation.prompt())
{
lgdLoadSSCDataForEvaluation.run();
}
if(lgdLoadSSCDataForEvaluation.isCloseOK())
{
select * from lgdSSCEvaluation
where lgdSSCEvaluation.SupplierId == lgdLoadSSCDataForEvaluation.getSupplierId()
&& lgdSSCEvaluation.Year == lgdLoadSSCDataForEvaluation.getYear()
&& lgdSSCEvaluation.Period == lgdLoadSSCDataForEvaluation.getPeriod();
//element.args().record(lgdSSCEvaluation);
LGDSSCEvaluation_1_DS.findRecord(lgdSSCEvaluation);
if(lgdSSCEvaluation.evaluationComplete == 1)
{
element.closePriceTransp();
element.closeConfirm();
element.closeQuality();
element.closeProject();
element.closeFlexibility();
}
else
{
if(lgdSSCEvaluation.PriceTranspComplete == 1)
{
element.closePriceTransp();
}
if(lgdSSCEvaluation.ConfirmComplete == 1)
{
element.closeConfirm();
}
if(lgdSSCEvaluation.QualityComplete == 1)
{
element.closeQuality();
}
if(lgdSSCEvaluation.ProjectComplete == 1)
{
element.closeProject();
}
if(lgdSSCEvaluation.FlexibilityComplete == 1)
{
element.closeFlexibility();
}
}
}
}