// DlgChipDuty.cpp : _xZkqqHx_iDeDiDjDiDhGiDiKiDiBiDjDiDgFiBfLiDfGiDiHiDjD_xHqqkZx_ _xZkqqHx_iDhEiDeAiDeDiDiL_xHqqkZx_
//
/*************************************************************************
 * <_xZkqqHx_iDhEiDeAiDeDiDiL_xHqqkZx_>	DlgChipDuty.cpp
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	CFCDlgChipDuty_xZkqqHx_iDeOiDiJiDfIiCmMiDfMiBfLiDfIiDhEiDeAiDeDiDiLiBeC_xHqqkZx_
 *			_xZkqqHx_iDgAiDgCiDhGiDeHiDgGiDeCiDfOiCmJiCkIiCkCiCmEiBeBjFjEjFgJiCmMjGpAiKiEiCpAjAnNjCoIiClHiCoJiDfPiDeDiDeBiDiNiDePiCpA_xHqqkZx_
 *			_xZkqqHx_iDeDiDjDiDhGiDiKiDiBiDjDiDgHiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.10.23 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *			99.11.08 Fukushiro M. _xZkqqHx_iDiKiDjDiDeOiBeFiDgFiDeMiDfIiDgHjGpAiKiEiCpAjDkPiOjOiCmJjAnNjCoIiCmFiCkLiCoJ_xHqqkZx_
 *								_xZkqqHx_iCoGiCkEiCmJjFmPiNfIiBeC_xHqqkZx_
 *************************************************************************/

#include "stdafx.h"
#include "DynamicDraw.h"
#include "UtilDlg.h"		// For SetUnitString.etc.
#include "ObjDynabase.h"		// For FCObjDynabase.
//#include "DynamicDrawView.h"	// For g_pView.
#include "ChipEditorDoc.h"	// For FFChipEditorDoc().
// 03.07.18 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
//#include "MainFrame.h"		// For g_pFrame.
#include "DlgChipDuty.h"	// This header.

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CFCDlgChipDuty _xZkqqHx_iDfPiDeDiDeBiDiNiDeP_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgChipDuty::CFCDlgChipDuty
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	
 *
 * <_xZkqqHx_iPnKiNnH_xHqqkZx_>	
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.06.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
CFCDlgChipDuty::CFCDlgChipDuty (FCObjDynabase* pObj, CWnd* pParent /*=NULL*/)
	: BASE_CLASS(CFCDlgChipDuty::IDD, pParent)
{
	//{{AFX_DATA_INIT(CFCDlgChipDuty)
	m_bChipLinkDuty = FALSE;
	m_bChipTextDuty = FALSE;
	m_iChipLinkDutyID = 0;
	m_iChipTextDutyID = 0;
	//}}AFX_DATA_INIT
//----- 05.07.02 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iDfOiBfLiDfBiDgCiDgHjFjEjFgJiCpAjAnNjCoIiBeC_xHqqkZx_
	m_pObj = pObj;
//----- 05.07.02 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
} // CFCDlgChipDuty::CFCDlgChipDuty.

void CFCDlgChipDuty::DoDataExchange(CDataExchange* pDX)
{
	BASE_CLASS::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CFCDlgChipDuty)
	DDX_Check(pDX, IDC_CHA_CHK_CHIP_LINK_DUTY, m_bChipLinkDuty);
	DDX_Check(pDX, IDC_CHA_CHK_CHIP_TEXT_DUTY, m_bChipTextDuty);
	DDX_Text(pDX, IDC_CHA_EDT_CHIP_LINK_DUTY_ID, m_iChipLinkDutyID);
	DDX_Text(pDX, IDC_CHA_EDT_CHIP_TEXT_DUTY_ID, m_iChipTextDutyID);
	//}}AFX_DATA_MAP
} // CFCDlgChipDuty::DoDataExchange.

