亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? chargeitemeditdlg.cpp

?? VC++做的學(xué)校收費(fèi)管理系統(tǒng),很有參考價(jià)值,附上源碼與說明文檔.
?? CPP
字號:
// ChargeItemEditDlg.cpp : implementation file
//

#include "stdafx.h"
#include "ChargeManage.h"
#include "ChargeItemEditDlg.h"
#include "ChargeItem.h"


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

/////////////////////////////////////////////////////////////////////////////
// CChargeItemEditDlg dialog


CChargeItemEditDlg::CChargeItemEditDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CChargeItemEditDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CChargeItemEditDlg)
	m_BookFee = 0.0;
	m_DormFee = 0.0;
	m_FileFee = 0.0;
	m_incidental = 0.0;
	m_insurance = 0.0;
	m_MacTimeFee = 0.0;
	m_total = 0.0;
	m_tuition = 0.0;
	m_BicycleFee = 0.0;
	m_Year = 0;
	//}}AFX_DATA_INIT
}


void CChargeItemEditDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CChargeItemEditDlg)
	DDX_Control(pDX, IDC_SPECIALITY_COMBO, m_speciality);
	DDX_Text(pDX, IDC_BOOK_FEE_EDIT, m_BookFee);
	DDX_Text(pDX, IDC_DORM_FEE_EDIT, m_DormFee);
	DDX_Text(pDX, IDC_FILE_FEE_EDIT, m_FileFee);
	DDX_Text(pDX, IDC_INCIDENTAL_EDIT, m_incidental);
	DDX_Text(pDX, IDC_INSURANCE_EDIT, m_insurance);
	DDX_Text(pDX, IDC_MAC_TIME_FEE_EDIT, m_MacTimeFee);
	DDX_Text(pDX, IDC_TOTAL_EDIT, m_total);
	DDX_Text(pDX, IDC_TUITION_EDIT, m_tuition);
	DDX_Text(pDX, IDC_BICYCLE_FEE_EDIT, m_BicycleFee);
	DDX_Text(pDX, IDC_YEAR_EDIT, m_Year);
	DDV_MinMaxInt(pDX, m_Year, 1980, 2100);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CChargeItemEditDlg, CDialog)
	//{{AFX_MSG_MAP(CChargeItemEditDlg)
	ON_CBN_SELCHANGE(IDC_SPECIALITY_COMBO, OnSelchangeSpecialityCombo)
	ON_EN_CHANGE(IDC_TUITION_EDIT, OnChangeTuitionEdit)
	ON_EN_CHANGE(IDC_INCIDENTAL_EDIT, OnChangeIncidentalEdit)
	ON_EN_CHANGE(IDC_MAC_TIME_FEE_EDIT, OnChangeMacTimeFeeEdit)
	ON_EN_CHANGE(IDC_INSURANCE_EDIT, OnChangeInsuranceEdit)
	ON_EN_CHANGE(IDC_DORM_FEE_EDIT, OnChangeDormFeeEdit)
	ON_EN_CHANGE(IDC_BICYCLE_FEE_EDIT, OnChangeBicycleFeeEdit)
	ON_EN_CHANGE(IDC_BOOK_FEE_EDIT, OnChangeBookFeeEdit)
	ON_EN_CHANGE(IDC_FILE_FEE_EDIT, OnChangeFileFeeEdit)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CChargeItemEditDlg message handlers

BOOL CChargeItemEditDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	if(cItemId == "")
	{
		m_speciality.AddString("==專業(yè)信息==");
		spe.LoadSpe();

		for(int i=0; i<spe.a_SpeId.GetSize(); i++)
		{
			if (atol(spe.a_DepId.GetAt(i)) == DepId)
			{
				m_speciality.AddString(spe.a_Name.GetAt(i));
			}
		}
	}
	else
	{
		GetDlgItem(IDC_SPECIALITY_COMBO)->EnableWindow(FALSE);
		m_speciality.AddString(cSpe);
	}
	m_speciality.SetCurSel(0);

	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

