添加忽略文件;添加解决方案文件;添加乘客实体对象
This commit is contained in:
parent
c633c3e654
commit
38eb9e20d3
68
.gitignore
vendored
Normal file
68
.gitignore
vendored
Normal file
@ -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
|
||||
_项目发布_
|
38
12306.sln
Normal file
38
12306.sln
Normal file
@ -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
|
5
www/web/js/boot.js
Normal file
5
www/web/js/boot.js
Normal file
@ -0,0 +1,5 @@
|
||||
//12306入口引导脚本
|
||||
|
||||
(function () {
|
||||
|
||||
});
|
38
www/web/js/passenger/Passenger.js
Normal file
38
www/web/js/passenger/Passenger.js
Normal file
@ -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 "<button type='button' data-key='" + __.key + "' data-fl='" + __.firstLetter + "' class='btn btn-sm " + (removeFlag ? "btn-default" : "btn-primary") + "'>" + __.name + (__.type == 2 ? "<span style='margin-left:3px;color:#" + (removeFlag ? "888" : "ccc") + ";'>[童]</span>" : __.type == 3 ? "<span style='margin-left:3px;color:#" + (removeFlag ? "888" : "ccc") + ";'>[学]</span>" : "") + (removeFlag ? "" : "") + "</button>";
|
||||
};
|
||||
//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;
|
||||
});
|
3
www/web/js/passenger/PassengerList.js
Normal file
3
www/web/js/passenger/PassengerList.js
Normal file
@ -0,0 +1,3 @@
|
||||
define(function() {
|
||||
|
||||
});
|
Loading…
Reference in New Issue
Block a user