From 38eb9e20d3ac64abb06df3a5cc3874c5c1a1f8ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8=E9=B1=BC?= Date: Wed, 5 Mar 2014 14:56:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=BF=BD=E7=95=A5=E6=96=87?= =?UTF-8?q?=E4=BB=B6=EF=BC=9B=E6=B7=BB=E5=8A=A0=E8=A7=A3=E5=86=B3=E6=96=B9?= =?UTF-8?q?=E6=A1=88=E6=96=87=E4=BB=B6=EF=BC=9B=E6=B7=BB=E5=8A=A0=E4=B9=98?= =?UTF-8?q?=E5=AE=A2=E5=AE=9E=E4=BD=93=E5=AF=B9=E8=B1=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 68 +++++++++++++++++++++++++++ 12306.sln | 38 +++++++++++++++ www/web/js/boot.js | 5 ++ www/web/js/passenger/Passenger.js | 38 +++++++++++++++ www/web/js/passenger/PassengerList.js | 3 ++ 5 files changed, 152 insertions(+) create mode 100644 .gitignore create mode 100644 12306.sln create mode 100644 www/web/js/boot.js create mode 100644 www/web/js/passenger/Passenger.js create mode 100644 www/web/js/passenger/PassengerList.js diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..01b80f7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,68 @@ +_项目发布_/ +_DB_/ +Packages/ +_bin.* +*.bin +bin +obj +*.user +*.suo +*.lnk +*.rar +*ReSharper* +*Example* +Doc +desktop.ini +bin.*/ +*.sdf +*.vs10x +Sample Projects/ +.idea +ipch/ +.vs10x +*.aux +*.dvi +*.log +*.ps + +*.sdf +*.opensdf + +#OS junk files +Thumbs.db +*.DS_Store + +#Visual Studio files +*.obj +*.pdb +*.user +*.aps +*.pch +*.vspscc +*.vssscc +*_i.c +*_p.c +*.ncb +*.suo +*.tlb +*.tlh +*.bak +*.cache +*.ilk +*.log +*.sbr +obj/ +[Bb]in +[Dd]ebug*/ +[Rr]elease*/ + +#Toolinga +[Tt]est[Rr]esult +.pdsync +.pdsyncu +#Project files +[Bb]uild/ +*.pdsync +*.pdsyncu +*.dotCover +_项目发布_ \ No newline at end of file diff --git a/12306.sln b/12306.sln new file mode 100644 index 0000000..349d675 --- /dev/null +++ b/12306.sln @@ -0,0 +1,38 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.30129.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "12306", "http://localhost:21577", "{55C1D57A-D31A-4CAF-963B-554A7F7D3EF6}" + ProjectSection(WebsiteProperties) = preProject + UseIISExpress = "true" + TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.0" + Debug.AspNetCompiler.VirtualPath = "/localhost_21577" + Debug.AspNetCompiler.PhysicalPath = "..\12306\" + Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_21577\" + Debug.AspNetCompiler.Updateable = "true" + Debug.AspNetCompiler.ForceOverwrite = "true" + Debug.AspNetCompiler.FixedNames = "false" + Debug.AspNetCompiler.Debug = "True" + Release.AspNetCompiler.VirtualPath = "/localhost_21577" + Release.AspNetCompiler.PhysicalPath = "..\12306\" + Release.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_21577\" + Release.AspNetCompiler.Updateable = "true" + Release.AspNetCompiler.ForceOverwrite = "true" + Release.AspNetCompiler.FixedNames = "false" + Release.AspNetCompiler.Debug = "False" + SlnRelativePath = "..\12306\" + EndProjectSection +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {55C1D57A-D31A-4CAF-963B-554A7F7D3EF6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {55C1D57A-D31A-4CAF-963B-554A7F7D3EF6}.Debug|Any CPU.Build.0 = Debug|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/www/web/js/boot.js b/www/web/js/boot.js new file mode 100644 index 0000000..7a4e7ca --- /dev/null +++ b/www/web/js/boot.js @@ -0,0 +1,5 @@ +//12306入口引导脚本 + +(function () { + +}); \ No newline at end of file diff --git a/www/web/js/passenger/Passenger.js b/www/web/js/passenger/Passenger.js new file mode 100644 index 0000000..65df929 --- /dev/null +++ b/www/web/js/passenger/Passenger.js @@ -0,0 +1,38 @@ +define(function () { + function Passenger(name, type, typename, idtype, idtypename, id, firstLetter) { + this.name = name; + this.type = type; + this.idtype = idtype; + this.id = id; + this.key = type + "$" + name + "$" + idtype + "$" + this.id; + this.save = false; + this.firstLetter = firstLetter; + this.idtypeName = idtypename; + this.typename = typename; + var __ = this; + + this.toString = function () { + return name; + }; + this.toHtml = function (removeFlag) { + return ""; + }; + //e.passengers.push(new Passenger(this.passenger_name, this.passenger_type, this.passenger_id_type_code, this.passenger_id_no, this.first_letter)); + this.toRawPassenger = function () { + return { + passenger_name: __.name, + passenger_type: __.type, + passenger_id_type_code: __.idtype, + passenger_id_no: __.id, + passenger_first_letter: __.firstLetter, + mobile_no: "", + passenger_id_type_name: __.idtypeName, + passenger_type_name: __.typename + }; + }; + + return this; + }; + + return Passenger; +}); \ No newline at end of file diff --git a/www/web/js/passenger/PassengerList.js b/www/web/js/passenger/PassengerList.js new file mode 100644 index 0000000..a202028 --- /dev/null +++ b/www/web/js/passenger/PassengerList.js @@ -0,0 +1,3 @@ +define(function() { + +}); \ No newline at end of file