";
}
- if(record.get('status') == '灭菌失败'){
+ if (record.get('status') == '灭菌失败') {
result += "";
- }else {
+ } else {
result += "";
}
result += v;
@@ -795,63 +809,63 @@
}
}
//重新灭菌
-function actionFun(v, p, record){
+function actionFun(v, p, record) {
var packageSterilizationCount = record.data['packageSterilizationCount'];
var sterilizerName = record.data['sterilizer.name'];
var frequency = record.data['frequency'];
var tempId = sterilizerName + '-' + frequency; //给一个id,方便自动化测试的定位
- if(v == '灭菌失败' && packageSterilizationCount <=1){
- tempId += "-failureHandle" ;
+ if (v == '灭菌失败' && packageSterilizationCount <= 1) {
+ tempId += "-failureHandle";
var str = "
";
return str;
}
- if(v == '灭菌中断' && packageSterilizationCount <=1){
- tempId += "-interruptionHandle" ;
+ if (v == '灭菌中断' && packageSterilizationCount <= 1) {
+ tempId += "-interruptionHandle";
var str = "
";
return str;
}
return;
}
-function renderColor(v, p, record){
+function renderColor(v, p, record) {
var status = record.data['status'];
var sterilizerName = record.data['sterilizer.name'];
var frequency = record.data['frequency'];
var statusId = sterilizerName + '-' + frequency; //给一个id,方便自动化测试的定位
var color = "";
- if(statusBegin == status){//待灭菌中 黄色
+ if (statusBegin == status) {//待灭菌中 黄色
color = "yellow";
- }else if(statusFailure == status){//灭菌失败
+ } else if (statusFailure == status) {//灭菌失败
color = "#F5A7FA";
- }else if(statusInterrupt == status){//灭菌中断
+ } else if (statusInterrupt == status) {//灭菌中断
color = "#FFCC80";
}
- return "" + v + "
";
+ return "" + v + "
";
}
-function openSterilizerRecord(id){
- openModalWindowForExt(WWWROOT+'/disinfectsystem/sterilizationmanager/sterilizerRecord/sterilizerRecordView.jsp?popType=true&sterilizationRecordId='+id,'', '灭菌器参数', '1000', '550');
+function openSterilizerRecord(id) {
+ openModalWindowForExt(WWWROOT + '/disinfectsystem/sterilizationmanager/sterilizerRecord/sterilizerRecordView.jsp?popType=true&sterilizationRecordId=' + id, '', '灭菌器参数', '1000', '550');
}
-function openSterilizerRecordLineChart(id){
- openModalWindowForExt(WWWROOT+'/disinfectsystem/sterilizationmanager/sterilizerRecord/sterilizerLineChart.jsp?sterilizationRecordId='+id,'', '灭菌器参数', '1050', '550');
+function openSterilizerRecordLineChart(id) {
+ openModalWindowForExt(WWWROOT + '/disinfectsystem/sterilizationmanager/sterilizerRecord/sterilizerLineChart.jsp?sterilizationRecordId=' + id, '', '灭菌器参数', '1050', '550');
}
-function openLowSterilizerRecordLineChart(id,sterilizationUser){
- openModalWindowForExt(WWWROOT+'/disinfectsystem/sterilizationmanager/sterilizerRecord/lowSterilizerLineChart.jsp?sterilizationRecordId='+id,'', '灭菌器参数', '1050', '550');
+function openLowSterilizerRecordLineChart(id, sterilizationUser) {
+ openModalWindowForExt(WWWROOT + '/disinfectsystem/sterilizationmanager/sterilizerRecord/lowSterilizerLineChart.jsp?sterilizationRecordId=' + id, '', '灭菌器参数', '1050', '550');
}
-function openHighSterilizerRecordLineChart(id,sterilizationUser){
- openModalWindowForExt(WWWROOT+'/disinfectsystem/sterilizationmanager/sterilizerRecord/highSterilizerLineChart.jsp?sterilizationRecordId='+id,'', '灭菌器参数', '1050', '600');
+function openHighSterilizerRecordLineChart(id, sterilizationUser) {
+ openModalWindowForExt(WWWROOT + '/disinfectsystem/sterilizationmanager/sterilizerRecord/highSterilizerLineChart.jsp?sterilizationRecordId=' + id, '', '灭菌器参数', '1050', '600');
}
-function openLowTempForJohnsonSterilizerRecordLineChart(id,sterilizerName){
- openModalWindowForExt(WWWROOT+'/disinfectsystem/sterilizationmanager/sterilizerRecord/lowTempForJohnsonSterilizerLineChart.jsp?sterilizationRecordId='+id+'&sterilizerName='+encodeURI(sterilizerName),'', '灭菌炉运行参数', '1050', '550');
+function openLowTempForJohnsonSterilizerRecordLineChart(id, sterilizerName) {
+ openModalWindowForExt(WWWROOT + '/disinfectsystem/sterilizationmanager/sterilizerRecord/lowTempForJohnsonSterilizerLineChart.jsp?sterilizationRecordId=' + id + '&sterilizerName=' + encodeURI(sterilizerName), '', '灭菌炉运行参数', '1050', '550');
}
function renderBiologicalMonitoringStatus(v, p, record) {
if (v == '进行中') {
return "" + v + "
";
- }else if(v == '已结束'){
+ } else if (v == '已结束') {
return "" + v + "";
- } else if(v == '已确认') {
+ } else if (v == '已确认') {
return "
" + v + "";
- } else if(v == '未做') {
+ } else if (v == '未做') {
return "
" + v + "";
} else {
return v;
@@ -862,300 +876,312 @@
* @returns {[*,*,*,*,*]}
*/
function getTimeComboData() {
- var dateHelper = new DateHelper();
- var applyDateDataArray = [];
- var format = 'yyyy-MM-dd HH:mm';
- var url = WWWROOT + '/system/serverTimeAction!getInvoicePlanComboTime.do';
- dateHelper.getServerTimeByJQ(format, Ext, url, function (result) {
- var time = result.time;
- applyDateDataArray.push(['今天', time.todayTime]);
- applyDateDataArray.push(['昨天', time.yesterdayTodayTime]);
- applyDateDataArray.push(['近三天', time.threeDayBeforeTodayTime]);
- applyDateDataArray.push(['一周内', time.withinWeekTodayTime]);
- });
- return applyDateDataArray;
+ var dateHelper = new DateHelper();
+ var applyDateDataArray = [];
+ var format = 'yyyy-MM-dd HH:mm';
+ var url = WWWROOT + '/system/serverTimeAction!getInvoicePlanComboTime.do';
+ dateHelper.getServerTimeByJQ(format, Ext, url, function (result) {
+ var time = result.time;
+ applyDateDataArray.push(['今天', time.todayTime]);
+ applyDateDataArray.push(['昨天', time.yesterdayTodayTime]);
+ applyDateDataArray.push(['近三天', time.threeDayBeforeTodayTime]);
+ applyDateDataArray.push(['一周内', time.withinWeekTodayTime]);
+ });
+ return applyDateDataArray;
}
-Ext.onReady(function() {
+Ext.onReady(function () {
Ext.QuickTips.init();
// 记录cookie(3步)
var columns = [
- {header : "灭菌员",width : 120,dataIndex : 'sterilizationUser', renderer : renderCallModifyFunction},
- {header : "开始时间",width : 125,dataIndex : 'startDate',renderer : myDateFormatByMinute},
- {header : "确认完成人",width : 70,dataIndex : 'finishComfirmer'},
- {header : confirmUserName,width : 110,dataIndex : 'srSituationComfirmer',hidden : !((sstsConfig.hasOwnProperty('sterilizationRecordFinishConfirm')) && sstsConfig.sterilizationRecordFinishConfirm)},
- {header : confirmTimeName,width : 130,dataIndex : 'srSituationComfirmTime',hidden : !((sstsConfig.hasOwnProperty('sterilizationRecordFinishConfirm')) && sstsConfig.sterilizationRecordFinishConfirm)},
- {header : "结束时间",width : 125,dataIndex : 'endDate',renderer : myDateFormatByMinute},
- {header : "灭菌目的",width : 120,dataIndex : 'sterilizationPurpose'},
- {header : "灭菌炉",width : 160,dataIndex : 'sterilizer.name'},
- {header : "炉次",width : 40,align:'center',dataIndex : 'frequency'},
- {header : "灭菌状态",width : 60,dataIndex : 'status', renderer : renderColor},
- {header : "生物监测状态",width : 100,align:'center',dataIndex : 'biologicalMonitoringStatus',renderer : renderBiologicalMonitoringStatus, hidden : !sstsConfig.showBiologicalMonitoringStatus},
- {header : "物理监测结果",width : 100,align:'center',dataIndex : 'physicsResult'},
- {header : "化学监测结果",width : 100,align:'center',dataIndex : 'chemistryResult'},
- {header : "生物监测结果",width : 100,align:'center',dataIndex : 'biologyResult'},
- {id : 'SterilizationType',header : "灭菌程序",width : 80,align:'center',dataIndex : 'sterilizationType'},
- {header : "灭菌总数量",width : 70,align:'center',dataIndex : 'amount'},
- {header : "灭菌器参数",width : 70,dataIndex : 'sterilizerRecordAmount',sortable :false,renderer: function(v,p,record){
- if(record.data.sterilizerRecordAmount > 0){
- return "
";
- }else if(record.data.sterilizationParaType == 1){
- return "
";
- }else if(record.data.sterilizationParaType == 2){
- return "
";
- }else if(record.data.sterilizationParaType == 3){
- return "
";
- }else{
- return null;
- }
- }},
- {header : "打印状态",width : 70,dataIndex : 'printStatus',hidden : !printConfig.sterilizationRecordDetail},
- {header : "备注",width : 150,dataIndex : 'remark'},
- {header : "查看灭菌图片",width : 150,dataIndex : 'isExist',hidden:showSterilizationImgIcon,renderer:function(v,p,record){
- if(record.data.isExist ==true){
- return "
";
- }else{
- return null
- }
- },sortable: false,menuDisabled : true},
- {id : 'action',header : "操作",width : 70,dataIndex : 'status',renderer : actionFun}
-
+ { header: "灭菌员", width: 120, dataIndex: 'sterilizationUser', renderer: renderCallModifyFunction },
+ { header: "开始时间", width: 125, dataIndex: 'startDate', renderer: myDateFormatByMinute },
+ { header: "确认完成人", width: 70, dataIndex: 'finishComfirmer' },
+ { header: confirmUserName, width: 110, dataIndex: 'srSituationComfirmer', hidden: !((sstsConfig.hasOwnProperty('sterilizationRecordFinishConfirm')) && sstsConfig.sterilizationRecordFinishConfirm) },
+ { header: confirmTimeName, width: 130, dataIndex: 'srSituationComfirmTime', hidden: !((sstsConfig.hasOwnProperty('sterilizationRecordFinishConfirm')) && sstsConfig.sterilizationRecordFinishConfirm) },
+ { header: "结束时间", width: 125, dataIndex: 'endDate', renderer: myDateFormatByMinute },
+ { header: "灭菌目的", width: 120, dataIndex: 'sterilizationPurpose' },
+ { header: "灭菌炉", width: 160, dataIndex: 'sterilizer.name' },
+ { header: "炉次", width: 40, align: 'center', dataIndex: 'frequency' },
+ { header: "灭菌状态", width: 60, dataIndex: 'status', renderer: renderColor },
+ { header: "生物监测状态", width: 100, align: 'center', dataIndex: 'biologicalMonitoringStatus', renderer: renderBiologicalMonitoringStatus, hidden: !sstsConfig.showBiologicalMonitoringStatus },
+ { header: "物理监测结果", width: 100, align: 'center', dataIndex: 'physicsResult' },
+ { header: "化学监测结果", width: 100, align: 'center', dataIndex: 'chemistryResult' },
+ { header: "生物监测结果", width: 100, align: 'center', dataIndex: 'biologyResult' },
+ { id: 'SterilizationType', header: "灭菌程序", width: 80, align: 'center', dataIndex: 'sterilizationType' },
+ { header: "灭菌总数量", width: 70, align: 'center', dataIndex: 'amount' },
+ {
+ header: "灭菌器参数", width: 70, dataIndex: 'sterilizerRecordAmount', sortable: false, renderer: function (v, p, record) {
+ if (record.data.sterilizerRecordAmount > 0) {
+ return "
";
+ } else if (record.data.sterilizationParaType == 1) {
+ return "
";
+ } else if (record.data.sterilizationParaType == 2) {
+ return "
";
+ } else if (record.data.sterilizationParaType == 3) {
+ return "
";
+ } else {
+ return null;
+ }
+ }
+ },
+ { header: "打印状态", width: 70, dataIndex: 'printStatus', hidden: !printConfig.sterilizationRecordDetail },
+ { header: "备注", width: 150, dataIndex: 'remark' },
+ {
+ header: "查看灭菌图片", width: 150, dataIndex: 'isExist', hidden: showSterilizationImgIcon, renderer: function (v, p, record) {
+ if (record.data.isExist == true) {
+ return "
";
+ } else {
+ return null
+ }
+ }, sortable: false, menuDisabled: true
+ },
+ { id: 'action', header: "操作", width: 70, dataIndex: 'status', renderer: actionFun }
+
];
- var statusOptions = (sstsConfig.enableSterilizationDraftStatus)?[statusBegin, statusEnd, statusFailure,statusDraft]:[statusBegin, statusEnd, statusFailure]
+ var statusOptions = (sstsConfig.enableSterilizationDraftStatus) ? [statusBegin, statusEnd, statusFailure, statusDraft] : [statusBegin, statusEnd, statusFailure]
var filters = new Ext.grid.GridFilters({
- filters : [
- {type : 'string',dataIndex : 'sterilizationUser'},
- {type : 'string',dataIndex : 'finishComfirmer'},
- {type : 'string',dataIndex : 'srSituationComfirmer'},
- {type : 'string',dataIndex : 'srSituationComfirmTime'},
- {type : 'date',dataIndex : 'startDate'},
- {type : 'date',dataIndex : 'endDate'},
- {type : 'string',dataIndex : 'sterilizationPurpose'},
- {type : 'string',dataIndex : 'sterilizationType'},
- {type : 'string',dataIndex : 'sterilizer.name'},
- {type : 'numeric',dataIndex : 'sterilizationParaType'},
- {type : 'numeric',dataIndex : 'frequency'},
- {type : 'string',dataIndex : 'biologicalMonitoringStatus'},
- {type : 'string',dataIndex : 'physicsResult'},
- {type : 'string',dataIndex : 'chemistryResult'},
- {type : 'string',dataIndex : 'biologyResult'},
- {type : 'string',dataIndex : 'printStatus'},
- {type : 'string',dataIndex : 'isExist'},
- {type : 'list',dataIndex : 'status',options : statusOptions,phpMode : true
- }]
+ filters: [
+ { type: 'string', dataIndex: 'sterilizationUser' },
+ { type: 'string', dataIndex: 'finishComfirmer' },
+ { type: 'string', dataIndex: 'srSituationComfirmer' },
+ { type: 'string', dataIndex: 'srSituationComfirmTime' },
+ { type: 'date', dataIndex: 'startDate' },
+ { type: 'date', dataIndex: 'endDate' },
+ { type: 'string', dataIndex: 'sterilizationPurpose' },
+ { type: 'string', dataIndex: 'sterilizationType' },
+ { type: 'string', dataIndex: 'sterilizer.name' },
+ { type: 'numeric', dataIndex: 'sterilizationParaType' },
+ { type: 'numeric', dataIndex: 'frequency' },
+ { type: 'string', dataIndex: 'biologicalMonitoringStatus' },
+ { type: 'string', dataIndex: 'physicsResult' },
+ { type: 'string', dataIndex: 'chemistryResult' },
+ { type: 'string', dataIndex: 'biologyResult' },
+ { type: 'string', dataIndex: 'printStatus' },
+ { type: 'string', dataIndex: 'isExist' },
+ {
+ type: 'list', dataIndex: 'status', options: statusOptions, phpMode: true
+ }]
});
-
+
var readerDetail = [
- {name : 'id'},
- {name : 'sterilizationUser'},
- {name : 'finishComfirmer'},
- {name : 'srSituationComfirmer'},
- {name : 'srSituationComfirmTime'},
- {name : 'startDate'},
- {name : 'sterilizationPurpose'},
- {name : 'sterilizationType'},
- {name : 'sterilizer.name'},
- {name : 'sterilizationParaType'},
- {name : 'status'},
- {name : 'endDate'},
- {name : 'packageSterilizationCount'},
- {name : 'frequency'},
- {name : 'sterilizerRecordAmount'},
- {name : 'amount'},
- {name : 'printStatus'},
- {name : 'physicsResult'},
- {name : 'chemistryResult'},
- {name : 'biologyResult'},
- {name : 'biologicalMonitoringStatus'},
- {name : 'remark'},
- {name : 'includeImplant'},
- {name : 'isExist'}
+ { name: 'id' },
+ { name: 'sterilizationUser' },
+ { name: 'finishComfirmer' },
+ { name: 'srSituationComfirmer' },
+ { name: 'srSituationComfirmTime' },
+ { name: 'startDate' },
+ { name: 'sterilizationPurpose' },
+ { name: 'sterilizationType' },
+ { name: 'sterilizer.name' },
+ { name: 'sterilizationParaType' },
+ { name: 'status' },
+ { name: 'endDate' },
+ { name: 'packageSterilizationCount' },
+ { name: 'frequency' },
+ { name: 'sterilizerRecordAmount' },
+ { name: 'amount' },
+ { name: 'printStatus' },
+ { name: 'physicsResult' },
+ { name: 'chemistryResult' },
+ { name: 'biologyResult' },
+ { name: 'biologicalMonitoringStatus' },
+ { name: 'remark' },
+ { name: 'includeImplant' },
+ { name: 'isExist' }
];
var sign = true;
var tbar = null;
- if(isQueryToday){
+ if (isQueryToday) {
tbar = [{
- text : '添加',
- hidden : SSTS_Sterilization_Create,
- iconCls : 'btn_ext_application_add',
- id : 'addBtn',
- handler : function() {
- addAndEditSterilizationRecord(0,'',false,'');
+ text: '添加',
+ hidden: SSTS_Sterilization_Create,
+ iconCls: 'btn_ext_application_add',
+ id: 'addBtn',
+ handler: function () {
+ addAndEditSterilizationRecord(0, '', false, '');
}
}, '-', {
- text : '修改',
- hidden : SSTS_Sterilization_Update,
- iconCls : 'btn_ext_application_edit',
-// id : 'editTbar',
- id : 'modifyBtn',
- handler : function() {
+ text: '修改',
+ hidden: SSTS_Sterilization_Update,
+ iconCls: 'btn_ext_application_edit',
+ // id : 'editTbar',
+ id: 'modifyBtn',
+ handler: function () {
loadFormData(grid);
}
}, '-', {
- text : '开始灭菌',
- hidden : !sstsConfig.enableSterilizationDraftStatus,
- iconCls : 'btn_ext_application_save',
-// id : 'editTbar'
- id : 'beginSterilizationBtn',
- handler : function() {
+ text: '开始灭菌',
+ hidden: !sstsConfig.enableSterilizationDraftStatus,
+ iconCls: 'btn_ext_application_save',
+ // id : 'editTbar'
+ id: 'beginSterilizationBtn',
+ handler: function () {
sterilizationBegin(grid);
}
}, '-', {
- text : '完成灭菌',
- hidden : SSTS_Sterilization_Update,
- iconCls : 'btn_ext_application_save',
-// id : 'editTbar',
- id : 'completeSterilizationBtn',
- handler : function() {
- sterilizationComplete(grid,statusEnd);
+ text: '完成灭菌',
+ hidden: SSTS_Sterilization_Update,
+ iconCls: 'btn_ext_application_save',
+ // id : 'editTbar',
+ id: 'completeSterilizationBtn',
+ handler: function () {
+ sterilizationComplete(grid, statusEnd);
}
}, '-', {
- text : '灭菌中断',
- hidden : SSTS_Sterilization_Update,
- iconCls : 'btn_ext_application_error',
-// id : 'failureTbar',
- id : 'sterilizationInterruptBtn',
- handler : function() {
+ text: '灭菌中断',
+ hidden: SSTS_Sterilization_Update,
+ iconCls: 'btn_ext_application_error',
+ // id : 'failureTbar',
+ id: 'sterilizationInterruptBtn',
+ handler: function () {
sterilizerStatus = statusInterrupt;
- sterilizationInterrupt(grid,statusInterrupt);
+ sterilizationInterrupt(grid, statusInterrupt);
}
- }, '-', {
- text : '灭菌失败',
- hidden : SSTS_Sterilization_Update,
- iconCls : 'btn_ext_application_error',
-// id : 'failureTbar',
- id : 'sterilizationFailureBtn',
- handler : function() {
+ }, '-', {
+ text: '灭菌失败',
+ hidden: SSTS_Sterilization_Update,
+ iconCls: 'btn_ext_application_error',
+ // id : 'failureTbar',
+ id: 'sterilizationFailureBtn',
+ handler: function () {
sterilizerStatus = statusFailure;
- sterilizationFailure(grid,statusFailure);
+ sterilizationFailure(grid, statusFailure);
}
- },{
- text : confirmBtn,
- hidden : !((sstsConfig.hasOwnProperty('sterilizationRecordFinishConfirm')) && sstsConfig.sterilizationRecordFinishConfirm),
- iconCls : 'btn_ext_application_error',
-// id : 'confirmTbar',
- id : 'confirmBtn',
- handler : function() {
+ }, {
+ text: confirmBtn,
+ hidden: !((sstsConfig.hasOwnProperty('sterilizationRecordFinishConfirm')) && sstsConfig.sterilizationRecordFinishConfirm),
+ iconCls: 'btn_ext_application_error',
+ // id : 'confirmTbar',
+ id: 'confirmBtn',
+ handler: function () {
sterilizationConfirm(grid);
}
-
+
}, {
- text : '删除',
- hidden : SSTS_Sterilization_Delete,
- iconCls : 'btn_ext_application_del',
- id : 'deleteBtn',
- handler : function() {
+ text: '删除',
+ hidden: SSTS_Sterilization_Delete,
+ iconCls: 'btn_ext_application_del',
+ id: 'deleteBtn',
+ handler: function () {
deleteSterilizationRecord(grid);
}
- },'-', {
- text : '查看灭菌记录图片',
- hidden : SSTS_Sterilization_Update,
- iconCls : 'btn_ext_application_search',
- handler : function() {
+ }, '-', {
+ text: '查看灭菌记录图片',
+ hidden: SSTS_Sterilization_Update,
+ iconCls: 'btn_ext_application_search',
+ handler: function () {
showSterilizationRecordPicture(grid);
}
- },'-',{
- text : '添加质量监测',
- hidden:SSTS_QualityRecord_Create,
- iconCls : 'btn_ext_application_add',
- handler : function() {
- addQualityMonitoring1();
- }
- },'-',{
- text : '刷新',
- iconCls : 'btn_ext_refresh1',
- handler : function() {
- grid.getStore().reload();
- }
- },'-',{
- text : '打印',
- iconCls : 'icon_print',
- hidden : !printConfig.sterilizationRecordDetail,
- handler : function() {
- printSterilizationRecord(grid);
- }
- },{id:'formSubmitResult',xtype:'hidden',value:'0'},{id:'continueSubmitResult',xtype:'hidden',value:'0'},{id:'qmSubmitResult',xtype:'hidden',value:'0'}];
- }else{
+ }, '-', {
+ text: '查看生物监测图片',
+ hidden: SSTS_Sterilization_Update,
+ iconCls: 'btn_ext_application_search',
+ handler: function () {
+ showBioLogicalMonitorPicture(grid);
+ }
+ }, '-', {
+ text: '添加质量监测',
+ hidden: SSTS_QualityRecord_Create,
+ iconCls: 'btn_ext_application_add',
+ handler: function () {
+ addQualityMonitoring1();
+ }
+ }, '-', {
+ text: '刷新',
+ iconCls: 'btn_ext_refresh1',
+ handler: function () {
+ grid.getStore().reload();
+ }
+ }, '-', {
+ text: '打印',
+ iconCls: 'icon_print',
+ hidden: !printConfig.sterilizationRecordDetail,
+ handler: function () {
+ printSterilizationRecord(grid);
+ }
+ }, { id: 'formSubmitResult', xtype: 'hidden', value: '0' }, { id: 'continueSubmitResult', xtype: 'hidden', value: '0' }, { id: 'qmSubmitResult', xtype: 'hidden', value: '0' }];
+ } else {
tbar = [{
- text : '删除',
- hidden : SSTS_Sterilization_Delete,
- iconCls : 'btn_ext_application_del',
- handler : function() {
+ text: '删除',
+ hidden: SSTS_Sterilization_Delete,
+ iconCls: 'btn_ext_application_del',
+ handler: function () {
deleteSterilizationRecord(grid);
}
- },'-', {
- text : '查看灭菌记录图片',
- hidden : SSTS_Sterilization_Update,
- tooltip : '查看灭菌记录图片',
- iconCls : 'btn_ext_application_search',
- handler : function() {
+ }, '-', {
+ text: '查看灭菌记录图片',
+ hidden: SSTS_Sterilization_Update,
+ tooltip: '查看灭菌记录图片',
+ iconCls: 'btn_ext_application_search',
+ handler: function () {
showSterilizationRecordPicture(grid);
}
- },'-',{
- text : '添加质量监测',
- hidden:SSTS_QualityRecord_Create,
- iconCls : 'btn_ext_application_add',
- handler : function() {
- addQualityMonitoring1();
- }
- },'-',{
- text : '刷新',
- iconCls : 'btn_ext_refresh1',
- handler : function() {
- grid.getStore().reload();
- }
- },'-',{
- text : '打印',
- iconCls : 'icon-print',
- hidden : !printConfig.sterilizationRecordDetail,
- handler : function() {
- printSterilizationRecord(grid);
- }
- },{id:'formSubmitResult',xtype:'hidden',value:'0'},{id:'continueSubmitResult',xtype:'hidden',value:'0'},{id:'qmSubmitResult',xtype:'hidden',value:'0'}];
+ }, '-', {
+ text: '添加质量监测',
+ hidden: SSTS_QualityRecord_Create,
+ iconCls: 'btn_ext_application_add',
+ handler: function () {
+ addQualityMonitoring1();
+ }
+ }, '-', {
+ text: '刷新',
+ iconCls: 'btn_ext_refresh1',
+ handler: function () {
+ grid.getStore().reload();
+ }
+ }, '-', {
+ text: '打印',
+ iconCls: 'icon-print',
+ hidden: !printConfig.sterilizationRecordDetail,
+ handler: function () {
+ printSterilizationRecord(grid);
+ }
+ }, { id: 'formSubmitResult', xtype: 'hidden', value: '0' }, { id: 'continueSubmitResult', xtype: 'hidden', value: '0' }, { id: 'qmSubmitResult', xtype: 'hidden', value: '0' }];
}
-
- if(pop){
- tbar= [{
- text:'确定',
- iconCls:'btn_create',
- handler:okData
- },{id:'formSubmitResult',xtype:'hidden',value:'0'},{id:'continueSubmitResult',xtype:'hidden',value:'0'},{id:'qmSubmitResult',xtype:'hidden',value:'0'}]
+
+ if (pop) {
+ tbar = [{
+ text: '确定',
+ iconCls: 'btn_create',
+ handler: okData
+ }, { id: 'formSubmitResult', xtype: 'hidden', value: '0' }, { id: 'continueSubmitResult', xtype: 'hidden', value: '0' }, { id: 'qmSubmitResult', xtype: 'hidden', value: '0' }]
}
-
+
var dwrCallParams = null;
- Ext.ux.ForgonPageGrid.prototype.getGridParameterMap = function() {
+ Ext.ux.ForgonPageGrid.prototype.getGridParameterMap = function () {
};
- if((sstsConfig.hasOwnProperty('sterilizationRecordFinishConfirm')) && sstsConfig.sterilizationRecordFinishConfirm){
+ if ((sstsConfig.hasOwnProperty('sterilizationRecordFinishConfirm')) && sstsConfig.sterilizationRecordFinishConfirm) {
$Id("parm_s_needFinishConfirm").value = "true";
}
var printCode = {};
var items = [{
- text : '灭菌日期:'
- },{
- xtype : 'combo',
- id : 'requestTimeQuantum',
- name : 'requestTimeQuantum',
- valueField : 'value',
- displayField : 'key',
- allowBlank : true,
- editable : false,
- width : 120,
- mode:'local',
- store : new Ext.data.SimpleStore({
+ text: '灭菌日期:'
+ }, {
+ xtype: 'combo',
+ id: 'requestTimeQuantum',
+ name: 'requestTimeQuantum',
+ valueField: 'value',
+ displayField: 'key',
+ allowBlank: true,
+ editable: false,
+ width: 120,
+ mode: 'local',
+ store: new Ext.data.SimpleStore({
data: getTimeComboData(),
- fields:['key','value']
+ fields: ['key', 'value']
}),
- forceSelection : true,
- triggerAction : 'all',
- listeners : {
- select : function(combo, record, index){
+ forceSelection: true,
+ triggerAction: 'all',
+ listeners: {
+ select: function (combo, record, index) {
var value = combo.getValue();
$Id("parm_s_requestTimeQuantum").value = value;
var timeArr = value.split(";");
@@ -1165,33 +1191,33 @@
grid.dwrReload();
}
},
- anchor : '95%'
- },'-',{
- text : '开始时间:'
- },{
- xtype : 'datefieldWithMin',
- id : 'requestStartTime',
- name : 'requestStartTime',
- width : 130,
- 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',
- selectOnFocus :true,
- format : 'Y-m-d H:i',
- theHours : 0,
- theMinutes : 0
- },'-',{
- text : '结束时间:'
- },{
- xtype : 'datefieldWithMin',
- width : 130,
- id : 'requestEndTime',
- name : 'requestEndTime',
- 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',
- selectOnFocus :true,
- format : 'Y-m-d H:i',
- theHours : 23,
- theMinutes : 59,
- listeners : {
- render : function(_this) {
+ anchor: '95%'
+ }, '-', {
+ text: '开始时间:'
+ }, {
+ xtype: 'datefieldWithMin',
+ id: 'requestStartTime',
+ name: 'requestStartTime',
+ width: 130,
+ 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',
+ selectOnFocus: true,
+ format: 'Y-m-d H:i',
+ theHours: 0,
+ theMinutes: 0
+ }, '-', {
+ text: '结束时间:'
+ }, {
+ xtype: 'datefieldWithMin',
+ width: 130,
+ id: 'requestEndTime',
+ name: 'requestEndTime',
+ 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',
+ selectOnFocus: true,
+ format: 'Y-m-d H:i',
+ theHours: 23,
+ theMinutes: 59,
+ listeners: {
+ render: function (_this) {
var requestTimeQuantumCombo = Ext.getCmp('requestTimeQuantum');
var value = requestTimeQuantumCombo.store.data.items[0].data.value;
requestTimeQuantumCombo.setValue(value);
@@ -1200,102 +1226,102 @@
Ext.getCmp('requestEndTime').setValue(timeArr[1]);
}
}
- },'-',{
- text : '查询',
- minWidth : 50,
- iconCls : 'icon_search',
- handler : function() {
+ }, '-', {
+ text: '查询',
+ minWidth: 50,
+ iconCls: 'icon_search',
+ handler: function () {
var requestStartTime = Ext.getCmp('requestStartTime');
var requestEndTime = Ext.getCmp('requestEndTime');
if (requestStartTime.isValid() && requestEndTime.isValid()) {
- $Id("parm_s_requestTimeQuantum").value = Ext.util.Format.date(requestStartTime.getValue(), 'Y-m-d H:i') + ';' +Ext.util.Format.date(requestEndTime.getValue(), 'Y-m-d H:i');
+ $Id("parm_s_requestTimeQuantum").value = Ext.util.Format.date(requestStartTime.getValue(), 'Y-m-d H:i') + ';' + Ext.util.Format.date(requestEndTime.getValue(), 'Y-m-d H:i');
grid.getStore().lastOptions.params['start'] = 0;
grid.dwrReload();
} else {
- showResult("请填写正确的时间格式!", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ showResult("请填写正确的时间格式!", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
}
}
}];
-
- if(sstsConfig.enableScanSterilizationMonitoringPackage){
- items = items.concat(['-',{
- text : '打印监测包条码',
- minWidth : 50,
- iconCls : 'icon_print',
- handler : function() {
+
+ if (sstsConfig.enableScanSterilizationMonitoringPackage) {
+ items = items.concat(['-', {
+ text: '打印监测包条码',
+ minWidth: 50,
+ iconCls: 'icon_print',
+ handler: function () {
top.Ext.Msg.show({
title: '输入打印份数',
msg: '打印份数:',
width: 100,
buttons: Ext.MessageBox.OKCANCEL,
- prompt : true,
- fn: function(bu, txt) {
- if(bu == 'ok'){
- if(isNaN(txt) == false){
- Ext.MessageBox.progress('打印中', '请稍候...');
- var count = Number(txt);
- Ext.Ajax.request({
- url : WWWROOT + '/disinfectSystem/sterilization/sterilizationRecordAction!createBiologyMonitorTousseBarcodes.do',
- params : {
- amount : count
+ prompt: true,
+ fn: function (bu, txt) {
+ if (bu == 'ok') {
+ if (isNaN(txt) == false) {
+ Ext.MessageBox.progress('打印中', '请稍候...');
+ var count = Number(txt);
+ Ext.Ajax.request({
+ url: WWWROOT + '/disinfectSystem/sterilization/sterilizationRecordAction!createBiologyMonitorTousseBarcodes.do',
+ params: {
+ amount: count
},
- success : function(response, options) {
+ success: function (response, options) {
var result = Ext.decode(response.responseText);
- for(var i=0;i0){
+ if (tousseStr.length > 0) {
tousseStr += ";";
}
tousseStr += (cAttr.barcode);
});
}
var pTousseName = pNode.attributes.barcode;
- if(pTousseStr.length>0){
+ if (pTousseStr.length > 0) {
pTousseStr += "##";
}
var pType = pNode.attributes.type;
- if(pType == '篮筐'){
+ if (pType == '篮筐') {
tousseStr = "篮筐";
- }else{
+ } else {
tousseStr = "器械包";
}
- pTousseStr += (pTousseName+ ",,"+tousseStr);
+ pTousseStr += (pTousseName + ",," + tousseStr);
});
- if(myBarcodes.length>0){//全局条码数组(针对不追溯的包)
- pTousseStr+="##";
- for(var i=0;i 0) {//全局条码数组(针对不追溯的包)
+ pTousseStr += "##";
+ for (var i = 0; i < myBarcodes.length; i++) {
+ if (i + 1 == myBarcodes.length) {
+ pTousseStr += (myBarcodes[i] + ",," + "器械包");
+ } else {
+ pTousseStr += (myBarcodes[i] + ",," + "器械包##");
}
- }
+ }
}
return pTousseStr;
}
/**
* 获取位置信息
*/
-function getBarcodePositionData(){
+function getBarcodePositionData() {
var rootNode = sterilizationColumnTree.getRootNode();
var pBarcodePositionStr = "";
- rootNode.eachChild(function(pNode){
+ rootNode.eachChild(function (pNode) {
var position = pNode.attributes.position;
// 没有位置的器械包或者篮筐,不处理
- if(position != null && position != ''){
+ if (position != null && position != '') {
var barcode = pNode.attributes.barcode;
- if(pBarcodePositionStr.length>0){
+ if (pBarcodePositionStr.length > 0) {
pBarcodePositionStr += ";";
}
- pBarcodePositionStr += (barcode+ ","+position);
+ pBarcodePositionStr += (barcode + "," + position);
}
});
return pBarcodePositionStr;
}
/**
* 获取最后的位置名称
*/
-function getLastPosition(){
+function getLastPosition() {
var rootNode = sterilizationColumnTree.getRootNode();
var positionStr = "";
- rootNode.eachChild(function(pNode){
+ rootNode.eachChild(function (pNode) {
var position = pNode.attributes.position;
// 没有位置的器械包或者篮筐,不处理
- if(position != null && position != ''){
+ if (position != null && position != '') {
positionStr = position;
}
});
return positionStr;
}
-var tousseItemCountRecord = new Ext.data.Record.create([ {
- name : 'tousseName'
+var tousseItemCountRecord = new Ext.data.Record.create([{
+ name: 'tousseName'
}, {
- name : 'count',
- type : 'int'
-} ]);
+ name: 'count',
+ type: 'int'
+}]);
-var monitorResutlStore = new Ext.data.SimpleStore( {
- fields : [ 'value' ],
- data : [['无'], ['合格'],['不合格']]
+var monitorResutlStore = new Ext.data.SimpleStore({
+ fields: ['value'],
+ data: [['无'], ['合格'], ['不合格']]
});
/**
@@ -220,33 +220,33 @@
* @param reviewTime 审核时间
* @param sterilingMode 灭菌方式
*/
-function createNode(isParentNode,barcode,name,typeForSterilizationStatistics,depart,type,position,amount,reviewTime,stockAmount,sterilingMode){
+function createNode(isParentNode, barcode, name, typeForSterilizationStatistics, depart, type, position, amount, reviewTime, stockAmount, sterilingMode) {
var node;
- if(isParentNode==true){
+ if (isParentNode == true) {
//创建父节点(灭菌筐节点或者没有入灭菌筐的器械包节点)
node = new top.Ext.tree.TreeNode({
- id:Ext.id(),
- iconCls:type=='篮筐' ? 'task-folder' : 'task',
- uiProvider:top.Ext.tree.ColumnNodeUI,
- leaf:false,
- expanded:true
+ id: Ext.id(),
+ iconCls: type == '篮筐' ? 'task-folder' : 'task',
+ uiProvider: top.Ext.tree.ColumnNodeUI,
+ leaf: false,
+ expanded: true
});
- }else{
+ } else {
//创建子节点(进入灭菌筐器械包节点)
node = new top.Ext.tree.TreeNode({
- id:Ext.id(),
- iconCls:'task',
- uiProvider:top.Ext.tree.ColumnNodeUI,
- leaf:true,
- expanded:true
+ id: Ext.id(),
+ iconCls: 'task',
+ uiProvider: top.Ext.tree.ColumnNodeUI,
+ leaf: true,
+ expanded: true
});
}
- node.attributes.isParentNode=isParentNode;
- node.attributes.barcode=barcode;
- node.attributes.name=name;
- node.attributes.typeForSterilizationStatistics=typeForSterilizationStatistics;
- node.attributes.depart=depart;
+ node.attributes.isParentNode = isParentNode;
+ node.attributes.barcode = barcode;
+ node.attributes.name = name;
+ node.attributes.typeForSterilizationStatistics = typeForSterilizationStatistics;
+ node.attributes.depart = depart;
node.attributes.type = type;
node.attributes.position = position;
node.attributes.amount = amount;
@@ -256,64 +256,64 @@
return node;
}
//加急--创建节点
-function createNodeForUrgent(isParentNode,barcode,name,typeForSterilizationStatistics,depart,type,position,amount,reviewTime,stockAmount, sterilingMode,isUrgentTousse,urgentLevel,includeImplant){
+function createNodeForUrgent(isParentNode, barcode, name, typeForSterilizationStatistics, depart, type, position, amount, reviewTime, stockAmount, sterilingMode, isUrgentTousse, urgentLevel, includeImplant) {
var node;
- if(isParentNode==true){
+ if (isParentNode == true) {
//创建父节点(灭菌筐节点或者没有入灭菌筐的器械包节点)
node = new top.Ext.tree.TreeNode({
- id:Ext.id(),
- iconCls:type=='篮筐' ? 'task-folder' : 'task',
- uiProvider:top.Ext.tree.ColumnNodeUI,
- leaf:false,
- expanded:true
+ id: Ext.id(),
+ iconCls: type == '篮筐' ? 'task-folder' : 'task',
+ uiProvider: top.Ext.tree.ColumnNodeUI,
+ leaf: false,
+ expanded: true
});
- }else{
+ } else {
//创建子节点(进入灭菌筐器械包节点)
node = new top.Ext.tree.TreeNode({
- id:Ext.id(),
- iconCls:'task',
- uiProvider:top.Ext.tree.ColumnNodeUI,
- leaf:true,
- expanded:true
+ id: Ext.id(),
+ iconCls: 'task',
+ uiProvider: top.Ext.tree.ColumnNodeUI,
+ leaf: true,
+ expanded: true
});
}
- node.attributes.isParentNode=isParentNode;
- node.attributes.barcode=barcode;
- node.attributes.name=name;
- node.attributes.typeForSterilizationStatistics=typeForSterilizationStatistics;
- node.attributes.depart=depart;
+ node.attributes.isParentNode = isParentNode;
+ node.attributes.barcode = barcode;
+ node.attributes.name = name;
+ node.attributes.typeForSterilizationStatistics = typeForSterilizationStatistics;
+ node.attributes.depart = depart;
node.attributes.type = type;
node.attributes.position = position;
node.attributes.amount = amount;
node.attributes.reviewTime = reviewTime;
node.attributes.sterilingMode = sterilingMode;
node.attributes.stockAmount = stockAmount;
- node.attributes.isUrgentTousse = isUrgentTousse;
+ node.attributes.isUrgentTousse = isUrgentTousse;
node.attributes.urgentLevel = urgentLevel;
node.attributes.includeImplant = includeImplant;
return node;
}
-function createNodeForPendingStarilizationGoods(isParentNode,barcode,name,type,depart,reviewTime,amount,sterilingMode){
+function createNodeForPendingStarilizationGoods(isParentNode, barcode, name, type, depart, reviewTime, amount, sterilingMode) {
var node;
- if(isParentNode==true){
+ if (isParentNode == true) {
//创建父节点(灭菌筐节点或者没有入灭菌筐的器械包节点)
node = new top.Ext.tree.TreeNode({
- id:Ext.id(),
- iconCls:type=='篮筐' ? 'task-folder' : 'task',
- uiProvider:top.Ext.tree.ColumnNodeUI,
- leaf:false,
- expanded:true
+ id: Ext.id(),
+ iconCls: type == '篮筐' ? 'task-folder' : 'task',
+ uiProvider: top.Ext.tree.ColumnNodeUI,
+ leaf: false,
+ expanded: true
});
- }else{
+ } else {
//创建子节点(进入灭菌筐器械包节点)
node = new top.Ext.tree.TreeNode({
- id:Ext.id(),
- iconCls:'task',
- uiProvider:top.Ext.tree.ColumnNodeUI,
- leaf:true,
- expanded:true
+ id: Ext.id(),
+ iconCls: 'task',
+ uiProvider: top.Ext.tree.ColumnNodeUI,
+ leaf: true,
+ expanded: true
});
}
node.attributes.objBarcode = barcode;
@@ -329,41 +329,41 @@
/**
* 统计篮筐和器械包数量,并且更新统计信息列表
*/
-function statisticsTousseAndBasket () {
+function statisticsTousseAndBasket() {
var rootNode = sterilizationColumnTree.getRootNode(); //灭菌物品columnTree的根节点
var basketAmount = 0; //篮筐数量
var tousseNameOfAmount = {}; //器械包名称和数量
- var statisticsAmount = {'篮筐':0,'器械包':0,'敷料包':0,'外来器械包':0,'代理灭菌包':0,'灭菌物品总数量':0,'植入物':0};
- rootNode.eachChild(function(pNode){
- if(pNode.attributes.type == '篮筐') { //此节点是篮筐
+ var statisticsAmount = { '篮筐': 0, '器械包': 0, '敷料包': 0, '外来器械包': 0, '代理灭菌包': 0, '灭菌物品总数量': 0, '植入物': 0 };
+ rootNode.eachChild(function (pNode) {
+ if (pNode.attributes.type == '篮筐') { //此节点是篮筐
statisticsAmount['篮筐'] = statisticsAmount['篮筐'] + 1;
if (!pNode.isExpanded()) { //如果没展开,需要手动展开,不然会导致里面的子节点没有加载
pNode.expand();
}
- pNode.eachChild(function(pNode){
+ pNode.eachChild(function (pNode) {
sumTousseAndBasket(pNode, tousseNameOfAmount, statisticsAmount);
});
- }else if(pNode.attributes.includeImplant == '是') { //此节点是器械包
+ } else if (pNode.attributes.includeImplant == '是') { //此节点是器械包
sumTousseAndBasket(pNode, tousseNameOfAmount, statisticsAmount);
} else { //此节点是器械包
sumTousseAndBasket(pNode, tousseNameOfAmount, statisticsAmount);
}
});
- top.Ext.getCmp('totalAmount').setText("灭菌物品总数量:"+(statisticsAmount['灭菌物品总数量']));
+ top.Ext.getCmp('totalAmount').setText("灭菌物品总数量:" + (statisticsAmount['灭菌物品总数量']));
top.Ext.getCmp('typeTotalAmount').setText(
- "篮筐:" + statisticsAmount['篮筐'] +
- ",器械包:" + statisticsAmount['器械包']
- + ",敷料包:" + statisticsAmount['敷料包'] +
- ",外来器械包:" + statisticsAmount['外来器械包'] +
- ",代理灭菌包:"+ statisticsAmount['代理灭菌包']);
+ "篮筐:" + statisticsAmount['篮筐'] +
+ ",器械包:" + statisticsAmount['器械包']
+ + ",敷料包:" + statisticsAmount['敷料包'] +
+ ",外来器械包:" + statisticsAmount['外来器械包'] +
+ ",代理灭菌包:" + statisticsAmount['代理灭菌包']);
top.Ext.getCmp('foreignTousseAmount').setValue(statisticsAmount['外来器械包']);
top.Ext.getCmp('implantAmount').setValue(statisticsAmount['植入物']);
tousseItemCountJsonStore.removeAll();
- for(var key in tousseNameOfAmount){
+ for (var key in tousseNameOfAmount) {
if (tousseNameOfAmount.hasOwnProperty(key)) { //过滤掉非“tousseNameOfAmount”本对象的属性比较严谨一些
tousseItemCountJsonStore.add(new tousseItemCountRecord({
- tousseName : key,
- count : tousseNameOfAmount[key]
+ tousseName: key,
+ count: tousseNameOfAmount[key]
}));
}
}
@@ -382,7 +382,7 @@
tousseNameOfAmount[tousseName] = amount;
}
- if(pNode.attributes.includeImplant == '是'){
+ if (pNode.attributes.includeImplant == '是') {
statisticsAmount['植入物'] = statisticsAmount['植入物'] + 1;
}
statisticsAmount[typeForSterilizationStatistics] = statisticsAmount[typeForSterilizationStatistics] + amount;
@@ -394,43 +394,43 @@
* 扫描灭菌架条码
* @param barcode 架条码条码
*/
-function loadSterilizationShelf(barcode){
- if(barcode != null && barcode.length > 0){
- SterilizationRecordTableManager.getSterilizationShelfByBarcode(barcode,function(sterilizationShelfName) {
- if (sterilizationShelfName != null) {
- var resultArray = sterilizationShelfName.split(":");
- if(resultArray[0] == "success"){
- top.Ext.getCmp('sterilizationShelf').setValue(resultArray[1]);
- speaker.speak(resultArray[1]);
- }else{
- showResult(resultArray[1], null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
- }
-
- }
+function loadSterilizationShelf(barcode) {
+ if (barcode != null && barcode.length > 0) {
+ SterilizationRecordTableManager.getSterilizationShelfByBarcode(barcode, function (sterilizationShelfName) {
+ if (sterilizationShelfName != null) {
+ var resultArray = sterilizationShelfName.split(":");
+ if (resultArray[0] == "success") {
+ top.Ext.getCmp('sterilizationShelf').setValue(resultArray[1]);
+ speaker.speak(resultArray[1]);
+ } else {
+ showResult(resultArray[1], null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
}
- );
+
+ }
+ }
+ );
}
}
//启用灭菌炉生物监测间隔时间提醒验证
-function sterilizerBioMonitoringIntervalReminder(params){
- Ext.Ajax.request( {
- url : WWWROOT + '/disinfectSystem/sterilization/sterilizationRecordAction!sterilizerBioMonitoringIntervalReminder.do',
- params : {
- sterilizerName : params.sterilizerName,
- isSave:params.isSave
+function sterilizerBioMonitoringIntervalReminder(params) {
+ Ext.Ajax.request({
+ url: WWWROOT + '/disinfectSystem/sterilization/sterilizationRecordAction!sterilizerBioMonitoringIntervalReminder.do',
+ params: {
+ sterilizerName: params.sterilizerName,
+ isSave: params.isSave
},
- success : function(response, options) {
+ success: function (response, options) {
var result = Ext.decode(response.responseText);
- if(result.success){
- if(result.message && (params.biologicalMonitoring || '') == ''){
+ if (result.success) {
+ if (result.message && (params.biologicalMonitoring || '') == '') {
showResult(result.message);
- }else {
- if(params.saveType == 1 && params.button){
- saveData(params.saveType,params.button);
- }else if(params.saveType == 2){
+ } else {
+ if (params.saveType == 1 && params.button) {
+ saveData(params.saveType, params.button);
+ } else if (params.saveType == 2) {
saveData(params.saveType);
- }else if(params.saveType == 3){
+ } else if (params.saveType == 3) {
saveMonitorData();
}
}
@@ -442,121 +442,116 @@
/**
* 扫描灭菌炉
*/
-function getSterilization(barcode, recordId){
- if(barcode != null && barcode.length > 0){
- DWREngine.setAsync(true);
- var sterilizerName;
- SterilizationRecordTableManager.getRinserSterilizationType(barcode,recordId,function setSterilizationType(result){
- if(result != null){
- var resultArray = result.split(':');
- if(resultArray[0] == "success"){
- top.Ext.getCmp('sterilizerName').setValue(resultArray[1].split(',')[0]);
- top.Ext.getCmp('frequency').setValue(resultArray[1].split(',')[1]);
- sterilizerName = resultArray[1].split(',')[0];
- SterilizationRecordTableManager.getNextCycleCounter(sterilizerName,recordId,function(result){
- if(result == 0)
- {
- top.Ext.getCmp('cycleCounter').setValue(1);
- }else
- {
- top.Ext.getCmp('cycleCounter').setValue(result);
- }
- });
- //判断是否无条件显示循环次数
- if(sstsConfig.showCycleCountWithoutCondition){
- top.Ext.getCmp('cycleCounterId').show();
- }else{
- // 判断灭菌炉是否关联接口,是否显示循环次数
- SterilizationRecordTableManager.isDefineDeviceInterface(sterilizerName,function(result)
- {
- if(result)
- {
- top.Ext.getCmp('cycleCounterId').show();
- }else
- {
- top.Ext.getCmp('cycleCounterId').hide();
- }
- });
- }
- if(sstsConfig.enableSterilizerBioMonitoringIntervalReminder){
- var params = {
- sterilizerName:sterilizerName,
- isSave:false
+function getSterilization(barcode, recordId) {
+ if (barcode != null && barcode.length > 0) {
+ DWREngine.setAsync(true);
+ var sterilizerName;
+ SterilizationRecordTableManager.getRinserSterilizationType(barcode, recordId, function setSterilizationType(result) {
+ if (result != null) {
+ var resultArray = result.split(':');
+ if (resultArray[0] == "success") {
+ top.Ext.getCmp('sterilizerName').setValue(resultArray[1].split(',')[0]);
+ top.Ext.getCmp('frequency').setValue(resultArray[1].split(',')[1]);
+ sterilizerName = resultArray[1].split(',')[0];
+ SterilizationRecordTableManager.getNextCycleCounter(sterilizerName, recordId, function (result) {
+ if (result == 0) {
+ top.Ext.getCmp('cycleCounter').setValue(1);
+ } else {
+ top.Ext.getCmp('cycleCounter').setValue(result);
+ }
+ });
+ //判断是否无条件显示循环次数
+ if (sstsConfig.showCycleCountWithoutCondition) {
+ top.Ext.getCmp('cycleCounterId').show();
+ } else {
+ // 判断灭菌炉是否关联接口,是否显示循环次数
+ SterilizationRecordTableManager.isDefineDeviceInterface(sterilizerName, function (result) {
+ if (result) {
+ top.Ext.getCmp('cycleCounterId').show();
+ } else {
+ top.Ext.getCmp('cycleCounterId').hide();
+ }
+ });
}
- sterilizerBioMonitoringIntervalReminder(params)
+ if (sstsConfig.enableSterilizerBioMonitoringIntervalReminder) {
+ var params = {
+ sterilizerName: sterilizerName,
+ isSave: false
+ }
+ sterilizerBioMonitoringIntervalReminder(params)
+ }
+ } else {
+ showResult(resultArray[1], null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
}
- }else{
- showResult(resultArray[1], null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
- }
- }
- });
-
- DWREngine.setAsync(true);
- sterilizationTypeStore.reload();
- if (sstsConfig.sterilizationCheckTousseSterilingType
- && sterilizerNameTemp != combo.value) { //切换灭菌炉时,重新加载待灭菌物品(主要过滤掉,待灭菌物品的默认灭菌程序不在此灭菌炉所有的灭菌程序之内的)
- sterilizerNameTemp = combo.value;
- pendingSterilizationColumnTree.loader.load(pendingSterilizationColumnTree.root,function(){});
- }
- top.Ext.getCmp('sterilizationPurpose').setValue('');
-
+ }
+ });
+
+ DWREngine.setAsync(true);
+ sterilizationTypeStore.reload();
+ if (sstsConfig.sterilizationCheckTousseSterilingType
+ && sterilizerNameTemp != combo.value) { //切换灭菌炉时,重新加载待灭菌物品(主要过滤掉,待灭菌物品的默认灭菌程序不在此灭菌炉所有的灭菌程序之内的)
+ sterilizerNameTemp = combo.value;
+ pendingSterilizationColumnTree.loader.load(pendingSterilizationColumnTree.root, function () { });
+ }
+ top.Ext.getCmp('sterilizationPurpose').setValue('');
+
}
}
/**
* 扫描灭菌程序
*/
-function loadSterilizationType(barcode,sterilizerName){
+function loadSterilizationType(barcode, sterilizerName) {
DWREngine.setAsync(false);
- SterilizationRecordTableManager.getSterilizationType(barcode,sterilizerName,function setSterilizationType(result){
- if(result != null){
+ SterilizationRecordTableManager.getSterilizationType(barcode, sterilizerName, function setSterilizationType(result) {
+ if (result != null) {
var resultArray = result.split(':');
- if(resultArray[0] == "success"){
- var sterilizationType = resultArray[1].split(',')[0];
- if(resultArray[2] == "success"){
- top.Ext.getCmp('sterilizationType').setValue(sterilizationType);
- oldSterilizationType = sterilizationType;
- //加载灭菌参数
- SterilizationRecordTableManager.getParameter(sterilizationType,function(result){
- if(result != null && result.length > 0){
+ if (resultArray[0] == "success") {
+ var sterilizationType = resultArray[1].split(',')[0];
+ if (resultArray[2] == "success") {
+ top.Ext.getCmp('sterilizationType').setValue(sterilizationType);
+ oldSterilizationType = sterilizationType;
+ //加载灭菌参数
+ SterilizationRecordTableManager.getParameter(sterilizationType, function (result) {
+ if (result != null && result.length > 0) {
top.Ext.getCmp('parameter').setValue(result);
- }else{
- top.Ext.getCmp('parameter').setValue('');
+ } else {
+ top.Ext.getCmp('parameter').setValue('');
}
});
//选择默认灭菌目的
- SterilizationRecordTableManager.getSterilizationPurpose(sterilizationType,function(result){
- if(result != null && result.length > 0){
+ SterilizationRecordTableManager.getSterilizationPurpose(sterilizationType, function (result) {
+ if (result != null && result.length > 0) {
top.Ext.getCmp('sterilizationPurpose').setValue(result);
}
});
- }else{
- top.Ext.MessageBox.confirm("请确认",resultArray[2],
- function(button, text) {
- if ("yes" == button) {
- top.Ext.getCmp('sterilizationType').setValue(sterilizationType);
- oldSterilizationType = sterilizationType;
- //加载灭菌参数
- SterilizationRecordTableManager.getParameter(sterilizationType,function(result){
- if(result != null && result.length > 0){
- top.Ext.getCmp('parameter').setValue(result);
- }else{
- top.Ext.getCmp('parameter').setValue('');
- }
- });
- //选择默认灭菌目的
- SterilizationRecordTableManager.getSterilizationPurpose(sterilizationType,function(result){
- if(result != null && result.length > 0){
- top.Ext.getCmp('sterilizationPurpose').setValue(result);
- }
- });
- }else{
- top.Ext.getCmp('sterilizationType').setValue(oldSterilizationType);
- }
- });
- }
- }else{
- showResult(resultArray[1], null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ } else {
+ top.Ext.MessageBox.confirm("请确认", resultArray[2],
+ function (button, text) {
+ if ("yes" == button) {
+ top.Ext.getCmp('sterilizationType').setValue(sterilizationType);
+ oldSterilizationType = sterilizationType;
+ //加载灭菌参数
+ SterilizationRecordTableManager.getParameter(sterilizationType, function (result) {
+ if (result != null && result.length > 0) {
+ top.Ext.getCmp('parameter').setValue(result);
+ } else {
+ top.Ext.getCmp('parameter').setValue('');
+ }
+ });
+ //选择默认灭菌目的
+ SterilizationRecordTableManager.getSterilizationPurpose(sterilizationType, function (result) {
+ if (result != null && result.length > 0) {
+ top.Ext.getCmp('sterilizationPurpose').setValue(result);
+ }
+ });
+ } else {
+ top.Ext.getCmp('sterilizationType').setValue(oldSterilizationType);
+ }
+ });
+ }
+ } else {
+ showResult(resultArray[1], null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
}
}
});
@@ -566,115 +561,115 @@
* 扫描灭菌员条码
* @param barcode 灭菌条码
*/
-function isHaveDoneNoticeSterilisation(sterilizerName, sterilizationType){
- Ext.Ajax.request( {
- url : WWWROOT + '/disinfectSystem/sterilization/sterilizationRecordAction!isHaveDoneNoticeSterilisation.do',
- params : {
- sterilizerName : sterilizerName,
- sterilizationType : sterilizationType
+function isHaveDoneNoticeSterilisation(sterilizerName, sterilizationType) {
+ Ext.Ajax.request({
+ url: WWWROOT + '/disinfectSystem/sterilization/sterilizationRecordAction!isHaveDoneNoticeSterilisation.do',
+ params: {
+ sterilizerName: sterilizerName,
+ sterilizationType: sterilizationType
},
- success : function(response, options) {
- var result = Ext.decode(response.responseText);
- if(result.success == false){
- top.Ext.MessageBox.confirm("请确认",result.confirmMessage,
- function(button, text) {
- if ("yes" == button) {
- top.Ext.getCmp('sterilizationType').setValue(sterilizationType);
- oldSterilizationType = sterilizationType;
- //加载灭菌参数
- SterilizationRecordTableManager.getParameter(sterilizationType,function(result){
- if(result != null && result.length > 0){
- top.Ext.getCmp('parameter').setValue(result);
- }
- });
- //选择默认灭菌目的
- SterilizationRecordTableManager.getSterilizationPurpose(sterilizationType,function(result){
- if(result != null && result.length > 0){
- top.Ext.getCmp('sterilizationPurpose').setValue(result);
- }
- });
- }else{
- top.Ext.getCmp('sterilizationType').setValue(oldSterilizationType);
- }
- });
- }else{
- top.Ext.getCmp('sterilizationType').setValue(sterilizationType);
- oldSterilizationType = sterilizationType;
+ success: function (response, options) {
+ var result = Ext.decode(response.responseText);
+ if (result.success == false) {
+ top.Ext.MessageBox.confirm("请确认", result.confirmMessage,
+ function (button, text) {
+ if ("yes" == button) {
+ top.Ext.getCmp('sterilizationType').setValue(sterilizationType);
+ oldSterilizationType = sterilizationType;
+ //加载灭菌参数
+ SterilizationRecordTableManager.getParameter(sterilizationType, function (result) {
+ if (result != null && result.length > 0) {
+ top.Ext.getCmp('parameter').setValue(result);
+ }
+ });
+ //选择默认灭菌目的
+ SterilizationRecordTableManager.getSterilizationPurpose(sterilizationType, function (result) {
+ if (result != null && result.length > 0) {
+ top.Ext.getCmp('sterilizationPurpose').setValue(result);
+ }
+ });
+ } else {
+ top.Ext.getCmp('sterilizationType').setValue(oldSterilizationType);
+ }
+ });
+ } else {
+ top.Ext.getCmp('sterilizationType').setValue(sterilizationType);
+ oldSterilizationType = sterilizationType;
//加载灭菌参数
- SterilizationRecordTableManager.getParameter(sterilizationType,function(result){
- if(result != null && result.length > 0){
+ SterilizationRecordTableManager.getParameter(sterilizationType, function (result) {
+ if (result != null && result.length > 0) {
top.Ext.getCmp('parameter').setValue(result);
}
});
- //选择默认灭菌目的
- SterilizationRecordTableManager.getSterilizationPurpose(sterilizationType,function(result){
- if(result != null && result.length > 0){
+ //选择默认灭菌目的
+ SterilizationRecordTableManager.getSterilizationPurpose(sterilizationType, function (result) {
+ if (result != null && result.length > 0) {
top.Ext.getCmp('sterilizationPurpose').setValue(result);
}
});
- }
-
+ }
+
},
- failure : function(response, options) {
-// sterilizationColumnTree.getEl().unmask();
+ failure: function (response, options) {
+ // sterilizationColumnTree.getEl().unmask();
var result = Ext.decode(response.responseText);
top.Ext.getCmp('sterilizationType').setValue(oldSterilizationType);
showResult("验证当天是否做过需要提示的灭菌程序失败");
-
+
}
});
}
-function loadSterilizationUser(barcode){
- if(barcode != null && barcode.length > 0){
- SterilizationRecordTableManager.getSterilizationUserByBarcode(barcode,function(response) {
- var result = Ext.decode(response);
- if (result.success == true) {
- top.Ext.getCmp('sterilizationUser').setValue(result.fullName);
- }else{
- showResult(result.message, null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
- }
- }
- );
+function loadSterilizationUser(barcode) {
+ if (barcode != null && barcode.length > 0) {
+ SterilizationRecordTableManager.getSterilizationUserByBarcode(barcode, function (response) {
+ var result = Ext.decode(response);
+ if (result.success == true) {
+ top.Ext.getCmp('sterilizationUser').setValue(result.fullName);
+ } else {
+ showResult(result.message, null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ }
+ }
+ );
}
}
//根据条码获取位置名称
-function loadPositionByBarcode(barcode){
- if(isUndefinedOrNullOrEmpty(barcode)){
- showResult('条码不能为空!', null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
- return ;
+function loadPositionByBarcode(barcode) {
+ if (isUndefinedOrNullOrEmpty(barcode)) {
+ showResult('条码不能为空!', null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ return;
}
- PositionTableManager.getPositionNameByBarcode(barcode,false,function(responseText){
- if(!isUndefinedOrNullOrEmpty(responseText)){
- var result = top.Ext.decode(responseText);
- if(!result.success){
- showResult(result.message, null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
- return;
- }
- top.Ext.getCmp('position').setValue(result.name);
- var selNode = sterilizationColumnTree.getSelectionModel().getSelectedNode();
- var root = sterilizationColumnTree.getRootNode();
- if(selNode != null){
- var insideTousse = selNode.attributes.insideTousse;
- if(typeof(insideTousse) == 'undefined' || insideTousse == true){
- // 篮筐和不入筐灭菌的器械包才修改位置
- selNode.attributes.position = result.name;
- var newBasket = cloneBasketOrTousse(selNode);
- var curIndex = root.indexOf(selNode);
- var nextNode = selNode.nextSibling;
- root.removeChild(selNode);
- if(nextNode != null){
- root.insertBefore(newBasket,nextNode);
- }else{
- root.appendChild(newBasket);
- }
+ PositionTableManager.getPositionNameByBarcode(barcode, false, function (responseText) {
+ if (!isUndefinedOrNullOrEmpty(responseText)) {
+ var result = top.Ext.decode(responseText);
+ if (!result.success) {
+ showResult(result.message, null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ return;
+ }
+ top.Ext.getCmp('position').setValue(result.name);
+ var selNode = sterilizationColumnTree.getSelectionModel().getSelectedNode();
+ var root = sterilizationColumnTree.getRootNode();
+ if (selNode != null) {
+ var insideTousse = selNode.attributes.insideTousse;
+ if (typeof (insideTousse) == 'undefined' || insideTousse == true) {
+ // 篮筐和不入筐灭菌的器械包才修改位置
+ selNode.attributes.position = result.name;
+ var newBasket = cloneBasketOrTousse(selNode);
+ var curIndex = root.indexOf(selNode);
+ var nextNode = selNode.nextSibling;
+ root.removeChild(selNode);
+ if (nextNode != null) {
+ root.insertBefore(newBasket, nextNode);
+ } else {
+ root.appendChild(newBasket);
}
}
- }else{
- showResult('找不到该条码所对应的位置信息', null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ }
+ } else {
+ showResult('找不到该条码所对应的位置信息', null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
}
});
}
-function cloneBasketOrTousse(node){
+function cloneBasketOrTousse(node) {
var barcode = node.attributes.barcode;
var name = node.attributes.name;
var typeForSterilizationStatistics = node.attributes.typeForSterilizationStatistics;
@@ -684,61 +679,61 @@
var amount = node.attributes.amount;
var reviewTime = node.attributes.reviewTime;
// 没入篮筐的器械包或者篮筐
- if(node.attributes.isParentNode){
- if(type == '器械包'){
- var cloneNode = createNode(true,barcode,name,typeForSterilizationStatistics,depart,type,position,amount,reviewTime,0,null);
+ if (node.attributes.isParentNode) {
+ if (type == '器械包') {
+ var cloneNode = createNode(true, barcode, name, typeForSterilizationStatistics, depart, type, position, amount, reviewTime, 0, null);
return cloneNode;
- }else{
- var cloneNode = createNode(true,barcode,name,typeForSterilizationStatistics,depart,type,position,amount,reviewTime,0,null);
+ } else {
+ var cloneNode = createNode(true, barcode, name, typeForSterilizationStatistics, depart, type, position, amount, reviewTime, 0, null);
var childNodes = node.attributes.children;
- if(childNodes != null){
- for(var i=0;i 0){
- for(var i=0;i 0) {
+ for (var i = 0; i < childNodes2.length; ++i) {
var cBarcode = childNodes2[i].attributes.barcode;
var cName = childNodes2[i].attributes.name;
var cTypeForSterilizationStatistics = childNodes2[i].typeForSterilizationStatistics;
var cDepart = childNodes2[i].attributes.depart;
var cType = childNodes2[i].attributes.type;
var cAmount = childNodes2[i].amount;
var cReviewTime = childNodes2[i].reviewTime;
- cloneNode.appendChild(createNode(false,cBarcode,cName,cTypeForSterilizationStatistics,cDepart,cType,'',cAmount,cReviewTime,0,null));
+ cloneNode.appendChild(createNode(false, cBarcode, cName, cTypeForSterilizationStatistics, cDepart, cType, '', cAmount, cReviewTime, 0, null));
}
return cloneNode;
}
return cloneNode;
}
- }else{
+ } else {
//篮筐里面的器械包
- var cloneNode = createNode(false,barcode,name,typeForSterilizationStatistics,depart,type,'',amount,reviewTime,0,null);
+ var cloneNode = createNode(false, barcode, name, typeForSterilizationStatistics, depart, type, '', amount, reviewTime, 0, null);
return cloneNode;
}
}
/**
* 判断灭菌程序是否能添加器械包(没选灭菌程序也不能灭菌)
* @param sterilizationName
*/
-function sterilizationCanAddTousse(sterilizationName){
- if(isUndefinedOrNullOrEmpty(sterilizationName)){
+function sterilizationCanAddTousse(sterilizationName) {
+ if (isUndefinedOrNullOrEmpty(sterilizationName)) {
sterilizationName = top.Ext.getCmp('sterilizationType').getValue();
}
var canAddTousse = false;
DWREngine.setAsync(false);
//如果灭菌程序不能添加器械包,要清除灭菌物品列表
- SterilizationRecordTableManager.sterilisationCanAddTousse(sterilizationName,function(result){
- if(result){
+ SterilizationRecordTableManager.sterilisationCanAddTousse(sterilizationName, function (result) {
+ if (result) {
canAddTousse = result;
}
});
@@ -750,55 +745,55 @@
* 针对固定条码多次扫描,累加数量
* @param fixedBarcode
*/
-function scanFixedBarcode(fixedBarcode){
+function scanFixedBarcode(fixedBarcode) {
formObj.getEl().mask("正在加载,请稍候...");
Ext.Ajax.request({
- url : WWWROOT + '/disinfectSystem/tousseInstanceAction!scanFixedBarcode.do',
- params : {
- fixedBarcode :fixedBarcode,
- sterilizationRecordId : top.Ext.getCmp('id').getValue(),
+ url: WWWROOT + '/disinfectSystem/tousseInstanceAction!scanFixedBarcode.do',
+ params: {
+ fixedBarcode: fixedBarcode,
+ sterilizationRecordId: top.Ext.getCmp('id').getValue(),
myBarcodes: JSON.stringify(myBarcodes)//将数组已json格式传入后台
},
- waitMsg : '正在处理,请稍候...',
- success : function(response, options) {
+ waitMsg: '正在处理,请稍候...',
+ success: function (response, options) {
var result = Ext.decode(response.responseText);
- if(result.success){
+ if (result.success) {
var newBarcode = result.message.split(",")
var finalAmount = parseInt(newBarcode.length)//返回的条码数量
var rootNode = sterilizationColumnTree.getRootNode();
var isAll = false;
//循环左边的节点
- rootNode.eachChild(function(pNode){
- if (pNode != null && pNode.attributes && pNode.attributes.barcode){
- if(pNode.attributes.barcode == fixedBarcode) {
- var name = pNode.attributes.name ;
- var amount = parseInt(pNode.attributes.amount)+parseInt(finalAmount);//当前数量加上 扫描加载的数量
- if(parseInt(pNode.attributes.amount) == maxScanAmount){
- showResult(name+'已全部加载完毕');
+ rootNode.eachChild(function (pNode) {
+ if (pNode != null && pNode.attributes && pNode.attributes.barcode) {
+ if (pNode.attributes.barcode == fixedBarcode) {
+ var name = pNode.attributes.name;
+ var amount = parseInt(pNode.attributes.amount) + parseInt(finalAmount);//当前数量加上 扫描加载的数量
+ if (parseInt(pNode.attributes.amount) == maxScanAmount) {
+ showResult(name + '已全部加载完毕');
isAll = true;
return
}
- if(amount > maxScanAmount){
+ if (amount > maxScanAmount) {
var newAmount = finalAmount - (amount - maxScanAmount);
- newBarcode = newBarcode.splice(0,newAmount);
+ newBarcode = newBarcode.splice(0, newAmount);
}
- }
+ }
}
});
finalAmount = parseInt(newBarcode.length)//返回的条码数量
- if(!isAll){
- myBarcodes=myBarcodes.concat(newBarcode);//将返回的条码添加到全局中
- updateRigthFixedBarcodeAmount(fixedBarcode,finalAmount)//修改右边的数量
- updateLeftFixedBarcodeAmount(fixedBarcode,finalAmount)//修改左边的数量
+ if (!isAll) {
+ myBarcodes = myBarcodes.concat(newBarcode);//将返回的条码添加到全局中
+ updateRigthFixedBarcodeAmount(fixedBarcode, finalAmount)//修改右边的数量
+ updateLeftFixedBarcodeAmount(fixedBarcode, finalAmount)//修改左边的数量
statisticsTousseAndBasket();//统计总数量
}
- }else{
- showResult(result.message, null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ } else {
+ showResult(result.message, null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
}
formObj.getEl().unmask();
},
- failure : function(response, options) {
- showResult("系统发生异常,请勿提交数据", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ failure: function (response, options) {
+ showResult("系统发生异常,请勿提交数据", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
formObj.getEl().unmask();
}
@@ -811,18 +806,18 @@
* @param fixedBarcode
*/
-function getLeftFixedBarcodeAmount(fixedBarcode){
+function getLeftFixedBarcodeAmount(fixedBarcode) {
var rootNode = sterilizationColumnTree.getRootNode();
- var i =0
+ var i = 0
//循环左边的节点
var returnAmount = 0;
- rootNode.eachChild(function(pNode){
- if (pNode != null && pNode.attributes && pNode.attributes.barcode){
- if(pNode.attributes.barcode == fixedBarcode && i<1) {//找到左边对应的条码
+ rootNode.eachChild(function (pNode) {
+ if (pNode != null && pNode.attributes && pNode.attributes.barcode) {
+ if (pNode.attributes.barcode == fixedBarcode && i < 1) {//找到左边对应的条码
i++
var amount = parseInt(pNode.attributes.amount)
returnAmount = amount;
- }
+ }
}
});
return returnAmount;
@@ -832,14 +827,14 @@
* 根据固定条码,获取右边的数量
* @param fixedBarcode
*/
-function getRigthFixedBarcodeAmount(fixedBarcode){
+function getRigthFixedBarcodeAmount(fixedBarcode) {
var i = 0;
var result = -1;
//循环右边的节点
- pendingSterilizationColumnTree.getRootNode().eachChild(function(pNode){
+ pendingSterilizationColumnTree.getRootNode().eachChild(function (pNode) {
//移除某一个节点后,再遍历其他节点得到的是undefined
if (pNode != null && pNode.attributes && pNode.attributes.objBarcode) {
- if(pNode.attributes.objBarcode == fixedBarcode &&i<1 ){
+ if (pNode.attributes.objBarcode == fixedBarcode && i < 1) {
i++
result = parseInt(pNode.attributes.objAmount);
}
@@ -853,22 +848,22 @@
* @param barcodeStr 器械包、灭菌篮筐、虚拟篮筐(还有可能是器械包或者虚拟篮筐的条码段)
* @param sterilizationRecordId 灭菌记录id
*/
-function loadTousseInstanceCheckPosition(barcodeStr, sterilizationRecordId){
- if(sstsConfig.hasOwnProperty('stRecordScanPosition') && sstsConfig.stRecordScanPosition){
- if((sstsConfig.hasOwnProperty('haveSterilizerPosition')) && sstsConfig.haveSterilizerPosition){
+function loadTousseInstanceCheckPosition(barcodeStr, sterilizationRecordId) {
+ if (sstsConfig.hasOwnProperty('stRecordScanPosition') && sstsConfig.stRecordScanPosition) {
+ if ((sstsConfig.hasOwnProperty('haveSterilizerPosition')) && sstsConfig.haveSterilizerPosition) {
var position = top.Ext.getCmp('position').getValue();
- if(position == null || position == ''){
- showResult("请先扫描位置", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ if (position == null || position == '') {
+ showResult("请先扫描位置", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
return;
}
}
}
//如果扫描固定条码,发现已存在,则累加数量
- if(myFixedBarcodes.indexOf(barcodeStr)!=-1){
- scanFixedBarcode(barcodeStr,myBarcodes)
- }else{//否则当唯一条码处理
- loadTousseInstance(barcodeStr,sterilizationRecordId,false);
+ if (myFixedBarcodes.indexOf(barcodeStr) != -1) {
+ scanFixedBarcode(barcodeStr, myBarcodes)
+ } else {//否则当唯一条码处理
+ loadTousseInstance(barcodeStr, sterilizationRecordId, false);
}
//loadTousseInstance(barcodeStr,sterilizationRecordId,false);
}
@@ -878,55 +873,55 @@
* @param fixedBarcode 固定条码
* @param scanAmount 每次扫描数量
*/
-function updateRigthFixedBarcodeAmount(fixedBarcode,scanAmount){
+function updateRigthFixedBarcodeAmount(fixedBarcode, scanAmount) {
scanAmount = parseInt(scanAmount)
- var i=0;
- pendingSterilizationColumnTree.getRootNode().eachChild(function(pNode){
- if (pNode != null && pNode.attributes && pNode.attributes.objBarcode) {
- if(pNode.attributes.objBarcode == fixedBarcode &&i<1 ){
- i++
- var name = pNode.attributes.objName;
- var type = pNode.attributes.type;
- var depart = pNode.attributes.depart;
- var reviewTime = pNode.attributes.reviewTime;
- var sterilingMode = pNode.attributes.sterilingMode;
- var amountRight = parseInt(pNode.attributes.objAmount);//右边的数量
- var rootNode = sterilizationColumnTree.getRootNode();
- pNode.remove();//移除对应右边的节点
- //修改数量 :当前数量-扫描的数量 amountRight-scanAmount
- if(amountRight-scanAmount>0){
- var myNode = createNodeForPendingStarilizationGoods(true,fixedBarcode,name,type,depart,reviewTime,amountRight-scanAmount,sterilingMode)
- pendingSterilizationColumnTree.getRootNode().appendChild(myNode);
- }
- }
- }
- });
+ var i = 0;
+ pendingSterilizationColumnTree.getRootNode().eachChild(function (pNode) {
+ if (pNode != null && pNode.attributes && pNode.attributes.objBarcode) {
+ if (pNode.attributes.objBarcode == fixedBarcode && i < 1) {
+ i++
+ var name = pNode.attributes.objName;
+ var type = pNode.attributes.type;
+ var depart = pNode.attributes.depart;
+ var reviewTime = pNode.attributes.reviewTime;
+ var sterilingMode = pNode.attributes.sterilingMode;
+ var amountRight = parseInt(pNode.attributes.objAmount);//右边的数量
+ var rootNode = sterilizationColumnTree.getRootNode();
+ pNode.remove();//移除对应右边的节点
+ //修改数量 :当前数量-扫描的数量 amountRight-scanAmount
+ if (amountRight - scanAmount > 0) {
+ var myNode = createNodeForPendingStarilizationGoods(true, fixedBarcode, name, type, depart, reviewTime, amountRight - scanAmount, sterilingMode)
+ pendingSterilizationColumnTree.getRootNode().appendChild(myNode);
+ }
+ }
+ }
+ });
}
-function updateLeftFixedBarcodeAmount(fixedBarcode,scanAmount){
+function updateLeftFixedBarcodeAmount(fixedBarcode, scanAmount) {
var rootNode = sterilizationColumnTree.getRootNode();
- var i =0
+ var i = 0
//循环左边的节点
- rootNode.eachChild(function(pNode){
- if (pNode != null && pNode.attributes && pNode.attributes.barcode){
- if(pNode.attributes.barcode == fixedBarcode && i<1) {//找到左边对应的条码
+ rootNode.eachChild(function (pNode) {
+ if (pNode != null && pNode.attributes && pNode.attributes.barcode) {
+ if (pNode.attributes.barcode == fixedBarcode && i < 1) {//找到左边对应的条码
i++
var isParentNode = pNode.attributes.isParentNode;
- var typeForSterilizationStatistics =pNode.attributes.typeForSterilizationStatistics;
+ var typeForSterilizationStatistics = pNode.attributes.typeForSterilizationStatistics;
var department = pNode.attributes.depart;
- var position = pNode.attributes.position ;
- var amount = parseInt(pNode.attributes.amount)+parseInt(scanAmount);//当前数量加上 扫描加载的数量
- var reviewTime = pNode.attributes.reviewTime ;
- var stockAmount = pNode.attributes.stockAmount ;
- var barcode = pNode.attributes.barcode ;
- var name = pNode.attributes.name ;
- var sterilingMode = pNode.attributes.sterilingMode ;
+ var position = pNode.attributes.position;
+ var amount = parseInt(pNode.attributes.amount) + parseInt(scanAmount);//当前数量加上 扫描加载的数量
+ var reviewTime = pNode.attributes.reviewTime;
+ var stockAmount = pNode.attributes.stockAmount;
+ var barcode = pNode.attributes.barcode;
+ var name = pNode.attributes.name;
+ var sterilingMode = pNode.attributes.sterilingMode;
var rootNode = sterilizationColumnTree.getRootNode();
- var parentNode = createNode(true, barcode, name, typeForSterilizationStatistics, department, '器械包', position, amount, reviewTime,0,sterilingMode);
+ var parentNode = createNode(true, barcode, name, typeForSterilizationStatistics, department, '器械包', position, amount, reviewTime, 0, sterilingMode);
var firstChildNode = rootNode.item(0);
pNode.remove();//删除修改后的节点数据
rootNode.appendChild(parentNode);//追加修改前的数据
- }
+ }
}
});
}
@@ -937,58 +932,59 @@
* @param editAmount 修改的数量
* @param type 1:增加,2:减少
*/
-function editAmountComplete(fixedBarcode,editCompleteAmount,editType){
+function editAmountComplete(fixedBarcode, editCompleteAmount, editType) {
editCompleteAmount = parseInt(editCompleteAmount)
- var i=0;
+ var i = 0;
var rigthAmount = getRigthFixedBarcodeAmount(fixedBarcode)//获取右边的数量
- pendingSterilizationColumnTree.getRootNode().eachChild(function(pNode){
- if (pNode != null && pNode.attributes && pNode.attributes.objBarcode) {
- if(pNode.attributes.objBarcode == fixedBarcode){
- var name = pNode.attributes.objName;
- var type = pNode.attributes.type;
- var depart = pNode.attributes.depart;
- var reviewTime = pNode.attributes.reviewTime;
- var amountRight = parseInt(pNode.attributes.objAmount);//右边的数量
- var rootNode = sterilizationColumnTree.getRootNode();
- var sterilingMode = pNode.attributes.sterilingMode;
- pNode.remove();//移除对应右边的节点
- var resultAmount = 0;
- if(editType==1){//如果是增加了数量,则对应右边要减少
- resultAmount = amountRight - editCompleteAmount
- }else if(editType==2){//如果是减少了数量,则对应右边要增加
- resultAmount = amountRight
- }
- if(resultAmount>0){
- var myNode = createNodeForPendingStarilizationGoods(true,fixedBarcode,name,type,"","",resultAmount,sterilingMode)
- pendingSterilizationColumnTree.getRootNode().appendChild(myNode);
- }
- }
- }
- });
- if(i==0 && editType==2){//没有在右边匹配到对应的条码
+ pendingSterilizationColumnTree.getRootNode().eachChild(function (pNode) {
+ if (pNode != null && pNode.attributes && pNode.attributes.objBarcode) {
+ if (pNode.attributes.objBarcode == fixedBarcode) {
+ i++
+ var name = pNode.attributes.objName;
+ var type = pNode.attributes.type;
+ var depart = pNode.attributes.depart;
+ var reviewTime = pNode.attributes.reviewTime;
+ var amountRight = parseInt(pNode.attributes.objAmount);//右边的数量
+ var rootNode = sterilizationColumnTree.getRootNode();
+ var sterilingMode = pNode.attributes.sterilingMode;
+ pNode.remove();//移除对应右边的节点
+ var resultAmount = 0;
+ if (editType == 1) {//如果是增加了数量,则对应右边要减少
+ resultAmount = amountRight - editCompleteAmount
+ } else if (editType == 2) {//如果是减少了数量,则对应右边要增加
+ resultAmount = amountRight + editCompleteAmount
+ }
+ if (resultAmount > 0) {
+ var myNode = createNodeForPendingStarilizationGoods(true, fixedBarcode, name, type, "", "", resultAmount, sterilingMode)
+ pendingSterilizationColumnTree.getRootNode().appendChild(myNode);
+ }
+ }
+ }
+ });
+ if (i == 0 && editType == 2) {//没有在右边匹配到对应的条码
var rootNode = sterilizationColumnTree.getRootNode();
- var j =0
+ var j = 0
//循环左边的节点
- rootNode.eachChild(function(pNode){
- if (pNode != null && pNode.attributes && pNode.attributes.barcode){
- if(pNode.attributes.barcode == fixedBarcode && j<1) {//找到左边对应的条码
+ rootNode.eachChild(function (pNode) {
+ if (pNode != null && pNode.attributes && pNode.attributes.barcode) {
+ if (pNode.attributes.barcode == fixedBarcode && j < 1) {//找到左边对应的条码
i++
var isParentNode = pNode.attributes.isParentNode;
var type = pNode.attributes.type;
var department = pNode.attributes.depart;
- var position = pNode.attributes.position ;
+ var position = pNode.attributes.position;
var amount = parseInt(pNode.attributes.amount)
- var reviewTime = pNode.attributes.reviewTime ;
- var stockAmount = pNode.attributes.stockAmount ;
- var barcode = pNode.attributes.barcode ;
- var name = pNode.attributes.name ;
- var sterilingMode = pNode.attributes.sterilingMode ;
+ var reviewTime = pNode.attributes.reviewTime;
+ var stockAmount = pNode.attributes.stockAmount;
+ var barcode = pNode.attributes.barcode;
+ var name = pNode.attributes.name;
+ var sterilingMode = pNode.attributes.sterilingMode;
var rootNode = sterilizationColumnTree.getRootNode();
- var myNode = createNodeForPendingStarilizationGoods(true,barcode,name,"TOUSSE","","",editCompleteAmount,sterilingMode)
- pendingSterilizationColumnTree.getRootNode().appendChild(myNode);
- }
+ var myNode = createNodeForPendingStarilizationGoods(true, barcode, name, "TOUSSE", "", "", editCompleteAmount, sterilingMode)
+ pendingSterilizationColumnTree.getRootNode().appendChild(myNode);
+ }
}
- });
+ });
}
}
@@ -998,47 +994,47 @@
* 忽略所有不追溯的包,不遍历不追溯的包的灭菌方式
* 对于空的灭菌方式,只添加一个为空的值至数组
*/
-function getSterilingModeFromSterilingGoodsDetailGrid(){
- //是否已经添加过空的灭菌方式
- var alreadyAndBlankSterilingMode = false;
- var resultArray = [];
- var sterilingModeObject = {};
- //根节点
- var rootNode = sterilizationColumnTree.getRootNode();
- var alreadyPushAmount = 0;
- rootNode.eachChild(function(pNode){
+function getSterilingModeFromSterilingGoodsDetailGrid() {
+ //是否已经添加过空的灭菌方式
+ var alreadyAndBlankSterilingMode = false;
+ var resultArray = [];
+ var sterilingModeObject = {};
+ //根节点
+ var rootNode = sterilizationColumnTree.getRootNode();
+ var alreadyPushAmount = 0;
+ rootNode.eachChild(function (pNode) {
var pType = pNode.attributes.type;
- if(pType == '篮筐'){
- pNode.eachChild(function(cNode){
- //如果不为不追溯的包,则将灭菌方式加入至数组
- if(!cNode.attributes.unTraceable){
- var sterilingMode = cNode.attributes.sterilingMode;
- //灭菌方式为空时,则判断是否有加过
- if(!sterilingMode){
- if(!alreadyAndBlankSterilingMode){
- resultArray.push("");
- alreadyAndBlankSterilingMode = true;
- }
- }else if(!sterilingModeObject[sterilingMode]){
- resultArray.push(sterilingMode);
- sterilingModeObject[sterilingMode] = sterilingMode;
- }
- }
+ if (pType == '篮筐') {
+ pNode.eachChild(function (cNode) {
+ //如果不为不追溯的包,则将灭菌方式加入至数组
+ if (!cNode.attributes.unTraceable) {
+ var sterilingMode = cNode.attributes.sterilingMode;
+ //灭菌方式为空时,则判断是否有加过
+ if (!sterilingMode) {
+ if (!alreadyAndBlankSterilingMode) {
+ resultArray.push("");
+ alreadyAndBlankSterilingMode = true;
+ }
+ } else if (!sterilingModeObject[sterilingMode]) {
+ resultArray.push(sterilingMode);
+ sterilingModeObject[sterilingMode] = sterilingMode;
+ }
+ }
});
- }else if(pType == '器械包'){
- //如果不为不追溯的包,则将灭菌方式加入至数组
- if(!pNode.attributes.unTraceable){
- var sterilingMode = pNode.attributes.sterilingMode;
- //灭菌方式为空时,则判断是否有加过
- if(!sterilingMode){
- if(!alreadyAndBlankSterilingMode){
- resultArray.push("");
- alreadyAndBlankSterilingMode = true;
- }
- }else if(!sterilingModeObject[sterilingMode]){
- resultArray.push(sterilingMode);
- sterilingModeObject[sterilingMode] = sterilingMode;
- }
+ } else if (pType == '器械包') {
+ //如果不为不追溯的包,则将灭菌方式加入至数组
+ if (!pNode.attributes.unTraceable) {
+ var sterilingMode = pNode.attributes.sterilingMode;
+ //灭菌方式为空时,则判断是否有加过
+ if (!sterilingMode) {
+ if (!alreadyAndBlankSterilingMode) {
+ resultArray.push("");
+ alreadyAndBlankSterilingMode = true;
+ }
+ } else if (!sterilingModeObject[sterilingMode]) {
+ resultArray.push(sterilingMode);
+ sterilingModeObject[sterilingMode] = sterilingMode;
+ }
}
}
});
@@ -1050,54 +1046,54 @@
* @param barcodeStr 器械包、灭菌篮筐、虚拟篮筐(还有可能是器械包或者虚拟篮筐的条码段)
* @param sterilizationRecordId 灭菌记录id
*/
-function loadTousseInstance(barcodeStr, sterilizationRecordId,isFiexdBarcode) {
- if(barcodeStr == '' || barcodeStr.length <= 0){
- showResult("请输入条码!", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+function loadTousseInstance(barcodeStr, sterilizationRecordId, isFiexdBarcode) {
+ if (barcodeStr == '' || barcodeStr.length <= 0) {
+ showResult("请输入条码!", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
return;
}
- if(checkRepeat(barcodeStr) && !isFiexdBarcode){//已有,并且不是固定条码
- showResult("输入的条码已存在!", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ if (checkRepeat(barcodeStr) && !isFiexdBarcode) {//已有,并且不是固定条码
+ showResult("输入的条码已存在!", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
return;
}
//当前灭菌程序是否可以添加灭菌物品
var canAddTousse = sterilizationCanAddTousse();
- if(!canAddTousse){
- showResult("当前灭菌程序不能灭菌物品!", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ if (!canAddTousse) {
+ showResult("当前灭菌程序不能灭菌物品!", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
return;
}
var position = top.Ext.getCmp('position').getValue();
sterilizationRecordWin.getEl().mask("正在加载中.请稍等...", "x-mask-loading");
Ext.Ajax.request({
- url : WWWROOT + '/disinfectSystem/sterilization/sterilizationRecordAction!loadTousseInstanceInfo.do',
- params : {
- sterilizationRecordId : top.Ext.getCmp('id').getValue(),
- barcode : barcodeStr,
- loadTousseNamesInBasket : true, //是否要加载篮筐里的器械包名称
- sterilizationRecordId : sterilizationRecordId, //灭菌记录id
- checkProxyDisinfection : 'yes', //是否需要检查代理灭菌是否已录入代理灭菌单
- saveBarcode : getAlreadyScanBarcodes(), //此次扫描之前已经扫描的条码集合,通过节点获取
- myBarcodes : JSON.stringify(myBarcodes) //此次扫描之前已经扫描的条码集合,通过数组获取
+ url: WWWROOT + '/disinfectSystem/sterilization/sterilizationRecordAction!loadTousseInstanceInfo.do',
+ params: {
+ sterilizationRecordId: top.Ext.getCmp('id').getValue(),
+ barcode: barcodeStr,
+ loadTousseNamesInBasket: true, //是否要加载篮筐里的器械包名称
+ sterilizationRecordId: sterilizationRecordId, //灭菌记录id
+ checkProxyDisinfection: 'yes', //是否需要检查代理灭菌是否已录入代理灭菌单
+ saveBarcode: getAlreadyScanBarcodes(), //此次扫描之前已经扫描的条码集合,通过节点获取
+ myBarcodes: JSON.stringify(myBarcodes) //此次扫描之前已经扫描的条码集合,通过数组获取
},
- success : function(response, options) {
+ success: function (response, options) {
var result = response.responseText;
var speakContent = null;
var speakBasket = new SpeakBasket();
if (result && result != 'null') {
- var sterilingModeFromSterilingGoodsDetailGrid = getSterilingModeFromSterilingGoodsDetailGrid();
- if(sterilingModeFromSterilingGoodsDetailGrid.length > 1){
- showResult("该篮筐有多种不同灭菌方式的物品,不能装载器械包,请先将灭菌框内灭菌方式不同的物品移除!");
- sterilizationRecordWin.getEl().unmask();
- return false;
- }
-
+ var sterilingModeFromSterilingGoodsDetailGrid = getSterilingModeFromSterilingGoodsDetailGrid();
+ if (sterilingModeFromSterilingGoodsDetailGrid.length > 1) {
+ showResult("该篮筐有多种不同灭菌方式的物品,不能装载器械包,请先将灭菌框内灭菌方式不同的物品移除!");
+ sterilizationRecordWin.getEl().unmask();
+ return false;
+ }
+
var resultData = Ext.decode(result);
var success = resultData.success;
if (success == 0) {
- if(resultData.message){
- showResult(resultData.message);
- sterilizationRecordWin.getEl().unmask();
- return;
- }
+ if (resultData.message) {
+ showResult(resultData.message);
+ sterilizationRecordWin.getEl().unmask();
+ return;
+ }
var sterilingType = resultData.SterilingType; //灭菌程序
var department = resultData.department; //科室
var tousseName = resultData.tousseName; //器械包名称
@@ -1107,47 +1103,47 @@
var reviewTime = resultData.reviewTime; //审核时间
var unTraceable = resultData.unTraceable; //是否为不追溯(有值代表不追溯)
var sterilingMode = resultData.sterilingMode; //灭菌方式
- var isUrgentTousse = resultData.isUrgentTousse;//是否加急
- var urgentLevel = resultData.urgentLevel;//加急对象
- if(!sterilingMode){
- sterilingMode = "";
+ var isUrgentTousse = resultData.isUrgentTousse;//是否加急
+ var urgentLevel = resultData.urgentLevel;//加急对象
+ if (!sterilingMode) {
+ sterilingMode = "";
}
- if(top.Ext.getCmp('sterilizationType').getValue() != sterilingType){
- showResultWithoutSpeak("器械包[" + tousseName + "]的灭菌程序和所选的灭菌程序不同!", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ if (top.Ext.getCmp('sterilizationType').getValue() != sterilingType) {
+ showResultWithoutSpeak("器械包[" + tousseName + "]的灭菌程序和所选的灭菌程序不同!", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
}
-
- if(includeImplant == "是"){
- showResultWithoutSpeak("此外来器械包含有植入物,需要做生物监测!", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+
+ if (includeImplant == "是") {
+ showResultWithoutSpeak("此外来器械包含有植入物,需要做生物监测!", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
}
- if(tdIncludeImplant == "是"){
- showResultWithoutSpeak("此器械包含有植入物,需要做生物监测!", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ if (tdIncludeImplant == "是") {
+ showResultWithoutSpeak("此器械包含有植入物,需要做生物监测!", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
}
-
- if(sterilingModeFromSterilingGoodsDetailGrid.length == 1 && sterilingModeFromSterilingGoodsDetailGrid[0] != sterilingMode){
- //showResult("【"+ tousseName +"】属于【"+ sterilingMode +"】物品与原有【"+ sterilingModeFromSterilingGoodsDetailGrid[0] +"】物品不一致,不能入框");
- noticeDiffSterilingMessage(top.Ext , getDiffSterilingModeMessage(tousseName , sterilingMode, sterilingModeFromSterilingGoodsDetailGrid[0]),function (){
- top.Ext.getCmp('inputBarcode').focus();
- });
- sterilizationRecordWin.getEl().unmask();
- return;
+
+ if (sterilingModeFromSterilingGoodsDetailGrid.length == 1 && sterilingModeFromSterilingGoodsDetailGrid[0] != sterilingMode) {
+ //showResult("【"+ tousseName +"】属于【"+ sterilingMode +"】物品与原有【"+ sterilingModeFromSterilingGoodsDetailGrid[0] +"】物品不一致,不能入框");
+ noticeDiffSterilingMessage(top.Ext, getDiffSterilingModeMessage(tousseName, sterilingMode, sterilingModeFromSterilingGoodsDetailGrid[0]), function () {
+ top.Ext.getCmp('inputBarcode').focus();
+ });
+ sterilizationRecordWin.getEl().unmask();
+ return;
}
var newIncludeImplant = '否';
- if(typeForSterilizationStatistics == '器械包'){
+ if (typeForSterilizationStatistics == '器械包') {
newIncludeImplant = tdIncludeImplant;
- }else {
+ } else {
newIncludeImplant = includeImplant;
}
-
+
//添加到灭菌物品视图列表的第一行
var rootNode = sterilizationColumnTree.getRootNode();
- var parentNode = createNodeForUrgent(true, barcodeStr, tousseName, typeForSterilizationStatistics, department, '器械包', position, 1, reviewTime,0, sterilingMode,isUrgentTousse,urgentLevel,newIncludeImplant);
+ var parentNode = createNodeForUrgent(true, barcodeStr, tousseName, typeForSterilizationStatistics, department, '器械包', position, 1, reviewTime, 0, sterilingMode, isUrgentTousse, urgentLevel, newIncludeImplant);
var firstChildNode = rootNode.item(0);
- if(firstChildNode == null || firstChildNode == undefined){
+ if (firstChildNode == null || firstChildNode == undefined) {
rootNode.appendChild(parentNode);
- }else{
+ } else {
rootNode.insertBefore(parentNode, firstChildNode);
}
speakBasket.addGoods('', tousseName, 1);
@@ -1156,140 +1152,140 @@
} else if (success == 1) {//容器(单个灭菌框或虚拟篮筐)
var tousseInstanceArr = resultData.tousseInstanceArr; //进入容器的器械包集合
var containerName = resultData.containerName; //容器名称
- var isUrgentTousse = resultData.isUrgent;//是否加急
- var urgentLevel = resultData.urgentLevel;//加急对象,保存加急的级别和颜色
+ var isUrgentTousse = resultData.isUrgent;//是否加急
+ var urgentLevel = resultData.urgentLevel;//加急对象,保存加急的级别和颜色
var length = tousseInstanceArr.length;
var includeImplant = resultData.includeImplant;
var tdIncludeImplant = resultData.tdIncludeImplant;
var typeForSterilizationStatistics = resultData.typeForSterilizationStatistics;
if (length < 1) {
- showResult('篮筐内无待灭菌物品', null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ showResult('篮筐内无待灭菌物品', null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
sterilizationRecordWin.getEl().unmask();
return;
}
- if(includeImplant == '是'){
- showResult('篮筐内物品含有植入物,请做生物监测', null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ if (includeImplant == '是') {
+ showResult('篮筐内物品含有植入物,请做生物监测', null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
}
-
+
var sterilingModeObject = {};
var sterilingModeArray = [];
var alreayPushSterilingModeArray = false;
//先循环器械包查询是否有灭菌方式不一致的
- for(var i = 0; i < length; i ++) {
- var tousseInstan = tousseInstanceArr[i];
- var tousseName = tousseInstan.tousseName; //器械包名称
- var sterilingMode = tousseInstan.sterilingMode; //灭菌方式
- if(!sterilingMode){
- sterilingMode = "";
- }
- if(sterilingModeFromSterilingGoodsDetailGrid.length == 1 && sterilingModeFromSterilingGoodsDetailGrid[0] != sterilingMode){
- //showResult("【"+ tousseName +"】属于【"+ sterilingMode +"】物品与原有【"+ sterilingModeFromSterilingGoodsDetailGrid[0] +"】物品不一致,不能入框");
- noticeDiffSterilingMessage(top.Ext , getDiffSterilingModeMessage(tousseName , sterilingMode, sterilingModeFromSterilingGoodsDetailGrid[0]),function (){
- top.Ext.getCmp('inputBarcode').focus();
- });
- sterilizationRecordWin.getEl().unmask();
- return;
+ for (var i = 0; i < length; i++) {
+ var tousseInstan = tousseInstanceArr[i];
+ var tousseName = tousseInstan.tousseName; //器械包名称
+ var sterilingMode = tousseInstan.sterilingMode; //灭菌方式
+ if (!sterilingMode) {
+ sterilingMode = "";
}
- if(sterilingMode){
- if(!sterilingModeObject[sterilingMode]){
- sterilingModeArray.push(sterilingMode);
- sterilingModeObject[sterilingMode] = sterilingMode;
- }
- }else{
- if(!alreayPushSterilingModeArray){
- sterilingModeArray.push("");
- alreayPushSterilingModeArray = true;
- }
- }
+ if (sterilingModeFromSterilingGoodsDetailGrid.length == 1 && sterilingModeFromSterilingGoodsDetailGrid[0] != sterilingMode) {
+ //showResult("【"+ tousseName +"】属于【"+ sterilingMode +"】物品与原有【"+ sterilingModeFromSterilingGoodsDetailGrid[0] +"】物品不一致,不能入框");
+ noticeDiffSterilingMessage(top.Ext, getDiffSterilingModeMessage(tousseName, sterilingMode, sterilingModeFromSterilingGoodsDetailGrid[0]), function () {
+ top.Ext.getCmp('inputBarcode').focus();
+ });
+ sterilizationRecordWin.getEl().unmask();
+ return;
+ }
+ if (sterilingMode) {
+ if (!sterilingModeObject[sterilingMode]) {
+ sterilingModeArray.push(sterilingMode);
+ sterilingModeObject[sterilingMode] = sterilingMode;
+ }
+ } else {
+ if (!alreayPushSterilingModeArray) {
+ sterilingModeArray.push("");
+ alreayPushSterilingModeArray = true;
+ }
+ }
}
-
- if(sterilingModeArray.length > 1){
- showResult("该篮筐有多种不同灭菌方式的物品,不能装载器械包,请先将框内灭菌方式不同的物品移除!");
- sterilizationRecordWin.getEl().unmask();
- return;
+
+ if (sterilingModeArray.length > 1) {
+ showResult("该篮筐有多种不同灭菌方式的物品,不能装载器械包,请先将框内灭菌方式不同的物品移除!");
+ sterilizationRecordWin.getEl().unmask();
+ return;
}
-
+
speakContent = containerName;
//添加到灭菌物品视图列表的第一行
- var amount=0
- if(typeof(tousseInstanceArr[0])!="undefined"){
- for(var i =0;i 0){
+ SterilizationRecordTableManager.getParameter(top.Ext.getCmp('sterilizationType').getValue(), function (result) {
+ if (result != null && result.length > 0) {
top.Ext.getCmp('parameter').setValue(result);
}
});
removePendingSterilizationGoods(barcodeStr)
sterilizationRecordWin.getEl().unmask();
- } else if(success == 2) { //不追溯器械包(不追溯的包暂不校验灭菌方式是否不一致)
+ } else if (success == 2) { //不追溯器械包(不追溯的包暂不校验灭菌方式是否不一致)
var tousseInstanceArr = resultData.tousseInstanceArr;
var length = tousseInstanceArr.length;
if (length < 1) {
- showResult('未找到符合条件的器械包!', null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ showResult('未找到符合条件的器械包!', null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
sterilizationRecordWin.getEl().unmask();
return;
}
-
+
var sterilingTypeTemp = top.Ext.getCmp('sterilizationType').getValue();
- var myBarcodes2=[]
- var myBarcodes3=[]
+ var myBarcodes2 = []
+ var myBarcodes3 = []
var diffTousseNames = "";
- for(var i = 0; i < length; i ++) {
+ for (var i = 0; i < length; i++) {
var tousseInstan = tousseInstanceArr[i];
var typeForSterilizationStatistics = tousseInstan.typeForSterilizationStatistics; //器械包类型(用于分类统计)
var tousseBarcode = tousseInstan.tousseBarcode; //器械包条码
@@ -1298,159 +1294,159 @@
var department = tousseInstan.department; //科室
var reviewTime = tousseInstan.reviewTime; //审核时间
var amount = parseInt(tousseInstan.amount || 0); //每次扫描数量
- var stockAmount =parseInt(tousseInstan.stockAmount);//库存数量
- var sterilingMode =tousseInstan.sterilingMode;//灭菌方式
- if(checkRepeat(tousseBarcode) && !isFiexdBarcode){
- showResult("输入的条码已存在!", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ var stockAmount = parseInt(tousseInstan.stockAmount);//库存数量
+ var sterilingMode = tousseInstan.sterilingMode;//灭菌方式
+ if (checkRepeat(tousseBarcode) && !isFiexdBarcode) {
+ showResult("输入的条码已存在!", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
sterilizationRecordWin.getEl().unmask();
return;
};
//多个灭菌程序和所选的灭菌程序不同的器械包提示一起提示。同名包只出现一次
- if(sterilingTypeTemp != sterilingType && diffTousseNames.indexOf(tousseName) == -1){
- diffTousseNames += '[' + tousseName + ']';
+ if (sterilingTypeTemp != sterilingType && diffTousseNames.indexOf(tousseName) == -1) {
+ diffTousseNames += '[' + tousseName + ']';
}
- if(i==0){
- myBarcodes3[0]=tousseInstan.tousseBarcode;//临时存放固定条码
+ if (i == 0) {
+ myBarcodes3[0] = tousseInstan.tousseBarcode;//临时存放固定条码
//添加到灭菌物品视图列表的第一行
var rootNode = sterilizationColumnTree.getRootNode();
- var parentNode = createNode(true, tousseBarcode, tousseName, typeForSterilizationStatistics, "", '器械包', position, amount, reviewTime,stockAmount,sterilingMode);
+ var parentNode = createNode(true, tousseBarcode, tousseName, typeForSterilizationStatistics, "", '器械包', position, amount, reviewTime, stockAmount, sterilingMode);
var firstChildNode = rootNode.item(0);
- if(firstChildNode == null || firstChildNode == undefined){//第一行数据为空
+ if (firstChildNode == null || firstChildNode == undefined) {//第一行数据为空
rootNode.appendChild(parentNode);
- }else{
+ } else {
rootNode.insertBefore(parentNode, firstChildNode);
}
- speakBasket.addGoods('', tousseName, 1);
- Array.prototype.push.apply(myFixedBarcodes,myBarcodes3);//将本次的固定条码存入全局数组
-
- updateRigthFixedBarcodeAmount(tousseBarcode,amount)//修改右边节点的数量
-
- }else{
- myBarcodes2[i-1]=tousseInstan.tousseBarcode //本次的包实例条码
+ speakBasket.addGoods('', tousseName, 1);
+ Array.prototype.push.apply(myFixedBarcodes, myBarcodes3);//将本次的固定条码存入全局数组
+
+ updateRigthFixedBarcodeAmount(tousseBarcode, amount)//修改右边节点的数量
+
+ } else {
+ myBarcodes2[i - 1] = tousseInstan.tousseBarcode //本次的包实例条码
}
}
- if(diffTousseNames != ''){
- showResultWithoutSpeak("器械包" + diffTousseNames + "的灭菌程序和所选的灭菌程序不同!", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ if (diffTousseNames != '') {
+ showResultWithoutSpeak("器械包" + diffTousseNames + "的灭菌程序和所选的灭菌程序不同!", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
}
- Array.prototype.push.apply(myBarcodes,myBarcodes2);//将所有的包实例条码存入全局条码中
+ Array.prototype.push.apply(myBarcodes, myBarcodes2);//将所有的包实例条码存入全局条码中
speakContent = sterilizationColumnTree.getRootNode().text;
sterilizationRecordWin.getEl().unmask();
} else if (success == 3) { //首尾器械包,since2015-10-27
var tousseInstanceArr = resultData.tousseInstanceArr;
var length = tousseInstanceArr.length;
if (length < 1) {
- showResult('未找到符合条件的器械包!', null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ showResult('未找到符合条件的器械包!', null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
sterilizationRecordWin.getEl().unmask();
return;
}
//先循环器械包查询是否有灭菌方式不一致的,如果有则找出后进行提示
- for(var i = 0; i < length; i ++) {
- var tousseInstan = tousseInstanceArr[i];
-
- var tousseBarcode = tousseInstan.tousseBarcode; //器械包条码
- var tousseName = tousseInstan.tousseName; //器械包名称
- var sterilingMode = tousseInstan.sterilingMode; //灭菌方式
-
- if(sterilingModeFromSterilingGoodsDetailGrid.length == 1 && sterilingModeFromSterilingGoodsDetailGrid[0] != sterilingMode){
- //showResult("【"+ tousseName +"】属于【"+ sterilingMode +"】物品与原有【"+ sterilingModeFromSterilingGoodsDetailGrid[0] +"】物品不一致,不能入框");
- noticeDiffSterilingMessage(top.Ext , getDiffSterilingModeMessage(tousseName , sterilingMode, sterilingModeFromSterilingGoodsDetailGrid[0]),function (){
- top.Ext.getCmp('inputBarcode').focus();
- });
- sterilizationRecordWin.getEl().unmask();
- return;
+ for (var i = 0; i < length; i++) {
+ var tousseInstan = tousseInstanceArr[i];
+
+ var tousseBarcode = tousseInstan.tousseBarcode; //器械包条码
+ var tousseName = tousseInstan.tousseName; //器械包名称
+ var sterilingMode = tousseInstan.sterilingMode; //灭菌方式
+
+ if (sterilingModeFromSterilingGoodsDetailGrid.length == 1 && sterilingModeFromSterilingGoodsDetailGrid[0] != sterilingMode) {
+ //showResult("【"+ tousseName +"】属于【"+ sterilingMode +"】物品与原有【"+ sterilingModeFromSterilingGoodsDetailGrid[0] +"】物品不一致,不能入框");
+ noticeDiffSterilingMessage(top.Ext, getDiffSterilingModeMessage(tousseName, sterilingMode, sterilingModeFromSterilingGoodsDetailGrid[0]), function () {
+ top.Ext.getCmp('inputBarcode').focus();
+ });
+ sterilizationRecordWin.getEl().unmask();
+ return;
}
}
-
+
var alreadyAdd = 0;
var sterilingTypeTemp = top.Ext.getCmp('sterilizationType').getValue();
var rootNode = sterilizationColumnTree.getRootNode();
speakContent = rootNode.text;
- for(var i = 0; i < length; i ++) {
+ for (var i = 0; i < length; i++) {
var tousseInstan = tousseInstanceArr[i];
-
+
var tousseBarcode = tousseInstan.tousseBarcode; //器械包条码
var tousseName = tousseInstan.tousseName; //器械包名称
var typeForSterilizationStatistics = tousseInstan.typeForSterilizationStatistics; //器械包类型(用于分类统计)
var sterilingType = tousseInstan.SterilingType; //灭菌程序
var sterilingMode = tousseInstan.SterilingMode; //灭菌方式
var department = tousseInstan.department; //科室
var reviewTime = tousseInstan.reviewTime; //审核时间
-
- if(sterilingTypeTemp != sterilingType){
- showResultWithoutSpeak("器械包[" + tousseName + "]的灭菌程序和所选的灭菌程序不同!", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+
+ if (sterilingTypeTemp != sterilingType) {
+ showResultWithoutSpeak("器械包[" + tousseName + "]的灭菌程序和所选的灭菌程序不同!", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
}
-
+
var exists = false;
- rootNode.eachChild(function(pNode){
- if(pNode.attributes.barcode == tousseBarcode) { //此包已经扫描过了
+ rootNode.eachChild(function (pNode) {
+ if (pNode.attributes.barcode == tousseBarcode) { //此包已经扫描过了
exists = true;
return false;
}
- if(pNode.childNodes){
- pNode.eachChild(function(cNode){
- if(cNode.attributes.barcode == tousseBarcode) { //此包已经入审核篮筐的
+ if (pNode.childNodes) {
+ pNode.eachChild(function (cNode) {
+ if (cNode.attributes.barcode == tousseBarcode) { //此包已经入审核篮筐的
exists = true;
return false;
}
});
}
});
- if(!exists){ //此包没有扫描过并且没有入审核篮筐
+ if (!exists) { //此包没有扫描过并且没有入审核篮筐
//添加到灭菌物品视图列表的第一行
- var parentNode = createNode(true, tousseBarcode, tousseName, typeForSterilizationStatistics, department, '器械包', position, 1, reviewTime , sterilingMode);
+ var parentNode = createNode(true, tousseBarcode, tousseName, typeForSterilizationStatistics, department, '器械包', position, 1, reviewTime, sterilingMode);
var firstChildNode = rootNode.item(0);
- if(firstChildNode == null || firstChildNode == undefined){
+ if (firstChildNode == null || firstChildNode == undefined) {
rootNode.appendChild(parentNode);
- }else{
+ } else {
rootNode.insertBefore(parentNode, firstChildNode);
}
speakBasket.addGoods('', tousseName, 1);
- alreadyAdd ++;
+ alreadyAdd++;
removePendingSterilizationGoods(tousseBarcode);
}
}
-
+
//加载灭菌参数
- SterilizationRecordTableManager.getParameter(top.Ext.getCmp('sterilizationType').getValue(), function(result){
- if(result != null && result.length > 0){
+ SterilizationRecordTableManager.getParameter(top.Ext.getCmp('sterilizationType').getValue(), function (result) {
+ if (result != null && result.length > 0) {
top.Ext.getCmp('parameter').setValue(result);
}
});
- if(alreadyAdd == 0){
- showResult('未找到符合条件的器械包或器械包已扫描至表格中.', null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ if (alreadyAdd == 0) {
+ showResult('未找到符合条件的器械包或器械包已扫描至表格中.', null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
speakContent = null;
}
sterilizationRecordWin.getEl().unmask();
- } else if(success == 4) { //首尾虚拟篮筐
+ } else if (success == 4) { //首尾虚拟篮筐
var tousseInstanceArr = resultData.tousseInstanceArr;
var length = tousseInstanceArr.length;
if (length < 1) {
- showResult('未找到符合条件的器械包!', null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ showResult('未找到符合条件的器械包!', null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
sterilizationRecordWin.getEl().unmask();
return;
}
- for(var i = 0; i < length; i ++) {
- var tousseInstan = tousseInstanceArr[i];
- var tousseName = tousseInstan.tousseName; //器械包名称
- var sterilingMode = tousseInstan.sterilingMode; //器械包类型(用于分类统计)
- if(sterilingModeFromSterilingGoodsDetailGrid.length == 1 && sterilingModeFromSterilingGoodsDetailGrid[0] != sterilingMode){
- //showResult("【"+ tousseName +"】属于【"+ sterilingMode +"】物品与原有【"+ sterilingModeFromSterilingGoodsDetailGrid[0] +"】物品不一致,不能入框");
- noticeDiffSterilingMessage(top.Ext , getDiffSterilingModeMessage(tousseName , sterilingMode, sterilingModeFromSterilingGoodsDetailGrid[0]),function (){
- top.Ext.getCmp('inputBarcode').focus();
- });
- sterilizationRecordWin.getEl().unmask();
- return;
+ for (var i = 0; i < length; i++) {
+ var tousseInstan = tousseInstanceArr[i];
+ var tousseName = tousseInstan.tousseName; //器械包名称
+ var sterilingMode = tousseInstan.sterilingMode; //器械包类型(用于分类统计)
+ if (sterilingModeFromSterilingGoodsDetailGrid.length == 1 && sterilingModeFromSterilingGoodsDetailGrid[0] != sterilingMode) {
+ //showResult("【"+ tousseName +"】属于【"+ sterilingMode +"】物品与原有【"+ sterilingModeFromSterilingGoodsDetailGrid[0] +"】物品不一致,不能入框");
+ noticeDiffSterilingMessage(top.Ext, getDiffSterilingModeMessage(tousseName, sterilingMode, sterilingModeFromSterilingGoodsDetailGrid[0]), function () {
+ top.Ext.getCmp('inputBarcode').focus();
+ });
+ sterilizationRecordWin.getEl().unmask();
+ return;
}
}
-
+
var alreadyAdd = 0;
var sterilingTypeTemp = top.Ext.getCmp('sterilizationType').getValue();
var rootNode = sterilizationColumnTree.getRootNode();
speakContent = rootNode.text;
- for(var i = 0; i < length; i ++) {
+ for (var i = 0; i < length; i++) {
var tousseInstan = tousseInstanceArr[i];
-
+
var virtualBasketSeqNum = tousseInstan.virtualBasketSeqNum; //虚拟篮筐编号
var tousseBarcode = tousseInstan.tousseBarcode; //器械包条码
var tousseName = tousseInstan.tousseName; //器械包名称
@@ -1459,84 +1455,84 @@
var sterilingMode = tousseInstan.SterilingMode; //灭菌方式
var department = tousseInstan.department; //科室
var reviewTime = tousseInstan.reviewTime; //审核时间
-
- if(sterilingTypeTemp != sterilingType){
- showResultWithoutSpeak("虚拟篮筐[" + virtualBasketSeqNum + "]里面的器械包[" + tousseName + "]的灭菌程序和所选的灭菌程序不同!", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+
+ if (sterilingTypeTemp != sterilingType) {
+ showResultWithoutSpeak("虚拟篮筐[" + virtualBasketSeqNum + "]里面的器械包[" + tousseName + "]的灭菌程序和所选的灭菌程序不同!", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
}
-
+
var exists = false;
var currentParentNode;
- rootNode.eachChild(function(pNode){
- if(pNode.attributes.barcode == virtualBasketSeqNum) {
+ rootNode.eachChild(function (pNode) {
+ if (pNode.attributes.barcode == virtualBasketSeqNum) {
currentParentNode = pNode;
exists = true;
return false;
}
});
-
- if(!exists){
+
+ if (!exists) {
//添加到灭菌物品视图列表的第一行
currentParentNode = createNode(true, virtualBasketSeqNum, "虚拟篮筐", '', '', '篮筐', position, 1, '');
var firstChildNode = rootNode.item(0);
- if(firstChildNode == null || firstChildNode == undefined){
+ if (firstChildNode == null || firstChildNode == undefined) {
rootNode.appendChild(currentParentNode);
- }else{
- rootNode.insertBefore(currentParentNode,firstChildNode);
+ } else {
+ rootNode.insertBefore(currentParentNode, firstChildNode);
}
-
- var childNode = createNode(false, tousseBarcode, tousseName, typeForSterilizationStatistics, department, '器械包', '', 1, reviewTime , sterilingMode);
+
+ var childNode = createNode(false, tousseBarcode, tousseName, typeForSterilizationStatistics, department, '器械包', '', 1, reviewTime, sterilingMode);
currentParentNode.appendChild(childNode);
speakBasket.addGoods('', tousseName, 1);
- alreadyAdd ++;
+ alreadyAdd++;
sterilizationRecordWin.getEl().unmask();
- }else{
+ } else {
var existsCNode = false;//虚拟篮筐的机制
- if(currentParentNode.childNodes){
- currentParentNode.eachChild(function(cNode){
- if(cNode.attributes.barcode == tousseBarcode) {
+ if (currentParentNode.childNodes) {
+ currentParentNode.eachChild(function (cNode) {
+ if (cNode.attributes.barcode == tousseBarcode) {
existsCNode = true;
return false;
}
});
}
- if(!existsCNode){
+ if (!existsCNode) {
var childNode = createNode(false, tousseBarcode, tousseName, typeForSterilizationStatistics, department, '器械包', '', 1, reviewTime);
currentParentNode.appendChild(childNode);
speakBasket.addGoods('', tousseName, 1);
- alreadyAdd ++;
+ alreadyAdd++;
}
}
}
sterilizationRecordWin.getEl().unmask();
//加载灭菌参数
- SterilizationRecordTableManager.getParameter(top.Ext.getCmp('sterilizationType').getValue(),function(result){
- if(result != null && result.length > 0){
+ SterilizationRecordTableManager.getParameter(top.Ext.getCmp('sterilizationType').getValue(), function (result) {
+ if (result != null && result.length > 0) {
top.Ext.getCmp('parameter').setValue(result);
}
});
- if(alreadyAdd == 0){
+ if (alreadyAdd == 0) {
sterilizationRecordWin.getEl().unmask();
- showResult('未找到符合条件的器械包或器械包已扫描至表格中.', null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ showResult('未找到符合条件的器械包或器械包已扫描至表格中.', null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
speakContent = null;
}
sterilizationRecordWin.getEl().unmask();
} else if (success == -1) {
sterilizationRecordWin.getEl().unmask();
- showResult(resultData.failureCause, null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ showResult(resultData.failureCause, null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
}
-
- newAddAudioTips("sterilizationRecordAudio","",speakBasket);
- }else{
+
+ newAddAudioTips("sterilizationRecordAudio", "", speakBasket);
+ } else {
sterilizationRecordWin.getEl().unmask();
- showResult("您扫描的物品非已审核的器械包或篮筐!", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ showResult("您扫描的物品非已审核的器械包或篮筐!", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
}
statisticsTousseAndBasket(); //每次成功扫描条码后统计一下器械包的数量和灭菌篮筐的数量
sterilizationRecordWin.getEl().unmask();//关闭加载进度条
},
- failure : function(response, options) {
+ failure: function (response, options) {
var result = Ext.decode(response.responseText);
- showResult(result, null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ showResult(result, null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
sterilizationRecordWin.getEl().unmask();
}
});
@@ -1548,59 +1544,59 @@
* 篮筐节点 = {type:"篮筐",barcode:"篮筐条码",name:"篮筐名称",dataList:[{barcode:"器械包条码",name:"器械包名称",typeForSterilizationStatistics:"器械包类型(注意区别于真正的类型)",sterilingType:"灭菌程序",depart:"科室",reviewTime:"审核时间"}...]}
* datas格式:[器械包节点/篮筐节点,...]
*/
-function loadContainerAndTousseToGrid(datas){
+function loadContainerAndTousseToGrid(datas) {
var position = top.Ext.getCmp('position').getValue();
var rootNode = sterilizationColumnTree.getRootNode();
var newBarcodeArray = [];
- var z=0;
- rootNode.eachChild(function(pNode){
+ var z = 0;
+ rootNode.eachChild(function (pNode) {
newBarcodeArray[z] = pNode.attributes.barcode;
z++
});
- if(datas && datas.length){
- for(var i = 0;i < datas.length;i++){
+ if (datas && datas.length) {
+ for (var i = 0; i < datas.length; i++) {
var data = datas[i];//一键入炉的待灭菌,没有入篮筐的器械包或篮筐节点
var parentNode = '';
var exit = false;
var newObj = {};
if ('器械包' == data.type) {
- if(newBarcodeArray.indexOf(data.barcode) == -1){
- parentNode = createNode(true,data.barcode,data.name,data.typeForSterilizationStatistics,data.depart,'器械包',position,data.amount,data.reviewTime,0,data.sterilingMode);
- }else {
+ if (newBarcodeArray.indexOf(data.barcode) == -1) {
+ parentNode = createNode(true, data.barcode, data.name, data.typeForSterilizationStatistics, data.depart, '器械包', position, data.amount, data.reviewTime, 0, data.sterilingMode);
+ } else {
exit = true;
newObj = data;
}
} else {
var tousseInstanceArr = data.dataList
var length = tousseInstanceArr.length;
- var amount=0
+ var amount = 0
//统计每个篮筐内的数量
- for(var j =0;j 0){
- for(var k = 0; k < tousseInstanceArr.length; k++){
+ parentNode = createNode(true, data.barcode, data.name, '', data.depart, '篮筐', position, amount, '', 0, null);
+ if (tousseInstanceArr && tousseInstanceArr.length > 0) {
+ for (var k = 0; k < tousseInstanceArr.length; k++) {
var ti = tousseInstanceArr[k];
- var childNode = createNode(false,ti.barcode,ti.name,ti.typeForSterilizationStatistics,ti.depart,'器械包',position,ti.amount,ti.reviewTime,0,data.sterilingMode);
+ var childNode = createNode(false, ti.barcode, ti.name, ti.typeForSterilizationStatistics, ti.depart, '器械包', position, ti.amount, ti.reviewTime, 0, data.sterilingMode);
parentNode.appendChild(childNode);
}
}
}
- if(parentNode != ''){
+ if (parentNode != '') {
var firstChildNode = rootNode.item(0);
- if(!firstChildNode){
+ if (!firstChildNode) {
rootNode.appendChild(parentNode);
- }else{
- rootNode.insertBefore(parentNode,firstChildNode);
+ } else {
+ rootNode.insertBefore(parentNode, firstChildNode);
}
}
- if(exit){
- rootNode.eachChild(function(pNode){
- if(pNode.attributes.barcode == newObj.barcode){
- var amount = parseInt(pNode.attributes.amount)+parseInt(newObj.amount);
- var newNode = createNode(true,newObj.barcode,newObj.name,newObj.typeForSterilizationStatistics,newObj.depart,'器械包',position,amount,newObj.reviewTime,0,newObj.sterilingMode);
- rootNode.replaceChild(newNode,pNode);
+ if (exit) {
+ rootNode.eachChild(function (pNode) {
+ if (pNode.attributes.barcode == newObj.barcode) {
+ var amount = parseInt(pNode.attributes.amount) + parseInt(newObj.amount);
+ var newNode = createNode(true, newObj.barcode, newObj.name, newObj.typeForSterilizationStatistics, newObj.depart, '器械包', position, amount, newObj.reviewTime, 0, newObj.sterilingMode);
+ rootNode.replaceChild(newNode, pNode);
return true;
}
});
@@ -1615,32 +1611,32 @@
* @param barcodeStr 可以是单个器械包/篮筐条码,也可以是首尾器械包/篮筐条码,用分号分隔
* @returns {Boolean}
*/
-function checkRepeat(barcodeStr){
+function checkRepeat(barcodeStr) {
var barcodeArray = barcodeStr.split(";");
var barcode = barcodeArray[0];
- if(barcodeArray.length > 1){
+ if (barcodeArray.length > 1) {
return false;
- }else{
+ } else {
var rootNode = sterilizationColumnTree.getRootNode();
var isExistTousse = false;
- rootNode.eachChild(function(pNode){
- if(pNode.attributes.barcode == barcode) {
+ rootNode.eachChild(function (pNode) {
+ if (pNode.attributes.barcode == barcode) {
isExistTousse = true;
}
});
}
return isExistTousse;
}
-function setIsClickDel(v){
- isClickDel = (v==1?true:false);
+function setIsClickDel(v) {
+ isClickDel = (v == 1 ? true : false);
}
-function deleteGiveBackColumnTreeItem(clickNode){
+function deleteGiveBackColumnTreeItem(clickNode) {
addPendingStarilizationGoodsFromRecord(clickNode);
var desMsg = "删除灭菌条码:" + clickNode.attributes.barcode + " ,名称:" + clickNode.attributes.name;
desMsg = desMsg + " ,类型:" + clickNode.attributes.type;
- buildSterilizationLogInfo("删除",desMsg);
+ buildSterilizationLogInfo("删除", desMsg);
clickNode.remove();
statisticsTousseAndBasket();
}
@@ -1651,27 +1647,27 @@
* @param type
* @param name
*/
-function addPendingSterilizationGoodsToRecord(barcode,type,name) {
+function addPendingSterilizationGoodsToRecord(barcode, type, name) {
var desMsg = "载入条码:" + barcode + " ,名称:" + name;
if (type == 'BASKET') {
desMsg = desMsg + " ,类型:篮筐";
- }else if(type == 'TOUSSE'){
+ } else if (type == 'TOUSSE') {
desMsg = desMsg + " ,类型:器械包";
}
- buildSterilizationLogInfo("载入",desMsg);
- loadTousseInstanceCheckPosition(barcode,id);
+ buildSterilizationLogInfo("载入", desMsg);
+ loadTousseInstanceCheckPosition(barcode, id);
}
/**
* 写日志
* @param type
* @param description
*/
-function buildSterilizationLogInfo(type,description){
+function buildSterilizationLogInfo(type, description) {
Ext.Ajax.request({
- url : WWWROOT + '/log/saveLog.do',
- params : {model : '灭菌模块',type : type,description : description},
- success : function(response, options) {
+ url: WWWROOT + '/log/saveLog.do',
+ params: { model: '灭菌模块', type: type, description: description },
+ success: function (response, options) {
}
});
}
@@ -1681,21 +1677,21 @@
* @param barcode
*/
function removePendingSterilizationGoods(barcode) {
- pendingSterilizationColumnTree.getRootNode().eachChild(function(pNode){
+ pendingSterilizationColumnTree.getRootNode().eachChild(function (pNode) {
//移除某一个节点后,再遍历其他节点得到的是undefined
if (pNode != null && pNode.attributes && pNode.attributes.objBarcode) {
- if(barcode.indexOf(";") != -1){
- try{
+ if (barcode.indexOf(";") != -1) {
+ try {
var objBarcodeInt = parseInt(pNode.attributes.objBarcode);
var barcodeArray = barcode.split(";");
- if(parseInt(barcodeArray[0]) <= objBarcodeInt && parseInt(barcodeArray[1]) >= objBarcodeInt){
+ if (parseInt(barcodeArray[0]) <= objBarcodeInt && parseInt(barcodeArray[1]) >= objBarcodeInt) {
pNode.remove();
}
- }catch(e){
-
+ } catch (e) {
+
}
- }else{
- if(pNode.attributes.objBarcode == barcode){
+ } else {
+ if (pNode.attributes.objBarcode == barcode) {
pNode.remove();
}
}
@@ -1704,36 +1700,36 @@
}
function removePendingSterilizationGoods2(barcode) {
- var barcodeArray = barcode.split(";");
- var child = pendingSterilizationColumnTree.getRootNode().childNodes;
- var removeAllArr = [];
- for(var i = 0;i < child.length;i++){
- for(var j = 0;j 2000){
- showResult('器械包的数量不能超过2000');
- sterilizationRecordWin.getEl().unmask();
- updateFail();
- top.Ext.getCmp('saveBtn').enable();
- formObj.getEl().unmask();
- statisticsTousseAndBasket();
- return
- }
Ext.Ajax.request({
- url : WWWROOT + '/disinfectSystem/sterilization/sterilizationRecordAction!fixedBarcodeBarcodeAdd.do',
- params : {
- fixedBarcode :fixedBarcode,
- addAmount : addAmount,
+ url: WWWROOT + '/disinfectSystem/sterilization/sterilizationRecordAction!fixedBarcodeBarcodeAdd.do',
+ params: {
+ fixedBarcode: fixedBarcode,
+ addAmount: addAmount,
myBarcodes: JSON.stringify(myBarcodes)//将数组已json格式传入后台
},
- waitMsg : '正在处理,请稍候...',
- success : function(response, options) {
+ waitMsg: '正在处理,请稍候...',
+ success: function (response, options) {
var result = Ext.decode(response.responseText);
- if(result.success){
+ if (result.success) {
var newBarcode = result.message.split(",")
- myBarcodes=myBarcodes.concat(newBarcode);//将返回的条码添加到全局中
- editAmountComplete(fixedBarcode,addAmount,1);
+ myBarcodes = myBarcodes.concat(newBarcode);//将返回的条码添加到全局中
+ editAmountComplete(fixedBarcode, addAmount, 1);
top.Ext.getCmp('saveBtn').enable();
- }else{
- showResult(result.message, null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ updateFail(newValue);
+ } else {
+ showResult(result.message, null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
sterilizationRecordWin.getEl().unmask();
updateFail();
top.Ext.getCmp('saveBtn').enable();
@@ -2064,8 +2052,8 @@
top.Ext.getCmp('saveBtn').enable();
statisticsTousseAndBasket();
},
- failure : function(response, options) {
- showResult("系统发生异常,请勿提交数据", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ failure: function (response, options) {
+ showResult("系统发生异常,请勿提交数据", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
sterilizationRecordWin.getEl().unmask();
formObj.getEl().unmask();
@@ -2076,7 +2064,7 @@
/**
* 只针对固定条码:点击删除图标后事件
*/
-function clickDeleteIcon(clickNode){
+function clickDeleteIcon(clickNode) {
var i = 0;
var objName = clickNode.attributes.name;
var type = clickNode.attributes.type;
@@ -2088,12 +2076,12 @@
var fixedBarcode = clickNode.attributes.barcode
var stockAmount = parseInt(clickNode.attributes.stockAmount);
var node = '';
- delTousseInsAmount(delAmount,fixedBarcode)//从全局数组中删除
+ delTousseInsAmount(delAmount, fixedBarcode)//从全局数组中删除
myFixedBarcodes.removeByValue(fixedBarcode);//在全局条码中移除该固定条码
- pendingSterilizationColumnTree.getRootNode().eachChild(function(pNode){
+ pendingSterilizationColumnTree.getRootNode().eachChild(function (pNode) {
//移除某一个节点后,再遍历其他节点得到的是undefined
if (pNode != null && pNode.attributes && pNode.attributes.objBarcode) {
- if(pNode.attributes.objBarcode == fixedBarcode &&i<1 ){
+ if (pNode.attributes.objBarcode == fixedBarcode && i < 1) {
i++
var name2 = pNode.attributes.objName;
var type2 = pNode.attributes.type;
@@ -2102,78 +2090,78 @@
var amountRight = parseInt(pNode.attributes.objAmount);//右边的数量
var rootNode2 = sterilizationColumnTree.getRootNode();
removePendingSterilizationGoods(fixedBarcode)//删除右边的数据
- node = createPendingSterilizationGoodsNode(fixedBarcode,objName,amount+amountRight,'TOUSSE','','',sterilingMode)
- }else{
+ node = createPendingSterilizationGoodsNode(fixedBarcode, objName, amount + amountRight, 'TOUSSE', '', '', sterilingMode)
+ } else {
- if(stockAmount<0 || isNaN(stockAmount)){
+ if (stockAmount < 0 || isNaN(stockAmount)) {
stockAmount = 0;
}
- node = createPendingSterilizationGoodsNode(fixedBarcode,objName,parseInt(stockAmount)+parseInt(amount),'TOUSSE','','',sterilingMode)
+ node = createPendingSterilizationGoodsNode(fixedBarcode, objName, parseInt(stockAmount) + parseInt(amount), 'TOUSSE', '', '', sterilingMode)
}
}
});
- if(!pendingSterilizationColumnTree.getRootNode().childNode){
+ if (!pendingSterilizationColumnTree.getRootNode().childNode) {
pendingSterilizationColumnTree.getRootNode().childNode = [];
}
- if(node == ''){
- node = createPendingSterilizationGoodsNode(fixedBarcode,objName,amount,'BASKET','',reviewTime,sterilingMode);
+ if (node == '') {
+ node = createPendingSterilizationGoodsNode(fixedBarcode, objName, amount, 'BASKET', '', reviewTime, sterilingMode);
pendingSterilizationColumnTree.getRootNode().appendChild(node);
- }else {
+ } else {
pendingSterilizationColumnTree.getRootNode().appendChild(node);
}
clickNode.remove();//将当前节点移除
- statisticsTousseAndBasket();
+ statisticsTousseAndBasket();
}
/**
* 固定条码删除数量
* @param delAmount
* @param fixedBarcode
*/
-function delTousseInsAmount(delAmount,fixedBarcode){
+function delTousseInsAmount(delAmount, fixedBarcode) {
top.Ext.getCmp('saveBtn').disable();//删除可能比较慢,先禁用保存按钮
Ext.Ajax.request({
- url : WWWROOT + '/disinfectSystem/sterilization/sterilizationRecordAction!fixedBarcodeBarcodeSubtraction.do',
- params : {
- fixedBarcode : fixedBarcode,//固定条码
+ url: WWWROOT + '/disinfectSystem/sterilization/sterilizationRecordAction!fixedBarcodeBarcodeSubtraction.do',
+ params: {
+ fixedBarcode: fixedBarcode,//固定条码
myBarcodes: JSON.stringify(myBarcodes),//将全局数组以json格式传入后台
- delAmount:delAmount//减少的数量
+ delAmount: delAmount//减少的数量
},
- waitMsg : '正在处理,请稍候...',
- success : function(response, options) {
+ waitMsg: '正在处理,请稍候...',
+ success: function (response, options) {
var result = Ext.decode(response.responseText);
- if(result.success){
- if(typeof(result.message)=="undefined" || result.message==""){
- myBarcodes=[];
- }else{
+ if (result.success) {
+ if (typeof (result.message) == "undefined" || result.message == "") {
+ myBarcodes = [];
+ } else {
myBarcodes = result.message.split(",")
- editAmountComplete(fixedBarcode,delAmount,2)
+ editAmountComplete(fixedBarcode, delAmount, 2)
}
top.Ext.getCmp('saveBtn').enable();
- }else{
- showResult("减少数量失败,请勿提交数据", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ } else {
+ showResult("减少数量失败,请勿提交数据", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
}
sterilizationRecordWin.getEl().unmask();
top.Ext.getCmp('saveBtn').enable();//成功删除全部后,启用保存按钮
statisticsTousseAndBasket();
},
- failure : function(response, options) {
- showResult("后台运行异常,请稍候再试...", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ failure: function (response, options) {
+ showResult("后台运行异常,请稍候再试...", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
formObj.getEl().unmask();
}
});
}
-Array.prototype.removeByValue = function(val) {
- for(var i=0; i0 && id==0) {
- top.Ext.getCmp('bioreaderName').setRawValue(records[0].data.bioreaderName);
- top.Ext.getCmp('bioreaderName').setValue(records[0].data.bioreaderId);
- top.Ext.getCmp('bioreaderId').setValue((records[0].data.bioreaderId));
- }
- }
- }
- });
+ proxy: new top.Ext.data.HttpProxy({
+ url: WWWROOT + '/disinfectSystem/sterilization/bioreaderAction!getBioreaderNameAndIdList.do?',
+ method: "POST"
+ }),
+ reader: new top.Ext.data.JsonReader({
+ fields: ['bioreaderId', 'bioreaderName']
+ }),
+ listeners: {
+ load: function (store, records) {
+ if (records.length > 0 && id == 0) {
+ top.Ext.getCmp('bioreaderName').setRawValue(records[0].data.bioreaderName);
+ top.Ext.getCmp('bioreaderName').setValue(records[0].data.bioreaderId);
+ top.Ext.getCmp('bioreaderId').setValue((records[0].data.bioreaderId));
+ }
+ }
+ }
+ });
//灭菌物品列表grid的列头,根据可配置的参数进行动态定义
var sterilizationColumnTreeColumnArray = [];
- if(sstsConfig.showDepartOfTousseInstanceSterile){
- sterilizationColumnTreeColumnArray.push({header:'科室',width:150,dataIndex:'depart'});
+ if (sstsConfig.showDepartOfTousseInstanceSterile) {
+ sterilizationColumnTreeColumnArray.push({ header: '科室', width: 150, dataIndex: 'depart' });
}
- sterilizationColumnTreeColumnArray.push({header:'条码',width:145,dataIndex:'barcode',
- renderer : function(v, p, record){
- var result = "";
- if(v == undefined){
- v = "";
- }
- if(sstsConfig.enableUrgentFunction && record.type == "器械包" && record.urgentLevel && record.urgentLevel.colorCode != undefined){//背景色加急级别
- //有色背景白字加急
- var colorClassName = getClassNameForColor(record.urgentLevel.colorCode);
- result += "";
- result += "

";
- result += v + "
";
- }else if(sstsConfig.enableUrgentFunction && record.type == "器械包" && record.isUrgentTousse && record.isUrgentTousse == "是" && record.urgentLevel != undefined && record.urgentLevel.colorCode == undefined){//灰色加急
- //无色背景黑字加急
- result += "";
- result += "

";
- result += v + "
";
- }else if(sstsConfig.enableUrgentFunction && record.type == "篮筐" && record.isUrgentTousse && record.isUrgentTousse == "是"){
- //篮筐内有加急物品
- result += "
";
- result += v;
- }else{//篮筐或者普通器械包
- result += v;
- }
- return result;
- }
- });
- sterilizationColumnTreeColumnArray.push({header:'名称',width:120,dataIndex:'name'});
- sterilizationColumnTreeColumnArray.push({header : '库存',dataIndex : 'stockAmount',width : 0, hidden:true});
- sterilizationColumnTreeColumnArray.push({header : '数量',dataIndex : 'amount',width : 50});
- sterilizationColumnTreeColumnArray.push({header : '灭菌方式',dataIndex : 'sterilingMode',width : 60});
- sterilizationColumnTreeColumnArray.push({header : '是否不追溯',dataIndex : 'unTraceable',width : 10, hidden:true});
-
+ sterilizationColumnTreeColumnArray.push({
+ header: '条码', width: 145, dataIndex: 'barcode',
+ renderer: function (v, p, record) {
+ var result = "";
+ if (v == undefined) {
+ v = "";
+ }
+ if (sstsConfig.enableUrgentFunction && record.type == "器械包" && record.urgentLevel && record.urgentLevel.colorCode != undefined) {//背景色加急级别
+ //有色背景白字加急
+ var colorClassName = getClassNameForColor(record.urgentLevel.colorCode);
+ result += "";
+ result += "

";
+ result += v + "
";
+ } else if (sstsConfig.enableUrgentFunction && record.type == "器械包" && record.isUrgentTousse && record.isUrgentTousse == "是" && record.urgentLevel != undefined && record.urgentLevel.colorCode == undefined) {//灰色加急
+ //无色背景黑字加急
+ result += "";
+ result += "

";
+ result += v + "
";
+ } else if (sstsConfig.enableUrgentFunction && record.type == "篮筐" && record.isUrgentTousse && record.isUrgentTousse == "是") {
+ //篮筐内有加急物品
+ result += "
";
+ result += v;
+ } else {//篮筐或者普通器械包
+ result += v;
+ }
+ return result;
+ }
+ });
+ sterilizationColumnTreeColumnArray.push({ header: '名称', width: 120, dataIndex: 'name' });
+ sterilizationColumnTreeColumnArray.push({ header: '库存', dataIndex: 'stockAmount', width: 0, hidden: true });
+ sterilizationColumnTreeColumnArray.push({ header: '数量', dataIndex: 'amount', width: 50 });
+ sterilizationColumnTreeColumnArray.push({ header: '灭菌方式', dataIndex: 'sterilingMode', width: 60 });
+ sterilizationColumnTreeColumnArray.push({ header: '是否不追溯', dataIndex: 'unTraceable', width: 10, hidden: true });
+
if (sstsConfig.haveSterilizerPosition) {
- sterilizationColumnTreeColumnArray.push({header:'位置',width:80,dataIndex:'position'});
+ sterilizationColumnTreeColumnArray.push({ header: '位置', width: 80, dataIndex: 'position' });
}
- sterilizationColumnTreeColumnArray.push({header:'删除',width:50,dataIndex:'type',
- renderer:function(v,p,record){
+ sterilizationColumnTreeColumnArray.push({
+ header: '删除', width: 50, dataIndex: 'type',
+ renderer: function (v, p, record) {
//只有“没有入篮筐的器械包节点”或者“篮筐节点”,并且灭菌记录的状态不为“已灭菌”和“灭菌失败” 或者 灭菌记录状态为灭菌中的子节点
- if((record.isParentNode == true
- && currentStatus != statusEnd
- && currentStatus != statusFailure) ||
- (currentStatus == statusBegin && record.isParentNode == false)){
- return "
";
- }
+ if ((record.isParentNode == true
+ && currentStatus != statusEnd
+ && currentStatus != statusFailure) ||
+ (currentStatus == statusBegin && record.isParentNode == false)) {
+ return "
";
+ }
return '';
}
});
sterilizationColumnTree = new top.Ext.tree.ColumnTree({
- rootVisible:false,
- autoScroll:true,
- containerScroll : false,
+ rootVisible: false,
+ autoScroll: true,
+ containerScroll: false,
height: 325,
-// width : 355,
- title:'灭菌物品列表',
- frame : false,
- bodyStyle : 'border:1px solid #afd7af',
- columns:sterilizationColumnTreeColumnArray,//根据列头,自动解析1
+ // width : 355,
+ title: '灭菌物品列表',
+ frame: false,
+ bodyStyle: 'border:1px solid #afd7af',
+ columns: sterilizationColumnTreeColumnArray,//根据列头,自动解析1
loader: new top.Ext.tree.TreeLoader({
- url : WWWROOT + '/disinfectSystem/sterilization/sterilizationRecordAction!loadSterilizationGoods.do',
- baseParams : {id:id},
- uiProviders:{
+ url: WWWROOT + '/disinfectSystem/sterilization/sterilizationRecordAction!loadSterilizationGoods.do',
+ baseParams: { id: id },
+ uiProviders: {
'col': top.Ext.tree.ColumnNodeUI
},
- listeners : {
- beforeload : function(treeLoader, node){
+ listeners: {
+ beforeload: function (treeLoader, node) {
sterilizationColumnTree.getEl().mask("数据加载中,请稍等!");
},
- load : function(_this, node, response) {
- statisticsTousseAndBasket();
+ load: function (_this, node, response) {
+ statisticsTousseAndBasket();
sterilizationColumnTree.getEl().unmask();
}
}
}),
root: new top.Ext.tree.AsyncTreeNode({
- text:'灭菌物品列表'
+ text: '灭菌物品列表'
})
});
-
+
sterilizationColumnTreeEditer = new top.Ext.tree.ColumnTreeEditor(sterilizationColumnTree, {
- completeOnEnter : true,
- autosize : true,
+ completeOnEnter: true,
+ autosize: true,
allowBlank: false,
- selectOnFocus : true,
- revertInvalid:true,
- ignoreNoChange : true,
- clicksToEdit:1
+ selectOnFocus: true,
+ revertInvalid: true,
+ ignoreNoChange: true,
+ clicksToEdit: 1
});
-
- sterilizationColumnTreeEditer.on("beforestartedit", function(thiz,el,v){
+
+ sterilizationColumnTreeEditer.on("beforestartedit", function (thiz, el, v) {
var tempNode = thiz.editNode;//将要编辑的节点&& tempNode.attributes.scanFixedBarcode == '是'
- if(thiz.editColIndex == 'amount'){
+ if (thiz.editColIndex == 'amount') {
return true;
- }else {
+ } else {
return false;
}
});
-
- sterilizationColumnTreeEditer.on("complete", function(thiz,newValue,oldValue){//修改后的事件
- if(newValue==oldValue){//没有修改数据
+
+ sterilizationColumnTreeEditer.on("complete", function (thiz, newValue, oldValue) {//修改后的事件
+ if (newValue == oldValue) {//没有修改数据
return;
}
sterilizationRecordWin.getEl().mask("正在加载中.请稍等...", "x-mask-loading");
@@ -2340,315 +2330,326 @@
var oldAmount = parseInt(oldValue)
var reg = new RegExp("^[0-9]*$");
var stockAmount = parseInt(editNode.attributes.stockAmount)
- if(top.Ext.getCmp('endDate').getValue() != ''){
- showResult("已灭菌的记录不能修改数量", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
- sterilizationRecordWin.getEl().unmask();
- return false;
+ if (top.Ext.getCmp('endDate').getValue() != '') {
+ showResult("已灭菌的记录不能修改数量", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ sterilizationRecordWin.getEl().unmask();
+ return false;
}
- if(!reg.test(newValue)){
- showResult("请输入数字", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ if (!reg.test(newValue)) {
+ showResult("请输入数字", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
sterilizationRecordWin.getEl().unmask();
return false;
}
- if(newValue==0){
- showResult("请输入大于0的数字", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ if (newValue == 0) {
+ showResult("请输入大于0的数字", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
sterilizationRecordWin.getEl().unmask();
- return false;
+ return false;
}
- var stockAmount = editNode.attributes.stockAmount ;
- var rigthAmount = getRigthFixedBarcodeAmount(barcode)
- if(newAmount>oldAmount){//如果是增加数量
- addTousseInsAmount(attr.barcode,newAmount-oldAmount,thiz,newValue,oldValue)
- }else if(newAmount oldAmount) {//如果是增加数量
+ if (newAmount > 2000 && rigthAmount < 0) {
+ showResult('已超过' + name + '包的最大待灭菌物品总数2000');
+ sterilizationRecordWin.getEl().unmask();
+ return false;
+ }
+ if (newAmount > 2000) {
+ newAmount = parseInt(rigthAmount) + parseInt(oldAmount);
+ newValue = newAmount;
+ }
+ addTousseInsAmount(attr.barcode, newAmount - oldAmount, thiz, newValue, oldValue)
+ } else if (newAmount < oldAmount) {
+ delTousseInsAmount(oldAmount - newAmount, attr.barcode)
}
statisticsTousseAndBasket();
-// 现在改成不去后台获取库存,而是改成前端判断
-// count = parseInt(newAmount) - parseInt(oldAmount);//修改后 - 修改前 = 增加的数量
-// Ext.Ajax.request({
-// url : WWWROOT + '/disinfectSystem/sterilization/sterilizationRecordAction!checkTousseInsAmountByBarcode.do',
-// params : {
-// barcode : barcode,
-// newAmount : newValue,
-// count : count,
-// tousseName : name,
-// sterilizationRecordId:top.Ext.getCmp('id').getValue()
-// },
-// waitMsg : '正在处理,请稍候...',
+ // 现在改成不去后台获取库存,而是改成前端判断
+ // count = parseInt(newAmount) - parseInt(oldAmount);//修改后 - 修改前 = 增加的数量
+ // Ext.Ajax.request({
+ // url : WWWROOT + '/disinfectSystem/sterilization/sterilizationRecordAction!checkTousseInsAmountByBarcode.do',
+ // params : {
+ // barcode : barcode,
+ // newAmount : newValue,
+ // count : count,
+ // tousseName : name,
+ // sterilizationRecordId:top.Ext.getCmp('id').getValue()
+ // },
+ // waitMsg : '正在处理,请稍候...',
-// success : function(response, options) {
-// var result = Ext.decode(response.responseText);
-// if(result.success){
-// if(newAmount>oldAmount){//如果是增加数量
-// addTousseInsAmount(attr.barcode,newAmount-oldAmount,thiz,newValue,oldValue)
-// }else{
-// var count = oldAmount - newAmount //减少的数量
-// delTousseInsAmount(count,attr.barcode)
-// }
-// }else{//修改数量失败
-// sterilizationRecordWin.getEl().unmask();
-// showResult(result.message);
-// updateFail();
-// top.Ext.getCmp('saveBtn').enable();
-// }
-// //每次修改数量后,进行统计
-// statisticsTousseAndBasket();
-// },
-// failure : function(response, options) {
-// showResult("后台运行异常,请稍候再试...");
+ // success : function(response, options) {
+ // var result = Ext.decode(response.responseText);
+ // if(result.success){
+ // if(newAmount>oldAmount){//如果是增加数量
+ // addTousseInsAmount(attr.barcode,newAmount-oldAmount,thiz,newValue,oldValue)
+ // }else{
+ // var count = oldAmount - newAmount //减少的数量
+ // delTousseInsAmount(count,attr.barcode)
+ // }
+ // }else{//修改数量失败
+ // sterilizationRecordWin.getEl().unmask();
+ // showResult(result.message);
+ // updateFail();
+ // top.Ext.getCmp('saveBtn').enable();
+ // }
+ // //每次修改数量后,进行统计
+ // statisticsTousseAndBasket();
+ // },
+ // failure : function(response, options) {
+ // showResult("后台运行异常,请稍候再试...");
-// formObj.getEl().unmask();
-// top.Ext.getCmp('saveBtn').enable();
-// sterilizationRecordWin.getEl().unmask();
-// }
-// });
+ // formObj.getEl().unmask();
+ // top.Ext.getCmp('saveBtn').enable();
+ // sterilizationRecordWin.getEl().unmask();
+ // }
+ // });
});
-
- sterilizationColumnTree.on("beforeclick",function(clickNode,eObj){
- if(isClickDel){ //点击删除图标
- if(!clickNode.attributes.isParentNode){
- delChildNode(clickNode);
- }else if(myFixedBarcodes.indexOf(clickNode.attributes.barcode)!=-1){//该条码为固定条码
+
+ sterilizationColumnTree.on("beforeclick", function (clickNode, eObj) {
+ if (isClickDel) { //点击删除图标
+ if (!clickNode.attributes.isParentNode) {
+ delChildNode(clickNode);
+ } else if (myFixedBarcodes.indexOf(clickNode.attributes.barcode) != -1) {//该条码为固定条码
sterilizationRecordWin.getEl().mask("正在删除.请稍等...", "x-mask-loading");
clickDeleteIcon(clickNode);
- }else{
+ } else {
deleteGiveBackColumnTreeItem(clickNode);
}
setIsClickDel(0);
-
+
//统计
- statisticsTousseAndBasket();
+ statisticsTousseAndBasket();
}
});
- sterilizationColumnTree.on("load",function(node,response){
- var position = getLastPosition();
- if(top.Ext.getCmp('position') != null){
- top.Ext.getCmp('position').setValue(position);
- }
- });
-
+ sterilizationColumnTree.on("load", function (node, response) {
+ var position = getLastPosition();
+ if (top.Ext.getCmp('position') != null) {
+ top.Ext.getCmp('position').setValue(position);
+ }
+ });
+
var urlParam = Ext.urlEncode({
- status :currentStatus
+ status: currentStatus
});
-
+
//灭菌物品列表grid的列头,根据可配置的参数进行动态定义
var pendingSterilizationColumnTreeColumnArray = [];
pendingSterilizationColumnTreeColumnArray.push({
- header : '条码',width : 130,dataIndex : 'objBarcode',
- renderer : function(v, p, record){
- var result = "";
- if(v == undefined){
- v = "";
- }
- if(sstsConfig.enableUrgentFunction && (record.type == "TOUSSE_IN" || record.type == "TOUSSE") && record.urgentLevel != undefined && record.urgentLevel.colorCode != undefined){//背景色加急级别
- //有色背景白字加急
- var colorClassName = getClassNameForColor(record.urgentLevel.colorCode);
- result += "";
- result += "

";
- result += v + "
";
- }else if(sstsConfig.enableUrgentFunction && (record.type == "TOUSSE_IN" || record.type == "TOUSSE") && record.isUrgent && record.isUrgent == "是" && record.urgentLevel != undefined && record.urgentLevel == ""){//灰色加急
- //无色背景黑字加急
- result += "";
- result += "

";
- result += v + "
";
- }else if(sstsConfig.enableUrgentFunction && record.type == "BASKET" && record.isUrgent == "是"){
- result += "
";
- result += v;
- }else{
- result += v;
- }
- return result;
- }
+ header: '条码', width: 130, dataIndex: 'objBarcode',
+ renderer: function (v, p, record) {
+ var result = "";
+ if (v == undefined) {
+ v = "";
+ }
+ if (sstsConfig.enableUrgentFunction && (record.type == "TOUSSE_IN" || record.type == "TOUSSE") && record.urgentLevel != undefined && record.urgentLevel.colorCode != undefined) {//背景色加急级别
+ //有色背景白字加急
+ var colorClassName = getClassNameForColor(record.urgentLevel.colorCode);
+ result += "";
+ result += "

";
+ result += v + "
";
+ } else if (sstsConfig.enableUrgentFunction && (record.type == "TOUSSE_IN" || record.type == "TOUSSE") && record.isUrgent && record.isUrgent == "是" && record.urgentLevel != undefined && record.urgentLevel == "") {//灰色加急
+ //无色背景黑字加急
+ result += "";
+ result += "

";
+ result += v + "
";
+ } else if (sstsConfig.enableUrgentFunction && record.type == "BASKET" && record.isUrgent == "是") {
+ result += "
";
+ result += v;
+ } else {
+ result += v;
+ }
+ return result;
+ }
});
pendingSterilizationColumnTreeColumnArray.push({
- header : '名称',width : 150,dataIndex : 'objName'
+ header: '名称', width: 150, dataIndex: 'objName'
});
pendingSterilizationColumnTreeColumnArray.push({
- header : '灭菌方式',width : 60,dataIndex : 'sterilingMode'
+ header: '灭菌方式', width: 60, dataIndex: 'sterilingMode'
});
pendingSterilizationColumnTreeColumnArray.push({
- header : '数量',width : 45,dataIndex : 'objAmount'
+ header: '数量', width: 45, dataIndex: 'objAmount'
});
pendingSterilizationColumnTreeColumnArray.push({
- header : '载入',width : 35,dataIndex : 'type',hidden:hideSterilizationLoadBtn,
- renderer : function(v,p,record){
- var str = "
";
+ header: '载入', width: 35, dataIndex: 'type', hidden: hideSterilizationLoadBtn,
+ renderer: function (v, p, record) {
+ var str = "
";
if (record.type == 'BASKET' || record.type == 'TOUSSE') {
- if(currentStatus != statusEnd && currentStatus != statusFailure){
+ if (currentStatus != statusEnd && currentStatus != statusFailure) {
return str;
}
}
return '';
}
});
- if(sstsConfig.showDepartOfTousseInstanceSterile == true) {
+ if (sstsConfig.showDepartOfTousseInstanceSterile == true) {
pendingSterilizationColumnTreeColumnArray.push({
- header : '科室',width : 150,dataIndex : 'depart'
+ header: '科室', width: 150, dataIndex: 'depart'
});
}
pendingSterilizationColumnTreeColumnArray.push({
- header : '审核时间',width : 135,dataIndex : 'reviewTime'
+ header: '审核时间', width: 135, dataIndex: 'reviewTime'
});
pendingSterilizationColumnTreeColumnArray.push({
- header : '加急',width : 35,dataIndex : 'isUrgent',
- renderer : function(v, p, record) {
- if (v == '是') {
- return '' + v + '';
- }else{
- return '' + '否' + '';
- }
+ header: '加急', width: 35, dataIndex: 'isUrgent',
+ renderer: function (v, p, record) {
+ if (v == '是') {
+ return '' + v + '';
+ } else {
+ return '' + '否' + '';
}
+ }
});
pendingSterilizationColumnTreeColumnArray.push({
- header : '删除',
- width : 40,
- dataIndex : 'type',
- renderer : function(v,p,record){
- var str = "
";
+ header: '删除',
+ width: 40,
+ dataIndex: 'type',
+ renderer: function (v, p, record) {
+ var str = "
";
if (record.type == 'TOUSSE_IN') {
- if(currentStatus != statusEnd && currentStatus != statusFailure){
+ if (currentStatus != statusEnd && currentStatus != statusFailure) {
return str;
}
}
return '';
}
});
-
+
/**
* 今天审核的待灭菌物品列表
*/
pendingSterilizationColumnTree = new top.Ext.tree.ColumnTree({
- rootVisible : false,
- autoScroll : true,
- containerScroll : true,
- height : pendingSterilizationColumnTreeHeight ,
- width:top.screen.width > 1600 ? 600 :550,
- frame : false,
- bodyStyle : 'border:1px solid #afd7af',
- tbar:['-','->',{hidden:isHideBtnBatchAddTousse,iconCls : 'btn_ext_add_tousse',id:'btnBatchAddTousse',disabled:true,text:'一键入炉',handler:function(_this) {
- var rootNode = pendingSterilizationColumnTree.getRootNode();
- var len = rootNode.childNodes.length;
- if(len == 0){
- showResult("暂无今天审核的待灭菌记录", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
- return;
- }
- var canAddTousse = sterilizationCanAddTousse();
- if(!canAddTousse){
- showResult("当前灭菌程序不能灭菌物品!", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
- return;
- }
-
- //先将节点的条码存储到集合变量中
- var waitSterilingBarcodeArray = [];
- //查询节点的数据是否存在,如果存在则进行循环
- Ext.each(rootNode.childNodes, function(cNode){
- waitSterilingBarcodeArray.push(cNode.attributes["objBarcode"]);
- });
- top.Ext.getCmp('btnBatchAddTousse').disable();
-// formObj.getEl().mask("正在加载,请稍候...");
- Ext.Ajax.timeout=90000;
-// pendingSterilizationColumnTree.getEl().mask("正在加载中.请稍等...", "x-mask-loading");
- Ext.Ajax.request({
- url : WWWROOT + '/disinfectSystem/sterilization/sterilizationRecordAction!batchAddToRecord.do',
- params : {
- sterilizationRecordId : top.Ext.getCmp('id').getValue(),
- barcodes : waitSterilingBarcodeArray.join(";"),
- loadTousseNamesInBasket : true, //是否要加载篮筐里的器械包名称
- //sterilizationRecordId : sterilizationRecordId, //灭菌记录id
- checkProxyDisinfection : 'yes', //是否需要检查代理灭菌是否已录入代理灭菌单
- saveBarcode : myBarcodes.join(';'), //此次扫描之前已经扫描的条码集合
- myBarcode : getAlreadyScanBarcodes() //此次扫描之前已经扫描的固定条码集合
- },
- waitMsg : '正在处理,请稍候...',
- success : function(response, options) {
- top.Ext.getCmp('btnBatchAddTousse').enable();
- var result = Ext.decode(response.responseText);
- if(result.success){
- var fixedBarodeJsonArray = result.fixedBarodeJsonArray
- var barodeJsonArray = result.barodeJsonArray
-
- //如果存在固定条码,则缓存在页面上
- if(fixedBarodeJsonArray && barodeJsonArray ){
- for(var f=0;f 1600 ? 600 : 550,
+ frame: false,
+ bodyStyle: 'border:1px solid #afd7af',
+ tbar: ['-', '->', {
+ hidden: isHideBtnBatchAddTousse, iconCls: 'btn_ext_add_tousse', id: 'btnBatchAddTousse', disabled: true, text: '一键入炉', handler: function (_this) {
+ var rootNode = pendingSterilizationColumnTree.getRootNode();
+ var len = rootNode.childNodes.length;
+ if (len == 0) {
+ showResult("暂无今天审核的待灭菌记录", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ return;
+ }
+ var canAddTousse = sterilizationCanAddTousse();
+ if (!canAddTousse) {
+ showResult("当前灭菌程序不能灭菌物品!", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ return;
+ }
+
+ //先将节点的条码存储到集合变量中
+ var waitSterilingBarcodeArray = [];
+ //查询节点的数据是否存在,如果存在则进行循环
+ Ext.each(rootNode.childNodes, function (cNode) {
+ waitSterilingBarcodeArray.push(cNode.attributes["objBarcode"]);
+ });
+ top.Ext.getCmp('btnBatchAddTousse').disable();
+ // formObj.getEl().mask("正在加载,请稍候...");
+ Ext.Ajax.timeout = 90000;
+ // pendingSterilizationColumnTree.getEl().mask("正在加载中.请稍等...", "x-mask-loading");
+ Ext.Ajax.request({
+ url: WWWROOT + '/disinfectSystem/sterilization/sterilizationRecordAction!batchAddToRecord.do',
+ params: {
+ sterilizationRecordId: top.Ext.getCmp('id').getValue(),
+ barcodes: waitSterilingBarcodeArray.join(";"),
+ loadTousseNamesInBasket: true, //是否要加载篮筐里的器械包名称
+ //sterilizationRecordId : sterilizationRecordId, //灭菌记录id
+ checkProxyDisinfection: 'yes', //是否需要检查代理灭菌是否已录入代理灭菌单
+ saveBarcode: myBarcodes.join(';'), //此次扫描之前已经扫描的条码集合
+ myBarcode: getAlreadyScanBarcodes() //此次扫描之前已经扫描的固定条码集合
+ },
+ waitMsg: '正在处理,请稍候...',
+ success: function (response, options) {
+ top.Ext.getCmp('btnBatchAddTousse').enable();
+ var result = Ext.decode(response.responseText);
+ if (result.success) {
+ var fixedBarodeJsonArray = result.fixedBarodeJsonArray
+ var barodeJsonArray = result.barodeJsonArray
+
+ //如果存在固定条码,则缓存在页面上
+ if (fixedBarodeJsonArray && barodeJsonArray) {
+ for (var f = 0; f < fixedBarodeJsonArray.length; f++) {
+ if (myFixedBarcodes.indexOf(fixedBarodeJsonArray[f]) == -1) {
+ myFixedBarcodes.push(fixedBarodeJsonArray[f])
+ }
}
+ for (var b = 0; b < barodeJsonArray.length; b++) {
+ myBarcodes.push(barodeJsonArray[b])
+ }
}
- for(var b = 0;b 0){
- showResult('有'+timeoutCount+'个超时未灭菌的物品,请及时处理红色标注的物品', null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ if (timeoutCount > 0) {
+ showResult('有' + timeoutCount + '个超时未灭菌的物品,请及时处理红色标注的物品', null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
}
}
@@ -2659,595 +2660,590 @@
}
}),
root: new top.Ext.tree.AsyncTreeNode({
- text:'待灭菌物品列表'
+ text: '待灭菌物品列表'
})
});
-
- var completeColumnTreeArray =[];
- completeColumnTreeArray.push({header:'条码',width:100,dataIndex:'barcode'});
- completeColumnTreeArray.push({header:'名称',width:150,dataIndex:'tousseName'});
- completeColumnTreeArray.push({header:'科室',width:150,dataIndex:'depart'});
- completeColumnTreeArray.push({header:'数量',width:50,dataIndex:'amount'});
+
+ var completeColumnTreeArray = [];
+ completeColumnTreeArray.push({ header: '条码', width: 100, dataIndex: 'barcode' });
+ completeColumnTreeArray.push({ header: '名称', width: 150, dataIndex: 'tousseName' });
+ completeColumnTreeArray.push({ header: '科室', width: 150, dataIndex: 'depart' });
+ completeColumnTreeArray.push({ header: '数量', width: 50, dataIndex: 'amount' });
sterileUnLoadScanTousseColumnTree = new top.Ext.tree.ColumnTree({
- rootVisible:false,
- autoScroll:true,
+ rootVisible: false,
+ autoScroll: true,
height: 400,
- title:'卸载物品统计列表',
- frame : false,
- containerScroll : true,
- bodyStyle : 'border:1px solid #afd7af',
- columns:completeColumnTreeArray,
+ title: '卸载物品统计列表',
+ frame: false,
+ containerScroll: true,
+ bodyStyle: 'border:1px solid #afd7af',
+ columns: completeColumnTreeArray,
root: new top.Ext.tree.AsyncTreeNode({
- text:'卸载物品统计列表'
+ text: '卸载物品统计列表'
}),
- loader : new top.Ext.tree.TreeLoader({
+ loader: new top.Ext.tree.TreeLoader({
//加载卸载物品
- url : WWWROOT + '/disinfectSystem/sterilization/sterileUnloadScanTousseAction!getSterileUnloadTousseBySterileRecordId.do?'+urlParam,
- uiProviders:{
+ url: WWWROOT + '/disinfectSystem/sterilization/sterileUnloadScanTousseAction!getSterileUnloadTousseBySterileRecordId.do?' + urlParam,
+ uiProviders: {
'col': top.Ext.tree.ColumnNodeUI
},
- baseParams : {sterilizationReocrdId:id},
- listeners:{
- beforeload : function(treeLoader, node){
+ baseParams: { sterilizationReocrdId: id },
+ listeners: {
+ beforeload: function (treeLoader, node) {
sterileUnLoadScanTousseColumnTree.getEl().mask("数据重新加载中,请稍等!");
},
- load:function(treeLoader, node, response){
+ load: function (treeLoader, node, response) {
var result = Ext.decode(response.responseText);
var countAmount = parseInt(result.length)
- top.Ext.getCmp('sterileUnloadTousseAmount').setText("已卸载物品总数:"+countAmount+"")
+ top.Ext.getCmp('sterileUnloadTousseAmount').setText("已卸载物品总数:" + countAmount + "")
sterileUnLoadScanTousseColumnTree.getEl().unmask();
}
}
-
+
})
})
-
-
-
+
+
+
this.id = id;
tousseItemCountJsonStore.removeAll();
formObj = new top.Ext.FormPanel({
- id : 'sterilizerForm',
- frame : true,
- labelSeparator : ':',
- bodyStyle : 'padding:5px 5px 0px 5px',
- height : 570,
- autoWidth:true,
- autoScroll : true,
- labelAlign:'right',
+ id: 'sterilizerForm',
+ frame: true,
+ labelSeparator: ':',
+ bodyStyle: 'padding:5px 5px 0px 5px',
+ height: 570,
+ autoWidth: true,
+ autoScroll: true,
+ labelAlign: 'right',
viewConfig: {
- forceFit:true
+ forceFit: true
},
- items : [{
- layout : 'column',
- items : [{
- columnWidth : (top.screen.width > 1600 ? 0.6 : 0.55),
- layout : 'column',
- items : [{
- xtype : "fieldset",
- title : "灭菌参数",
- layout : 'column',
- autoHeight : true,
- columnWidth : 1,
- labelWidth:setlabelWidth,
- items : [{
- xtype : 'hidden',
- name : 'bioreaderId',
- id : 'bioreaderId'
- },{
- xtype : 'hidden',
- name : 'id',
- id : 'id'
- },{
- xtype : 'hidden',
- name : 'reSterilization',
- id : 'reSterilization'
- },{
- xtype : 'hidden',
- name : 'currentStatus',
- id : 'currentStatus',
- value:currentStatus
- },{
- xtype : 'hidden',
- name : 'includeImplant',
- id : 'includeImplant',
- value:includeImplant
- },{
- xtype : 'hidden',
- name : 'recordId',
- id : 'recordId'
- },{
- xtype : 'hidden',
- name : 'barcodePositionInfo',
- id : 'barcodePositionInfo'
- },{
- xtype : 'hidden',
- name : 'sterilizationGoods',
- id : 'sterilizationGoods'
- },{
- xtype : 'hidden',
- name : 'delTousseJson',
- id : 'delTousseJson'
- },{
- xtype : 'hidden',
- name : 'monitorTousseDisplay',
- id : 'monitorTousseDisplay'
- },{
- xtype : 'hidden',
- name : 'haveDoneNoticeSterilisation',
- id : 'haveDoneNoticeSterilisation'
- },{
- columnWidth : .33,
- layout : 'form',
- cls:'edit-5char-labelwidth',
- items : [{
- xtype : 'textfield',
- fieldLabel : "灭菌员",
- // labelWidth: 60,
- name : "sterilizationUser",
- id : "sterilizationUser",
- readOnly : true,
- allowBlank : false,
- anchor : '100%',
- cls:'x-item-disabled'
+ items: [{
+ layout: 'column',
+ items: [{
+ columnWidth: (top.screen.width > 1600 ? 0.6 : 0.55),
+ layout: 'column',
+ items: [{
+ xtype: "fieldset",
+ title: "灭菌参数",
+ layout: 'column',
+ autoHeight: true,
+ columnWidth: 1,
+ labelWidth: setlabelWidth,
+ items: [{
+ xtype: 'hidden',
+ name: 'bioreaderId',
+ id: 'bioreaderId'
+ }, {
+ xtype: 'hidden',
+ name: 'id',
+ id: 'id'
+ }, {
+ xtype: 'hidden',
+ name: 'reSterilization',
+ id: 'reSterilization'
+ }, {
+ xtype: 'hidden',
+ name: 'currentStatus',
+ id: 'currentStatus',
+ value: currentStatus
+ }, {
+ xtype: 'hidden',
+ name: 'includeImplant',
+ id: 'includeImplant',
+ value: includeImplant
+ }, {
+ xtype: 'hidden',
+ name: 'recordId',
+ id: 'recordId'
+ }, {
+ xtype: 'hidden',
+ name: 'barcodePositionInfo',
+ id: 'barcodePositionInfo'
+ }, {
+ xtype: 'hidden',
+ name: 'sterilizationGoods',
+ id: 'sterilizationGoods'
+ }, {
+ xtype: 'hidden',
+ name: 'delTousseJson',
+ id: 'delTousseJson'
+ }, {
+ xtype: 'hidden',
+ name: 'monitorTousseDisplay',
+ id: 'monitorTousseDisplay'
+ }, {
+ xtype: 'hidden',
+ name: 'haveDoneNoticeSterilisation',
+ id: 'haveDoneNoticeSterilisation'
+ }, {
+ columnWidth: .33,
+ layout: 'form',
+ cls: 'edit-5char-labelwidth',
+ items: [{
+ xtype: 'textfield',
+ fieldLabel: "灭菌员",
+ // labelWidth: 60,
+ name: "sterilizationUser",
+ id: "sterilizationUser",
+ readOnly: true,
+ allowBlank: false,
+ anchor: '100%',
+ cls: 'x-item-disabled'
}]
}, {
- columnWidth : .33,
- layout : 'form',
- cls:'edit-5char-labelwidth',
- items : [ {
- xtype : 'textfield',
- fieldLabel : "灭菌架名称",
- // labelWidth: 85,
- listWidth:120,
- name : "sterilizationShelf",
- id : "sterilizationShelf",
- readOnly : true,
- allowBlank : true,
- anchor : '100%',
- cls:'x-item-disabled'
- } ]
- } , {
- columnWidth : .33,
- layout : 'form',
- cls:'edit-5char-labelwidth',
- items : [{
- xtype : 'combo',
- fieldLabel : "灭菌炉名称",
- // labelWidth: 85,
- valueField : 'sterilizerName',
- displayField : 'sterilizerName',
- store : new Ext.data.SimpleStore({
- fields : [ 'sterilizerName','monitorTousseDisplay'],
- url : WWWROOT + '/disinfectSystem/baseData/sterilizerAction!getAllSterilizer.do?ownGroup=' + encodeURI(ownGroup)
+ columnWidth: .33,
+ layout: 'form',
+ cls: 'edit-5char-labelwidth',
+ items: [{
+ xtype: 'textfield',
+ fieldLabel: "灭菌架名称",
+ // labelWidth: 85,
+ listWidth: 120,
+ name: "sterilizationShelf",
+ id: "sterilizationShelf",
+ readOnly: true,
+ allowBlank: true,
+ anchor: '100%',
+ cls: 'x-item-disabled'
+ }]
+ }, {
+ columnWidth: .33,
+ layout: 'form',
+ cls: 'edit-5char-labelwidth',
+ items: [{
+ xtype: 'combo',
+ fieldLabel: "灭菌炉名称",
+ // labelWidth: 85,
+ valueField: 'sterilizerName',
+ displayField: 'sterilizerName',
+ store: new Ext.data.SimpleStore({
+ fields: ['sterilizerName', 'monitorTousseDisplay'],
+ url: WWWROOT + '/disinfectSystem/baseData/sterilizerAction!getAllSterilizer.do?ownGroup=' + encodeURI(ownGroup)
}),
- triggerAction : 'all',
- mode : 'remote',
- listWidth:180,
- forceSelection : true,
- name : "sterilizerName",
- id : "sterilizerName",
- allowBlank : false,
- editable : false,
- readOnly:true,
- anchor : '100%',
- listeners : {
- select : function(combo, record, index) {
- DWREngine.setAsync(true);
- var recordId = id;
- if(reSterilization){
- recordId = "0";
- }
- SterilizationRecordTableManager.getMaxFrequency(combo.value,recordId,function(result){
- top.Ext.getCmp('frequency').setValue(result);
- });
- SterilizationRecordTableManager.getNextCycleCounter(combo.value,recordId,function(result){
- if(result == 0)
- {
- top.Ext.getCmp('cycleCounter').setValue(1);
- }else
- {
- top.Ext.getCmp('cycleCounter').setValue(result);
- }
- });
- //判断是否无条件显示循环次数
- if(sstsConfig.showCycleCountWithoutCondition){
- top.Ext.getCmp('cycleCounterId').show();
- }else{
- // 判断灭菌炉是否关联接口,是否显示循环次数
- SterilizationRecordTableManager.isDefineDeviceInterface(combo.value,function(result)
- {
- if(result)
- {
+ triggerAction: 'all',
+ mode: 'remote',
+ listWidth: 180,
+ forceSelection: true,
+ name: "sterilizerName",
+ id: "sterilizerName",
+ allowBlank: false,
+ editable: false,
+ readOnly: true,
+ anchor: '100%',
+ listeners: {
+ select: function (combo, record, index) {
+ DWREngine.setAsync(true);
+ var recordId = id;
+ if (reSterilization) {
+ recordId = "0";
+ }
+ SterilizationRecordTableManager.getMaxFrequency(combo.value, recordId, function (result) {
+ top.Ext.getCmp('frequency').setValue(result);
+ });
+ SterilizationRecordTableManager.getNextCycleCounter(combo.value, recordId, function (result) {
+ if (result == 0) {
+ top.Ext.getCmp('cycleCounter').setValue(1);
+ } else {
+ top.Ext.getCmp('cycleCounter').setValue(result);
+ }
+ });
+ //判断是否无条件显示循环次数
+ if (sstsConfig.showCycleCountWithoutCondition) {
+ top.Ext.getCmp('cycleCounterId').show();
+ } else {
+ // 判断灭菌炉是否关联接口,是否显示循环次数
+ SterilizationRecordTableManager.isDefineDeviceInterface(combo.value, function (result) {
+ if (result) {
top.Ext.getCmp('cycleCounterId').show();
- }else
- {
+ } else {
top.Ext.getCmp('cycleCounterId').hide();
}
});
}
DWREngine.setAsync(true);
sterilizationTypeStore.reload();
if (sstsConfig.sterilizationCheckTousseSterilingType
- && sterilizerNameTemp != combo.value) { //切换灭菌炉时,重新加载待灭菌物品(主要过滤掉,待灭菌物品的默认灭菌程序不在此灭菌炉所有的灭菌程序之内的)
+ && sterilizerNameTemp != combo.value) { //切换灭菌炉时,重新加载待灭菌物品(主要过滤掉,待灭菌物品的默认灭菌程序不在此灭菌炉所有的灭菌程序之内的)
sterilizerNameTemp = combo.value;
- pendingSterilizationColumnTree.loader.load(pendingSterilizationColumnTree.root,function(){});
+ pendingSterilizationColumnTree.loader.load(pendingSterilizationColumnTree.root, function () { });
}
top.Ext.getCmp('sterilizationPurpose').setValue('');
- Ext.Ajax.request( {
- url : WWWROOT + '/disinfectSystem/baseData/sterilizerAction!loadSterilizerBySterilizerName.do',
- params : {
- sterilizerName : combo.value
+ Ext.Ajax.request({
+ url: WWWROOT + '/disinfectSystem/baseData/sterilizerAction!loadSterilizerBySterilizerName.do',
+ params: {
+ sterilizerName: combo.value
},
- success : function(response, options) {
+ success: function (response, options) {
var result = Ext.decode(response.responseText);
- if(result.success){
+ if (result.success) {
var monitorTousseDisplay = result.data.monitorTousseDisplay;
top.Ext.getCmp('monitorTousseDisplay').setValue(monitorTousseDisplay);
}
}
});
- BioreaderTableManager.getBioreaderOfSterilizerBySterilizerName(combo.value,function(result){
- if(result != ''){
- var result = Ext.decode(result);
- top.Ext.getCmp('bioreaderId').setValue(result.bioreaderId);
- top.Ext.getCmp('bioreaderName').setValue(result.bioreaderName);
- }else{
- top.Ext.getCmp('bioreaderId').setValue(null);
- top.Ext.getCmp('bioreaderName').setValue(null);
- }
+ BioreaderTableManager.getBioreaderOfSterilizerBySterilizerName(combo.value, function (result) {
+ if (result != '') {
+ var result = Ext.decode(result);
+ top.Ext.getCmp('bioreaderId').setValue(result.bioreaderId);
+ top.Ext.getCmp('bioreaderName').setValue(result.bioreaderName);
+ } else {
+ top.Ext.getCmp('bioreaderId').setValue(null);
+ top.Ext.getCmp('bioreaderName').setValue(null);
+ }
});
- if(sstsConfig.enableSterilizerBioMonitoringIntervalReminder){
+ if (sstsConfig.enableSterilizerBioMonitoringIntervalReminder) {
var params = {
- sterilizerName:combo.value,
- isSave:false
+ sterilizerName: combo.value,
+ isSave: false
}
sterilizerBioMonitoringIntervalReminder(params)
}
}
}
}],
- listeners : {
- render:function(){
+ listeners: {
+ render: function () {
setTime();
}
}
}, {
- columnWidth : .33,
- layout : 'form',
- cls:'edit-5char-labelwidth',
- hidden : !((sstsConfig.hasOwnProperty('haveSterilizerPosition')) && sstsConfig.haveSterilizerPosition),
- items : [{
- xtype : 'textfield',
- fieldLabel : "位置",
- name : "position",
- id : "position",
- readOnly : true,
- anchor : '100%',
- cls:'fieldReadOnlyNoRemove'
+ columnWidth: .33,
+ layout: 'form',
+ cls: 'edit-5char-labelwidth',
+ hidden: !((sstsConfig.hasOwnProperty('haveSterilizerPosition')) && sstsConfig.haveSterilizerPosition),
+ items: [{
+ xtype: 'textfield',
+ fieldLabel: "位置",
+ name: "position",
+ id: "position",
+ readOnly: true,
+ anchor: '100%',
+ cls: 'fieldReadOnlyNoRemove'
}]
- },{
- columnWidth : .33,
- layout : 'form',
- cls:'edit-5char-labelwidth',
- hidden : !((sstsConfig.hasOwnProperty('sterilizationRecordFinishConfirm')) && sstsConfig.sterilizationRecordFinishConfirm),
- items : [{
- xtype : 'textfield',
- fieldLabel : confirmLabel,
- name : "srSituationComfirmer",
- id : "srSituationComfirmer",
- allowBlank : true,
- readOnly : true,
- anchor : '100%',
- cls:'x-item-disabled'
+ }, {
+ columnWidth: .33,
+ layout: 'form',
+ cls: 'edit-5char-labelwidth',
+ hidden: !((sstsConfig.hasOwnProperty('sterilizationRecordFinishConfirm')) && sstsConfig.sterilizationRecordFinishConfirm),
+ items: [{
+ xtype: 'textfield',
+ fieldLabel: confirmLabel,
+ name: "srSituationComfirmer",
+ id: "srSituationComfirmer",
+ allowBlank: true,
+ readOnly: true,
+ anchor: '100%',
+ cls: 'x-item-disabled'
}]
- },{
- columnWidth : .33,
- layout : 'form',
- cls:'edit-5char-labelwidth',
- items : [{
- xtype : 'textfield',
- fieldLabel : "当天炉次",
- name : "frequency",
- id : "frequency",
- allowBlank : false,
- anchor : '100%'
+ }, {
+ columnWidth: .33,
+ layout: 'form',
+ cls: 'edit-5char-labelwidth',
+ items: [{
+ xtype: 'textfield',
+ fieldLabel: "当天炉次",
+ name: "frequency",
+ id: "frequency",
+ allowBlank: false,
+ anchor: '100%'
}]
-
- },{
- id : "cycleCounterId",
- columnWidth : .33,
- layout : 'form',
- cls:'edit-5char-labelwidth',
- items : [{
- xtype : 'textfield',
- fieldLabel : "循环次数",
- name : "cycleCounter",
- id : "cycleCounter",
- allowBlank : true,
- anchor : '100%',
- cls:'edit-5char-labelwidth'
+
+ }, {
+ id: "cycleCounterId",
+ columnWidth: .33,
+ layout: 'form',
+ cls: 'edit-5char-labelwidth',
+ items: [{
+ xtype: 'textfield',
+ fieldLabel: "循环次数",
+ name: "cycleCounter",
+ id: "cycleCounter",
+ allowBlank: true,
+ anchor: '100%',
+ cls: 'edit-5char-labelwidth'
}]
- },{
- columnWidth : .33,
- layout : 'form',
- cls:'edit-5char-labelwidth',
- items : [{
- xtype : 'combo',
- fieldLabel : "灭菌程序",
- valueField : 'sterilizationType',
- displayField : 'sterilizationType',
- store : sterilizationTypeStore,
- triggerAction : 'all',
- mode : 'remote',
- editable : false,
- listWidth:150,
- forceSelection : true,
- name : "sterilizationType",
- id : "sterilizationType",
- allowBlank : false,
- readOnly:true,
- anchor : '100%',
- listeners : {
- select : function(combo, record, index) {
- var sterilizerName = top.Ext.getCmp('sterilizerName').getValue();
- if(sterilizerName == ""){
- top.Ext.getCmp('sterilizationType').setValue(oldSterilizationType);
- showResult("选择灭菌炉");
- return false;
- }
- isHaveDoneNoticeSterilisation(sterilizerName, record.data.sterilizationType);
- /* //加载灭菌参数
- SterilizationRecordTableManager.getParameter(combo.getRawValue(),function(result){
- if(result != null && result.length > 0){
- top.Ext.getCmp('parameter').setValue(result);
- }
- });
- //选择默认灭菌目的
- SterilizationRecordTableManager.getSterilizationPurpose(combo.getRawValue(),function(result){
- if(result != null && result.length > 0){
- top.Ext.getCmp('sterilizationPurpose').setValue(result);
- }
- });*/
+ }, {
+ columnWidth: .33,
+ layout: 'form',
+ cls: 'edit-5char-labelwidth',
+ items: [{
+ xtype: 'combo',
+ fieldLabel: "灭菌程序",
+ valueField: 'sterilizationType',
+ displayField: 'sterilizationType',
+ store: sterilizationTypeStore,
+ triggerAction: 'all',
+ mode: 'remote',
+ editable: false,
+ listWidth: 150,
+ forceSelection: true,
+ name: "sterilizationType",
+ id: "sterilizationType",
+ allowBlank: false,
+ readOnly: true,
+ anchor: '100%',
+ listeners: {
+ select: function (combo, record, index) {
+ var sterilizerName = top.Ext.getCmp('sterilizerName').getValue();
+ if (sterilizerName == "") {
+ top.Ext.getCmp('sterilizationType').setValue(oldSterilizationType);
+ showResult("选择灭菌炉");
+ return false;
+ }
+ isHaveDoneNoticeSterilisation(sterilizerName, record.data.sterilizationType);
+ /* //加载灭菌参数
+ SterilizationRecordTableManager.getParameter(combo.getRawValue(),function(result){
+ if(result != null && result.length > 0){
+ top.Ext.getCmp('parameter').setValue(result);
+ }
+ });
+ //选择默认灭菌目的
+ SterilizationRecordTableManager.getSterilizationPurpose(combo.getRawValue(),function(result){
+ if(result != null && result.length > 0){
+ top.Ext.getCmp('sterilizationPurpose').setValue(result);
+ }
+ });*/
}
}
}]
}, {
- columnWidth : .33,
- layout : 'form',
- cls:'edit-5char-labelwidth',
- items : [{
- xtype : 'combo',
- fieldLabel : "灭菌目的",
- valueField : 'optionText',
- displayField : 'optionText',
- store : sterilizationPurposeJsonStore,
- triggerAction : 'all',
- mode : 'remote',
- listWidth:120,
- editable : false,
- forceSelection : true,
- name : "sterilizationPurpose",
- id : "sterilizationPurpose",
- allowBlank : false,
- anchor : '100%'
+ columnWidth: .33,
+ layout: 'form',
+ cls: 'edit-5char-labelwidth',
+ items: [{
+ xtype: 'combo',
+ fieldLabel: "灭菌目的",
+ valueField: 'optionText',
+ displayField: 'optionText',
+ store: sterilizationPurposeJsonStore,
+ triggerAction: 'all',
+ mode: 'remote',
+ listWidth: 120,
+ editable: false,
+ forceSelection: true,
+ name: "sterilizationPurpose",
+ id: "sterilizationPurpose",
+ allowBlank: false,
+ anchor: '100%'
}]
- },{
- columnWidth : .33,
- layout : 'form',
- cls:'edit-5char-labelwidth',
- hidden : hiddenEndBarcode,
- items : [
+ }, {
+ columnWidth: .33,
+ layout: 'form',
+ cls: 'edit-5char-labelwidth',
+ hidden: hiddenEndBarcode,
+ items: [
{
- xtype:'combo',
- id : 'scanMode',
- name : 'scanMode',
- fieldLabel : '扫描模式',
- valueField : 'scanModeCode',
- displayField : 'scanModeName',
- triggerAction : 'all',
- listWidth:120,
- allowBlank : true,
- editable : false,
- value:currentScanMode,
- store : new Ext.data.SimpleStore({
- fields : ['scanModeCode', 'scanModeName' ],
- data : [['single','单个条码'],['area','首尾条码']]
+ xtype: 'combo',
+ id: 'scanMode',
+ name: 'scanMode',
+ fieldLabel: '扫描模式',
+ valueField: 'scanModeCode',
+ displayField: 'scanModeName',
+ triggerAction: 'all',
+ listWidth: 120,
+ allowBlank: true,
+ editable: false,
+ value: currentScanMode,
+ store: new Ext.data.SimpleStore({
+ fields: ['scanModeCode', 'scanModeName'],
+ data: [['single', '单个条码'], ['area', '首尾条码']]
}),
- mode:'local',
- forceSelection : true,
- triggerAction : 'all',
- listeners : {
- select : function(combo, record, index){
+ mode: 'local',
+ forceSelection: true,
+ triggerAction: 'all',
+ listeners: {
+ select: function (combo, record, index) {
currentScanMode = record.get("scanModeCode");
}
},
- anchor : '100%'
+ anchor: '100%'
}
]
- },{
- columnWidth : .33,
- layout : 'form',
- cls:'edit-5char-labelwidth',
- items : [{
- xtype : 'textfield',
- fieldLabel : beginBarcodeLabel,
- allowBlank : true,
- name : "inputBarcode",
- id : "inputBarcode",
- anchor : '100%',
- listeners : {
- render : function(p) {
- p.getEl().on('keypress',function(e) {//可输入或扫描的类型有灭菌架、灭菌筐、灭菌炉、灭菌程序、器械包;20151102新增加虚拟篮筐
+ }, {
+ columnWidth: .33,
+ layout: 'form',
+ cls: 'edit-5char-labelwidth',
+ items: [{
+ xtype: 'textfield',
+ fieldLabel: beginBarcodeLabel,
+ allowBlank: true,
+ name: "inputBarcode",
+ id: "inputBarcode",
+ anchor: '100%',
+ listeners: {
+ render: function (p) {
+ p.getEl().on('keypress', function (e) {//可输入或扫描的类型有灭菌架、灭菌筐、灭菌炉、灭菌程序、器械包;20151102新增加虚拟篮筐
if (e.getKey() == 13) {//回车键
var barcode = top.Ext.getCmp('inputBarcode').getValue();
var recordID = id;
- if(barcode != null && barcode.length >0){
+ if (barcode != null && barcode.length > 0) {
sterilizationColumnTree.getEl().mask("数据重新加载中,请稍等!");
- Ext.Ajax.request( {
- url : WWWROOT + '/disinfectSystem/sterilization/sterilizationRecordAction!getBarcodeType.do',
- params : {
- barcode : barcode
+ Ext.Ajax.request({
+ url: WWWROOT + '/disinfectSystem/sterilization/sterilizationRecordAction!getBarcodeType.do',
+ params: {
+ barcode: barcode
},
- success : function(response, options) {
- sterilizationColumnTree.getEl().unmask();
+ success: function (response, options) {
+ sterilizationColumnTree.getEl().unmask();
var result = response.responseText;
- if(result != null && result.length > 0){
- if(SHELF == result){ //灭菌架
+ if (result != null && result.length > 0) {
+ if (SHELF == result) { //灭菌架
loadSterilizationShelf(barcode);
top.Ext.getCmp('inputBarcode').setValue("");
- }else if(USER == result){ //用户
- if(scanUser == true){
+ } else if (USER == result) { //用户
+ if (scanUser == true) {
loadSterilizationUser(barcode);
- }else{
- showResult("请输入正确的条码!", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ } else {
+ showResult("请输入正确的条码!", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
}
top.Ext.getCmp('inputBarcode').setValue("");
- }else if(BASKET == result){ //灭菌篮筐
- loadTousseInstanceCheckPosition(barcode,recordID);
- if(hiddenEndBarcode || currentScanMode == 'single'){
+ } else if (BASKET == result) { //灭菌篮筐
+ loadTousseInstanceCheckPosition(barcode, recordID);
+ if (hiddenEndBarcode || currentScanMode == 'single') {
top.Ext.getCmp('inputBarcode').setValue("");//如果使用虚拟篮筐机制,扫描成功后需要清除该文本内容
- }else{
+ } else {
top.Ext.getCmp('inputBarcodeEnd').focus();//否则不清除,条码/篮筐(尾)获得焦点
}
- }else if (STERILIZER == result){ //灭菌炉
- getSterilization(barcode,recordID);
+ } else if (STERILIZER == result) { //灭菌炉
+ getSterilization(barcode, recordID);
top.Ext.getCmp('inputBarcode').setValue("");
- }else if(BIOLOGICALMONITORING == result){ //生物监测包
+ } else if (BIOLOGICALMONITORING == result) { //生物监测包
top.Ext.getCmp('inputBarcode').setValue("");
top.Ext.getCmp('biologicalMonitoring').setValue("已扫描");
top.Ext.getCmp('monitorPackageBarcode').setValue(barcode);
- }else if(STERILISATION == result){ //灭菌程序
+ } else if (STERILISATION == result) { //灭菌程序
var sterilizerName = top.Ext.getCmp('sterilizerName').getRawValue();
- if(sterilizerName.length <= 0){
- showResult("请选择灭菌炉!", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ if (sterilizerName.length <= 0) {
+ showResult("请选择灭菌炉!", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
- return;
+ return;
}
- loadSterilizationType(barcode,sterilizerName);
+ loadSterilizationType(barcode, sterilizerName);
top.Ext.getCmp('inputBarcode').setValue("");
- }else if(TOUSSEINSTANCE == result){ //器械包实例2
- loadTousseInstanceCheckPosition(barcode,recordID);
- if(hiddenEndBarcode || currentScanMode == 'single'){
+ } else if (TOUSSEINSTANCE == result) { //器械包实例2
+ loadTousseInstanceCheckPosition(barcode, recordID);
+ if (hiddenEndBarcode || currentScanMode == 'single') {
top.Ext.getCmp('inputBarcode').setValue("");//如果使用虚拟篮筐机制,扫描成功后需要清除该文本内容
- }else{
+ } else {
top.Ext.getCmp('inputBarcodeEnd').focus();//否则不清除,条码/篮筐(尾)获得焦点
}
- }else if(POSITION == result){ //位置
+ } else if (POSITION == result) { //位置
loadPositionByBarcode(barcode);
top.Ext.getCmp('inputBarcode').setValue("");
- }else if("virtualBasket" == result){ //虚拟篮筐3
- loadTousseInstanceCheckPosition(barcode,recordID);
- if(hiddenEndBarcode || currentScanMode == 'single'){
+ } else if ("virtualBasket" == result) { //虚拟篮筐3
+ loadTousseInstanceCheckPosition(barcode, recordID);
+ if (hiddenEndBarcode || currentScanMode == 'single') {
top.Ext.getCmp('inputBarcode').setValue("");//如果使用虚拟篮筐机制,扫描成功后需要清除该文本内容
- }else{
+ } else {
top.Ext.getCmp('inputBarcodeEnd').focus();//否则不清除,条码/篮筐(尾)获得焦点
}
- }else if("notFixedBarcode" == result){
- showResult("该器械包为可追溯的包,不能扫描固定条码!", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ } else if ("notFixedBarcode" == result) {
+ showResult("该器械包为可追溯的包,不能扫描固定条码!", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
top.Ext.getCmp('inputBarcode').setValue("");
- }else if("errorBasket" == result){
- showResult("请输入正确的篮筐条码!", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ } else if ("errorBasket" == result) {
+ showResult("请输入正确的篮筐条码!", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
top.Ext.getCmp('inputBarcode').setValue("");
- }else if("barcodeInvalid" == result){
- showResult("请输入正确的条码!", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ } else if ("barcodeInvalid" == result) {
+ showResult("请输入正确的条码!", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
top.Ext.getCmp('inputBarcode').setValue("");
- }else{
+ } else {
showResult(result);
top.Ext.getCmp('inputBarcode').setValue("");
}
- }else{
- showResult("请输入正确的条码!", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ } else {
+ showResult("请输入正确的条码!", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
top.Ext.getCmp('inputBarcode').setValue("");
}
},
- failure : function(response, options) {
+ failure: function (response, options) {
sterilizationColumnTree.getEl().unmask();
var result = Ext.decode(response.responseText);
- showResult(result, null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ showResult(result, null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
}
});
}
//top.Ext.getCmp('inputBarcode').setValue("");
}
});
- p.getEl().on('focus',function(e) {
+ p.getEl().on('focus', function (e) {
top.Ext.getCmp('inputBarcode').setValue("");
});
}
}
}]
- },{
- columnWidth : .33,
- layout : 'form',
- cls:'edit-5char-labelwidth',
- hidden : hiddenEndBarcode,
- items : [{
- xtype : 'textfield',
- fieldLabel : "条码/篮筐(尾)",
- allowBlank : true,
- name : "inputBarcodeEnd",
- id : "inputBarcodeEnd",
- width : 50,
- anchor : '100%',
- listeners : {
- render : function(p) {
- p.getEl().on('keypress',function(e) {//仅可扫描或输入器械包实例条码或虚拟篮筐,且条码/篮筐(首)不能为空,以及与条码/篮筐(首)类型一致
+ }, {
+ columnWidth: .33,
+ layout: 'form',
+ cls: 'edit-5char-labelwidth',
+ hidden: hiddenEndBarcode,
+ items: [{
+ xtype: 'textfield',
+ fieldLabel: "条码/篮筐(尾)",
+ allowBlank: true,
+ name: "inputBarcodeEnd",
+ id: "inputBarcodeEnd",
+ width: 50,
+ anchor: '100%',
+ listeners: {
+ render: function (p) {
+ p.getEl().on('keypress', function (e) {//仅可扫描或输入器械包实例条码或虚拟篮筐,且条码/篮筐(首)不能为空,以及与条码/篮筐(首)类型一致
if (e.getKey() == 13) {//回车键
var barcode = top.Ext.getCmp('inputBarcode').getValue();
var barcodeEnd = top.Ext.getCmp('inputBarcodeEnd').getValue();
var recordID = id;
- if(barcodeEnd != null && barcodeEnd.length >0){
- if(barcode == ''){
- showResult("请先输入条码/篮筐(首)!", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ if (barcodeEnd != null && barcodeEnd.length > 0) {
+ if (barcode == '') {
+ showResult("请先输入条码/篮筐(首)!", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
top.Ext.getCmp('inputBarcode').focus();
return;
}
sterilizationColumnTree.getEl().mask("数据重新加载中,请稍等!");
- Ext.Ajax.request( {
- url : WWWROOT + '/disinfectSystem/sterilization/sterilizationRecordAction!getBarcodeType.do',
- params : {
- barcode : barcode + ";" + barcodeEnd
+ Ext.Ajax.request({
+ url: WWWROOT + '/disinfectSystem/sterilization/sterilizationRecordAction!getBarcodeType.do',
+ params: {
+ barcode: barcode + ";" + barcodeEnd
},
- success : function(response, options) {
+ success: function (response, options) {
sterilizationColumnTree.getEl().unmask();
var result = response.responseText;
- if(result != null && result.length > 0){
- if("virtualBasket" == result){
- loadTousseInstanceCheckPosition(barcode + ";" + barcodeEnd,recordID);
- }else if(TOUSSEINSTANCE == result){
- loadTousseInstanceCheckPosition(barcode + ";" + barcodeEnd,recordID);
- }else if("notTheSame" == result){
- showResult("首尾条码/篮筐类型不一致,必须均为器械包条码或虚拟篮筐编号!", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ if (result != null && result.length > 0) {
+ if ("virtualBasket" == result) {
+ loadTousseInstanceCheckPosition(barcode + ";" + barcodeEnd, recordID);
+ } else if (TOUSSEINSTANCE == result) {
+ loadTousseInstanceCheckPosition(barcode + ";" + barcodeEnd, recordID);
+ } else if ("notTheSame" == result) {
+ showResult("首尾条码/篮筐类型不一致,必须均为器械包条码或虚拟篮筐编号!", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
- }else if("barcodeEndInvalid" == result){
- showResult("请输入正确的条码!", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ } else if ("barcodeEndInvalid" == result) {
+ showResult("请输入正确的条码!", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
top.Ext.getCmp('inputBarcodeEnd').setValue("");
- }else{
- showResult("请输入正确的条码!", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ } else {
+ showResult("请输入正确的条码!", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
top.Ext.getCmp('inputBarcodeEnd').setValue("");
}
- }else{
- showResult("请输入正确的条码!", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ } else {
+ showResult("请输入正确的条码!", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
top.Ext.getCmp('inputBarcodeEnd').setValue("");
}
},
- failure : function(response, options) {
+ failure: function (response, options) {
sterilizationColumnTree.getEl().unmask();
top.Ext.getCmp('inputBarcodeEnd').setValue("");
var result = Ext.decode(response.responseText);
- showResult(result, null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ showResult(result, null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
}
});
@@ -3256,584 +3252,609 @@
top.Ext.getCmp('inputBarcodeEnd').setValue("");*/
}
});
- p.getEl().on('focus',function(e) {
+ p.getEl().on('focus', function (e) {
top.Ext.getCmp('inputBarcodeEnd').setValue("");
});
}
}
}]
}, {
- columnWidth : .33,
- layout : 'form',
- cls:'edit-5char-labelwidth',
- items : [{
- xtype : 'datefieldWithMin',
- fieldLabel : '开始时间',
- width : 50,
- id : 'startDate',
- name : 'startDate',
- editable : false,
- 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',
- selectOnFocus :true,
- format : 'Y-m-d H:i',
- allowBlank : false,
- anchor : '100%'
+ columnWidth: .33,
+ layout: 'form',
+ cls: 'edit-5char-labelwidth',
+ items: [{
+ xtype: 'datefieldWithMin',
+ fieldLabel: '开始时间',
+ width: 50,
+ id: 'startDate',
+ name: 'startDate',
+ editable: false,
+ 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',
+ selectOnFocus: true,
+ format: 'Y-m-d H:i',
+ allowBlank: false,
+ anchor: '100%'
}]
}, {
- columnWidth : .33,
- layout : 'form',
- cls:'edit-5char-labelwidth',
- items : [{
- xtype : 'datefieldWithMin',
- fieldLabel : '结束时间',
- width : 50,
- id : 'endDate',
- name : 'endDate',
- editable : false,
- format : 'Y-m-d H:i',
- allowBlank : true,
- hidden : id == 0?true:false,
- hideLabel : id == 0?true:false,
- anchor : '100%'
+ columnWidth: .33,
+ layout: 'form',
+ cls: 'edit-5char-labelwidth',
+ items: [{
+ xtype: 'datefieldWithMin',
+ fieldLabel: '结束时间',
+ width: 50,
+ id: 'endDate',
+ name: 'endDate',
+ editable: false,
+ format: 'Y-m-d H:i',
+ allowBlank: true,
+ hidden: id == 0 ? true : false,
+ hideLabel: id == 0 ? true : false,
+ anchor: '100%'
}]
}, {
- columnWidth : .33,
- layout : 'form',
- cls:'edit-5char-labelwidth',
- hidden : (sstsConfig.enableScanSterilizationMonitoringPackage)?false:true,
- items : [ {
- xtype : 'textfield',
- fieldLabel : "监测包",
- // labelWidth: 85,
- listWidth:120,
- name : "biologicalMonitoring",
- id : "biologicalMonitoring",
- readOnly : true,
- allowBlank : true,
- anchor : '100%',
- cls:'x-item-disabled'
- },{
- xtype : 'hidden',
- id : 'monitorPackageBarcode',
- name:'monitorPackageBarcode'
+ columnWidth: .33,
+ layout: 'form',
+ cls: 'edit-5char-labelwidth',
+ hidden: (sstsConfig.enableScanSterilizationMonitoringPackage) ? false : true,
+ items: [{
+ xtype: 'textfield',
+ fieldLabel: "监测包",
+ // labelWidth: 85,
+ listWidth: 120,
+ name: "biologicalMonitoring",
+ id: "biologicalMonitoring",
+ readOnly: true,
+ allowBlank: true,
+ anchor: '100%',
+ cls: 'x-item-disabled'
+ }, {
+ xtype: 'hidden',
+ id: 'monitorPackageBarcode',
+ name: 'monitorPackageBarcode'
}]
- },{
- columnWidth : 1,
- layout : 'form',
- items : [{
- xtype : 'textarea',
- fieldLabel : "灭菌程序参数",
- name : "parameter",
- id : "parameter",
- height:34,
- readOnly:true,
- anchor : '98.5%'
+ }, {
+ columnWidth: 1,
+ layout: 'form',
+ items: [{
+ xtype: 'textarea',
+ fieldLabel: "灭菌程序参数",
+ name: "parameter",
+ id: "parameter",
+ height: 34,
+ readOnly: true,
+ anchor: '98.5%'
}]
- },{
- columnWidth : 1,
- layout : 'form',
- items : [{
- xtype : 'textfield',
- fieldLabel : "备注",
- name : "remark",
- id : "remark",
- readOnly:false,
- anchor : '99%'
+ }, {
+ columnWidth: 1,
+ layout: 'form',
+ items: [{
+ xtype: 'textfield',
+ fieldLabel: "备注",
+ name: "remark",
+ id: "remark",
+ readOnly: false,
+ anchor: '99%'
}]
- },{
- layout : 'column',
- columnWidth : 1,
- labelWidth : 90,
- items : [
- {
- layout : 'form',
- columnWidth : 0.8,
- // labelWidth : 100,
- items : [
- {
- xtype : 'textfield',
- name : 'uploadImage',
- id : 'uploadImage',
- fieldLabel : "生物监测图片",
- anchor : '100%'
- }
- ]
- },
- {
- layout : 'form',
- columnWidth : 0.08,
- labelWidth : 90,
- hidden : statusEnd != currentStatus,
- items : [
- { xtype:'button',
- text : '上传',
- handler : function(){
- if(id == null || id == ''){
- showResult("请先保存后再上传图片!", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
-
- }else{
- uploadWindow(imageType_sterilization);
- }
- }
- }
- ]
- },
- {
- layout : 'form',
- columnWidth : 0.12,
- labelWidth : 90,
- items : [
- { xtype:'button',
- text : '预览',
- disabled:disableShowImageButton,
- iconCls : 'btn_ext_application_search',
- handler : function(){
- top.showSterilizationRecordPic(id,"/disinfectSystem/sterilization/bioLogicalMonitorPictureAction",'生物监测图片');
-// sterilizationRecordWin.hide();
- }
- }
- ]
- }
- ]
- }]
- },{
- columnWidth : top.screen.width > 1600 ? 0.6 : 0.5,
- id : 'sterilizationColumnTree',
- items : [sterilizationColumnTree]
}, {
- columnWidth : top.screen.width > 1600 ? 0.4 : 0.5,
- items : [ new top.Ext.grid.GridPanel({
- id : 'tousseItemCountPanel',
- height : 325,
-// width : 385,
- frame : false,
- border : true,
- tbar:[{
- xtype : 'button',
- text : '灭菌物品统计'
- },"->",{
- xtype : 'button',
- id : 'totalAmount'/*,
- text : '灭菌物品总数量:'*/
- },{
- xtype : 'hidden',
- id : 'foreignTousseAmount',
- name:'foreignTousseAmount'
- },{
- xtype : 'hidden',
- id : 'implantAmount',
- name:'implantAmount'
- }],
- bbar:[{
- xtype : 'button',
- id : "typeTotalAmount"
- }],
- viewConfig: {
- forceFit:true
- },
- store : tousseItemCountJsonStore,
- cm: new Ext.grid.ColumnModel([
- {header: "器械包名称统计", width: 150, menuDisabled:true,dataIndex:'tousseName'},
- {id: 'count', header: "数量", width: 40, menuDisabled: true,dataIndex:'count'}
- ]),
- stripeRows : true,
- autoExpandColumn : 'count',
- bodyStyle : 'border:1px solid #afd7af'
- })]
- },{
- xtype : "fieldset",
- title : "监测结果",
- layout : 'column',
- height :'80',
- columnWidth : 1,
- cls:'edit-5char-labelwidth',
- id : "monitorResultSet",
- items : [{
- columnWidth : 0.5,
- layout : 'form',
- labelWidth : 120,
- items : [{
- xtype : 'combo',
- fieldLabel : "物理监测结果",
- readOnly : true,
- valueField : 'value',
- displayField : 'value',
- store : monitorResutlStore,
- triggerAction : 'all',
- mode : 'local',
- name : "physicsResult",
- id : "physicsResult",
- allowBlank : false,
- anchor : '100%'
+ layout: 'column',
+ columnWidth: .33,
+ labelWidth: 90,
+ style: 'margin-bottom:10px',
+ hidden: id == '',
+ items: [{
+ layout: 'form',
+ width: 90,
+ style: 'text-align:right;line-height: 21px;margin-right: 5px;',
+ items: [{
+ xtype: 'tbtext',
+ text: '生物监测图片:'
+ }]
+ }, {
+ layout: 'form',
+ width: 60,
+ hidden: statusEnd != currentStatus,
+ items: [
+ {
+ xtype: 'button',
+ text: '上传',
+ handler: function () {
+ uploadWindow(imageType_sterilization);
+ }
+ }
+ ]
+ }, {
+ layout: 'form',
+ width: 90,
+ items: [{
+ xtype: 'button',
+ text: '预览',
+ disabled: disableShowImageButton,
+ iconCls: 'btn_ext_application_search',
+ handler: function () {
+ top.showSterilizationRecordPic(id, "/disinfectSystem/sterilization/bioLogicalMonitorPictureAction", '生物监测图片');
+ }
+ }]
}]
- },{
- columnWidth : 0.5,
- layout : 'form',
- labelWidth : 120,
- items : [{
- xtype : 'combo',
- fieldLabel : "化学监测结果",
- readOnly : true,
- valueField : 'value',
- displayField : 'value',
- store : monitorResutlStore,
- triggerAction : 'all',
- mode : 'local',
- name : "chemistryResult",
- id : "chemistryResult",
- allowBlank : false,
- anchor : '100%'
+ }, {
+ layout: 'column',
+ columnWidth: .33,
+ labelWidth: 90,
+ hidden: id == '',
+ style: 'margin-bottom:10px',
+ items: [{
+ layout: 'form',
+ width: 90,
+ style: 'text-align:right;line-height: 21px;margin-right: 5px;',
+ items: [{
+ xtype: 'tbtext',
+ text: '灭菌记录图片:'
+ }]
+ }, {
+ layout: 'form',
+ width: 60,
+ hidden: statusEnd != currentStatus,
+ items: [
+ {
+ xtype: 'button',
+ text: '上传',
+ handler: function () {
+ uploadWindow('灭菌记录图片');
+ }
+ }
+ ]
+ }, {
+ layout: 'form',
+ width: 90,
+ items: [{
+ xtype: 'button',
+ text: '预览',
+ disabled: disableShowImageButton,
+ iconCls: 'btn_ext_application_search',
+ handler: function () {
+ top.showSterilizationRecordPic(id);
+ }
+ }]
}]
+ }]
+ }, {
+ columnWidth: top.screen.width > 1600 ? 0.6 : 0.5,
+ id: 'sterilizationColumnTree',
+ items: [sterilizationColumnTree]
+ }, {
+ columnWidth: top.screen.width > 1600 ? 0.4 : 0.5,
+ items: [new top.Ext.grid.GridPanel({
+ id: 'tousseItemCountPanel',
+ height: 325,
+ // width : 385,
+ frame: false,
+ border: true,
+ tbar: [{
+ xtype: 'button',
+ text: '灭菌物品统计'
+ }, "->", {
+ xtype: 'button',
+ id: 'totalAmount'/*,
+ text : '灭菌物品总数量:'*/
+ }, {
+ xtype: 'hidden',
+ id: 'foreignTousseAmount',
+ name: 'foreignTousseAmount'
+ }, {
+ xtype: 'hidden',
+ id: 'implantAmount',
+ name: 'implantAmount'
+ }],
+ bbar: [{
+ xtype: 'button',
+ id: "typeTotalAmount"
+ }],
+ viewConfig: {
+ forceFit: true
+ },
+ store: tousseItemCountJsonStore,
+ cm: new Ext.grid.ColumnModel([
+ { header: "器械包名称统计", width: 150, menuDisabled: true, dataIndex: 'tousseName' },
+ { id: 'count', header: "数量", width: 40, menuDisabled: true, dataIndex: 'count' }
+ ]),
+ stripeRows: true,
+ autoExpandColumn: 'count',
+ bodyStyle: 'border:1px solid #afd7af'
+ })]
+ }, {
+ xtype: "fieldset",
+ title: "监测结果",
+ layout: 'column',
+ height: '80',
+ columnWidth: 1,
+ cls: 'edit-5char-labelwidth',
+ id: "monitorResultSet",
+ items: [{
+ columnWidth: 0.5,
+ layout: 'form',
+ labelWidth: 120,
+ items: [{
+ xtype: 'combo',
+ fieldLabel: "物理监测结果",
+ readOnly: true,
+ valueField: 'value',
+ displayField: 'value',
+ store: monitorResutlStore,
+ triggerAction: 'all',
+ mode: 'local',
+ name: "physicsResult",
+ id: "physicsResult",
+ allowBlank: false,
+ anchor: '100%'
+ }]
}, {
- // columnWidth : (sstsConfig.enableBiologicalObserveDate ? 1 : 1),
- columnWidth : 1,
- layout : 'form',
- labelWidth : 120,
- items : [{
- xtype : 'combo',
- fieldLabel : "生物监测结果",
- readOnly : true,
- valueField : 'value',
- displayField : 'value',
- store : monitorResutlStore,
- triggerAction : 'all',
- mode : 'local',
- name : "biologyResult",
- id : "biologyResult",
- allowBlank : false,
- anchor :'50%'
- // anchor : (sstsConfig.enableBiologicalObserveDate ? '100%' : '50%')
+ columnWidth: 0.5,
+ layout: 'form',
+ labelWidth: 120,
+ items: [{
+ xtype: 'combo',
+ fieldLabel: "化学监测结果",
+ readOnly: true,
+ valueField: 'value',
+ displayField: 'value',
+ store: monitorResutlStore,
+ triggerAction: 'all',
+ mode: 'local',
+ name: "chemistryResult",
+ id: "chemistryResult",
+ allowBlank: false,
+ anchor: '100%'
}]
}, {
- columnWidth : .5,
- layout : 'form',
- cls:'edit-5char-labelwidth',
- labelWidth : 120,
- items : [{
- xtype : 'datefieldWithMin',
- fieldLabel : '生物监测开始时间',
- id : 'biologicalMonitoringStartDate',
- name : 'biologicalMonitoringStartDate',
- editable : false,
-// readOnly : true,
- 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',
- selectOnFocus :true,
- format : 'Y-m-d H:i',
- anchor : '100%',
- listeners : {
- select : function() { //联动把生物监测的结束时间填上
+ // columnWidth : (sstsConfig.enableBiologicalObserveDate ? 1 : 1),
+ columnWidth: 1,
+ layout: 'form',
+ labelWidth: 120,
+ items: [{
+ xtype: 'combo',
+ fieldLabel: "生物监测结果",
+ readOnly: true,
+ valueField: 'value',
+ displayField: 'value',
+ store: monitorResutlStore,
+ triggerAction: 'all',
+ mode: 'local',
+ name: "biologyResult",
+ id: "biologyResult",
+ allowBlank: false,
+ anchor: '50%'
+ // anchor : (sstsConfig.enableBiologicalObserveDate ? '100%' : '50%')
+ }]
+ }, {
+ columnWidth: .5,
+ layout: 'form',
+ cls: 'edit-5char-labelwidth',
+ labelWidth: 120,
+ items: [{
+ xtype: 'datefieldWithMin',
+ fieldLabel: '生物监测开始时间',
+ id: 'biologicalMonitoringStartDate',
+ name: 'biologicalMonitoringStartDate',
+ editable: false,
+ // readOnly : true,
+ 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',
+ selectOnFocus: true,
+ format: 'Y-m-d H:i',
+ anchor: '100%',
+ listeners: {
+ select: function () { //联动把生物监测的结束时间填上
var temp = top.Ext.getCmp('biologicalMonitoringStartDate').getValue().getTime() + _biologicalMonitoringTime;
top.Ext.getCmp('biologicalMonitoringEndDate').setValue(new Date(temp));
}
}
}]
}, {
- columnWidth : .5,
- layout : 'form',
- cls:'edit-5char-labelwidth',
+ columnWidth: .5,
+ layout: 'form',
+ cls: 'edit-5char-labelwidth',
hidden: !sstsConfig.enableBiologicalObserveDate,
- labelWidth : 120,
- items : [{
- xtype : 'datefieldWithMin',
- fieldLabel : '生物监测观察时间',
- id : 'biologicalObserveDate',
- name : 'biologicalObserveDate',
- editable : false,
- 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',
- selectOnFocus :true,
-// readOnly : true,
- format : 'Y-m-d H:i',
- anchor : '100%'
+ labelWidth: 120,
+ items: [{
+ xtype: 'datefieldWithMin',
+ fieldLabel: '生物监测观察时间',
+ id: 'biologicalObserveDate',
+ name: 'biologicalObserveDate',
+ editable: false,
+ 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',
+ selectOnFocus: true,
+ // readOnly : true,
+ format: 'Y-m-d H:i',
+ anchor: '100%'
}]
}, {
- columnWidth : .5,
- layout : 'form',
- cls:'edit-5char-labelwidth',
- labelWidth : 120,
- items : [{
- xtype : 'datefieldWithMin',
- fieldLabel : '生物监测结束时间',
- id : 'biologicalMonitoringEndDate',
- name : 'biologicalMonitoringEndDate',
- editable : false,
- 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',
- selectOnFocus :true,
-// readOnly : true,
- format : 'Y-m-d H:i',
- anchor : '100%'
+ columnWidth: .5,
+ layout: 'form',
+ cls: 'edit-5char-labelwidth',
+ labelWidth: 120,
+ items: [{
+ xtype: 'datefieldWithMin',
+ fieldLabel: '生物监测结束时间',
+ id: 'biologicalMonitoringEndDate',
+ name: 'biologicalMonitoringEndDate',
+ editable: false,
+ 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',
+ selectOnFocus: true,
+ // readOnly : true,
+ format: 'Y-m-d H:i',
+ anchor: '100%'
}]
- },{
- columnWidth : 0.5,
- layout : 'form',
- labelWidth : 120,
- hidden : !enableBioreaderInterface,
- items:[{
- xtype : 'combo',
- fieldLabel : '生物阅读器',
- valueField : 'bioreaderId',
- displayField : 'bioreaderName',
- submitValue : false,
- id : 'bioreaderName',
- name : 'bioreaderName',
- queryMode: 'remote',
- triggerAction : 'all',
- forceSelection : true,
- editable : true,
- anchor : '100%',
- store : bioreaderStore,
- listeners : {
- select : function(combo,
- record, index) {
- top.Ext.getCmp('bioreaderId')
- .setValue(record.data.bioreaderId);
- }
- }
- }]
- },{
- columnWidth : 0.5,
- layout : 'form',
- height:26,
- hidden : !enableBioreaderInterface,
- items : [{
- xtype:'button',
- text : '获取生物监测结果',
+ }, {
+ columnWidth: 0.5,
+ layout: 'form',
+ labelWidth: 120,
+ hidden: !enableBioreaderInterface,
+ items: [{
+ xtype: 'combo',
+ fieldLabel: '生物阅读器',
+ valueField: 'bioreaderId',
+ displayField: 'bioreaderName',
+ submitValue: false,
+ id: 'bioreaderName',
+ name: 'bioreaderName',
+ queryMode: 'remote',
+ triggerAction: 'all',
+ forceSelection: true,
+ editable: true,
+ anchor: '100%',
+ store: bioreaderStore,
+ listeners: {
+ select: function (combo,
+ record, index) {
+ top.Ext.getCmp('bioreaderId')
+ .setValue(record.data.bioreaderId);
+ }
+ }
+ }]
+ }, {
+ columnWidth: 0.5,
+ layout: 'form',
+ height: 26,
+ hidden: !enableBioreaderInterface,
+ items: [{
+ xtype: 'button',
+ text: '获取生物监测结果',
style: {
- marginLeft:'120px'//距左边宽度
+ marginLeft: '120px'//距左边宽度
},
- name : "getBiologyResult",
- id : "getBiologyResult",
- handler : function(){
- var endDate = top.Ext.getCmp('endDate').getValue();
- if(endDate == null || endDate == ''){
- showResult("请先完成灭菌");
- return;
- }
- var bioreaderId = top.Ext.getCmp('bioreaderId').getValue();
- var cardPosition = top.Ext.getCmp('cardPosition').getValue();
- var cardPositionOfControlTube = top.Ext.getCmp('cardPositionOfControlTube').getValue();
- if(bioreaderId.length == 0){
- showResult("请选择生物阅读器");
- top.Ext.getCmp('bioreaderId').focus();
- return;
- }else if(cardPosition == ""){
- showResult("请选择监测管卡位");
- top.Ext.getCmp('cardPosition').focus();
- return;
- }else if(cardPositionOfControlTube == ""){
- showResult("请选择对照管卡位");
- top.Ext.getCmp('cardPositionOfControlTube').focus();
- return;
- }else if(cardPosition == cardPositionOfControlTube){
- showResult("监测管卡位,对照管卡位必须不一致");
- top.Ext.getCmp('cardPosition').focus();
- return;
- }
- formObj.getEl().mask("正在加载,请稍候...");
- Ext.Ajax.request({
- url : WWWROOT + '/disinfectSystem/sterilization/bioreaderAction!getBiologicalMonitoringResult.do',
- params : {
- endDate : endDate.format("Y-m-d H:i:s"),
- id : bioreaderId,
- cardPosition : cardPosition,
- cardPositionOfControlTube : cardPositionOfControlTube
- },
- waitMsg : '正在处理,请稍候...',
- success : function(response, options) {
- var result = Ext.decode(response.responseText);
- if(result.success){
- top.Ext.MessageBox.confirm("请确认",result.message + ",是否写入",
- function(button, text) {
- if ("yes" == button){
- top.Ext.getCmp('biologyResult').setValue(result.BiologicalReadingDataVo.biologyResult);
- top.Ext.getCmp('biologicalMonitoringStartDate').setValue(new Date(result.BiologicalReadingDataVo.biologicalMonitoringStartDate.time));
- top.Ext.getCmp('biologicalMonitoringEndDate').setValue(new Date(result.BiologicalReadingDataVo.biologicalMonitoringEndDate.time));
- top.Ext.getCmp('controlTubeResult').setValue(result.BiologicalReadingDataVo.controlTubeResult);
- top.Ext.getCmp('monitoringTubeResult').setValue(result.BiologicalReadingDataVo.monitoringTubeResult);
- }
- });
- }else{
- showResult(result.message);
- }
- formObj.getEl().unmask();
- },
- failure : function(response, options) {
- showResult("系统发生异常,请勿提交数据", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ name: "getBiologyResult",
+ id: "getBiologyResult",
+ handler: function () {
+ var endDate = top.Ext.getCmp('endDate').getValue();
+ if (endDate == null || endDate == '') {
+ showResult("请先完成灭菌");
+ return;
+ }
+ var bioreaderId = top.Ext.getCmp('bioreaderId').getValue();
+ var cardPosition = top.Ext.getCmp('cardPosition').getValue();
+ var cardPositionOfControlTube = top.Ext.getCmp('cardPositionOfControlTube').getValue();
+ if (bioreaderId.length == 0) {
+ showResult("请选择生物阅读器");
+ top.Ext.getCmp('bioreaderId').focus();
+ return;
+ } else if (cardPosition == "") {
+ showResult("请选择监测管卡位");
+ top.Ext.getCmp('cardPosition').focus();
+ return;
+ } else if (cardPositionOfControlTube == "") {
+ showResult("请选择对照管卡位");
+ top.Ext.getCmp('cardPositionOfControlTube').focus();
+ return;
+ } else if (cardPosition == cardPositionOfControlTube) {
+ showResult("监测管卡位,对照管卡位必须不一致");
+ top.Ext.getCmp('cardPosition').focus();
+ return;
+ }
+ formObj.getEl().mask("正在加载,请稍候...");
+ Ext.Ajax.request({
+ url: WWWROOT + '/disinfectSystem/sterilization/bioreaderAction!getBiologicalMonitoringResult.do',
+ params: {
+ endDate: endDate.format("Y-m-d H:i:s"),
+ id: bioreaderId,
+ cardPosition: cardPosition,
+ cardPositionOfControlTube: cardPositionOfControlTube
+ },
+ waitMsg: '正在处理,请稍候...',
+ success: function (response, options) {
+ var result = Ext.decode(response.responseText);
+ if (result.success) {
+ top.Ext.MessageBox.confirm("请确认", result.message + ",是否写入",
+ function (button, text) {
+ if ("yes" == button) {
+ top.Ext.getCmp('biologyResult').setValue(result.BiologicalReadingDataVo.biologyResult);
+ top.Ext.getCmp('biologicalMonitoringStartDate').setValue(new Date(result.BiologicalReadingDataVo.biologicalMonitoringStartDate.time));
+ top.Ext.getCmp('biologicalMonitoringEndDate').setValue(new Date(result.BiologicalReadingDataVo.biologicalMonitoringEndDate.time));
+ top.Ext.getCmp('controlTubeResult').setValue(result.BiologicalReadingDataVo.controlTubeResult);
+ top.Ext.getCmp('monitoringTubeResult').setValue(result.BiologicalReadingDataVo.monitoringTubeResult);
+ }
+ });
+ } else {
+ showResult(result.message);
+ }
+ formObj.getEl().unmask();
+ },
+ failure: function (response, options) {
+ showResult("系统发生异常,请勿提交数据", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
- formObj.getEl().unmask();
- }
- });
-
+ formObj.getEl().unmask();
+ }
+ });
+
}
}]
- },{
- columnWidth : 0.5,
- layout : 'form',
- labelWidth : 120,
- height:26,
- hidden : !enableBioreaderInterface,
- items:[{
- xtype : 'combo',
- fieldLabel : '监测管卡位',
- valueField : 'cardPosition',
- displayField : 'cardPosition',
- id : 'cardPosition',
- name : 'cardPosition',
- mode : 'local',
- triggerAction : 'all',
- forceSelection : true,
- editable : true,
- anchor : '100%',
- store : new Ext.data.SimpleStore({
- fields : [ 'cardPosition' ],
- autoLoad : false,
- data :[['1'],['2'],['3'],['4'],['5'],['6'],['7'],['8'],['9'],['10']]
- })
- }]
- },{
- columnWidth : .5,
- labelWidth : 120,
- layout : 'form',
- cls:'edit-5char-labelwidth',
- hidden : !enableBioreaderInterface,
- height:26,
- items : [{
- xtype : 'textfield',
- fieldLabel : "监测管结果",
- name : "monitoringTubeResult",
- id : "monitoringTubeResult",
- anchor : '100%',
- readOnly : true,
- cls:'x-item-disabled'
+ }, {
+ columnWidth: 0.5,
+ layout: 'form',
+ labelWidth: 120,
+ height: 26,
+ hidden: !enableBioreaderInterface,
+ items: [{
+ xtype: 'combo',
+ fieldLabel: '监测管卡位',
+ valueField: 'cardPosition',
+ displayField: 'cardPosition',
+ id: 'cardPosition',
+ name: 'cardPosition',
+ mode: 'local',
+ triggerAction: 'all',
+ forceSelection: true,
+ editable: true,
+ anchor: '100%',
+ store: new Ext.data.SimpleStore({
+ fields: ['cardPosition'],
+ autoLoad: false,
+ data: [['1'], ['2'], ['3'], ['4'], ['5'], ['6'], ['7'], ['8'], ['9'], ['10']]
+ })
}]
- },{
- columnWidth : .5,
- labelWidth : 120,
- layout : 'form',
- cls:'edit-5char-labelwidth',
- hidden : !enableBioreaderInterface,
- height:26,
- items : [{
- xtype : 'textfield',
- fieldLabel : "监测管批号",
- name : "monitoringBatchNum",
- id : "monitoringBatchNum",
- anchor : '100%',
- cls:'edit-5char-labelwidth'
+ }, {
+ columnWidth: .5,
+ labelWidth: 120,
+ layout: 'form',
+ cls: 'edit-5char-labelwidth',
+ hidden: !enableBioreaderInterface,
+ height: 26,
+ items: [{
+ xtype: 'textfield',
+ fieldLabel: "监测管结果",
+ name: "monitoringTubeResult",
+ id: "monitoringTubeResult",
+ anchor: '100%',
+ readOnly: true,
+ cls: 'x-item-disabled'
}]
- },{
- columnWidth : .5,
- labelWidth : 120,
- layout : 'form',
- cls:'edit-5char-labelwidth',
- height:26,
- hidden : !enableBioreaderInterface,
- items : [{
- xtype : 'textfield',
- fieldLabel : "监测管有效期",
- name : "monitoringTubeExpiryDate",
- id : "monitoringTubeExpiryDate",
- anchor : '100%',
- cls:'edit-5char-labelwidth'
+ }, {
+ columnWidth: .5,
+ labelWidth: 120,
+ layout: 'form',
+ cls: 'edit-5char-labelwidth',
+ hidden: !enableBioreaderInterface,
+ height: 26,
+ items: [{
+ xtype: 'textfield',
+ fieldLabel: "监测管批号",
+ name: "monitoringBatchNum",
+ id: "monitoringBatchNum",
+ anchor: '100%',
+ cls: 'edit-5char-labelwidth'
}]
- },{
- columnWidth : 0.5,
- layout : 'form',
- labelWidth : 120,
- height:26,
- hidden : !enableBioreaderInterface,
- items:[{
- xtype : 'combo',
- fieldLabel : '对照管卡位',
- valueField : 'cardPositionOfControlTube',
- displayField : 'cardPositionOfControlTube',
- id : 'cardPositionOfControlTube',
- name : 'cardPositionOfControlTube',
- mode : 'local',
- triggerAction : 'all',
- forceSelection : true,
- editable : true,
- anchor : '100%',
- store : new Ext.data.SimpleStore({
- fields : [ 'cardPositionOfControlTube' ],
- autoLoad : false,
- data :[['1'],['2'],['3'],['4'],['5'],['6'],['7'],['8'],['9'],['10']]
- })
- }]
- },{
- columnWidth : .5,
- labelWidth : 120,
- layout : 'form',
- cls:'edit-5char-labelwidth',
- height:26,
- hidden : !enableBioreaderInterface,
- items : [{
- xtype : 'textfield',
- fieldLabel : "对照管结果",
- name : "controlTubeResult",
- id : "controlTubeResult",
- anchor : '100%',
- readOnly : true,
- cls:'x-item-disabled'
+ }, {
+ columnWidth: .5,
+ labelWidth: 120,
+ layout: 'form',
+ cls: 'edit-5char-labelwidth',
+ height: 26,
+ hidden: !enableBioreaderInterface,
+ items: [{
+ xtype: 'textfield',
+ fieldLabel: "监测管有效期",
+ name: "monitoringTubeExpiryDate",
+ id: "monitoringTubeExpiryDate",
+ anchor: '100%',
+ cls: 'edit-5char-labelwidth'
}]
- },{
- columnWidth : .5,
- labelWidth : 120,
- layout : 'form',
- cls:'edit-5char-labelwidth',
- hidden : !enableBioreaderInterface,
- height:26,
- items : [{
- xtype : 'textfield',
- fieldLabel : "对照管批号",
- name : "controlBatchNum",
- id : "controlBatchNum",
- anchor : '100%',
- cls:'edit-5char-labelwidth'
+ }, {
+ columnWidth: 0.5,
+ layout: 'form',
+ labelWidth: 120,
+ height: 26,
+ hidden: !enableBioreaderInterface,
+ items: [{
+ xtype: 'combo',
+ fieldLabel: '对照管卡位',
+ valueField: 'cardPositionOfControlTube',
+ displayField: 'cardPositionOfControlTube',
+ id: 'cardPositionOfControlTube',
+ name: 'cardPositionOfControlTube',
+ mode: 'local',
+ triggerAction: 'all',
+ forceSelection: true,
+ editable: true,
+ anchor: '100%',
+ store: new Ext.data.SimpleStore({
+ fields: ['cardPositionOfControlTube'],
+ autoLoad: false,
+ data: [['1'], ['2'], ['3'], ['4'], ['5'], ['6'], ['7'], ['8'], ['9'], ['10']]
+ })
}]
- },{
- columnWidth : .5,
- labelWidth : 120,
- layout : 'form',
- cls:'edit-5char-labelwidth',
- hidden : !enableBioreaderInterface,
- height:26,
- items : [{
- xtype : 'textfield',
- fieldLabel : "对照管有效期",
- name : "controlTubeExpiryDate",
- id : "controlTubeExpiryDate",
- anchor : '100%',
- cls:'edit-5char-labelwidth'
+ }, {
+ columnWidth: .5,
+ labelWidth: 120,
+ layout: 'form',
+ cls: 'edit-5char-labelwidth',
+ height: 26,
+ hidden: !enableBioreaderInterface,
+ items: [{
+ xtype: 'textfield',
+ fieldLabel: "对照管结果",
+ name: "controlTubeResult",
+ id: "controlTubeResult",
+ anchor: '100%',
+ readOnly: true,
+ cls: 'x-item-disabled'
}]
- },{
- columnWidth : .5,
- layout : 'form',
- labelWidth : 120,
- cls:'edit-5char-labelwidth',
- height:26,
- items : [{
- xtype : 'textfield',
- fieldLabel : "监测员条码",
- name : "monitorUserBarcode",
- id : "monitorUserBarcode",
- anchor : '100%',
- listeners : {
- specialkey : function(thiz, e){
- if(e.getKey() == 13){
+ }, {
+ columnWidth: .5,
+ labelWidth: 120,
+ layout: 'form',
+ cls: 'edit-5char-labelwidth',
+ hidden: !enableBioreaderInterface,
+ height: 26,
+ items: [{
+ xtype: 'textfield',
+ fieldLabel: "对照管批号",
+ name: "controlBatchNum",
+ id: "controlBatchNum",
+ anchor: '100%',
+ cls: 'edit-5char-labelwidth'
+ }]
+ }, {
+ columnWidth: .5,
+ labelWidth: 120,
+ layout: 'form',
+ cls: 'edit-5char-labelwidth',
+ hidden: !enableBioreaderInterface,
+ height: 26,
+ items: [{
+ xtype: 'textfield',
+ fieldLabel: "对照管有效期",
+ name: "controlTubeExpiryDate",
+ id: "controlTubeExpiryDate",
+ anchor: '100%',
+ cls: 'edit-5char-labelwidth'
+ }]
+ }, {
+ columnWidth: .5,
+ layout: 'form',
+ labelWidth: 120,
+ cls: 'edit-5char-labelwidth',
+ height: 26,
+ items: [{
+ xtype: 'textfield',
+ fieldLabel: "监测员条码",
+ name: "monitorUserBarcode",
+ id: "monitorUserBarcode",
+ anchor: '100%',
+ listeners: {
+ specialkey: function (thiz, e) {
+ if (e.getKey() == 13) {
var peopleOfBarcode = thiz.getValue();
- if(peopleOfBarcode){
- UserTableManager.getUserByBarcode(peopleOfBarcode, function(responseText){
+ if (peopleOfBarcode) {
+ UserTableManager.getUserByBarcode(peopleOfBarcode, function (responseText) {
top.Ext.getCmp('monitorUserBarcode').setValue();
- if(responseText != null && responseText != ""){
+ if (responseText != null && responseText != "") {
var result = Ext.decode(responseText);
- if(!result.success){
- result.isNotSameOrgUnit?showResult("不允许登记非本科室人员,请扫描本科室人员条码", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage):showResult("输入的条码有误!", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ if (!result.success) {
+ result.isNotSameOrgUnit ? showResult("不允许登记非本科室人员,请扫描本科室人员条码", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage) : showResult("输入的条码有误!", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
return;
}
top.Ext.getCmp('monitorUser').setValue(result.fullName);
top.Ext.getCmp('monitorCheckerBarcode').focus();
- }else{
- showResult('找不到该条码所对应的人员信息', null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ } else {
+ showResult('找不到该条码所对应的人员信息', null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
}
});
}
@@ -3842,49 +3863,49 @@
}
}]
}, {
- columnWidth : .5,
- labelWidth : 120,
- layout : 'form',
- cls:'edit-5char-labelwidth',
- height:26,
- items : [{
- xtype : 'textfield',
- fieldLabel : "监测员",
- name : "monitorUser",
- id : "monitorUser",
- readOnly : true,
- anchor : '100%',
- cls:'x-item-disabled'
+ columnWidth: .5,
+ labelWidth: 120,
+ layout: 'form',
+ cls: 'edit-5char-labelwidth',
+ height: 26,
+ items: [{
+ xtype: 'textfield',
+ fieldLabel: "监测员",
+ name: "monitorUser",
+ id: "monitorUser",
+ readOnly: true,
+ anchor: '100%',
+ cls: 'x-item-disabled'
}]
}, {
- columnWidth : .5,
- layout : 'form',
- labelWidth : 120,
- cls:'edit-5char-labelwidth',
- height:26,
- items : [{
- xtype : 'textfield',
- fieldLabel : "监测核对员条码",
- name : "monitorCheckerBarcode",
- id : "monitorCheckerBarcode",
- anchor : '100%',
- listeners : {
- specialkey : function(thiz, e){
- if(e.getKey() == 13){
+ columnWidth: .5,
+ layout: 'form',
+ labelWidth: 120,
+ cls: 'edit-5char-labelwidth',
+ height: 26,
+ items: [{
+ xtype: 'textfield',
+ fieldLabel: "监测核对员条码",
+ name: "monitorCheckerBarcode",
+ id: "monitorCheckerBarcode",
+ anchor: '100%',
+ listeners: {
+ specialkey: function (thiz, e) {
+ if (e.getKey() == 13) {
var peopleOfBarcode = thiz.getValue();
- if(peopleOfBarcode){
- UserTableManager.getUserByBarcode(peopleOfBarcode, function(responseText){
+ if (peopleOfBarcode) {
+ UserTableManager.getUserByBarcode(peopleOfBarcode, function (responseText) {
top.Ext.getCmp('monitorCheckerBarcode').setValue();
- if(responseText != null && responseText != ""){
+ if (responseText != null && responseText != "") {
var result = Ext.decode(responseText);
- if(!result.success){
- result.isNotSameOrgUnit?showResult("不允许登记非本科室人员,请扫描本科室人员条码", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage):showResult("输入的条码有误!", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ if (!result.success) {
+ result.isNotSameOrgUnit ? showResult("不允许登记非本科室人员,请扫描本科室人员条码", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage) : showResult("输入的条码有误!", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
return;
}
top.Ext.getCmp('monitorChecker').setValue(result.fullName);
top.Ext.getCmp('monitorAuditorBarcode').focus();
- }else{
- showResult('找不到该条码所对应的人员信息', null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ } else {
+ showResult('找不到该条码所对应的人员信息', null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
}
});
}
@@ -3893,49 +3914,49 @@
}
}]
}, {
- columnWidth : .5,
- layout : 'form',
- labelWidth : 120,
- cls:'edit-5char-labelwidth',
- height:26,
- items : [{
- xtype : 'textfield',
- fieldLabel : "监测核对员",
- name : "monitorChecker",
- id : "monitorChecker",
- readOnly : true,
- anchor : '100%',
- cls:'x-item-disabled'
+ columnWidth: .5,
+ layout: 'form',
+ labelWidth: 120,
+ cls: 'edit-5char-labelwidth',
+ height: 26,
+ items: [{
+ xtype: 'textfield',
+ fieldLabel: "监测核对员",
+ name: "monitorChecker",
+ id: "monitorChecker",
+ readOnly: true,
+ anchor: '100%',
+ cls: 'x-item-disabled'
}]
}, {
- columnWidth : .5,
- layout : 'form',
- labelWidth : 120,
- cls:'edit-5char-labelwidth',
- hidden : !sstsConfig.needMonitorAuditor,
- height:26,
- items : [{
- xtype : 'textfield',
- fieldLabel : "监测审核员条码",
- name : "monitorAuditorBarcode",
- id : "monitorAuditorBarcode",
- anchor : '100%',
- listeners : {
- specialkey : function(thiz, e){
- if(e.getKey() == 13){
+ columnWidth: .5,
+ layout: 'form',
+ labelWidth: 120,
+ cls: 'edit-5char-labelwidth',
+ hidden: !sstsConfig.needMonitorAuditor,
+ height: 26,
+ items: [{
+ xtype: 'textfield',
+ fieldLabel: "监测审核员条码",
+ name: "monitorAuditorBarcode",
+ id: "monitorAuditorBarcode",
+ anchor: '100%',
+ listeners: {
+ specialkey: function (thiz, e) {
+ if (e.getKey() == 13) {
var peopleOfBarcode = thiz.getValue();
- if(peopleOfBarcode){
- UserTableManager.getUserByBarcode(peopleOfBarcode, function(responseText){
+ if (peopleOfBarcode) {
+ UserTableManager.getUserByBarcode(peopleOfBarcode, function (responseText) {
top.Ext.getCmp('monitorAuditorBarcode').setValue();
- if(responseText != null && responseText != ""){
+ if (responseText != null && responseText != "") {
var result = Ext.decode(responseText);
- if(!result.success){
- result.isNotSameOrgUnit?showResult("不允许登记非本科室人员,请扫描本科室人员条码", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage):showResult("输入的条码有误!", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ if (!result.success) {
+ result.isNotSameOrgUnit ? showResult("不允许登记非本科室人员,请扫描本科室人员条码", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage) : showResult("输入的条码有误!", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
return;
}
top.Ext.getCmp('monitorAuditor').setValue(result.fullName);
- }else{
- showResult('找不到该条码所对应的人员信息', null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ } else {
+ showResult('找不到该条码所对应的人员信息', null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
}
});
}
@@ -3944,294 +3965,302 @@
}
}]
}, {
- columnWidth : .5,
- layout : 'form',
- labelWidth : 120,
- cls:'edit-5char-labelwidth',
- hidden : !sstsConfig.needMonitorAuditor,
- height:26,
- items : [{
- xtype : 'textfield',
- fieldLabel : "监测审核员",
- name : "monitorAuditor",
- id : "monitorAuditor",
- readOnly : true,
- anchor : '100%',
- cls:'x-item-disabled'
+ columnWidth: .5,
+ layout: 'form',
+ labelWidth: 120,
+ cls: 'edit-5char-labelwidth',
+ hidden: !sstsConfig.needMonitorAuditor,
+ height: 26,
+ items: [{
+ xtype: 'textfield',
+ fieldLabel: "监测审核员",
+ name: "monitorAuditor",
+ id: "monitorAuditor",
+ readOnly: true,
+ anchor: '100%',
+ cls: 'x-item-disabled'
}]
}]
- },{
- xtype : "fieldset",
- title : "中断记录列表",
- layout : 'fit',
- height :200,
- columnWidth : 1,
- cls:'edit-5char-labelwidth',
- id : "interruptList",
- items :[
+ }, {
+ xtype: "fieldset",
+ title: "中断记录列表",
+ layout: 'fit',
+ height: 200,
+ columnWidth: 1,
+ cls: 'edit-5char-labelwidth',
+ id: "interruptList",
+ items: [
new top.Ext.grid.GridPanel({
- id : 'interruptRecordItemGrid',
- store : new top.Ext.data.Store({
- reader : new top.Ext.data.JsonReader({
- fields : [
- {name : 'id'},
- {name : 'interruptUser'},
- {name : 'interruptDate'},
- {name : 'interruptFinishDate'},
- {name : 'interruptOptType'},
- {name : 'quatifyMonitoryId'}
+ id: 'interruptRecordItemGrid',
+ store: new top.Ext.data.Store({
+ reader: new top.Ext.data.JsonReader({
+ fields: [
+ { name: 'id' },
+ { name: 'interruptUser' },
+ { name: 'interruptDate' },
+ { name: 'interruptFinishDate' },
+ { name: 'interruptOptType' },
+ { name: 'quatifyMonitoryId' }
]
})
}),
- bodyStyle : 'border:1px solid #afd7af',
- cm : new top.Ext.grid.ColumnModel([
- {header : "操作人",dataIndex : 'interruptUser',width : 100,sortable : true},
- {header : "中断时间",width : 150,dataIndex : 'interruptDate'},
- {header : "中断完成时间",width : 150,dataIndex : 'interruptFinishDate'},
- {header : "中断完成类型",width : 100,dataIndex : 'interruptOptType'},
- {header : "质量监测记录",dataIndex : 'quatifyMonitoryId',width : 100,
- renderer : function(v, p, record){
+ bodyStyle: 'border:1px solid #afd7af',
+ cm: new top.Ext.grid.ColumnModel([
+ { header: "操作人", dataIndex: 'interruptUser', width: 100, sortable: true },
+ { header: "中断时间", width: 150, dataIndex: 'interruptDate' },
+ { header: "中断完成时间", width: 150, dataIndex: 'interruptFinishDate' },
+ { header: "中断完成类型", width: 100, dataIndex: 'interruptOptType' },
+ {
+ header: "质量监测记录", dataIndex: 'quatifyMonitoryId', width: 100,
+ renderer: function (v, p, record) {
var str = "
";
+ "var currentTab = getCurrentTab();" +
+ "currentTab.showQualityMonitory(" + record.data.quatifyMonitoryId + ");" +
+ " \">";
return str;
- }}
+ }
+ }
]),
-// width : 650,
-// height : 100,
- border : true,
- frame : false
+ // width : 650,
+ // height : 100,
+ border: true,
+ frame: false
})]
+ }]
+ }, {
+ columnWidth: (top.screen.width > 1600 ? 0.4 : 0.45),
+ bodyStyle: 'margin-left:2px;margin-right:0px',
+ layout: 'fit',
+ items: [{
+ title: "灭菌数量",
+ width: top.screen.width > 1600 ? "96%" : rightWidth,
+ autoWidth: true,//405,
+ height: 130,
+ hidden: !enableNowScanAmount,
+ items: [{
+ xtype: 'textarea',
+ width: "98%",
+ height: 120,
+ readOnly: true,
+ style: 'color:red;font-size:90px;border-style:none;text-align:center;',
+ id: 'nowScanAmountId'
}]
- },{
- columnWidth : (top.screen.width > 1600 ? 0.4 :0.45),
- bodyStyle : 'margin-left:2px;margin-right:0px',
- layout : 'fit',
- items : [{
- title : "灭菌数量",
- width:top.screen.width > 1600 ? "96%" : rightWidth,
- autoWidth : true,//405,
- height : 130,
- hidden:!enableNowScanAmount,
- items : [{
- xtype:'textarea',
- width: "98%",
- height:120,
- readOnly:true,
- style:'color:red;font-size:90px;border-style:none;text-align:center;',
- id :'nowScanAmountId'
- }]
}]
},
{
- columnWidth : (top.screen.width > 1600 ? 0.4 :0.45),
- bodyStyle : 'margin-left:2px;margin-right:0px',
- layout : 'fit',
- items : [{
- layout : 'form',
- items : [{
- xtype : "fieldset",
- title : listDisplayOfItemsToBeSterilized == 2?"今天待灭菌的物品":"今天审核的待灭菌物品",
- width:top.screen.width > 1600 ? "96%" :rightWidth,
- height : 548,
- items : [pendingSterilizationColumnTree]
+ columnWidth: (top.screen.width > 1600 ? 0.4 : 0.45),
+ bodyStyle: 'margin-left:2px;margin-right:0px',
+ layout: 'fit',
+ items: [{
+ layout: 'form',
+ items: [{
+ xtype: "fieldset",
+ title: listDisplayOfItemsToBeSterilized == 2 ? "今天待灭菌的物品" : "今天审核的待灭菌物品",
+ width: top.screen.width > 1600 ? "96%" : rightWidth,
+ height: 548,
+ items: [pendingSterilizationColumnTree]
}]
}]
- },{
- columnWidth : (top.screen.width > 1600 ? 0.4 :0.45),
- bodyStyle : 'margin-left:2px;margin-right:0px',
- layout : 'fit',
- items : [{
- layout : 'form',
- items : [{
- xtype : "fieldset",
- tbar:['-','->',{id:"sterileUnloadTousseAmount",text:''}],
- title : "卸载物品列表统计",
- width:top.screen.width > 1600 ? "96%" :rightWidth,
- height : 325,
- autoScroll:true,
- containerScroll : true,
- items : [sterileUnLoadScanTousseColumnTree]
+ }, {
+ columnWidth: (top.screen.width > 1600 ? 0.4 : 0.45),
+ bodyStyle: 'margin-left:2px;margin-right:0px',
+ layout: 'fit',
+ items: [{
+ layout: 'form',
+ items: [{
+ xtype: "fieldset",
+ tbar: ['-', '->', { id: "sterileUnloadTousseAmount", text: '' }],
+ title: "卸载物品列表统计",
+ width: top.screen.width > 1600 ? "96%" : rightWidth,
+ height: 325,
+ autoScroll: true,
+ containerScroll: true,
+ items: [sterileUnLoadScanTousseColumnTree]
}]
}]
}]
}],
- buttons : [{
- id : 'continueBtn',
- text : '继续灭菌',
- handler : function (){
+ buttons: [{
+ id: 'continueBtn',
+ text: '继续灭菌',
+ handler: function () {
sterilizationContinue();
},
- hidden : true
- },{
- id : 'successBtn',
- text : '灭菌完成',
- handler : function() {
- sterilizationComplete(grid,statusEnd);
+ hidden: true
+ }, {
+ id: 'successBtn',
+ text: '灭菌完成',
+ handler: function () {
+ sterilizationComplete(grid, statusEnd);
},
- hidden : true
- },{
- id : 'failureBtn',
- text : '灭菌失败',
- handler : function() {
- sterilizationFailure(grid,statusFailure);
+ hidden: true
+ }, {
+ id: 'failureBtn',
+ text: '灭菌失败',
+ handler: function () {
+ sterilizationFailure(grid, statusFailure);
sterilizerStatus = statusFailure;
},
- hidden : true
- },{
- id : 'printLabel',
- text : '打印标签',
- handler : function() {
- printSterilizationLabelPanel(id);
+ hidden: true
+ }, {
+ id: 'printLabel',
+ text: '打印标签',
+ handler: function () {
+ printSterilizationLabelPanel(id);
},
- hidden : !sstsConfig.printLabelWhenSterilizing
- },{
- id : 'saveBtn',
- text : '保存',
- handler : save
- },{
- id : 'monitorBtn',
- text : '保存',
- hidden :true,
- handler : saveMonitor
- },{
- id : 'save2',
- text : '暂存',
- hidden :!sstsConfig.enableSterilizationDraftStatus,
- handler : save2
- },{
- text : '取消',
- id : 'saveAndNewBtn',
- handler : cancel
+ hidden: !sstsConfig.printLabelWhenSterilizing
+ }, {
+ id: 'saveBtn',
+ text: '保存',
+ handler: save
+ }, {
+ id: 'monitorBtn',
+ text: '保存',
+ hidden: true,
+ handler: saveMonitor
+ }, {
+ id: 'save2',
+ text: '暂存',
+ hidden: !sstsConfig.enableSterilizationDraftStatus,
+ handler: save2
+ }, {
+ text: '取消',
+ id: 'saveAndNewBtn',
+ handler: cancel
}]
});
-
- function uploadWindow(imageType){
- var onUploadComplete = function(dialog){
- dialog.hide();
- };
- //文件上传成功后的回调函数
- var onUploadSuccess = function(dialog, filename, resp_data, record){
- showResult("上传图片成功", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
- dialog.hide();
- };
-// //文件上传失败后的回调函数
- var onUploadFailed = function(dialog, filename, resp_data, record){
- showResult(resp_data.message, null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);//resp_data是json格式的数据
- };
- var dialog = new top.Ext.ux.UploadDialog.Dialog({
- title: "上传" + imageType,
- url:WWWROOT + '/disinfectSystem/baseData/uploadImageFileAction!uploadImage.do?imageType='+imageType+'&objectId='+id , //这里我用struts2做后台处理
- post_var_name:'uploadFiles',//这里是自己定义的,默认的名字叫file
- width : 450,
- height : 300,
- minWidth : 450,
- minHeight : 300,
- draggable : true ,
- resizable : true ,
- constraintoviewport: true ,
- permitted_extensions:['JPG','jpg','jpeg','JPEG','GIF','gif','png','PNG'],
- modal: true ,
- reset_on_hide: false ,
- allow_close_on_upload: false , //关闭上传窗口是否仍然上传文件
- upload_autostart: false
- });
- dialog.show();
- dialog.on('uploadsuccess',onUploadSuccess); //定义上传成功回调函数
- dialog.on('uploadfailed',onUploadFailed); //定义上传失败回调函数
+
+ function uploadWindow(imageType) {
+ var onUploadComplete = function (dialog) {
+ dialog.hide();
+ };
+ //文件上传成功后的回调函数
+ var onUploadSuccess = function (dialog, filename, resp_data, record) {
+ showResult("上传图片成功", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ dialog.hide();
+ };
+ // //文件上传失败后的回调函数
+ var onUploadFailed = function (dialog, filename, resp_data, record) {
+ showResult(resp_data.message, null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);//resp_data是json格式的数据
+ };
+ var url = '';
+ if (imageType == '灭菌记录图片') {
+ url = WWWROOT + '/disinfectSystem/sterilization/sterilizationRecordAction!uploadSterilizationRecordPicFile.do?sterileRecordId=' + id;
+ } else {
+ url = WWWROOT + '/disinfectSystem/baseData/uploadImageFileAction!uploadImage.do?imageType=' + imageType + '&objectId=' + id; //这里我用struts2做后台处理
+ }
+ var dialog = new top.Ext.ux.UploadDialog.Dialog({
+ title: "上传" + imageType,
+ url: url, //这里我用struts2做后台处理
+ post_var_name: 'uploadFiles',//这里是自己定义的,默认的名字叫file
+ width: 450,
+ height: 300,
+ minWidth: 450,
+ minHeight: 300,
+ draggable: true,
+ resizable: true,
+ constraintoviewport: true,
+ permitted_extensions: ['JPG', 'jpg', 'jpeg', 'JPEG', 'GIF', 'gif', 'png', 'PNG'],
+ modal: true,
+ reset_on_hide: false,
+ allow_close_on_upload: false, //关闭上传窗口是否仍然上传文件
+ upload_autostart: false
+ });
+ dialog.show();
+ dialog.on('uploadsuccess', onUploadSuccess); //定义上传成功回调函数
+ dialog.on('uploadfailed', onUploadFailed); //定义上传失败回调函数
}
-
- sterilizationRecordWin = new top.Ext.Window( {
- id : 'sterilizationRecordWin',
- layout : 'fit',
- title : '灭菌记录信息',
- border : false,
- modal : true,
- width : top.screen.width > 1600 ? 1600 :top.screen.width,
- height : top.screen.height -170,
- plain : true,
- align : 'center',
- items : [ formObj ]
+
+ sterilizationRecordWin = new top.Ext.Window({
+ id: 'sterilizationRecordWin',
+ layout: 'fit',
+ title: '灭菌记录信息',
+ border: false,
+ modal: true,
+ width: top.screen.width > 1600 ? 1600 : top.screen.width,
+ height: top.screen.height - 170,
+ plain: true,
+ align: 'center',
+ items: [formObj]
});
sterilizationRecordWin.show();
//灭菌记录
- Ext.Ajax.timeout = 180000;
+ Ext.Ajax.timeout = 180000;
formObj.form.load({
- url : WWWROOT + '/disinfectSystem/sterilization/sterilizationRecordAction!loadSterilizationRecord.do',
- method : 'GET',
-// waitMsg : '正在加载数据,请稍候',
- timeout:90000,
- success : function(form, action) {
+ url: WWWROOT + '/disinfectSystem/sterilization/sterilizationRecordAction!loadSterilizationRecord.do',
+ method: 'GET',
+ // waitMsg : '正在加载数据,请稍候',
+ timeout: 90000,
+ success: function (form, action) {
var sr = action.result.data; //此灭菌记录对象
var monitorPackageBarcode = sr.monitorPackageBarcode || '';
-
- if(!id) { //新加的记录
+
+ if (!id) { //新加的记录
setStartDate(top.Ext, 'yyyy/MM/dd HH:mm', 'startDate'); //(设置开始时间,取服务器时间cjr)
- if(scanUser == true){
+ if (scanUser == true) {
top.Ext.getCmp('sterilizationUser').setValue('');
}
//bioreaderStore.load();
top.Ext.getCmp('bioreaderId').setValue(null);
- top.Ext.getCmp('bioreaderName').setValue(null);
+ top.Ext.getCmp('bioreaderName').setValue(null);
} else {
- //优先显示生物监测数据来源的生物阅读器,其次显示灭菌炉绑定的生物阅读器
- if(sr.bioreader != null){
- top.Ext.getCmp('bioreaderId').setValue(sr.bioreader.id);
- top.Ext.getCmp('bioreaderName').setValue(sr.bioreader.bioreaderName);
- }else if(sr.sterilizer.bioreader != null){
- top.Ext.getCmp('bioreaderId').setValue(sr.sterilizer.bioreader.id);
- top.Ext.getCmp('bioreaderName').setValue(sr.sterilizer.bioreader.bioreaderName);
- }
+ //优先显示生物监测数据来源的生物阅读器,其次显示灭菌炉绑定的生物阅读器
+ if (sr.bioreader != null) {
+ top.Ext.getCmp('bioreaderId').setValue(sr.bioreader.id);
+ top.Ext.getCmp('bioreaderName').setValue(sr.bioreader.bioreaderName);
+ } else if (sr.sterilizer.bioreader != null) {
+ top.Ext.getCmp('bioreaderId').setValue(sr.sterilizer.bioreader.id);
+ top.Ext.getCmp('bioreaderName').setValue(sr.sterilizer.bioreader.bioreaderName);
+ }
top.Ext.getCmp('startDate').setValue(formatDateYear(sr.startDate));
top.Ext.getCmp('endDate').setValue(formatDateYear(sr.endDate));
top.Ext.getCmp('srSituationComfirmer').setValue(sr.srSituationComfirmer);
- if(monitorPackageBarcode !== ''){
+ if (monitorPackageBarcode !== '') {
top.Ext.getCmp('biologicalMonitoring').setValue("已扫描");
top.Ext.getCmp('monitorPackageBarcode').setValue(monitorPackageBarcode);
}
-
+
//加载条码放至全局数组中
var fixedBarcodes = action.result.fixedBarcodes
var barcodes = action.result.barcodes
myFixedBarcodes = fixedBarcodes.split(",")
myBarcodes = barcodes.split(",")
}
-
- if(reSterilization){ //重新灭菌
- SterilizationRecordTableManager.getMaxFrequency(sr.sterilizerName,0,function(result){
- top.Ext.getCmp('frequency').setValue(result);
- });
- SterilizationRecordTableManager.getNextCycleCounter(sr.sterilizerName,0,function(result){
- top.Ext.getCmp('cycleCounter').setValue(result == 0 ? 1 : result);
- });
+
+ if (reSterilization) { //重新灭菌
+ SterilizationRecordTableManager.getMaxFrequency(sr.sterilizerName, 0, function (result) {
+ top.Ext.getCmp('frequency').setValue(result);
+ });
+ SterilizationRecordTableManager.getNextCycleCounter(sr.sterilizerName, 0, function (result) {
+ top.Ext.getCmp('cycleCounter').setValue(result == 0 ? 1 : result);
+ });
}
//判断是否无条件显示循环次数
- if(sstsConfig.showCycleCountWithoutCondition){
+ if (sstsConfig.showCycleCountWithoutCondition) {
top.Ext.getCmp('cycleCounterId').show();
- }else{
- SterilizationRecordTableManager.isDefineDeviceInterface(sr.sterilizerName,function(result){
+ } else {
+ SterilizationRecordTableManager.isDefineDeviceInterface(sr.sterilizerName, function (result) {
result == true ? top.Ext.getCmp('cycleCounterId').show() :
top.Ext.getCmp('cycleCounterId').hide();
});
}
-
+
//加载灭菌参数
- SterilizationRecordTableManager.getParameter(sr.sterilizationType,function(result){
- if(result != null && result.length > 0){
+ SterilizationRecordTableManager.getParameter(sr.sterilizationType, function (result) {
+ if (result != null && result.length > 0) {
top.Ext.getCmp('parameter').setValue(result);
}
});
-
- if(sr.status != statusEnd){ //这里有四种情况:新加的记录、灭菌中、灭菌中断、灭菌失败
+
+ if (sr.status != statusEnd) { //这里有四种情况:新加的记录、灭菌中、灭菌中断、灭菌失败
top.Ext.getCmp('physicsResult').setValue(sr.physicsResult ? sr.physicsResult : "无");
top.Ext.getCmp('chemistryResult').setValue(sr.chemistryResult ? sr.chemistryResult : "无");
top.Ext.getCmp('biologyResult').setValue(sr.biologyResult ? sr.biologyResult : "无");
top.Ext.getCmp('physicsResult').disable();
top.Ext.getCmp('chemistryResult').disable();
top.Ext.getCmp('biologyResult').disable();
-
+
top.Ext.getCmp('biologicalObserveDate').disable();
top.Ext.getCmp('biologicalMonitoringStartDate').disable();
top.Ext.getCmp('biologicalMonitoringEndDate').disable();
@@ -4241,111 +4270,111 @@
top.Ext.getCmp('monitorUser').disable();
top.Ext.getCmp('monitorAuditorBarcode').disable();
top.Ext.getCmp('monitorAuditor').disable();
-
- if(sr.status == statusFailure && reSterilization == false){
+
+ if (sr.status == statusFailure && reSterilization == false) {
top.Ext.getCmp('monitorBtn').show();
top.Ext.getCmp('saveBtn').hide();
top.Ext.getCmp('inputBarcode').setDisabled(true);
top.Ext.getCmp('biologicalMonitoringStartDate').setDisabled(true);
disableItems();
}
- if(sr.status == statusInterrupt && reSterilization == false){
+ if (sr.status == statusInterrupt && reSterilization == false) {
top.Ext.getCmp('monitorBtn').show();
top.Ext.getCmp('saveBtn').hide();
top.Ext.getCmp('inputBarcode').setDisabled(true);
disableItems();
}
- }else{ //灭菌完成
- //是否允许手动选择生物监测结果”选择为选否时,生物监测结果不允许手动选择,只能从生物阅读器接口获取结果写入。
- if(sr.sterilizer.allowSelectBiologicalResult == "否"){
- top.Ext.getCmp('biologyResult').disable();
- }
- _biologicalMonitoringTime = sr.sterilizer.biologicalMonitoringTime*60*1000; //此灭菌炉的生物监测持续时间
+ } else { //灭菌完成
+ //是否允许手动选择生物监测结果”选择为选否时,生物监测结果不允许手动选择,只能从生物阅读器接口获取结果写入。
+ if (sr.sterilizer.allowSelectBiologicalResult == "否") {
+ top.Ext.getCmp('biologyResult').disable();
+ }
+ _biologicalMonitoringTime = sr.sterilizer.biologicalMonitoringTime * 60 * 1000; //此灭菌炉的生物监测持续时间
top.Ext.getCmp('biologicalObserveDate').setValue(formatDateYear(sr.biologicalObserveDate)); //生物监测的观察时间
top.Ext.getCmp('biologicalMonitoringStartDate').setValue(formatDateYear(sr.biologicalMonitoringStartDate)); //生物监测的开始时间
top.Ext.getCmp('biologicalMonitoringEndDate').setValue(formatDateYear(sr.biologicalMonitoringEndDate)); //生物监测的结束时间
-
+
top.Ext.getCmp('monitorBtn').show();
top.Ext.getCmp('saveBtn').hide();
disableItems();
}
-
+
// 初始化中断记录列表
var items = action.result.interruptRecords;
- for(var i = 0;items && i < items.length; i++){
+ for (var i = 0; items && i < items.length; i++) {
var itemRecord = new InterruptRecordItem({
- id : items[i].id,
- interruptUser : items[i].interruptUser,
- interruptDate : items[i].interruptDate,
- interruptFinishDate : items[i].interruptFinishDate,
- interruptOptType : items[i].interruptOptType,
- quatifyMonitoryId : items[i].quatifyMonitoryId
+ id: items[i].id,
+ interruptUser: items[i].interruptUser,
+ interruptDate: items[i].interruptDate,
+ interruptFinishDate: items[i].interruptFinishDate,
+ interruptOptType: items[i].interruptOptType,
+ quatifyMonitoryId: items[i].quatifyMonitoryId
});
top.Ext.getCmp('interruptRecordItemGrid').getStore().add(itemRecord);
}
},
- failure : function(form, action) {
+ failure: function (form, action) {
},
- params : {
- id : id
+ params: {
+ id: id
}
});
-
- //如果是编辑并且状态是灭菌完成或者登陆用户不属于供应室也不属于二级供应室
- if((id && currentStatus==statusEnd) || (id && currentStatus==statusFailure) || orgUnitCoding == null || orgUnitCoding == ''){
+
+ //如果是编辑并且状态是灭菌完成或者登陆用户不属于供应室也不属于二级供应室
+ if ((id && currentStatus == statusEnd) || (id && currentStatus == statusFailure) || orgUnitCoding == null || orgUnitCoding == '') {
top.Ext.getCmp('saveBtn').setDisabled(true);
}
top.Ext.getCmp('inputBarcode').focus(false, 100);
isNewRecord = reSterilization;
- if(sstsConfig.enableSterilizationDraftStatus){
- if((id && currentStatus == statusDraft)){
+ if (sstsConfig.enableSterilizationDraftStatus) {
+ if ((id && currentStatus == statusDraft)) {
top.Ext.getCmp('saveBtn').hide();
top.Ext.getCmp('monitorBtn').hide();
top.Ext.getCmp('save2').show();
- }else if((id && currentStatus == statusFailure) || (id && currentStatus == statusEnd)){
+ } else if ((id && currentStatus == statusFailure) || (id && currentStatus == statusEnd)) {
top.Ext.getCmp('saveBtn').show();
top.Ext.getCmp('monitorBtn').hide();
top.Ext.getCmp('save2').hide();
//重新灭菌
- if(reSterilization){
+ if (reSterilization) {
top.Ext.getCmp('sterilizationRecordWin').setTitle("重新灭菌");
top.Ext.getCmp('saveBtn').setDisabled(false);
top.Ext.getCmp('saveBtn').setText("重新灭菌");
- if(id && currentStatus==statusInterrupt){
+ if (id && currentStatus == statusInterrupt) {
top.Ext.getCmp('continueBtn').show();
top.Ext.getCmp('successBtn').show();
top.Ext.getCmp('failureBtn').show();
// 灭菌中断 没有重新灭菌按钮
top.Ext.getCmp('saveBtn').hide();
}
}
- }else if((id && currentStatus == statusInterrupt) || (id && currentStatus == statusBegin)){
+ } else if ((id && currentStatus == statusInterrupt) || (id && currentStatus == statusBegin)) {
top.Ext.getCmp('saveBtn').show();
top.Ext.getCmp('monitorBtn').hide();
top.Ext.getCmp('save2').hide();
- if(reSterilization){
+ if (reSterilization) {
top.Ext.getCmp('sterilizationRecordWin').setTitle("重新灭菌");
top.Ext.getCmp('saveBtn').setDisabled(false);
top.Ext.getCmp('saveBtn').setText("重新灭菌");
- if(id && currentStatus==statusInterrupt){
+ if (id && currentStatus == statusInterrupt) {
top.Ext.getCmp('continueBtn').show();
top.Ext.getCmp('successBtn').show();
top.Ext.getCmp('failureBtn').show();
// 灭菌中断 没有重新灭菌按钮
top.Ext.getCmp('saveBtn').hide();
}
}
- }else {
+ } else {
top.Ext.getCmp('saveBtn').show();
top.Ext.getCmp('monitorBtn').hide();
top.Ext.getCmp('save2').show();
}
- }else {
- if(reSterilization){
+ } else {
+ if (reSterilization) {
top.Ext.getCmp('sterilizationRecordWin').setTitle("重新灭菌");
top.Ext.getCmp('saveBtn').setDisabled(false);
top.Ext.getCmp('saveBtn').setText("重新灭菌");
- if(id && currentStatus==statusInterrupt){
+ if (id && currentStatus == statusInterrupt) {
top.Ext.getCmp('continueBtn').show();
top.Ext.getCmp('successBtn').show();
top.Ext.getCmp('failureBtn').show();
@@ -4361,7 +4390,7 @@
} catch (e) {
}
}
-function disableItems(){
+function disableItems() {
top.Ext.getCmp('sterilizationUser').disable();
top.Ext.getCmp('sterilizationShelf').disable();
top.Ext.getCmp('sterilizerName').disable();
@@ -4375,27 +4404,27 @@
var isNewRecord = false;
-function setTime(){
+function setTime() {
var sterilizerName = top.Ext.getCmp('sterilizerName') || '';
- sterilizerName = (sterilizerName == '')?'':sterilizerName.getValue();
+ sterilizerName = (sterilizerName == '') ? '' : sterilizerName.getValue();
var time = '';
- if(sterilizerName == ''){
- time = setTimeout(function() {
+ if (sterilizerName == '') {
+ time = setTimeout(function () {
setTime();
}, 500);
- }else {
+ } else {
clearTimeout(time);
- Ext.Ajax.request( {
- url : WWWROOT + '/disinfectSystem/baseData/sterilizerAction!loadSterilizerBySterilizerName.do',
- params : {
- sterilizerName : sterilizerName
+ Ext.Ajax.request({
+ url: WWWROOT + '/disinfectSystem/baseData/sterilizerAction!loadSterilizerBySterilizerName.do',
+ params: {
+ sterilizerName: sterilizerName
},
- success : function(response, options) {
+ success: function (response, options) {
var result = Ext.decode(response.responseText);
- if(result.success){
+ if (result.success) {
var monitorTousseDisplay = result.data.monitorTousseDisplay;
- if(top.Ext.getCmp('monitorTousseDisplay')){
+ if (top.Ext.getCmp('monitorTousseDisplay')) {
top.Ext.getCmp('monitorTousseDisplay').setValue(monitorTousseDisplay);
}
}
@@ -4405,57 +4434,57 @@
}
//保存表单
-function saveData(dataType,that){
+function saveData(dataType, that) {
if (!formObj.form.isValid()) {
- showResult('请正确填写表单各值', null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ showResult('请正确填写表单各值', null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
that.enable();
return false;
}
- if(dataType == 1){
+ if (dataType == 1) {
var currentStatus = top.Ext.getCmp('currentStatus').getValue();
var includeImplant = top.Ext.getCmp('includeImplant').getValue();
var biologicalMonitoringStartDate = top.Ext.getCmp('biologicalMonitoringStartDate').getValue();
var monitorUser = top.Ext.getCmp('monitorUser').getValue();
- if(currentStatus == '灭菌完成' && includeImplant == '是'){
- if(biologicalMonitoringStartDate == ''){
+ if (currentStatus == '灭菌完成' && includeImplant == '是') {
+ if (biologicalMonitoringStartDate == '') {
showResult('生物监测开始时间不能为空');
return false;
}
- if(monitorUser == ''){
+ if (monitorUser == '') {
showResult('监测员不能为空');
return false;
}
}
}
//重新灭菌
- if(isNewRecord){
+ if (isNewRecord) {
var tempid = top.Ext.getCmp('id').getValue();
top.Ext.getCmp('recordId').setValue(tempid);
top.Ext.getCmp('id').setValue(0);
top.Ext.getCmp('reSterilization').setValue("true");
}
-
+
//判断当前灭菌程序是否能灭菌器械包
var rootNode = sterilizationColumnTree.getRootNode();
var hasGoods = rootNode.hasChildNodes();
var canAddTousse = sterilizationCanAddTousse();
- if(false == canAddTousse && hasGoods){
- showResult("当前灭菌程序不能灭菌物品!", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ if (false == canAddTousse && hasGoods) {
+ showResult("当前灭菌程序不能灭菌物品!", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
return false;
}
- if(dataType == 1){
+ if (dataType == 1) {
//验证当前灭菌炉是否是灭菌中
- var objId = top.Ext.getCmp('id').getValue();
- if(objId == 0){
+ var objId = top.Ext.getCmp('id').getValue();
+ if (objId == 0) {
DWREngine.setAsync(false);
var sign = true;
var sterilizerName = top.Ext.getCmp('sterilizerName').getValue();
- SterilizationRecordTableManager.isAllSterilizationed(sterilizerName,function(result){
+ SterilizationRecordTableManager.isAllSterilizationed(sterilizerName, function (result) {
sign = result;
});
DWREngine.setAsync(true);
- if(!sign){
- showResult("当前灭菌炉正在灭菌,保存失败!", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ if (!sign) {
+ showResult("当前灭菌炉正在灭菌,保存失败!", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
return false;
}
}
@@ -4468,169 +4497,169 @@
var sterilizerName = top.Ext.getCmp('sterilizerName').getValue();
var cycleCounter = top.Ext.getCmp('cycleCounter').getValue();
var isDefineDeviceInterface = true;
- SterilizationRecordTableManager.isDefineDeviceInterface(sterilizerName,function(result){
+ SterilizationRecordTableManager.isDefineDeviceInterface(sterilizerName, function (result) {
isDefineDeviceInterface = result;
});
- if( isDefineDeviceInterface ){
- SterilizationRecordTableManager.isSterilizerCycleCounterExist(id,sterilizerName,cycleCounter,
- function(result) {
- sign = result;
- });
+ if (isDefineDeviceInterface) {
+ SterilizationRecordTableManager.isSterilizerCycleCounterExist(id, sterilizerName, cycleCounter,
+ function (result) {
+ sign = result;
+ });
DWREngine.setAsync(true);
if (sign) {
- showResult("灭菌炉的循环次数已存在,保存失败!", null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ showResult("灭菌炉的循环次数已存在,保存失败!", null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
return false;
}
- }else if(!sstsConfig.showCycleCountWithoutCondition){
+ } else if (!sstsConfig.showCycleCountWithoutCondition) {
//如果既没有配置灭菌炉接口也没有开启循环次数则清0
top.Ext.getCmp('cycleCounter').setValue(0);
}
}
var url;
- if(dataType == 1){
+ if (dataType == 1) {
url = WWWROOT + '/disinfectSystem/sterilization/sterilizationRecordAction!savesterilizationRecord.do';
- }else {
- url = WWWROOT + '/disinfectSystem/sterilization/sterilizationRecordAction!savesterilizationRecord.do?status='+statusDraft;
+ } else {
+ url = WWWROOT + '/disinfectSystem/sterilization/sterilizationRecordAction!savesterilizationRecord.do?status=' + statusDraft;
}
-
- var nexFn = function(){
+
+ var nexFn = function () {
var result = getItemTreeData();
top.Ext.getCmp("sterilizationGoods").setValue(result);
top.Ext.getCmp("delTousseJson").setValue(JSON.stringify(delTousseJson));
- // top.Ext.getCmp("status").setValue('');
+ // top.Ext.getCmp("status").setValue('');
var barcodePostionInfo = getBarcodePositionData();
top.Ext.getCmp("barcodePositionInfo").setValue(barcodePostionInfo);
Ext.getCmp("formSubmitResult").setValue(0);
formObj.form
- .submit( {
- url : url,
- method : 'POST',
- waitMsg : '正在保存数据,请稍候',
- waitTitle : '提交表单',
- timeout:90000,
- success : function(form, action) {
- var result = Ext.decode(action.response.responseText);
- if(result && result.message){
- var noticeMode = obj.noticeMode;
- if(noticeMode == 2){
- noticeDiffSterilingMessage(top.Ext,result.message);
- }else{
- showResult(result.message, null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
- }
- }else{
- showResult('保存成功', null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
- }
- grid.dwrReload();
- sterilizationRecordWin.close();
- //表单提交完给隐藏域formSubmitResult设置为1,自动化测试会用到
- Ext.getCmp("formSubmitResult").setValue(1);
- },
- failure : function(form, action) {
- var result = Ext.decode(action.response.responseText);
- if(result && result.message){
- showResult(result.message, null , sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ .submit({
+ url: url,
+ method: 'POST',
+ waitMsg: '正在保存数据,请稍候',
+ waitTitle: '提交表单',
+ timeout: 90000,
+ success: function (form, action) {
+ var result = Ext.decode(action.response.responseText);
+ if (result && result.message) {
+ var noticeMode = obj.noticeMode;
+ if (noticeMode == 2) {
+ noticeDiffSterilingMessage(top.Ext, result.message);
+ } else {
+ showResult(result.message, null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ }
+ } else {
+ showResult('保存成功', null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ }
+ grid.dwrReload();
+ sterilizationRecordWin.close();
+ //表单提交完给隐藏域formSubmitResult设置为1,自动化测试会用到
+ Ext.getCmp("formSubmitResult").setValue(1);
+ },
+ failure: function (form, action) {
+ var result = Ext.decode(action.response.responseText);
+ if (result && result.message) {
+ showResult(result.message, null, sstsConfig.messagePauseTimeOnSterilizationRecordPage);
+ }
}
- }
- });
+ });
}
-
- if (!hasGoods){
- top.Ext.MessageBox.confirm("请确认","没有添加灭菌的物品,继续灭菌吗?",
- function(button, text) {
- if ("yes" == button){
+
+ if (!hasGoods) {
+ top.Ext.MessageBox.confirm("请确认", "没有添加灭菌的物品,继续灭菌吗?",
+ function (button, text) {
+ if ("yes" == button) {
nexFn();
- }else{
- return false;
- }
- });
- }else{
+ } else {
+ return false;
+ }
+ });
+ } else {
nexFn();
}
}
function save() {
var that = this;
- if(sstsConfig.enableScanSterilizationMonitoringPackage){
+ if (sstsConfig.enableScanSterilizationMonitoringPackage) {
var biologicalMonitoring = top.Ext.getCmp('biologicalMonitoring').getValue();
var monitorTousseDisplay = top.Ext.getCmp('monitorTousseDisplay').getValue();
var foreignTousseAmount = parseInt(top.Ext.getCmp('foreignTousseAmount').getValue());
var implantAmount = parseInt(top.Ext.getCmp('implantAmount').getValue());
var frequency = parseInt(top.Ext.getCmp('frequency').getValue());
var sterilizerName = top.Ext.getCmp('sterilizerName').getValue();
-
- if(monitorTousseDisplay !== ''){
+
+ if (monitorTousseDisplay !== '') {
var monitorTousseDisplayArray = monitorTousseDisplay.split(';');
- if(monitorTousseDisplayArray.indexOf('每炉') >=0 && biologicalMonitoring == ''){
+ if (monitorTousseDisplayArray.indexOf('每炉') >= 0 && biologicalMonitoring == '') {
showResult('请扫描生物监测包条码:每炉必须做生物监测!', null);
return;
- }else if(monitorTousseDisplayArray.indexOf('每天第一炉') >=0 && frequency == 1 && biologicalMonitoring == ''){
+ } else if (monitorTousseDisplayArray.indexOf('每天第一炉') >= 0 && frequency == 1 && biologicalMonitoring == '') {
showResult('请扫描生物监测包条码:每天第一炉必须做生物监测!', null);
return;
- }else if(monitorTousseDisplayArray.indexOf('有植入物时') >=0 && implantAmount > 0 && biologicalMonitoring == ''){
+ } else if (monitorTousseDisplayArray.indexOf('有植入物时') >= 0 && implantAmount > 0 && biologicalMonitoring == '') {
showResult('请扫描生物监测包条码:待灭菌物品包含有植入物!', null);
return;
- }else if(monitorTousseDisplayArray.indexOf('有外来器械包时') >=0 && foreignTousseAmount > 0 && biologicalMonitoring == ''){
+ } else if (monitorTousseDisplayArray.indexOf('有外来器械包时') >= 0 && foreignTousseAmount > 0 && biologicalMonitoring == '') {
showResult('请扫描生物监测包条码:待灭菌物品含有外来器械包!', null);
return;
}
}
- if(sstsConfig.enableSterilizerBioMonitoringIntervalReminder){
+ if (sstsConfig.enableSterilizerBioMonitoringIntervalReminder) {
var params = {
- sterilizerName:sterilizerName,
- isSave:true,
- biologicalMonitoring:biologicalMonitoring,
- button:that,
- saveType:1
+ sterilizerName: sterilizerName,
+ isSave: true,
+ biologicalMonitoring: biologicalMonitoring,
+ button: that,
+ saveType: 1
}
sterilizerBioMonitoringIntervalReminder(params);
- }else {
- saveData(1,that);
+ } else {
+ saveData(1, that);
}
- }else {
- saveData(1,that);
+ } else {
+ saveData(1, that);
}
}
-function save2(){
- if(sstsConfig.enableScanSterilizationMonitoringPackage){
+function save2() {
+ if (sstsConfig.enableScanSterilizationMonitoringPackage) {
var biologicalMonitoring = top.Ext.getCmp('biologicalMonitoring').getValue();
var monitorTousseDisplay = top.Ext.getCmp('monitorTousseDisplay').getValue();
var foreignTousseAmount = parseInt(top.Ext.getCmp('foreignTousseAmount').getValue());
var implantAmount = parseInt(top.Ext.getCmp('implantAmount').getValue());
var frequency = parseInt(top.Ext.getCmp('frequency').getValue());
var sterilizerName = top.Ext.getCmp('sterilizerName').getValue();
-
- if(monitorTousseDisplay !== ''){
+
+ if (monitorTousseDisplay !== '') {
var monitorTousseDisplayArray = monitorTousseDisplay.split(';');
- if(monitorTousseDisplayArray.indexOf('每炉') >=0 && biologicalMonitoring == ''){
+ if (monitorTousseDisplayArray.indexOf('每炉') >= 0 && biologicalMonitoring == '') {
showResult('请扫描生物监测包条码:每炉必须做生物监测!', null);
return;
- }else if(monitorTousseDisplayArray.indexOf('每天第一炉') >=0 && frequency == 1 && biologicalMonitoring == ''){
+ } else if (monitorTousseDisplayArray.indexOf('每天第一炉') >= 0 && frequency == 1 && biologicalMonitoring == '') {
showResult('请扫描生物监测包条码:每天第一炉必须做生物监测!', null);
return;
- }else if(monitorTousseDisplayArray.indexOf('有植入物时') >=0 && implantAmount > 0 && biologicalMonitoring == ''){
+ } else if (monitorTousseDisplayArray.indexOf('有植入物时') >= 0 && implantAmount > 0 && biologicalMonitoring == '') {
showResult('请扫描生物监测包条码:待灭菌物品包含有植入物!', null);
return;
- }else if(monitorTousseDisplayArray.indexOf('有外来器械包时') >=0 && foreignTousseAmount > 0 && biologicalMonitoring == ''){
+ } else if (monitorTousseDisplayArray.indexOf('有外来器械包时') >= 0 && foreignTousseAmount > 0 && biologicalMonitoring == '') {
showResult('请扫描生物监测包条码:待灭菌物品含有外来器械包!', null);
return;
}
}
- if(sstsConfig.enableSterilizerBioMonitoringIntervalReminder){
+ if (sstsConfig.enableSterilizerBioMonitoringIntervalReminder) {
var params = {
- sterilizerName:sterilizerName,
- isSave:true,
- biologicalMonitoring:biologicalMonitoring,
- saveType:2
+ sterilizerName: sterilizerName,
+ isSave: true,
+ biologicalMonitoring: biologicalMonitoring,
+ saveType: 2
}
sterilizerBioMonitoringIntervalReminder(params);
- }else {
+ } else {
saveData(2);
}
- }else {
+ } else {
saveData(2);
}
}
@@ -4645,7 +4674,7 @@
*/
function getAlreadyScanBarcodes() {
var barcodes = "";
- sterilizationColumnTree.getRootNode().eachChild(function(pNode){
+ sterilizationColumnTree.getRootNode().eachChild(function (pNode) {
barcodes += pNode.attributes.barcode + ";";
});
if (barcodes) {
@@ -4654,22 +4683,22 @@
return barcodes;
}
-function showQualityMonitory(qualityMonitoryId){
+function showQualityMonitory(qualityMonitoryId) {
sterilizationRecordWin.close();
addQualityMonitoring(qualityMonitoryId);
}
/**
* 删除灭菌中的灭菌记录篮筐里的器械包
* @param childNode
*/
-function delChildNode(childNode){
- var tousse = {};
- var parentNode = childNode.parentNode;
- tousse.basketBarcode = parentNode.attributes.barcode;
- tousse.barcode = childNode.attributes.barcode;
- delTousseJson.push(tousse);
- childNode.remove();
- if(parentNode.childNodes.length == 0){
- parentNode.remove();
- }
+function delChildNode(childNode) {
+ var tousse = {};
+ var parentNode = childNode.parentNode;
+ tousse.basketBarcode = parentNode.attributes.barcode;
+ tousse.barcode = childNode.attributes.barcode;
+ delTousseJson.push(tousse);
+ childNode.remove();
+ if (parentNode.childNodes.length == 0) {
+ parentNode.remove();
+ }
}