08 2011 档案

摘要:new-spuser -useralias "ibm\10086" -web https://tst15.emdev.azcollaboration.com/operations/Operations/HR -Group "Reporter" 阅读全文
posted @ 2011-08-30 12:31 风影极光 阅读(397) 评论(0) 推荐(0)
摘要:说明:目标站点HR中的列表Location中PeopleandGroup 域LSR,需要添加人员$curWeb = Get-SPWeb ""$curWeb = Get-SPWeb "https://tst15.emdev.azcollaboration.com/operations/Operations/HR"[Microsoft.SharePoint.SPList]$curList = $curWeb.Lists["Location"][Microsoft.SharePoint.SPListItem]$curItem = $curL 阅读全文
posted @ 2011-08-30 11:33 风影极光 阅读(230) 评论(1) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using Microsoft.SharePoint;namespace CR.SharePoint.HR.Common{ public static class PermissionManager { //SPGroup group = web.Groups[0]; //SPUser user = web.Users[0]; //SPUser user2 = web.Ens... 阅读全文
posted @ 2011-08-30 11:10 风影极光 阅读(426) 评论(0) 推荐(0)
摘要:场景:我们在客户的VM环境中进行SharePoint的开发工作,由于权限的限制(连IE的设置都无法修改),我们在很多情况除了以Administrator的身份执行应用程序(IE,VS2010,cmd窗口,集成SharePoint的PowerShell命令窗口等)外,我们可能需要拷贝GAC的dll文件,怎么办呢?以下操作以从GAC中拷贝HR系统的Common.dll到D盘为例PS C:\> cd .\WindowsPS C:\Windows> cd .\assemblyPS C:\Windows\assembly> cd .\GAC_MSILPS C:\Windows\asse 阅读全文
posted @ 2011-08-30 11:05 风影极光 阅读(297) 评论(0) 推荐(0)
摘要:下文以开发HR的Leave系统并部署为例:安装部署Add-SPSolution -LiteralPath E:\Alfred\Project\SIRS\Workflow\TFS\AZ.SharePoint.SIRS\AZ.SharePoint.SIRS\bin\Debug\sharepoint.leave.wspInstall-SPSolution -Identity sharepoint.leave.wsp -GACDeployment说明:全新部署的方式。如果此解决方案中有多个项目或引用了第三方的dll,即有多个dll程序集文件,需要使用参数-GACDeployment,这样相关引用的dl 阅读全文
posted @ 2011-08-30 10:58 风影极光 阅读(499) 评论(0) 推荐(0)
摘要:搭建环境:Win7和Win2008中自带有PowerShell 2.0,在命令中输入powershell即可。http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=20430使用Windows PowerShell ISE编写代码,用户体验跟写c#代码很像。在运行命令中输入powershell_ise,即可。第三方开发工具:PowerGUI.3.1.0.2058.msi,提供智能感知功能。常用快捷键:保存ps文件后可以按F9启动调试F10跳跃调试F11单步调试get-command *uninstall 阅读全文
posted @ 2011-08-29 14:43 风影极光 阅读(743) 评论(0) 推荐(0)
摘要:说明:11_00020.xml为InfoPath的xml文件。利用Linq to xml来便捷地读取相关节点。XmlDocument doc = new XmlDocument(); doc.Load("D:\\11_00020.xml"); XElement xmlTree = XElement.Parse(doc.OuterXml); XNamespace awNamespace = xmlTree.GetNamespaceOfPrefix("my"); Console.WriteLine("Namespace: {0}", aw 阅读全文
posted @ 2011-08-15 15:50 风影极光 阅读(177) 评论(0) 推荐(0)
摘要:两种情况第一 部署wsp包到站点第二 部署wsp包到管理中心http://www.cnblogs.com/majiang/articles/2107151.html 阅读全文
posted @ 2011-08-09 12:34 风影极光 阅读(201) 评论(0) 推荐(0)
摘要:http://www.microsoft.com/china/learning/mcpexams/register/prometric.mspxhttp://www.register.prometric.com/Menu.asp?cookie%5Ftest=1 阅读全文
posted @ 2011-08-08 10:00 风影极光 阅读(150) 评论(0) 推荐(0)
摘要:http://nikspatel.wordpress.com/2011/07/20/debug-browser-enabled-infopath-2010-forms-deployed-on-sharepoint-2010-using-visual-studio-2010/http://msdn.microsoft.com/en-us/library/gg271285.aspxhttp://msdn.microsoft.com/en-us/library/aa944831(v=office.11).aspxhttp://blogs.msdn.com/b/infopath/archive/200 阅读全文
posted @ 2011-08-08 09:51 风影极光 阅读(181) 评论(0) 推荐(0)