会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
风影极光
Mingle Innovation!!
博客园
首页
新随笔
联系
订阅
管理
ContentType大展拳脚——定义List
应用场景:在请假系统中,需要一个Country列表和Task列表。Country列表作为元数据显示用户所属的国家。Task列表工作流审批使用,并且呈现Task的编辑aspx页面需要隐藏删除按钮。
<?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <!-- Country Content Type : Parent ContentType: Item (0x01) --> <ContentType ID="0x010091B420276C644260A2AAC0DCF6D1615D" Name="Country List" Group="AstraZeneca_SIRS" Description="Create a new Country" Inherits="FALSE" Version="0" Overwrite="TRUE"> <FieldRefs> <FieldRef Name="Country" Required="TRUE" ID="{8A98B00A-C94A-4DDF-94D0-B2F42B21553F}" /> </FieldRefs> </ContentType> <ContentType ID="0x01080100C9C9515DE4E24001905074F980F931600068262CC3E0C8D14FAA84B5A570B22588" Name="TaskContentType" Group="AstraZeneca_SIRS" Overwrite="TRUE" xmlns="http://schemas.microsoft.com/sharepoint/"> <Folder TargetName="InfoPathModule" /> <FieldRefs> <FieldRef ID="{c042a256-787d-4a6f-8a8a-cf6ab767f12d}" Name="ContentType" /> <FieldRef ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Name="Title" Required="TRUE" ShowInNewForm="TRUE" ShowInEditForm="TRUE" /> <FieldRef ID="{c3a92d97-2b77-4a25-9698-3ab54874bc6f}" Name="Predecessors" /> <FieldRef ID="{a8eb573e-9e11-481a-a8c9-1104a54b2fbd}" Name="Priority" /> <FieldRef ID="{c15b34c3-ce7d-490a-b133-3f4de8801b76}" Name="Status" /> <FieldRef ID="{d2311440-1ed6-46ea-b46d-daa643dc3886}" Name="PercentComplete" /> <FieldRef ID="{53101f38-dd2e-458c-b245-0c236cc13d1a}" Name="AssignedTo" /> <FieldRef ID="{7662cd2c-f069-4dba-9e35-082cf976e170}" Name="Body" /> <FieldRef ID="{64cd368d-2f95-4bfc-a1f9-8d4324ecb007}" Name="StartDate" /> <FieldRef ID="{cd21b4c2-6841-4f9e-a23a-738a65f99889}" Name="DueDate" /> <FieldRef ID="{58ddda52-c2a3-4650-9178-3bbc1f6e36da}" Name="Link" /> <FieldRef ID="{16b6952f-3ce6-45e0-8f4e-42dac6e12441}" Name="OffsiteParticipant" /> <FieldRef ID="{4a799ba5-f449-4796-b43e-aa5186c3c414}" Name="OffsiteParticipantReason" /> <FieldRef ID="{18e1c6fa-ae37-4102-890a-cfb0974ef494}" Name="WorkflowOutcome" /> <FieldRef ID="{e506d6ca-c2da-4164-b858-306f1c41c9ec}" Name="WorkflowName" /> <FieldRef ID="{ae069f25-3ac2-4256-b9c3-15dbc15da0e0}" Name="GUID" /> <FieldRef ID="{8d96aa48-9dff-46cf-8538-84c747ffa877}" Name="TaskType" /> <FieldRef ID="{17ca3a22-fdfe-46eb-99b5-9646baed3f16}" Name="FormURN" /> <FieldRef ID="{78eae64a-f5f2-49af-b416-3247b76f46a1}" Name="FormData" /> <FieldRef ID="{8cbb9252-1035-4156-9c35-f54e9056c65a}" Name="EmailBody" /> <FieldRef ID="{47f68c3b-8930-406f-bde2-4a8c669ee87c}" Name="HasCustomEmailBody" /> <FieldRef ID="{cb2413f2-7de9-4afc-8587-1ca3f563f624}" Name="SendEmailNotification" /> <FieldRef ID="{4d2444c2-0e97-476c-a2a3-e9e4a9c73009}" Name="PendingModTime" /> <FieldRef ID="{35363960-d998-4aad-b7e8-058dfe2c669e}" Name="Completed" /> <FieldRef ID="{1bfee788-69b7-4765-b109-d4d9c31d1ac1}" Name="WorkflowListId" /> <FieldRef ID="{8e234c69-02b0-42d9-8046-d5f49bf0174f}" Name="WorkflowItemId" /> <FieldRef ID="{1c5518e2-1e99-49fe-bfc6-1a8de3ba16e2}" Name="ExtendedProperties" /> <FieldRef ID="{0644B00E-2BA9-4883-B1AA-2E835428724D}" Name="SIRS_Approvers" /> </FieldRefs> <XmlDocuments> <XmlDocument NamespaceURI="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms"> <FormTemplates xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms"> <Display>ListForm</Display> <Edit>ListForm</Edit> <New>ListForm</New> </FormTemplates> </XmlDocument> <XmlDocument NamespaceURI="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url"> <FormUrls xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url"> <Display>_layouts/AZ.SharePoint.SIRS/CustomWrkTaskIP.aspx</Display> <Edit>_layouts/AZ.SharePoint.SIRS/CustomWrkTaskIP.aspx</Edit> </FormUrls> </XmlDocument> </XmlDocuments> </ContentType> </Elements>
posted @
2011-09-02 17:54
风影极光
阅读(
202
) 评论(
0
)
编辑
收藏
举报
刷新页面
返回顶部
公告