EEP為訊光科技所提供的產品,在此紀錄各種類型的設值及取值
設值
- combobox: $('#id').combobox('setValue')
- datebox :$('#id').datebox('setValue',val)
- textbox:$('#id').val(val)
- RefVal : $('#id').refval('setValue',val)
- YearMonthBox : $('#id').combo('setText',val);
- comboGrid(mutiple) : $('#id').combogrid('setValues',[])
清空: $('#JQComboGrid1').combogrid('grid').datagrid('uncheckAll');
取值
- TextBox:$('#id').val();
- RefVal ( 抓ValueMember) :$('#id').refval('getValue');
- RefVal ( 抓DisplayMember) :$('#id').refval('selectItem').text;
- CheckBox:$('#id').checkbox('getValue')
- ComboGrid:$('#id').combogrid('getValue')
- 多選 ComboGrid:$('#id').combogrid('getValues')
- DateTimeBox:$('#id').datetimebox('getValue')
- Options:$('#id').options('getValue')
- YearMonthBox : $('#id').combo('getText');
- fileupload :
var infofileUpload = $('#dataFormMasterShipPostalCode');
var infofileUploadvalue = $('.info-fileUpload-value', infofileUpload.next())
var file = infofileUploadvalue.val(); //取檔名
將值
- $('#settledYM').yearmonth('disable')
SetWhere
- ComboGrid : $('#id').combogrid('setWhere', '1=1')