using SuperMap.RealEstate.Utility;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SuperMap.RealEstate.WorkFlow.Instance;
using Running = SuperMap.RealEstate.SaleStore.Running;
namespace SuperMap.RealEstate.SaleStore.Plugins
{
///
///
///
public class ProInstHelper
{
///
/// 获取当前流程信息
///
///
///
public static Running.Business.SALESTOREPROINST GetPropertyProinst(SuperMap.RealEstate.WorkFlow.Instance.Business.ProInst WorkFlowProInst)
{
Running.Business.SALESTOREPROINST _SALESTOREPROINST = new Running.Business.SALESTOREPROINST(WorkFlowProInst.Transaction);
_SALESTOREPROINST.AddSearchParameter("proinst_id", WorkFlowProInst.ProInst_ID);
if (_SALESTOREPROINST.Search())
return _SALESTOREPROINST;
else
{
throw new Exception("无法获取ProInst实例对象!");
}
}
}
}