Index: ssts-web/src/main/webapp/disinfectsystem/useRecord/useRecordForm.js =================================================================== diff -u -r31639 -r31657 --- ssts-web/src/main/webapp/disinfectsystem/useRecord/useRecordForm.js (.../useRecordForm.js) (revision 31639) +++ ssts-web/src/main/webapp/disinfectsystem/useRecord/useRecordForm.js (.../useRecordForm.js) (revision 31657) @@ -21,6 +21,136 @@ singleSelect : false }); +//XJJQZYY-104:使用记录增加必填项配置 + //住院号 + var hospitalNumAllowBlank = true + //诊疗号 + var treatmentNumAllowBlank = true; + //洗手护士 + var washHandNurseAllowBlank = true; + //巡回护士 + var circuitNurseAllowBlank = true; + //手术间 + var operationRoomAllowBlank = true; + //姓名 + var patientNameAllowBlank = true; + //年龄 + var patientAgeAllowBlank = true; + //性别 + var patientSexAllowBlank = true; + //病区 + var patientAreaAllowBlank = true; + //病人所在科室 + var departNameOfpatientAllowBlank = true; + //病室 + var roomNumberAllowBlank = true; + //床位 + var bedNumberAllowBlank = true; + //身份证 + var patientIDCardAllowBlank = true; + //手术医生 + var doctorNameAllowBlank = true; + //主刀医生 + var surgeonAllowBlank = true; + //麻醉医生 + var anesthetistAllowBlank = true; + //麻醉方式 + var anesthesiaModeAllowBlank = true; + //手术名称 + var operationNameAllowBlank = true; + //手术单号 + var operationScheduleIdAllowBlank = true; + //手术时间 + var operationTimeAllowBlank = true; + //住院次数 + var visitIdAllowBlank = true; + //特殊感染类型 + var specialInfectionAllowBlank = true; + //备注 + var remarkAllowBlank = true; + + if(sstsConfig.notAllowBlankFieldsOnUseRecordPage && typeof sstsConfig.notAllowBlankFieldsOnUseRecordPage == 'object'){ + if(sstsConfig.notAllowBlankFieldsOnUseRecordPage.length > 0){ + for(var i=0;i 800){ windowHeight = 720; } - + formObj = new top.Ext.FormPanel({ id : 'useRecordForm', frame : true, @@ -1991,7 +2262,7 @@ fieldLabel : '住院号', id : 'hospitalNum', name : 'hospitalNum', - allowBlank : fromDepartmentUseRecord || getBoolValueFromJs('sstsConfig.useRecordHospitalNumAllowBlank',true), + allowBlank : hospitalNumAllowBlank, enableKeyEvents : true, maxLength:20, maxLengthText :'长度超过限制,不能保存!', @@ -2032,7 +2303,7 @@ fieldLabel : '诊疗号', id : 'treatmentNum', name : 'treatmentNum', - allowBlank : true, + allowBlank : treatmentNumAllowBlank, maxLength:20, maxLengthText :'长度超过限制,不能保存!', enableKeyEvents : true, @@ -2083,7 +2354,7 @@ triggerAction : 'all', hideTrigger : true, typeAhead : false, - allowBlank : fromDepartmentUseRecord || (sstsConfig.allowAllBlankExceptThreeSpecialFields ? true : getBoolValueFromJs('sstsConfig.useRecordWashHandNurseAllowBlank',false)), + allowBlank : washHandNurseAllowBlank, anchor : '96%', listeners : { render : function(c){ @@ -2144,7 +2415,7 @@ triggerAction : 'all', hideTrigger : true, typeAhead : false, - allowBlank : fromDepartmentUseRecord || (sstsConfig.allowAllBlankExceptThreeSpecialFields ? true : getBoolValueFromJs('sstsConfig.useRecordCircuitNurseAllowBlank',false)), + allowBlank : circuitNurseAllowBlank, anchor : '96%', listeners : { render : function(c){ @@ -2213,7 +2484,7 @@ name : 'operationRoom', maxLength:10, maxLengthText :'长度超过限制,不能保存!', - allowBlank : fromDepartmentUseRecord || (sstsConfig.allowAllBlankExceptThreeSpecialFields ? true : useRecordOperationRoomAllowBlank), + allowBlank : operationRoomAllowBlank, anchor : '96%', valueField : 'operationRoomName', displayField : 'operationRoomName', @@ -2264,6 +2535,7 @@ id : 'patientName', name : 'patientName', anchor : '96%', + allowBlank : patientNameAllowBlank, listeners : { blur:function(){ validPatientInfo(); @@ -2280,8 +2552,7 @@ maxLength : '10', id : 'patientAge', name : 'patientAge', - //allowDecimals : false, - //allowNegative : false, + allowBlank : patientAgeAllowBlank, anchor : '96%' }] }, { @@ -2299,6 +2570,7 @@ triggerAction : 'all', forceSelection : true, editable : false, + allowBlank : patientSexAllowBlank, store : new Ext.data.SimpleStore( { fields : [ 'typeName' ], autoLoad : true, @@ -2311,11 +2583,23 @@ columnWidth : 0.33, hidden:fromDepartmentUseRecord, items : [{ - xtype : 'textfield', + xtype : 'combo', fieldLabel : '病区', - maxLength : '60', + valueField : 'patientArea', + displayField : 'patientArea', id : 'patientArea', name : 'patientArea', + mode : 'local', + listWidth :'200', + triggerAction : 'all', + forceSelection : false, + editable : true, + allowBlank : patientAreaAllowBlank, + store : new Ext.data.SimpleStore({ + fields : [ 'patientArea' ], + autoLoad : false, + data :patientAreaList + }), anchor : '96%' }] },{ @@ -2336,7 +2620,7 @@ lazyInit : true, triggerAction : 'all', typeAhead : false, - allowBlank : true, + allowBlank : departNameOfpatientAllowBlank, anchor : '96%', listeners : { select : function(combo, record, index) { @@ -2354,6 +2638,7 @@ maxLength : '16', id : 'roomNumber', name : 'roomNumber', + allowBlank : roomNumberAllowBlank, anchor : '96%' }] }, { @@ -2366,6 +2651,7 @@ maxLength : '16', id : 'bedNumber', name : 'bedNumber', + allowBlank : bedNumberAllowBlank, anchor : '96%' }] }, { @@ -2380,6 +2666,7 @@ name : 'patientIDCard', allowDecimals : false, allowNegative : false, + allowBlank : patientIDCardAllowBlank, anchor : '96%' }] }, { @@ -2392,7 +2679,7 @@ maxLength : '16', id : 'doctorName', name : 'doctorName', - allowBlank : true, + allowBlank : doctorNameAllowBlank, anchor : '96%' }] }, { @@ -2405,7 +2692,7 @@ maxLength : '16', id : 'surgeon', name : 'surgeon', - allowBlank : true, + allowBlank : surgeonAllowBlank, anchor : '96%' }] }, { @@ -2418,7 +2705,7 @@ maxLength : '16', id : 'anesthetist', name : 'anesthetist', - allowBlank : true, + allowBlank : anesthetistAllowBlank, anchor : '96%' }] }, { @@ -2431,7 +2718,7 @@ maxLength : '16', id : 'anesthesiaMode', name : 'anesthesiaMode', - allowBlank : true, + allowBlank : anesthesiaModeAllowBlank, anchor : '96%' }] }, { @@ -2451,6 +2738,7 @@ triggerAction : 'all', hideTrigger : true, typeAhead : false, + allowBlank : operationNameAllowBlank, editable : true, name : "operation", id : "operation", @@ -2466,7 +2754,7 @@ maxLength : '16', id : 'operationScheduleId', name : 'operationScheduleId', - allowBlank : true, + allowBlank : operationScheduleIdAllowBlank, anchor : '96%' }] },{ @@ -2481,10 +2769,10 @@ altFormats:'Y-m-d|Y-n-j|y-n-j|y-m-j|y-m-d|y-n-d|Y-n-d|Y-m-j|Ymd|Ynj|ynj|ymj|ymd|ynd|Ynd|Ymj|Y/m/d|Y/n/j|y/n/j|y/m/j|y/m/d|y/n/d|Y/n/d|Y/m/j', format : 'Y-m-d H:i', readOnly : true, + allowBlank : operationTimeAllowBlank, width : 150 }] },{ - layout : 'form', columnWidth : 0.33, hidden:fromDepartmentUseRecord, @@ -2493,11 +2781,10 @@ fieldLabel : '住院次数', id : 'visitId', name : 'visitId', - allowBlank : true, + allowBlank : visitIdAllowBlank, anchor : '96%' }] },{ - layout : 'form', columnWidth : 0.33, height:26, @@ -2525,17 +2812,6 @@ format : 'Y-m-d H:i', readOnly : true, width : 150 - - -// xtype : 'textfield', -// fieldLabel : '录入时间', -// maxLength : '41', -// id : 'enteringTime', -// name : 'enteringTime', -// readOnly : true, -// allowBlank : false, -// anchor : '96%', -// cls : 'fieldReadOnlyNoRemove' }] },{ layout : 'form', @@ -2596,6 +2872,7 @@ triggerAction : 'all', forceSelection : true, editable : false, + allowBlank : specialInfectionAllowBlank, store : new Ext.data.SimpleStore({ fields : [ 'specialInfection' ], autoLoad : false, @@ -2635,6 +2912,7 @@ id : 'remark', name : 'remark', anchor : '97%', + allowBlank : remarkAllowBlank, height : 25 }] },{ Index: ssts-web/src/main/webapp/disinfectsystem/useRecord/useRecordView.jsp =================================================================== diff -u -r31639 -r31657 --- ssts-web/src/main/webapp/disinfectsystem/useRecord/useRecordView.jsp (.../useRecordView.jsp) (revision 31639) +++ ssts-web/src/main/webapp/disinfectsystem/useRecord/useRecordView.jsp (.../useRecordView.jsp) (revision 31657) @@ -29,6 +29,17 @@ } tem += "]"; request.setAttribute("specialInfectionList", tem); + + List patientAreaList = httpOptionManager.getHttpOptionTextById("patientArea"); + String tem2 = "["; + if(patientAreaList!=null && patientAreaList.size() !=0){ + for(String patientArea : patientAreaList){ + tem2 += "['"+patientArea+"'],"; + } + tem2 = tem2.substring(0, tem2.length()-1); + } + tem2 += "]"; + request.setAttribute("patientAreaList", tem2); //判断当前科室是否为一级供应室,如果是则parm_s_departCoding的隐藏域不传值 SupplyRoomConfigManager supplyRoomConfigManager = (SupplyRoomConfigManager)SpringBeanManger.getBean("supplyRoomConfigManager"); @@ -57,6 +68,13 @@ <%@ include file="/common/includeExtJsAndCss.jsp"%> <%@ include file="/common/include_Ext42_Js.jsp"%> + @@ -103,6 +121,8 @@ //视频类型(申请采集视频) var videoTypeApplication = '<%=VideoFile.VIDEO_TYPE_CAMERA_APPLICATION%>'; var specialInfectionList = ${specialInfectionList}; +var patientAreaList = ${patientAreaList}; +console.log(patientAreaList) //1.使用记录(病人使用记录)相关的操作权限 var SSTS_UseRecord_Create = true; @@ -183,12 +203,6 @@ } -//是否从"科室使用记录"菜单链接过来 -var fromDepartmentUseRecord; -if('${param.departmentUseRecord}' && sstsConfig.enableDepartmentUseRecord){ - fromDepartmentUseRecord = true; -} - //定义源页面,用于同步病人接口 var sourcePage_useRecord = 1;