94 lines
1.3 KiB
C++
94 lines
1.3 KiB
C++
#include "StdAfx.h"
|
|
#include ".\basicinfo.h"
|
|
|
|
CSheetInfo::CSheetInfo(void)
|
|
: m_nScriptType(0)
|
|
{
|
|
}
|
|
|
|
|
|
CSheetInfo::~CSheetInfo(void)
|
|
{
|
|
}
|
|
|
|
void CSheetInfo::SetSttRow(int nRow)
|
|
{
|
|
m_nSttRow = nRow;
|
|
}
|
|
|
|
int CSheetInfo::GetSttRow()
|
|
{
|
|
return m_nSttRow;
|
|
}
|
|
|
|
void CSheetInfo::SetEndRow(int nRow)
|
|
{
|
|
m_nEndRow = nRow;
|
|
}
|
|
|
|
int CSheetInfo::GetEndRow()
|
|
{
|
|
return m_nEndRow;
|
|
}
|
|
|
|
void CSheetInfo::SetSttCol(CString strCol)
|
|
{
|
|
m_strSttCol = strCol;
|
|
}
|
|
|
|
CString CSheetInfo::GetSttCol()
|
|
{
|
|
return m_strSttCol;
|
|
}
|
|
|
|
void CSheetInfo::SetEndCol(CString strCol)
|
|
{
|
|
m_strEndCol = strCol;
|
|
}
|
|
|
|
CString CSheetInfo::GetEndCol()
|
|
{
|
|
return m_strEndCol;
|
|
}
|
|
|
|
|
|
CString CSheetInfo::GetSttCell(void)
|
|
{
|
|
CString strCell;
|
|
strCell.Format("%s%d", m_strSttCol, m_nSttRow);
|
|
return strCell;
|
|
}
|
|
|
|
CString CSheetInfo::GetEndCell(void)
|
|
{
|
|
CString strCell;
|
|
strCell.Format("%s%d", m_strEndCol, m_nEndRow);
|
|
return strCell;
|
|
}
|
|
|
|
void CSheetInfo::SetScriptType(int nType)
|
|
{
|
|
m_nScriptType = nType;
|
|
}
|
|
|
|
void CSheetInfo::SetSheetNumber(int nSheet)
|
|
{
|
|
m_nSheet = nSheet;
|
|
}
|
|
|
|
int CSheetInfo::GetSheetNumber()
|
|
{
|
|
return m_nSheet;
|
|
}
|
|
|
|
|
|
void CSheetInfo::InitData(int nType, CString sttCol, int sttRow, CString endCol, int endRow, int nSheetNum)
|
|
{
|
|
SetScriptType(nType);
|
|
SetSttCol(sttCol);
|
|
SetSttRow(sttRow);
|
|
SetEndCol(endCol);
|
|
SetEndRow(endRow);
|
|
SetSheetNumber(nSheetNum);
|
|
}
|