// 改變專業(yè)選擇框
void CChargeItemEditDlg::OnSelchangeSpecialityCombo() 
{
	// TODO: Add your control notification handler code here
	// 得到當(dāng)前專業(yè)名稱
	CString strCurSpe;
	m_speciality.GetLBText(m_speciality.GetCurSel(), strCurSpe);
	
	// 得到SpeId的值
	for(int i = 0 ; i < spe.a_SpeId.GetSize(); i++)
	{
		if(spe.a_Name.GetAt(i) == strCurSpe)
		{
			SpeId = atol(spe.a_SpeId.GetAt(i));
		}
	}
}

// 學(xué)費(fèi)改變
void CChargeItemEditDlg::OnChangeTuitionEdit() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.
	
	// TODO: Add your control notification handler code here
	UpdateData(TRUE);
	m_total = m_tuition + m_incidental + m_MacTimeFee + m_insurance + m_DormFee
		+ m_BicycleFee + m_BookFee + m_FileFee;
	UpdateData(FALSE);
}

// 雜費(fèi)改變
void CChargeItemEditDlg::OnChangeIncidentalEdit() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.
	
	// TODO: Add your control notification handler code here
	UpdateData(TRUE);
	m_total = m_tuition + m_incidental + m_MacTimeFee + m_insurance + m_DormFee
		+ m_BicycleFee + m_BookFee + m_FileFee;
	UpdateData(FALSE);
}

// 機(jī)時(shí)費(fèi)改變
void CChargeItemEditDlg::OnChangeMacTimeFeeEdit() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.
	
	// TODO: Add your control notification handler code here
	UpdateData(TRUE);
	m_total = m_tuition + m_incidental + m_MacTimeFee + m_insurance + m_DormFee
		+ m_BicycleFee + m_BookFee + m_FileFee;
	UpdateData(FALSE);
}

// 保險(xiǎn)費(fèi)改變
void CChargeItemEditDlg::OnChangeInsuranceEdit() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.
	
	// TODO: Add your control notification handler code here
	UpdateData(TRUE);
	m_total = m_tuition + m_incidental + m_MacTimeFee + m_insurance + m_DormFee
		+ m_BicycleFee + m_BookFee + m_FileFee;
	UpdateData(FALSE);
}

// 住宿費(fèi)改變
void CChargeItemEditDlg::OnChangeDormFeeEdit() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.
	
	// TODO: Add your control notification handler code here
	UpdateData(TRUE);
	m_total = m_tuition + m_incidental + m_MacTimeFee + m_insurance + m_DormFee
		+ m_BicycleFee + m_BookFee + m_FileFee;
	UpdateData(FALSE);
}

// 存車費(fèi)改變
void CChargeItemEditDlg::OnChangeBicycleFeeEdit() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.
	
	// TODO: Add your control notification handler code here
	UpdateData(TRUE);
	m_total = m_tuition + m_incidental + m_MacTimeFee + m_insurance + m_DormFee
		+ m_BicycleFee + m_BookFee + m_FileFee;
	UpdateData(FALSE);
}

// 書費(fèi)改變
void CChargeItemEditDlg::OnChangeBookFeeEdit() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.
	
	// TODO: Add your control notification handler code here
	UpdateData(TRUE);
	m_total = m_tuition + m_incidental + m_MacTimeFee + m_insurance + m_DormFee
		+ m_BicycleFee + m_BookFee + m_FileFee;
	UpdateData(FALSE);
}

// 資料費(fèi)改變
void CChargeItemEditDlg::OnChangeFileFeeEdit() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.
	
	// TODO: Add your control notification handler code here
	UpdateData(TRUE);
	m_total = m_tuition + m_incidental + m_MacTimeFee + m_insurance + m_DormFee
		+ m_BicycleFee + m_BookFee + m_FileFee;
	UpdateData(FALSE);
}