BEGIN_MESSAGE_MAP(CFCDlgChipDuty, BASE_CLASS)
	//{{AFX_MSG_MAP(CFCDlgChipDuty)
	ON_EN_CHANGE(IDC_CHA_EDT_CHIP_LINK_DUTY_ID, OnChangeChaEdtChipLinkDutyId)
	ON_BN_CLICKED(IDC_CHA_CHK_CHIP_LINK_DUTY, OnChaChkChipLinkDuty)
	ON_BN_CLICKED(IDC_CHA_CHK_CHIP_TEXT_DUTY, OnChaChkChipTextDuty)
	ON_EN_CHANGE(IDC_CHA_EDT_CHIP_TEXT_DUTY_ID, OnChangeChaEdtChipTextDutyId)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CFCDlgChipDuty _xZkqqHx_iDiGiBfLiDfFiKnGjAjEiBeC_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgChipDuty::UpdateActivate
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iKgFiDfCiDjDiDgHiDiNiBfLiDiLiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.10.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *			99.11.08 Fukushiro M. _xZkqqHx_iDiKiDjDiDeOiBeFiDgFiDeMiDfIiDgHjGpAiKiEiCpAjDkPiOjOiCmJjAnNjCoIiCmFiCkLiCoJ_xHqqkZx_
 *								_xZkqqHx_iCoGiCkEiCmJjFmPiNfIiBeC_xHqqkZx_
 *************************************************************************/
void CFCDlgChipDuty::UpdateActivate ()
{
	GetDlgItem(IDC_CHA_EDT_CHIP_LINK_DUTY_ID)->EnableWindow(m_bChipLinkDuty);
	GetDlgItem(IDC_CHA_SPN_CHIP_LINK_DUTY_ID)->EnableWindow(m_bChipLinkDuty);
	GetDlgItem(IDC_CHA_STC_CHIP_LINK_DUTY_ID)->EnableWindow(m_bChipLinkDuty);
	GetDlgItem(IDC_CHA_EDT_CHIP_TEXT_DUTY_ID)->EnableWindow(m_bChipTextDuty);
	GetDlgItem(IDC_CHA_SPN_CHIP_TEXT_DUTY_ID)->EnableWindow(m_bChipTextDuty);
	GetDlgItem(IDC_CHA_STC_CHIP_TEXT_DUTY_ID)->EnableWindow(m_bChipTextDuty);

	BOOL bActive = FALSE;
	if (m_bOldLinkDuty != m_bChipLinkDuty)		bActive = TRUE;
	if (m_bOldLinkDuty && m_bChipLinkDuty &&
		m_iOldLinkDutyID != m_iChipLinkDutyID)	bActive = TRUE;
	if (m_bOldTextDuty != m_bChipTextDuty)		bActive = TRUE;
	if (m_bOldTextDuty && m_bChipTextDuty &&
		m_iOldTextDutyID != m_iChipTextDutyID)	bActive = TRUE;
	GetDlgItem(IDOK)->EnableWindow(bActive);
} // CFCDlgChipDuty::UpdateActivate.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgChipDuty::UpdateSpinRange
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfIiDhDiDjDiCmMiDiMiDjDiDfHjAnNjCoIiCmGjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.10.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *			99.11.08 Fukushiro M. _xZkqqHx_iDiKiDjDiDeOiBeFiDgFiDeMiDfIiDgHjGpAiKiEiCpAjDkPiOjOiCmJjAnNjCoIiCmFiCkLiCoJ_xHqqkZx_
 *								_xZkqqHx_iCoGiCkEiCmJjFmPiNfIiBeC_xHqqkZx_
 *************************************************************************/
