class MRKPEmailBatchServiceController extends SysOperationServiceController
{
TransDate fromDate;
TransDate toDate;
MainAccount mainAccount;
GeneralJournalEntry generalJournalEntry;
#define.RecordsToDisplay(6)
}
-----------------------------------------------------------------------------------------------------------
protected ClassDescription defaultCaption()
{
ClassDescription ret;
ret = "@AAM50";
return ret;
}
---------------------------------------------------------------------------------------------------------------
protected void new()
{
super(classStr(MRKPEmailBatchService), methodStr(MRKPEmailBatchService, SemdEmail), SysOperationExecutionMode::Synchronous);
}
-----------------------------------------------------------------------------------------------------------
public void run()
{
super();
}
---------------------------------------------------------------------------------------------------
public static MRKPEmailBatchServiceController construct()
{
MRKPEmailBatchServiceController controller;
MRKPEmailBatchServiceContract datacontract;
controller = new MRKPEmailBatchServiceController();
controller.parmShowDialog(true);
controller.parmShowProgressForm(false);
datacontract = controller.getDataContractObject('');
datacontract.parmFromDate(dateStartMth(prevMth(systemDateGet())));
datacontract.parmToDate(dateEndMth(prevMth(systemDateGet())));
return controller;
}
-------------------------------------------------------------------------------------------------
public static void main(args _args)
{
MRKPEmailBatchServiceController controller;
controller = MRKPEmailBatchServiceController::construct();
controller.startOperation();
}
---------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------
[DataContractAttribute,
SysOperationLabelAttribute(literalStr("@SYS80056")),
SysOperationGroupAttribute('FromGroup', literalStr("@SYS181135"), '1', FormArrangeMethod::HorizontalFlushRight),
SysOperationGroupAttribute('ToGroup', literalStr("@SYS53942"), '1')]
class MRKPEmailBatchServiceContract implements SysOperationValidatable
{
TransDate fromDate;
TransDate toDate;
}
----------------
[DataMemberAttribute
,SysOperationLabelAttribute(literalStr("@SYS80056")),
SysOperationGroupMemberAttribute('FromGroup'),SysOperationDisplayOrderAttribute('1')]
public sysdate parmFromDate(TransDate _fromDate = fromDate)
{
fromDate = _fromDate;
return fromDate;
}
--------------
[DataMemberAttribute
,SysOperationLabelAttribute(literalStr("@SYS80056")),
SysOperationGroupMemberAttribute('ToGroup'),SysOperationDisplayOrderAttribute('1')]
public TransDate parmToDate(TransDate _toDate = toDate)
{
toDate = _toDate;
return toDate;
}
--------------------
public boolean validate()
{
boolean isValid;
isValid = true;
if (!fromDate)
{
isValid = checkFailed(strFmt("@SYS84753", "@SYS24050"));
}
if (!toDate)
{
isValid = checkFailed(strFmt("@SYS84753", "@SYS36680"));
}
return isValid;
}
=-----------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------
class MRKPEmailBatchService extends SysOperationServiceBase
{
TransDate fromDate;
TransDate toDate;
LedgerJournalId journalNumber;
boolean headerCreated;
#define.WorkFlowComment("Auto submitted to workflow")
}
------------------------------------------------------------
[SysEntryPointAttribute]
public void SemdEmail(MRKPEmailBatchServiceContract _serviceContract)
{
#File
SampleTable sampleTable;
IO iO;
HcmPersonnelNumberId employerefno;
ProjId site;
TextIo file;
//FilenameOpen filename = "C:o assign file name
FilenameOpen filename = "C:\\MO\\test1.csv";
Container record,line;
ProjJournalTrans projJournalTrans;
HcmWorker hcmWorker;
ProjJournalTable projJournalTable;
date tdate;
str emply,dates;
boolean first = true;
;
projJournalTable.JournalNameId = "Hours";
//projJournalTable.JournalId = "SelfTEst";
projJournalTable.Description = "devel";
// ProjJournalTable.insert();
}
---------------------------------------------------------------------------------------------------------------
public static MRKPEmailBatchService construct()
{
MRKPEmailBatchService service;
service = new MRKPEmailBatchService();
return service;
}
{
TransDate fromDate;
TransDate toDate;
MainAccount mainAccount;
GeneralJournalEntry generalJournalEntry;
#define.RecordsToDisplay(6)
}
-----------------------------------------------------------------------------------------------------------
protected ClassDescription defaultCaption()
{
ClassDescription ret;
ret = "@AAM50";
return ret;
}
---------------------------------------------------------------------------------------------------------------
protected void new()
{
super(classStr(MRKPEmailBatchService), methodStr(MRKPEmailBatchService, SemdEmail), SysOperationExecutionMode::Synchronous);
}
-----------------------------------------------------------------------------------------------------------
public void run()
{
super();
}
---------------------------------------------------------------------------------------------------
public static MRKPEmailBatchServiceController construct()
{
MRKPEmailBatchServiceController controller;
MRKPEmailBatchServiceContract datacontract;
controller = new MRKPEmailBatchServiceController();
controller.parmShowDialog(true);
controller.parmShowProgressForm(false);
datacontract = controller.getDataContractObject('');
datacontract.parmFromDate(dateStartMth(prevMth(systemDateGet())));
datacontract.parmToDate(dateEndMth(prevMth(systemDateGet())));
return controller;
}
-------------------------------------------------------------------------------------------------
public static void main(args _args)
{
MRKPEmailBatchServiceController controller;
controller = MRKPEmailBatchServiceController::construct();
controller.startOperation();
}
---------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------
[DataContractAttribute,
SysOperationLabelAttribute(literalStr("@SYS80056")),
SysOperationGroupAttribute('FromGroup', literalStr("@SYS181135"), '1', FormArrangeMethod::HorizontalFlushRight),
SysOperationGroupAttribute('ToGroup', literalStr("@SYS53942"), '1')]
class MRKPEmailBatchServiceContract implements SysOperationValidatable
{
TransDate fromDate;
TransDate toDate;
}
----------------
[DataMemberAttribute
,SysOperationLabelAttribute(literalStr("@SYS80056")),
SysOperationGroupMemberAttribute('FromGroup'),SysOperationDisplayOrderAttribute('1')]
public sysdate parmFromDate(TransDate _fromDate = fromDate)
{
fromDate = _fromDate;
return fromDate;
}
--------------
[DataMemberAttribute
,SysOperationLabelAttribute(literalStr("@SYS80056")),
SysOperationGroupMemberAttribute('ToGroup'),SysOperationDisplayOrderAttribute('1')]
public TransDate parmToDate(TransDate _toDate = toDate)
{
toDate = _toDate;
return toDate;
}
--------------------
public boolean validate()
{
boolean isValid;
isValid = true;
if (!fromDate)
{
isValid = checkFailed(strFmt("@SYS84753", "@SYS24050"));
}
if (!toDate)
{
isValid = checkFailed(strFmt("@SYS84753", "@SYS36680"));
}
return isValid;
}
=-----------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------
class MRKPEmailBatchService extends SysOperationServiceBase
{
TransDate fromDate;
TransDate toDate;
LedgerJournalId journalNumber;
boolean headerCreated;
#define.WorkFlowComment("Auto submitted to workflow")
}
------------------------------------------------------------
[SysEntryPointAttribute]
public void SemdEmail(MRKPEmailBatchServiceContract _serviceContract)
{
#File
SampleTable sampleTable;
IO iO;
HcmPersonnelNumberId employerefno;
ProjId site;
TextIo file;
//FilenameOpen filename = "C:o assign file name
FilenameOpen filename = "C:\\MO\\test1.csv";
Container record,line;
ProjJournalTrans projJournalTrans;
HcmWorker hcmWorker;
ProjJournalTable projJournalTable;
date tdate;
str emply,dates;
boolean first = true;
;
projJournalTable.JournalNameId = "Hours";
//projJournalTable.JournalId = "SelfTEst";
projJournalTable.Description = "devel";
// ProjJournalTable.insert();
}
---------------------------------------------------------------------------------------------------------------
public static MRKPEmailBatchService construct()
{
MRKPEmailBatchService service;
service = new MRKPEmailBatchService();
return service;
}
No comments:
Post a Comment