示例#1
0
        private static void BuildProjectEvent(string who, string projectkey, string projectname, string operate)
        {
            var wholink     = "<a href = \"/User/UserCenter?username="******"\" >" + who.Split(new char[] { '@' })[0] + "</a>";
            var projectlink = "<a href = \"/Project/ProjectDetail?ProjectKey=" + projectkey + "\" >" + projectname + "</a>";

            var vm = new ProjectEvent();

            vm.ProjectKey = projectkey;
            vm.EventKey   = GetUniqKey();
            vm.Event      = wholink + " " + operate + " " + projectlink;
            vm.UpdateDate = DateTime.Now;
            vm.StoreEvent();
        }
示例#2
0
        public static void CreateIssueEvent(string projectkey, string reporter, string asignee, string summary, string evkey)
        {
            var reportlink  = "<a href = \"/User/UserCenter?username="******"\" >" + reporter.Split(new char[] { '@' })[0] + "</a>";
            var asigneelink = "<a href = \"/User/UserCenter?username="******"\" >" + asignee.Split(new char[] { '@' })[0] + "</a>";
            var projectlink = "<a href = \"/Project/ProjectDetail?ProjectKey=" + projectkey + "\" >[" + projectkey + "] </a>";
            var issuelink   = "<a href = \"/Issue/UpdateIssue?issuekey=" + evkey + "\" >" + summary + "</a>";

            var vm = new ProjectEvent();

            vm.ProjectKey = projectkey;
            vm.EventKey   = evkey;
            vm.Event      = projectlink + issuelink + " is created by " + reportlink + " and asigned to " + asigneelink;
            vm.UpdateDate = DateTime.Now;
            vm.StoreEvent();
        }