Exemplo n.º 1
0
        public static List <RiskItem> ApplyResolution(RiskItem riskItem, ENUM_RESOLUTION_TYPE resType)
        {
            List <RiskItem> vResolvedRiskItems = new List <RiskItem>();

            if (riskItem is _Contract)
            {
                _Contract con = (_Contract)riskItem;

                switch (resType)
                {
                case ENUM_RESOLUTION_TYPE.LOCATION:
                    vResolvedRiskItems = con.GetAllRiskItems().GetAllObjects().OfType <TermNode>().Where(termNode => termNode.TermNodeType == TermNode.ENUM_TERM_NODE_TYPE.LOCATION).ToList <RiskItem>();
                    break;
                }
            }
            else if (riskItem is Node)
            {
                throw new NotImplementedException();
            }
            return(vResolvedRiskItems);
        }
Exemplo n.º 2
0
 public static void ProcessContract(_Contract contract)
 {
 }