-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDatabase.h
24 lines (24 loc) · 1.38 KB
/
Database.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef __DATABASE_H__
#define __DATABASE_H__
CString ChartsToCString(char * chart, int len);
int OpenDataBase(CString filename, _ConnectionPtr &m_pDB, _RecordsetPtr &m_pRs);
int CloseDataBase(_ConnectionPtr &m_pDB, _RecordsetPtr &m_pRs);
int loadnum(_ConnectionPtr &m_pDB, _RecordsetPtr &m_pRs, unsigned int *param);
int IS_NO_exist(_ConnectionPtr &m_pDB, _RecordsetPtr &m_pRs, int *param);
//int loadpatient(void *param, int n_column, char **column_value, char **column_name);
int loadpatient(_ConnectionPtr &m_pDB, _RecordsetPtr &m_pRs, patient_info ¶m);
int loaddoctor(_ConnectionPtr &m_pDB, _RecordsetPtr &m_pRs, doctor_info ¶m);
int loadresult(_ConnectionPtr &m_pDB, _RecordsetPtr &m_pRs, sample_info ¶m);
int ExeSql(_ConnectionPtr &m_pDB, _RecordsetPtr &m_pRs, CString sql);
int AddSampleRecord(sample_info *psampledata);
int AddPatientRecord(patient_info *ppatientdata);
int QcLjXXrEditFileAdd(qc_edit_data_info *pqcLjXXrEditData);
int QcLjXXrEditFileAdd2(qc_edit_data_info *pqcLjXXrEditData);
int AddQcLjXXrResult(qcresult_info *qcresultdata);
int QcLjXXrEditFileExistReset(qc_edit_data_info *pqcLjXXrEditData);
int DelQcLjXXrResult(unsigned int qctypeparam, unsigned int filenumparam, unsigned int rowparam);
int EmptyXB_ListRecord(void);
void GetRowNo( int &row, int &number);
int strcopy_ex(void* dest, void* src);
int AddWorkSheet(int &row, int &number);
#endif