SharePoint Server 2010 應用程式介面開發

Download Report

Transcript SharePoint Server 2010 應用程式介面開發

SharePoint 2010 開發平台簡介
Browser Clients
Microsoft Office SharePoint Server 2007 (MOSS)
MS Word Clients
Windows SharePoint Services 3.0 (WSS v3)
MS Outlook Clients
.NET Framework 3.0
Internet Information Services 6.0 or 7.0
Windows Server 2003 or 2008 (32-bit or x64)
Browser Clients
Microsoft SharePoint Server 2010
MS Word Clients
Microsoft SharePoint Foundation 2010
MS Outlook Clients
.NET Framework and ASP.NET 3.5 SP1
Internet Information Services 7.0
Windows Server 2008 (x64 only) for Production Environments
Windows 7 or Vista (x64 only) for Development Environments only
SPFarm
SPWebApplication
SPSite
SPWeb
SPList
SPListItem
SPDocumentLibrary
SPFile
SPFolder
SharePoint 2010 介面
訊息通知
狀態列
對話方塊
AJAX 更新
?
Custom
編輯
選取內容
插入
v4.master
minimal.master
• 網站預設主版頁面
• 給內容頁面使用 (清單、頁面、…)
• _layouts 頁面 (網站設定頁面、…)
• 應用程式使用,例如搜尋或 Office Web Applications
• 沒有網站導覽、Ribbon
• 空間最大
simple.master
• 錯誤頁面與登入頁面
default.master
• 舊版介面
• 沒有客製化,但是頁面可以被取代
• 沒有 Ribbon
新的介面把焦點
放在 SharePoint
物件上
SPD 2007 介面
SPD 2010 介面
WebPart
BaseXsltData
WebPart
DataView
WebPart (V2)
ListForm
WebPart
DataForm
WebPart (V3)
BaseXsltList
WebPart (v4)
XsltListForm
WebPart (V4)
XsltListView
WebPart (V4)
ListView
WebPart
List View
List Form
Data Form
XSLT List View
CAML
ASP.NET
XSLT
XSLT
X
X
X
X
Aggregate Data
X
X
Render External Data
X
X
Rendering Technology
Render Lists
X
Render Items
Browser Editing
X
X
X
X
SPD Editing
X
X
Parameterizable
X
X
Conditional Formatting,
High customizability
X
X
Performance
X
X
X
XmlDefinition
CAML 查詢
SPDataSource
XML 資料
ListName
XSL
清單 Schema
外觀轉換
XsltListView
WebPart
XslCompiled
Transform
HTML
改善欄位
選取功能
方式
清單
資料連線
文件庫
清單
資料連線
表單設計
使用 VS2010 開發 SharePoint 應用程式
SharePoint Explorer
New Project and Item Templates
New Project Structure
在新的 SPI 中加入檔案
自訂 SPI 樣版
可以使用 Custom Action
Designer 進行設計
加入新項目
使用自訂屬性
來延伸 SPI
Feature 開發功能改進
ContextEvent
WebAdding/WebProvisioned
EmailReceived
ListAdding/ListAdded
ListDeleting/ListDeleted
WorkflowStarting/WorkflowStarted
WorkflowPostponed
WorkflowCompleted
工作流程關聯
偵錯時期
工作流程關聯
VS2010 方案的改變
Activation dependencies
ApplicationResourceFiles
Assemblies
CodeAccessSecurity
DwpFiles
FeatureManifests
新增加
新增功能
manifest.xml
Resources
RootFiles
SiteDefinitionManifests
TemplateFiles
運作機制
Microsoft.POC.Intranet.wsp
(WSS Solution Cab)
Feature Manifests
加入
刪除
Site definitions
WSS
組態設定
資料庫
Assemblies
部署/升級
取得
Farm 伺服器
STSADM -o setproperty -pn
developer-dashboard -pv on
STSADM -o setproperty -pn
developer-dashboard -pv off
STSADM –o setproperty –pn
developer-dashboard –pv OnDemand
Set-SPFarm –
DeveloperDashboardEnabled
Set-SPFarm –
DeveloperDashboardEnabled $false
清單功能
http://MSSharePointITPro.com
http://MSSharePointDeveloper.com
http://SharePoint.Microsoft.com
©2009 Microsoft, Microsoft Dynamics, the Office logo, and Your potential. Our passion. are trademarks of the Microsoft group of companies. The information herein is for informational purposes only and
represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on
the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR
STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.