James's profileJames の BlogPhotosBlogListsMore ![]() | Help |
|
|
3/19/2008 extjs: Grid paging & Asp.Net 資料分頁技術花了兩天的時間,找了資料分頁的相關技術資料 當DataGrid遇見100萬筆資料 在進入程式說明之前,我們先來看一下整體運作的架構 由於之前提到我們是以 JsonStore 來擷取後端資料並以Json String的方式傳輸到前端 資料分頁的部份,除了前端操作介面傳遞 Page Number 與 Page Size 外 依據這樣的架構,我們就可以很簡單的享有資料分頁的功能 接下來我們進入程式說明的部份 qryMasterPage.master
po_finished.aspx
pgfinished.js
在 pgfinished.js 裡面由上到下,我們先定義一個 Ext.data.JsonStore 將 qryfinished2.aspx 中所傳回的 Json String 在 Form Panel 上我們定義了一個 Field Set 以及一個 Grid Panel,在 Grid Panel 中我們將 data store 指向我們剛定義的 Define 完 UI 部份,我們將 Form Panel render 在 qryMasterPage.master 中的 <DIV> tag "form-ct" 由於我們要做分頁,所以必須將參數傳遞給 store 中 define 的 url qryfinished2.aspx
qryfinished2.vb
接下來我們來看 qryfinished.asmx的程式
最後我們再說明一下 SQL Server 2000 中如何透過 T-SQ來達到資料分頁的作法
完成圖 程式碼 1/18/2008 尾牙賓果券程式又是年終尾牙歡樂的時刻 用什麼寫呢? 當然是 Excel 囉 直接利用它的 CELL 當作賓果券的格子再適當也不過 公司這次希望每一個人有六個賓果遊戲券,每一個賓果券有 7 X 7 49 個號碼 依照此需求我們先在 Excel VBA 中定義所需常數
有此定義後,開始撰寫主程式
引用Function
執行時,請記得將VBA安全性調到中度安全性,並且要啟用巨集 按產生賓果券,開始執行 大功告成,不過因為是一個Sheet一個Sheet產生,可能要注意Excel記憶體的問題(還沒正式測啦) 5/26/2005 Code Template v1.0.0Code Template v1.0.0
Author James Jan (jamesjantw@gmail.com)
Description Write any text you want to reuse into a template file. Using this program you can read template file into the clipboard, and then you can press CTRL+V to paste it into any editor and any position you want.
System Requirement Operation Systems: Windows series Hardware: Any platform that runs Microsoft Windows
Installation 1. Unpack the CodeTemplate.rar into your Hard Disk. 2. Double Click on the setup.exe in your extracting folder to run installation process. 3. Put your template files into the installation subfolder “Template”. 4. Run CodeTemplate and enjoy it. Click the following URL to get it, check it out! http://us.f2.yahoofs.com/bc/429451a6_17f6/bc/VB/Code+Template+v1.0.0.rar?bfp.TlCBMyAzGNqg |
|
|