コード例 #1
0
void Application::Admin_select()
{
	y -= 3;
	ClientData data;	// 고객 정보 임시 저장장소
	account temp;	// 계좌 임시 저장소
	switch(y)
	{
	case 1:
		data.GetClientData();		// 고객 정보 입력
		m_ClientList.InsertItem(data); // 고객 추가 함수
		data.PutClientData();	// 고객 정부 화면 출력
		break;
	case 2:
		DeleteClient();	// 고객 리스트 제거 함수
		break;
	case 3:
		if(!SearchList(data))	// 고객 검색
			break;
		data.PutClientData();	// 고객정보 화면에 띄우기
		break;
	case 4:
		OpenAccount();	// 계좌 열기
		break;
	case 5:
		if(!SearchList(data))	// 고객 검색
			break;
		data.CloseAccount();
		break;
	case 6:
		return;
	}
}
コード例 #2
0
/*====================================================================================
// Function : show all list data.s
// Pre		: none
// Post		: none
=====================================================================================*/
void Application::ShowList()
{
	ClientData temp;
	m_ClientList.ResetList();
	m_ClientList.GetCurrentItem(temp);
	for(int i=0; i<m_ClientList.LengthIs();i++)
	{
		m_ClientList.GetCurrentItem(temp);
		temp.PutClientData();
	}
}