Hi,
I get error message in method main:
void run()
{
EmplId employee;
dialog d;
str dialogMess;
DialogField dialogFromDate;
DialogField dialogToDate;
DialogField dialogEmployee;
;
dialogMess = "Générer des lignes de saisie";
d = new dialog(dialogMess);
dialogFromDate = d.addFieldValue(typeid(TransDate),fromDate, "Date début: ");
dialogToDate = d.addFieldValue(typeid(TransDate),toDate,"Date fin: ");
dialogEmployee = d.addFieldValue(typeid(EmplId),employee,'Employé: ');
if(d.run())
{
fromDate = dialogFromDate.value();
toDate = dialogToDate.value();
employee = dialogEmployee.value();
if((mthOfYr(fromDate)<mthOfYr(systemdateget()))||( mthOfYr(fromDate)>mthOfYr(systemdateget()) && year(fromDate)<year (systemdateget())))
throw error("Le mois de référence doit obligatoirement être postérieur ou égal au mois courant!");
//if the variable employee is not empty
if(employee!="")
{
select emplTable where emplTable.EmplId==employee;
this.CalculRTT_CP(emplTable.CalendarId);
this.CreateProjTimeSheet_APS(emplTable.EmplId);
}
}
static void main(Args _args)
{
APS_GenerateAutomaticRequestRTT aps_GenerateAutomaticRequestRTT = new APS_GenerateAutomaticRequestRTT();
;
aps_GenerateAutomaticRequestRTT.run(); // I get error in this line: The number of arguments specified for the function is wrong.
}