首先在EEP中使用Wizard產生一個客戶表的Server端(Model),sCustomers為模組名稱(會被Build成sCustomers.dll),這個商業邏輯會自動存取Customers客戶表與下達Insert/Delete/Update的指令。
Step1>
首先我們要在EEPManager的Data Dictionary中設置欄位名稱,打開Data Dictionary。

Step2>
點擊add,打開DDSelect,並選擇Customers。


Step3>
然後編輯Caption中的文字,以及ControlType,然後保存。之後使用Wizard的時候,均會帶出已設置的Caption。

Step4>
點擊工具,打開EEP Wizard,選擇Server Package Wizard:

Step5>
Package Name設置為sCustomers,Code Output Path選擇C:\EEP2015\Solution1,Assembly Output Path選擇相對目錄下的EEPNetServer\Solution1:

Step6>
點擊左側的Add按鈕:

Step7>
Select Table中選擇Customers:

Step8>
右側Fields中會顯示Customers下所有的欄位,不需要的欄位可以Delete,最後按Done按鈕產生後端程式,此處的Description即為前面DD的設置的Caption。

Step9>
後端程式產生完之後,點擊建置,建置成sCustomers.dll。


Step10>
然後在EEPNetServer中掛上sCustomers.dll

Step11>
使用Wizard產生一個客戶表的Client端。 選擇JQ Mobile Form:

Step12>
Add To New Folder:新建一個目錄MobileClient

Step13>
Template處選中JQMobileSingle1。mCustomers為模組名稱。
-
Step14>
選擇sCustomers作為Server端。

Step15>
全選需要的欄位,這裡的Description就是剛剛DD中設置的Caption。

Step16>
mCustomers完成後的設計畫面。

Step17>
EEPManager中,選擇Menu Utility頁簽,新增一筆,ModuleType設置為JQueryMobileForm,點開Package選擇對應目錄下的mCustomers。

Step18>
點擊剛剛新增的Customers,按一下Access Groups設置許可權,這裡許可權設置為EveryOne。

Step19>
然後打開網站,打開mCustomers即可看到客戶介面。

Related Topics