void CFCDlgChipDuty::UpdateSpinRange ()
{
	CSpinButtonCtrl* pSpin;
	// _xZkqqHx_iDfIiDhDiDjDiDfCiDjDiDgHiDiNiBfLiDiLiCpAiOoGjDlOiBeC_xHqqkZx_
	pSpin = (CSpinButtonCtrl*)GetDlgItem(IDC_CHA_SPN_CHIP_LINK_DUTY_ID);
	// _xZkqqHx_jGpAiKiEjFjEjFgJiDiKiDfIiDgHiCmJjDgPjIfOiClDiCoKiClNjFjEjFgJjAjEiCpAjGpAiKiE_xHqqkZx_Id_xZkqqHx_iCmMiPoDiMmAiCmGiClFiCmEiOoGjDlOiBeC_xHqqkZx_
	int iLinkMax = FFChipEditorDoc()->GetChipDutyObjects(FDCA_LINK).size();
	// _xZkqqHx_iMlLiNnNiCmMjGpAiKiEiCkKiKpJiCmJjAnNjCoIiClDiCoKiCmEiCkCiCoJiPoKiNiHiCmNjGpAiKiE_xHqqkZx_Id_xZkqqHx_iCmMiPoDiMmAiCmNiCfAiCmCiPkNiCmIiCkCiBeC_xHqqkZx_
	if (0 <= m_iOldLinkDutyID) iLinkMax--;
	// _xZkqqHx_iDfIiDhDiDjDiDfCiDjDiDgHiDiNiBfLiDiLiCmMjCgMiCmMiPoDiMmAiCpAjAnNjCoIiBeC_xHqqkZx_
	pSpin->SetRange(0, iLinkMax);
	pSpin->EnableWindow(0 < iLinkMax);

	// _xZkqqHx_iDfIiDhDiDjDiDfCiDjDiDgHiDiNiBfLiDiLiCpAiOoGjDlOiBeC_xHqqkZx_
	pSpin = (CSpinButtonCtrl*)GetDlgItem(IDC_CHA_SPN_CHIP_TEXT_DUTY_ID);
	// _xZkqqHx_jGpAiKiEjFjEjFgJiDiKiDfIiDgHiCmJjDgPjIfOiClDiCoKiClNjFjEjFgJjAjEiCpAjGpAiKiE_xHqqkZx_Id_xZkqqHx_iCmMiPoDiMmAiCmGiClFiCmEiOoGjDlOiBeC_xHqqkZx_
	int iTextMax = FFChipEditorDoc()->GetChipDutyObjects(FDCA_TEXT).size();
	// _xZkqqHx_iMlLiNnNiCmMjGpAiKiEiCkKiKpJiCmJjAnNjCoIiClDiCoKiCmEiCkCiCoJiPoKiNiHiCmNjGpAiKiE_xHqqkZx_Id_xZkqqHx_iCmMiPoDiMmAiCmNiCfAiCmCiPkNiCmIiCkCiBeC_xHqqkZx_
	if (0 <= m_iOldTextDutyID) iTextMax--;
	// _xZkqqHx_iDfIiDhDiDjDiDfCiDjDiDgHiDiNiBfLiDiLiCmMjCgMiCmMiPoDiMmAiCpAjAnNjCoIiBeC_xHqqkZx_
	pSpin->SetRange(0, iTextMax);
	pSpin->EnableWindow(0 < iTextMax);

} // CFCDlgChipDuty::UpdateSpinRange.

/////////////////////////////////////////////////////////////////////////////
// CFCDlgChipDuty _xZkqqHx_iDiBiDgCiDfKiBfLiDfH_xHqqkZx_ _xZkqqHx_iDgOiDjDiDgIiDiJiBeC_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgChipDuty::OnInitDialog
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfPiDeDiDeBiDiNiDePiPiJiKpKiJlLiOjOiBgJ_xHqqkZx_DoModal_xZkqqHx_iOjOiBgKiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iJlKiLeMiDfCiDiBiDjDiDgHiOfBiPmGiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.10.23 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *			99.11.08 Fukushiro M. _xZkqqHx_iDiKiDjDiDeOiBeFiDgFiDeMiDfIiDgHjGpAiKiEiCpAjDkPiOjOiCmJjAnNjCoIiCmFiCkLiCoJ_xHqqkZx_
 *								_xZkqqHx_iCoGiCkEiCmJjFmPiNfIiBeC_xHqqkZx_
 *************************************************************************/
