Client.h
资源名称:final.rar [点击查看]
上传用户:fangwenmm
上传日期:2014-06-18
资源大小:6955k
文件大小:1k
源码类别:
企业管理
开发平台:
Visual C++
- // Client.h: interface for the CClient class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_CLIENT_H__C210C883_216F_4A4E_BB2F_F034570AA92F__INCLUDED_)
- #define AFX_CLIENT_H__C210C883_216F_4A4E_BB2F_F034570AA92F__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class CClient
- {
- private:
- int Cid;
- CString Cname;
- int Ctype;
- CString Contact;
- CString Address;
- CString Postcode;
- CString Phone;
- CString Fax;
- CString Memo;
- public:
- CClient();
- virtual ~CClient();
- //设置和读取成员变量值
- int GetCid();
- void SetCid(int iCid);
- CString GetCname();
- void SetCname(CString cCname);
- int GetCtype();
- void SetCtype(int iCtype);
- CString GetContact();
- void SetContact(CString cContact);
- CString GetAddress();
- void SetAddress(CString cAddress);
- CString GetPostcode();
- void SetPostcode(CString cPostcode);
- CString GetPhone();
- void SetPhone(CString cPhone);
- CString GetFax();
- void SetFax(CString cFax);
- CString GetMemo();
- void SetMemo(CString cMemo);
- //数据库操作
- int HaveName(CString cCname); //判断指定的客户名是否在数据库中
- void sql_insert();
- void sql_update(CString cCid);
- void sql_delete(CString cCid);
- //根据员工编号读取所有字段值
- void GetData(CString cCid);
- };
- #endif // !defined(AFX_CLIENT_H__C210C883_216F_4A4E_BB2F_F034570AA92F__INCLUDED_)