Пример #1
0
        /// <summary>
        /// Get the AFS project id, if any, associated with a project node name
        /// </summary>
        /// <param name="projNodeName"></param>
        /// <returns></returns>

        public static int GetAfsProjectId(string projNodeName)
        {
            int id;

            string result = CommandDao.Execute("ProjectTreeFactory.GetAfsProjectId " + projNodeName);

            if (int.TryParse(result, out id))
            {
                return(id);
            }
            else
            {
                return(-1);
            }
        }
Пример #2
0
        /// <summary>
        /// Get the AFS project id, if any, associated with a project node name
        /// </summary>
        /// <param name="projNodeName"></param>
        /// <returns></returns>

        public static string GetProjectHtmlDescription(string projNodeName)
        {
            string html = CommandDao.Execute("ProjectTreeFactory.GetProjectHtmlDescription " + projNodeName);

            return(html);
        }
Пример #3
0
 public CommandModule(CommandDao commandDao, CommandService commandService)
 {
     _commandDao     = commandDao;
     _commandService = commandService;
 }