课设题目
小区物业管理系统设计
课设要求
设计内容
对某小区的物业管理进行调研和需求分析,设计业主信息和房屋信息,实现小区物业管理(包括物业费,电梯费,水费,暖气费等)。系统可设置收费标准,物业费、电梯费和暖气费收取均根据房屋面积计算得到。主要功能包括:
- 用户管理
- 房屋信息和业主信息的录入、 修改、删除和文件导入
- 季度费用信息的手工录入,修改、删除和文件导入
- 按楼号+房号查询业主交费信息
- 小区房 屋维修记录的录入、删除和查询
- 按楼号、季度统计未交费的房号,并输出房号,业主姓名,电话和费用,保存到文件中
- 小区公告管理
程序运行界面
部分源码
void CFangwuManDlg::OnButton5()
{
CString strtemp;
GetDlgItem(IDC_EDIT1)->GetWindowText(strtemp);
Cfangwu * ptr = Cfangwu::Gethbinfo(strtemp.GetBuffer(100));
strtemp.ReleaseBuffer();
if(ptr != NULL)
{
GetDlgItem(IDC_EDIT1)->SetWindowText(ptr->szzkz);
GetDlgItem(IDC_EDIT2)->SetWindowText(ptr->name);
GetDlgItem(IDC_EDIT3)->SetWindowText(ptr->yezhu);
GetDlgItem(IDC_EDIT4)->SetWindowText(ptr->phone);
GetDlgItem(IDC_EDIT5)->SetWindowText(ptr->mianji);
}
else
AfxMessageBox("无记录");
}
void CFangwuManDlg::OnButton1()
{
// TODO: Add your control notification handler code here
Cfangwu st;
memset(&st,0,sizeof(st));
CString strtemp;
GetDlgItem(IDC_EDIT1)->GetWindowText(strtemp);
strcpy(st.szzkz,strtemp);
GetDlgItem(IDC_EDIT2)->GetWindowText(strtemp);
strcpy(st.name,strtemp);
GetDlgItem(IDC_EDIT3)->GetWindowText(strtemp);
strcpy(st.yezhu,strtemp);
GetDlgItem(IDC_EDIT4)->GetWindowText(strtemp);
strcpy(st.phone,strtemp);
GetDlgItem(IDC_EDIT5)->GetWindowText(strtemp);
strcpy(st.mianji,strtemp);
if(Cfangwu::inputhb(st))
{
AfxMessageBox("添加成功");
}
else
{
AfxMessageBox("添加失败。确定该信息已经存在");
}
}
void CFangwuManDlg::OnButton2()
{
// TODO: Add your control notification handler code here
CString strtemp;
GetDlgItem(IDC_EDIT1)->GetWindowText(strtemp);
Cfangwu * ptr = Cfangwu::Gethbinfo(strtemp.GetBuffer(100));
strtemp.ReleaseBuffer();
if(ptr != NULL)
{
GetDlgItem(IDC_EDIT2)->GetWindowText(strtemp);
strcpy(ptr->name,strtemp);
GetDlgItem(IDC_EDIT3)->GetWindowText(strtemp);
strcpy(ptr->yezhu,strtemp);
GetDlgItem(IDC_EDIT4)->GetWindowText(strtemp);
strcpy(ptr->phone,strtemp);
GetDlgItem(IDC_EDIT5)->GetWindowText(strtemp);
strcpy(ptr->mianji,strtemp);
AfxMessageBox("修改成功");
}
else
AfxMessageBox("无记录");
}
void CFangwuManDlg::OnButton6()
{
CString strtemp;
GetDlgItem(IDC_EDIT1)->GetWindowText(strtemp);
Cfangwu * ptr = Cfangwu::Gethbinfo(strtemp.GetBuffer(100));
strtemp.ReleaseBuffer();
vector<Cfangwu> * pall = Cfangwu::GetAllhb();
if (ptr != NULL)
{
vector<Cfangwu>::iterator it;
for (it = pall->begin(); it != pall->end() ; it++)
{
if(strcmp((*it).szzkz, ptr->szzkz) == 0)
{
pall->erase(it);
AfxMessageBox("删除成功");
return;
}
}
}
else
{
AfxMessageBox("不存在该信息");
}
}
void CFangwuManDlg::OnButton10()
{
// TODO: Add your control notification handler code here
CListCtrl *plist = (CListCtrl *)GetDlgItem(IDC_LIST1);
plist->DeleteAllItems();
CString strtemp;
int i = 0;
int iall = 0;
vector<Cfangwu> *VEC1 = Cfangwu::GetAllhb();
for(i = 0; i < VEC1->size(); i++)
{
Cfangwu st = VEC1->at(i);
strtemp.Format("%d",iall+1);
plist->InsertItem(iall,"");
plist->SetItemText(iall,0,strtemp);
plist->SetItemText(iall,1,st.szzkz);
plist->SetItemText(iall,2,st.name);
plist->SetItemText(iall,3,st.yezhu);
plist->SetItemText(iall,4,st.phone);
plist->SetItemText(iall,5,st.mianji);
iall+=1;
}
}
项目源码
需要源码的小伙伴请前往
微信公众号:海轰Pro
回复: 海轰
O(∩_∩)O哈哈~