BOOL CFCDlgChipDuty::OnInitDialog ()
{
	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	BASE_CLASS::OnInitDialog();

	FFChipEditorDoc()->FindChipDutyID(m_iOldLinkDutyID, FDCA_LINK,
								m_pObj);
	FFChipEditorDoc()->FindChipDutyID(m_iOldTextDutyID, FDCA_TEXT,
								m_pObj);

	// _xZkqqHx_iDgAiDeGiDgCiDeOiDhLiDgCiDeOiDfIiCmMiPpDjBnEiCpAjAnNjCoIiBeC_xHqqkZx_
	m_bOldLinkDuty = m_bChipLinkDuty = (0 <= m_iOldLinkDutyID);
	m_bOldTextDuty = m_bChipTextDuty = (0 <= m_iOldTextDutyID);

	// _xZkqqHx_jGpAiKiE_xHqqkZx_Id_xZkqqHx_iCpAjAnNjCoIiBeCjGpAiKiEiCkKjGlDiCkCiPoKiNiHiCmNjGpAiKiEjFjEjFgJiDiKiDfIiDgHiCmJjDgPjIfOiClDiCoKiClNjFjEjFgJjAjEiCmMiPoDiMmAiCpAjAnNjCoIiBeC_xHqqkZx_
	if (m_bOldLinkDuty)
		m_iChipLinkDutyID = m_iOldLinkDutyID;
	else
		m_iChipLinkDutyID = FFChipEditorDoc()->GetChipDutyObjects(FDCA_LINK).size();
	if (m_bOldTextDuty)
		m_iChipTextDutyID = m_iOldTextDutyID;
	else
		m_iChipTextDutyID = FFChipEditorDoc()->GetChipDutyObjects(FDCA_TEXT).size();

	// _xZkqqHx_jBeJjBpAjCiGiCmMjFjEjFgJiCkKiDgFiDeMiDfIiDgHjGpAiKiEiCmGiClFiCmEjDeLiClDiCmIiCkCiPoKiNiHiBeC_xHqqkZx_
//----- 06.12.07 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	if (!m_pObj->CanBeTextObject())
//		GetDlgItem(IDC_CHA_CHK_CHIP_TEXT_DUTY)->EnableWindow(FALSE);
//----- 06.12.07 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	if (!m_pObj->CanBeTextObject() ||
		m_pObj->CalcArea() < FD_MIN_AREA_FOR_TEXT)
		GetDlgItem(IDC_CHA_CHK_CHIP_TEXT_DUTY)->EnableWindow(FALSE);
//----- 06.12.07 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----

	// _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCmJjCgMiCpAjElNiJgGiClHiCoJiBeC_xHqqkZx_
	UpdateData(FALSE);
	// _xZkqqHx_iDfIiDhDiDjDiDiMiDjDiDfHiCmGiDfIiDhDiDjDiCmMjHeMiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
	UpdateSpinRange();
	// _xZkqqHx_iDhLiDfOiDjDiCmMjHeMiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
	UpdateActivate();

	// _xZkqqHx_iDfPiDeDiDeBiDiNiDePiCmMjCfAiImKjFfMiOkGiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
	::SetUnitString(m_hWnd);
	// _xZkqqHx_jHjIiCkLjIhCjBmOiJjOjFlGiOjKjHpBiCmMjAnNjCoIiCpAiNhDiCkEiBeC_xHqqkZx_
	::RightByLeftHand(m_hWnd);
//----- 00.12.31 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iDfPiDeDiDeBiDiNiDePiCpAiDhNiDeFiDfIiImKjChFiCmJiInKjDkOiBeC_xHqqkZx_
	FFJustifyWindow(m_hWnd);
