Git Product home page Git Product logo

homework's Introduction

Homework

第二周作業:

  • 如果可以的話,透過 JavaScript 實作一些 AJAX 操作,後端 MVC 使用 JsonResult 進行回應
  • 使用 NPOI 這個 NuGet 套件實作資料匯出功能,每個清單頁上都要有可以匯出 Excel 檔案的功能,要用到 FileResult 下載檔案
  • 實作在「客戶資料」的詳細資料頁面,加上「客戶聯絡人」清單,並且可以讓客戶聯絡人清單支援「批次更新」功能,可批次修改「職稱、手機、電話」這三個欄位,其他欄位不允許修改
  • 在特定幾個可能發生例外的頁面,特別套用 [HandleError] 屬性,針對特定例外給予不同的自訂錯誤頁面,自訂錯誤頁面要能看出發生例外的實際原因
  • 自訂一個動作過濾器,可以記錄每個 Action 與 ActionResult 執行的時間,資料可以輸出到 Debug 輸出視窗
  • 套用任意一個現成的網頁版面,可下載免費版面,或使用我在課堂上給你們的版面進行套版
  • 網頁版面必須要有主選單(menu)、每頁都不同的導覽路標(breadcrumb)、需用到 @section

注意事項:

  1. 請在你的 GitHub 建立一個獨立專案,並將本次作業上傳到 GitHub,並提交 GitHub 專案網址回來。
  2. 請到【課程進度實作回報】表單回報作業 (42【第二周作業回報】),並回報 GitHub 專案網址。
  3. 請勿將資料庫加入版控,以免版控發生問題 (因為資料庫檔會被VS鎖定)
  4. 做不出來沒關係,請在回報進度時寫上你哪幾個功能無法完成,或實作時發生的疑問!

  • 延續上周作業加以延伸開發
  • 改用 Repository Pattern 管理所有新刪查改(CRUD)等功能
  • 修改所有的「刪除」邏輯,所有資料都不能真正被刪除,資料庫中也要新增「是否已刪除」欄位 (欄位要設定 bit 型態)
  • 修改「客戶資料」表格,新增「客戶分類」欄位,可設定特定選項的分類
  • 在「客戶資料列表」頁面新增篩選功能,可以用「客戶分類」欄位進行資料篩選 (下拉選單)
  • 資料篩選的邏輯要寫在 Repository 的類別裡面
  • 在「客戶聯絡人列表」頁面新增篩選功能,可以用「職稱」欄位進行資料篩選
  • 實作客戶登入機制,要在「客戶資料」表格加上【帳號】、【密碼】欄位,密碼欄位須加密或做雜湊處裡(Hash)
  • 客戶登入後只有一個【修改客戶資料】功能,但只能修改【密碼、電話、傳真、地址、Email】等欄位,其他欄位不能被修改或更新。
  • 修改「客戶資料列表」與「客戶聯絡人列表」頁面,設定讓每個欄位都能進行排序 (可升冪、可降冪排序)
  • 請使用 PagedList.Mvc 這個 NuGet 套件實作列表頁的分頁功能

homework's People

Contributors

qvicky avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.