Hi,
I am resending the patch 1608 after it is modified with the addition of a
new heading named "Loan Account Fields" . Purpose of Loan field will
appear under it.
Thanks and Kind Regards
Biren Patnaik
Index:
C:/project/MifosBug/mifos/src/org/mifos/application/configuration/struts/actionform/HiddenMandatoryConfigurationActionForm.java
===================================================================
---
C:/project/MifosBug/mifos/src/org/mifos/application/configuration/struts/actionform/HiddenMandatoryConfigurationActionForm.java
(revision 12311)
+++
C:/project/MifosBug/mifos/src/org/mifos/application/configuration/struts/actionform/HiddenMandatoryConfigurationActionForm.java
(working copy)
@@ -26,6 +26,8 @@
private String hideSystemCitizenShip;
private String mandatorySystemCitizenShip;
+
+ private String mandatorySystemPurposeOfLoan;
private String hideSystemHandicapped;
@@ -381,7 +383,13 @@
public void setMandatorySystemCitizenShip(String
mandatorySystemCitizenShip) {
this.mandatorySystemCitizenShip = mandatorySystemCitizenShip;
}
+ public String getMandatorySystemPurposeOfLoan() {
+ return mandatorySystemPurposeOfLoan;
+ }
+ public void setMandatorySystemPurposeOfLoan(String
mandatorySystemPurposeOfLoan) {
+ this.mandatorySystemPurposeOfLoan =
mandatorySystemPurposeOfLoan;
+ }
public String getMandatorySystemEducationLevel() {
return mandatorySystemEducationLevel;
}
@@ -456,6 +464,7 @@
this.mandatorySystemEthnicity = "0";
this.hideSystemCitizenShip = "0";
this.mandatorySystemCitizenShip = "0";
+ this.mandatorySystemPurposeOfLoan = "0";
this.hideSystemHandicapped = "0";
this.mandatorySystemHandicapped = "0";
this.hideSystemEducationLevel = "0";
Index:
C:/project/MifosBug/mifos/src/org/mifos/application/configuration/struts/action/HiddenMandatoryConfigurationAction.java
===================================================================
---
C:/project/MifosBug/mifos/src/org/mifos/application/configuration/struts/action/HiddenMandatoryConfigurationAction.java
(revision 12311)
+++
C:/project/MifosBug/mifos/src/org/mifos/application/configuration/struts/action/HiddenMandatoryConfigurationAction.java
(working copy)
@@ -198,6 +198,13 @@
getShortValue(actionForm.getHideSystemReceiptIdDate()));
}
else if (fieldConfiguration.getFieldName().equals(
+
HiddenMandatoryFieldNamesConstants.PURPOSE_OF_LOAN)) {
+ fieldConfiguration.update(getShortValue(actionForm
+ .getMandatorySystemPurposeOfLoan()),
fieldConfiguration
+ .getHiddenFlag());
+ }
+
+ else if (fieldConfiguration.getFieldName().equals(
HiddenMandatoryFieldNamesConstants.COLLATERAL_TYPE)
|| fieldConfiguration.getFieldName().equals(
HiddenMandatoryFieldNamesConstants.COLLATERAL_NOTES)) {
@@ -677,6 +684,13 @@
.getHiddenFlag()));
}
else if (fieldConfiguration.getFieldName().equals(
+
HiddenMandatoryFieldNamesConstants.PURPOSE_OF_LOAN)) {
+ actionForm
+
.setMandatorySystemPurposeOfLoan(getStringValue(fieldConfiguration.getMandatoryFlag()));
+ }
+
+
+ else if (fieldConfiguration.getFieldName().equals(
HiddenMandatoryFieldNamesConstants.COLLATERAL_TYPE)) {
actionForm
.setHideSystemCollateralTypeNotes(getStringValue(fieldConfiguration
Index:
C:/project/MifosBug/mifos/src/org/mifos/application/configuration/util/helpers/HiddenMandatoryFieldNamesConstants.java
===================================================================
---
C:/project/MifosBug/mifos/src/org/mifos/application/configuration/util/helpers/HiddenMandatoryFieldNamesConstants.java
(revision 12311)
+++
C:/project/MifosBug/mifos/src/org/mifos/application/configuration/util/helpers/HiddenMandatoryFieldNamesConstants.java
(working copy)
@@ -19,6 +19,8 @@
public static final String RECEIPT_ID = "ReceiptId";
public static final String COLLATERAL_TYPE = "CollateralType";
+
+ public static final String PURPOSE_OF_LOAN = "PurposeOfLoan";
public static final String COLLATERAL_NOTES = "CollateralNotes";
Index:
C:/project/MifosBug/mifos/src/org/mifos/config/localizedResources/ConfigurationUIResources.properties
===================================================================
---
C:/project/MifosBug/mifos/src/org/mifos/config/localizedResources/ConfigurationUIResources.properties
(revision 12311)
+++
C:/project/MifosBug/mifos/src/org/mifos/config/localizedResources/ConfigurationUIResources.properties
(working copy)
@@ -57,6 +57,7 @@
#-----Define hidden/mandatory fields----
configuration.hiddenmandfields=mandatory/hidden fields
configuration.syswidefields=System wide fields
+configuration.loanAccountfields=Loan Account Fields
configuration.hide=Hide
configuration.mandatory=Mandatory
configuration.educationlevel=Education level
Index:
C:/project/MifosBug/mifos/src/org/mifos/doc-root/application/configuration/jsp/definehiddenmandatoryfields.jsp
===================================================================
---
C:/project/MifosBug/mifos/src/org/mifos/doc-root/application/configuration/jsp/definehiddenmandatoryfields.jsp
(revision 12311)
+++
C:/project/MifosBug/mifos/src/org/mifos/doc-root/application/configuration/jsp/definehiddenmandatoryfields.jsp
(working copy)
@@ -254,6 +254,33 @@
</td>
</tr>
+ </table>
+ <span class="heading"></span>
+ <table width="96%" border="0"
cellpadding="3" cellspacing="0">
+ <tr>
+ <td width="24%"
class="drawtablehd">
+
<mifos:mifoslabel name="configuration.loanAccountfields" />
+ </td>
+ <td width="28%"
class="drawtablehd">
+
<mifos:mifoslabel name="configuration.hide" />
+ </td>
+ <td width="28%"
class="drawtablehd">
+
<mifos:mifoslabel name="configuration.mandatory" />
+ </td>
+ </tr>
+
+ <tr>
+ <td
class="drawtablerow">
+
<mifos:mifoslabel name="configuration.purposeofloan" />
+ </td>
+ <td
class="drawtablerow">
+
+ </td>
+ <td
class="drawtablerow">
+
<html-el:checkbox property="mandatorySystemPurposeOfLoan" value="1"/>
+ </td>
+ </tr>
+
</table>
<span class="heading"></span>
<table width="96%" border="0"
cellpadding="3" cellspacing="0">-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/