- // kaoqin.cpp : implementation file
- //
- #include "stdafx.h"
- #include "工资.h"
- #include "kaoqin.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // kaoqin
- kaoqin::kaoqin()
- {
- }
- kaoqin::~kaoqin()
- {
- }
- /////////////////////////////////////////////////////////////////////////////
- // kaoqin message handlers
- void kaoqin::sql_updatechidaon()
- {
- ADOConn m_AdoConn;
- //设置UPDATE语句
- // CString strDepId;
- // strDepId.Format("%d", DepId);
- _bstr_t vSQL;
- vSQL = "UPDATE kaoqinxinxi SET chidaon='" + chidaon + "' WHERE empid='" + empid + "'";
- m_AdoConn.OnInitADOConn();
- //执行UPDATE语句
- m_AdoConn.ExecuteSQL(vSQL);
- //断开与数据库的连接
- m_AdoConn.ExitConnect();
- }
- void kaoqin::sql_updatezaotui()
- {
- ADOConn m_AdoConn;
- //设置UPDATE语句
- // CString strDepId;
- // strDepId.Format("%d", DepId);
- _bstr_t vSQL;
- vSQL = "UPDATE kaoqinxinxi SET zaotuin='" + zaotuin + "' WHERE empid='" + empid + "'";
- m_AdoConn.OnInitADOConn();
- //执行UPDATE语句
- m_AdoConn.ExecuteSQL(vSQL);
- //断开与数据库的连接
- m_AdoConn.ExitConnect();
- }
- void kaoqin::sql_updatepsjiaban()
- {
- ADOConn m_AdoConn;
- //设置UPDATE语句
- // CString strDepId;
- // strDepId.Format("%d", DepId);
- _bstr_t vSQL;
- vSQL = "UPDATE kaoqinxinxi SET pstime='" + psjiaban + "' WHERE empid='" + empid + "'";
- m_AdoConn.OnInitADOConn();
- //执行UPDATE语句
- m_AdoConn.ExecuteSQL(vSQL);
- //断开与数据库的连接
- m_AdoConn.ExitConnect();
- }
- void kaoqin::sql_updatezmjiaban()
- {ADOConn m_AdoConn;
- //设置UPDATE语句
- // CString strDepId;
- // strDepId.Format("%d", DepId);
- _bstr_t vSQL;
- vSQL = "UPDATE kaoqinxinxi SET zmtime='" + zmjiaban + "' WHERE empid='" + empid + "'";
- m_AdoConn.OnInitADOConn();
- //执行UPDATE语句
- m_AdoConn.ExecuteSQL(vSQL);
- //断开与数据库的连接
- m_AdoConn.ExitConnect();
- }
- void kaoqin::sql_updatefdjiaban()
- {
- ADOConn m_AdoConn;
- //设置UPDATE语句
- // CString strDepId;
- // strDepId.Format("%d", DepId);
- _bstr_t vSQL;
- vSQL = "UPDATE kaoqinxinxi SET fdtime='" + fdjiaban + "' WHERE empid='" + empid + "'";
- m_AdoConn.OnInitADOConn();
- //执行UPDATE语句
- m_AdoConn.ExecuteSQL(vSQL);
- //断开与数据库的连接
- m_AdoConn.ExitConnect();
- }