- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
ProInStore.h
资源名称:final.rar [点击查看]
上传用户:fangwenmm
上传日期:2014-06-18
资源大小:6955k
文件大小:1k
源码类别:
企业管理
开发平台:
Visual C++
- // ProInStore.h: interface for the CProInStore class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_PROINSTORE_H__D90B5CBF_7A3D_4D65_8156_F4E326954D40__INCLUDED_)
- #define AFX_PROINSTORE_H__D90B5CBF_7A3D_4D65_8156_F4E326954D40__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class CProInStore
- {
- private:
- int SpId;
- int Pid;
- float Pprice;
- int Pnum;
- CString MakeDate;
- int Sid;
- public:
- CProInStore();
- virtual ~CProInStore();
- int GetSpId();
- void SetSpId(int iSpId);
- int GetPid();
- void SetPid(int iPid);
- float GetPprice();
- void SetPprice(float fPprice);
- int GetPnum();
- void SetPnum(int iPnum);
- CString GetMakeDate();
- void SetMakeDate(CString cMakeDate);
- int GetSid();
- void SetSid(int iSid);
- //数据库操作
- int SumPro(CString cPid); //计算指定产品的库存总数量
- int HaveProduct(CString cPid); //判断表中是否存在指定的产品信息
- int HaveStore(CString cSid); //判断表中是否存在指定的仓库信息
- //判断指定的"产品/价格/生产日期/仓库"是否在数据库中
- int HaveData(CString cPid, CString cPprice, CString cMakeDate, CString cSid);
- void sql_insert();
- void sql_updateDiff(CString cPid, CString cPprice, CString cMakeDate, CString cSid);
- void sql_updatePnum(CString cSpId);
- void sql_delete(CString cSpId);
- //读取所有字段值
- void GetData(CString cSpId);
- };
- #endif // !defined(AFX_PROINSTORE_H__D90B5CBF_7A3D_4D65_8156_F4E326954D40__INCLUDED_)