Actually the num keybd makes more sense in Paid In and Out

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@674761 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2008-07-08 10:55:20 +00:00
parent eda751d0c1
commit f837974e02
3 changed files with 8 additions and 5 deletions
+3
View File
@@ -17,4 +17,7 @@
###############################################################################
#
### Miscellaneous parameters
# Used with a touch screen to allow showing vituals keyboards (alpha and keypad).
# For now this properties is used with both. Maybe at some point we will need both in the same screen.
ShowKeyboardInSaveSale=Y
+1 -2
View File
@@ -67,9 +67,8 @@ under the License.
<Button name="" x="204" y="310" w="100" h="60" style="posButton" content="" alignment="Center"/>
<Button name="" x="306" y="310" w="100" h="60" style="posButton" content="" alignment="Center"/>
<Button name="" x="408" y="310" w="100" h="60" style="posButton" content="" alignment="Center"/>
<!--Button name="" x="510" y="310" w="100" h="60" style="posButton" content="" alignment="Center"/-->
<Button name="" x="510" y="310" w="100" h="60" style="posButton" content="" alignment="Center"/>
<!--Button name="testMsr" x="510" y="310" w="100" h="60" style="posButton" content="TEST MSR" alignment="Center"/-->
<Button name="testNumeric" x="510" y="310" w="100" h="60" style="posButton" content="Num Keypad" alignment="Center"/>
</Components>
</XPage>
+4 -3
View File
@@ -137,9 +137,10 @@ public class PaidInOut extends XPage {
public synchronized void editAmount(){
if (wasMouseClicked() && ShowKeyboardInSaveSale) {
try {
Keyboard keyboard = new Keyboard(m_pos);
keyboard.setText(m_amountEdit.getText());
m_amountEdit.setText(keyboard.openDlg());
NumericKeypad numericKeypad = new NumericKeypad(m_pos);
numericKeypad.setMinus(true);
numericKeypad.setPercent(false);
m_amountEdit.setText(numericKeypad.openDlg());
}catch(Exception e){
Debug.logError(e, module);
}