Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
DWHServerService dss = new DWHServerService();
DWHServer ds = dss.getDWHServerPortCustomgetDWHServerPort();
 
ArrayList<AccountParameters> pl3 = new ArrayList<AccountParameters>();
AccountParameters ap31 = new AccountParameters();
ap31.setKfsChartCode("IR");
ap31.setKfsAcctNumber("1000766");
AccountParameters ap32 = new AccountParameters();
ap32.setKfsChartCode("IR");
ap32.setKfsAcctNumber("1008543");
AccountParameters ap33 = new AccountParameters();
ap33.setKfsChartCode("XX");
ap33.setKfsAcctNumber("1234");
AccountParameters ap34 = new AccountParameters();
ap34.setKfsChartCode("XX");
ap34.setKfsAcctNumber("1234576");
pl3.add(ap31);
pl3.add(ap32);
pl3.add(ap33);
pl3.add(ap34);
List<AccountValidation> resultList3 = ds.isValidKFSAccounts(pl3);
if (resultList3 != null) {
	for (Iterator i = resultList3.iterator(); i.hasNext();) {
		AccountValidation element = (AccountValidation) i.next();
		System.out.println("\t" + element.getKfsChartCode() + "/" + element.getKfsAcctNumber() + " : " + element.isValid());
	}
} else {
	System.out .println("something bad happened...please check your query");
}

...

Code Block
DWHServerService dss = new DWHServerService();
DWHServer ds = dss.getDWHServerPortCustomgetDWHServerPort();

ArrayList<AccountParameters> pl4 = new ArrayList<AccountParameters>();
AccountParameters ap41 = new AccountParameters();
ap41.setKfsChartCode("IR");
ap41.setKfsAcctNumber("1000766");
AccountParameters ap42 = new AccountParameters();
ap42.setKfsChartCode("IR");
ap42.setKfsAcctNumber("1053222");
ap42.setEffectiveDate("20110701");
AccountParameters ap43 = new AccountParameters();
ap43.setKfsChartCode("XX");
ap43.setKfsAcctNumber("1234");
ap43.setEffectiveDate("20110321");
pl4.add(ap41);
pl4.add(ap42);
pl4.add(ap43);
List<AccountValidation> resultList4 = ds.isValidKFSExpenseAccounts(pl4);
if (resultList4 != null) {
	for (Iterator i = resultList4.iterator(); i.hasNext();) {
		AccountValidation element = (AccountValidation) i.next();
		System.out.println("\t" + element.getKfsChartCode() + "/" + element.getKfsAcctNumber() + " : " + element.isValid());
	}
} else {
	System.out.println("something bad happened...please check your query");
} 

...

Code Block
DWHServerService dss = new DWHServerService();
DWHServer ds = dss.getDWHServerPortCustomgetDWHServerPort();

ArrayList<AccountParameters> pl3 = new ArrayList<AccountParameters>();
AccountParameters ap31 = new AccountParameters();
ap31.setKfsChartCode("IR");
ap31.setKfsAcctNumber("1000766");
AccountParameters ap32 = new AccountParameters();
ap32.setKfsChartCode("IR");
ap32.setKfsAcctNumber("1008543");
AccountParameters ap33 = new AccountParameters();
ap33.setKfsChartCode("XX");
ap33.setKfsAcctNumber("1234");
AccountParameters ap34 = new AccountParameters();
ap34.setKfsChartCode("XX");
ap34.setKfsAcctNumber("1234576");
pl3.add(ap31);
pl3.add(ap32);
pl3.add(ap33);
pl3.add(ap34);
List<AccountDetails> resultList5 = ds.getValidKFSAccounts(pl3);
if (resultList5 != null) {
	for (Iterator i = resultList5.iterator(); i.hasNext();) {
		AccountDetails element = (AccountDetails) i.next();
		System.out.println("\t" + element.getKfsChartCode() + "/" + element.getKfsAcctNumber() + " : " + element.getKfsAcctName());
	}
} else {
	System.out.println("something bad happened...please check your query");
}

...

Code Block
DWHServerService dss = new DWHServerService();
DWHServer ds = dss.getDWHServerPortCustomgetDWHServerPort();
 
List<AccountDetails> resultList5 = ds.getAllKFSAccounts();
if (resultList5 != null) {
	//for (Iterator i = resultList5.iterator(); i.hasNext();) {
	//	AccountDetails element = (AccountDetails)i.next();
	//	System.out.println("Result List key: " + element.toString());
	//}
	System.out.println("total size: " + resultList5.size());
	System.out.println("the 1st item ChartCode / AcctNumber: " + (AccountDetails)resultList5.get(0)).getKfsChartCode() + " / " + ((AccountDetails)resultList5.get(0)).getKfsAcctNumber()); 
} else {
	System.out.println("something bad happened...please check your query");
}

...

Code Block
DWHServerService dss = new DWHServerService();
DWHServer ds = dss.getDWHServerPortCustomgetDWHServerPort();
 
ArrayList<AccountTranslateParameters> pl8 = new ArrayList<AccountTranslateParameters>();
AccountTranslateParameters at80 = new AccountTranslateParameters();
at80.setFsLocationCode("9");
at80.setFsAccountCode("110001");
at80.setFsFundCode("18888");
AccountTranslateParameters at81 = new AccountTranslateParameters();
at81.setFsLocationCode("9");
at81.setFsAccountCode("111200");
at81.setFsFundCode("18213");
AccountTranslateParameters at82 = new AccountTranslateParameters();
at82.setFsLocationCode("9");
at82.setFsAccountCode("111200");
at82.setFsFundCode("182");
pl8.add(at80);
pl8.add(at81);
pl8.add(at82);
List<Fs2KFSAccountDetails> resultList8 = ds.translateFSAccountFunds(pl8);
if (resultList8 != null) {
	for (Iterator i = resultList8.iterator(); i.hasNext();) {
		Fs2KFSAccountDetails element = (Fs2KFSAccountDetails) i.next();
		System.out.println("\t" + element.getFsLocationCode() + "/" + element.getFsAccountCode() + "/" + element.getFsFundCode() + " : " + element.getKfsChartCode() + "/" + element.getKfsAcctNumber());
	}
} else {
	System.out.println("something bad happened...please check your query");
}

...