ER Introduction
  liyubei@baidu.com
What's ER?
ER(Enterprise RIA) Framework是一个富浏览器端web应用
的框架,适用于并能很方便地构建一个整站式的AJAX web应
用。

总体来说,主要由两部分组成:
1. Framework(编程约定)
2. ESUI(一个简单的UI库)

                            -- ER is short for erik, he is the creator of this framework.
演变历史
哥伦布改版




   ER      github.com/erik168




  DAN         北斗                CRM   ...




锦囊 + 产品库
ER Application Architecture
                                                                 Application


   Action(1)   Action(2)        ...            Action(N)




                                                                 ER Framework



                                                       ESUI

     Locator       Controller         Action

                                                       Tangram
Basic Concept
1. Locator
2. Controller
3. Action
   a. ui.Page
   b. View
   c. Model
4. ui.Control
   a.   ui.Button
   b.   ui.TextInput
   c.   ui.Calendar
   d.   ...
Workflow

                             Action



                        Fetch Data      Server

 Locator   Controller
                        UI Initialize




                        Render
ESUI
                               ui.Control




      ui.InputControl       ui.Button       ui.RadioBox   ...




ui.TextInput    ui.Select           ui.Calendar    ...




                                                          ShowCase>>
Demonstration
1. Demo1
   -- 最简单的一个应用
2. Demo2
   -- 如何使用控件
3. Demo3
   -- 如何跟后端交互
4. Demo4
   -- 如何使用控件跟后端交互
Demo1
1. based on adcoup_2-0-0_BRANCH
2. Fer.py --gen_app --name com.baidu.sdc.
   Demo1
3. ant deps
4. http://leeight.baidu.com:8080/src/com/baidu/sdc/demo1.
   app.html#/com/baidu/sdc/demo1
Demo2
1. Fer.py --gen_app --name com.baidu.sdc.
     Demo2
2.   Modify src/com/baidu/sdc/demo2.html
     <div ui="type:Button;id:btn">BUTTON.
     </div><br/>
     <input type="text" ui="type:TextInput;id:
     name" />
3. ant deps
4. http://leeight.baidu.com:8080/src/com/baidu/sdc/demo1.
     app.html#/com/baidu/sdc/demo1
Demo3
1. Modify src/com/baidu/sdc/demo3.js

baidu.ajax.get('/com/baidu/sdc/demo3',
function(xhr){
    alert(xhr.responseText);
    callback();
});

<input type="text" ui="type:TextInput;id:
abc;rule:required;rule:min,10;rule:max,100"
/>
Demo4




com.baidu.sdc.Demo4.prototype.
initModel = function(argMap,
callback) {
    ....
}
Thanks

More Related Content

PDF
live coding 賴群猜謎小遊戲
PPT
Blog Backup
PPTX
13 Inspiring Quotes about Design
PPT
Android应用开发 - 沈大海
PPTX
Azure Functions
PPTX
Visual studio 2012 與 asp.net 4.5 (新功能與開發介紹) 第一天
PDF
twMVC#23 | 快速上手 Azure Functions
PPT
网易移动自动化测试实践(孔庆云)
live coding 賴群猜謎小遊戲
Blog Backup
13 Inspiring Quotes about Design
Android应用开发 - 沈大海
Azure Functions
Visual studio 2012 與 asp.net 4.5 (新功能與開發介紹) 第一天
twMVC#23 | 快速上手 Azure Functions
网易移动自动化测试实践(孔庆云)

Similar to Er introduction (20)

PDF
I os 16
PDF
Struts+Spring+Hibernate整合教程
PDF
Struts+Spring+Hibernate整合教程
PDF
Kissy editor开发与设计
PPTX
张所勇:前端开发工具推荐
PDF
Asp.net mvc網站的從無到有
PDF
HTML+COIMOTION 開發跨平台 app
PDF
PPT
通行证项目技术分享
PPTX
Note app功能介紹
PPT
敦群學院-SharePoint精英計畫-系統開發-Day 3
PPTX
常用开发工具介绍
PDF
自动化运维管理
KEY
Flex 4.5 action custom component development
PDF
以HTML5和COIMOTION打造跨平台App
PDF
安博士Asec 2010年7月安全报告
PDF
Clipper@datacon.2019.tw
PDF
I os 07
PPTX
容器驅動開發 - .NET Conf 2017 @ 台中
PDF
App企劃設計 3
I os 16
Struts+Spring+Hibernate整合教程
Struts+Spring+Hibernate整合教程
Kissy editor开发与设计
张所勇:前端开发工具推荐
Asp.net mvc網站的從無到有
HTML+COIMOTION 開發跨平台 app
通行证项目技术分享
Note app功能介紹
敦群學院-SharePoint精英計畫-系統開發-Day 3
常用开发工具介绍
自动化运维管理
Flex 4.5 action custom component development
以HTML5和COIMOTION打造跨平台App
安博士Asec 2010年7月安全报告
Clipper@datacon.2019.tw
I os 07
容器驅動開發 - .NET Conf 2017 @ 台中
App企劃設計 3
Ad

Er introduction