# Routes
# This file defines all application routes (Higher priority routes first)
# ~~~~

# Home page
GET     /                           controllers.Application.index
GET     /single_partslist           controllers.PartsListController.index(opt:Int=0, page:Int, key:String)
GET		 /multi_partslist				 controllers.PartsListController.index(opt:Int=1, page:Int, key:String)
POST	 /multi_partslist				 controllers.PartsListController.index(opt:Int=1, page:Int, key:String)
GET		 /cost_partslist				 controllers.PartsListController.index(opt:Int=2, page:Int, key:String)
GET		 /unit_partslist				 controllers.PartsListController.index(opt:Int=3, page:Int, key:String)
GET		 /multi_uppartslist			 controllers.PartsListController.upIndex(opt:Int=0, page:Int, key:String)
GET		 /single_uppartslist			 controllers.PartsListController.upIndex(opt:Int=1, page:Int, key:String)
GET		 /top_uppartslist			 	 controllers.PartsListController.upIndex(opt:Int=2, page:Int, key:String)
GET		 /partCreate					 controllers.PartsMasterController.create
GET		 /partModify					 controllers.PartsMasterController.update(id:Long)
POST	 /partSave						 controllers.PartsMasterController.partRegistration()
POST	 /partModification			 controllers.PartsMasterController.partModification(id:Long)
GET	    /relationCreate				 controllers.PartsListController.createRelation(parent:String)
POST	 /relationSave				 controllers.PartsListController.relationRegistration
GET	    /relationUpdate				 controllers.PartsListController.updateRelation(parent:String, child:String)
POST    /relationChange				 controllers.PartsListController.relationUpdate(childName:String)
GET		 /projectCreate				 controllers.ProjectController.createProject
POST	 /projectSave					 controllers.ProjectController.projectRegistration()
GET		 /projectModify				 controllers.ProjectController.updateProject(id:Long)
POST	 /projectModification		 controllers.ProjectController.projectModification(id:Long)
GET		 /projectMemberDelete		 controllers.ProjectController.projectMemberDelete(pid:Long, memberId:Long)
GET		 /userCreate					 controllers.UserController.createUser
POST	 /userSave						 controllers.UserController.userRegistration()
GET		 /userModify					 controllers.UserController.updateUser(id:Long)
POST	 /userModification			 controllers.UserController.userModification(id:Long)
GET		 /notifyCreate/:partId/:notifyType			 	controllers.NotifyController.createNotify(partId:Long, notifyType:Long)
POST	 /notifySave					 controllers.NotifyController.notifyRegistration(id:Long, notifyType:Long)
GET		 /notifyShow					 controllers.NotifyController.showNotify(id:Long, partId:Long, notifyType:Long, state:Long)
POST	 /notifyUpdate				 controllers.NotifyController.updateState(id:Long, partId:Long, notifyType:Long, state:Long)
GET		 /replyCreate/:notifyId/:replyId/:notifyType/:replyType/:partId/:state		controllers.ReplyController.createReply(notifyId:Long, replyId:Long, notifyType:Long, replyType:Long, partId:Long, state:Long)
POST	 /replySave					 controllers.ReplyController.replyRegistration(notifyId:Long, replyId:Long, partId:Long, notifyType:Long, state:Long)
GET		 /replyShow					 controllers.ReplyController.showReply(id:Long, partId:Long, notifyType:Long, replyType:Long, state:Long)
GET     /list							 controllers.PartsMasterController.list(page:Int, key:String)
GET		 /projectlist					 controllers.ProjectController.list(page:Int, key:String)
GET		 /userList						 controllers.UserController.list(page:Int, key:String)
GET		 /notifylist					 controllers.NotifyController.listRecursion(page:Int, partId:Long, notifyType: Long, state: Long)
GET		 /partDelete/:id				 controllers.PartsMasterController.partDelete(id:Long)
GET		 /relationDelete/:parentName/:childName				 controllers.PartsListController.relationDelete(parentName:String, childName:String)
GET		 /showAtach					 controllers.AtachController.showAtach(id:Long)
GET		 /dropAtach					 controllers.AtachController.dropAtach(id:Long)
GET		 /picture						 controllers.Application.picture
POST 	 /upload						 controllers.Application.upload
GET		 /show							 controllers.Application.show
GET		 /projectAutocomple			 controllers.Autocomplete.projectList()
GET		 /partAutocomplete			 controllers.Autocomplete.partList()
GET		 /userAutocomplete			 controllers.Autocomplete.userList()
# Map static resources from the /public folder to the /assets URL path
GET     /assets/*file               controllers.Assets.at(path="/public", file)
