Click here to Skip to main content
15,892,072 members
Articles / Web Development / ASP.NET

Monorail Hands-On

Rate me:
Please Sign up or sign in to vote.
4.78/5 (15 votes)
19 Feb 2008CPOL9 min read 71.3K   1.1K   40  
In this article, I will present a sample application using the Monorail framework and provide the basic concepts of the design pattern known as MVC.
/*
 * Ext JS Library 1.0.1
 * Copyright(c) 2006-2007, Ext JS, LLC.
 * licensing@extjs.com
 * 
 * http://www.extjs.com/license
 */

Ext.UpdateManager.defaults.indicatorText="<div class=\"loading-indicator\">Bet\xc3\xb6lt\xc3\xa9s...</div>";if(Ext.View){Ext.View.prototype.emptyText="";}if(Ext.grid.Grid){Ext.grid.Grid.prototype.ddText="{0} kiv\xc3\xa1lasztott sor";}if(Ext.TabPanelItem){Ext.TabPanelItem.prototype.closeText="F\xc3\xbcl bez\xc3\xa1r\xc3\xa1sa";}if(Ext.form.Field){Ext.form.Field.prototype.invalidText="A mez\xc5\u2018 tartalma \xc3\xa9rv\xc3\xa9nytelen";}Date.monthNames=["Janu\xc3\xa1r","Febru\xc3\xa1r","M\xc3\xa1rcius","\xc3\ufffdprilis","M\xc3\xa1jus","J\xc3\xbanius","J\xc3\xbalius","Augusztus","Szeptember","Okt\xc3\xb3ber","November","December"];Date.dayNames=["Vas\xc3\xa1rnap","H\xc3\xa9tf\xc5\u2018","Kedd","Szerda","Cs\xc3\xbct\xc3\xb6rt\xc3\xb6k","P\xc3\xa9ntek","Szombat"];if(Ext.MessageBox){Ext.MessageBox.buttonText={ok:"OK",cancel:"M\xc3\xa9gsem",yes:"Igen",no:"Nem"};}if(Ext.util.Format){Ext.util.Format.date=function(v,_2){if(!v){return "";}if(!(v instanceof Date)){v=new Date(Date.parse(v));}return v.dateFormat(_2||"y.m.d");};}if(Ext.DatePicker){Ext.apply(Ext.DatePicker.prototype,{todayText:"Ma",minText:"Ez a d\xc3\xa1tum kor\xc3\xa1bbi a megengedettn\xc3\xa9l",maxText:"Ez a d\xc3\xa1tum k\xc3\xa9s\xc5\u2018bbi a megengedettn\xc3\xa9l",disabledDaysText:"",disabledDatesText:"",monthNames:Date.monthNames,dayNames:Date.dayNames,nextText:"K\xc3\xb6vetkez\xc5\u2018 h\xc3\xb3nap (Control+Jobbra)",prevText:"El\xc5\u2018z\xc5\u2018 h\xc3\xb3nap (Control+Balra)",monthYearText:"H\xc3\xb3na\xc5\u2018v\xc3\xa1laszt\xc3\xa1s (Control+Fel/Le: \xc3\xa9v v\xc3\xa1laszt\xc3\xa1s)",todayTip:"{0} (Sz\xc3\xb3k\xc3\xb6z)",format:"y.m.d",startDay:1});}if(Ext.PagingToolbar){Ext.apply(Ext.PagingToolbar.prototype,{beforePageText:"Oldal",afterPageText:"a {0}-b\xc3\xb3l/b\xc5\u2018l",firstText:"Els\xc5\u2018 oldal",prevText:"El\xc5\u2018z\xc5\u2018 oldal",nextText:"K\xc3\xb6vetkez\xc5\u2018",lastText:"Utols\xc3\xb3 oldal",refreshText:"Friss\xc3t",displayMsg:"{0} - {1} a {2}-b\xc3\xb3l/b\xc5\u2018l",emptyMsg:"Nincs megjelen\xc3thet\xc5\u2018 adat"});}if(Ext.form.TextField){Ext.apply(Ext.form.TextField.prototype,{minLengthText:"A mez\xc5\u2018 hossza minimum {0}",maxLengthText:"A mez\xc5\u2018 hossza maximum {0}",blankText:"K\xc3\xb6telez\xc5\u2018 mez\xc5\u2018",regexText:"",emptyText:null});}if(Ext.form.NumberField){Ext.apply(Ext.form.NumberField.prototype,{minText:"A mez\xc5\u2018 minimum \xc3\xa9rt\xc3\xa9ke {0} lehet",maxText:"A mez\xc5\u2018 maximum \xc3\xa9rt\xc3\xa9ke {0} lehet",nanText:"{0} nem \xc3\xa9rtelmezhet\xc5\u2018 sz\xc3\xa1mk\xc3\xa9nt"});}if(Ext.form.DateField){Ext.apply(Ext.form.DateField.prototype,{disabledDaysText:"Letiltva",disabledDatesText:"Letiltva",minText:"A d\xc3\xa1tum k\xc3\xa9s\xc5\u2018bbi kell legyen {0}-n\xc3\xa1l/n\xc3\xa9l",maxText:"A d\xc3\xa1tum kor\xc3\xa1bbi kell legyen {0}-n\xc3\xa1l/n\xc3\xa9l",invalidText:"{0} nem val\xc3\xb3di d\xc3\xa1tum - a mez\xc5\u2018 form\xc3\xa1tuma: {1}",format:"y.m.d"});}if(Ext.form.ComboBox){Ext.apply(Ext.form.ComboBox.prototype,{loadingText:"Bet\xc3\xb6lt\xc3\xa9s...",valueNotFoundText:undefined});}if(Ext.form.VTypes){Ext.apply(Ext.form.VTypes,{emailText:"A mez\xc5\u2018 tartalma e-mail c\xc3m lehet, form\xc3\xa1tum: \"user@domain.com\"",urlText:"A mez\xc5\u2018 tartalma webc\xc3m lehet, form\xc3\xa1tum: \"http:/"+"/www.domain.com\"",alphaText:"A mez\xc5\u2018 csak bet\xc5\xb1ket (a-z) \xc3\xa9s al\xc3\xa1h\xc3\xbaz\xc3\xa1s (_) karaktert tartalmazhat.",alphanumText:"A mez\xc5\u2018 csak bet\xc5\xb1ket (a-z), sz\xc3\xa1mokat (0-9) \xc3\xa9s al\xc3\xa1h\xc3\xbaz\xc3\xa1s (_) karaktert tartalmazhat"});}if(Ext.grid.GridView){Ext.apply(Ext.grid.GridView.prototype,{sortAscText:"N\xc3\xb6vekv\xc5\u2018 rendez\xc3\xa9s",sortDescText:"Cs\xc3\xb6kken\xc5\u2018 rendez\xc3\xa9s",lockText:"Oszlop lez\xc3\xa1r\xc3\xa1s",unlockText:"Oszlop felenged\xc3\xa9s",columnsText:"Oszlopok"});}if(Ext.grid.PropertyColumnModel){Ext.apply(Ext.grid.PropertyColumnModel.prototype,{nameText:"N\xc3\xa9v",valueText:"\xc3\u2030rt\xc3\xa9k",dateFormat:"Y m j"});}if(Ext.SplitLayoutRegion){Ext.apply(Ext.SplitLayoutRegion.prototype,{splitTip:"H\xc3\xbaz\xc3\xa1s: \xc3\xa1tm\xc3\xa9retez\xc3\xa9s",collapsibleSplitTip:"H\xc3\xbaz\xc3\xa1s: \xc3\xa1tm\xc3\xa9retez\xc3\xa9s, duplaklikk: elt\xc3\xbcntet\xc3\xa9s."});}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Instructor / Trainer Alura Cursos Online
Brazil Brazil

Comments and Discussions