<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-9150254649529358766</id><updated>2024-09-11T22:18:23.457+08:00</updated><category term="SampleCMS 說明"/><category term="WhatsOld"/><category term="WorkLog"/><category term="程式"/><category term="javascript"/><category term="個人作品"/><category term="SampleCMS"/><category term="SQL"/><category term="Windows Server"/><category term="jquery"/><category term="備忘錄分享"/><category term="自製工具"/><category term="雜項"/><category term=".NET x64"/><category term="App.config"/><category term="Entity Framework"/><category term="Excel"/><category term="Gmail"/><category term="IE Developer Tools"/><category term="IIS7"/><category term="Interface"/><category term="ODBC"/><category term="Project"/><category term="SMTP"/><category term="SampleEFCMS"/><category term="Sencha Touch"/><category term="Spring.NET"/><category term="SqlHelper"/><category term="UrlRewrite"/><category term="jqueryUI"/><category term="svn"/><category term="top"/><category term="心得"/><category term="心理學"/><category term="認知"/><category term="資料庫"/><category term="遊戲"/><title type='text'>Lozen &#39;s Notes</title><subtitle type='html'>hobbies, skills, feelings, follow, reflections</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://lozenlin.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default'/><link rel='alternate' type='text/html' href='http://lozenlin.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default?start-index=26&amp;max-results=25'/><author><name>Lozen Lin</name><uri>http://www.blogger.com/profile/14618290772055469296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>57</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-9150254649529358766.post-103866878533139106</id><published>2018-05-10T22:26:00.000+08:00</published><updated>2018-05-11T16:11:32.912+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SampleCMS 說明"/><title type='text'>SampleCMS 參數過濾元件說明</title><content type='html'>在 SampleCMS 系統中不管是前台或後台，從 GET (Request.QueryString) 與 POST (Request.Form) 傳送進系統的參數值皆會經過參數過濾機制的檢查，當系統發現參數值有疑似 XSS (Cross-Site Script) 或 SQL Injection 的指令關鍵字就會立刻終止開啟網頁的要求。&lt;br&gt;
&lt;br&gt;
參數過濾機制使用參數過濾元件群來檢查各式各樣的規則，&lt;br&gt;
以下說明參數過濾元件的各項功能以及使用方式，&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://lozenlin.blogspot.com/2018/05/samplecms-ParamFilter.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://lozenlin.blogspot.com/feeds/103866878533139106/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://lozenlin.blogspot.com/2018/05/samplecms-ParamFilter.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/103866878533139106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/103866878533139106'/><link rel='alternate' type='text/html' href='http://lozenlin.blogspot.com/2018/05/samplecms-ParamFilter.html' title='SampleCMS 參數過濾元件說明'/><author><name>Lozen Lin</name><uri>http://www.blogger.com/profile/14618290772055469296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjY_39ZTjuu5uN-YergpgRYOvIjWR6Y5bWBLj8ORi6Sr3UeQpQziokOtKK48X66loOTmtbUkYNMyZ2IRHJEJLutMk4-POfjkEP5iwZPoEbHSZvDL47CPHgkJaOedd3QyXdkZSwicEN0x_yW/s72-c/%25E5%258F%2583%25E6%2595%25B8%25E9%2581%258E%25E6%25BF%25BE%25E5%2585%2583%25E4%25BB%25B6%25E9%2597%259C%25E8%2581%25AF.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9150254649529358766.post-2423360510957824855</id><published>2018-05-08T18:14:00.000+08:00</published><updated>2018-05-08T18:20:42.140+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SampleCMS 說明"/><title type='text'>SampleCMS 附件管理共用元件說明：附件下載共用元件 AttDownloadCommon 使用方式</title><content type='html'>在 &lt;a href=&quot;http://lozenlin.blogspot.tw/2018/05/samplecms-att-brief.html&quot; target=&quot;_blank&quot;&gt;附件管理功能概述&lt;/a&gt; 提到了 SampleCMS 附件管理的四項主要功能「儲存（更新）附件資訊與檔案、檢視附件資訊、下載附件檔案、刪除附件檔案」。&lt;br&gt;
&lt;br&gt;
上一篇 &lt;a href=&quot;http://lozenlin.blogspot.tw/2018/05/samplecms-att-attFileMgr.html&quot; target=&quot;_blank&quot;&gt;附件管理共用元件 AttachFileManagerLogic 使用方式&lt;/a&gt; 說明附件管理共用元件 AttachFileManagerLogic 在上述功能中「儲存（更新）附件資訊與檔案、檢視附件資訊、刪除附件檔案」負責的工作。&lt;br&gt;
&lt;br&gt;
這一篇繼續說明附件下載共用元件 AttDownloadCommon 在「下載附件檔案」負責的工作。&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://lozenlin.blogspot.com/2018/05/samplecms-attdownloadcommon.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://lozenlin.blogspot.com/feeds/2423360510957824855/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://lozenlin.blogspot.com/2018/05/samplecms-attdownloadcommon.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/2423360510957824855'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/2423360510957824855'/><link rel='alternate' type='text/html' href='http://lozenlin.blogspot.com/2018/05/samplecms-attdownloadcommon.html' title='SampleCMS 附件管理共用元件說明：附件下載共用元件 AttDownloadCommon 使用方式'/><author><name>Lozen Lin</name><uri>http://www.blogger.com/profile/14618290772055469296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3Z0FdtdJs8ZMuGHRXNHvNcUbhFwMIpQ699bZOWUCzciIGcZ6eREp6o4wPqRJqspvpPejJ4KgFCaqz7nL_sWQlZy0R9ZJHDP1OQs4GCv_nixfEXTIe-SBkYNYBEaqPN0NGMOEV6AVzIGXg/s72-c/SampleCMS+%25E9%2599%2584%25E4%25BB%25B6%25E6%25AA%2594%25E6%25A1%2588%25E4%25B8%258B%25E8%25BC%2589%25E5%2585%2583%25E4%25BB%25B6%25E9%2597%259C%25E8%2581%25AF.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9150254649529358766.post-449229346933796643</id><published>2018-05-08T16:29:00.000+08:00</published><updated>2018-05-08T16:59:09.618+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SampleCMS 說明"/><title type='text'>SampleCMS 附件管理共用元件說明：附件管理共用元件 AttachFileManagerLogic 使用方式</title><content type='html'>上一篇 &lt;a href=&quot;http://lozenlin.blogspot.tw/2018/05/samplecms-att-brief.html&quot; target=&quot;_blank&quot;&gt;附件管理功能概述&lt;/a&gt; 提到了 SampleCMS 附件管理的四項主要功能「儲存（更新）附件資訊與檔案、檢視附件資訊、下載附件檔案、刪除附件檔案」。&lt;br&gt;
&lt;br&gt;
這一篇繼續說明附件管理共用元件 AttachFileManagerLogic 在上述功能中「儲存（更新）附件資訊與檔案、檢視附件資訊、刪除附件檔案」負責的工作。&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://lozenlin.blogspot.com/2018/05/samplecms-att-attFileMgr.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://lozenlin.blogspot.com/feeds/449229346933796643/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://lozenlin.blogspot.com/2018/05/samplecms-att-attFileMgr.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/449229346933796643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/449229346933796643'/><link rel='alternate' type='text/html' href='http://lozenlin.blogspot.com/2018/05/samplecms-att-attFileMgr.html' title='SampleCMS 附件管理共用元件說明：附件管理共用元件 AttachFileManagerLogic 使用方式'/><author><name>Lozen Lin</name><uri>http://www.blogger.com/profile/14618290772055469296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvDjhZZJRaS1jYP6BaPw8xP6zWe0fm8Tsbr1W8jnL3UHFkLFYG6dvPdwFOklOSViCzp3z2FupOcfw9owMC1cfhg9tepD35WPvIra4IYsMVG6gbEyof0UI-1ROqSk-yn3Tucs5CHEBzRaAF/s72-c/Article-Attach.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9150254649529358766.post-2852269298058520067</id><published>2018-05-07T20:07:00.000+08:00</published><updated>2018-05-08T16:58:58.400+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SampleCMS 說明"/><title type='text'>SampleCMS 附件管理共用元件說明：附件管理功能概述</title><content type='html'>附件管理主要由「儲存（更新）附件資訊與檔案、檢視附件資訊、下載附件檔案、刪除附件檔案」這四項功能組成。而 SampleCMS 將檔案資訊與實體檔案分別存放在資料庫與磁碟，在實作程式上因此變得比較繁瑣以及需要較為謹慎，需確保檔案資訊與實體檔案皆儲存完成才算成功。&lt;br&gt;
&lt;br&gt;
另一方面，其他的附件管理，例如：&lt;u&gt;照片管理&lt;/u&gt;，或是在其他專案曾經製作的&lt;u&gt;廣告橫幅管理&lt;/u&gt;、&lt;u&gt;商品附件管理&lt;/u&gt;。它們在「儲存（更新）附件資訊與檔案、檢視附件資訊、下載附件檔案、刪除附件檔案」這四項功能中的程式流程與這個附件管理是相同的，差別在於可能需要檢查不同的檔案類型、儲存在磁碟的檔名採用不同格式、儲存在磁碟的不同目錄、甚至儲存在資料庫的不同資料表。&lt;br&gt;
&lt;br&gt;
而這樣子的差別，不同的類型有著相同的行為但是行為裡的細項動作各自不同，蠻適合使用物件導向來設計共用相同的行為。因此在 SampleCMS 之中，製作了附件管理共用元件 AttachFileManagerLogic 與檔案下載功能的共用元件 AttDownloadCommon。&lt;br&gt;
&lt;br&gt;
下列先以循序圖概略描述「儲存（更新）附件資訊與檔案、檢視附件資訊、下載附件檔案、刪除附件檔案」這四項功能，&lt;br&gt;
&lt;a href=&quot;http://lozenlin.blogspot.com/2018/05/samplecms-att-brief.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://lozenlin.blogspot.com/feeds/2852269298058520067/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://lozenlin.blogspot.com/2018/05/samplecms-att-brief.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/2852269298058520067'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/2852269298058520067'/><link rel='alternate' type='text/html' href='http://lozenlin.blogspot.com/2018/05/samplecms-att-brief.html' title='SampleCMS 附件管理共用元件說明：附件管理功能概述'/><author><name>Lozen Lin</name><uri>http://www.blogger.com/profile/14618290772055469296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsQRREpv7uxlJtcYqM3gUf0cbb1wRo-lFlcdC5YolmkIP2WvNyiOiXcys2GNdroTOO43loKezjy3znPGyqgTnc17ccfyupqWJ7I7K94wpEO4q7T3M8kyrgW_SgV2mYvv4R_HArf0siajdX/s72-c/%25E5%2584%25B2%25E5%25AD%2598%25E9%2599%2584%25E4%25BB%25B6%25E6%25A6%2582%25E7%2595%25A5%25E5%25BE%25AA%25E5%25BA%258F%25E5%259C%2596.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9150254649529358766.post-6667957156034041950</id><published>2018-05-04T22:26:00.003+08:00</published><updated>2018-05-11T15:12:18.817+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="備忘錄分享"/><title type='text'>[備忘錄分享] XSS (2009 年) 測試記錄</title><content type='html'>在 2009 年，我第一次接觸弱點掃描，看著掃描報告中的 XSS (Cross-Site Script) 跨網站指令碼漏洞描述，很好奇什麼樣的寫法會用來做為 XSS ，同時也想知道我該怎麼防堵 XSS 進而通過弱點掃描。&lt;br&gt;
&lt;div&gt;
&lt;br&gt;&lt;/div&gt;
&lt;div&gt;
當時我找到一個格主是 OpenBlue 的部落格，裡面寫了很多 XSS 相關的知識，我覺得是個寶庫（可惜現在這個部落格已經關了）。我在那個部落格中找到一篇叫做「淺析XSS(Cross Site Script)漏洞原理」的文章，照著文章裡的描述開始了我的摸索與測試。&lt;/div&gt;
&lt;div&gt;
&lt;br&gt;&lt;/div&gt;
&lt;div&gt;
今日再次搜尋「淺析XSS(Cross Site Script)漏洞原理」才知道原文出處在內地，還好這篇文章還看得到，請看 &lt;a href=&quot;http://safe.it168.com/n/2007-07-04/20070704004201_all.shtml&quot; target=&quot;_blank&quot;&gt;http://safe.it168.com/n/2007-07-04/20070704004201_all.shtml&lt;/a&gt;。&lt;/div&gt;
&lt;br&gt;
以下為當時我所記錄的內容，&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://lozenlin.blogspot.com/2018/05/xss-2009.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://lozenlin.blogspot.com/feeds/6667957156034041950/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://lozenlin.blogspot.com/2018/05/xss-2009.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/6667957156034041950'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/6667957156034041950'/><link rel='alternate' type='text/html' href='http://lozenlin.blogspot.com/2018/05/xss-2009.html' title='[備忘錄分享] XSS (2009 年) 測試記錄'/><author><name>Lozen Lin</name><uri>http://www.blogger.com/profile/14618290772055469296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9150254649529358766.post-796126267081802077</id><published>2018-05-04T17:37:00.002+08:00</published><updated>2018-05-04T17:37:28.152+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="備忘錄分享"/><title type='text'>[備忘錄分享] 簡介曾經做過的 Smart Client 架構</title><content type='html'>大約是 2006 年，那時的我從使用 C++ 寫遊戲程式轉換到使用 .net 寫視窗與網頁程式。&lt;br&gt;
當時的工作是我從資策會學完 .net 之後的下一份工作。工作的內容是和公司的前輩一起製作一個電視購物的 ERP (Enterprise Resource Planning) 系統，主要的子系統如下，&lt;br&gt;
&lt;ol&gt;
&lt;li&gt;提供給電話客服人員使用的訂單系統。&lt;/li&gt;
&lt;li&gt;提供給物流人員使用的進銷存系統。&lt;/li&gt;
&lt;/ol&gt;
當時希望採用微軟在 2004 年提出的 Smart Client 架構，這個架構簡單的來說就是要取 Window Form 程式與 ASP.NET 網頁程式的優點並且捨棄它們的缺點。&lt;br&gt;
&lt;br&gt;
傳統的 Window Form 程式，定位為 Rich Client (又叫 Fat Client, Thick Client)，&lt;br&gt;
相較於當時的網頁程式，Window Form 能夠使用更豐富的 UI 元件提供給使用者互動，但是缺點就是不易更新使用者手上的程式，每次的程式更新都得打包安裝檔並且讓每個使用者下載與安裝，不像網頁程式用瀏覽器只要重新打開原本的連結，網頁內容隨時都是最新版本。這個問題在使用者越多時會越令人頭痛。&lt;br&gt;
&lt;br&gt;
網頁程式，定位為 Thin Client，&lt;br&gt;
不像現在 2018 年，當時的網頁程式連 ajax 都還沒流行，網頁程式能提供給使用者的 UI 都很陽春，和視窗程式有很大的落差。不過其優點就像上一條提到的，發佈更新很方便，只要重新打開原本的連結，網頁內容隨時都是最新版本。&lt;br&gt;
&lt;br&gt;
而 Smart Client 就是要取上述兩種的優點，要有 Window Form 程式的豐富 UI ，而且發佈更新像網頁程式一樣方便。&lt;br&gt;
&lt;br&gt;
以下簡介當時製作的 Smart Client 系統架構，&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://lozenlin.blogspot.com/2018/05/smart-client-brief.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://lozenlin.blogspot.com/feeds/796126267081802077/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://lozenlin.blogspot.com/2018/05/smart-client-brief.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/796126267081802077'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/796126267081802077'/><link rel='alternate' type='text/html' href='http://lozenlin.blogspot.com/2018/05/smart-client-brief.html' title='[備忘錄分享] 簡介曾經做過的 Smart Client 架構'/><author><name>Lozen Lin</name><uri>http://www.blogger.com/profile/14618290772055469296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitDHuSBKRhACVxyYJZj16uvIAr7OLcdGigmGxan_lYRTs1XWBbNvT6tBu4UfWmNy0ax134eA2SFOxSdwO5pgt6_AeFUs-wzwRXHq6CpywyNY733o0UumIXVmu0AY7-AYns7YvlUjysJCUv/s72-c/SmartClient.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9150254649529358766.post-2009060992069688785</id><published>2018-05-03T17:45:00.002+08:00</published><updated>2018-05-08T16:58:38.326+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SampleCMS 說明"/><title type='text'>SampleCMS 前台網頁預覽功能驗證方式說明</title><content type='html'>SampleCMS 後台管理功能「網站架構管理」提供預覽尚未開放的前台網頁內容功能。&lt;br&gt;
使用的方式如同&lt;a href=&quot;https://github.com/lozenlin/SampleCMS/blob/master/Documents/5.%E4%BD%BF%E7%94%A8%E8%80%85%E6%B8%AC%E8%A9%A6%E8%88%87%E4%BA%A4%E4%BB%98(User_Phase)/Manual/Manual_zhTW.pdf&quot; target=&quot;_blank&quot;&gt;操作手冊&lt;/a&gt;「3.1.使用情境：檢視指定網頁資料」提到的，&lt;br&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHz-yKd4mvDDnCcxuPnOtIc9tmfZSRUGdz_TUZ8O2_x4fNwdzC8CyhkfHWTkBkYLjgyEoz1jqQrDhihN5eBgczw5SZhFqGFIpgnYwdzQvXJUKhlfjWGjCmQocE5VZ7ZexMT5xyrAvjBOzC/s1600/preview_desc.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;301&quot; data-original-width=&quot;702&quot; height=&quot;274&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHz-yKd4mvDDnCcxuPnOtIc9tmfZSRUGdz_TUZ8O2_x4fNwdzC8CyhkfHWTkBkYLjgyEoz1jqQrDhihN5eBgczw5SZhFqGFIpgnYwdzQvXJUKhlfjWGjCmQocE5VZ7ZexMT5xyrAvjBOzC/s640/preview_desc.png&quot; width=&quot;640&quot;&gt;&lt;/a&gt;&lt;/div&gt;
＂若指定的網頁資料狀態是隱藏的或者不在上架期間，則&lt;u&gt;檢視鈕&lt;/u&gt;會變更為&lt;u&gt;預覽鈕&lt;/u&gt;，此時點選指定語系的&lt;u&gt;預覽鈕&lt;/u&gt;，系統將以預覽模式開啟未開放的前台網頁，並且在前台網頁中出現「您正使用預覽模式檢視本頁」的提醒訊息&lt;br&gt;
&lt;br&gt;
* 基於保密的原則，每一次用來預覽指定的前台網頁網址有時效限制，目前為１０分鐘，當預覽用的網址產生超過１０分鐘且繼續被用來開啟網頁時將導向錯誤頁，此時若還需要預覽指定的前台網頁，請回到網頁管理畫面點選預覽鈕重新產生。＂&lt;br&gt;
&lt;br&gt;
以下說明前台網頁預覽功能驗證方式，&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://lozenlin.blogspot.com/2018/05/samplecms-Preview-Auth.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://lozenlin.blogspot.com/feeds/2009060992069688785/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://lozenlin.blogspot.com/2018/05/samplecms-Preview-Auth.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/2009060992069688785'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/2009060992069688785'/><link rel='alternate' type='text/html' href='http://lozenlin.blogspot.com/2018/05/samplecms-Preview-Auth.html' title='SampleCMS 前台網頁預覽功能驗證方式說明'/><author><name>Lozen Lin</name><uri>http://www.blogger.com/profile/14618290772055469296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHz-yKd4mvDDnCcxuPnOtIc9tmfZSRUGdz_TUZ8O2_x4fNwdzC8CyhkfHWTkBkYLjgyEoz1jqQrDhihN5eBgczw5SZhFqGFIpgnYwdzQvXJUKhlfjWGjCmQocE5VZ7ZexMT5xyrAvjBOzC/s72-c/preview_desc.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9150254649529358766.post-7089839127911451358</id><published>2018-05-03T10:45:00.000+08:00</published><updated>2018-05-08T16:58:09.728+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SampleCMS 說明"/><title type='text'>SampleCMS 網頁共用元件說明：前台相關元件分工說明</title><content type='html'>在說明完 &lt;a href=&quot;http://lozenlin.blogspot.tw/2018/05/samplecms-PageCommon-BackStage.html&quot; target=&quot;_blank&quot;&gt;後台相關元件分工說明&lt;/a&gt; 之後，繼續說明前台相關元件。&lt;br&gt;
接下來以通用的多功能網頁程式 Article.aspx 為例說明前台相關元件以及各項的分工，包含 &lt;a href=&quot;http://lozenlin.blogspot.tw/2018/04/samplecms-PageCommon-brief.html&quot; target=&quot;_blank&quot;&gt;網頁共用元件說明：簡介&lt;/a&gt; 提到的前台網頁共用元件 FrontendPageCommon。&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://lozenlin.blogspot.com/2018/05/samplecms-PageCommon-FrontStage.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://lozenlin.blogspot.com/feeds/7089839127911451358/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://lozenlin.blogspot.com/2018/05/samplecms-PageCommon-FrontStage.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/7089839127911451358'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/7089839127911451358'/><link rel='alternate' type='text/html' href='http://lozenlin.blogspot.com/2018/05/samplecms-PageCommon-FrontStage.html' title='SampleCMS 網頁共用元件說明：前台相關元件分工說明'/><author><name>Lozen Lin</name><uri>http://www.blogger.com/profile/14618290772055469296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDoBZ6CRG4Bz3LbW0qy7-Ef53xbqnNRH_ZIc5lYY15HvhPY8-9dlTvQf9iGb_pjDlvBZaxuxecO6KZxzFiqQNcpkFdWzlO1vwOsDoiDFuRd8r1E5pO_BxsN-HUhGh9CpZQZiy7scmVSGwG/s72-c/%25E5%2589%258D%25E5%258F%25B0+Article_UI_blocks.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9150254649529358766.post-1208743708194395473</id><published>2018-05-01T22:15:00.001+08:00</published><updated>2018-05-08T16:57:47.539+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SampleCMS 說明"/><title type='text'>SampleCMS 網頁共用元件說明：後台相關元件分工說明</title><content type='html'>製作網頁程式的時候，除了至今為止談過的&lt;u&gt;資料層元件&lt;/u&gt;、&lt;u&gt;帳號與權限系統元件&lt;/u&gt;、&lt;u&gt;網頁內容發佈系統元件&lt;/u&gt;、&lt;u&gt;網頁共用元件&lt;/u&gt;這些屬於資料層與邏輯層的共用元件，展示層也有需要共用的部分。以後台網頁為例，每一個清單頁都有下列元素「 Logo 圖、登入資訊、右上角使用者選單、左側系統功能選單」。&lt;br&gt;
&lt;br&gt;
使用 ASP.NET Web Forms 製作網頁，常用來製作展示層共用元件的方式就是使用 MasterPage 與 UserControl。SampleCMS 也不例外，接下來以帳號清單頁 Account-List.aspx 為例說明後台相關元件以及各項的分工，包含前一篇 &lt;a href=&quot;http://lozenlin.blogspot.tw/2018/04/samplecms-PageCommon-brief.html&quot; target=&quot;_blank&quot;&gt;網頁共用元件說明：簡介&lt;/a&gt; 提到的後台網頁共用元件 BackendPageCommon（在帳號清單頁使用的是其衍生類別 AccountCommonOfBackend）。&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://lozenlin.blogspot.com/2018/05/samplecms-PageCommon-BackStage.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://lozenlin.blogspot.com/feeds/1208743708194395473/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://lozenlin.blogspot.com/2018/05/samplecms-PageCommon-BackStage.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/1208743708194395473'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/1208743708194395473'/><link rel='alternate' type='text/html' href='http://lozenlin.blogspot.com/2018/05/samplecms-PageCommon-BackStage.html' title='SampleCMS 網頁共用元件說明：後台相關元件分工說明'/><author><name>Lozen Lin</name><uri>http://www.blogger.com/profile/14618290772055469296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBYb8Bb0oYFvb7Ua-j9F_5mzWNnNKQ-TzCe50TjOg0KlrdMTvP9-AFCkXWvKB7zW0ZsxOy2DPfi0gg37QISNJggUgizqt-3PyxWPJMRPBcgmRLDZvT3QxYjGXOV40iXTAXafjicN2mIC9z/s72-c/Account-List_UI_blocks.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9150254649529358766.post-739452367611949921</id><published>2018-04-27T21:30:00.000+08:00</published><updated>2018-05-08T16:57:13.290+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SampleCMS 說明"/><title type='text'>SampleCMS 網頁共用元件說明：簡介</title><content type='html'>在製作 ASP.NET Web Forms 網頁程式時，如果遇到多個網頁程式都會寫到的重覆功能，常用的做法就是將這項目功能從這些網頁程式中抽出並且放在一個共用的父類別 BasePage 之中，讓所有網頁程式都繼承自 BasePage，共用 BasePage 裡面的功能。&lt;br&gt;
&lt;br&gt;
以我的例子來說，我喜歡把四散在網站中所有網頁程式裡的 Request.QueryString[&amp;quot;Id&amp;quot;], Request.QueryString[&amp;quot;name&amp;quot;] 包裝成屬性 int qsId, string qsName。&lt;br&gt;
（另外，Session[&amp;quot;Param&amp;quot;] 和 ViewState[&amp;quot;Param&amp;quot;] 也是）&lt;br&gt;
&lt;br&gt;
會這麼做的起因是為了弱點掃描，當初為了要針對 QueryString 參數值撰寫白名單機制，在統計 Request.QueryString[&amp;quot;xxx&amp;quot;] 全部有多少參數名稱、各是什麼樣的類型的時候，覺得四散在程式裡的相同參數名稱太多，而且 QueryString[] 很自由的讓參數名稱不用區分大小寫導致同名參數有不同的大小寫在不同的地方，覺得維護時不好讀。&lt;br&gt;
&lt;a href=&quot;http://lozenlin.blogspot.com/2018/04/samplecms-PageCommon-brief.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://lozenlin.blogspot.com/feeds/739452367611949921/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://lozenlin.blogspot.com/2018/04/samplecms-PageCommon-brief.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/739452367611949921'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/739452367611949921'/><link rel='alternate' type='text/html' href='http://lozenlin.blogspot.com/2018/04/samplecms-PageCommon-brief.html' title='SampleCMS 網頁共用元件說明：簡介'/><author><name>Lozen Lin</name><uri>http://www.blogger.com/profile/14618290772055469296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhl0zkVrdlWjrCFj4X3KQUsXzHV9VG2z-gVBDlMNYM8a04zL6nDU6tUlGerbc6_Ms-aqfFkReu0aHRVXY1q-qIOJeB47qyLwv3sY5cJcMcbfVhLT9DIUCoKjRWc0T0ODU3Eajdp1kui5ZMl/s72-c/qs_IntelliSense.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9150254649529358766.post-670395022720376129</id><published>2018-04-26T16:54:00.000+08:00</published><updated>2018-05-08T16:56:45.881+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SampleCMS 說明"/><title type='text'>SampleCMS 網頁內容發佈系統元件說明：自訂帳號授權結果</title><content type='html'>接續前一篇 &lt;a href=&quot;http://lozenlin.blogspot.tw/2018/04/samplecms-ArtPub-basic.html&quot; target=&quot;_blank&quot;&gt;元件提供的功能與使用方式&lt;/a&gt; ，&lt;br&gt;
本篇說明「網站架構管理」的權限判斷規則以及實作方式。&lt;br&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsW9-THqZnglmx7pVHSdCqfXFQkz24m-QXuWxB2xZSwihAKICZx8lGEZrjWbF-LirH3a7k-jPd2hGWOVMV7Ci3EJS9UOnbHPgu9v_RzJ_Qd8LLEikqAuQLo7YweUdUAoT9kObA6o60cuBH/s1600/%25E7%25B6%25B2%25E7%25AB%2599%25E6%259E%25B6%25E6%25A7%258B%25E7%25AE%25A1%25E7%2590%2586_%25E9%2581%25B8%25E5%2596%25AE.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;141&quot; data-original-width=&quot;182&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsW9-THqZnglmx7pVHSdCqfXFQkz24m-QXuWxB2xZSwihAKICZx8lGEZrjWbF-LirH3a7k-jPd2hGWOVMV7Ci3EJS9UOnbHPgu9v_RzJ_Qd8LLEikqAuQLo7YweUdUAoT9kObA6o60cuBH/s1600/%25E7%25B6%25B2%25E7%25AB%2599%25E6%259E%25B6%25E6%25A7%258B%25E7%25AE%25A1%25E7%2590%2586_%25E9%2581%25B8%25E5%2596%25AE.png&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;br&gt;
&lt;a href=&quot;http://lozenlin.blogspot.com/2018/04/samplecms-ArtPub-auth.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://lozenlin.blogspot.com/feeds/670395022720376129/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://lozenlin.blogspot.com/2018/04/samplecms-ArtPub-auth.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/670395022720376129'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/670395022720376129'/><link rel='alternate' type='text/html' href='http://lozenlin.blogspot.com/2018/04/samplecms-ArtPub-auth.html' title='SampleCMS 網頁內容發佈系統元件說明：自訂帳號授權結果'/><author><name>Lozen Lin</name><uri>http://www.blogger.com/profile/14618290772055469296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsW9-THqZnglmx7pVHSdCqfXFQkz24m-QXuWxB2xZSwihAKICZx8lGEZrjWbF-LirH3a7k-jPd2hGWOVMV7Ci3EJS9UOnbHPgu9v_RzJ_Qd8LLEikqAuQLo7YweUdUAoT9kObA6o60cuBH/s72-c/%25E7%25B6%25B2%25E7%25AB%2599%25E6%259E%25B6%25E6%25A7%258B%25E7%25AE%25A1%25E7%2590%2586_%25E9%2581%25B8%25E5%2596%25AE.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9150254649529358766.post-3322182600729182191</id><published>2018-04-25T17:43:00.001+08:00</published><updated>2018-05-08T16:56:15.063+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SampleCMS 說明"/><title type='text'>SampleCMS 網頁內容發佈系統元件說明：元件提供的功能與使用方式</title><content type='html'>網頁內容發佈系統為 SampleCMS 內部的兩大子系統之一（另一個為帳號與權限系統），在系統設計說明開頭 &lt;a href=&quot;http://lozenlin.blogspot.tw/2018/04/samplecms-preface.html&quot; target=&quot;_blank&quot;&gt;前言&lt;/a&gt; 內文提到的 &lt;u&gt;SampleCMS 主要提供的功能&lt;/u&gt; 之中，除了&lt;u&gt;帳號與權限管理&lt;/u&gt;，其他功能都屬於這個子系統。&lt;br&gt;
&lt;br&gt;
本篇說明系統邏輯層中的網頁內容發佈元件所提供的功能，以及呼叫者端（展示層的網頁程式）如何使用這個元件。
&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://lozenlin.blogspot.com/2018/04/samplecms-ArtPub-basic.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://lozenlin.blogspot.com/feeds/3322182600729182191/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://lozenlin.blogspot.com/2018/04/samplecms-ArtPub-basic.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/3322182600729182191'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/3322182600729182191'/><link rel='alternate' type='text/html' href='http://lozenlin.blogspot.com/2018/04/samplecms-ArtPub-basic.html' title='SampleCMS 網頁內容發佈系統元件說明：元件提供的功能與使用方式'/><author><name>Lozen Lin</name><uri>http://www.blogger.com/profile/14618290772055469296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3WeLhYe7R_-gTdHF9vGvb6t9461e4NKji9cSjtNZpk8CjrZZpeptn_GkKcfohD8JKKJDb928LTJOJluJ8hEHqGqaECLajDjMGDf9qn3sMByBwigbMRT4g5muBei9gmk0cinAXw1ManeO0/s72-c/SampleCMS+%25E7%25B6%25B2%25E9%25A0%2581%25E5%2585%25A7%25E5%25AE%25B9%25E7%2599%25BC%25E4%25BD%2588%25E5%2585%2583%25E4%25BB%25B6%25E9%2597%259C%25E8%2581%25AF.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9150254649529358766.post-5755335582918109628</id><published>2018-04-24T16:59:00.002+08:00</published><updated>2018-05-08T16:55:46.596+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SampleCMS 說明"/><title type='text'>SampleCMS 帳號與權限系統元件說明：客製化權限判斷</title><content type='html'>接續上一篇 &lt;a href=&quot;http://lozenlin.blogspot.tw/2018/04/samplecms-EmpAuth-basic.html&quot; target=&quot;_blank&quot;&gt;元件提供的功能與使用方式&lt;/a&gt; 結尾提到的，（帳號設定頁）＂使用的方法 CanEditThisPage() 之所以不用傳入擁有者資訊是因為管理頁共用元件實作了介面 ICustomEmployeeAuthorizationResult，透過實作的介面方法 InitialAuthorizationResult(bool isTopPageOfOperation, EmployeeAuthorizations authorizations) 將擁有者資訊交給了帳號與權限元件＂，本篇繼續說明介面 ICustomEmployeeAuthorizationResult 的作用以及需負責的工作。&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://lozenlin.blogspot.com/2018/04/samplecms-EmpAuth-custom.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://lozenlin.blogspot.com/feeds/5755335582918109628/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://lozenlin.blogspot.com/2018/04/samplecms-EmpAuth-custom.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/5755335582918109628'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/5755335582918109628'/><link rel='alternate' type='text/html' href='http://lozenlin.blogspot.com/2018/04/samplecms-EmpAuth-custom.html' title='SampleCMS 帳號與權限系統元件說明：客製化權限判斷'/><author><name>Lozen Lin</name><uri>http://www.blogger.com/profile/14618290772055469296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVNOJ6Kn0uLqhCnZ0GpXGE3aFYJm40wuZrBZwznyJrpxcMNO6z41jSEIysM84KHZOR0BMw1ZXZTr6WmRaMdYmILp16y5XFKOd88TsvsE0JII1-6TmHkpCni73sp1O4XBX981jWKoX_nZOW/s72-c/ICustomEmployeeAuthorizationResult.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9150254649529358766.post-8357084571613344530</id><published>2018-04-20T17:33:00.002+08:00</published><updated>2018-05-08T16:55:11.602+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SampleCMS 說明"/><title type='text'>SampleCMS 帳號與權限系統元件說明：元件提供的功能與使用方式</title><content type='html'>上一篇 &lt;a href=&quot;http://lozenlin.blogspot.tw/2018/04/samplecms-EmpAuth-rule.html&quot; target=&quot;_blank&quot;&gt;帳號與權限規則說明&lt;/a&gt; 提到了授權範圍的定義以及後台網頁程式如何達成權限判斷，而系統邏輯層中的帳號與權限元件就是依照帳號與權限規則設計。&lt;br&gt;
&lt;br&gt;
接下來繼續說明帳號與權限元件所提供的功能，以及呼叫者端（展示層的網頁程式）如何使用這個元件。&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://lozenlin.blogspot.com/2018/04/samplecms-EmpAuth-basic.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://lozenlin.blogspot.com/feeds/8357084571613344530/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://lozenlin.blogspot.com/2018/04/samplecms-EmpAuth-basic.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/8357084571613344530'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/8357084571613344530'/><link rel='alternate' type='text/html' href='http://lozenlin.blogspot.com/2018/04/samplecms-EmpAuth-basic.html' title='SampleCMS 帳號與權限系統元件說明：元件提供的功能與使用方式'/><author><name>Lozen Lin</name><uri>http://www.blogger.com/profile/14618290772055469296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSQzMqmxQSjncFQAL7RNEfv6163n2I8rxVxU4kQo1jWqouN9fJdY-kL-8Jn7YzoGHFF6ZIfusi5HbsJdyXR2H9aEAuaohwkKGjn34irArbUmOGcVmjtr9LjXh5z-zWA0LU7eCDHSqYUdPc/s72-c/SampleCMS+%25E5%25B8%25B3%25E8%2599%259F%25E8%2588%2587%25E6%25AC%258A%25E9%2599%2590%25E5%2585%2583%25E4%25BB%25B6%25E9%2597%259C%25E8%2581%25AF.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9150254649529358766.post-1535229087202908905</id><published>2018-04-19T21:46:00.000+08:00</published><updated>2018-05-08T16:54:44.694+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SampleCMS 說明"/><title type='text'>SampleCMS 帳號與權限系統元件說明：帳號與權限規則說明</title><content type='html'>SampleCMS 帳號與權限系統的設計以&lt;u&gt;員工身份&lt;/u&gt;（以下簡稱身份）為主軸，&lt;u&gt;帳號&lt;/u&gt;登入後台之後能夠使用後台左側選單中的哪些&lt;u&gt;作業選項&lt;/u&gt;取決於&lt;u&gt;帳號&lt;/u&gt;屬於哪一個&lt;u&gt;身份&lt;/u&gt;，管理者需事先設定&lt;u&gt;身份&lt;/u&gt;能否使用以及怎麼使用系統中的&lt;u&gt;作業選項&lt;/u&gt;。&lt;br&gt;
*作業選項有哪些？例如「帳號管理、身分權限管理、後端操作記錄、網站架構管理...等」。&lt;br&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaaDV7XXg8nraWV0J12xtMKWLccZSEbz5Ku7d7v8K0FMfUbPUkbIXQZnHdpUYJo5L2YZaMEMRLNw2JpkHiL3L8kkpgOLdr75i9iLdP8Q7VIcsVwFkLN6K6Y4San4aJsfiyVvscVCZ_6E0I/s1600/%25E4%25BB%25A5%25E5%2593%25A1%25E5%25B7%25A5%25E8%25BA%25AB%25E4%25BB%25BD%25E7%2582%25BA%25E4%25B8%25BB%25E8%25BB%25B8.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;213&quot; data-original-width=&quot;500&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaaDV7XXg8nraWV0J12xtMKWLccZSEbz5Ku7d7v8K0FMfUbPUkbIXQZnHdpUYJo5L2YZaMEMRLNw2JpkHiL3L8kkpgOLdr75i9iLdP8Q7VIcsVwFkLN6K6Y4San4aJsfiyVvscVCZ_6E0I/s1600/%25E4%25BB%25A5%25E5%2593%25A1%25E5%25B7%25A5%25E8%25BA%25AB%25E4%25BB%25BD%25E7%2582%25BA%25E4%25B8%25BB%25E8%25BB%25B8.jpg&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
以下說明授權給身分使用的範圍定義，&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://lozenlin.blogspot.com/2018/04/samplecms-EmpAuth-rule.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://lozenlin.blogspot.com/feeds/1535229087202908905/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://lozenlin.blogspot.com/2018/04/samplecms-EmpAuth-rule.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/1535229087202908905'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/1535229087202908905'/><link rel='alternate' type='text/html' href='http://lozenlin.blogspot.com/2018/04/samplecms-EmpAuth-rule.html' title='SampleCMS 帳號與權限系統元件說明：帳號與權限規則說明'/><author><name>Lozen Lin</name><uri>http://www.blogger.com/profile/14618290772055469296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaaDV7XXg8nraWV0J12xtMKWLccZSEbz5Ku7d7v8K0FMfUbPUkbIXQZnHdpUYJo5L2YZaMEMRLNw2JpkHiL3L8kkpgOLdr75i9iLdP8Q7VIcsVwFkLN6K6Y4San4aJsfiyVvscVCZ_6E0I/s72-c/%25E4%25BB%25A5%25E5%2593%25A1%25E5%25B7%25A5%25E8%25BA%25AB%25E4%25BB%25BD%25E7%2582%25BA%25E4%25B8%25BB%25E8%25BB%25B8.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9150254649529358766.post-5947189864811357545</id><published>2018-04-17T21:47:00.002+08:00</published><updated>2018-05-08T16:54:17.444+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SampleCMS 說明"/><title type='text'>SampleCMS 資料層元件說明：客製化指令資訊類別 (DataAccessCommandInfo) </title><content type='html'>&lt;a href=&quot;http://lozenlin.blogspot.tw/2018/04/samplecms-cmdInfo-basic.html&quot; target=&quot;_blank&quot;&gt;前一篇&lt;/a&gt;提到如何透過四個步驟來建立資料層中用來存取指定 Stored Procedure（以下簡稱 SP）的指令資訊類別 (DataAccessCommandInfo) 。&lt;br&gt;
&lt;br&gt;
接下來要繼續說明如何客製化指令資訊類別，例如：我想直接在資料層寫 sql script、我想在資料層開啟交易執行多個 SP。&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://lozenlin.blogspot.com/2018/04/samplecms-cmdInfo-custom.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://lozenlin.blogspot.com/feeds/5947189864811357545/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://lozenlin.blogspot.com/2018/04/samplecms-cmdInfo-custom.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/5947189864811357545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/5947189864811357545'/><link rel='alternate' type='text/html' href='http://lozenlin.blogspot.com/2018/04/samplecms-cmdInfo-custom.html' title='SampleCMS 資料層元件說明：客製化指令資訊類別 (DataAccessCommandInfo) '/><author><name>Lozen Lin</name><uri>http://www.blogger.com/profile/14618290772055469296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsw4CpGn1pNdTAQIgMjLpfwbnFJYAt0amiQ7IKmX5aLaxZzaJuJt2mB4L-nXYerOMVZAjrgT6ZiOLKJ3InTbqHdwi5rkU3THpDjysBXmUpoCYr3Jg8fxN90dzR0H3xbvRaKuEoiheBAQ8N/s72-c/DataAccessCommand.ExecuteDataset+%25E6%25B4%25BB%25E5%258B%2595%25E5%259C%2596.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9150254649529358766.post-1167208477902182147</id><published>2018-04-14T16:11:00.000+08:00</published><updated>2018-05-08T16:53:49.165+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SampleCMS 說明"/><title type='text'>SampleCMS 資料層元件說明：依照 Stored Procedure 建立基本的指令資訊類別 (DataAccessCommandInfo)</title><content type='html'>寫程式的過程中，我對於需要大量重覆編寫相同格式的程式碼難免會覺得枯燥乏味，例如在撰寫資料庫存取功能，已經花時間在資料庫寫好了&lt;u&gt;取得員工資料&lt;/u&gt;的 Stored Procedure（以下簡稱 SP），接著還要再去資料層函式庫又寫一個&lt;u&gt;取得員工資料&lt;/u&gt;的類別，寫的內容就像是換個格式重寫一樣的 SP 名稱與參數名單，難免覺得浪費了更多時間。&lt;br&gt;
&lt;br&gt;
個人覺得寫程式最快的方式就是「複製、貼上、修改」，但前題是複製的來源程式碼最好是整理過的，不然很可能變成 -複製混亂、貼上混亂、修改更混亂-，造成後續維護的麻煩。&lt;br&gt;
&lt;br&gt;
針對指令資訊類別 (DataAccessCommandInfo)，我把開發過程中自己常用的格式整理成一份 &lt;a href=&quot;https://github.com/lozenlin/SampleCMS/blob/master/Source/Common/Common.DataAccess/DemoCommandInfos.cs&quot; target=&quot;_blank&quot;&gt;DemoCommandInfos.cs&lt;/a&gt; （放在資料層函式庫的 namespace Common.DataAccess.DemoCommandInfos，只是方便自己需要時隨時打開來用），&lt;br&gt;
以下說明，&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://lozenlin.blogspot.com/2018/04/samplecms-cmdInfo-basic.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://lozenlin.blogspot.com/feeds/1167208477902182147/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://lozenlin.blogspot.com/2018/04/samplecms-cmdInfo-basic.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/1167208477902182147'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/1167208477902182147'/><link rel='alternate' type='text/html' href='http://lozenlin.blogspot.com/2018/04/samplecms-cmdInfo-basic.html' title='SampleCMS 資料層元件說明：依照 Stored Procedure 建立基本的指令資訊類別 (DataAccessCommandInfo)'/><author><name>Lozen Lin</name><uri>http://www.blogger.com/profile/14618290772055469296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7ZA7-Ny7SlLSMnR8CXMxv_zMKaN7Dd76pB0R1pq4bH82zZU0buD0dLaXsl5QBfXEoDfFS519uMmhBoEHBXC5BUyZRb-PYp05iCZaEo7AoBg83YyHYmprtq1fdvx4VfxKaTPdojMJiDM8x/s72-c/VS+%25E6%258C%2591%25E9%2581%25B8+class.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9150254649529358766.post-721485883751937072</id><published>2018-04-13T20:32:00.000+08:00</published><updated>2018-05-08T16:53:09.706+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SampleCMS 說明"/><title type='text'>SampleCMS 資料層元件說明：指令執行者 DataAccessCommand 運作方式說明</title><content type='html'>在&lt;a href=&quot;http://lozenlin.blogspot.tw/2018/04/samplecms-dal-basic.html&quot; target=&quot;_blank&quot;&gt;前一篇&lt;/a&gt;提到＂將&lt;u&gt;指令資訊物件&lt;/u&gt; (cmdInfo) 丟給&lt;u&gt;指令執行者&lt;/u&gt; (cmd) 去執行取回填入資料的 DataSet，執行過程中&lt;u&gt;指令執行者&lt;/u&gt; (cmd) 會自動抓取&lt;u&gt;指令資訊物件&lt;/u&gt; (cmdInfo) 的成員變數，依照成員變數的名稱，將其值傳送給 SP 的同名參數＂，現在我們一起來看看&lt;u&gt;指令執行者&lt;/u&gt;是如何依照&lt;u&gt;指令資訊物件&lt;/u&gt;的描述去資料庫執行 Stored Procedure（以下簡稱 SP）。&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://lozenlin.blogspot.com/2018/04/samplecms-dataaccesscommand.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://lozenlin.blogspot.com/feeds/721485883751937072/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://lozenlin.blogspot.com/2018/04/samplecms-dataaccesscommand.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/721485883751937072'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/721485883751937072'/><link rel='alternate' type='text/html' href='http://lozenlin.blogspot.com/2018/04/samplecms-dataaccesscommand.html' title='SampleCMS 資料層元件說明：指令執行者 DataAccessCommand 運作方式說明'/><author><name>Lozen Lin</name><uri>http://www.blogger.com/profile/14618290772055469296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdtnA3INCxK9wnAv7DJx1scvalV1ZhnHbJ8yNnlC3LseIcCEzBRp2U5h5bsTSL8I8fWVOP3DDyAgiZsxEXifjpczh2ZMfQWLk7mcs6iEDjTN_JJdf2OOCIlmbx8TVnBLIJhwEvJPnUp7oA/s72-c/DataAccessCommand.ExecuteDataset+%25E6%25B4%25BB%25E5%258B%2595%25E5%259C%2596.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9150254649529358766.post-7485183404017503053</id><published>2018-04-12T22:45:00.001+08:00</published><updated>2018-05-08T16:52:41.339+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SampleCMS 說明"/><title type='text'>SampleCMS 資料層元件說明：基本的呼叫方式</title><content type='html'>SampleCMS 的資料存取幾乎都是透過事先寫好的 Stored Procedure（以下簡稱 SP）。&lt;br&gt;
（讀取資料用的 SP 名稱為 dbo.spTableName_GetData 或是 dbo.spTableName_GetList、&lt;br&gt;
　新增用的 SP 名稱為 dbo.spTableName_InsertData、&lt;br&gt;
　更新用的 SP 名稱為 dbo.spTableName_UpdateData、&lt;br&gt;
　刪除用的 SP 名稱為 dbo.spTableName_DeleteData）&lt;br&gt;
因此本系統的資料層元件是以執行 SP 做為主軸來設計，&lt;br&gt;
以下說明基本的呼叫方式，&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://lozenlin.blogspot.com/2018/04/samplecms-dal-basic.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://lozenlin.blogspot.com/feeds/7485183404017503053/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://lozenlin.blogspot.com/2018/04/samplecms-dal-basic.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/7485183404017503053'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/7485183404017503053'/><link rel='alternate' type='text/html' href='http://lozenlin.blogspot.com/2018/04/samplecms-dal-basic.html' title='SampleCMS 資料層元件說明：基本的呼叫方式'/><author><name>Lozen Lin</name><uri>http://www.blogger.com/profile/14618290772055469296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPMVlciCAojQ0S4YYOb5_erRlLIfv_BClqVoLjQQc4tTc4ce9t2O0h3Yx-GroiZwMKdxqouTO57RVeArgH8tS862gIJrK_y0vN2TtpjdVOkZgOUs7OrunZpte5a1RKrq3UV0ufxVIVQBCb/s72-c/SampleCMS+%25E8%25B3%2587%25E6%2596%2599%25E5%25B1%25A4%25E5%2585%2583%25E4%25BB%25B6%25E9%2597%259C%25E8%2581%25AF.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9150254649529358766.post-1319184605460323334</id><published>2018-04-12T16:41:00.001+08:00</published><updated>2018-04-17T15:38:11.421+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SampleCMS 說明"/><title type='text'>SampleCMS 系統資料表說明</title><content type='html'>SampleCMS 系統資料表，以功能區分為兩大類，「帳號與權限系統」與「網頁內容發佈系統」。&lt;br&gt;
以下說明，&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://lozenlin.blogspot.com/2018/04/samplecms-tables.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://lozenlin.blogspot.com/feeds/1319184605460323334/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://lozenlin.blogspot.com/2018/04/samplecms-tables.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/1319184605460323334'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/1319184605460323334'/><link rel='alternate' type='text/html' href='http://lozenlin.blogspot.com/2018/04/samplecms-tables.html' title='SampleCMS 系統資料表說明'/><author><name>Lozen Lin</name><uri>http://www.blogger.com/profile/14618290772055469296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiO2A4hqSCFr5UVJrDhJRuh2c_8yzhX0J8-QwLqcRG82DWxkgGwcGiMNrReYnmzx1gH43dFzBuedlkbjd0dqiUaZn-xYUUeL0n5sRxHAU08GHnolV4zLcdMlM700GjBWUSZlKVKiG9fI74t/s72-c/SampleCMS+EmpAuth+E-R+Model.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9150254649529358766.post-4725415915285452624</id><published>2018-04-12T14:37:00.002+08:00</published><updated>2018-04-13T21:17:40.519+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SampleCMS 說明"/><title type='text'>SampleCMS 系統組件關聯圖</title><content type='html'>SampleCMS 內容管理系統為三層式架構設計，以功能區分為兩大類，「帳號與權限系統」與「網頁內容發佈系統」。&lt;br&gt;
&lt;br&gt;
下圖為系統組件關聯圖，以下說明：
&lt;br&gt;
&lt;a href=&quot;http://lozenlin.blogspot.com/2018/04/samplecms-assemblies.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://lozenlin.blogspot.com/feeds/4725415915285452624/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://lozenlin.blogspot.com/2018/04/samplecms-assemblies.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/4725415915285452624'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/4725415915285452624'/><link rel='alternate' type='text/html' href='http://lozenlin.blogspot.com/2018/04/samplecms-assemblies.html' title='SampleCMS 系統組件關聯圖'/><author><name>Lozen Lin</name><uri>http://www.blogger.com/profile/14618290772055469296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHgm3w_hBMv-HbCWvYK-4sqGppz-8aS6y9XAn2EttOnzuQ3Grc9S3PZg8E9Sp2dn5CYbz4GPUb6cJjfFFDvMRXjalA-oklzP79132Th3O0c9LEwsALoNf6AP92sEqHvKARBpi8vvSHc-Ox/s72-c/SampleCMS+%25E7%25B5%2584%25E4%25BB%25B6%25E9%2597%259C%25E8%2581%25AF.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9150254649529358766.post-7602685623884279389</id><published>2018-04-12T14:34:00.001+08:00</published><updated>2021-11-17T20:47:17.984+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SampleCMS 說明"/><title type='text'>SampleCMS 系統設計說明：前言</title><content type='html'>SampleCMS 是一個基本款內容管理系統 (&lt;a href=&quot;https://samplecmsonazure.azurewebsites.net/Management/Login.aspx&quot; target=&quot;_blank&quot;&gt;Demo&lt;/a&gt;、&lt;a href=&quot;https://github.com/lozenlin/SampleCMS&quot; target=&quot;_blank&quot;&gt;Source&lt;/a&gt;)，是我在最近７年工作的過程中將各個前輩留下來的內容管理系統整理、歸納、簡化與重新設計後的結果。在此感謝先得利資訊讓我進入製作內容管理系統的領域，讓我能夠看到以及參與製作各式的內容管理系統；感謝叡揚資訊讓我有機會接觸與學習不同的系統架構設計方式，增加了我在物件導向程式設計的經驗。&lt;br&gt;
&lt;br&gt;
回題，&lt;br&gt;
SampleCMS 主要提供的功能如下：
&lt;br&gt;
&lt;a href=&quot;http://lozenlin.blogspot.com/2018/04/samplecms-preface.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://lozenlin.blogspot.com/feeds/7602685623884279389/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://lozenlin.blogspot.com/2018/04/samplecms-preface.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/7602685623884279389'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/7602685623884279389'/><link rel='alternate' type='text/html' href='http://lozenlin.blogspot.com/2018/04/samplecms-preface.html' title='SampleCMS 系統設計說明：前言'/><author><name>Lozen Lin</name><uri>http://www.blogger.com/profile/14618290772055469296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgp_S-wbBhucTTjJg9ogk4ea1vRBafwkvYMfuNCTtqarQxOp_moOHIwk-esirLqyghEJyNLJBCCf7C2blLrZ5RmOzyA2AZrhS4pWz6MFDtPXP0dC4PuKMXXWl4Dg1G1eHpIxVZIXmUSf6t3/s72-c/%25E7%25B6%25B2%25E7%25AB%2599%25E6%259E%25B6%25E6%25A7%258B.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9150254649529358766.post-276377091235029850</id><published>2018-04-12T14:23:00.000+08:00</published><updated>2018-05-10T22:27:25.343+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SampleCMS 說明"/><title type='text'>SampleCMS 系統設計說明：目錄</title><content type='html'>1. &lt;a href=&quot;http://lozenlin.blogspot.tw/2018/04/samplecms-preface.html&quot; id=&quot;c1&quot;&gt;前言&lt;/a&gt;&lt;br /&gt;
2. &lt;a href=&quot;http://lozenlin.blogspot.tw/2018/04/samplecms-assemblies.html&quot; id=&quot;c2&quot;&gt;系統組件關聯圖&lt;/a&gt;&lt;br /&gt;
3.&amp;nbsp;&lt;a href=&quot;http://lozenlin.blogspot.tw/2018/04/samplecms-tables.html&quot; id=&quot;c3&quot;&gt;系統資料表說明&lt;/a&gt;&lt;br /&gt;
4.&amp;nbsp;&lt;b&gt;資料層元件說明&lt;/b&gt;&lt;br /&gt;
4-1.&amp;nbsp;&lt;a href=&quot;http://lozenlin.blogspot.tw/2018/04/samplecms-dal-basic.html&quot; id=&quot;c4-1&quot;&gt;基本的呼叫方式&lt;/a&gt;&lt;br /&gt;
4-2.&amp;nbsp;&lt;a href=&quot;http://lozenlin.blogspot.tw/2018/04/samplecms-dataaccesscommand.html&quot; id=&quot;c4-2&quot;&gt;指令執行者 DataAccessCommand 運作方式說明&lt;/a&gt;&lt;br /&gt;
4-3.&amp;nbsp;&lt;a href=&quot;http://lozenlin.blogspot.tw/2018/04/samplecms-cmdInfo-basic.html&quot; id=&quot;c4-3&quot;&gt;依照 Stored Procedure 建立基本的指令資訊類別 (DataAccessCommandInfo)&lt;/a&gt;&lt;br /&gt;
4-4.&amp;nbsp;&lt;a href=&quot;http://lozenlin.blogspot.tw/2018/04/samplecms-cmdInfo-custom.html&quot; id=&quot;c4-4&quot;&gt;客製化指令資訊類別 (DataAccessCommandInfo)&lt;/a&gt;&lt;br /&gt;
5. &lt;b&gt;帳號與權限系統元件說明&lt;/b&gt;&lt;br /&gt;
5-1. &lt;a href=&quot;http://lozenlin.blogspot.tw/2018/04/samplecms-EmpAuth-rule.html&quot; id=&quot;c5-1&quot;&gt;帳號與權限規則說明&lt;/a&gt;&lt;br /&gt;
5-2.&amp;nbsp;&lt;a href=&quot;http://lozenlin.blogspot.tw/2018/04/samplecms-EmpAuth-basic.html&quot; id=&quot;c5-2&quot;&gt;元件提供的功能與使用方式&lt;/a&gt;&lt;br /&gt;
5-3. &lt;a href=&quot;http://lozenlin.blogspot.tw/2018/04/samplecms-EmpAuth-custom.html&quot; id=&quot;c5-3&quot;&gt;客製化權限判斷&lt;/a&gt;&lt;br /&gt;
6. &lt;b&gt;網頁內容發佈系統元件說明&lt;/b&gt;&lt;br /&gt;
6-1. &lt;a href=&quot;http://lozenlin.blogspot.tw/2018/04/samplecms-ArtPub-basic.html&quot; id=&quot;c6-1&quot;&gt;元件提供的功能與使用方式&lt;/a&gt;&lt;br /&gt;
6-2.&amp;nbsp;&lt;a href=&quot;http://lozenlin.blogspot.tw/2018/04/samplecms-ArtPub-auth.html&quot; id=&quot;c6-2&quot;&gt;自訂帳號授權結果&lt;/a&gt;&lt;br /&gt;
7. &lt;b&gt;網頁共用元件說明&lt;/b&gt;&lt;br /&gt;
7-1. &lt;a href=&quot;http://lozenlin.blogspot.tw/2018/04/samplecms-PageCommon-brief.html&quot; id=&quot;c7-1&quot;&gt;簡介&lt;/a&gt;&lt;br /&gt;
7-2. &lt;a href=&quot;http://lozenlin.blogspot.tw/2018/05/samplecms-PageCommon-BackStage.html&quot; id=&quot;c7-2&quot;&gt;後台相關元件分工說明&lt;/a&gt;&lt;br /&gt;
7-3.&amp;nbsp;&lt;a href=&quot;http://lozenlin.blogspot.tw/2018/05/samplecms-PageCommon-FrontStage.html&quot; id=&quot;c7-3&quot;&gt;前台相關元件分工說明&lt;/a&gt;&lt;br /&gt;
8.&amp;nbsp;&lt;a href=&quot;http://lozenlin.blogspot.tw/2018/05/samplecms-Preview-Auth.html&quot; id=&quot;c8&quot;&gt;前台網頁預覽功能驗證方式說明&lt;/a&gt;&lt;br /&gt;
9.&amp;nbsp;&lt;b&gt;附件管理共用元件說明&lt;/b&gt;&lt;br /&gt;
9-1. &lt;a href=&quot;http://lozenlin.blogspot.tw/2018/05/samplecms-att-brief.html&quot; id=&quot;c9-1&quot;&gt;附件管理功能概述&lt;/a&gt;&lt;br /&gt;
9-2.&amp;nbsp;&lt;a href=&quot;http://lozenlin.blogspot.tw/2018/05/samplecms-att-attFileMgr.html&quot; id=&quot;c9-2&quot;&gt;附件管理共用元件 AttachFileManagerLogic 使用方式&lt;/a&gt;&lt;br /&gt;
9-3.&amp;nbsp;&lt;a href=&quot;http://lozenlin.blogspot.tw/2018/05/samplecms-attdownloadcommon.html&quot; id=&quot;c9-3&quot;&gt;附件下載共用元件 AttDownloadCommon 使用方式&lt;/a&gt;&lt;br /&gt;
10.&amp;nbsp;&lt;a href=&quot;http://lozenlin.blogspot.tw/2018/05/samplecms-ParamFilter.html&quot; id=&quot;c10&quot;&gt;參數過濾元件說明&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://lozenlin.blogspot.com/feeds/276377091235029850/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://lozenlin.blogspot.com/2018/04/samplecms-toc.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/276377091235029850'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/276377091235029850'/><link rel='alternate' type='text/html' href='http://lozenlin.blogspot.com/2018/04/samplecms-toc.html' title='SampleCMS 系統設計說明：目錄'/><author><name>Lozen Lin</name><uri>http://www.blogger.com/profile/14618290772055469296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9150254649529358766.post-3435295621218722</id><published>2018-03-06T20:33:00.002+08:00</published><updated>2018-03-24T12:04:09.869+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Entity Framework"/><category scheme="http://www.blogger.com/atom/ns#" term="SampleEFCMS"/><category scheme="http://www.blogger.com/atom/ns#" term="個人作品"/><title type='text'>個人作品：把 SampleCMS 資料層改寫為使用 Entity Framework 6 的另一個網站 SampleEFCMS (2018-03-24 更新)</title><content type='html'>說起來，在 2011 年左右，我對 Entity Framework 就很好奇，只是當時工作上沒機會接觸，下班後所剩的時間也不多，都先花在更需要用在工作的其他技術上。7 年後的現在，趁著待業中的這段空閒時期，趁著剛完成 SampleCMS 的這股衝勁，終於開始真正的去學習與使用 Entity Framework (Database First)。&lt;br&gt;
&lt;br&gt;
SampleCMS 資料層是以 Stored Procedure（以下簡稱 SP） 為基礎，算一下大大小小共寫了 105 個 SP，單純的複雜的都有。SampleEFCMS 將其中的 103 個都改為用 LINQ to Entities 的方式達成相同功能。幸運的是，比較進階的坑有踩到幾個（e.g., OrderBy 的欄位名稱需要用字串動態更換、where 的 or 條件需要動態串接），卡關的同時也在網路上找到高手寫的 LINQ 擴充函式，覺得不虛此行。&lt;br&gt;
&lt;br&gt;
以下為 SampleEFCMS 相關連結：&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://lozenlin.blogspot.com/2018/03/samplecms-entity-framework-6-sampleefcms.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://lozenlin.blogspot.com/feeds/3435295621218722/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://lozenlin.blogspot.com/2018/03/samplecms-entity-framework-6-sampleefcms.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/3435295621218722'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/3435295621218722'/><link rel='alternate' type='text/html' href='http://lozenlin.blogspot.com/2018/03/samplecms-entity-framework-6-sampleefcms.html' title='個人作品：把 SampleCMS 資料層改寫為使用 Entity Framework 6 的另一個網站 SampleEFCMS (2018-03-24 更新)'/><author><name>Lozen Lin</name><uri>http://www.blogger.com/profile/14618290772055469296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9150254649529358766.post-1421864908071531733</id><published>2018-02-02T23:17:00.000+08:00</published><updated>2018-05-15T22:32:06.912+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SampleCMS"/><category scheme="http://www.blogger.com/atom/ns#" term="個人作品"/><title type='text'>個人作品：基本款內容管理系統 SampleCMS 開放測試網 (2018-05-15 更新)</title><content type='html'>續 &lt;a href=&quot;http://lozenlin.blogspot.tw/2018/01/352-hours-3.html&quot; target=&quot;_blank&quot;&gt;上篇&lt;/a&gt;&lt;br&gt;
距離上次曬完圖又過了兩個星期，我在這個系統加上了針對弱點掃描軟體所做的參數過濾機制，後台登入頁加了 &amp;quot;變更密碼、忘記密碼&amp;quot;，另外也對前台做了初步的壓力測試並調整不足的地方。最後加入 guest 試用帳號相關功能並且試著把系統放上 Azure，目前結果看來還算可以，以下放上相關連結：&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://lozenlin.blogspot.com/2018/02/samplecms.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://lozenlin.blogspot.com/feeds/1421864908071531733/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://lozenlin.blogspot.com/2018/02/samplecms.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/1421864908071531733'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9150254649529358766/posts/default/1421864908071531733'/><link rel='alternate' type='text/html' href='http://lozenlin.blogspot.com/2018/02/samplecms.html' title='個人作品：基本款內容管理系統 SampleCMS 開放測試網 (2018-05-15 更新)'/><author><name>Lozen Lin</name><uri>http://www.blogger.com/profile/14618290772055469296</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>