#include "StdAfx.h"
|
#include "MBNetDiskWebCMgr.h"
|
#include "MBServerFuncDef.h"
|
|
|
|
CMBNetDiskWebCMgr::CMBNetDiskWebCMgr(void)
|
{
|
m_nPort = 0;
|
m_mapServerTrID.RemoveAll();
|
}
|
|
|
CMBNetDiskWebCMgr::~CMBNetDiskWebCMgr(void)
|
{
|
m_mapServerTrID.RemoveAll();
|
}
|
|
void CMBNetDiskWebCMgr::SetServerInfo_Asyn( CString strServerIP, UINT nPort )
|
{
|
m_strServerIP = strServerIP;
|
m_nPort = nPort;
|
m_NetDiskWebCAsynMgr.SetServerInfo( strServerIP, nPort );
|
}
|
|
void CMBNetDiskWebCMgr::SetUserInfo_Asyn( CString strUserLogin, CString strUserName )
|
{
|
m_strUserLogin = strUserLogin;
|
m_strUserName = strUserName;
|
m_NetDiskWebCAsynMgr.SetUserInfo( strUserLogin, strUserName,_T(""));
|
}
|
|
|
|
bool CMBNetDiskWebCMgr::SignIn_Asyn( HWND hWnd, CString strPassword )
|
{
|
m_strPassword = strPassword;
|
REQLOADSERVER_ITEM reqLodServerItem;
|
int nCode = m_NetDiskWebCAsynMgr.SignIn( hWnd, strPassword );
|
reqLodServerItem.hWnd = hWnd;
|
reqLodServerItem.strMethod = NETDISK_SIGNIN;
|
m_mapServerTrID.SetAt(nCode,reqLodServerItem);
|
return true;
|
}
|
|
void CMBNetDiskWebCMgr::SetServerInfo( CString strServerIP, UINT nPort )
|
{
|
m_strServerIP = strServerIP;
|
m_nPort = nPort;
|
m_NetDiskWebCMgr.SetServerInfo( strServerIP, nPort );
|
}
|
|
void CMBNetDiskWebCMgr::SetUserInfo( CString strUserLogin, CString strUserName )
|
{
|
m_strUserLogin = strUserLogin;
|
m_strUserName = strUserName;
|
m_NetDiskWebCMgr.SetUserInfo( strUserLogin, strUserName,_T(""));
|
}
|
|
bool CMBNetDiskWebCMgr::SignIn( CString strPassword,CString &strUserSessionID, CString &strRootList,CString &strErrInfo )
|
{
|
int nCode = m_NetDiskWebCMgr.SignIn( strPassword,strUserSessionID,strRootList );
|
if( nCode != 0 )
|
{
|
strErrInfo = m_NetDiskWebCMgr.GetLastErrInfo();
|
return false;
|
}
|
|
return true;
|
}
|
|
bool CMBNetDiskWebCMgr::SignIn( CString &strRootList,CString &strErrInfo )
|
{
|
int nCode = m_NetDiskWebCMgr.SignIn( strRootList );
|
if( nCode != 0 )
|
{
|
strErrInfo = m_NetDiskWebCMgr.GetLastErrInfo();
|
return false;
|
}
|
|
return true;
|
}
|
|
void CMBNetDiskWebCMgr::SetUserSessionID( CString strUserSessionID )
|
{
|
m_strUserSession = strUserSessionID;
|
m_NetDiskWebCMgr.SetUserSessionID(strUserSessionID);
|
}
|
|
bool CMBNetDiskWebCMgr::DMSGetCabinetList2_Asyn(REQLOADSERVER_ITEM &reqLodServerItem,short nOrgStyle )
|
{
|
if( reqLodServerItem.hWnd == NULL )
|
return false;
|
|
UINT nTrID = m_NetDiskWebCAsynMgr.DMS_GetCabinetList2( reqLodServerItem.hWnd, nOrgStyle );
|
|
reqLodServerItem.strMethod = ASYNNETDISK_DMSGETCABINETLIST2;
|
m_mapServerTrID.SetAt(nTrID,reqLodServerItem);
|
return true;
|
}
|
|
bool CMBNetDiskWebCMgr::DMSGetCatalogList_Asyn( REQLOADSERVER_ITEM &reqLodServerItem, CString strCabinetID, CString strParentID )
|
{
|
if( reqLodServerItem.hWnd == NULL )
|
return false;
|
|
UINT nTrID = m_NetDiskWebCAsynMgr.DMS_GetCatalogList( reqLodServerItem.hWnd, strCabinetID,strParentID );
|
|
reqLodServerItem.strMethod = ASYNNETDISK_DMSGETCATALOGLIST;
|
m_mapServerTrID.SetAt(nTrID,reqLodServerItem);
|
|
return true;
|
}
|
|
|
bool CMBNetDiskWebCMgr::DMSGetDocList_Asyn( REQLOADSERVER_ITEM &reqLodServerItem, CString strCabinetID, CString strCatalogID,int nFtnType, bool bIncludeCatalog )
|
{
|
if( reqLodServerItem.hWnd == NULL )
|
return false;
|
|
if( nFtnType == 0 )
|
{
|
reqLodServerItem.strMethod = ASYNNETDISK_DMSGETDOCLIST;
|
}else if( nFtnType == 1 )
|
{
|
reqLodServerItem.strMethod = ASYNNETDISK_DMSGETDOCLIST_DEAL1;
|
}else if( nFtnType == 2 )
|
{
|
reqLodServerItem.strMethod = ASYNNETDISK_DMSGETDOCLIST_DEAL2;
|
}
|
else
|
{
|
return false;
|
}
|
|
UINT nTrID = m_NetDiskWebCAsynMgr.DMS_GetDocList( reqLodServerItem.hWnd, strCabinetID,strCatalogID,bIncludeCatalog );
|
|
|
m_mapServerTrID.SetAt(nTrID,reqLodServerItem);
|
|
return true;
|
}
|
|
|
bool CMBNetDiskWebCMgr::NDGetCatalogList_Asyn( REQLOADSERVER_ITEM &reqLodServerItem, CString strParentID, CString strOwnerID )
|
{
|
if( reqLodServerItem.hWnd == NULL )
|
return false;
|
|
UINT nTrID = m_NetDiskWebCAsynMgr.ND_GetCatalogList( reqLodServerItem.hWnd, strParentID,strOwnerID );
|
|
reqLodServerItem.strMethod = ASYNNETDISK_NDGETCATALOGLIST;
|
m_mapServerTrID.SetAt(nTrID,reqLodServerItem);
|
return true;
|
}
|
|
bool CMBNetDiskWebCMgr::NDGetDocList_Asyn( REQLOADSERVER_ITEM &reqLodServerItem, CString strCatalogID, bool bIncludeCatalog, CString strOwnerID )
|
{
|
if( reqLodServerItem.hWnd == NULL )
|
return false;
|
|
UINT nTrID = m_NetDiskWebCAsynMgr.ND_GetDocList( reqLodServerItem.hWnd, strCatalogID,bIncludeCatalog,strOwnerID );
|
|
reqLodServerItem.strMethod = ASYNNETDISK_NDGETDOCLIST;
|
m_mapServerTrID.SetAt(nTrID,reqLodServerItem);
|
return true;
|
}
|
|
bool CMBNetDiskWebCMgr::NDRecycleBinGetList_Asyn( REQLOADSERVER_ITEM &reqLodServerItem, CString strName, CString strStartDate, CString strEndDate, CString strOrderBy, UINT nNumPerPage )
|
{
|
if( reqLodServerItem.hWnd == NULL )
|
return false;
|
|
UINT nTrID = m_NetDiskWebCAsynMgr.ND_RecycleBin_GetList( reqLodServerItem.hWnd,strName,strStartDate, strEndDate, strOrderBy, nNumPerPage);
|
|
reqLodServerItem.strMethod = ASYNNETDISK_NDRECYCLEBINGETLIST;
|
m_mapServerTrID.SetAt(nTrID,reqLodServerItem);
|
return true;
|
}
|
|
|
bool CMBNetDiskWebCMgr::DMSCreateCatalog_Asyn( REQLOADSERVER_ITEM &reqLodServerItem, CString strCabinetID, CString strParentID, CString strCatalogName,CString &strErrInfo )
|
{
|
if( reqLodServerItem.hWnd == NULL )
|
return false;
|
|
UINT nTrID = m_NetDiskWebCAsynMgr.DMS_CreateCatalog( reqLodServerItem.hWnd, strCabinetID, strParentID, strCatalogName );
|
|
reqLodServerItem.strMethod = ASYNNETDISK_DMSCREATECATALOG;
|
m_mapServerTrID.SetAt(nTrID,reqLodServerItem);
|
return true;
|
}
|
|
bool CMBNetDiskWebCMgr::DMSCreateDoc_Asyn(REQLOADSERVER_ITEM &reqLodServerItem,CString strCabinetID, CString strCatalogID, CString strDefXML,CString &strErrInfo)
|
{
|
if( reqLodServerItem.hWnd == NULL )
|
return false;
|
|
UINT nTrID = m_NetDiskWebCAsynMgr.DMS_CreateDoc( reqLodServerItem.hWnd, strCabinetID, strCatalogID, strDefXML );
|
|
reqLodServerItem.strMethod = ASYNNETDISK_DMSCREATEDOC;
|
m_mapServerTrID.SetAt(nTrID,reqLodServerItem);
|
return true;
|
}
|
|
bool CMBNetDiskWebCMgr::DMSExistCatalog_Asyn(REQLOADSERVER_ITEM &reqLodServerItem,CString strCabinetID, CString strParentID, CString strCatalogName,CString &strErrInfo)
|
{
|
if( reqLodServerItem.hWnd == NULL )
|
return false;
|
UINT nTrID = m_NetDiskWebCAsynMgr.DMS_ExistCatalog( reqLodServerItem.hWnd, strCabinetID, strParentID, strCatalogName );
|
reqLodServerItem.strMethod = ASYNNETDISK_DMSEXITCATALOG;
|
m_mapServerTrID.SetAt(nTrID,reqLodServerItem);
|
return true;
|
}
|
|
bool CMBNetDiskWebCMgr::DMSExistDoc_Asyn(REQLOADSERVER_ITEM &reqLodServerItem,CString strCabinetID, CString strCatalogID, CString strDocName,CString &strErrInfo)
|
{
|
if( reqLodServerItem.hWnd == NULL )
|
return false;
|
UINT nTrID = m_NetDiskWebCAsynMgr.DMS_ExistDoc( reqLodServerItem.hWnd, strCabinetID, strCatalogID, strDocName );
|
reqLodServerItem.strMethod = ASYNNETDISK_DMSEXITDOC;
|
m_mapServerTrID.SetAt(nTrID,reqLodServerItem);
|
return true;
|
}
|
|
bool CMBNetDiskWebCMgr::DMSGetDocInfo_Asyn( REQLOADSERVER_ITEM &reqLodServerItem, CString strDocID,CString &strErrInfo )
|
{
|
if( reqLodServerItem.hWnd == NULL )
|
return false;
|
UINT nTrID = m_NetDiskWebCAsynMgr.DMS_GetDocInfo( reqLodServerItem.hWnd, strDocID );
|
reqLodServerItem.strMethod = ASYNNEDISK_DMSGETDOCINFO;
|
m_mapServerTrID.SetAt(nTrID,reqLodServerItem);
|
return true;
|
}
|
|
|
CString CMBNetDiskWebCMgr::GetCreateDocDefXml(CString strFileServer,CString strFileID,__int64 nFileSize,CString strFileMD5,CString strFilePsw,CString strFileTime,CString strVID,CString strName,CString strFileName)
|
{
|
CString strDefXml;
|
|
strDefXml.Format(_T("<Doc FileServer='%s' FileID='%s' FileSize='%I64d' FileMD5='%s' FilePsw='%s' FileTime='%s' VID='%s'><Name><![CDATA[%s]]></Name><FileName><![CDATA[%s]]></FileName></Doc>"),strFileServer, strFileID,nFileSize, strFileMD5, strFilePsw, strFileTime, strVID,strName,strFileName);
|
|
return strDefXml;
|
}
|
|
CString CMBNetDiskWebCMgr::GetNDUpdateDocDefXml(CString strFileServer,CString strFileID,__int64 nFileSize,CString strFileMD5,
|
CString strFileTime,CString strFileName)
|
{
|
CString strDefXml;
|
|
strDefXml.Format(_T("<Doc FileServer='%s' FileID='%s' FileSize='%I64d' FileMD5='%s' FileTime='%s'><FileName><![CDATA[%s]]></FileName></Doc>"),strFileServer, strFileID,nFileSize, strFileMD5,strFileTime, strFileName);
|
|
return strDefXml;
|
}
|
|
CString CMBNetDiskWebCMgr::GetDMSUpdateDocDefXml(CString strFileServer,CString strFileID,__int64 nFileSize,CString strFileMD5,
|
CString strFileTime,CString strDocName,CString strFileName)
|
{
|
CString strDefXml;
|
|
|
strDefXml.Format(_T("<Doc FileServer='%s' FileID='%s' FileSize='%I64d' FileMD5='%s' FileTime='%s'><Name><![CDATA[%s]]></Name><FileName><![CDATA[%s]]></FileName></Doc>"),strFileServer, strFileID,nFileSize, strFileMD5,strFileTime,strDocName,strFileName);
|
|
return strDefXml;
|
}
|
|
|
// ¸üÐÂÎĵµÐÅÏ¢£¨Ö»¸üÐÂ×ÔÉíÐÅÏ¢£¬ÎÞ±êÇ©¡¢¸½¼þ¡¢¹ØÁª£©£¬Èç¹ûÎļþ ID ±ä»¯£¬½«²úÉúÌæ»»ÐÅÏ¢
|
bool CMBNetDiskWebCMgr::DMSUpdateDoc( CString strDocID, CString strDefXML,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_UpdateDoc( strDocID, strDefXML );
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_UpdateDoc,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
bool CMBNetDiskWebCMgr::DMSGetDocInfo( CString strDocID, CString &strInfoXML,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_GetDocInfo( strDocID, strInfoXML );
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_GetDocInfo,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
|
// Ôö¼ÓĿ¼
|
bool CMBNetDiskWebCMgr::DMSCreateCatalog( CString strCabinetID, CString strParentID, CString strCatalogName, CString &strCatalogID,CString &strCatalogPath,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_CreateCatalog( strCabinetID, strParentID, strCatalogName, strCatalogID, &strCatalogPath);
|
// ÍøÂçÖжÏÖØÊÔÈý´Î
|
int ReNetDisk = 2;
|
if( nErrCode == -1 ) // ÍøÂçÖжÏ
|
{
|
while( ReNetDisk )
|
{
|
Sleep(20);
|
nErrCode = m_NetDiskWebCMgr.DMS_CreateCatalog( strCabinetID, strParentID, strCatalogName, strCatalogID );
|
if( nErrCode == 0 )
|
{
|
break;
|
}
|
ReNetDisk--;
|
}
|
}
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_CreateCatalog,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// Ôö¼ÓÎĵµ
|
bool CMBNetDiskWebCMgr::DMSCreateDoc( CString strCabinetID, CString strCatalogID, CString strDefXML, CString &strDocID, CString &strAttachIDList,bool &bIsPreArchive,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_CreateDoc( strCabinetID, strCatalogID,strDefXML, strDocID, strAttachIDList,bIsPreArchive );
|
|
// ÍøÂçÖжÏÖØÊÔÈý´Î
|
int ReNetDisk = 2;
|
if( nErrCode == -1 ) // ÍøÂçÖжÏ
|
{
|
while( ReNetDisk )
|
{
|
nErrCode = m_NetDiskWebCMgr.DMS_CreateDoc( strCabinetID, strCatalogID,strDefXML, strDocID, strAttachIDList,bIsPreArchive );
|
if( nErrCode == 0 )
|
{
|
break;
|
}
|
ReNetDisk--;
|
}
|
}
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_CreateDoc,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
bool CMBNetDiskWebCMgr::DMSDocApply( CString strDocIDs, CString strActionType, CString strCause, CString &strResult,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_Doc_Apply( strDocIDs, strActionType, strCause, strResult );
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_Doc_Apply,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
bool CMBNetDiskWebCMgr::DMSGetDocList( CString strCabinetID, CString strCatalogID, CString &strListXML,CString &strErrInfo, bool bIncludeCatalog )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_GetDocList( strCabinetID, strCatalogID, strListXML, bIncludeCatalog );
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_GetDocList,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
bool CMBNetDiskWebCMgr::DMSGetDocList2( CString strCabinetID, CString strCatalogPath, CString &strListXML, CString &strErrInfo,bool bIncludeCatalog, CString strOrderBy, bool bIncludeFileID, int nPage, int nNumPerPage )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_GetDocList2(strCabinetID, strCatalogPath, strListXML, bIncludeCatalog, strOrderBy, bIncludeFileID, nPage, nNumPerPage );
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_GetDocList2,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
|
// ÎĵµÊÇ·ñ´æÔÚ
|
bool CMBNetDiskWebCMgr::DMSExistDoc( CString strCabinetID, CString strCatalogID, CString strDocName, CString &strDocID,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_ExistDoc( strCabinetID, strCatalogID, strDocName, strDocID );
|
// ÍøÂçÖжÏÖØÊÔÈý´Î
|
int ReNetDisk = 2;
|
if( nErrCode == -1 ) // ÍøÂçÖжÏ
|
{
|
while( ReNetDisk )
|
{
|
nErrCode = m_NetDiskWebCMgr.DMS_ExistDoc( strCabinetID, strCatalogID, strDocName, strDocID );
|
if( nErrCode == 0 )
|
{
|
break;
|
}
|
ReNetDisk--;
|
}
|
}
|
/////////////////////////////
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_ExistDoc,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// »ñµÃϵͳ²ÎÊý
|
bool CMBNetDiskWebCMgr::GetSysParam( CString strCode, CString &strValue,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.GetSysParam( strCode, strValue);
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("GetSysParam,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
bool CMBNetDiskWebCMgr::LoadLongStr( CString strBlobID, CString &strContent,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.LoadLongStr( strBlobID, strContent);
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("LoadLongStr,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// ɾ³ýĿ¼
|
bool CMBNetDiskWebCMgr::DMSDeleteCatalog( CString strCabinetID, CString strCatalogID,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_DeleteCatalog( strCabinetID, strCatalogID);
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_DeleteCatalog,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// ɾ³ýÎĵµ
|
bool CMBNetDiskWebCMgr::DMSDeleteDoc( CString strDocID,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_DeleteDoc( strDocID);
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_DeleteDoc,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// Îĵµ²éѯ
|
bool CMBNetDiskWebCMgr::DMSQueryDoc( CString strCabinetID, CString strQueryContent, CString strAppendWhere, CString strOrderBy, CString &strSessionID, CString &strResult,CString &strErrInfo, short nQueryMode, UINT nNumPerPage,bool bIncludeCatalog )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_Query_Doc( strCabinetID, strQueryContent, strAppendWhere, strOrderBy, strSessionID, strResult, nQueryMode, nNumPerPage,bIncludeCatalog);
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_Query_Doc,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
bool CMBNetDiskWebCMgr::DMSQueryDoc( CString strSessionID, UINT nPage, CString &strResult,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_Query_Doc( strSessionID, nPage, strResult);
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_Query_Doc,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// Ä¿Â¼ÖØÃüÃû
|
bool CMBNetDiskWebCMgr::DMSRenameCatalog( CString strCabinetID, CString strCatalogID, CString strNewName,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_RenameCatalog( strCabinetID, strCatalogID, strNewName);
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_RenameCatalog,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
|
}
|
|
// Îĵµ¸ÄÃû
|
bool CMBNetDiskWebCMgr::DMSRenameDoc( CString strDocID, CString strNewName,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_RenameDoc( strDocID, strNewName);
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_RenameDoc,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// µÃµ½Ï¼¶Ä¿Â¼Áбí
|
bool CMBNetDiskWebCMgr::DMSGetCatalogList( CString strCabinetID, CString strParentID, CString &strListXML,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_GetCatalogList( strCabinetID, strParentID,strListXML);
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_GetCatalogList,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
|
// µÃµ½ÎĵµµÄÀúÊ·ÎĵµÁбí
|
bool CMBNetDiskWebCMgr::DMSGetHistoryDocList( CString strDocID, CString &strHistoryDocList,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_GetHistoryDocList( strDocID,strHistoryDocList);
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_GetHistoryDocList,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// ÉèÖÃÀúÊ·ÎĵµÎªµ±Ç°°æ±¾
|
bool CMBNetDiskWebCMgr::DMSSetHistoryDocActive( CString strHistoryDocID,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_SetHistoryDocActive(strHistoryDocID);
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_SetHistoryDocActive,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// ɾ³ýÀúÊ·Îĵµ
|
bool CMBNetDiskWebCMgr::DMSDeleteHistoryDoc( CString strHistoryDocID,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_DeleteHistoryDoc(strHistoryDocID);
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_DeleteHistoryDoc,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// Çå³ýÀúÊ·Îĵµ
|
bool CMBNetDiskWebCMgr::DMSCleanHistoryDoc( CString strDocID,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_CleanHistoryDoc(strDocID);
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_CleanHistoryDoc,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// µÃµ½±êÇ©Áбí
|
bool CMBNetDiskWebCMgr::DMSGetTagList( CString strCabinetID, CString &strTagList,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_GetTagList( strCabinetID,strTagList);
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_GetTagList,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// Ôö¼Ó±êÇ©
|
bool CMBNetDiskWebCMgr::DMSAddTag( CString strCabinetID, CString strTagName,CString &strErrInfo,CString strTagGroup )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_AddTag( strCabinetID,strTagName,strTagGroup);
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_AddTag,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// ɾ³ý±êÇ©
|
bool CMBNetDiskWebCMgr::DMSDeleteTag( CString strCabinetID, CString strTagName,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_DeleteTag( strCabinetID,strTagName);
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_DeleteTag,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// ±êÇ©¸ÄÃû
|
bool CMBNetDiskWebCMgr::DMSRenameTag( CString strCabinetID, CString strTagName, CString strNewName,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_RenameTag( strCabinetID,strTagName,strNewName);
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_RenameTag,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// »ñÈ¡¶ÔÎĵµµÄÆÀ¼Û£¬µ±Ç°²Ù×÷Õß¶Ô´ËÎĵµµÄÆÀ·Ö
|
bool CMBNetDiskWebCMgr::DMSGetDocEval( CString strDocID, UINT &nEval,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_GetDocEval( strDocID,nEval);
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_GetDocEval,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// Îĵµ¹ØÁªÏà¹Ø²Ù×÷ -------------------------------------------------------
|
// µÃµ½Îĵµ¹ØÁª
|
bool CMBNetDiskWebCMgr::DMSGetDocLink( CString strDocID, CString &strLinkDocInfo,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_GetDocLink( strDocID,strLinkDocInfo);
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_GetDocLink,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// Ôö¼ÓÎĵµ¹ØÁª£¬Ö§³Ö¶à¸ö
|
bool CMBNetDiskWebCMgr::DMSAddDocLink( CString strDocID, CString strLinkDocInfo,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_AddDocLink( strDocID,strLinkDocInfo);
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_AddDocLink,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// ÒÆ³ýÎĵµ¹ØÁª£¬Ö§³Ö¶à¸ö
|
bool CMBNetDiskWebCMgr::DMSRemoveDocLink( CString strDocID, CString strLinkDocInfo,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_RemoveDocLink( strDocID,strLinkDocInfo);
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_RemoveDocLink,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// µÃµ½Îĵµ¸½¼þÐÅÏ¢
|
bool CMBNetDiskWebCMgr::DMSGetDocAttachInfo( CString strDocID, CString &strAttachInfo,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_GetDocAttachInfo( strDocID,strAttachInfo);
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_GetDocAttachInfo,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// Ôö¼Ó¸½¼þ
|
bool CMBNetDiskWebCMgr::DMSAddDocAttach( CString strDocID, CString strAttachInfo, CString &strAttachID,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_AddDocAttach( strDocID,strAttachInfo,strAttachID);
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_AddDocAttach,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// ɾ³ý¸½¼þ
|
bool CMBNetDiskWebCMgr::DMSRemoveDocAttach( CString strDocID, CString strAttachID,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_RemoveDocAttach( strDocID,strAttachID);
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_RemoveDocAttach,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// µÃµ½ÎĵµÖ¸¶¨²Ù×÷µÄÈÕÖ¾
|
bool CMBNetDiskWebCMgr::DMSGetDocTypeLog( CString strDocID, CString strLogType, CString strOperator, CString &strSessionID, CString &strResult,CString &strErrInfo,UINT nNumPerPage )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_GetDocTypeLog( strDocID, strLogType, strOperator, strSessionID, strResult,nNumPerPage );
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_GetDocTypeLog,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
bool CMBNetDiskWebCMgr::DMSGetDocTypeLog( CString strSessionID, UINT nPage, CString &strResult,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_GetDocTypeLog( strSessionID, nPage, strResult);
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_GetDocTypeLog,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// µÃµ½µµ°¸¹ñÁÐ±í£¬Èç¹ûÖ¸¶¨²¿ÃÅ£¬ÔòÖ»·µ»Ø´Ë²¿Ãŵĵµ°¸¹ñ£¬·ñÔò·µ»ØÈ«²¿
|
bool CMBNetDiskWebCMgr::DMSGetCabinetList( CString &strCabinetList, CString &strErrInfo,CString strOwnerID, short nOwnerType, bool bNeedAce )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_GetCabinetList( strCabinetList, strOwnerID, nOwnerType,bNeedAce);
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_GetCabinetList,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// ÉèÖÃÎĵµ±êÇ©£¬Ðè¸üбêÇ©¶¨Òå±í
|
bool CMBNetDiskWebCMgr::DMSSetDocTags( CString strDocID, CString strTags,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_SetDocTags( strDocID, strTags );
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_SetDocTags,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// µÃµ½Îĵµ±êÇ©£¬´Ó Îĵµ±êÇ©¹ØÁª±íÈ¡Êý¾Ý
|
bool CMBNetDiskWebCMgr::DMSGetDocTags( CString strDocID, CString &strTags,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_GetDocTags( strDocID, strTags );
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_GetDocTags,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// Ôö¼ÓÎĵµ±êÇ©£¬Ö§³Ö¶à¸ö
|
bool CMBNetDiskWebCMgr::DMSAddDocTag( CString strDocID, CString strTags,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_AddDocTag( strDocID, strTags );
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_AddDocTag,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// ÒÆ³ýÎĵµ±êÇ©£¬Ö§³Ö¶à¸ö
|
bool CMBNetDiskWebCMgr::DMSRemoveDocTag( CString strDocID, CString strTags,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_RemoveDocTag( strDocID, strTags );
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_RemoveDocTag,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// Ëø¶¨Îĵµ£¬±ØÐëÒªÓбà¼È¨²Å¿ÉËø¶¨
|
bool CMBNetDiskWebCMgr::DMSLockDoc( CString strDocID,CString &strErrInfo,CString strCause )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_LockDoc( strDocID, strCause );
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_LockDoc,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// ½â³ýÎĵµËø¶¨£¬±ØÐëÊÇËø¶¨Õß»ò¹ÜÀíÔ±²Å¿É½âËø
|
bool CMBNetDiskWebCMgr::DMSUnlockDoc( CString strDocID,CString &strErrInfo, CString strCause )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_UnlockDoc( strDocID, strCause );
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_UnlockDoc,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// µÃµ½Óû§Ëø¶¨µÄÎĵµÁбí
|
bool CMBNetDiskWebCMgr::DMSGetLockDocList( CString &strListXML,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DMS_GetLockDocList( strListXML );
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DMS_GetLockDocList,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
// ¸üÐÂÎĵµÐÅÏ¢£¨Ö»¸üÐÂ×ÔÉíÐÅÏ¢£¬ÎÞ±êÇ©¡¢¸½¼þ¡¢¹ØÁª£©£¬Èç¹ûÎļþ ID ±ä»¯£¬½«²úÉúÌæ»»ÐÅÏ¢
|
bool CMBNetDiskWebCMgr::NDUpdateDoc( CString strDocID, CString strDefXML,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.ND_UpdateDoc( strDocID, strDefXML );
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("ND_UpdateDoc,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// Ôö¼ÓÎĵµ
|
bool CMBNetDiskWebCMgr::NDCreateDoc( CString strCatalogID, CString strDefXML, CString &strDocID, CString &strAttachIDList,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.ND_CreateDoc( strCatalogID, strDefXML, strDocID, strAttachIDList );
|
|
// ÍøÂçÖжÏÖØÊÔÈý´Î
|
int ReNetDisk = 2;
|
if( nErrCode == -1 ) // ÍøÂçÖжÏ
|
{
|
while( ReNetDisk )
|
{
|
nErrCode = m_NetDiskWebCMgr.ND_CreateDoc( strCatalogID,strDefXML, strDocID, strAttachIDList);
|
if( nErrCode == 0 )
|
{
|
break;
|
}
|
ReNetDisk--;
|
}
|
}
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("ND_CreateDoc,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
// Ôö¼ÓĿ¼
|
bool CMBNetDiskWebCMgr::NDCreateCatalog( CString strParentID, CString strCatalogName, CString &strCatalogID,CString &strCatalogPath,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.ND_CreateCatalog( strParentID, strCatalogName, strCatalogID,&strCatalogPath);
|
// ÍøÂçÖжÏÖØÊÔÈý´Î
|
int ReNetDisk = 2;
|
if( nErrCode == -1 ) // ÍøÂçÖжÏ
|
{
|
while( ReNetDisk )
|
{
|
Sleep(20);
|
nErrCode = m_NetDiskWebCMgr.ND_CreateCatalog( strParentID, strCatalogName, strCatalogID);
|
if( nErrCode == 0 )
|
{
|
break;
|
}
|
ReNetDisk--;
|
}
|
}
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("ND_CreateCatalog,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
// ÎĵµÊÇ·ñ´æÔÚ
|
bool CMBNetDiskWebCMgr::NDExistDoc( CString strCatalogID, CString strDocName, CString &strDocID,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.ND_ExistDoc( strCatalogID, strDocName, strDocID );
|
// ÍøÂçÖжÏÖØÊÔÈý´Î
|
int ReNetDisk = 2;
|
if( nErrCode == -1 ) // ÍøÂçÖжÏ
|
{
|
while( ReNetDisk )
|
{
|
nErrCode = m_NetDiskWebCMgr.ND_ExistDoc( strCatalogID, strDocName, strDocID );
|
if( nErrCode == 0 )
|
{
|
break;
|
}
|
ReNetDisk--;
|
}
|
}
|
/////////////////////////////
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("ND_ExistDoc,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// µÃµ½ÎĵµÐÅÏ¢
|
bool CMBNetDiskWebCMgr::NDGetDocInfo( CString strDocID, CString &strInfoXML, CString &strErrInfo,CString strOwnerID )
|
{
|
int nErrCode = m_NetDiskWebCMgr.ND_GetDocInfo( strDocID, strInfoXML, strOwnerID);
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("NDGetDocInfo,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
bool CMBNetDiskWebCMgr::NDGetDocList( CString strCatalogID, CString &strListXML,CString &strErrInfo, bool bIncludeCatalog, CString strOwnerID, CString strOrderBy, int nPage, int nNumPerPage)
|
{
|
int nErrCode = m_NetDiskWebCMgr.ND_GetDocList( strCatalogID,strListXML,bIncludeCatalog, strOwnerID, strOrderBy, nPage, nNumPerPage);
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("NDGetDocInfo,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
bool CMBNetDiskWebCMgr::NDGetDocList2( CString strCatalogPath, CString &strListXML, CString &strErrInfo,bool bIncludeCatalog, CString strOwnerID, CString strOrderBy, int nPage, int nNumPerPage )
|
{
|
int nErrCode = m_NetDiskWebCMgr.ND_GetDocList2(strCatalogPath,strListXML,bIncludeCatalog,strOwnerID,strOrderBy,nPage, nNumPerPage);
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("ND_GetDocList2,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// ɾ³ýÎĵµ
|
bool CMBNetDiskWebCMgr::NDDeleteDoc( CString strDocID,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.ND_DeleteDoc( strDocID);
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("NDDeleteDoc,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// ɾ³ýĿ¼
|
bool CMBNetDiskWebCMgr::NDDeleteCatalog( CString strCatalogID,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.ND_DeleteCatalog( strCatalogID);
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("NDDeleteCatalog,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// Áгö Share Out
|
bool CMBNetDiskWebCMgr::NDGetShareOutList( CString &strListXML,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.ND_GetShareOutList( strListXML);
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("NDGetShareOutList,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// Áгö Share In
|
bool CMBNetDiskWebCMgr::NDGetShareInList( CString &strListXML,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.ND_GetShareInList( strListXML);
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("NDGetShareInList,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// È¡Ïû¹²Ïí
|
bool CMBNetDiskWebCMgr::NDUnshared( short nShareObjType, CString strShareObjID,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.ND_Unshared( nShareObjType,strShareObjID);
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("NDUnshared,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// ¹²ÏíÎĵµ»òĿ¼£¬¿ÉÄÜÊDZä¸ü¹²Ïí½ÓÊÕÕß
|
bool CMBNetDiskWebCMgr::NDShare( CString strShareObjList, CString strShareUserList, CString strInvalidDate,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.ND_Share( strShareObjList,strShareUserList,strInvalidDate);
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("NDUnshared,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
|
// Ä¿Â¼ÖØÃüÃû
|
bool CMBNetDiskWebCMgr::NDRenameCatalog( CString strCatalogID, CString strNewName,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.ND_RenameCatalog( strCatalogID,strNewName);
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("ND_RenameCatalog,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// Îĵµ¸ÄÃû
|
bool CMBNetDiskWebCMgr::NDRenameDoc( CString strDocID, CString strNewName,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.ND_RenameDoc( strDocID,strNewName);
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("ND_RenameDoc,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// ²éѯĿ¼ÏÂÎĵµ£¬Ö»¸ù¾ÝÎĵµÃû³Æ
|
bool CMBNetDiskWebCMgr::NDQueryCatalogDoc( CString strCatalogID, CString strFileName, CString &strSessionID, CString &strResult,CString &strErrInfo,UINT nNumPerPage, bool bIncludeCatalog )
|
{
|
int nErrCode = m_NetDiskWebCMgr.ND_Query_CatalogDoc( strCatalogID, strFileName, strSessionID, strResult,nNumPerPage, bIncludeCatalog);
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("ND_Query_CatalogDoc,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// µÃµ½²éѯ½á¹û
|
bool CMBNetDiskWebCMgr::NDQueryCatalogDoc( CString strSessionID, UINT nPage, CString &strResult,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.ND_Query_CatalogDoc(strSessionID,nPage, strResult );
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("ND_Query_CatalogDoc,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// µÃµ½Ï¼¶Ä¿Â¼ÁÐ±í£¬Èç¹û²Ù×÷Õß·ÇĿ¼ Owner£¬ÔòÐèÖ¸¶¨ Owner£¬²»È»ÕÒ²»µ½Êý¾Ý±í£¬Ö¸¶¨Ôò±íʾÊǹ²Ïí³öÈ¥µÄ£¬ÐèÅж¨ÊÇ·ñȷʵ¹²Ïí
|
bool CMBNetDiskWebCMgr::NDGetCatalogList( CString strParentID, CString &strListXML,CString &strErrInfo,CString strOwnerID )
|
{
|
int nErrCode = m_NetDiskWebCMgr.ND_GetCatalogList(strParentID,strListXML, strOwnerID );
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("ND_GetCatalogList,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
|
// µÃµ½ÎĵµµÄÀúÊ·ÎĵµÁбí
|
bool CMBNetDiskWebCMgr::NDGetHistoryDocList( CString strDocID, CString &strHistoryDocList,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.ND_GetHistoryDocList(strDocID,strHistoryDocList );
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("ND_GetHistoryDocList,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// ÉèÖÃÀúÊ·ÎĵµÎªµ±Ç°°æ±¾
|
bool CMBNetDiskWebCMgr::NDSetHistoryDocActive( CString strHistoryDocID,CString &strErrInfo)
|
{
|
int nErrCode = m_NetDiskWebCMgr.ND_SetHistoryDocActive(strHistoryDocID );
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("ND_SetHistoryDocActive,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// ɾ³ýÀúÊ·Îĵµ
|
bool CMBNetDiskWebCMgr::NDDeleteHistoryDoc( CString strHistoryDocID,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.ND_DeleteHistoryDoc(strHistoryDocID );
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("ND_DeleteHistoryDoc,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// Çå³ýÀúÊ·Îĵµ
|
bool CMBNetDiskWebCMgr::NDCleanHistoryDoc( CString strDocID,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.ND_CleanHistoryDoc(strDocID );
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("ND_CleanHistoryDoc,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// µÃµ½±êÇ©Áбí
|
bool CMBNetDiskWebCMgr::NDGetTagList( CString &strTagList,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.ND_GetTagList( strTagList );
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("ND_GetTagList,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
|
// Ôö¼Ó±êÇ©
|
bool CMBNetDiskWebCMgr::NDAddTag( CString strTagName,CString &strErrInfo,CString strTagGroup )
|
{
|
int nErrCode = m_NetDiskWebCMgr.ND_AddTag( strTagName,strTagGroup );
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("ND_AddTag,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// ɾ³ý±êÇ©
|
bool CMBNetDiskWebCMgr::NDDeleteTag( CString strTagName,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.ND_DeleteTag( strTagName );
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("ND_DeleteTag,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// ±êÇ©¸ÄÃû
|
bool CMBNetDiskWebCMgr::NDRenameTag( CString strTagName, CString strNewName,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.ND_RenameTag( strTagName,strNewName );
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("ND_RenameTag,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// Îĵµ±êÇ©Ïà¹Ø²Ù×÷ -------------------------------------------------------
|
// ÉèÖÃÎĵµ±êÇ©£¬Ðè¸üбêÇ©¶¨Òå±í
|
bool CMBNetDiskWebCMgr::NDSetDocTags( CString strDocID, CString strTags,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.ND_SetDocTags( strDocID,strTags );
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("ND_SetDocTags,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// µÃµ½Îĵµ±êÇ©£¬´Ó Îĵµ±êÇ©¹ØÁª±íÈ¡Êý¾Ý
|
bool CMBNetDiskWebCMgr::NDGetDocTags( CString strDocID, CString &strTags,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.ND_GetDocTags( strDocID,strTags );
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("ND_GetDocTags,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// Ôö¼ÓÎĵµ±êÇ©£¬Ö§³Ö¶à¸ö
|
bool CMBNetDiskWebCMgr::NDAddDocTag( CString strDocID, CString strTags,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.ND_AddDocTag( strDocID,strTags );
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("ND_AddDocTag,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// ÒÆ³ýÎĵµ±êÇ©£¬Ö§³Ö¶à¸ö
|
bool CMBNetDiskWebCMgr::NDRemoveDocTag( CString strDocID, CString strTags,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.ND_RemoveDocTag( strDocID,strTags );
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("ND_RemoveDocTag,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// »Ö¸´»ØÊÕÕ¾Îļþ
|
bool CMBNetDiskWebCMgr::NDRecycleBin_Restore( CString strDocID, CString strCatalogID,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.ND_RecycleBin_Restore( strDocID,strCatalogID);
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("ND_RecycleBin_Restore,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
// ɾ³ý»ØÊÕÕ¾Îļþ
|
bool CMBNetDiskWebCMgr::NDRecycleBin_Delete( CString strDocID,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.ND_RecycleBin_Delete( strDocID);
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("ND_RecycleBin_Delete,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
// Çå¿Õ»ØÊÕÕ¾Îļþ
|
bool CMBNetDiskWebCMgr::NDRecycleBin_Clean(CString &strErrInfo)
|
{
|
int nErrCode = m_NetDiskWebCMgr.ND_RecycleBin_Clean();
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("ND_RecycleBin_Clean,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
bool CMBNetDiskWebCMgr::GetServerTrID( long nTrID, REQLOADSERVER_ITEM & reLoadServerItem )
|
{
|
if( !m_mapServerTrID.Lookup(nTrID, reLoadServerItem) )
|
{
|
return false;
|
}
|
return true;
|
}
|
|
bool CMBNetDiskWebCMgr::RemoveServerTrID( long nTrID )
|
{
|
m_mapServerTrID.RemoveKey(nTrID);
|
return true;
|
}
|
|
// µÃµ½Êý¾Ý²Ö¿âÁÐ±í£¬Èç¹ûÖ¸¶¨ËùÊôID£¬ÔòÖ»·µ»Ø´ËËùÊôµÄÊý¾Ý²Ö¿â£¬·ñÔò·µ»ØÈ«²¿
|
bool CMBNetDiskWebCMgr::VaultGetList( CString strPrjID, CString &strVaultList,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.Vault_GetList(strPrjID,strVaultList);
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("Vault_GetList,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
bool CMBNetDiskWebCMgr::VaultGetList( CString &strVaultList,CString &strErrInfo,bool bNeedAce, short nVaultType )
|
{
|
int nErrCode = m_NetDiskWebCMgr.Vault_GetList(strVaultList,bNeedAce,nVaultType);
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("Vault_GetList,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
|
// µÃµ½Êý¾Ý²Ö¿âÐÅÏ¢
|
bool CMBNetDiskWebCMgr::VaultGetInfo( CString strVaultID, CString &strVaultInfo,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.Vault_GetInfo(strVaultID,strVaultInfo);
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("Vault_GetInfo,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
return true;
|
}
|
|
// µÃµ½Ï¼¶Ä¿Â¼Áбí
|
bool CMBNetDiskWebCMgr::VaultCatalogGetList( CString strVaultID, CString strParentID, CString &strCatalogList,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.Vault_Catalog_GetList(strVaultID,strParentID,strCatalogList);
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("Vault_Catalog_GetList,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
|
return true;
|
}
|
|
// »ñÈ¡Êý¾Ý
|
bool CMBNetDiskWebCMgr::VaultQueryCatalogObj( CString strVaultID, CString strCatalogID, CString strQueryCondition, CString &strResult,CString &strErrInfo,CString strObjAttrs, CString strOrderBy, UINT nNumPerPage, bool bIncludeSub )
|
{
|
int nErrCode = m_NetDiskWebCMgr.Vault_Query_CatalogObj(strVaultID,strCatalogID, strQueryCondition, strResult,strObjAttrs, strOrderBy, nNumPerPage, bIncludeSub);
|
|
if( nErrCode == 202 )
|
return true;
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("Vault_Catalog_GetList,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
|
return true;
|
}
|
|
bool CMBNetDiskWebCMgr::VaultQueryCatalogObj( CString strQuerySessionID, UINT nPage, CString &strResult,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.Vault_Query_CatalogObj(strQuerySessionID,nPage,strResult);
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("Vault_Query_CatalogObj,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
|
return true;
|
}
|
|
// µÃµ½Ä¿Â¼ÏµÄÊý¾Ý¶ÔÏó
|
bool CMBNetDiskWebCMgr::VaultCatalogGetObjList( CString strVaultID, CString strCatalogID, CString &strResult,CString &strErrInfo, bool bIncludeCatalog, UINT nPage, UINT nNumPerPage )
|
{
|
int nErrCode = m_NetDiskWebCMgr.Vault_Catalog_GetObjList(strVaultID, strCatalogID, strResult, bIncludeCatalog, nPage, nNumPerPage );
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("Vault_Catalog_GetObjList,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
|
return true;
|
}
|
|
|
bool CMBNetDiskWebCMgr::GetClassAttrs( CString strClassID, CString &strAttrList, CString &strErrInfo,CString strGroupName )
|
{
|
int nErrCode = m_NetDiskWebCMgr.GetClassAttrs(strClassID, strAttrList,strGroupName);
|
if( nErrCode == 48525 )
|
{
|
return true;
|
}
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("GetClassAttrs clsID='%s',nErrCode:%d,ErrInfo£º%s"),strClassID,nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
|
return true;
|
}
|
|
|
// µÃµ½ÏÔʾ·ç¸ñÐÅÏ¢
|
bool CMBNetDiskWebCMgr::ClassGridStyleGetInfo( CString strClassID, CString strStyleName, CString &strGridStyleDef,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.Class_GridStyle_GetInfo(strClassID, strStyleName,strGridStyleDef);
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("Class_GridStyle_GetInfo clsID='%s',nErrCode:%d,ErrInfo£º%s"),strClassID,nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
|
return true;
|
}
|
|
// µÃµ½Êý¾ÝÀàȱʡµÄÏÔʾ·ç¸ñ¶¨Òå
|
bool CMBNetDiskWebCMgr::ClassGridStyleGetDefaultInfo( CString strClassID, CString &strGridStyleDef,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.Class_GridStyle_GetDefaultInfo(strClassID, strGridStyleDef);
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("Class_GridStyle_GetInfo,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
|
return true;
|
}
|
|
|
bool CMBNetDiskWebCMgr::DataObjMasterSlaveGetList( CString strMasterClassID, CString strComposeClassID, CString strDataClassID, CString strMasterClassAttrs, CString strDataClassAttrs, CString strQueryCondition, CString &strResult, CString &strErrInfo, UINT nNumPerPage )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DataObj_MasterSlave_GetList( strMasterClassID, strComposeClassID, strDataClassID, strMasterClassAttrs,strDataClassAttrs, strQueryCondition, strResult, nNumPerPage );
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DataObj_MasterSlave_GetList,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
|
return true;
|
}
|
|
bool CMBNetDiskWebCMgr::DataObjMasterSlaveGetList( CString strSessionID, UINT nPage, CString &strResult,CString &strErrInfo )
|
{
|
int nErrCode = m_NetDiskWebCMgr.DataObj_MasterSlave_GetList( strSessionID, nPage, strResult );
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DataObj_MasterSlave_GetList,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
|
return true;
|
}
|
|
bool CMBNetDiskWebCMgr::DataObjExistCheck( CString strClassID, CString strObjIDs, CString &strRetObjIDs, CString &strErrInfo,bool bRetExistObj )
|
{
|
if( strObjIDs.IsEmpty() )
|
return true;
|
|
strRetObjIDs = _T("");
|
|
int nErrCode = m_NetDiskWebCMgr.DataObj_ExistCheck( strClassID, strObjIDs, strRetObjIDs, bRetExistObj );
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DataObj_ExistCheck,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
|
return true;
|
}
|
|
bool CMBNetDiskWebCMgr::DataObjExistCheck2( CString strClassName, CString strObjIDs, CString &strRetObjIDs,CString &strErrInfo,bool bRetExistObj)
|
{
|
int nErrCode = m_NetDiskWebCMgr.DataObj_ExistCheck2( strClassName, strObjIDs, strRetObjIDs,bRetExistObj );
|
|
if( 0 != nErrCode )
|
{
|
strErrInfo.Format(_T("DataObj_ExistCheck2,nErrCode:%d,ErrInfo£º%s"),nErrCode,m_NetDiskWebCMgr.GetLastErrInfo());
|
return false;
|
}
|
|
return true;
|
}
|