123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>TODO supply a title</title>
- {include file="../application/manage/view/commons/headers.html" }
- <script >
-
- var instsData=new Array();
- {if isset($insts) }
- instsData={$insts};
- {/if}
-
- var months={$months};
- var monSel=new Array();
- monSel["id"]="";
- monSel["text"]="请选择";
- months.unshift(monSel);
- // 编辑窗口
- var $editWin;
- $(function(){
- $editWin = $('#edit-window').window({
- title: '关键词编辑',
- width: 820,height: 500,
- top: ($(window).height() -500 ) /2 ,
- left: ($(window).width() -820 ) /2 ,
- shadow: true,modal: true,
- iconCls: 'icon-edit',closed: true,
- minimizable: false,maximizable: false,collapsible: false
- });
- });
-
- function insFormatter(id){
- for(var i=0;i<instsData.length;i++){
- var row=instsData[i];
- if(row.id==id){
- return row["text"];
- }
- }
- return "--";
- }
-
- $(function(){
- var height=$(document).height();
- $("#dg").height(height);
- $('#dg').datagrid({
- url:'/manage/stats/insdatas',
- idField:'id',method: 'get',rownumbers: true,showFooter: true,
- toolbar: '#tb',pageList: [dgRowSize,dgRowSize*2,50,100],pagination:true,pageSize:dgRowSize,
- columns:[[
- {field:'id',title:'ID',width:180 ,hidden:true },
- {field:'role_id',title:'机构名称',align: 'center',width:"180", formatter:insFormatter },
- {field:'month',title:'月份',width:"15%",align: 'center'},
- {field:'nums',title:'单子数量',width:"15%",align: 'center'},
- {field:'exam_num',title:'影片数量',width:"15%",align: 'center' },
- {field:'remote_num',title:'远程诊断数量',width:"15%",align: 'center' },
- {field:'danger_num',title:'阳性确诊数量',width:"15%",align: 'center' },
- ]],
- onDblClickRow :function(rowData){
- showEditWin(rowData.id);
- },
- });
-
- $('#insts').combotree({
- required:true,multiple:false,editable:false,
- valueField:'id',textField:'name',panelWidth:350,
- data:instsData
- });
-
- $('#month').combotree({
- required:false,multiple:false,editable:false,
- valueField:'id',textField:'name',panelWidth:250,
- data:months
- });
-
- $("#submit").click(function(){
- var insts=$('#insts').combotree("getValue");
- var month=$('#month').combotree("getValue");
- var queryParams = $('#dg').datagrid('options').queryParams;
- queryParams.insts=insts;
- queryParams.month=month;
- $('#dg').datagrid('options').queryParams=queryParams;
- $('#dg').datagrid("reload");
- });
-
- $("#reset").click(function(){
- $('#insts').combotree("setValue","");
- $('#month').combotree("setValue","");
- });
- });
- // 显示编辑窗口
- function showEditWin(id){
- if("undefined"== typeof id){
- $editWin.window('open');$('#editFrame').attr('src','/manage/messages/edit');
- }else{
- $editWin.window('open');$('#editFrame').attr('src','/manage/messages/edit?id='+id);
- }
- }
- // 关闭编辑窗口
- function closeEditWin(isReload){
- $editWin.window('close');
- if(isReload=="reload"){
- document.location.reload();
- }
- }
- </script>
- </head>
- <body>
- <div id="dg" class="easyui-datagrid" style="width:100%;height:auto;" ></div>
- <div id="tb" class="editform" style="display: none; padding-top: 1px;">
- 菜单:<select id="insts" name="insts" style="width: 150px; " ></select>
- 月份:<input type="text" id="month" name="month" class="easyui-textbox" style="width: 100px; vertical-align: middle;" />
- <a id="submit" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search'" style="width: 80px">查询</a>
- <a id="reset" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-clear'" style="width: 80px" onclick="reset()" >重置</a>
-
- </div>
- <div id="edit-window" class="easyui-window" style="width: 80%;height: 450px;" ><iframe src="about:blank" id="editFrame" width="100%" height="100%" frameborder="0" scrolling="no" ></iframe></div>
- </body>
- </html>
|