// DlgCreateHidocument.cpp : _xZkqqHx_iDeDiDjDiDhGiDiKiDiBiDjDiDgFiBfLiDfGiDiHiDjD_xHqqkZx_ _xZkqqHx_iDhEiDeAiDeDiDiL_xHqqkZx_
//

#include "stdafx.h"
#include "DynamicDraw.h"		// For FFGetApp.
#include "UtilMisc.h"			// For FdsecToFiletime.
#include "UtilDlg.h"			// For SetUnitString.etc.
#include "UtilStr.h"			// For FFLoadString.
#include "UtilErr.h"			// For FFErrorBox.
#include "RegData.h"			// For g_pReg.
#include "FoundDoc.h"			// For CFCFoundDoc.
// 06.01.26 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//#include "HiProject.h"		// For FCHiProject.
#include "ProjectCopy.h"		// For FCProjectCopy.
#include "DocumentRecCopy.h"	// For FCDocumentRecCopy.
#include "DlgHidocumentList.h"	// For CFCDlgHidocumentList.
#include "DynamicDb.h"		// For FCDynamicDb.
// 05.10.12 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
//#include "FldgOpenDdfile.h"		// For CFCFldgOpenDdfile.
#include "DlgCreateHidocument.h"

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

/////////////////////////////////////////////////////////////////////////////
// CFCDlgCreateHidocument _xZkqqHx_iDfPiDeDiDeBiDiNiDeP_xHqqkZx_

//----- 05.08.05 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//CFCDlgCreateHidocument::CFCDlgCreateHidocument (BOOL bCreate, CWnd* pParent /*=NULL*/)
//	: BASE_CLASS(bCreate ? IDD_DLG_CREATE_HIDOCUMENT : IDD_DLG_HIDOCUMENT_PROPERTY, pParent)
//----- 05.08.05 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
CFCDlgCreateHidocument::CFCDlgCreateHidocument (CreateKind createKind, CWnd* pParent /*=NULL*/)
	: BASE_CLASS((createKind == property) ? IDD_DLG_HIDOCUMENT_PROPERTY : IDD_DLG_CREATE_HIDOCUMENT, pParent)
//----- 05.08.05 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
{
	//{{AFX_DATA_INIT(CFCDlgCreateHidocument)
	m_strComment = _T("");
	m_strHidocumentTitle = _T("");
	m_strVersion = _T("");
	m_bRegisterUserId = FALSE;
	m_bLogCommandUserId = FALSE;
	m_strTemplateFile = _T("");
	m_dHtreeScore = 1.0;
	//}}AFX_DATA_INIT

	// _xZkqqHx_jAfGiLeLiNoMjAkMiCkJiBeI_xHqqkZx_
	m_createKind = createKind;
//----- 05.10.22 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	// _xZkqqHx_iDiGiBfLiDfFiDePiDiLiBfLiDhGiCmMiDiBiDjDiDgPiBfLiCmJiCmIiCoKiCoJiCkJiBeI_xHqqkZx_
//	m_bMemberOfUsersGroup = TRUE;
//----- 05.10.22 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
	// _xZkqqHx_jFnCiPfHiJmCjEfMiCkJiBeI_xHqqkZx_
	m_bCanModify = TRUE;
	// _xZkqqHx_jDgPjIfOjDpKiOjOiBeC_xHqqkZx_
	m_fdstRegisterDate = FDSECTIME(-1);
	// _xZkqqHx_iNfIjAfGjDpKiOjOiBeC_xHqqkZx_
	m_fdstUpdateDate = FDSECTIME(-1);
	// _xZkqqHx_jDgPjIfOiDiGiBfLiDfF_xHqqkZx_ID_xZkqqHx_iBeC_xHqqkZx_
	m_guidRegisterUserId = GUID_NULL;
	// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiBeC_xHqqkZx_
	m_pProject = NULL;
} // CFCDlgCreateHidocument::CFCDlgCreateHidocument.