//----- 00.12.31 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
	return TRUE;  // _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCmJiDhEiDeIiBfLiDeKiDfIiCpAjAnNjCoIiClFiCmIiCkCiCmGiCkLiBeBjGnPiCoIjCgMiCmN_xHqqkZx_ TRUE _xZkqqHx_iCmGiCmIiCoIiCnMiClH_xHqqkZx_
	              // _xZkqqHx_jHoBiKeP_xHqqkZx_: OCX _xZkqqHx_iDhGiDiNiDhAiDgFiDeC_xHqqkZx_ _xZkqqHx_iDhJiBfLiDfHiCmMjGnPiCoIjCgMiCmN_xHqqkZx_ FALSE _xZkqqHx_iCmGiCmIiCoIiCnMiClH_xHqqkZx_
} // CFCDlgChipDuty::OnInitDialog.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgChipDuty::OnOK
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	OK_xZkqqHx_iDhLiDfOiDjDiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.10.23 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *			99.11.08 Fukushiro M. _xZkqqHx_iDiKiDjDiDeOiBeFiDgFiDeMiDfIiDgHjGpAiKiEiCpAjDkPiOjOiCmJjAnNjCoIiCmFiCkLiCoJ_xHqqkZx_
 *								_xZkqqHx_iCoGiCkEiCmJjFmPiNfIiBeC_xHqqkZx_
 *************************************************************************/
void CFCDlgChipDuty::OnOK ()
{
	// _xZkqqHx_iDfCiDhNiDjDiDgIiDfKiDgCiDfGiDiHiDjDiCpAiKeKiOgOiClHiCoJiBeC_xHqqkZx_
	g_pDoc->SessionBegin();
	// _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCkJiCoHjCgMiCpAiOoGjDlOiClHiCoJiBeC_xHqqkZx_
	UpdateData(TRUE);
	//----- _xZkqqHx_iMmDiCkCjGpAiKiEiDiKiDfIiDgHiCkJiCoHjDgPjIfOjGjFiPmB_xHqqkZx_ -----
	if (m_bOldLinkDuty)
	{
		// _xZkqqHx_iCfAjFjEjFgJiDiKiDjDiDeOjGpAiKiEiDgFiBfLiDhFiDiLiNoNiPjMiDfCiDhNiDjDiDgIiCpAjEkNiNhDiBeC_xHqqkZx_
		g_pDoc->CmdDelete1ObjLinkDutyTbl(m_iOldLinkDutyID, m_pObj);
	}
	if (m_bOldTextDuty)
	{
		// _xZkqqHx_iCfAjFjEjFgJiDgFiDeMiDfIiDgHjGpAiKiEiDgFiBfLiDhFiDiLiNoNiPjMiDfCiDhNiDjDiDgIiCpAjEkNiNhDiBeC_xHqqkZx_
		g_pDoc->CmdDelete1ObjTextDutyTbl(m_iOldTextDutyID, m_pObj);
	}

	//----- _xZkqqHx_jAfGiClFiCkCjGpAiKiEiDiKiDfIiDgHiCmJjDgPjIfO_xHqqkZx_ -----
	if (m_bChipLinkDuty)
	{
		// _xZkqqHx_iCfAjFjEjFgJiDiKiDjDiDeOjGpAiKiEiDgFiBfLiDhFiDiLjBhNjDpMiDfCiDhNiDjDiDgIiCpAjEkNiNhDiBeC_xHqqkZx_
		g_pDoc->CmdInsert1ObjLinkDutyTbl(m_iChipLinkDutyID, m_pObj);
	}
	if (m_bChipTextDuty)
	{
		// _xZkqqHx_iCfAjFjEjFgJiDgFiDeMiDfIiDgHjGpAiKiEiDgFiBfLiDhFiDiLjBhNjDpMiDfCiDhNiDjDiDgIiCpAjEkNiNhDiBeC_xHqqkZx_
		g_pDoc->CmdInsert1ObjTextDutyTbl(m_iChipTextDutyID, m_pObj);
	}
	// _xZkqqHx_iDfKiDgCiDfGiDiHiDjDiPeJjHlJiBeC_xHqqkZx_
	g_pDoc->SessionEnd();
	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_OK_xZkqqHx_iCmJiClFiClNiCkNiCmIiCkCiOjOiCmNiOmAiNhDiClFiCmIiCkCiBeC_xHqqkZx_
	BASE_CLASS::OnOK();
} // CFCDlgChipDuty::OnOK.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgChipDuty::OnChaChkChipLinkDuty
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiKiDjDiDeOiJmCjEfMiDiCiDiKiDhGiDgAiDeGiDgCiDeOiDhLiDfOiDjDiCkKiDeOiDiKiDgCiDeOiClDiCoKiClNiOjOiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.11.08 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgChipDuty::OnChaChkChipLinkDuty ()
{
	// _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCkJiCoHjCgMiCpAiOoGjDlOiClHiCoJiBeC_xHqqkZx_
	UpdateData(TRUE);
	// _xZkqqHx_iDhLiDfOiDjDiCmMjHeMiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
	UpdateActivate();
} // CFCDlgChipDuty::OnChaChkChipLinkDuty.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgChipDuty::OnChaChkChipTextDuty
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFnCiPfHiJmCjEfMiDgFiDeMiDfIiDgHiDgAiDeGiDgCiDeOiDhLiDfOiDjDiCkKiDeOiDiKiDgCiDeOiClDiCoKiClNiOjOiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.11.08 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgChipDuty::OnChaChkChipTextDuty ()
{
	// _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCkJiCoHjCgMiCpAiOoGjDlOiClHiCoJiBeC_xHqqkZx_
	UpdateData(TRUE);
	// _xZkqqHx_iDhLiDfOiDjDiCmMjHeMiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
	UpdateActivate();
} // CFCDlgChipDuty::OnChaChkChipTextDuty.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgChipDuty::OnChangeChaEdtChipLinkDutyId
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCmMjGpAiKiE_xHqqkZx_Id_xZkqqHx_jAnNjCoIiDfCiDjDiDhLiDhLiDgCiDeOiDfIiCkKjFmPiNfIiClDiCoKiClNiOjOiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.10.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *			99.11.08 Fukushiro M. _xZkqqHx_iDiKiDjDiDeOiBeFiDgFiDeMiDfIiDgHjGpAiKiEiCpAjDkPiOjOiCmJjAnNjCoIiCmFiCkLiCoJ_xHqqkZx_
 *								_xZkqqHx_iCoGiCkEiCmJjFmPiNfIiBeC_xHqqkZx_
 *************************************************************************/