// 確定按鈕
void CChargeItemEditDlg::OnOK() 
{
	// TODO: Add extra validation here
	UpdateData(TRUE);

	// 有效性判斷
	if(m_total == 0.0)
	{
		MessageBox("請輸入收費(fèi)信息");
		return;
	}
	if(SpeId == 0)
	{
		if(m_speciality.GetCurSel() == 0)
		{
			MessageBox("請選擇專業(yè)!");
			return;
		}
	}
	if(m_Year == 0)
	{
		MessageBox("請輸入收費(fèi)年度");
		return;
	}

	//將用戶輸入的數(shù)據(jù)賦值到對象cur中,為更新數(shù)據(jù)庫做準(zhǔn)備
	CChargeItem cur;
	cur.SpeId = SpeId;
	cur.iYear = m_Year;
	cur.Tuition = m_tuition;
	cur.Incidental = m_incidental;
	cur.MacTimeFee = m_MacTimeFee;
	cur.Insurance = m_insurance;
	cur.DormFee = m_DormFee;
	cur.BicycleFee = m_BicycleFee;
	cur.BookFee = m_BookFee;
	cur.FileFee = m_FileFee;

	// 判斷此專業(yè)收費(fèi)信息是否存在
	if(cItemId == "")
	{
		CString cYear;
		CString cSpeId;
		cYear.Format("%d", m_Year);
		cSpeId.Format("%ld", SpeId);
		
		if(cur.HaveSpe(cSpeId,cYear))
		{
			MessageBox("已經(jīng)存在此專業(yè)在此年度的收費(fèi)信息");
			return;
		}
		else
			cur.SqlInsert();
	}
	else		//根據(jù)cItemId的值更新記錄
		cur.SqlUpdate(cItemId);

	CDialog::OnOK();
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
首页国产欧美日韩丝袜| 欧美视频在线一区| 国产在线日韩欧美| 美女被吸乳得到大胸91| 日韩中文欧美在线| 日本伊人午夜精品| 理论片日本一区| 另类欧美日韩国产在线| 久久99精品久久久久久国产越南| 日韩精品国产精品| 久久国产精品72免费观看| 蜜桃久久av一区| 国产精品一色哟哟哟| 国产精品影视网| 不卡视频在线观看| 99re这里只有精品6| 日本精品视频一区二区三区| 欧美午夜精品电影| 777精品伊人久久久久大香线蕉| 欧美日韩黄色一区二区| 欧美一区二区三区四区高清| 日韩三级精品电影久久久| 久久久久久久电影| 中文字幕在线观看不卡| 亚洲一区二区三区视频在线| 午夜a成v人精品| 狠狠色2019综合网| 成人免费视频网站在线观看| 色婷婷综合视频在线观看| 欧美日韩一区在线| 欧美电影免费观看高清完整版在线 | 秋霞午夜鲁丝一区二区老狼| 狠狠色伊人亚洲综合成人| 国产成人av自拍| 日本乱码高清不卡字幕| 日韩欧美一级片| 国产精品大尺度| 婷婷开心激情综合| 国产高清亚洲一区| 91久久奴性调教| 日韩精品一区二区三区三区免费| 欧美高清在线一区| 午夜精品久久久久| 国产精品456露脸| 欧美在线观看一区| 久久综合狠狠综合久久激情| 亚洲欧美日韩系列| 久久国产精品72免费观看| 91香蕉视频在线| 日韩美女一区二区三区| 最新国产精品久久精品| 人人爽香蕉精品| jlzzjlzz亚洲日本少妇| 91精品国产入口在线| 国产欧美日韩精品在线| 午夜久久久久久| 成人av影院在线| 91精品国产91热久久久做人人| 中文在线一区二区| 免费日韩伦理电影| 色哟哟国产精品免费观看| 久久久亚洲高清| 天堂蜜桃91精品| 99精品欧美一区二区三区综合在线| 91精品国产黑色紧身裤美女| 亚洲人成影院在线观看| 国产毛片精品视频| 欧美日本不卡视频| 日韩理论电影院| 国产精品88888| 日韩一区二区三区电影| 亚洲一区欧美一区| 国产69精品久久久久777| 欧美大胆一级视频| 肉肉av福利一精品导航| 91麻豆精东视频| 国产三级精品三级| 老司机一区二区| 欧美剧情电影在线观看完整版免费励志电影| 国产色综合一区| 久久成人免费网| 欧美一区二区三区人| 亚洲国产一区在线观看| 91在线免费看| 1024国产精品| 99在线精品视频| 中文字幕av免费专区久久| 韩国一区二区三区| 日韩一级大片在线观看| 天堂午夜影视日韩欧美一区二区| 欧洲精品一区二区三区在线观看| 国产精品超碰97尤物18| 粉嫩av一区二区三区| 久久久久久免费网| 精品一区二区三区香蕉蜜桃| 日韩视频123| 激情综合色播激情啊| 欧美一区二区三区小说| 日本va欧美va精品| 制服丝袜国产精品| 日本伊人精品一区二区三区观看方式| 在线观看日韩一区| 亚洲国产日韩a在线播放| 在线视频你懂得一区| 亚洲精品久久嫩草网站秘色| 91亚洲午夜精品久久久久久| 亚洲精品久久7777| 欧美怡红院视频| 亚洲亚洲精品在线观看| 在线观看一区二区视频| 香港成人在线视频| 欧美一区二区三区视频| 精品一区二区三区蜜桃| 久久久久国产精品免费免费搜索| 国产精品一区二区久激情瑜伽| 26uuu久久天堂性欧美| 国产美女主播视频一区| 国产日韩视频一区二区三区| 东方欧美亚洲色图在线| 自拍偷自拍亚洲精品播放| 在线亚洲高清视频| 日本不卡一区二区| 久久综合一区二区| 成人国产亚洲欧美成人综合网| 亚洲欧美一区二区久久| 在线视频国产一区| 日韩va欧美va亚洲va久久| 精品国产一二三| fc2成人免费人成在线观看播放| 亚洲免费观看高清| 欧美精品日韩一区| 国产资源精品在线观看| 国产精品入口麻豆九色| 91高清视频免费看| 秋霞午夜av一区二区三区| 久久久久国产精品人| 日本黄色一区二区| 日韩精品国产精品| 国产精品天天摸av网| 在线观看日韩国产| 精品中文av资源站在线观看| 欧美国产精品一区二区三区| 日本精品一级二级| 国产一区二区精品久久| 亚洲欧美色一区| 日韩精品一区二区三区蜜臀 | 国产成人综合自拍| 亚洲综合色视频| 久久午夜电影网| 在线精品视频一区二区| 国产很黄免费观看久久| 亚洲图片一区二区| 欧美激情资源网| 欧美一区二区三区视频在线观看 | 欧美视频你懂的| 国产乱码一区二区三区| 亚洲综合一区二区精品导航| 日韩视频一区在线观看| 色婷婷av一区二区三区大白胸 | 在线视频国内一区二区| 国产精品一区二区久久精品爱涩| 欧美本精品男人aⅴ天堂| 色婷婷激情综合| 国产一区二区福利| 天天做天天摸天天爽国产一区| 日本一区二区三级电影在线观看| 欧美日韩综合不卡| av在线不卡观看免费观看| 轻轻草成人在线| 一区二区国产视频| 国产精品免费观看视频| 日韩免费观看2025年上映的电影| 色菇凉天天综合网| 国产成人激情av| 麻豆国产欧美日韩综合精品二区| 一区二区三区在线免费| 国产亚洲欧美一区在线观看| 欧美精品九九99久久| 色老汉一区二区三区| 国产高清精品网站| 免费高清在线一区| 亚洲国产精品一区二区久久| 亚洲欧洲www| 欧美高清在线一区| 久久综合色8888| 欧美r级在线观看| 69精品人人人人| 欧美日韩国产精品成人| 91丨porny丨中文| 成人性生交大片免费看中文 | 福利一区二区在线观看| 黄页网站大全一区二区| 蜜桃在线一区二区三区| 三级欧美韩日大片在线看| 一卡二卡三卡日韩欧美| 亚洲色图视频网| 综合电影一区二区三区 | 高清视频一区二区| 国产一区二区三区免费播放| 久久se精品一区精品二区|