Index: ssts-web/src/main/webapp/disinfectsystem/invoice/operationReservationView.js =================================================================== diff -u -r27254 -r33370 --- ssts-web/src/main/webapp/disinfectsystem/invoice/operationReservationView.js (.../operationReservationView.js) (revision 27254) +++ ssts-web/src/main/webapp/disinfectsystem/invoice/operationReservationView.js (.../operationReservationView.js) (revision 33370) @@ -269,7 +269,8 @@ width : 660, autoHeight : true, autoScroll : true, - labelAlign : 'left', + labelAlign : 'right', + labelWidth:60, items:[{ layout : 'column', items : [{ @@ -287,7 +288,6 @@ },{ columnWidth : 1, layout : 'form', - labelWidth : 65, items : [{ xtype:'textarea', height : 20, @@ -304,7 +304,6 @@ id:'serialNum', columnWidth : .33, layout : 'form', - labelWidth : 65, hidden : (id == ""?true:false), items : [{ xtype : 'textfield', @@ -321,7 +320,6 @@ columnWidth : .33, hidden : true, layout : 'form', - labelWidth : 65, items : [{ xtype : 'textfield', fieldLabel : '操作员', @@ -337,7 +335,6 @@ },{ columnWidth : .33, layout : 'form', - labelWidth : 65, items : [{ xtype : 'combo', id : 'depart', @@ -383,7 +380,6 @@ }, { columnWidth : .33, layout : 'form', - labelWidth : 65, items : [{ xtype : 'combo', fieldLabel : '处理科室', @@ -396,7 +392,7 @@ forceSelection : true, allowBlank : false, triggerAction : 'all', - width:149, + anchor : '100%', listeners : { select : function(combo , record , index){ top.Ext.getCmp('handleDepartCoding').setValue(record.data.cssdOrgUnitCode); @@ -406,7 +402,6 @@ },{ columnWidth : .33, layout : 'form', - labelWidth : 65, items : [{ xtype : sstsConfig.onlySelectExistedOperationRoom ? 'combo' :'textfield', fieldLabel : '手术间', @@ -446,7 +441,6 @@ },{ columnWidth : .33, layout : 'form', - labelWidth : 65, items : [{ xtype : 'datefieldWithMin', fieldLabel : '手术时间', @@ -461,7 +455,6 @@ },{ columnWidth : .33, layout : 'form', - labelWidth : 65, items : [{ xtype : 'textfield', fieldLabel : '医生', @@ -474,7 +467,6 @@ },{ columnWidth : .33, layout : 'form', - labelWidth : 65, items : [{ xtype : 'textfield', fieldLabel : '住院号', @@ -487,7 +479,6 @@ },{ columnWidth : .33, layout : 'form', - labelWidth : 65, items : [{ xtype : 'textfield', fieldLabel : '病人姓名', @@ -500,7 +491,6 @@ },{ columnWidth : .33, layout : 'form', - labelWidth : 65, items : [{ xtype : 'textfield', fieldLabel : '病区', @@ -513,7 +503,6 @@ },{ columnWidth : .33, layout : 'form', - labelWidth : 65, items : [{ xtype : 'textfield', fieldLabel : '手术台次', @@ -526,7 +515,6 @@ },{ columnWidth : .33, layout : 'form', - labelWidth : 65, items : [{ xtype : 'textfield', fieldLabel : '病人年龄', @@ -542,7 +530,6 @@ columnWidth : .33, layout : 'form', hidden:true, - labelWidth : 65, items : [{ xtype : 'textfield', fieldLabel : '手术编号', @@ -555,7 +542,6 @@ }, { columnWidth : 1, layout : 'form', - labelWidth : 65, items : [{ xtype : 'textarea', fieldLabel : '备注', @@ -605,7 +591,7 @@ }, {header : "删除",width : 80,menuDisabled : true,dataIndex : 'deleteButton', id:'expandColumn', renderer:renderDeleteButton} ]), - width :665, + width:(document.body.clientWidth > 700)?665:(document.body.clientWidth - 80), height : 350, autoExpandColumn : 'expandColumn', clicksToEdit : 1,// 设置点击几次才可编辑 @@ -663,7 +649,7 @@ valueField : 'id', displayField : 'displayName', anchor : '100%', - width:300, + width:(document.body.clientWidth > 700)?300:200, store : tousseAndDiposableGoodsStore, lazyInit : true, triggerAction : 'all', @@ -726,12 +712,11 @@ } }] }); - operationReservationWindow = new top.Ext.Window( { id : 'operationReservationWin', layout : 'fit', title : '手术预约单信息', - width : 700, + width : (document.body.clientWidth > 700)?700:(document.body.clientWidth - 50) , modal : true, autoHeight : true, border :false, @@ -951,24 +936,24 @@ return "
" + status + "
"; } - var form = new Ext.Panel({ + var form = new Ext.form.FormPanel({ title : '', - layout : 'table', - frame : true, region : 'north', - border : false, - bodyBorder : false, - layoutConfig : {columns : 2}, - autoScroll : true, + labelAlign : 'right', + buttonAlign : 'center', + collapsible : true, + collapseMode : 'mini', + split : true, + border : 0, + frame : true, + bodyStyle : 'padding:0px auto;margin:0px', height : 100, - // height : fontSize == 12 ? 88 : 130, items : [{ - width : 980, layout : 'column', items:[{ columnWidth : .33, layout : 'form', - labelWidth : 110, + labelWidth : 80, labelAlign:"right", items : [{ xtype : 'combo', @@ -991,7 +976,7 @@ },{ columnWidth : .33, layout : 'form', - labelWidth : 110, + labelWidth : 80, labelAlign:"right", items : [{ xtype : 'combo', @@ -1014,7 +999,7 @@ },{ columnWidth : .33, layout : 'form', - labelWidth : 110, + labelWidth : 80, labelAlign:"right", items : [{ xtype : 'textfield', @@ -1033,7 +1018,7 @@ },{ columnWidth : .33, layout : 'form', - labelWidth : 110, + labelWidth : 80, labelAlign:"right", items : [{ xtype : 'datefield', @@ -1050,7 +1035,7 @@ },{ columnWidth : .33, layout : 'form', - labelWidth : 110, + labelWidth : 80, labelAlign:"right", items : [{ xtype : 'datefield', @@ -1065,40 +1050,31 @@ anchor : '95%' }] }] - },{ - width : 150, - layout : 'column', - items : [{ - columnWidth : .5, - layout :'form', - items : [{ - xtype : 'button', - text : '查询', - minWidth : 50, - iconCls : 'icon_search', - handler : function() { - lastSelIdArray = []; - initQueryValueAndReload(); - } - }] + }], + buttons : [ + { + xtype : 'button', + text : '查询', + minWidth : 70, + iconCls : 'icon_search', + handler : function() { + lastSelIdArray = []; + initQueryValueAndReload(); + } },{ - columnWidth : .5, - layout :'form', - items : [{ - xtype : 'button', - text : '重置', - minWidth : 50, - iconCls : 'icon_set', - handler : function() { //查询条件全部重置 - $Id('query_committedStatus').value = "未提交"; - $Id('query_invoiceStatus').value = "全部"; - $Id('query_operatingRoom').value = ""; - $Id('query_operationTime_start').value = ""; - $Id('query_operationTime_end').value = ""; - } - }] - }] - }] + xtype : 'button', + text : '重置', + minWidth : 70, + iconCls : 'icon_set', + handler : function() { + $Id('query_committedStatus').value = "未提交"; + $Id('query_invoiceStatus').value = "全部"; + $Id('query_operatingRoom').value = ""; + $Id('query_operationTime_start').value = ""; + $Id('query_operationTime_end').value = ""; + } + } + ] }); var columns = [ @@ -1190,7 +1166,7 @@ } },'-',{ text : '打印', - hidden : SSTS_OR_Create, + hidden : SSTS_OR_Create || (hideButton == false || hideButton == 'false'), iconCls : 'icon_print', handler : function() { batchPrintOperationReservation(grid);