/********************************************************************* * * 文 件: LstDAO.h 班组模块数据访问接口,默认提供Proc方式实现 * * 版权所有: Shanghai Baosight Software Co., Ltd. * * 概述: * : * : * * 版本历史 * 1.0 2010-06-22 echo_li 初次建立 * 2010-08-10 liliang 增加停机数据访问接口 * %USER% *********************************************************************/ #ifndef LSTDAO_H_ #define LSTDAO_H_ #include #include using namespace std; namespace baosight{ class LstDAO:public ShiftDAO { public: /********************************************************************** * 概述: 更新上一班数据 * 函数名: UpdatePreShiftData * 返回值: short * 参数列表: 参数类型 取值范围 描述 * shiftInfo: const S_SHIFTINFO & * * 版本历史 * 1.0 2010-09-02 echo_li 增加注释 * **********************************************************************/ virtual short UpdatePreShiftData(const S_SHIFTINFO& shiftInfo); /********************************************************************** * 概述: 统计班信息 * 函数名: StatShiftProdInfo * 返回值: short * 参数列表: 参数类型 取值范围 描述 * shiftInfo: const S_SHIFTINFO & * proInfo: S_PRODUCTINFO & * * 版本历史 * 1.0 2010-09-02 echo_li 增加注释 * 1.1 2010-10-27 liliang 增加参数flag用于判断,是否统计过渡卷,默认不统计过渡卷 * **********************************************************************/ virtual short StatShiftProdInfo(const S_SHIFTINFO& shiftInfo,S_PRODUCTINFO& proInfo,short flag = 0); /********************************************************************** * 概述: 设置当前班信息 * 函数名: SetCurrentShiftData * 返回值: short * 参数列表: 参数类型 取值范围 描述 * shiftInfo: S_SHIFTINFO * * 版本历史 * 1.0 2010-09-02 echo_li 增加注释 * **********************************************************************/ virtual short SetCurrentShiftData(S_SHIFTINFO shiftInfo); /********************************************************************** * 概述: 获取最后一班的结束时间 * 函数名: GetLastShiftEndTime * 返回值: short * 参数列表: 参数类型 取值范围 描述 * time: string & * * 版本历史 * 1.0 2010-09-02 echo_li 增加注释 * **********************************************************************/ virtual short GetLastShiftEndTime(string& time); virtual short addNewCrew( const string& crew); public: LstDAO(); ~LstDAO(); }; } #endif