void CFCDlgChipDuty::OnChangeChaEdtChipLinkDutyId ()
{
	// _xZkqqHx_iDeFiDeCiDjDiDgIiDeFjFfMiOkGjBePiCmJiMmEiCmOiCoKiCoJiPoKiNiHiCkKiCkAiCoJiClNiCnPiBeBiDgAiDeGiDgCiDeOiBeC_xHqqkZx_
	if (!IsWindowVisible()) return;
	// _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCkJiCoHjCgMiCpAiOoGjDlOiClHiCoJiBeC_xHqqkZx_
	UpdateData(TRUE);
	// _xZkqqHx_iDhLiDfOiDjDiCmMjHeMiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
	UpdateActivate();
} // CFCDlgChipDuty::OnChangeChaEdtChipLinkDutyId.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgChipDuty::OnChangeChaEdtChipTextDutyId
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCmMjGpAiKiE_xHqqkZx_Id_xZkqqHx_jAnNjCoIiDfCiDjDiDhLiDhLiDgCiDeOiDfIiCkKjFmPiNfIiClDiCoKiClNiOjOiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.11.08 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgChipDuty::OnChangeChaEdtChipTextDutyId ()
{
	// _xZkqqHx_iDeFiDeCiDjDiDgIiDeFjFfMiOkGjBePiCmJiMmEiCmOiCoKiCoJiPoKiNiHiCkKiCkAiCoJiClNiCnPiBeBiDgAiDeGiDgCiDeOiBeC_xHqqkZx_
	if (!IsWindowVisible()) return;
	// _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCkJiCoHjCgMiCpAiOoGjDlOiClHiCoJiBeC_xHqqkZx_
	UpdateData(TRUE);
	// _xZkqqHx_iDhLiDfOiDjDiCmMjHeMiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
	UpdateActivate();
} // CFCDlgChipDuty::OnChangeChaEdtChipTextDutyId.
