MsProject技术交流群207637602

摘要: TimesheetDataSetTable ActualsRow: TS_LINE_UID='f4b970f8-fb03-44d1-9997-cd31da42cb09' TS_ACT_START_DATE='07/29/2014 00:00:00'Error GeneralReadOnlyColum... 阅读全文
posted @ 2014-07-29 01:34 鳄鱼的眼泪 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 我们知道ProjectServer汇报工时的顺序是这样:1.项目成员打开自己的时间表,选择要汇报的任务,在汇报工时栏填写实际工时。2.汇报工时后点击保存。3.将汇报工时的任务提交给项目经理。4.项目经理审批项目成员提交上来的项目工时。5.发布已经审批过的项目工时。项目经理在做操作的时候第五步是多余的,我审批完之后为什么还要我自己去发布,能不能做到审批完之后自动发布。打开[ProjectServer_Published].[dbo].[MSP_ASSIGNMENT_TRANSACTIONS]表,里面的字段[ASSN_TRANS_STATE_ENUM]是描述提交工时状态的。0表示该Assignme 阅读全文
posted @ 2014-04-04 14:57 鳄鱼的眼泪 阅读(627) 评论(0) 推荐(0) 编辑
摘要: public bool ProcessTimesheet(Guid siteGuid, Guid tsGuid, string lcid, string userName, bool submitStatus, string sspName) { #region Local Variables string exceptionMsg = null; string tsInfo = string.Empty; Stopwatch timeToProcessAll = new Stopwatch(... 阅读全文
posted @ 2014-04-03 20:22 鳄鱼的眼泪 阅读(540) 评论(0) 推荐(0) 编辑
摘要: Project Proffesional没法一目了然地看到,为了实时看到任务延迟情况,我们必须设置预警灯。1.添加两个新列“文本1”、“文本2”,重命名为“完成预警”、“进度预警”。2.右键点击“完成预警”,选择自定义字段,点击“公式”按钮,在输入文本框内输入一下代码,并点击确定IIf(projdatevalue([比较基准完成时间])=4294967295,"没有保存比较基准",IIf([完成时间差异]/480>5,"严重延迟",IIf([完成时间差异]/480<2,"正常","任务延迟")))3.点 阅读全文
posted @ 2013-10-23 09:23 鳄鱼的眼泪 阅读(4319) 评论(0) 推荐(0) 编辑
摘要: 默认配置的ProjectServer是没有时间表的,任务汇报的时候不能汇报工时,只能汇报任务的百分比。但如果有企业一定要用工时来汇报的话,我们就需要开启时间表。点击服务器设置-->时间报告阶段将标准时间段长度设置为7天。设置好后点击批量创建,然后,我们的时间表页面就生成了。 阅读全文
posted @ 2013-09-06 15:19 鳄鱼的眼泪 阅读(429) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;using Microsoft.SharePoint;using System.Web;namespace MyProject.Features{ public class MyEventReceiver : SPItemEventReceiver { HttpContext currentContext; public MyEventReceiver() { currentContext =... 阅读全文
posted @ 2013-07-19 17:24 鳄鱼的眼泪 阅读(266) 评论(0) 推荐(0) 编辑
摘要: protected void CreateDocLib(){SPSite site = SPContext.Current.Site;SPWeb web = site.OpenWeb(); SPListTemplateType templateType = SPListTemplateType.DocumentLibrary;Guid listId = web.Lists.Add("MyDocLibrary", null, templateType);SPList list = web.Lists[listId]; // create Text type new colum 阅读全文
posted @ 2013-07-19 11:36 鳄鱼的眼泪 阅读(267) 评论(0) 推荐(0) 编辑
摘要: static void Main(string[] args) { string newPageUrl = ""; SPSecurity.RunWithElevatedPrivileges(delegate()// executing this code with elevated privileges will help whenever we create the publishing pages from a sharepoint portal site for an another portal site.If we create the publishing pa 阅读全文
posted @ 2013-07-08 10:59 鳄鱼的眼泪 阅读(848) 评论(0) 推荐(0) 编辑
摘要: 在VS中创建一个applicationPage映射到Layouts文件夹下,然后代码如下:SPList lstTest = web.Lists["Shared Documents"];string newUrl = string.Format("layouts/NewEditForm.aspx", web.ServerRelativeUrl, lstTest.RootFolder.Url);var form = web.GetFile(newUrl);if (form != null && form.Exists){ //string n 阅读全文
posted @ 2013-07-08 01:19 鳄鱼的眼泪 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 利用office vsto功能,抓取我们选择的任务,根据配置节,邮件发送内容,最终根据任务名称,任务开始结束时间,任务资源名称,发送邮件给任务资源。这是我的VSTO界面。配置我们发送邮件的服务器地址和发送邮箱地址和密码。点击发送按钮,邮件发送成功。发送完成。发送邮件内容是可以配置的,可以抓取Project任务的任何属性,非常方便。以下是发送邮件的内容,配置内容用{#ProjectName#}替换,程序会根据{#ProjectName#}去任务属性里面找,然后替换。------------------------------------------项目名称:{#ProjectName#}任务名称 阅读全文
posted @ 2013-06-22 12:03 鳄鱼的眼泪 阅读(499) 评论(0) 推荐(0) 编辑

专业MSProject,QQ411033149