noOrderWarehouses.js 1017 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /**
  2. *
  3. */
  4. $(function() {
  5. $(document).ready(function() {
  6. attendanceStatssearch();
  7. });
  8. });
  9. function attendanceStatssearch(){
  10. handleAjaxSimple("dsdemoController.do?getNoOrderWarehouseData", "", handleSuccess);
  11. }
  12. function handleSuccess(data){
  13. $("#upcharheaddiv").html(data.yearmonth+"月度未提交申购的领料点");
  14. var colums ;
  15. colums = [[
  16. {field:'warehouseName',title:'名称',width:150},
  17. {field:'warehouseAddress',title:'地址',width:150}
  18. ]]
  19. $('#noOrdersWarehousesTable').datagrid({
  20. singleSelect : true,
  21. loadMsg:'数据加载中,请稍后……',
  22. columns:colums,
  23. rownumbers:true,
  24. fitColumns:true
  25. }).datagrid('loadData',data.statsData);
  26. $(".content").show();
  27. $("#tablediv").show();
  28. $("#attendanceStatsTable").show();
  29. // var h=document.documentElement.clientclient;
  30. // var w=document.documentElement.clientWidth;
  31. // $('#attendanceStatsTable').datagrid('resize', {
  32. // height :h-20, width:w-20
  33. // });
  34. }