コード例 #1
0
        public static List <AdminType> GetAllAdminTypes(Innovator.Client.IOM.Innovator inn)
        {
            List <AdminType> adminTypes = new List <AdminType>();
            string           amlQuery   = ArasMetaDataResources.GetArasMetaDataAml(ArasUtils.GetMajorVersion(inn));
            Item             result     = inn.applyAML(amlQuery);

            if (!result.isError())
            {
                int i = 0;
                foreach (System.Xml.XmlNode itemNode in result.nodeList)
                {
                    Item      adminItemType = result.getItemByIndex(i);
                    AdminType adminType     = new AdminType(inn, adminItemType);
                    adminTypes.Add(adminType);
                    i++;
                }
            }
            else
            {
                throw new ApplicationException(result.getErrorString());
            }
            return(adminTypes);
        }
コード例 #2
0
 private string GetMetaAml()
 {
     return(ArasMetaDataResources.GetArasMetaDataAml(ArasUtils.GetMajorVersion(Inn)));
 }