Class and dialog in axapta


 DialogField DialogFromDate,DialogToDate;  
 // DateTimeUtil fromDate;  
 // DateTimeUtil toDate;  
 FromDate fromDate;  
 ToDate toDate;  
 DateTimeAccepted tmpdate;  
 protected Object dialog()  
 {  
 Object ret;  
 DialogRunbase dialog; //= super();  
 ;  
 Dialog = super(dialog);  
 Dialog.caption("Percentage Calculation");  
 DialogFromDate = dialog.addField(typeid(FromDate));  
 DialogToDate = dialog.addField(typeid(ToDate));  
 return dialog;  
 }  
 public boolean getFromDialog()  
 {  
 boolean ret;  
 ret = super();  
 fromDate=dialogFromDate.value();  
 toDate=dialogToDate.value();  
 return ret;  
 }  
 public container pack()  
 {  
 container ret;  
 // ret = super();  
 return ret;  
 }