/////////////////////////////////////////////////////////////////////////////
// CFCDlgCreateHidocument _xZkqqHx_iDiGiBfLiDfFiKnGjAjEiBeC_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgCreateHidocument::SetProject
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pProject	:_xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	04.09.10 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
// 06.01.26 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//void CFCDlgCreateHidocument::SetProject (FCHiProject* pProject)
void CFCDlgCreateHidocument::SetProject (const FCProjectCopy& projectCopy)
{
	m_pProject = &projectCopy;
} // CFCDlgCreateHidocument::SetProject.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgCreateHidocument::Initialize
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jHjKjHpAjFlGiPjBiCmMjCgMiCmFiPiJiKpKiJlLiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lDocId	:_xZkqqHx_jHjKjHpAjFlGiPjBiCpAiOhHjCoIiBeCjAfGiLeLiNoMjAkMiOjOiCmNjAgFiCmMjHjKjHpAjFlGiPjBiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_jHjKjHpAjFlGiPjBiCmMjAfGiLeLiNoMjAkMiBeFiDhGiDiNiDhAiDgFiDeCiCpAjFfMiOkGiClHiCoJiCmGiCkLiCmJiOgHjHhAiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	04.10.06 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgCreateHidocument::Initialize (long lDocId)
{
//----- 05.10.22 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// _xZkqqHx_jFnCiPfHiJmCjEfMiCkJiBeI_xHqqkZx_
//	m_bCanModify = m_pProject->IsMemberOfUsersGroup(FFGetApp()->GetUserId());
//	if (m_createKind == createNew || m_createKind == createFork)
//	//----- _xZkqqHx_jHjKjHpAjFlGiPjBiCmMjAfGiLeLiNoMjAkMiOjO_xHqqkZx_ -----
//	{
//		// _xZkqqHx_jHjKjHpAjFlGiPjBiNoMjAkMjDpKiBeC_xHqqkZx_UTC_xZkqqHx_iBeC_xHqqkZx_
//		m_fdstRegisterDate = FFGetCurrentSecTime();
//		// _xZkqqHx_iNfIjAfGiOjOiKnEiBeC_xHqqkZx_
//		m_fdstUpdateDate = m_fdstRegisterDate;
//		// _xZkqqHx_jDgPjIfOiDiGiBfLiDfF_xHqqkZx_ID_xZkqqHx_iBeC_xHqqkZx_
//		m_guidRegisterUserId = FFGetApp()->GetUserId();
//		// _xZkqqHx_jDgPjIfOiDiGiBfLiDfFjGlMiBeC_xHqqkZx_
//		m_wstrRegisterUserName = FFGetApp()->GetUserName();
//		// _xZkqqHx_jHjKjHpAjFlGiPjBiDfCiDiBiDjDiDgHiBeC_xHqqkZx_
//		m_strComment.Empty();
//		// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCmMiDePiDiLiBfLiDhGiCmJiOfBiJmBiCmFiCkLiCmIiCkCiPoKiNiHiBeC_xHqqkZx_
//		if (!m_pProject->GetIsAllowToJoinUsersGroup() &&
//			!m_pProject->IsMemberOfUsersGroup(m_guidRegisterUserId))
//		{
//			// _xZkqqHx_iDiGiBfLiDfFiDePiDiLiBfLiDhGiCmMiDiBiDjDiDgPiBfLiCmJiCmIiCoKiCoJiCkJiBeI_xHqqkZx_
//			m_bMemberOfUsersGroup = FALSE;
//			// _xZkqqHx_iNoMiOnCiCpAjDgPjIfOiClHiCoJiCkJiBeI_xHqqkZx_
//			m_bRegisterUserId = FALSE;
//		} else
//		{
//			// _xZkqqHx_iDiGiBfLiDfFiDePiDiLiBfLiDhGiCmMiDiBiDjDiDgPiBfLiCmJiCmIiCoKiCoJiCkJiBeI_xHqqkZx_
//			m_bMemberOfUsersGroup = TRUE;
//			// _xZkqqHx_iNoMiOnCiCpAjDgPjIfOiClHiCoJiCkJiBeI_xHqqkZx_
//			m_bRegisterUserId = (m_guidRegisterUserId != GUID_NULL);
//		}
//
//		if (lDocId == -1)
//		//----- _xZkqqHx_jAgFjFlGiPjBiCkKjGlDiCkCiPoKiNiH_xHqqkZx_ -----
//		{
//			// _xZkqqHx_iDgGiDhEiDeIiDiLiDgHjFlGiPjBjGlMiCpAiLiBiCnPiCoJiBeC_xHqqkZx_
//			WString wstrDocTitle;
//			m_pProject->CalcUniqDocTitle(wstrDocTitle, FFGetApp()->GetDocString(CDocTemplate::docName), NULL);
//			m_strHidocumentTitle = wstrDocTitle.c_str();	// _xZkqqHx_jHjKjHpAjFlGiPjBiDfOiDeDiDgHiDiLiBeC_xHqqkZx_
//			m_strVersion = L"1";							// _xZkqqHx_jHjKjHpAjFlGiPjBiDgPiBfLiDfHiDiHiDjDiBeC_xHqqkZx_
//			// _xZkqqHx_jHjKjHpAiCmJiDiGiBfLiDfF_xHqqkZx_ID_xZkqqHx_iCpAiLeMjIfOiClHiCoJiCkJiBeI_xHqqkZx_
//			m_bLogCommandUserId = !g_pReg->GetIsInhibitSetId();
//		} else
//		//----- _xZkqqHx_jAgFjFlGiPjBiCkKjHeMiCoJiPoKiNiH_xHqqkZx_ -----
//		{
//			// _xZkqqHx_jAgFjHjKjHpAjFlGiPjBiPoOjFpBiBeC_xHqqkZx_
//			FCHiDocumentRec pParentDocRec = m_pProject->GetDocumentRec(lDocId);
//			//----- _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiDhEiDeAiDeDiDiLiCkJiCoHiDgGiBfLiDfOiCpAiOoGjDlOiClHiCoJ_xHqqkZx_ -----
//			m_strHidocumentTitle = WStrToTStr(pParentDocRec.GetDocTitle());			// _xZkqqHx_jHjKjHpAjFlGiPjBiDfOiDeDiDgHiDiLiBeC_xHqqkZx_
//			m_strVersion = WStrToTStr(m_pProject->GetUniqSubDocumentVersion(lDocId));	// _xZkqqHx_jHjKjHpAjFlGiPjBiDgPiBfLiDfHiDiHiDjDiBeC_xHqqkZx_
//			if (pParentDocRec.GetUserId() == GUID_NULL)
//				m_bRegisterUserId = FALSE;
//			// _xZkqqHx_jHjKjHpAiCmJiDiGiBfLiDfF_xHqqkZx_ID_xZkqqHx_iCpAiLeMjIfOiClHiCoJiCkJiBeI_xHqqkZx_
//			m_bLogCommandUserId = pParentDocRec.GetIsLogCommandUserId();
//		}
//	} else
//	//----- _xZkqqHx_iKpJjBlGiCmMjHjKjHpAjFlGiPjBiOjO_xHqqkZx_ -----
//	{
//		FCHiDocumentRec pDocRec = m_pProject->GetDocumentRec(lDocId);
//		m_strHidocumentTitle = pDocRec->GetDocTitle();	// _xZkqqHx_jHjKjHpAjFlGiPjBiDfOiDeDiDgHiDiLiBeC_xHqqkZx_
//		m_strVersion = pDocRec->GetVersion();			// _xZkqqHx_jHjKjHpAjFlGiPjBiDgPiBfLiDfHiDiHiDjDiBeC_xHqqkZx_
//		m_bLogCommandUserId = pDocRec->GetIsLogCommandUserId();
//		m_fdstRegisterDate = pDocRec->GetDate();		// _xZkqqHx_jHjKjHpAjFlGiPjBiNoMjAkMjDpKiBeC_xHqqkZx_UTC_xZkqqHx_iBeC_xHqqkZx_
//		m_dHtreeScore = pDocRec->GetHtreeScore();		// _xZkqqHx_jHjKjHpAiDfIiDfCiDeBiBeC_xHqqkZx_
//
//		// _xZkqqHx_iDfCiDhNiDjDiDgIiDhEiDeAiDeDiDiLiCmMiNfIjAfGiOjOiKnEiCpAjClCiCnHiCoJiBeC_xHqqkZx_
//		FDTIME fdtmLastUpdate = 0;
//		g_pFileServer->GetFileTime(NULL, NULL, &fdtmLastUpdate,
//									m_pProject->GetDocumentFileAtom(lDocId, FDHI_COMMAND_TABLE_ID));
//		m_fdstUpdateDate = FdtimeToFdsec(fdtmLastUpdate);
//		// _xZkqqHx_jDgPjIfOiDiGiBfLiDfF_xHqqkZx_ID_xZkqqHx_iBeC_xHqqkZx_
//		m_guidRegisterUserId = pDocRec->GetUserId();
//		// _xZkqqHx_jDgPjIfOiDiGiBfLiDfFjGlMiBeC_xHqqkZx_
//		m_wstrRegisterUserName = m_pProject->UserIdToUserName(m_guidRegisterUserId);
//		// _xZkqqHx_jHjKjHpAjFlGiPjBiDfCiDiBiDjDiDgHiBeC_xHqqkZx_
//		m_strComment = pDocRec->GetComment();
//		// _xZkqqHx_iDiGiBfLiDfFiDePiDiLiBfLiDhGiCmMiDiBiDjDiDgPiBfLiCmJiCmIiCoKiCoJiCkJiBeI_xHqqkZx_
//		m_bMemberOfUsersGroup = TRUE;
//		// _xZkqqHx_jDgPjIfOiDiGiBfLiDfF_xHqqkZx_ID_xZkqqHx_iCpAjFfMiOkGiClDiClJiCoJiClNiCnPiCmJ_xHqqkZx_TRUE_xZkqqHx_iCpAjAnNjCoIiBeC_xHqqkZx_
//		m_bRegisterUserId = TRUE;
//	}
//----- 05.10.22 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	// _xZkqqHx_jFnCiPfHiJmCjEfMiCkJiBeI_xHqqkZx_
	m_bCanModify = m_pProject->IsQualifiedToModify(FFGetApp()->GetUserId());
	switch (m_createKind)
	{
	case createNew:		// _xZkqqHx_jAfGiLeLiNoMjAkMiBeC_xHqqkZx_
	case createFork:	// _xZkqqHx_jFkKiKpCiNoMjAkMiBeC_xHqqkZx_
	  {
		// _xZkqqHx_jHjKjHpAjFlGiPjBiNoMjAkMjDpKiBeC_xHqqkZx_UTC_xZkqqHx_iBeC_xHqqkZx_
		m_fdstRegisterDate = FFGetCurrentSecTime();
		// _xZkqqHx_iNfIjAfGiOjOiKnEiBeC_xHqqkZx_
		m_fdstUpdateDate = m_fdstRegisterDate;
		// _xZkqqHx_jDgPjIfOiDiGiBfLiDfF_xHqqkZx_ID_xZkqqHx_iBeC_xHqqkZx_
		m_guidRegisterUserId = FFGetApp()->GetUserId();
		// _xZkqqHx_jDgPjIfOiDiGiBfLiDfFjGlMiBeC_xHqqkZx_
		m_wstrRegisterUserName = FFGetApp()->GetUserName();
		// _xZkqqHx_jHjKjHpAjFlGiPjBiDfCiDiBiDjDiDgHiBeC_xHqqkZx_
		m_strComment.Empty();

		if (lDocId == -1)
		//----- _xZkqqHx_jAgFjFlGiPjBiCkKjGlDiCkCiPoKiNiH_xHqqkZx_ -----
		{
			// _xZkqqHx_iDgGiDhEiDeIiDiLiDgHjFlGiPjBjGlMiCpAiLiBiCnPiCoJiBeC_xHqqkZx_
			WString wstrDocTitle;
			m_pProject->CalcUniqDocTitle(wstrDocTitle, FFGetApp()->GetDocString(CDocTemplate::docName), NULL);
			m_strHidocumentTitle = wstrDocTitle.c_str();	// _xZkqqHx_jHjKjHpAjFlGiPjBiDfOiDeDiDgHiDiLiBeC_xHqqkZx_
			m_strVersion = L"1";							// _xZkqqHx_jHjKjHpAjFlGiPjBiDgPiBfLiDfHiDiHiDjDiBeC_xHqqkZx_
			// _xZkqqHx_iNoMiOnCiCpAjDgPjIfOiClHiCoJiCkJiBeI_xHqqkZx_
			m_bRegisterUserId = (FFGetApp()->GetUserId() != GUID_NULL);
			// _xZkqqHx_jHjKjHpAiCmJiDiGiBfLiDfF_xHqqkZx_ID_xZkqqHx_iCpAiLeMjIfOiClHiCoJiCkJiBeI_xHqqkZx_
			m_bLogCommandUserId = (FFGetApp()->GetUserId() != GUID_NULL);
		} else
		//----- _xZkqqHx_jAgFjFlGiPjBiCkKjHeMiCoJiPoKiNiH_xHqqkZx_ -----
		{
			// _xZkqqHx_jAgFjHjKjHpAjFlGiPjBiPoOjFpBiBeC_xHqqkZx_
			const FCDocumentRecCopy* pParentDocRec = m_pProject->GetDocumentRec(lDocId);
			//----- _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiDhEiDeAiDeDiDiLiCkJiCoHiDgGiBfLiDfOiCpAiOoGjDlOiClHiCoJ_xHqqkZx_ -----
			m_strHidocumentTitle = WStrToTStr(pParentDocRec->GetDocTitle());			// _xZkqqHx_jHjKjHpAjFlGiPjBiDfOiDeDiDgHiDiLiBeC_xHqqkZx_
			m_strVersion = WStrToTStr(m_pProject->GetUniqSubDocumentVersion(lDocId));	// _xZkqqHx_jHjKjHpAjFlGiPjBiDgPiBfLiDfHiDiHiDjDiBeC_xHqqkZx_
			if (FFGetApp()->GetUserId() == GUID_NULL)
			{
				// _xZkqqHx_iNoMiOnCiCpAjDgPjIfOiClHiCoJiCkJiBeI_xHqqkZx_
				m_bRegisterUserId = FALSE;
				// _xZkqqHx_jHjKjHpAiCmJiDiGiBfLiDfF_xHqqkZx_ID_xZkqqHx_iCpAiLeMjIfOiClHiCoJiCkJiBeI_xHqqkZx_
				m_bLogCommandUserId = FALSE;
			} else
			{
				// _xZkqqHx_iNoMiOnCiCpAjDgPjIfOiClHiCoJiCkJiBeI_xHqqkZx_
				m_bRegisterUserId = (pParentDocRec->GetUserId() != GUID_NULL);
				// _xZkqqHx_jHjKjHpAiCmJiDiGiBfLiDfF_xHqqkZx_ID_xZkqqHx_iCpAiLeMjIfOiClHiCoJiCkJiBeI_xHqqkZx_
				m_bLogCommandUserId = pParentDocRec->GetIsLogCommandUserId();
			}
		}
		break;
	  }
	default:	// case property: _xZkqqHx_iDhGiDiNiDhAiDgFiDeCiBeC_xHqqkZx_
	  {
		const FCDocumentRecCopy* pDocRec = m_pProject->GetDocumentRec(lDocId);
		m_strHidocumentTitle = pDocRec->GetDocTitle();	// _xZkqqHx_jHjKjHpAjFlGiPjBiDfOiDeDiDgHiDiLiBeC_xHqqkZx_
		m_strVersion = pDocRec->GetVersion();			// _xZkqqHx_jHjKjHpAjFlGiPjBiDgPiBfLiDfHiDiHiDjDiBeC_xHqqkZx_
		m_bLogCommandUserId = pDocRec->GetIsLogCommandUserId();	// _xZkqqHx_jHjKjHpAiCmJiDiGiBfLiDfF_xHqqkZx_ID_xZkqqHx_iCpAiLeMjIfOiClHiCoJiCkJiBeI_xHqqkZx_
		m_fdstRegisterDate = pDocRec->GetDate();		// _xZkqqHx_jHjKjHpAjFlGiPjBiNoMjAkMjDpKiBeC_xHqqkZx_UTC_xZkqqHx_iBeC_xHqqkZx_
		m_dHtreeScore = pDocRec->GetHtreeScore();		// _xZkqqHx_jHjKjHpAiDfIiDfCiDeBiBeC_xHqqkZx_

		// _xZkqqHx_iDfCiDhNiDjDiDgIiDhEiDeAiDeDiDiLiCmMiNfIjAfGiOjOiKnEiCpAjClCiCnHiCoJiBeC_xHqqkZx_
//----- 06.01.04 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//		FDTIME fdtmLastUpdate = 0;
//		g_pFileServer->GetFileTime(NULL, NULL, &fdtmLastUpdate,
//									m_pProject->GetDocumentFileAtom(lDocId, FDHI_COMMAND_TABLE_ID));
//----- 06.01.04 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
		FDTIME fdtmLastUpdate = g_pFileServer->GetLastModifiedFdtime(
										FCTableName(HString(m_pProject->GetFilePath()), lDocId, FDHI_COMMAND_TABLE_ID));
//----- 06.01.04 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
		m_fdstUpdateDate = FdtimeToFdsec(fdtmLastUpdate);
		// _xZkqqHx_jDgPjIfOiDiGiBfLiDfF_xHqqkZx_ID_xZkqqHx_iBeC_xHqqkZx_
		m_guidRegisterUserId = pDocRec->GetUserId();
		// _xZkqqHx_jDgPjIfOiDiGiBfLiDfFjGlMiBeC_xHqqkZx_
		m_wstrRegisterUserName = m_pProject->UserIdToUserName(m_guidRegisterUserId);
		// _xZkqqHx_jHjKjHpAjFlGiPjBiDfCiDiBiDjDiDgHiBeC_xHqqkZx_
		m_strComment = pDocRec->GetComment();
		// _xZkqqHx_iNoMiOnCiCpAjDgPjIfOiClHiCoJiCkJiBeI_xHqqkZx_
		m_bRegisterUserId = (pDocRec->GetUserId() != GUID_NULL);
	  }
	}
//----- 05.10.22 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // CFCDlgCreateHidocument::Initialize.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgCreateHidocument::UpdateControls
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFmPjAjEiCmMjCgMiCmFiDfCiDjDiDgHiDiNiBfLiDiLiCmMjFfMiOkGiCpAiPiJiKpKiJlLiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	04.10.10 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgCreateHidocument::UpdateControls ()
{
	// _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCmMjCgMiCpAjAnNjCoIiBeC_xHqqkZx_
	UpdateData(FALSE);
	if (m_fdstRegisterDate != FDSECTIME(-1))
	//----- _xZkqqHx_jHjKjHpAjFlGiPjBiNoMjAkMjDpKiOjOiCkKjAnNjCoIiClDiCoKiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
	{
		COleDateTime otmDate = FdsecToFiletime(m_fdstRegisterDate);
		// IDS_FORM_DATE_TIME_LONG "%#Y_xZkqqHx_jEeO_xHqqkZx_%#m_xZkqqHx_iMiO_xHqqkZx_%#d_xZkqqHx_jDpK_xHqqkZx_ %#H_xZkqqHx_iOjO_xHqqkZx_%#M_xZkqqHx_jFkK_xHqqkZx_"
		SetDlgItemText(IDC_PJR_EDT_REGISTER_DATE, otmDate.Format(FFLoadString(IDS_FORM_DATE_TIME_LONG)));
	}
	if (m_fdstUpdateDate != FDSECTIME(-1))
	//----- _xZkqqHx_jHjKjHpAjFlGiPjBiNfIjAfGjDpKiOjOiCkKjAnNjCoIiClDiCoKiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_jHjKjHpAjFlGiPjBiNfIjAfGjDpKiBeC_xHqqkZx_UTC_xZkqqHx_iBeC_xHqqkZx_
		COleDateTime otmDate = FdsecToFiletime(m_fdstUpdateDate);
		// IDS_FORM_DATE_TIME_LONG "%#Y_xZkqqHx_jEeO_xHqqkZx_%#m_xZkqqHx_iMiO_xHqqkZx_%#d_xZkqqHx_jDpK_xHqqkZx_ %#H_xZkqqHx_iOjO_xHqqkZx_%#M_xZkqqHx_jFkK_xHqqkZx_"
		SetDlgItemText(IDC_PJR_EDT_UPDATE_DATE, otmDate.Format(FFLoadString(IDS_FORM_DATE_TIME_LONG)));
	}
// 06.04.06 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//	if (m_guidRegisterUserId != GUID_NULL && m_bRegisterUserId)
	if (m_guidRegisterUserId != GUID_NULL)
	//----- _xZkqqHx_iNoMjAkMiOnCiPoOjFpBiCpAiLeMjIfOiClDiClJiCoJiPoKiNiH_xHqqkZx_ -----
	{
		FFSetDlgItemText(this, IDC_PJR_EDT_USER_ID,
						FFGetFormedUserId(m_guidRegisterUserId, m_wstrRegisterUserName));
	} else
	//----- _xZkqqHx_iNoMjAkMiOnCiPoOjFpBiCpAiLeMjIfOiClFiCmIiCkCiPoKiNiH_xHqqkZx_ -----
	{
		FFSetDlgItemText(this, IDC_PJR_EDT_USER_ID, FFLoadWString(IDS_GUEST));
	}
	// _xZkqqHx_iDfIiDfOiDgFiDeCiDgCiDeOiDgAiDeGiDgCiDeOiDhLiDgCiDeOiDfIiBhFjFnCiPfHiOnCiCpAjHjKjHpAiCmJiLeMjIfOiBhGiCpAjAnNjCoIiBeC_xHqqkZx_
	m_stcChkLogCommandUserId.SetCheck(m_bLogCommandUserId);
} // CFCDlgCreateHidocument::UpdateControls.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgCreateHidocument::UpdateVariables
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCmMjFfMiOkGiCmFjFmPjAjEiCmMjCgMiCpAiPiJiKpKiJlLiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	04.10.10 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgCreateHidocument::UpdateVariables ()
{
	// _xZkqqHx_jFmPjAjEiCmMjCgMiCpAjAnNjCoIiBeC_xHqqkZx_
	UpdateData(TRUE);
} // CFCDlgCreateHidocument::UpdateVariables.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgCreateHidocument::UpdateActivate
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCmMjHeMiMpIjAkLiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	04.10.10 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgCreateHidocument::UpdateActivate ()
{
	// _xZkqqHx_iNoMjAkMiOnC_xHqqkZx_ID_xZkqqHx_iCpAjDgPjIfOiBeI_xHqqkZx_
	GetDlgItem(IDC_PJR_CHK_REGISTER_USER_ID)->EnableWindow(m_guidRegisterUserId != GUID_NULL);
	if (m_bCanModify)
	//----- _xZkqqHx_jFnCiPfHiJmCjEfMiCmFiCkAiCoJiPoKiNiH_xHqqkZx_ ------
	{
		// _xZkqqHx_jFnCiPfHiOnCjDgPjIfOiCmMjFmPiNfIiCpAiLjGiJmCiClHiCoJiBeC_xHqqkZx_
		m_stcChkLogCommandUserId.ShowWindow(SW_HIDE);
		GetDlgItem(IDC_PJR_CHK_LOG_COMMAND_USER_ID)->ShowWindow(SW_SHOW);
	} else
	//----- _xZkqqHx_jFnCiPfHiJmCjEfMiCmFiCmNiCmIiCkCiPoKiNiH_xHqqkZx_ ------
	{
		// _xZkqqHx_iNoMjAkMiOnCjDgPjIfOiCmMjFmPiNfIiCpAiLnGiOhOiClHiCoJiBeC_xHqqkZx_
		GetDlgItem(IDC_PJR_CHK_REGISTER_USER_ID)->EnableWindow(FALSE);
		// _xZkqqHx_jFlGiPjBjGlMiCmMiPjBiCkLiNjOiCnNiLnGiOhOiBeC_xHqqkZx_
		((CEdit*)GetDlgItem(IDC_PJR_EDT_HIDOCUMENT_TITLE))->SetReadOnly(TRUE);
		// _xZkqqHx_iDgPiBfLiDfHiDiHiDjDiCmMiPjBiCkLiNjOiCnNiLnGiOhOiBeC_xHqqkZx_
		((CEdit*)GetDlgItem(IDC_PJR_EDT_VERSION))->SetReadOnly(TRUE);
		// _xZkqqHx_jFnCiPfHiOnCjDgPjIfOiCmMjFmPiNfIiCpAiLnGiOhOiClHiCoJiBeC_xHqqkZx_
		m_stcChkLogCommandUserId.ShowWindow(SW_SHOW);
		GetDlgItem(IDC_PJR_CHK_LOG_COMMAND_USER_ID)->ShowWindow(SW_HIDE);
		// _xZkqqHx_iDfIiDfCiDeBiCmMiPjBiCkLiNjOiCnNiLnGiOhOiBeC_xHqqkZx_
		((CEdit*)GetDlgItem(IDC_PJR_EDT_HTREE_SCORE))->SetReadOnly(TRUE);
		// _xZkqqHx_iDfCiDiBiDjDiDgHiCmMiPjBiCkLiNjOiCnNiLnGiOhOiBeC_xHqqkZx_
		((CEdit*)GetDlgItem(IDC_PJR_EDT_COMMENT))->SetReadOnly(TRUE);
	}
	if (m_createKind != createNew)
	//----- _xZkqqHx_jAfGiLeLiNoMjAkMiImIiKePiCmMiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iDgFiDjDiDhGiDiMiBfLiDgHiDhEiDeAiDeDiDiLiCmNjDpMjHmNjFhDiJmCiBeC_xHqqkZx_
		GetDlgItem(IDC_PJR_STC_TEMPLATE_FILE)->EnableWindow(FALSE);
		GetDlgItem(IDC_PJR_EDT_TEMPLATE_FILE)->EnableWindow(FALSE);
		GetDlgItem(IDC_PJR_BTN_TEMPLATE_FILE)->EnableWindow(FALSE);
	}
