# 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		 /designChangeCoverForm		 controllers.DesignChangeController.create
POST	 /designChangeCover			 controllers.DesignChangeController.designChangeCoverRegistration
GET		 /designChangeCoverModify	 controllers.DesignChangeController.designChangeCoverModify(designChangeId:Long, dcSeq:Long, message:String)
POST	 /designChangeCoverModification		controllers.DesignChangeController.designChangeCoverModification(id: Long)
GET		 /designChangeForm			 controllers.DesignChangeController.designChangeForm(parentName, childName)
POST	 /designChange				 controllers.DesignChangeController.designChange
POST	 /designChangeCancel			 controllers.DesignChangeController.designChangeCancel(id:Long)
GET		 /designChangeCancelByLine	 controllers.DesignChangeController.designChangeCancelByLine(designChangeId:Long, delParent:String, delChild:String, addParent:String, addChild:String)
GET		 /designChangeAppend			 controllers.DesignChangeController.designChangeAppend(designChangeId:Long, dcSeq:Long, parentName:String)
GET		 /designChangeModify			 controllers.DesignChangeController.designChangeRealtionModify(designChangeId: Long, dcDelSeq: Long, dcAddSeq: Long)
POST	 /designChangeModification	 controllers.DesignChangeController.designChangeRelationModification(partName: 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/:designChangeId/:notifyType			 	controllers.NotifyController.createNotify(partId:Long, designChangeId:Long, notifyType:Long)
POST	 /notifySave					 controllers.NotifyController.notifyRegistration(id:Long, designChangeId:Long, notifyType:Long)
GET		 /notifyShow					 controllers.NotifyController.showNotify(id:Long, partId:Long, designChangeId:Long, notifyType:Long, state:Long)
POST	 /notifyUpdate				 controllers.NotifyController.updateState(id:Long, partId:Long, designChnageId:Long, notifyType:Long, state:Long)
POST	 /notifyShowAddAtach			 controllers.NotifyController.appendAtach(id: Long, partId: Long, designChangeId: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, designChangeId:Long, notifyType:Long, replyType:Long, state:Long)
POST	 /replyShowAddAtach			 controllers.ReplyController.appendAtach(id:Long, partId:Long, designChangeId: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		 /designChangeNotifylist		 controllers.NotifyController.designChangeListRecursion(page:Int, designChangeId:Long, notifyType: Long, state: Long)
GET		 /designchangelist			 controllers.DesignChangeController.list(page:Int, key:String)
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		 /projectAutocomple			 controllers.Autocomplete.projectList()
GET		 /partAutocomplete			 controllers.Autocomplete.partList()
GET		 /userAutocomplete			 controllers.Autocomplete.userList()
GET		 /designChangeAutocomplete	 controllers.Autocomplete.designChangeList()
# Map static resources from the /public folder to the /assets URL path
GET     /assets/*file               controllers.Assets.at(path="/public", file)
