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<OrganizationParameters> pl17 = new ArrayList<OrganizationParameters>();
OrganizationParameters op170 = new OrganizationParameters();
op170.setKfsChartCode("UC");
op170.setKfsOrgCode("9999");
OrganizationParameters op171 = new OrganizationParameters();
op171.setKfsChartCode("IR");
op171.setKfsOrgCode("9999");
OrganizationParameters op172 = new OrganizationParameters();
op172.setKfsChartCode("MC");
op172.setKfsOrgCode("9999");
OrganizationParameters op173 = new OrganizationParameters();
op173.setKfsChartCode("XX");
op173.setKfsOrgCode("0000");
pl17.add(op170);
pl17.add(op171);
pl17.add(op172);
pl17.add(op173);
List<OrganizationValidation> resultList17 = ds.isValidKFSOrganizations(pl17);
if (resultList17 != null) {
	for (Iterator i = resultList17.iterator(); i.hasNext();) {
		OrganizationValidation element = (OrganizationValidation) i.next();
		System.out.println("\t" + element.getKfsChartCode() + "/" + element.getKfsOrgCode() + " : " + element.isValid());
	}
} else {
	System.out.println("something bad happened...please check your query");
}

...

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

ArrayList<OrganizationParameters> pl17 = new ArrayList<OrganizationParameters>();
OrganizationParameters op170 = new OrganizationParameters();
op170.setKfsChartCode("UC");
op170.setKfsOrgCode("9999");
OrganizationParameters op171 = new OrganizationParameters();
op171.setKfsChartCode("IR");
op171.setKfsOrgCode("9999");
OrganizationParameters op172 = new OrganizationParameters();
op172.setKfsChartCode("MC");
op172.setKfsOrgCode("9999");
OrganizationParameters op173 = new OrganizationParameters();
op173.setKfsChartCode("XX");
op173.setKfsOrgCode("0000");
pl17.add(op170);
pl17.add(op171);
pl17.add(op172);
pl17.add(op173);
 
List<OrganizationDetails> resultList18 = ds.getValidKFSOrganizations(pl17);
if (resultList18 != null) {
	for (Iterator i = resultList18.iterator(); i.hasNext();) {
		OrganizationDetails element = (OrganizationDetails) i.next();
		System.out.println("\t" + element.getKfsChartCode() + "/" + element.getKfsOrgCode() + " : " + element.getKfsOrgName());
	}
} else {
	System.out.println("something bad happened...please check your query");
}

...

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

List<OrganizationDetails> resultList14 = ds.getAllKFSOrganizations();
if (resultList14 != null) {
	//for (Iterator i = resultList14.iterator(); i.hasNext();) {
	//	OrganizationDetails element = (OrganizationDetails)i.next();
	//}
	System.out.println("total size: " + resultList14.size());
	System.out.println("the 1st item ChartCode / OrgCode: OrgName" + ((OrganizationDetails)resultList14.get(0)).getKfsChartCode() + " / " + ((OrganizationDetails)resultList14.get(0)).getKfsOrgCode() + " : " + ((OrganizationDetails)resultList14.get(0)).getKfsOrgName()); 
} else {
	System.out.println("something bad happened...please check your query");
}

...

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

ArrayList<OrganizationTranslateParameters> pl20 = new ArrayList<OrganizationTranslateParameters>();
OrganizationTranslateParameters otp200 = new OrganizationTranslateParameters();
otp200.setFsHierarchyCode("2000");
otp200.setFsLocationCode("9");
OrganizationTranslateParameters otp201 = new OrganizationTranslateParameters();
otp201.setFsHierarchyCode("3000");
otp201.setFsLocationCode("9");
OrganizationTranslateParameters otp202 = new OrganizationTranslateParameters();
otp202.setFsHierarchyCode("0000");
otp202.setFsLocationCode("0");
pl20.add(otp200);
pl20.add(otp201);
pl20.add(otp202);
List<Fs2KFSOrganizationDetails> resultList20 = ds.translateFSOrganizations(pl20);
if (resultList20 != null) {
	for (Iterator i = resultList20.iterator(); i.hasNext();) {
		Fs2KFSOrganizationDetails element = (Fs2KFSOrganizationDetails) i.next();
		System.out.println("\t" + element.getFsLocationCode() + "/" + element.getFsHierarchyCode() + "/" + element.getFsHierarchyType() + " : " + element.getKfsChartCode() + "/" + element.getKfsOrgCode()); }
} else {
	System.out.println("something bad happened...please check your query");
}

