158 }); |
158 }); |
159 $("#time").jqxNumberInput( PosInt ); |
159 $("#time").jqxNumberInput( PosInt ); |
160 $("#amount_is_weight").jqxCheckBox({ theme: theme, width: 120, height: 23 }); |
160 $("#amount_is_weight").jqxCheckBox({ theme: theme, width: 120, height: 23 }); |
161 $("#use_for").jqxInput({ theme: theme, width: 640, height: 48 }); |
161 $("#use_for").jqxInput({ theme: theme, width: 640, height: 48 }); |
162 $("#always_on_stock").jqxCheckBox({ theme: theme, width: 120, height: 23 }); |
162 $("#always_on_stock").jqxCheckBox({ theme: theme, width: 120, height: 23 }); |
163 $("#inventory").jqxNumberInput( Spin1dec1 ); |
163 $("#inventory").jqxNumberInput( Spin1dec ); |
164 $("#production_date").jqxDateTimeInput( Dateopts ); |
164 $("#production_date").jqxDateTimeInput( Dateopts ); |
165 $("#cost").jqxNumberInput( Spin2dec1 ); |
165 $("#cost").jqxNumberInput( Spin2dec ); |
166 $("#tht_date").jqxDateTimeInput( Dateopts ); |
166 $("#tht_date").jqxDateTimeInput( Dateopts ); |
167 $("#totval").jqxNumberInput( Spin2dec1 ); |
167 $("#totval").jqxNumberInput( Spin2dec ); |
168 $("#totval").jqxNumberInput({ width: 90, readOnly: true, spinButtons: false }); |
168 $("#totval").jqxNumberInput({ width: 90, readOnly: true, spinButtons: false }); |
169 |
169 |
170 var dataAdapter = new $.jqx.dataAdapter(source); |
170 var dataAdapter = new $.jqx.dataAdapter(source); |
171 var editrow = -1; |
171 var editrow = -1; |
172 // initialize jqxGrid |
172 // initialize jqxGrid |