//----- 05.08.05 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
} // CFCDlgCreateHidocument::UpdateActivate.

/////////////////////////////////////////////////////////////////////////////
// CFCDlgCreateHidocument _xZkqqHx_iDfPiDeDiDeBiDiNiDeP_xHqqkZx_

void CFCDlgCreateHidocument::DoDataExchange (CDataExchange* pDX)
{
	BASE_CLASS::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CFCDlgCreateHidocument)
	DDX_Control(pDX, IDC_PJR_STC_CHK_LOG_COMMAND_USER_ID, m_stcChkLogCommandUserId);
	DDX_Text(pDX, IDC_PJR_EDT_COMMENT, m_strComment);
	DDX_Text(pDX, IDC_PJR_EDT_HIDOCUMENT_TITLE, m_strHidocumentTitle);
	DDX_Text(pDX, IDC_PJR_EDT_VERSION, m_strVersion);
	DDX_Check(pDX, IDC_PJR_CHK_REGISTER_USER_ID, m_bRegisterUserId);
	DDX_Check(pDX, IDC_PJR_CHK_LOG_COMMAND_USER_ID, m_bLogCommandUserId);
	DDX_Text(pDX, IDC_PJR_EDT_TEMPLATE_FILE, m_strTemplateFile);
	DDX_Text(pDX, IDC_PJR_EDT_HTREE_SCORE, m_dHtreeScore);
	DDV_MinMaxDouble(pDX, m_dHtreeScore, 0., 1.);
	//}}AFX_DATA_MAP
} // CFCDlgCreateHidocument::DoDataExchange.

