惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
V
Visual Studio Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
L
LangChain Blog
Engineering at Meta
Engineering at Meta
F
Fortinet All Blogs
N
Netflix TechBlog - Medium
M
MIT News - Artificial intelligence
IT之家
IT之家
The Register - Security
The Register - Security
月光博客
月光博客
Hugging Face - Blog
Hugging Face - Blog
The GitHub Blog
The GitHub Blog
博客园 - 聂微东
云风的 BLOG
云风的 BLOG
Microsoft Security Blog
Microsoft Security Blog
腾讯CDC
W
WeLiveSecurity
博客园_首页
A
About on SuperTechFans
G
Google Developers Blog
博客园 - 叶小钗
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
量子位
Google DeepMind News
Google DeepMind News
博客园 - 【当耐特】
aimingoo的专栏
aimingoo的专栏
Application and Cybersecurity Blog
Application and Cybersecurity Blog
博客园 - 三生石上(FineUI控件)
N
News | PayPal Newsroom
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
AI
AI
TaoSecurity Blog
TaoSecurity Blog
P
Proofpoint News Feed
Attack and Defense Labs
Attack and Defense Labs
S
Secure Thoughts
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
博客园 - 司徒正美
www.infosecurity-magazine.com
www.infosecurity-magazine.com
J
Java Code Geeks
Hacker News - Newest:
Hacker News - Newest: "LLM"
爱范儿
爱范儿
S
SegmentFault 最新的问题
Martin Fowler
Martin Fowler
Vercel News
Vercel News
Schneier on Security
Schneier on Security
Know Your Adversary
Know Your Adversary
H
Heimdal Security Blog
N
News and Events Feed by Topic

博客园 - 成为-行动-拥有(BeDoHave)

我的MIS快速开发框架集成参考 选择一个框架的权衡建议 简单为美的IT开发尝试 请跟我来(完)--使用Ext及其llano的注意事项 请跟我来--使用Ext+llano快速搞定CRUD 请跟我来--Ext数据应用开发的几板斧 请跟我来--使用Ext搞个原型 请跟我来(EXT2.0+llano实践) 用NBear和QPG分布式框架改善生活 - 成为-行动-拥有(BeDoHave) - 博客园 风继续吹----对一些ORM框架的使用心得(2) 冷眼程序人生----对一些ORM框架的使用心得 欢迎新成员加入! QPG分布框架1.1.1 需求看板单机版可以使用了 QPG加速器的使用 QPG分布框架V1.1 BETA2说明 是"渔"非"鱼"--QPG分布处理框架V1.1(Beta1)简介 实践篇(4)—需求看板解析 实践篇(3)--关于事务处理的一点细节
2007年的最后的几笔
成为-行动-拥有(BeDoHave) · 2007-12-27 · via 博客园 - 成为-行动-拥有(BeDoHave)

很长时间没有来园子里逛了!
园子里.NET的技术文章依然是那么热闹,看来微软的技术确实给我们的生活增添了不少乐趣。由于过去的一年里一直为公司整合Java的Web开发框架,所以一直没有动手写下感想。前两个月把那个框架移植到.NET上了。本来希望用NBear4的,不过好像Teddy一直忙,所以暂时用了Castle的ActiveRecord作为后台,前台则选用了有点感觉的EXT2.0,感觉dojo简直象玩具,所以没有选择。新的集成框架我叫它llano(大草原),希望能让更多的朋友享受自由奔跑的感觉,开年后我慢慢给大家介绍使用llano如何快速写出相当简洁的代码,下面用一个简单的会员管理界面让大家先感受一下:
界面:

后台服务测试代码:

 [Test]
        
public void TC02_Query()
        
{
            IMemberMgr service 
= (IMemberMgr)container["serviceMember"];
            NameValueCollection ns 
= new NameValueCollection();

            ns.Clear();
            ns.Add(
"s_method""list");
            ns.Add(
"query""GradYear=2007");
            Console.WriteLine(service.Execute(ns));


            ns.Clear();
            ns.Add(
"s_method""list");
            ns.Add(
"query""679");
            Console.WriteLine(service.Execute(ns));

            ns.Clear();
            ns.Add(
"s_method""list");
            ns.Add(
"start""0");
            ns.Add(
"limit""3");
            Console.WriteLine(service.Execute(ns));
        }


        [Test]
        
public void TC03_Execute()
        
{
            IMemberMgr service 
= (IMemberMgr)container["serviceMember"];
            NameValueCollection ns 
= new NameValueCollection();
            
string data = "{\"Name\":\"demo\",\"Mobile\":\"13922666720\",\"Email\":\"lsj@21cn.com\",\"GradYear\":2007,\"Score\":0}";
            ns.Clear();
            ns.Add(
"s_method""save");
            ns.Add(
"id""");
            ns.Add(
"data", data);
            Console.WriteLine(service.Execute(ns));


            ns.Clear();
            ns.Add(
"s_method""delete");
            ns.Add(
"id", service.GetEntityDao().Load("Name='demo'"null)[0].id);
            Console.WriteLine(service.Execute(ns));

        }

前台Exj js:

Ext.onReady(
  
function(){
    Ext.BLANK_IMAGE_URL
="http://www.cnblogs.com/resources/default/s.gif";
    Ext.QuickTips.init();
    
var member_meta_def ='id',
    
{fieldLabel:'姓名',name: 'Name',type: 'string',allowBlank: false,minLength:3,maxLength:8,anchor:'90%',width:50},
    
{fieldLabel:'邮件',name: 'Email',type: 'string',anchor:'90%',width:80}
    
{fieldLabel:'手机',name: 'Mobile',type: 'string',anchor:'90%',width:80}
    
{fieldLabel:'毕业年份',name: 'GradYear',type: 'int',anchor:'90%',width:20},  
    
{fieldLabel:'登记日期',name: 'sCreatedDate', type: 'date',dateFormat: 'Y-m-d H:i:s', anchor:'60%',width:30}
  ];
  
 
var member_meta_rec= Ext.data.Record.create(member_meta_def);
var new_member=new member_meta_rec({
  Name: 
'?',Email: '?',Mobile: '13600000000',GradYear:2008,
  sCreatedDate: 
new Date()}
); 
  
    CRUD(
{entityName:'member',showEditBox:true,
      list_id:
'list1',edit_id:'edit1',list_title:'list',edit_title:'edit',list_width:800,list_height:400,editt_width:300,
      confirmShowColumName:
'Name',
      meta:member_meta_def,facade:
'facade.aspx',sortFld:'Name',sortDir:'ASC',
      new_record:new_member}
);
  }

);

希望年底每个辛苦的程序员都有好收成!
2008年见!
--再次感谢dudu为我找回了密码:-)