Method Name: getprojecttasksnumber//function Description: Get project Task serial number//original joe//created: 20141225//All rights reserved (C) JOE. fan//--------------------------------------------------------System.Diagnostics.Debugger.Break (); Innovator inn = This.getinnovator (); string wbsid = "61a469a19b3d422ab47bd3627622afd4"; Item test = Inn.applymethod (" Getactivitiesnumbers "," <rootWBS> "+ wbsid +" </rootWBS> "); XmlDocument resdom= CCO. Xml. Createxmldocument (); string outerxml = Test.dom.outerxml;resdom.loadxml (OuterXml); XmlNode RootNode = Resdom.selectsinglenode ("//result"), if (RootNode = = null) {return Inn.newerror ("Current project has no task Node");} XmlNodeList anodes = rootnode.selectnodes ("/descendant::a"), if (anodes = = null) {return Inn.newerror ("Current project has no task Node");} Number = Anodes[i]. Attributes.item (1). Value;id = Anodes[i]. Attributes.item (0). Value;return This;applymethod ("Getactivitiesnumbers", "<rootWBS>" + wbsid + "</rootWBS>") Rootwbs ID, will return the structure of the Projecttree in XML format
Aras innovator Get project task sequence number