摘要: // ok Ext.MessageBox.msgButtons[0].setText('OK'); //yes Ext.MessageBox.msgButtons[1].setText('YES'); // no Ex... 阅读全文
posted @ 2011-12-28 14:05 孙金棚 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 20个代码生成框架1.1 CodeSmith一款人气很旺国外的基于模板的dotnet代码生成器官方网站:http://www.codesmithtools.com官方论坛:http://forum.codesmithtools.com/default.aspx版权形式:30天试用开源:否需要先注册确认后才能下载1.2 MyGeneratorMyGenerator是又一个国外很不错的代码生成工具,有人觉得比CodeSmith简单、好用。所有api可以在帮助菜单中找到。官方网站:http://www.mygenerationsoftware.com/portal/default.aspx官方论坛: 阅读全文
posted @ 2011-12-22 17:54 孙金棚 阅读(575) 评论(0) 推荐(0) 编辑
摘要: TreeView使用调用1 var tree = new OpenWindowMaterialMessage();2 tree.setIds("MaterialInsert_MaterialMessageIds_new");弹出treeWindow 1 function OpenWindowMaterialMessage() { 2 this.url = "XXXX.aspx"; 3 var Ts = this; 4 Ext.define('Message', { 5 extend: 'Ext.data.Model',.. 阅读全文
posted @ 2011-12-21 15:32 孙金棚 阅读(4220) 评论(1) 推荐(0) 编辑
摘要: 1、card 1 var navigate = function (panel, direction) { 2 var layout = panel.getLayout(); 3 layout[direction](); 4 Ext.getCmp('move-prev').setDisabled(!layout.getPrev()); 5 Ext.getCmp('move-next').setDisabled(!layout.getNext()... 阅读全文
posted @ 2011-12-16 10:33 孙金棚 阅读(24865) 评论(2) 推荐(0) 编辑
摘要: 1.最简单的提示[html]<div id="tip1" class="TipDiv">普通提示</div>[js]1 Ext.create('Ext.tip.ToolTip', {2 target: 'tip1',3 html: '最简单的提示'4 });2.可关闭的提示[html]1 <div id="tip2" class="TipDiv">不自动隐藏</div>[js]1 Ext.create('Ext. 阅读全文
posted @ 2011-12-16 09:14 孙金棚 阅读(7436) 评论(2) 推荐(0) 编辑
摘要: function IndexMagInfoFun(Url, width, height, title, Value) { var IndexMagInfoWin = Ext.create('Ext.window.Window', { layout: 'fit', title: title, width: width, height: height, modal: true, plain: true, y: 10, ... 阅读全文
posted @ 2011-12-14 14:12 孙金棚 阅读(2534) 评论(0) 推荐(0) 编辑
摘要: C 语言学习Linux C 编程一站式学习http://learn.akae.cn/media/Learning GNU Chttp://www.faqs.org/docs/learnc/C 编程入门http://www.bianceng.cn/C 语言论坛http://bbs.bccn.net/forum-5-1.htmlC++学习网站C/C++ Referencehttp://www.cppreference.com/C++ Library Referencehttp://www.cplusplus.com/ref/C++ Language Tutorialhttp://www.cplus 阅读全文
posted @ 2011-12-13 13:05 孙金棚 阅读(332) 评论(0) 推荐(1) 编辑
摘要: Ext.get("button1").on("click", function () { Ext.Ajax.request({ url: "Ajax_FileUp", isUpload: true, form: "form1", success: function (response) { Ext.MessageBox.alert("上传成功,文本文件内容:", response.responseText); } });});上传文件不需要form.submit 也可以上传! 阅读全文
posted @ 2011-12-13 11:18 孙金棚 阅读(352) 评论(0) 推荐(1) 编辑
摘要: View Code 1 this.AddGridColumns = [ 2 { text: "产品Id", width: 150, dataIndex: 'MaterialId', sortable: false, hidden: true }, 3 { text: "产品名称", flex: 1, dataIndex: "MaterialName", sortable: false }, 4 { text: "数量(千克)", width: 150, sortable: false, dataIn 阅读全文
posted @ 2011-12-12 13:35 孙金棚 阅读(1032) 评论(0) 推荐(0) 编辑