Click here to Skip to main content
15,881,882 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.2K   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\">Nahr\xe1vam...</div>";if(Ext.View){Ext.View.prototype.emptyText="";}if(Ext.grid.Grid){Ext.grid.Grid.prototype.ddText="{0} ozna\xe8en\xfdch riadkov";}if(Ext.TabPanelItem){Ext.TabPanelItem.prototype.closeText="Zavrie\ufffd t\xfato z\xe1lo\u017eku";}if(Ext.form.Field){Ext.form.Field.prototype.invalidText="Hodnota v tomto poli je nespr\xe1vna";}Date.monthNames=["Janu\xe1r","Febru\xe1r","Marec","Apr\xedl","M\xe1j","J\xfan","J\xfal","August","September","Okt\xf3ber","November","December"];Date.dayNames=["Nede\xbea","Pondelok","Utorok","Streda","\u0160tvrtok","Piatok","Sobota"];if(Ext.MessageBox){Ext.MessageBox.buttonText={ok:"OK",cancel:"Zru\u0161i\ufffd",yes:"\xc1no",no:"Nie"};}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||"m/d/R");};}if(Ext.DatePicker){Ext.apply(Ext.DatePicker.prototype,{todayText:"Dnes",minText:"Tento d\xe1tum je men\u0161\xed ako minim\xe1lny mo\u017en\xfd d\xe1tum",maxText:"Tento d\xe1tum je v\xe4\xe8\u0161\xed ako maxim\xe1lny mo\u017en\xfd d\xe1tum",disabledDaysText:"",disabledDatesText:"",monthNames:Date.monthNames,dayNames:Date.dayNames,nextText:"\xcfal\u0161\xed Mesiac (Control+Doprava)",prevText:"Predch. Mesiac (Control+Do\xbeava)",monthYearText:"Vyberte Mesiac (Control+Hore/Dole pre posun rokov)",todayTip:"{0} (Medzern\xedk)",format:"m/d/r"});}if(Ext.PagingToolbar){Ext.apply(Ext.PagingToolbar.prototype,{beforePageText:"Strana",afterPageText:"z {0}",firstText:"Prv\xe1 Strana",prevText:"Predch. Strana",nextText:"\xcfal\u0161ia Strana",lastText:"Posledn\xe1 strana",refreshText:"Obnovi\ufffd",displayMsg:"Zobrazujem {0} - {1} z {2}",emptyMsg:"\u017diadne d\xe1ta"});}if(Ext.form.TextField){Ext.apply(Ext.form.TextField.prototype,{minLengthText:"Minim\xe1lna d\xe5\u017eka pre toto pole je {0}",maxLengthText:"Maxim\xe1lna d\xe5\u017eka pre toto pole je {0}",blankText:"Toto pole je povinn\xe9",regexText:"",emptyText:null});}if(Ext.form.NumberField){Ext.apply(Ext.form.NumberField.prototype,{minText:"Minim\xe1lna hodnota pre toto pole je {0}",maxText:"Maxim\xe1lna hodnota pre toto pole je {0}",nanText:"{0} je nespr\xe1vne \xe8\xedslo"});}if(Ext.form.DateField){Ext.apply(Ext.form.DateField.prototype,{disabledDaysText:"Zablokovan\xe9",disabledDatesText:"Zablokovan\xe9",minText:"D\xe1tum v tomto poli mus\xed by\ufffd a\u017e po {0}",maxText:"D\xe1tum v tomto poli mus\xed by\ufffd pred {0}",invalidText:"{0} nie je spr\xe1vny d\xe1tum - mus\xed by\ufffd vo form\xe1te {1}",format:"m/d/r"});}if(Ext.form.ComboBox){Ext.apply(Ext.form.ComboBox.prototype,{loadingText:"Nahr\xe1vam...",valueNotFoundText:undefined});}if(Ext.form.VTypes){Ext.apply(Ext.form.VTypes,{emailText:"Toto pole mus\xed by\ufffd e-mailov\xe1 adresa vo form\xe1te \"user@domain.com\"",urlText:"Toto pole mus\xed by\ufffd URL vo form\xe1te \"http:/"+"/www.domain.com\"",alphaText:"Toto po\xbee mo\u017ee obsahova\ufffd iba p\xedsmen\xe1 a znak _",alphanumText:"Toto po\xbee mo\u017ee obsahova\ufffd iba p\xedsmen\xe1,\xe8\xedsla a znak _"});}if(Ext.grid.GridView){Ext.apply(Ext.grid.GridView.prototype,{sortAscText:"Zoradi\ufffd vzostupne",sortDescText:"Zoradi\ufffd zostupne",lockText:"Zamkn\xfa\ufffd st\xe5pec",unlockText:"Odomkn\xfa\ufffd st\xbepec",columnsText:"St\xe5pce"});}if(Ext.grid.PropertyColumnModel){Ext.apply(Ext.grid.PropertyColumnModel.prototype,{nameText:"N\xe1zov",valueText:"Hodnota",dateFormat:"m/j/Y"});}if(Ext.SplitLayoutRegion){Ext.apply(Ext.SplitLayoutRegion.prototype,{splitTip:"Potiahnite pre zmenu rozmeru",collapsibleSplitTip:"Potiahnite pre zmenu rozmeru. Dvojklikom schov\xe1te."});}

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