⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 compteinfo.java

📁 THIS IS A FINANCIAL BANK APPLICATION
💻 JAVA
字号:
package ma.bmce.tools;

import java.util.ArrayList;
import java.util.List;

import javax.naming.NamingException;

import Pcrd.Subscription.DB.ProcessManager;
import Pcrd.Subscription.DB.ProcessManagerBean;


public class compteInfo {
	public static List<String> genererInfoCompte(String num_Compte) throws NamingException
	{
		List<String> retour=new ArrayList<String>();
		String adresse=null;
		
		List<String> infoCompte=new ArrayList<String>();
		ProcessManager pm=new ProcessManagerBean();
		infoCompte=pm.GET_ACCOUNT_INFO(num_Compte);
		adresse=infoCompte.get(6)+" "+infoCompte.get(7);
		//0:ajouter statut compte
		retour.add(infoCompte.get(24));
		//1:ajouter type client
		retour.add(infoCompte.get(20));
		//2:ajouter statut client
		retour.add(infoCompte.get(27));
		//3:ajouter activite professionnelle
		retour.add(infoCompte.get(25));
		//4:ajouter l'adresse
		 retour.add(adresse);
		 //5:ajouter le num identite
		 retour.add(infoCompte.get(18));
		return retour;
		
	}
	
	public List<String> genererInfoClient(String num_Compte) throws NamingException
	{
		List<String> retour=new ArrayList<String>();
		
		ProcessManager pm=new ProcessManagerBean();
		//ajouter la raison sociale
		retour.add(pm.GET_ACCOUNT_INFO(num_Compte).get(5));
		//
		
		
		return retour;
		
	}

	public List<String> genererListeCartes(String num_Compte) throws NamingException
	{
	List<String> retour=new ArrayList<String>();

	ProcessManager pm=new ProcessManagerBean();
	List<String> listeCartes=new ArrayList<String>();
	listeCartes=pm.GET_CARD_LIST(num_Compte);
	for(int j=0;j<listeCartes.size();j++){
		System.out.println("element "+j+" est "+listeCartes.get(j));
	}
	String nombre_carte_string=listeCartes.get(2);
	int nombre_carte=Integer.parseInt(nombre_carte_string);
	//if !null then add
	for(int i=0;i<nombre_carte;i++){
	retour.add(listeCartes.get(i+3));
	}
	
	return retour;
	}
	
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -