getMoneyProgram method
dynamic
getMoneyProgram(
- dynamic context,
- dynamic label,
- dynamic nextAction,
- dynamic data,
Implementation
getMoneyProgram(context, label, nextAction, data) {
myLogAll('getMoneyProgram');
var sWidthScreen = MediaQuery.of(context).size.width;
var sWidth = sWidthScreen / 3.0 - 34.5;
var sHeight = sWidth * 1 / 2;
return [
{
gAction: "showProgram",
gData: [
{
gLabel: "Money",
gActionid: "e0464c41-3bbe-4094-a749-8",
gType: gCard,
gBody: [
{
gLabel: 'Enter $label',
gType: gProcess,
gActionid: "system",
gIcon: null,
gHeight: 35.0,
gFontSize: '20.0',
gBackgroundColor: Colors.grey.shade200,
gAfterNot: 'getValueFocus()',
gDetail: []
},
{
gLabel: 'getValueFocus()',
gType: gProcess,
gActionid: "system",
gIcon: null,
gHeight: 50.0,
gFontSize: '30.0',
gFontWeight: FontWeight.bold,
gBackgroundColor: Colors.grey.shade200,
gParam: {gType: '$gRow$gCnt', gValue: 3},
gAfter: 'getValueFocus()',
gDetail: [
getMoneyProgramKey('1', sWidth, sHeight, gAppend, label),
getMoneyProgramKey('2', sWidth, sHeight, gAppend, label),
getMoneyProgramKey('3', sWidth, sHeight, gAppend, label),
getMoneyProgramKey('4', sWidth, sHeight, gAppend, label),
getMoneyProgramKey('5', sWidth, sHeight, gAppend, label),
getMoneyProgramKey('6', sWidth, sHeight, gAppend, label),
getMoneyProgramKey('7', sWidth, sHeight, gAppend, label),
getMoneyProgramKey('8', sWidth, sHeight, gAppend, label),
getMoneyProgramKey('9', sWidth, sHeight, gAppend, label),
{
gLabel: '',
gType: gLocalAction,
gActionid: gSetValueFocus,
gValue: gCancel,
gInputType: gMoney,
gWidth: sWidth - 10.0,
gHeight: sHeight,
gIcon: 0xef28,
gAddnew: gAppend,
gCol: label,
//gAfter: 'getValueFocus()',
},
getMoneyProgramKey(
'0', sWidth + 20.0, sHeight, gAppend, label),
{
gLabel: '',
gType: gLocalAction,
gActionid: gSetValueFocus,
gValue: gBackspace,
gInputType: gMoney,
gWidth: sWidth - 10.0,
gHeight: sHeight,
gIcon: 0xeeb5,
gAddnew: gAppend,
gCol: label,
//gAfter: 'getValueFocus()',
},
]
},
{
gLabel: "",
gType: gProcess,
gActionid: "system",
gIcon: null,
//"width": -1,
//"height": -1,
//gParam:{gType:'$gRow$gCnt',gValue:1},
gDetail: [
{
gLabel: 'Next',
gType: gLocalAction,
//gActionid: gSetValueFocus,
//gActionid: '$gBackContext,$gFormReset',
//gActionid: gBackContext,
gActionid: [
{gAction: gBackContext, gData: []},
//gActionid: [{gAction: 'setValueOnColCommon',gData:[{gCol:'tip',gValue:''}]},
{
gAction: gSetFocus,
gData: [
{gCol: 'tip'}
]
}
],
gInputType: gMoney,
//gValue: gBackContext,
gWidth: MediaQuery.of(context).size.width,
gHeight: sHeight,
gAfter: 'getValueFocus()',
//'$gAfter$gBackContext': nextAction
},
]
}
]
}
]
}
];
}