Example #1
0
        public Item CreateProjectItem(string name, string WBSId, DateTime startDate, DateTime finishDate)
        {
            Item item = innovatorInstance.newItem("Project", "add");

            item.setProperty("date_start_target", LocalDateToInnovatorDate(startDate));
            item.setProperty("date_due_target", LocalDateToInnovatorDate(finishDate));
            item.setProperty("project_number", innovatorInstance.getNextSequence("Project Number"));
            item.setProperty("scheduling_type", "Forward");
            item.setProperty("scheduling_method", "7DC85B0668134E949B9212D7CE199265");
            item.setProperty("update_method", "6E1133AB87A44D529DF5F9D1FD740100");
            item.setProperty("scheduling_mode", "1");
            item.setProperty("project_update_mode", "1");
            item.setProperty("name", name);
            item.setProperty("wbs_id", WBSId);

            return(item);
        }
Example #2
0
        private void CreateProject(string wbsRoot, string projectID, ProjectHeader header)
        {
            var topWbs = _inn.newItem();

            topWbs.setID(wbsRoot);
            topWbs.setType("WBS Element");
            topWbs.setProperty("name", _projectTitle);
            topWbs.setProperty("is_top", "1");
            topWbs.setAction("add");

            ArasCommit(topWbs, "Top WBS", null);

            var iProject = _inn.newItem();

            iProject.setID(projectID);

            if (!_isTemplate) // project
            {
                iProject.setType("Project");
                _innovProjectNumber = _inn.getNextSequence("Project Number");
                iProject.setProperty("date_start_target", ArasHelpers.ConvertDate(_inn, header.StartDate));
                iProject.setProperty("date_due_target", ArasHelpers.ConvertDate(_inn, header.FinishDate));
                iProject.setProperty("project_number", _innovProjectNumber);
                iProject.setProperty("scheduling_type", "Forward");
                iProject.setProperty("scheduling_method", "7DC85B0668134E949B9212D7CE199265");
                iProject.setProperty("update_method", "6E1133AB87A44D529DF5F9D1FD740100");
                iProject.setProperty("scheduling_mode", "1");
                iProject.setProperty("project_update_mode", "1");
            }
            else // template
            {
                iProject.setType("Project Template");
            }
            iProject.setProperty("name", _projectTitle);
            iProject.setProperty("wbs_id", wbsRoot);
            iProject.setAction("add");
            ArasCommit(iProject, "Top Project", null);
        }
Example #3
0
 public string GetNextSequence(string sequenceName)
 {
     return(Innovator.getNextSequence(sequenceName));
 }