EEP 各種設值及取值

  • 1937
  • 0
  • EEP
  • 2021-12-01

EEP為訊光科技所提供的產品,在此紀錄各種類型的設值及取值

設值

  1. combobox: $('#id').combobox('setValue')
  2. datebox :$('#id').datebox('setValue',val)
  3. textbox:$('#id').val(val)​
  4. RefVal : $('#id').refval('setValue',val)
  5. YearMonthBox : $('#id').combo('setText',val);
  6. comboGrid(mutiple) : $('#id').combogrid('setValues',[])
    清空: $('#JQComboGrid1').combogrid('grid').datagrid('uncheckAll');


 

​取值

  1. TextBox:$('#id').val();
  2. RefVal ( 抓ValueMember) :$('#id').refval('getValue');
  3. RefVal ( 抓DisplayMember) :$('#id').refval('selectItem').text;
  4. CheckBox:$('#id').checkbox('getValue')
  5. ComboGrid:$('#id').combogrid('getValue')
  6. 多選 ComboGrid:$('#id').combogrid('getValues')
  7. DateTimeBox:$('#id').datetimebox('getValue')
  8. Options:$('#id').options('getValue')
  9. YearMonthBox : $('#id').combo('getText');
  10. fileupload :
       var infofileUpload = $('#dataFormMasterShipPostalCode');

            var infofileUploadvalue = $('.info-fileUpload-value', infofileUpload.next())

            var file = infofileUploadvalue.val(); //取檔名

​將值

  1. $('#settledYM').yearmonth('disable')

SetWhere

  1. ComboGrid : $('#id').combogrid('setWhere', '1=1')