Changeset 826 for trunk/grails-app
- Timestamp:
- Feb 24, 2011, 6:04:43 PM (14 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/EntryDetailedController.groovy
r822 r826 92 92 } 93 93 94 def createMaintenanceAction = { 94 def ajaxCreate = { 95 if(!params.taskId || !params.entryTypeId) { 96 flash.message = g.message(code:"entry.create.no.params") 97 redirect(controller:"taskDetailed", action:"search") 98 return 99 } 95 100 96 // if(!params.taskInstance?.id || !params.entryType?.id) { 97 // flash.message = g.message(code:"entry.create.no.params") 98 // redirect(controller:"taskDetailed", action:"search") 99 // return 100 // } 101 def taskInstance = Task.read(params.taskId) 101 102 102 def taskInstance = Task.read(params.taskInstance.id) 103 println taskInstance 104 render "Done" 103 if(!taskInstance) { 104 flash.message = g.message(code:"task.notFound") 105 redirect(controller:"taskDetailed", action:"search") 106 return 107 } 108 109 // Check for Complete task. 110 if(taskInstance.taskStatus.id == 3) { 111 flash.errorMessage = g.message(code:"task.operationNotPermittedOnCompleteTask") 112 redirect(controller:"taskDetailed", action:"show", id: taskInstance.id) 113 return 114 } 115 116 def entryInstance = new Entry() 117 entryInstance.task = taskInstance 118 entryInstance.entryType = EntryType.read(params.entryTypeId) 119 render(template: "create", model: ['entryInstance': entryInstance]) 105 120 } 106 121 -
trunk/grails-app/services/CreateDataService.groovy
r821 r826 989 989 entryTypeInstance = new EntryType(name:"Work Request") // #5 990 990 saveAndTest(entryTypeInstance) 991 992 entryTypeInstance = new EntryType(name:"PM Entry") // #6 993 saveAndTest(entryTypeInstance) 991 994 } 992 995 -
trunk/grails-app/views/taskDetailed/_showProcedureTab.gsp
r823 r826 23 23 <g:render template="/taskProcedureDetailed/taskProcedureRevision" 24 24 model="['taskProcedureRevision':taskProcedureRevision]" /> 25 <br /> 26 27 <div id="maintenanceEntryContainer"></div> 28 29 <div style="text-align:right;" id="maintenanceEntryButton"> 30 <span class="buttons"> 31 <input type="button" 32 class="add" 33 value="Add Maintenance Entry" 34 onclick="getMaintenanceEntryForm(${taskInstance?.id}, 6)" /> 35 </span> 36 </div> 25 37 </g:else> -
trunk/grails-app/views/taskDetailed/show.gsp
r822 r826 6 6 <nav:resources override="true"/> 7 7 <resource:tabView skin="tabviewCustom" /> 8 <resource:dateChooser /> 9 <g:javascript src="taskShow.js" /> 8 10 </head> 9 11 <body>
Note: See TracChangeset
for help on using the changeset viewer.