BEGIN_MESSAGE_MAP(CFCDlgCreateHidocument, BASE_CLASS)
	//{{AFX_MSG_MAP(CFCDlgCreateHidocument)
	ON_BN_CLICKED(IDC_PJR_CHK_REGISTER_USER_ID, OnPjrChkRegisterUserId)
	ON_BN_CLICKED(IDC_PJR_BTN_PROJECT_INFO, OnPjrBtnProjectInfo)
	ON_BN_CLICKED(IDC_PJR_CHK_LOG_COMMAND_USER_ID, OnPjrChkLogCommandUserId)
	ON_BN_CLICKED(IDC_PJR_BTN_TEMPLATE_FILE, OnPjrBtnTemplateFile)
	ON_WM_TIMER()
	ON_WM_DESTROY()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CFCDlgCreateHidocument _xZkqqHx_iDiBiDgCiDfKiBfLiDfH_xHqqkZx_ _xZkqqHx_iDgOiDjDiDgIiDiJ_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgCreateHidocument::OnInitDialog
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	BASE_CLASS::DoModal_xZkqqHx_iOjOiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.02.18 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCDlgCreateHidocument::OnInitDialog ()
{
	// _xZkqqHx_iDfIiBfLiDhAiBfLiDeOiDiJiDfIiCmMiKnGjAjEiOmAiNhDiBeC_xHqqkZx_UpdateData(FALSE)_xZkqqHx_iCmNiClBiClBiCmFiBeC_xHqqkZx_
	BASE_CLASS::OnInitDialog();

	// _xZkqqHx_jFlGiPjBiDfOiDeDiDgHiDiLiPiJiKpKjCgMiCmJiLeMjIfOiBeC_xHqqkZx_
	m_wstrHidocumentTitleOrig = TStrToWStr(m_strHidocumentTitle);
	// _xZkqqHx_iDgPiBfLiDfHiDiHiDjDiPiJiKpKjCgMiCmJiLeMjIfOiBeC_xHqqkZx_
	m_wstrVersionOrig = TStrToWStr(m_strVersion);

//----- 05.08.27 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	if (m_createKind == createNew || m_createKind == createFork)
	//----- _xZkqqHx_jHjKjHpAjFlGiPjBiCmMjAfGiLeLiNoMjAkMiOjO_xHqqkZx_ -----
	{
		// 10_xZkqqHx_jFgCiClCiCmGiCmJiDfOiDeDiDhNiBfLiMmEiCnBiPgPiClFiBeCiOjOiKnEiCmMjFfMiOkGiCmNjFkKjCfAiImKiCmIiCmMiCmF_xHqqkZx_10_xZkqqHx_jFgCjCfAiImKiCmMiNfIjAfGiCmFiPfMjFkKiBeC_xHqqkZx_
		SetTimer(1, 10000, NULL);
	}
//----- 05.08.27 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

	// _xZkqqHx_jFmPjAjEiCmMjCgMiCmFiDfCiDjDiDgHiDiNiBfLiDiLiCmMjFfMiOkGiCpAiPiJiKpKiJlLiClHiCoJiBeC_xHqqkZx_
	UpdateControls();
	// _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCmMjHeMiMpIjAkLiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
	UpdateActivate();

	// _xZkqqHx_iDfPiDeDiDeBiDiNiDePiCmMjCfAiImKjFfMiOkGiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
	::SetUnitString(m_hWnd);
	// _xZkqqHx_jHjIiCkLjIhCjBmOiJjOjFlGiOjKjHpBiCmMjAnNjCoIiCpAiNhDiCkEiBeC_xHqqkZx_
	::RightByLeftHand(m_hWnd);
	// _xZkqqHx_iDfPiDeDiDeBiDiNiDePiCpAiDhNiDeFiDfIiImKjChFiCmJiInKjDkOiBeC_xHqqkZx_
	FFJustifyWindow(m_hWnd);
	return TRUE;  // _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCmJiDhEiDeIiBfLiDeKiDfIiCpAjAnNjCoIiClFiCmIiCkCiCmGiCkLiBeBjGnPiCoIjCgMiCmN_xHqqkZx_ TRUE _xZkqqHx_iCmGiCmIiCoIiCnMiClH_xHqqkZx_
	              // _xZkqqHx_jHoBiKeP_xHqqkZx_: OCX _xZkqqHx_iDhGiDiNiDhAiDgFiDeC_xHqqkZx_ _xZkqqHx_iDhJiBfLiDfHiCmMjGnPiCoIjCgMiCmN_xHqqkZx_ FALSE _xZkqqHx_iCmGiCmIiCoIiCnMiClH_xHqqkZx_
} // CFCDlgCreateHidocument::OnInitDialog.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgCreateHidocument::OnDestroy
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeFiDeCiDjDiDgIiDeFiNoNiPjMiOjOiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.08.27 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgCreateHidocument::OnDestroy ()
{
	if (m_createKind == createNew || m_createKind == createFork)
	//----- _xZkqqHx_jHjKjHpAjFlGiPjBiCmMjAfGiLeLiNoMjAkMiOjO_xHqqkZx_ -----
	{
		// _xZkqqHx_iDfOiDeDiDhNiBfLiNoNiPjMiBeC_xHqqkZx_
		KillTimer(1);
	}
	// Baseclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	BASE_CLASS::OnDestroy();
} // CFCDlgCreateHidocument::OnDestroy.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgCreateHidocument::OnOK
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	OK_xZkqqHx_iDhLiDfOiDjDiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.02.18 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgCreateHidocument::OnOK ()
{
	// _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCmMjFfMiOkGiCmFjFmPjAjEiCmMjCgMiCpAiPiJiKpKiJlLiClHiCoJiBeC_xHqqkZx_
	UpdateVariables();

	m_strHidocumentTitle.TrimLeft();
	m_strHidocumentTitle.TrimRight();
	m_strVersion.TrimLeft();
	m_strVersion.TrimRight();
	m_strComment.TrimLeft();
	m_strComment.TrimRight();

	// _xZkqqHx_jFlGiPjBiDfOiDeDiDgHiDiLiBeBiDgPiBfLiDfHiDiHiDjDiCpAiPiJiKpKjCgMiCmGjEoEiKhCiBeC_xHqqkZx_
	if (m_wstrHidocumentTitleOrig != TStrToWStr(m_strHidocumentTitle) ||
		m_wstrVersionOrig != TStrToWStr(m_strVersion))
	//----- _xZkqqHx_jFlGiPjBiDfOiDeDiDgHiDiLiBeBiDgPiBfLiDfHiDiHiDjDiCpAiPiJiKpKjCgMiCmGiInJiCmIiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_jDkPjGlMiBeFjDkPiDgPiBfLiDfHiDiHiDjDiCmMjHjKjHpAjFlGiPjBiCpAiDgAiDeGiDgCiDeOiBeC_xHqqkZx_
		if (m_pProject->FindDocumentId(TStrToWStr(m_strHidocumentTitle), TStrToWStr(m_strVersion)) != -1)
		{
			// IDS_ERR_MSG_SAME_DOC_VERSION_USED = "_xZkqqHx_jDkPiClGjFlGiPjBjGlMiBeBiDgPiBfLiDfHiDiHiDjDiCkKiKpJiCmJiOgHiCoNiCoKiCmEiCkCiCnMiClH_xHqqkZx_"
			FFErrorBox(IDS_ERR_MSG_SAME_DOC_VERSION_USED);
			return;
		}
	}
	if (!m_bCanModify)
	//----- _xZkqqHx_jFnCiPfHiJmCjEfMiCmFiCmNiCmIiCkCiPoKiNiH_xHqqkZx_ ------
	{
		// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeCiDfPiDeDiDeBiDiNiDePiCpAjFmCiClGiCoJiBeC_xHqqkZx_
		BASE_CLASS::OnCancel();
	} else
	{
		// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeCiDfPiDeDiDeBiDiNiDePiCpAjFmCiClGiCoJiBeC_xHqqkZx_
		BASE_CLASS::OnOK();
	}
} // CFCDlgCreateHidocument::OnOK.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgCreateHidocument::OnPjrChkRegisterUserId
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgAiDeGiDgCiDeOiDhLiDfOiDjDiBhFiNoMjAkMiOnCiPoOjFpBiCpAiLeMjIfOiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	04.09.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgCreateHidocument::OnPjrChkRegisterUserId ()
{
	// _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCmMjFfMiOkGiCmFjFmPjAjEiCmMjCgMiCpAiPiJiKpKiJlLiClHiCoJiBeC_xHqqkZx_
	UpdateVariables();
	// _xZkqqHx_jFmPjAjEiCmMjCgMiCmFiDfCiDjDiDgHiDiNiBfLiDiLiCmMjFfMiOkGiCpAiPiJiKpKiJlLiClHiCoJiBeC_xHqqkZx_
	UpdateControls();
} // CFCDlgCreateHidocument::OnPjrChkRegisterUserId.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgCreateHidocument::OnPjrBtnProjectInfo
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFjDgPjIfOiIoKjHjHiBhGiDhLiDfOiDjDiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	04.09.13 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgCreateHidocument::OnPjrBtnProjectInfo ()
{
	// _xZkqqHx_jHjKjHpAjFlGiPjBiIoKjHjHiDfPiDeDiDeBiDiNiDePiCpAjFfMiOkGiClHiCoJiBeC_xHqqkZx_
	CFCDlgHidocumentList dlg;
	dlg.SetProject(*m_pProject);
	dlg.DoModal();
} // CFCDlgCreateHidocument::OnPjrBtnProjectInfo.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgCreateHidocument::OnPjrChkLogCommandUserId
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgAiDeGiDgCiDeOiDhLiDfOiDjDiBhFjFnCiPfHiOnCiCpAjHjKjHpAiCmJiLeMjIfOiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	04.10.27 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgCreateHidocument::OnPjrChkLogCommandUserId ()
{
	// _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCmMjFfMiOkGiCmFjFmPjAjEiCmMjCgMiCpAiPiJiKpKiJlLiClHiCoJiBeC_xHqqkZx_
	UpdateVariables();
	// _xZkqqHx_jFmPjAjEiCmMjCgMiCmFiDfCiDjDiDgHiDiNiBfLiDiLiCmMjFfMiOkGiCpAiPiJiKpKiJlLiClHiCoJiBeC_xHqqkZx_
	UpdateControls();
} // CFCDlgCreateHidocument::OnPjrChkLogCommandUserId.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgCreateHidocument::OnPjrBtnTemplateFile
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhLiDfOiDjDiBhFiOfBiPmGiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.08.04 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgCreateHidocument::OnPjrBtnTemplateFile ()
{
	WString wstrFilePath;
	if (CFCFoundDoc::DoModalImportDialog(wstrFilePath) == IDOK)
		FFSetDlgItemText(this, IDC_PJR_EDT_TEMPLATE_FILE, wstrFilePath);
} // CFCDlgCreateHidocument::OnPjrBtnTemplateFile.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCDlgCreateHidocument::OnTimer
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfOiDeDiDhNiBfLiCmFiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.08.27 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCDlgCreateHidocument::OnTimer (UINT nIDEvent)
{
	if (m_createKind == createNew || m_createKind == createFork)
	//----- _xZkqqHx_jHjKjHpAjFlGiPjBiCmMjAfGiLeLiNoMjAkMiOjO_xHqqkZx_ -----
	{
		UpdateVariables();
		// _xZkqqHx_jHjKjHpAjFlGiPjBiNoMjAkMjDpKiBeC_xHqqkZx_UTC_xZkqqHx_iBeC_xHqqkZx_
		m_fdstRegisterDate = FFGetCurrentSecTime();
//----- 05.08.27 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//		COleDateTime otmDate = FdsecToFiletime(m_fdstRegisterDate);
//		// IDS_FORM_DATE_TIME_LONG "%#Y_xZkqqHx_jEeO_xHqqkZx_%#m_xZkqqHx_iMiO_xHqqkZx_%#d_xZkqqHx_jDpK_xHqqkZx_ %#H_xZkqqHx_iOjO_xHqqkZx_%#M_xZkqqHx_jFkK_xHqqkZx_"
//		SetDlgItemText(IDC_PJR_EDT_REGISTER_DATE, otmDate.Format(FFLoadString(IDS_FORM_DATE_TIME_LONG)));
//----- 05.08.27 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
		UpdateControls();
//----- 05.08.27 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	}
	// Baseclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	BASE_CLASS::OnTimer(nIDEvent);
} // CFCDlgCreateHidocument::OnTimer.