...

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

ArrayList<OrganizationTranslateParameters> pl21 = new ArrayList<OrganizationTranslateParameters>();
OrganizationTranslateParameters otp210 = new OrganizationTranslateParameters();
otp210.setFsHierarchyCode("1015");
otp210.setFsLocationCode("9");
OrganizationTranslateParameters otp211 = new OrganizationTranslateParameters();
otp211.setFsHierarchyCode("1100");
otp211.setFsLocationCode("9");
OrganizationTranslateParameters otp212 = new OrganizationTranslateParameters();
otp212.setFsHierarchyCode("0000");
otp212.setFsLocationCode("0");
pl21.add(otp210);
pl21.add(otp211);
pl21.add(otp212);
List<Fs2KFSOrganizationDetails> resultList21 = ds.translateFSDivisions(pl21);
if (resultList21 != null) {
	for (Iterator i = resultList21.iterator(); i.hasNext();) {
		Fs2KFSOrganizationDetails element = (Fs2KFSOrganizationDetails) i.next();
		System.out.println("\t" + element.getFsLocationCode() + "/" + element.getFsHierarchyCode() + "/" + element.getFsHierarchyType() + " : " + element.getKfsChartCode() + "/" + element.getKfsOrgCode()); }
} else {
	System.out.println("something bad happened...please check your query");
}

...

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

ArrayList<OrganizationTranslateParameters> pl22 = new ArrayList<OrganizationTranslateParameters>();
OrganizationTranslateParameters otp220 = new OrganizationTranslateParameters();
otp220.setFsHierarchyCode("1300");
otp220.setFsLocationCode("9");
OrganizationTranslateParameters otp221 = new OrganizationTranslateParameters();
otp221.setFsHierarchyCode("1350");
otp221.setFsLocationCode("9");
OrganizationTranslateParameters otp222 = new OrganizationTranslateParameters();
otp222.setFsHierarchyCode("0000");
otp222.setFsLocationCode("0");
pl22.add(otp220);
pl22.add(otp221);
pl22.add(otp222);
List<Fs2KFSOrganizationDetails> resultList22 = ds.translateFSSubDivisions(pl22);
if (resultList22 != null) {
	for (Iterator i = resultList22.iterator(); i.hasNext();) {
		Fs2KFSOrganizationDetails element = (Fs2KFSOrganizationDetails) i.next();
		System.out.println("\t" + element.getFsLocationCode() + "/" + element.getFsHierarchyCode() + "/" + element.getFsHierarchyType() + " : " + element.getKfsChartCode() + "/" + element.getKfsOrgCode()); 
	}
} else {
	System.out.println("something bad happened...please check your query");
}

...

Code Block
DWHServerService dss = new DWHServerService();
DWHServer ds = dss.getDWHServerPortCustomgetDWHServerPort();
 
ArrayList<OrganizationTranslateParameters> pl23 = new ArrayList<OrganizationTranslateParameters>();
OrganizationTranslateParameters otp230 = new OrganizationTranslateParameters();
otp230.setFsHierarchyCode("0003");
otp230.setFsLocationCode("9");
OrganizationTranslateParameters otp231 = new OrganizationTranslateParameters();
otp231.setFsHierarchyCode("0302");
otp231.setFsLocationCode("9");
OrganizationTranslateParameters otp232 = new OrganizationTranslateParameters();
otp232.setFsHierarchyCode("0000");
otp232.setFsLocationCode("0");
pl23.add(otp230);
pl23.add(otp231);
pl23.add(otp232);
List<Fs2KFSOrganizationDetails> resultList23 = ds.translateFSDepartments(pl23);
if (resultList23 != null) {
	for (Iterator i = resultList23.iterator(); i.hasNext();) {
		Fs2KFSOrganizationDetails element = (Fs2KFSOrganizationDetails) i.next();
		System.out.println("\t" + element.getFsLocationCode() + "/" + element.getFsHierarchyCode() + "/" + element.getFsHierarchyType() + " : " + element.getKfsChartCode() + "/" + element.getKfsOrgCode());
	}
} else {
	System.out.println("something bad happened...please check your query");
}

...