dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #21281
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 10022: Don't save data values when to register new person; Don't display incident-date and enrollment-dat...
------------------------------------------------------------
revno: 10022
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2013-03-07 12:59:08 +0700
message:
Don't save data values when to register new person;Don't display incident-date and enrollment-date fields in registration person with a program
modified:
dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/caseentry/SaveValuesAction.java
dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/ShowAddPatientFormAction.java
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/singleEventSelect.vm
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/caseentry/SaveValuesAction.java'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/caseentry/SaveValuesAction.java 2012-11-09 08:29:29 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/caseentry/SaveValuesAction.java 2013-03-07 05:59:08 +0000
@@ -194,11 +194,11 @@
Collection<ProgramStageDataElement> psDataElements = programStage.getProgramStageDataElements();
for ( ProgramStageDataElement psDataElement : psDataElements )
{
- String dataElementFieldId = PREFIX_DATA_ELEMENT + "_" + programStage.getId() + "-" + psDataElement.getDataElement().getId() + "-val";
+ String dataElementFieldId = programStage.getId() + "-" + psDataElement.getDataElement().getId() + "-val";
String value = request.getParameter( dataElementFieldId );
if ( value != null && value.trim().length()>0)
{
- String providedElsewhereId = PREFIX_DATA_ELEMENT + "_" + programStage.getId() + "_" + psDataElement.getDataElement().getId()
+ String providedElsewhereId = programStage.getId() + "_" + psDataElement.getDataElement().getId()
+ "_facility";
boolean providedElsewhere = (request.getParameter( providedElsewhereId ) == null) ? false : true;
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/ShowAddPatientFormAction.java'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/ShowAddPatientFormAction.java 2013-03-04 15:35:48 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/ShowAddPatientFormAction.java 2013-03-07 05:59:08 +0000
@@ -196,7 +196,6 @@
{
organisationUnit = selectionManager.getSelectedOrganisationUnit();
healthWorkers = organisationUnit.getUsers();
- Program program = null;
if ( programId == null )
{
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/singleEventSelect.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/singleEventSelect.vm 2013-03-05 13:55:46 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/singleEventSelect.vm 2013-03-07 05:59:08 +0000
@@ -2,7 +2,7 @@
jQuery(document).ready( function(){
jQuery("#programIdAddPatient option").each(function(){
var item = jQuery(this);
- if(item.attr('type')!=2){
+ if(item.attr('type')!=2 || item.val()==''){
item.remove();
}
});
@@ -11,6 +11,11 @@
setFieldValue('isSearchByProgram', true);
registration = false;
$("#searchObjectId option[value='prg']").remove();
+ if(jQuery("#programIdAddPatient option").length > 0){
+ enable('listPatientBtn');
+ enable('addPatientBtn');
+ enable('advancedSearchBtn');
+ }
});
</script>