123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- #include "stdafx.h"
- #include "LYFZIPManage.h"
- #include "ReCharge.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- ReCharge::ReCharge(CWnd* pParent )
- : CDialog(ReCharge::IDD, pParent)
- {
-
- m_account = _T("");
- m_name = _T("");
- m_money = _T("");
- m_count = _T("");
- m_price = _T("");
-
- }
- void ReCharge::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
-
- DDX_Control(pDX, IDC_EDITcount, m_editnum2);
- DDX_Control(pDX, IDC_EDITmoney, m_editnum1);
- DDX_Text(pDX, IDC_EDITaccount, m_account);
- DDX_Text(pDX, IDC_EDITname, m_name);
- DDX_Text(pDX, IDC_EDITmoney, m_money);
- DDX_Text(pDX, IDC_EDITcount, m_count);
- DDX_Text(pDX, IDC_EDITprice, m_price);
-
- }
- BEGIN_MESSAGE_MAP(ReCharge, CDialog)
-
- ON_EN_CHANGE(IDC_EDITmoney, OnChangeEDITmoney)
- ON_EN_CHANGE(IDC_EDITcount, OnChangeEDITcount)
-
- END_MESSAGE_MAP()
- BOOL ReCharge::OnInitDialog()
- {
- CDialog::OnInitDialog();
-
-
- return TRUE;
-
- }
- void ReCharge::OnChangeEDITmoney()
- {
-
-
-
-
- UpdateData();
- if(atof(m_count))
- {
- m_price.Format ("%0.4f", atof(m_money)/atof(m_count));
- }
- else
- m_price="0";
- UpdateData(false);
-
-
- }
- void ReCharge::OnChangeEDITcount()
- {
-
-
-
-
- OnChangeEDITmoney();
-
-
- }
- void ReCalAccount(CString account)
- {
-
- }
- void ReCharge::OnOK()
- {
-
-
- }
|