e.g. grid.focus _combo(this.id,'<%=Input[i][56]%>','<%=Input[i][33]%>');
0 : as RAW
1 : Page
2 : Line
3 : table
4 : field
5 : value ie click Value
6 : input Type e.g. num.2, radio
7 : Grid | from to e/g/ BOX,GRID, [7]=GRID
8 : Display Length
9 : Deciminial e.g. num.2
10: maxLength
11: group Name
12: classID = table-field
13: the number count of grid
14: Default value of Input
15: min-width
16: max-width
17: nextLine e.g. n generate <br>
18: member count
19 : required
20 : full label define
21 : first Label
22 : Second Label ie c
23 : float
24 : http link= raws[6]
25: Display Width
26 : uom of display length
27 : last field
28 : this field
29 : next field
30 : required
31 : {inLineStyle}{/inLineStyle} e.g. {inLineStyle}text-align:right;{/inLineStyle}
{alignLeft}{alignRight}{invisible}{alitnCenter}
32 : {events}onchange="keyValue=this.value; retrieval();"{/events}
33 : {getJson}e.g. {getJson}tableRead?table=employee&fields=surname,employeenumber&key=status&value=0&format=S,S{/getJson}
34 : {disabled}
35 : {currency}
36: {http}{/http}
37: {data}D,draft,s,submit,i,input,B,Bank{/data} i.e. it is aname(datas,'key')
38: {refresh} {refresh}_refreshv('payroll.relevantIncome',parseFloat(1*_lookup('payroll.grosspay')-1*_lookup('payroll.totaldeduct')).toFixed(2));{/refresh}
39: {lostfocus}{/lostfocus}
40: {readonly}{/readonly}
41: {default} / / {/default}
42: {onclick}{onclick} employee list e.g. {onclick}retrieval2('status:`A`');{/onclick}
43 {subform}{/subform} payroll entry e.g. {subform}createRegularPayroll.jsp{/subform}
44 {combo}{/combo} terminatte..txt e.g. {combo}1,Retirement,2,(Reach 65),3,Departure{/combo}
45 {labelInLineStyle}display:none;{/labelInLineStyle}
46 {radio}value,Display,Monthly,Calendar Month,Yearly,Calendar Year{/radio}
47 {subformHeight}240{/subformHeight}
48 {subformWidth}440{/subformWidth}
49 {toolTips}
50 {setConstrain}
51 {email}
52 {upper}
53 {lower}
54 {numeric}
55 {inputMask}
56 {reference}
57 {comboConstrain}
58 {onChange}
59 {colspan}
60 {onFocus}
61 {listtableNumber} (grid table use)
62 {documentStatus} (is document status)
63 {SumTotal} e,g, {SumTotal}SumTotal('tableName()','this.id','this..PRICE','this..AMOUNT'){/SumTotal}
64 {formInit}
65 {labelOndblclick}
66 {labelOndblclickAfter}
69 {spaceLine}
70 {autoComplete}CUSTOMER.NAME{/autoComplete}{noDuplicate}
71 {noDuplicate}
72 {likes}
73 {tdInLineStyle}
74 {folder}
75 {pressAppendEvent}
76 {errMess}
77 {rowspan}
78 {gridAppendData}FORM=productsListOnly{/gridAppendData} {readonly}{width}11{/width}
79 {dblclickGetData}SOURCE_TABLE=PRODUCT, SOURCE_CODE=NO,SOURCE_NAME=DESCRIPTION,TARGET_RECORDID=PRODUCT_RECORDID,TARGET_NAME=DESCRIPTION {/dblclickGetData}
80 {dblclickSetData}FORM=productsListOnly{/dblclickSetData}
83 {rename}TableName~SourceValue~TargetValue~Prefix{/rename}
83 {rename}SALES_ORDER_HEAD~SIGNED_SPO~SALES_ORDER~_SPO{/rename}
84
85 {enableWhen}PRODUCT.PRODUCT_STATUS==A{/enableWhen}
86 {saveDefault}
130 {suffixLabel}mths{/suffixLabel}
153 {enableWhenPartial}
Construct : LoadV[a][153]="P";
RunTime : Input[i][153].equals(PROCESSING_MODE)
***
* index
input.jsp ..... mode=INPUT | LIS
example :
1.2,Customer.EnglishName,text,40%,48,English Name name1 name 2 name3.1x=LC
= labelFormat i.e. (L1,LF,LE,LC) L1=default, LF=Full Label, LE=Elipse...
LC=Clip (chop)
Gobal Variable
- key , keyValue fields formats
- newText, nextField, prevField, upperField, lowerField, enterField
- masterTableName
input paramter
1 page.line e.g. 0.80.n , or .s
2 table. field .value:Default(14) ....
3 inputMethod: i.e. text, date, num, combo , radio, check, file, num.2
4 displayWidth : i.e. % , em : min-width : max:width
5 maxWidh
6 Label=CSS:Second Label=Float (CSS=L1,LF,LE,LC, Float=FR=Float Right)
7 http
1 s span, when 2 div gether join it.
Example
ajax on display database information {refresh}
0.10,sys.total,text,100%:100px:100px,10,:Bank Total Amount,,{inLineStyle}text-align:right;{/inLineStyle}{currency}{refresh}s= 'http://192.168.10.80:8080/hr/tableRead?table=payroll&fields=sum(netpay)&key=bankstatus&value="B"&format=S&callback=?'; $.getJSON(s,function(data) {if (data[0]){_refreshv("sys.total",data[0][0]);}});{/refresh}
box (a border outside the content}
0.90,companyProfile.mpffloor,num.2:BOX,100%:70px:100px,10,MPF Setting:Mininum,,
0.90.s,companyProfile.mpfceiling,num.2:BOX,100%:70px:100px,10,:Maximum,,
0.100,companyProfile.mpfpercent,num.2:BOX,100%:70px:100px,10,:Percent,,
combo from table
0.20,employee.employeeNumber,combo,20%:200px:400px,40,Employee Name,,{events}onchange="keyValue=this.value; retrieval();"{/events} {getJson}tableRead?table=employee&fields=surname,employeenumber&where=where status:`A`&format=S,S&callback=?{/getJson}
combo setting
0.240,employee.terminationReason,combo,28%,50,Termination Reason,,{combo} 1, Regisnation,2,Dissmissal with Benefits,3,End of Employment Contract,4,Layoff / Redundanc,5,Summary Dismissal,+ 6,Intra-group Transfer,7,Early Retirement (Reach 60),8,Retirement (Reach 65),9,Permanent Departure from Hong Kong,10,Total Incapacity ,11,Early Retirement per Contract,12,Retirement per Contract,13,Death {/combo}
data(key and value) display value by key
{data}T,Termination,D,Draft,A,Active{/data}
default
1.300,ir56e.status:D,radio,20%,0,Status (Draft/Submit):D:S,,
example : retrieval
input.jsp?input=paymentTerms.txt&config=paymentTermsConfig.txt&keyValue=1
where config.txt key setting must mach
inline style, invisible
1.300,ir56e.status:D,radio,20%,0,Status (Draft/Submit):D:S,,{default}D{/default} {inLineStyle}display:none;{/inLineStyle}{labelInLineStyle}display:none;{/labelInLineStyle}
Label Full
0.300,employee.status:I,radio,20%,0,Status A-Active T-Terminate=LF:A:T
Default
0.220,employee.terminationDate,date,18%,12,Termination Date=LF,,{default}2001-01-01{/default}
Dynamic Width
0.50,employee.Capacity,text,100%:300px:300px,100,Capacity,,{disabled}
align Center
0.61,employee.status,text:GRID,6,150,Status,,{inLineStyle}text-align:center;{/inLineStyle}
List call sub form edit (config file)
ListSubFormName=payrollInput.txt
ListSubFormConfig=payrollInputConfig.txt
Multi Language
0.10,GENERAL.companyName,text,60%,38,[company Name]
onclick retriefal2 update the list
0.15,employee.Active,button,0,0,:Active,,{onclick}retrieval2('status:`A`');{/onclick}
0.15,employee.ALL,button,0,0,:All,,{onclick}retrieval2('status:`T` or status:`D` or status:`A`');{/onclick}
Refresh after some value input in another field
0.98,payroll.relevantIncome,num.2,10%,10,Relevant Income c(a-b),,{readonly}{currency}{refresh}_refreshv('payroll.relevantIncome',parseFloat(1*_lookup('payroll.grosspay')-1*_lookup('payroll.totaldeduct')).toFixed(2));{/refresh}
Save Enable When (config.txt)
Refresh=if(hadEdit::1){$("#submit1").css( "display", "inline" );} else {$("#submit1").css( "display", "none" );}
Sub form call by button
0.5,payroll.Create,button,0,0,:Create Regular Payroll Entries,,{subform}createRegularPayroll.jsp{/subform}
Sum total
2.261,SALES_ORDER_INV_DESC.PRICE,text:GRID,10%,150,PRICE,,{numeric} {alignRight} {SumTotal}SumTotal('tableName()','SALES_ORDER_INV_DESC.QTY','SALES_ORDER_INV_DESC.PRICE','SALES_ORDER_INV_DESC.AMOUNT'){/SumTotal}
Short form Explain
0.61,employee.status,text:GRID,6,150,Status,,{inLineStyle}text-align:center;{/inLineStyle}{data}T,Termination,D,Draft,A,Active{/data}
Upload Contol
0.55,SALES_ORDER_HEAD.SIGNED_CPO,upload,6,10,Signed CPO,,
{onclick}s=_lookup('SALES_ORDER_HEAD.SALES_ORDER');if(!s) {alert('No S.O. Number, Please Save it Before Continue');mTargetName='NoContinue';} else {s=s+'_CPO';mTargetName=s;}{/onclick}
Structure
parse.input.txt
html.label
label.L1 {clear:both; display:block; float: left; font-size:<%=LabelFontSize%>; margin-bottom:3px; }
label.L1 {width:<%=LABEL_WIDTH%>;}
label.LF {clear:both; display:block; float: left; font-size:<%=LabelFontSize%>; margin-bottom:3px; } /*20130720*/
label.LE {white-space:nowrap;width:12em;overflow:hidden;} /*20130720*/
label.LE {clear:both; display:block; float: left; font-size:<%=LabelFontSize%>; margin-bottom:3px; text-overflow:ellipsis; } /*20130720*/
label.LE {width:<%=LABEL_WIDTH%>;} /*20130720*/
label.LC {white-space:nowrap;width:12em;overflow:hidden;} /*20130720*/
label.LC {clear:both; display:block; float: left; font-size:<%=LabelFontSize%>; margin-bottom:3px; text-overflow:clip; } /*20130720*/
label.LC {width:<%=LABEL_WIDTH%>;} /*20130720*/
沒有留言:
張貼留言