Beispiel #1
0
        private SP.ListItem LogTransaction(SP.ListItem project, string transactionTypeId)
        {
            Dictionary <string, string> transactionInfo = ParseTransactionInfo(project, "19");

            SP.List transactionsList = SharepointMethods.GetListFromWeb(
                _context,
                SharepointConstants.Links.transactionsList);
            SP.ListItem transaction = SharepointMethods.AddItemToList(
                _context,
                transactionsList,
                transactionInfo
                );

            return(transaction);
        }
Beispiel #2
0
        private SP.ListItem LogProject(SP.ListItem selectedProject, SP.ListItem transaction)
        {
            // parse the project info
            Dictionary <string, string> projectInfo = ParseProjectInfo(selectedProject, transaction);

            // get write list
            SP.List linkedProjectsList = SharepointMethods.GetListFromWeb(
                _context,
                SharepointConstants.Links.linkedProjectList);

            // write the project info to sharepoint
            SP.ListItem loggedProject = SharepointMethods.AddItemToList(
                _context,
                linkedProjectsList,
                projectInfo
                );

            return(loggedProject);
        }