index.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>TODO supply a title</title>
  5. {include file="../application/manage/view/commons/headers.html" }
  6. <script >
  7. // 编辑窗口
  8. var $editWin;
  9. var editWinHeight=$(window).height()-35;
  10. var editWinWidth=$(window).width()*0.98;
  11. $(function(){
  12. $editWin = $('#edit-window').window({
  13. title: '每日医院上传统计信息',
  14. width: editWinWidth,height: editWinHeight,
  15. top: ($(window).height() -editWinHeight ) /2 ,
  16. left: ($(window).width() -editWinWidth ) /2 ,
  17. shadow: true,modal: true,
  18. iconCls: 'icon-edit',closed: true,resizable:true,
  19. minimizable: false,maximizable: true,collapsible: false
  20. });
  21. });
  22. $(window).resize(function() {
  23. editWinWidth=$(window).width()*0.98;
  24. $('#edit-window').window('resize',{
  25. width: editWinWidth,height: editWinHeight
  26. });
  27. });
  28. function statusFormatter(status){
  29. if(status=="0"){
  30. return "屏蔽";
  31. }else if(status=="1"){
  32. return "正常";
  33. }else{
  34. return status;
  35. }
  36. }
  37. function pfromFormatter(source){
  38. if(source){
  39. return "绑定";
  40. }else if(source==null){
  41. return "未绑定";
  42. }else{
  43. return source;
  44. }
  45. }
  46. function sfromFormatter(source){
  47. if(source=="M"){
  48. return "男";
  49. }else if(source=="F"){
  50. return "女";
  51. }else{
  52. return source;
  53. }
  54. }
  55. $(function(){
  56. var height=$(document).height();
  57. $("#dg").height(height);
  58. $('#dg').datagrid({
  59. url:'/manage/studiesnums/datas',
  60. idField:'id',method: 'get',rownumbers: true,showFooter: true,singleSelect:true,selectOnCheck:false,
  61. toolbar: '#tb',pageList: [dgRowSize,dgRowSize*2,50,100],pagination:false,pageSize:dgRowSize,
  62. columns:[[
  63. {field:'institution_name',title:'医院名称',width:"120",align:'left'},
  64. {field:'count',title:'当日检查数量',width:100 },
  65. ]],
  66. onDblClickRow :function(rowIndex,rowData){
  67. showEditWin(rowData.id);
  68. },
  69. });
  70. });
  71. function reload(){
  72. var search = $("#exam1").val();
  73. var url="/manage/studiesnums/datas?search="+(search==null?"":search);
  74. $('#dg').datagrid("reload",url);
  75. }
  76. </script>
  77. </head>
  78. <body>
  79. <div id="dg" class="easyui-datagrid" style="width:100%;height:auto;" ></div>
  80. <div id="tb" class="editform" style="display: none; padding-top: 1px;">&nbsp;
  81. <form id="form">
  82. 检查时间:<input type="text" id="exam1" name="upload_datetime[]" class="easyui-datebox" style="width: 120px;" />
  83. <a id="submit" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search'" style="width: 80px" onclick="reload()" >查询</a>
  84. </form>
  85. </div>
  86. <div id="edit-window" class="easyui-window" style="overflow: hidden" ><iframe src="about:blank" id="editFrame" style="width:100%;height:100%" frameborder="0" scrolling="yes" ></iframe></div>
  87. </body>
  88. </html>