本文整理汇总了C#中Host.getCaseManager方法的典型用法代码示例。如果您正苦于以下问题:C# Host.getCaseManager方法的具体用法?C# Host.getCaseManager怎么用?C# Host.getCaseManager使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Host
的用法示例。
在下文中一共展示了Host.getCaseManager方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LinkCases
public void LinkCases(string rootCaseId, string childCaseId)
{
try
{
m_Host = GetHost();
CaseManager cm = m_Host.getCaseManager();
XCase liveCase = cm.getLiveCase(rootCaseId);
liveCase.setLinkedCase(childCaseId);
}
catch(CargoException e1)
{
// MessageBox.Show(e1.error_msg);
m_CargoHostLogger.logError("OM - " + e1.error_msg);
}
}
示例2: GetCaseManager
/// <summary>
/// Description:
/// none
/// Arguments:
/// none
/// Exceptions:
/// none
/// Return:
/// none
/// </summary>
protected l3.cargo.corba.CaseManager GetCaseManager()
{
m_Host = GetHost();
l3.cargo.corba.CaseManager m_CaseMgr = m_Host.getCaseManager();
return m_CaseMgr;
}
示例3: AddOCRFile
/// <summary>
/// AddOCRFile. This interface function adds OCR file into case folder
///
/// Arguments:
/// caseid: Case id of current live case
/// fileName: Absolute path of file to be added in case folder
/// Exceptions:
/// none
/// Return:
/// bool
/// </summary>
public bool AddOCRFile(string caseid, string fileName)
{
bool bRet = false;
string filetype = "OCR";
try
{
m_Host = GetHost();
CaseManager cm = m_Host.getCaseManager();
XCase liveCase = cm.getLiveCase(caseid);
liveCase.addGeneralFile(fileName, filetype);
bRet = true;
}
catch(CargoException e1)
{
m_CargoHostLogger.logError("OM - " + e1.error_msg);
// MessageBox.Show(e1.error_msg);
}
return bRet;
}