提交 e0b49059 编写于 作者: xengine-qyt's avatar xengine-qyt

added:configure email get back password

modify:vscopy file
上级 51dd07f0
......@@ -11,6 +11,7 @@ copy /y "%XEngine_Library%\x86\XEngine_HelpComponents\HelpComponents_Authorize.d
copy /y "%XEngine_Library%\x86\XEngine_SystemSdk\XEngine_SystemApi.dll" "./"
copy /y "%XEngine_Library%\x86\XEngine_RfcComponents\RfcComponents_WSProtocol.dll" "./"
copy /y "%XEngine_Library%\x86\XEngine_RfcComponents\RfcComponents_EmailClient.dll" "./"
copy /y "%XEngine_Library%\x86\XEngine_HelpComponents\bson-1.0.dll" "./"
copy /y "%XEngine_Library%\x86\XEngine_HelpComponents\mongoc-1.0.dll" "./"
......@@ -19,4 +20,5 @@ copy /y "%XEngine_Library%\x86\XEngine_HelpComponents\libpq.dll" "./"
copy /y "%XEngine_Library%\x86\XEngine_HelpComponents\sqlite3.dll" "./"
copy /y "%XEngine_Library%\x86\XEngine_HelpComponents\zlib1.dll" "./"
copy /y "%XEngine_Library%\x86\XEngine_LibEx\libcrypto-1_1.dll" "./"
copy /y "%XEngine_Library%\x86\XEngine_LibEx\libssl-1_1.dll" "./"
\ No newline at end of file
copy /y "%XEngine_Library%\x86\XEngine_LibEx\libssl-1_1.dll" "./"
copy /y "%XEngine_Library%\x86\XEngine_LibEx\libcurl.dll" "./"
\ No newline at end of file
......@@ -10,4 +10,5 @@ copy /y "D:\XEngine\XEngine_SourceCode\Debug\HelpComponents_XLog.dll" "./"
copy /y "D:\XEngine\XEngine_SourceCode\Debug\HelpComponents_Authorize.dll" "./"
copy /y "D:\XEngine\XEngine_SourceCode\Debug\XEngine_SystemApi.dll" "./"
copy /y "D:\XEngine\XEngine_SourceCode\Debug\RfcComponents_WSProtocol.dll" "./"
\ No newline at end of file
copy /y "D:\XEngine\XEngine_SourceCode\Debug\RfcComponents_WSProtocol.dll" "./"
copy /y "D:\XEngine\XEngine_SourceCode\Debug\RfcComponents_EmailClient.dll" "./"
\ No newline at end of file
......@@ -42,6 +42,7 @@ void CDialog_Configure::DoDataExchange(CDataExchange* pDX)
DDX_Control(pDX, IDC_EDIT10, m_EditSmtpPass);
DDX_Control(pDX, IDC_EDIT15, m_EditWSPort);
DDX_Control(pDX, IDC_CHECK2, m_EditTimeNotift);
DDX_Control(pDX, IDC_CHECK3, m_CheckEnableEmail);
}
......@@ -65,7 +66,6 @@ BOOL CDialog_Configure::OnInitDialog()
LPCTSTR lpszFile = _T("./XEngine_Config/XEngine_Config.ini");
memset(&st_AuthConfig, '\0', sizeof(AUTHORIZE_CONFIGURE));
Configure_IniFile_Read(lpszFile, &st_AuthConfig);
AuthorizeService_ReadConfigure();
return TRUE; // return TRUE unless you set the focus to a control
// 异常: OCX 属性页应返回 FALSE
......@@ -122,6 +122,16 @@ void CDialog_Configure::AuthorizeService_ReadConfigure()
m_RadioKeyDisable.SetCheck(TRUE);
m_RadioKeyPass.SetCheck(FALSE);
}
if (st_AuthConfig.st_EMail.bSmtpEnable)
{
m_CheckEnableEmail.SetCheck(1);
}
else
{
m_CheckEnableEmail.SetCheck(0);
}
m_StrConfigCrypt.Format(_T("%d"), st_AuthConfig.st_Crypto.nPassword);
m_EditPass.SetWindowText(m_StrConfigCrypt.GetBuffer());
......@@ -219,6 +229,14 @@ void CDialog_Configure::AuthorizeService_WriteConfigure()
WritePrivateProfileString(_T("Crypto"), _T("Enable"), _T("0"), lpszConfigFile);
}
if (BST_CHECKED == m_CheckEnableEmail.GetCheck())
{
WritePrivateProfileString(_T("SmtpConfig"), _T("SmtpEnable"), _T("1"), lpszConfigFile);
}
else
{
WritePrivateProfileString(_T("SmtpConfig"), _T("SmtpEnable"), _T("0"), lpszConfigFile);
}
WritePrivateProfileString(_T("SmtpConfig"), _T("SmtpService"), m_StrConfigSmtpAddr.GetBuffer(), lpszConfigFile);
WritePrivateProfileString(_T("SmtpConfig"), _T("SmtpFromAddr"), m_StrConfigSmtpFrom.GetBuffer(), lpszConfigFile);
WritePrivateProfileString(_T("SmtpConfig"), _T("SmtpUser"), m_StrConfigSmtpUser.GetBuffer(), lpszConfigFile);
......
......@@ -48,4 +48,5 @@ public:
afx_msg void OnBnClickedRadio1();
CEdit m_EditWSPort;
CButton m_EditTimeNotift;
CButton m_CheckEnableEmail;
};
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册