Beispiel #1
0
 public static void DeleteRiskType(string TypeCode)
 {
     try
     {
         if (TypeCode != "")
         {
             EntityData entity = ConstructDAO.GetRiskTypeByCode(TypeCode);
             ConstructDAO.DeleteRiskType(entity);
             entity.Dispose();
         }
     }
     catch (Exception exception)
     {
         throw exception;
     }
 }
Beispiel #2
0
        public static string GetRiskTypeName(object TypeCode)
        {
            string text2;

            try
            {
                string text = "";
                if ((TypeCode != null) && (TypeCode.ToString() != ""))
                {
                    EntityData riskTypeByCode = ConstructDAO.GetRiskTypeByCode(TypeCode.ToString());
                    if (riskTypeByCode.HasRecord())
                    {
                        text = riskTypeByCode.GetString("TypeName");
                    }
                    riskTypeByCode.Dispose();
                }
                text2 = text;
            }
            catch (Exception exception)
            {
                throw exception;
            }
            return(text2);
        }