Index: ssts-web/src/main/webapp/disinfectsystem/routineMonitoring/routineMonitoringView.js
===================================================================
diff -u -r40302 -r41119
--- ssts-web/src/main/webapp/disinfectsystem/routineMonitoring/routineMonitoringView.js (.../routineMonitoringView.js) (revision 40302)
+++ ssts-web/src/main/webapp/disinfectsystem/routineMonitoring/routineMonitoringView.js (.../routineMonitoringView.js) (revision 41119)
@@ -4,6 +4,158 @@
var routineMonitoringArray = new Array();
var frequencyStore;
+//BJDXZLYY-69:定期监测改为Iframe模式
+function openRoutineMonitoringWin(id) {
+ var params = {
+ title: '定期监测信息',
+ width: 700,
+ height: 550,
+ id: 'routineMonitoringWin',
+ grid: gridView,
+ url: WWWROOT + '/disinfectsystem/routineMonitoring/routineMonitoringForm.jsp'
+ }
+ getFormByIframeUtil(params, function (contentWindow) {
+ contentWindow.addRoutineMonitoring(id);
+ });
+}
+
+/**
+ * 修改记录
+ * modifyRecord函数 触发modify函数调用,并传入当前列的值以及record.data对象
+ * 页面中需要定义 modify(v,data) 函数
+ */
+function modify(v, data) {
+ openRoutineMonitoringWin(data['id']);
+}
+
+var mask = null;
+function getMask() {
+ if (!mask) {
+ mask = new Ext.LoadMask(Ext.getBody(), {
+ msg: '正在处理打印请求,请稍候...'
+ });
+ }
+ return mask;
+}
+
+//审核
+function reviewRoutineMonitoring(gridView) {
+
+ var records = gridView.getSelectionModel().getSelections();
+
+ if (records.length == 0) {
+ showResult("请选择要审核定期监测记录!");
+ return false;
+ }
+
+ var ids = [];
+
+ for (var i = 0; i < records.length; i++) {
+ ids[i] = records[i].data['id'];
+ }
+
+ top.Ext.MessageBox.confirm("请确认", "是否确定完成对该记录的审核吗?", function (button, text) {
+ if ("yes" == button) {
+ Ext.Ajax.request({
+ url: WWWROOT + '/disinfectSystem/qualityMonitoringInstanceAction!batchReviewQualityMonitoring.do',
+ params: { ids: ids.join(';') },
+ success: function (response, options) {
+ var result = Ext.decode(response.responseText);
+ showResult(result.message);
+ if (result.success) {
+ gridView.dwrReload();
+ }
+ },
+ failure: function (response, options) {
+ var result = Ext.decode(response.responseText);
+ alert(result.message);
+ }
+ });
+ }
+ });
+}
+
+//删除
+function deleteRoutineMonitoring(gridView) {
+ var records = gridView.getSelectionModel().getSelections();
+
+ if (records.length == 0) {
+ showResult("请选择要删除的记录!");
+ return false;
+ }
+ var ids = null;
+ for (var i = 0, len = records.length; i < len; i++) {
+ if (ids == null) {
+ ids = records[i].data['id'];
+ } else {
+ ids = ids + ';' + records[i].data['id'];
+ }
+ }
+ top.Ext.MessageBox.confirm("请确认", "是否确定要删除选中的信息吗?", function (button, text) {
+ if ("yes" == button) {
+ Ext.Ajax.request({
+ url: WWWROOT + '/disinfectSystem/qualityMonitoringInstanceAction!deleteQualityMonitoringInstance.do',
+ params: { ids: ids },
+ success: function (response, options) {
+ var result = Ext.decode(response.responseText);
+ showResult(result.message);
+ gridView.dwrReload();
+ },
+ failure: function (response, options) {
+ var result = Ext.decode(response.responseText);
+ alert(result.message);
+ }
+ });
+ }
+ });
+
+}
+
+//返回
+function becomeNotAudited(gridView) {
+ var records = gridView.getSelectionModel().getSelections();
+ if (records.length == 0) {
+ showResult("请选择要返回的" + entityName + "记录!");
+ return false;
+ }
+ var ids = [];
+ for (var i = 0, len = records.length; i < len; i++) {
+ if (records[i].data['status'] != '未审核') {
+ ids.push(records[i].data['id']);
+ } else {
+ showResult("所选的记录不是已审核状态,请选择已审核的" + entityName + "记录!");
+ return false;
+ }
+ }
+
+ top.Ext.MessageBox.confirm("请确认", "确定要返回成未审核状态吗?", function (button, text) {
+ if ("yes" == button) {
+ getMask();
+ mask.msg = '正在处理请求,请稍候...';
+ mask.show();
+ Ext.Ajax.request({
+ url: WWWROOT + '/disinfectSystem/qualityMonitoringInstanceAction!updateStatus.do',
+ params: { ids: JSON.stringify(ids), status: statusUnreview },
+ success: function (response, options) {
+ mask.hide();
+ var result = Ext.decode(response.responseText);
+ if (result.message) {
+ showResult(result.message);
+ }
+ if (result.success) {
+ showResult('所选的记录已成功返回成未审核状态!');
+ gridView.dwrReload();
+ }
+ },
+ failure: function (response, options) {
+ mask.hide();
+ showResult('后台程序忙,请联系管理员!');
+ }
+ });
+ }
+ });
+}
+
Ext.onReady(function () {
Ext.QuickTips.init();
// 记录cookie(3步)
@@ -81,7 +233,7 @@
hidden: SSTS_RoutineMonitoring_Create,
iconCls: 'btn_ext_application_add',
handler: function () {
- addRoutineMonitoring("");
+ openRoutineMonitoringWin("");
}
}, '-', {
text: '删除',
Index: ssts-web/src/main/webapp/disinfectsystem/routineMonitoring/routineMonitoringForm.jsp
===================================================================
diff -u
--- ssts-web/src/main/webapp/disinfectsystem/routineMonitoring/routineMonitoringForm.jsp (revision 0)
+++ ssts-web/src/main/webapp/disinfectsystem/routineMonitoring/routineMonitoringForm.jsp (revision 41119)
@@ -0,0 +1,63 @@
+<%@page import="com.forgon.disinfectsystem.entity.qualitymonitoringmanager.qualitymonitoring.QualityMonitoringInstance"%>
+<%@page import="com.forgon.disinfectsystem.entity.customform.formdefinition.FormDefinition"%>
+<%@page import="com.forgon.disinfectsystem.basedatamanager.supplyroomconfig.service.SupplyRoomConfigManager"%>
+<%@page import="com.forgon.disinfectsystem.entity.basedatamanager.supplyroomconfig.SupplyRoomConfig"%>
+<%@ page contentType="text/html; charset=UTF-8"%>
+<%@ include file="/common/taglibs.jsp"%>
+<%@page import="com.forgon.disinfectsystem.entity.basedatamanager.toussedefinition.TousseDefinition" %>
+
+<%
+ SupplyRoomConfigManager supplyRoomConfigManager =(SupplyRoomConfigManager) SpringBeanManger.getBean("supplyRoomConfigManager");
+ request.setAttribute("userName",AcegiHelper.getLoginUser().getUserFullName());
+ SupplyRoomConfig syscfg = supplyRoomConfigManager.getSystemParamsObj();
+ request.setAttribute("qualityMonitoringUpdateMode", syscfg.getQualityMonitoringUpdateMode());
+%>
+
+
+
+
+定期监测
+
+
+<%@ include file="/common/includeExtJsAndCss.jsp"%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
Index: ssts-web/src/main/webapp/disinfectsystem/sterilizationmanager/sterilizationrecord/sterilizationRecordView.js
===================================================================
diff -u -r41118 -r41119
--- ssts-web/src/main/webapp/disinfectsystem/sterilizationmanager/sterilizationrecord/sterilizationRecordView.js (.../sterilizationRecordView.js) (revision 41118)
+++ ssts-web/src/main/webapp/disinfectsystem/sterilizationmanager/sterilizationrecord/sterilizationRecordView.js (.../sterilizationRecordView.js) (revision 41119)
@@ -589,7 +589,7 @@
sterilizationStatus: '灭菌完成',
qualityMonitoringSterilizationID: sterilizationRecordId
}
- addRoutineMonitoring("", obj);
+ openRoutineMonitoringWin(obj);
}
});
return
@@ -608,7 +608,7 @@
qualityMonitoringSterilizationID = data['id'];
otherPartAddQM = false;
addQuality = false;
- sterilizationCompleteByquality("灭菌管理");
+ openQualityMonitoringWin("灭菌管理", 1);
isCompleteSterilization(ids);
}
});
@@ -666,7 +666,7 @@
showMonitorResultForm(ids);
}
if (sstsConfig.enableParameterFileConfirmation && recordObj) {
- if(recordObj.length > 1){
+ if (recordObj.length > 1) {
showResult('本次完成的记录需要确认参数文件。');
return
}
@@ -700,20 +700,39 @@
}
//BJDXZLYY-69:质量监测改为Iframe模式
-function openQualityMonitoringWin(responPartName) {
+function openQualityMonitoringWin(responPartName, addType) {
var params = {
title: '质量监测信息',
width: 900,
height: 550,
id: 'qualityMonitoringWin',
grid: grid,
- url: WWWROOT + '/disinfectsystem/qualitymonitoring/qualitymonitoringInstanceForm.jsp?otherPartAddQM=' + otherPartAddQM + '&qualityMonitoringSterilizationID=' + qualityMonitoringSterilizationID + '&sterilizerStatus='+encodeURI(sterilizerStatus)
+ url: WWWROOT + '/disinfectsystem/qualitymonitoring/qualitymonitoringInstanceForm.jsp?otherPartAddQM=' + otherPartAddQM + '&qualityMonitoringSterilizationID=' + qualityMonitoringSterilizationID + '&sterilizerStatus=' + encodeURI(sterilizerStatus)
}
getFormByIframeUtil(params, function (contentWindow) {
- contentWindow.addQualityMonitoringByResponPart(responPartName);
+ if (addType == 0) {
+ contentWindow.addQualityMonitoringByResponPart(responPartName);
+ } else {
+ contentWindow.sterilizationCompleteByquality(responPartName);
+ }
});
}
+//BJDXZLYY-69:定期监测改为Iframe模式
+function openRoutineMonitoringWin(obj) {
+ var params = {
+ title: '定期监测信息',
+ width: 700,
+ height: 550,
+ id: 'routineMonitoringWin',
+ grid: grid,
+ url: WWWROOT + '/disinfectsystem/routineMonitoring/routineMonitoringForm.jsp'
+ }
+ getFormByIframeUtil(params, function (contentWindow) {
+ contentWindow.addRoutineMonitoring("", obj);
+ });
+}
+
/**
* status 传过来的状态:灭菌中断
*/
@@ -746,7 +765,7 @@
function (button, text) {
if ("yes" == button) {
otherPartAddQM = true;
- openQualityMonitoringWin("灭菌管理");
+ openQualityMonitoringWin("灭菌管理", 0);
}
});
}
@@ -845,7 +864,7 @@
function (button, text) {
if ("yes" == button) {
otherPartAddQM = true;
- openQualityMonitoringWin("灭菌管理");
+ openQualityMonitoringWin("灭菌管理", 0);
}
});
}
@@ -880,13 +899,6 @@
}
}
confirmSterilizationRecord(id);
- // top.Ext.MessageBox.confirm("请确认","确定"+status+"吗?",
- // function(button, text) {
- // if ("yes" == button){
- //// addQualityMonitoring("");
- // addQualityMonitoringByResponPart("灭菌管理");
- // }
- // });
}
/*
* 添加质量监测
@@ -908,7 +920,7 @@
}
}
otherPartAddQM = true;
- openQualityMonitoringWin("灭菌管理");
+ openQualityMonitoringWin("灭菌管理", 0);
}
//SZSZYY-33:【灭菌管理】新增生物监测结果打印功能
Index: ssts-web/src/main/webapp/disinfectsystem/routineMonitoring/routineMonitoringForm.js
===================================================================
diff -u -r41033 -r41119
--- ssts-web/src/main/webapp/disinfectsystem/routineMonitoring/routineMonitoringForm.js (.../routineMonitoringForm.js) (revision 41033)
+++ ssts-web/src/main/webapp/disinfectsystem/routineMonitoring/routineMonitoringForm.js (.../routineMonitoringForm.js) (revision 41119)
@@ -32,7 +32,7 @@
});
function removeItem(gridId) {
- var gridObj = top.Ext.getCmp(gridId);
+ var gridObj = Ext.getCmp(gridId);
var rows = gridObj.getSelectionModel().getSelections();
if (rows) {
var store = gridObj.getStore();
@@ -71,11 +71,11 @@
var triggerItemId = itemIdArray[n];
if (triggerItemId != null && triggerItemId != "") {
if ("show" == action) {
- top.Ext.getCmp("hideElement" + triggerItemId).show();
+ Ext.getCmp("hideElement" + triggerItemId).show();
} else {
- var xtype = top.Ext.getCmp("hideElement" + triggerItemId).getXType();
+ var xtype = Ext.getCmp("hideElement" + triggerItemId).getXType();
if (xtype == 'fieldset') {
- var length = top.Ext.getCmp("hideElement" + triggerItemId).items.each(function (fsItem) {
+ var length = Ext.getCmp("hideElement" + triggerItemId).items.each(function (fsItem) {
var itemType = fsItem.getXType();
if (itemType == "panel") {
fsItem.items.each(function (item, index, length) {
@@ -86,12 +86,12 @@
}
});
} else if (xtype == 'panel') {
- var panel = top.Ext.getCmp("hideElement" + triggerItemId);
+ var panel = Ext.getCmp("hideElement" + triggerItemId);
panel.items.each(function (item, index, length) {
item.setValue("");
});
}
- top.Ext.getCmp("hideElement" + triggerItemId).hide();
+ Ext.getCmp("hideElement" + triggerItemId).hide();
}
}
}
@@ -365,10 +365,10 @@
listeners: {
select: function (combo, record, index) {
var valueTriggerItemIds = record.get("valueTriggerItemIds");
- var oldTriggerItemIds = top.Ext.getCmp("triggerItemIds" + id).getValue();
+ var oldTriggerItemIds = Ext.getCmp("triggerItemIds" + id).getValue();
triggerItemAction(oldTriggerItemIds, "hide");
triggerItemAction(valueTriggerItemIds, "show");
- top.Ext.getCmp("triggerItemIds" + id).setValue(valueTriggerItemIds);
+ Ext.getCmp("triggerItemIds" + id).setValue(valueTriggerItemIds);
}
}
}]
@@ -416,7 +416,7 @@
listeners: {
check: function (thiz, checked) {
var elementId = thiz.getName().substring(1);
- var elementObj = top.Ext.getCmp(elementId);
+ var elementObj = Ext.getCmp(elementId);
if (elementObj != undefined && elementObj != null) {
var oldElementValue = elementObj.getValue();
var checkedValue = JSON.parse(thiz.getRawValue());
@@ -467,7 +467,7 @@
qualifiedChecked = false;
unqualifiedChecked = true;
}
- top.Ext.getCmp('addRoutineMonitoringForm').add({
+ Ext.getCmp('addRoutineMonitoringForm').add({
id: 'resultFieldSet',
xtype: "fieldset",
labelAlign: 'left',
@@ -489,15 +489,7 @@
xtype: 'radio',
checked: qualifiedChecked,
columnWidth: .5,
- inputValue: '合格',
- listeners: {
- check: function (thiz, checked) {
- if (checked) {
- qmInstanceStore.removeAll();
- top.Ext.getCmp("addRoutineMonitoringGrid").hide();
- }
- }
- }
+ inputValue: '合格'
}]
}, {
layout: 'form',
@@ -509,83 +501,11 @@
xtype: 'radio',
checked: unqualifiedChecked,
columnWidth: .5,
- inputValue: '不合格',
- listeners: {
- check: function (thiz, checked) {
- if (checked) {
- top.Ext.getCmp("addRoutineMonitoringGrid").show();
- }
- }
- }
+ inputValue: '不合格'
}]
}]
}]
});
-
-
- var cm = new top.Ext.grid.ColumnModel([{
- id: 'id',
- name: 'id',
- hidden: true,
- dataIndex: 'id'
- }, {
- id: 'name',
- header: "监测项名称",
- width: 180,
- menuDisabled: true,
- dataIndex: 'name'
- }, {
- id: 'dateTime',
- header: "录入时间",
- width: 120,
- menuDisabled: true,
- dataIndex: 'dateTime'
- }, {
- id: 'deleteItem',
- header: '删除',
- menuDisabled: true,
- dataIndex: 'button',
- renderer: function (v, p, record, index) {
- var itemid = record.get("id");
- return "
";
- }
- }]);
-
- var tbar = [{
- text: '添加质量监测',
- handler: function () {
- addRoutineMonitoring("");
- }
- }];
-
- top.Ext.getCmp('addRoutineMonitoringForm').add({
- id: 'addRoutineMonitoringGrid',
- xtype: "fieldset",
- labelAlign: 'left',
- title: "添加质量监测",
- hidden: true,
- layout: 'column',
- autoHeight: true,
- items: [{
- columnWidth: 1,
- items: [
- new top.Ext.grid.GridPanel({
- id: 'qmGridPanel',
- store: qmInstanceStore,
- cm: cm,
- width: 620,
- height: 120,
- tbar: tbar,
- viewConfig: {
- forceFit: true
- },
- bodyStyle: 'border:1px solid #afd7af',
- anchor: '100%',
- autoExpandColumn: 'deleteItem'
- })
- ]
- }]
- });
}
/**
@@ -599,8 +519,8 @@
success: function (response, options) {
var result = Ext.decode(response.responseText);
if (result.success) {
- top.Ext.getCmp('scope2').setValue(result.data.scope);
- top.Ext.getCmp('optionAmount2').setValue('');
+ Ext.getCmp('scope2').setValue(result.data.scope);
+ Ext.getCmp('optionAmount2').setValue('');
var items = new Array();
//FSSDERMYY-18:隐藏器械包信息
if (result.data.scope == '无') {
@@ -616,10 +536,10 @@
}
for (var i = 0; i < result.data.items.length; i++) {
var item = result.data.items[i];
- if (top.Ext.getCmp('optionAmount2').getValue() == null || top.Ext.getCmp('optionAmount2').getValue() == '') {
- top.Ext.getCmp('optionAmount2').setValue(item.id);
+ if (Ext.getCmp('optionAmount2').getValue() == null || Ext.getCmp('optionAmount2').getValue() == '') {
+ Ext.getCmp('optionAmount2').setValue(item.id);
} else {
- top.Ext.getCmp('optionAmount2').setValue(top.Ext.getCmp('optionAmount2').getValue() + ';' + item.id);
+ Ext.getCmp('optionAmount2').setValue(Ext.getCmp('optionAmount2').getValue() + ';' + item.id);
}
var allowBlank = result.data.items[i].requirement == '必填' ? false : true;
items.push(createRoutineMonitoringItemElement(item.type, item.id, item.name, allowBlank, item.optionsJson, null, item.isTriggerItem));
@@ -633,9 +553,9 @@
}
}
- top.Ext.getCmp('addRoutineMonitoringForm').remove('itemsFieldSet2');
+ Ext.getCmp('addRoutineMonitoringForm').remove('itemsFieldSet2');
if (items.length > 0) {
- top.Ext.getCmp('addRoutineMonitoringForm').add({
+ Ext.getCmp('addRoutineMonitoringForm').add({
id: 'itemsFieldSet2',
xtype: "fieldset",
labelAlign: 'left',
@@ -646,9 +566,9 @@
});
}
- top.Ext.getCmp('addRoutineMonitoringForm').doLayout();
- if (top.Ext.getCmp('itemsFieldSet2')) {
- top.Ext.getCmp('itemsFieldSet2').doLayout();
+ Ext.getCmp('addRoutineMonitoringForm').doLayout();
+ if (Ext.getCmp('itemsFieldSet2')) {
+ Ext.getCmp('itemsFieldSet2').doLayout();
}
}
},
@@ -659,441 +579,6 @@
}
-/**
- * 定期监测失败后添加的质量监测.
- * qmInstanceId
- */
-function addRoutineMonitoring(qmInstanceId) {
- var materialDefinitionStore = new Ext.data.Store({
- proxy: new Ext.data.HttpProxy({
- url: WWWROOT + '/disinfectSystem/baseData/materialDefinitionAction!getMaterialDefinitionData.do',
- method: 'POST'
- }),
- reader: new Ext.data.JsonReader({
- totalProperty: 'totalCount',
- root: 'data'
- }, [
- { name: 'id', mapping: 'id' },
- { name: 'spelling', mapping: 'spelling' },
- { name: 'name', mapping: 'name' },
- { name: 'count', mapping: 'count' }
- ]),
- listeners: {
- beforeload: function (thiz, options) {
- thiz.baseParams['tousseDefinitionId'] = top.Ext.getCmp('tousseDefinitionId2').getValue();
- }
- }
- });
-
- var tousseDefinitionStore = new Ext.data.Store({
- proxy: new Ext.data.HttpProxy({
- url: WWWROOT + '/disinfectSystem/baseData/tousseDefinitionAction!getTousseAndDiposableGoodsData.do?type=' + encodeURI('器械包和外来器械包'),
- method: 'POST'
- }),
- reader: new Ext.data.JsonReader({
- totalProperty: 'totalCount',
- root: 'data'
- }, [
- { name: 'id', mapping: 'id' },
- { name: 'spelling', mapping: 'spelling' },
- { name: 'name', mapping: 'name' },
- { name: 'displayName', mapping: 'displayName' },
- { name: 'amount', mapping: 'amount' }]
- )
- });
-
- var formDefinitionStore = new Ext.data.Store({
- proxy: new Ext.data.HttpProxy({
- url: WWWROOT + '/disinfectSystem/qualityMonitoringDefinitionAction!loadLastDeployFormDefinitionGroupByFormName.do',
- method: 'POST'
- }),
- baseParams: { formType: formType_qualityMonitoring },
- reader: new Ext.data.JsonReader({
- root: 'data'
- }, [
- { name: 'id' },
- { name: 'name' }
- ]
- ),
- listeners: {
- load: function (store, records) {
- if (records.length > 0) {
- top.Ext.getCmp('formName2').setValue(records[0].data.name);
- addRoutineMonitoringItem(records[0].data.id, records[0].data.name);
- top.Ext.getCmp("formDefinitionId2").setValue(records[0].data.id);
- top.Ext.getCmp("name2").setValue(records[0].data.name);
- } else {
- // 没有找到监测项
- top.Ext.getCmp('formName2').setValue('');
- }
- }
- }
- });
-
- var formPanel = new top.Ext.FormPanel({
- id: 'addRoutineMonitoringForm',
- frame: true,
- labelSeparator: ':',
- bodyStyle: 'padding:5px 5px 0px 5px',
- width: 600,
- height: 500,
- labelAlign: 'right',
- buttonAlign: 'center',
- autoScroll: true,
- items: [{
- layout: 'column',
- xtype: "fieldset", //定义类别为fieldset
- title: "基本信息",
- autoHeight: true,
- items: [{
- xtype: 'hidden',
- name: 'id',
- id: 'id2'
- }, {
- xtype: 'hidden',
- name: 'tousseInstanceId',
- id: 'tousseInstanceId2'
- }, {
- xtype: 'hidden',
- name: 'tousseDefinitionId',
- id: 'tousseDefinitionId2'
- }, {
- xtype: 'hidden',
- name: 'formDefinitionId',
- id: 'formDefinitionId2'
- }, {
- xtype: 'hidden',
- name: 'barcode',
- id: 'barcode2'
- }, {
- xtype: 'hidden',
- name: 'scope',
- id: 'scope2'
- }, {
- xtype: 'hidden',
- name: 'type',
- id: 'type2',
- value: '质量监测'
- }, {
- xtype: 'hidden',
- name: 'name',
- id: 'name2',
- value: '质量监测'
- }, {
- xtype: 'hidden',
- name: 'optionAmount',
- id: 'optionAmount2'
- }, {
- layout: 'form',
- columnWidth: .5,
- labelWidth: 90,
- items: [{
- xtype: 'combo',
- id: 'formName2',
- name: 'formName',
- queryParam: 'spell',
- fieldLabel: '监测项',
- minChars: 0,
- valueField: 'id',
- displayField: 'name',
- anchor: '95%',
- store: formDefinitionStore,
- lazyInit: true,
- forceSelection: true,
- triggerAction: 'all',
- hideTrigger: false,
- typeAhead: false,
- allowBlank: false,
- listeners: {
- beforequery: function (queryEvent) {
- if (qmInstanceId != "" && qmInstanceId != 0) {
- return false;
- }
- },
- beforeselect: function (combo, record, index) {
- if (record.data.name != combo.getValue()) {
- if (top.Ext.getCmp('barcode2').getValue()) {
- getTousseInstanceNameAndResponsiblePerson2(top.Ext.getCmp('tempBarcode2').getValue(), combo.getValue(), null, true, false);
- }
- }
- },
- select: function (combo, record, index) {
- top.Ext.getCmp("formDefinitionId2").setValue(combo.getValue());
- top.Ext.getCmp("name2").setValue(combo.getRawValue());
- addRoutineMonitoringItem(combo.getValue(), combo.getRawValue());
- }
- }
- }]
- }, {
- layout: 'form',
- columnWidth: .5,
- labelWidth: 90,
- items: [{
- xtype: 'datefieldWithMin',
- fieldLabel: '抽检时间',
- id: 'dateTime2',
- name: 'dateTime',
- // value : new Date(),
- editable: false,
- format: 'Y-m-d H:i',
- allowBlank: false,
- anchor: '95%'
- }]
- }, {
- layout: 'form',
- columnWidth: .5,
- labelWidth: 90,
- items: [{
- xtype: 'textfield',
- name: 'tempBarcode',
- id: 'tempBarcode2',
- fieldLabel: "器械包条码",
- listeners: {
- specialkey: function (field, e) {
- if (e.getKey() == 13) {
- getTousseInstanceNameAndResponsiblePerson2(field.getValue(), top.Ext.getCmp('formDefinitionId2').getValue(), materialDefinitionStore, true, true);
- field.setValue('');
- }
- }
- },
- anchor: '95%'
- }]
- }, {
- layout: 'form',
- columnWidth: .5,
- labelWidth: 90,
- items: [{
- xtype: 'combo',
- id: 'tousseName2',
- name: 'tousseName',
- fieldLabel: '器械包名称',
- queryParam: 'spell',
- minChars: 0,
- valueField: 'name',
- displayField: 'name',
- store: tousseDefinitionStore,
- forceSelection: true,
- lazyInit: true,
- triggerAction: 'all',
- hideTrigger: true,
- typeAhead: false,
- anchor: '95%',
- listeners: {
- select: function (combo, record, index) {
- combo.setValue(record.data.name);
- top.Ext.getCmp('tousseDefinitionId2').setValue(record.data.id);
- //加载责任人
-
- },
- blur: function (field) {
- if (!top.Ext.getCmp('tousseName2').getRawValue()) {
- top.Ext.getCmp('tousseDefinitionId2').setValue('');
- }
- //重新加载包内的材料
- materialDefinitionStore.reload();
- }
- }
- }]
- }, {
- layout: 'form',
- columnWidth: .5,
- labelWidth: 90,
- items: [{
- xtype: 'combo',
- id: 'material2',
- name: 'material',
- fieldLabel: '抽检器械',
- queryParam: 'spell',
- minChars: 0,
- valueField: 'id',
- displayField: 'name',
- store: materialDefinitionStore,
- forceSelection: true,
- lazyInit: true,
- triggerAction: 'all',
- hideTrigger: true,
- typeAhead: false,
- anchor: '95%',
- listeners: {
- select: function (combo, record, index) {
- combo.setValue(record.data.name);
- }
- }
- }]
- }, {
- layout: 'form',
- columnWidth: .5,
- labelWidth: 90,
- items: [{
- xtype: 'numberfield',
- allowDecimals: false,
- name: 'amount',
- id: 'amount2',
- fieldLabel: "数量",
- anchor: '95%'
- }]
- }, {
- layout: 'form',
- columnWidth: .5,
- labelWidth: 90,
- items: [{
- xtype: 'textfield',
- name: 'registerPerson',
- id: 'registerPerson2',
- fieldLabel: "登记人",
- anchor: '95%',
- readOnly: true,
- value: $Id('userName').value
- }]
- }, {
- layout: 'form',
- columnWidth: .5,
- labelWidth: 90,
- items: [{
- xtype: 'textfield',
- name: 'responsiblePerson',
- id: 'responsiblePerson2',
- fieldLabel: "责任人",
- anchor: '95%'
- }]
- }, {
- layout: 'form',
- columnWidth: 1,
- labelWidth: 90,
- items: [{
- xtype: 'textarea',
- name: 'remark',
- id: 'remark2',
- width: 150,
- height: 50,
- fieldLabel: "备注",
- anchor: '97%'
- }]
- }]
- }],
- buttons: [{
- id: 'saveBtn2',
- text: '保存',
- handler: function () {
- saveRoutineMonitoring(this, materialDefinitionStore);
- }
- }, {
- text: '取消',
- id: 'saveAndNewBtn2',
- handler: cancelRoutineMonitoring
- }]
- });
-
- routineMonitoringWin = new top.Ext.Window({
- id: 'routineMonitoringWin',
- layout: 'fit',
- title: '质量监测信息',
- width: 700,
- modal: true,
- autoHeight: true,
- border: false,
- plain: true,
- items: [formPanel]
- });
- routineMonitoringWin.show();
- if (qmInstanceId != null && qmInstanceId != '') {
- var items = new Array();
- Ext.Ajax.request({
- url: WWWROOT + '/disinfectSystem/qualityMonitoringInstanceAction!loadQualityMonitoringInstance.do',
- params: { id: qmInstanceId },
- async: false,
- success: function (response, options) {
- var result = Ext.decode(response.responseText);
- if (result.success) {
- top.Ext.getCmp('id2').setValue(qmInstanceId);
- top.Ext.getCmp('formName2').setValue(result.data.name);
- top.Ext.getCmp('name2').setValue(result.data.name);
- top.Ext.getCmp('type2').setValue(result.data.type);
- if (result.data.name == "无") {
- top.Ext.getCmp("formDefinitionId2").setValue(0);
- } else {
- top.Ext.getCmp("formDefinitionId2").setValue(result.data.formDefinition.id);
- }
- top.Ext.getCmp('dateTime2').setValue(Ext.util.Format.date(new Date(result.data.dateTime.time), "Y-m-d H:i"));
- // top.Ext.getCmp('material2').setValue(result.data.material);
- // top.Ext.getCmp('amount2').setValue(result.data.amount);
- // var barcode = result.data.barcode;
- // if(barcode != null && barcode != ''){
- // top.Ext.getCmp('tousseName2').setValue(result.data.tousseName + "(" + barcode + ")");
- // }else{
- // top.Ext.getCmp('tousseName2').setValue(result.data.tousseName);
- // }
- loadTousseAndMaterialMsg(result.data.qualityMonitoringGoodsList);
- // top.Ext.getCmp('barcode2').setValue(result.data.barcode);
- top.Ext.getCmp('scope2').setValue(result.data.scope);
- top.Ext.getCmp('responsiblePerson2').setValue(result.data.responsiblePerson);
- top.Ext.getCmp('registerPerson2').setValue(result.data.createUserName);
- // top.Ext.getCmp('tousseInstanceId2').setValue(result.data.tousseDefinitionId);
- top.Ext.getCmp('remark2').setValue(result.data.remark);
- top.Ext.getCmp('optionAmount2').setValue('');
- //FSSDERMYY-18:隐藏器械包信息
- if (result.data.scope == '无') {
- hideRoutineMonitoringTousseMsg();
- } else {
- showRoutineMonitoringTousseMsg();
- }
-
- // 如果显示炉次炉号,添加表单
- if (result.showSterNameAndFre == '是') {
- items.push(createRoutineMonitoringElementSterNameQW(result.data.sterilizerName));
- items.push(createRoutineMonitoringElementSterFreQW(result.data.sterilizerFrequency));
- }
- for (var i = 0; i < result.data.items.length; i++) {
- var item = result.data.items[i].definitionItem;
- if (top.Ext.getCmp('optionAmount2').getValue() == null || top.Ext.getCmp('optionAmount2').getValue() == '') {
- top.Ext.getCmp('optionAmount2').setValue(item.id);
- } else {
- top.Ext.getCmp('optionAmount2').setValue(top.Ext.getCmp('optionAmount2').getValue() + ';' + item.id);
- }
- var allowBlank = item.requirement == '必填' ? false : true;
- items.push(createRoutineMonitoringItemElement(item.type, item.id, item.name, allowBlank, item.optionsJson, result.data.items[i].showAnswer, item.isTriggerItem));
- if (item.type == '多选') {
- items.push({
- columnWidth: 1,
- xtype: "label",
- html: ' ',
- anchor: '95%'
- });
- }
- }
-
- top.Ext.getCmp('addRoutineMonitoringForm').remove('itemsFieldSet2');
- if (items.length > 0) {
- top.Ext.getCmp('addRoutineMonitoringForm').add({
- id: 'itemsFieldSet2',
- xtype: "fieldset",
- labelWidth: 400,
- labelAlign: 'left',
- title: "监测项",
- layout: 'column',
- autoHeight: true,
- items: items
- });
- }
- top.Ext.getCmp('addRoutineMonitoringForm').doLayout();
- if (top.Ext.getCmp('itemsFieldSet2')) {
- top.Ext.getCmp('itemsFieldSet2').doLayout();
- }
- if(SSTS_RoutineMonitoring_CustomEdit && qualityMonitoringUpdateMode == '仅登记人可以修改' && result.data.createUserName !== userName){
- top.Ext.getCmp('saveBtn2').hide();
- }
- }
- },
- failure: function (response, options) {
- showResult('系统加载出错,请稍候再试');
- }
- });
- } else {
- setStartDate(top.Ext, 'yyyy/MM/dd HH:mm', 'dateTime2'); //(设置抽检时间,取服务器时间 cjr)
- top.Ext.getCmp('amount2').setValue(1);
- formDefinitionStore.load();
- }
-}
// 打开定期监测,加载包和材料的信息
function loadRoutineMonitoringTousseAndMaterialMsg(routineMonitoringGoodsList) {
if (routineMonitoringGoodsList == null || routineMonitoringGoodsList == '' || routineMonitoringGoodsList.length == 0) {
@@ -1107,8 +592,8 @@
//是材料信息
var material = routineMonitoringGoodsList[0].material;
var amount = routineMonitoringGoodsList[0].amount;
- top.Ext.getCmp('material').setValue(material);
- top.Ext.getCmp('amount').setValue(amount);
+ Ext.getCmp('material').setValue(material);
+ Ext.getCmp('amount').setValue(amount);
} else {
// 是包信息
var barcode = routineMonitoringGoodsList[0].barcode;
@@ -1118,43 +603,43 @@
var isRecycle = routineMonitoringGoodsList[0].isRecycle;
var isRepacking = routineMonitoringGoodsList[0].isRepacking;
var isDiscard = routineMonitoringGoodsList[0].isDiscard;
- top.Ext.getCmp('barcode').setValue(barcode);
- top.Ext.getCmp('tousseInstanceId').setValue(tousseInstanceId);
- top.Ext.getCmp('tousseName').setValue(tousseName);
- top.Ext.getCmp('tempBarcode').setValue(barcode);
- top.Ext.getCmp('amount').setValue(amount);
+ Ext.getCmp('barcode').setValue(barcode);
+ Ext.getCmp('tousseInstanceId').setValue(tousseInstanceId);
+ Ext.getCmp('tousseName').setValue(tousseName);
+ Ext.getCmp('tempBarcode').setValue(barcode);
+ Ext.getCmp('amount').setValue(amount);
if ('是' == isRecycle) {
- top.Ext.getCmp('isRecycle').setValue(isRecycle);
- top.Ext.getCmp('isRepacking').setValue('否');
- top.Ext.getCmp('isDiscard').setValue('否');
+ Ext.getCmp('isRecycle').setValue(isRecycle);
+ Ext.getCmp('isRepacking').setValue('否');
+ Ext.getCmp('isDiscard').setValue('否');
- top.Ext.getCmp('recycle').setValue(true);
- top.Ext.getCmp('repacking').setValue(false);
- top.Ext.getCmp('disabledBarcode').setValue(false);
+ Ext.getCmp('recycle').setValue(true);
+ Ext.getCmp('repacking').setValue(false);
+ Ext.getCmp('disabledBarcode').setValue(false);
} else if ('是' == isRepacking) {
- top.Ext.getCmp('isRecycle').setValue('否');
- top.Ext.getCmp('isDiscard').setValue('否');
- top.Ext.getCmp('isRepacking').setValue(isRepacking);
+ Ext.getCmp('isRecycle').setValue('否');
+ Ext.getCmp('isDiscard').setValue('否');
+ Ext.getCmp('isRepacking').setValue(isRepacking);
- top.Ext.getCmp('recycle').setValue(false);
- top.Ext.getCmp('repacking').setValue(true);
- top.Ext.getCmp('disabledBarcode').setValue(false);
+ Ext.getCmp('recycle').setValue(false);
+ Ext.getCmp('repacking').setValue(true);
+ Ext.getCmp('disabledBarcode').setValue(false);
} else if ('是' == isDiscard) {
- top.Ext.getCmp('isRecycle').setValue('否');
- top.Ext.getCmp('isRepacking').setValue('否');
- top.Ext.getCmp('isDiscard').setValue(isDiscard);
+ Ext.getCmp('isRecycle').setValue('否');
+ Ext.getCmp('isRepacking').setValue('否');
+ Ext.getCmp('isDiscard').setValue(isDiscard);
- top.Ext.getCmp('recycle').setValue(false);
- top.Ext.getCmp('repacking').setValue(false);
- top.Ext.getCmp('disabledBarcode').setValue(true);
+ Ext.getCmp('recycle').setValue(false);
+ Ext.getCmp('repacking').setValue(false);
+ Ext.getCmp('disabledBarcode').setValue(true);
} else {
- top.Ext.getCmp('isRecycle').setValue('否');
- top.Ext.getCmp('isRepacking').setValue('否');
- top.Ext.getCmp('isDiscard').setValue('否');
+ Ext.getCmp('isRecycle').setValue('否');
+ Ext.getCmp('isRepacking').setValue('否');
+ Ext.getCmp('isDiscard').setValue('否');
- top.Ext.getCmp('recycle').setValue(false);
- top.Ext.getCmp('repacking').setValue(false);
- top.Ext.getCmp('disabledBarcode').setValue(false);
+ Ext.getCmp('recycle').setValue(false);
+ Ext.getCmp('repacking').setValue(false);
+ Ext.getCmp('disabledBarcode').setValue(false);
}
}
} else if (length == 2) {
@@ -1167,44 +652,44 @@
var isDiscard = routineMonitoringGoodsList[0].isDiscard;
var amount = routineMonitoringGoodsList[1].amount;
var material = routineMonitoringGoodsList[1].material;
- top.Ext.getCmp('material').setValue(material);
- top.Ext.getCmp('barcode').setValue(barcode);
- top.Ext.getCmp('tousseInstanceId').setValue(tousseInstanceId);
- top.Ext.getCmp('tousseName').setValue(tousseName);
- top.Ext.getCmp('tempBarcode').setValue(barcode);
- top.Ext.getCmp('amount').setValue(amount);
+ Ext.getCmp('material').setValue(material);
+ Ext.getCmp('barcode').setValue(barcode);
+ Ext.getCmp('tousseInstanceId').setValue(tousseInstanceId);
+ Ext.getCmp('tousseName').setValue(tousseName);
+ Ext.getCmp('tempBarcode').setValue(barcode);
+ Ext.getCmp('amount').setValue(amount);
if ('是' == isRecycle) {
- top.Ext.getCmp('isRecycle').setValue(isRecycle);
- top.Ext.getCmp('isRepacking').setValue('否');
- top.Ext.getCmp('isDiscard').setValue('否');
+ Ext.getCmp('isRecycle').setValue(isRecycle);
+ Ext.getCmp('isRepacking').setValue('否');
+ Ext.getCmp('isDiscard').setValue('否');
- top.Ext.getCmp('recycle').setValue(true);
- top.Ext.getCmp('repacking').setValue(false);
- top.Ext.getCmp('disabledBarcode').setValue(false);
+ Ext.getCmp('recycle').setValue(true);
+ Ext.getCmp('repacking').setValue(false);
+ Ext.getCmp('disabledBarcode').setValue(false);
} else if ('是' == isRepacking) {
- top.Ext.getCmp('isRecycle').setValue('否');
- top.Ext.getCmp('isRepacking').setValue(isRepacking);
- top.Ext.getCmp('isDiscard').setValue('否');
+ Ext.getCmp('isRecycle').setValue('否');
+ Ext.getCmp('isRepacking').setValue(isRepacking);
+ Ext.getCmp('isDiscard').setValue('否');
- top.Ext.getCmp('recycle').setValue(false);
- top.Ext.getCmp('repacking').setValue(true);
- top.Ext.getCmp('disabledBarcode').setValue(false);
+ Ext.getCmp('recycle').setValue(false);
+ Ext.getCmp('repacking').setValue(true);
+ Ext.getCmp('disabledBarcode').setValue(false);
} else if ('是' == isDiscard) {
- top.Ext.getCmp('isRecycle').setValue('否');
- top.Ext.getCmp('isRepacking').setValue('否');
- top.Ext.getCmp('isDiscard').setValue(isDiscard);
+ Ext.getCmp('isRecycle').setValue('否');
+ Ext.getCmp('isRepacking').setValue('否');
+ Ext.getCmp('isDiscard').setValue(isDiscard);
- top.Ext.getCmp('recycle').setValue(false);
- top.Ext.getCmp('repacking').setValue(false);
- top.Ext.getCmp('disabledBarcode').setValue(true);
+ Ext.getCmp('recycle').setValue(false);
+ Ext.getCmp('repacking').setValue(false);
+ Ext.getCmp('disabledBarcode').setValue(true);
} else {
- top.Ext.getCmp('isRecycle').setValue('否');
- top.Ext.getCmp('isRepacking').setValue('否');
- top.Ext.getCmp('isDiscard').setValue('否');
+ Ext.getCmp('isRecycle').setValue('否');
+ Ext.getCmp('isRepacking').setValue('否');
+ Ext.getCmp('isDiscard').setValue('否');
- top.Ext.getCmp('recycle').setValue(false);
- top.Ext.getCmp('repacking').setValue(false);
- top.Ext.getCmp('disabledBarcode').setValue(false);
+ Ext.getCmp('recycle').setValue(false);
+ Ext.getCmp('repacking').setValue(false);
+ Ext.getCmp('disabledBarcode').setValue(false);
}
}
}
@@ -1222,21 +707,21 @@
//是材料信息
var material = routineMonitoringGoodsList[0].material;
var amount = routineMonitoringGoodsList[0].amount;
- top.Ext.getCmp('material2').setValue(material);
- top.Ext.getCmp('amount2').setValue(amount);
+ Ext.getCmp('material2').setValue(material);
+ Ext.getCmp('amount2').setValue(amount);
} else {
// 是包信息
var barcode = routineMonitoringGoodsList[0].barcode;
var tousseInstanceId = routineMonitoringGoodsList[0].tousseInstanceId;
var tousseName = routineMonitoringGoodsList[0].tousseName;
var amount = routineMonitoringGoodsList[0].amount;
- top.Ext.getCmp('barcode2').setValue(barcode);
- top.Ext.getCmp('tousseInstanceId2').setValue(tousseInstanceId);
+ Ext.getCmp('barcode2').setValue(barcode);
+ Ext.getCmp('tousseInstanceId2').setValue(tousseInstanceId);
if (!isUndefinedOrNullOrEmpty(barcode)) {
tousseName += "(" + barcode + ")";
}
- top.Ext.getCmp('tousseName2').setValue(tousseName);
- top.Ext.getCmp('amount2').setValue(amount);
+ Ext.getCmp('tousseName2').setValue(tousseName);
+ Ext.getCmp('amount2').setValue(amount);
}
} else if (length == 2) {
// 第一个是包,第二个是材料
@@ -1245,14 +730,14 @@
var tousseName = routineMonitoringGoodsList[0].tousseName;
var amount = routineMonitoringGoodsList[1].amount;
var material = routineMonitoringGoodsList[1].material;
- top.Ext.getCmp('material2').setValue(material);
- top.Ext.getCmp('barcode2').setValue(barcode);
- top.Ext.getCmp('tousseInstanceId2').setValue(tousseInstanceId);
+ Ext.getCmp('material2').setValue(material);
+ Ext.getCmp('barcode2').setValue(barcode);
+ Ext.getCmp('tousseInstanceId2').setValue(tousseInstanceId);
if (!isUndefinedOrNullOrEmpty(barcode)) {
tousseName += "(" + barcode + ")";
}
- top.Ext.getCmp('tousseName2').setValue(tousseName);
- top.Ext.getCmp('amount2').setValue(amount);
+ Ext.getCmp('tousseName2').setValue(tousseName);
+ Ext.getCmp('amount2').setValue(amount);
}
}
@@ -1261,27 +746,27 @@
* 隐藏定期监测的质量监测记录的器械包信息
*/
function hideRoutineMonitoringTousseMsg() {
- top.Ext.getCmp('tempBarcode2').setVisible(false);
- top.Ext.getCmp('tempBarcode2').getEl().up('.x-form-item').setDisplayed(false);
- top.Ext.getCmp('tousseName2').setVisible(false);
- top.Ext.getCmp('tousseName2').getEl().up('.x-form-item').setDisplayed(false);
- top.Ext.getCmp('material2').setVisible(false);
- top.Ext.getCmp('material2').getEl().up('.x-form-item').setDisplayed(false);
- top.Ext.getCmp('amount2').setVisible(false);
- top.Ext.getCmp('amount2').getEl().up('.x-form-item').setDisplayed(false);
+ Ext.getCmp('tempBarcode2').setVisible(false);
+ Ext.getCmp('tempBarcode2').getEl().up('.x-form-item').setDisplayed(false);
+ Ext.getCmp('tousseName2').setVisible(false);
+ Ext.getCmp('tousseName2').getEl().up('.x-form-item').setDisplayed(false);
+ Ext.getCmp('material2').setVisible(false);
+ Ext.getCmp('material2').getEl().up('.x-form-item').setDisplayed(false);
+ Ext.getCmp('amount2').setVisible(false);
+ Ext.getCmp('amount2').getEl().up('.x-form-item').setDisplayed(false);
}
/**
* 显示定期监测的质量监测记录的器械包信息
*/
function showRoutineMonitoringTousseMsg() {
- top.Ext.getCmp('tempBarcode2').setVisible(true);
- top.Ext.getCmp('tempBarcode2').getEl().up('.x-form-item').setDisplayed(true);
- top.Ext.getCmp('tousseName2').setVisible(true);
- top.Ext.getCmp('tousseName2').getEl().up('.x-form-item').setDisplayed(true);
- top.Ext.getCmp('material2').setVisible(true);
- top.Ext.getCmp('material2').getEl().up('.x-form-item').setDisplayed(true);
- top.Ext.getCmp('amount2').setVisible(true);
- top.Ext.getCmp('amount2').getEl().up('.x-form-item').setDisplayed(true);
+ Ext.getCmp('tempBarcode2').setVisible(true);
+ Ext.getCmp('tempBarcode2').getEl().up('.x-form-item').setDisplayed(true);
+ Ext.getCmp('tousseName2').setVisible(true);
+ Ext.getCmp('tousseName2').getEl().up('.x-form-item').setDisplayed(true);
+ Ext.getCmp('material2').setVisible(true);
+ Ext.getCmp('material2').getEl().up('.x-form-item').setDisplayed(true);
+ Ext.getCmp('amount2').setVisible(true);
+ Ext.getCmp('amount2').getEl().up('.x-form-item').setDisplayed(true);
}
/**
@@ -1294,7 +779,7 @@
success: function (response, options) {
var result = Ext.decode(response.responseText);
if (result.success) {
- top.Ext.getCmp('optionAmount').setValue('');
+ Ext.getCmp('optionAmount').setValue('');
var items = new Array();
// 如果显示炉次炉号,添加表单
if (result.data.showSterilizerNumFrequency == '是') {
@@ -1303,56 +788,56 @@
}
//需要增加判空处理防止js报错
if (result.data) {
- top.Ext.getCmp('scope').setValue(result.data.scope);
+ Ext.getCmp('scope').setValue(result.data.scope);
if ('器械包' == result.data.scope) {
- top.Ext.getCmp("tousseName").setVisible(true);
- top.Ext.getCmp("tousseName").getEl().up('.x-form-item').setDisplayed(true);
- top.Ext.getCmp('tempBarcode').setVisible(true);
- top.Ext.getCmp('tempBarcode').getEl().up('.x-form-item').setDisplayed(true);
- top.Ext.getCmp("material").setVisible(false);
- top.Ext.getCmp("material").getEl().up('.x-form-item').setDisplayed(false);
- top.Ext.getCmp('amount').setVisible(true);
- top.Ext.getCmp('amount').getEl().up('.x-form-item').setDisplayed(true);
- top.Ext.getCmp('recycle').setVisible(true);
- top.Ext.getCmp('recycle').getEl().up('.x-form-item').setDisplayed(true);
- top.Ext.getCmp('disabledBarcode').setVisible(true);
- top.Ext.getCmp('disabledBarcode').getEl().up('.x-form-item').setDisplayed(true);
- top.Ext.getCmp('repacking').setVisible(true);
- top.Ext.getCmp('repacking').getEl().up('.x-form-item').setDisplayed(true);
- top.Ext.getCmp('sterilizationRecordInfo').setVisible(false);
+ Ext.getCmp("tousseName").setVisible(true);
+ Ext.getCmp("tousseName").getEl().up('.x-form-item').setDisplayed(true);
+ Ext.getCmp('tempBarcode').setVisible(true);
+ Ext.getCmp('tempBarcode').getEl().up('.x-form-item').setDisplayed(true);
+ Ext.getCmp("material").setVisible(false);
+ Ext.getCmp("material").getEl().up('.x-form-item').setDisplayed(false);
+ Ext.getCmp('amount').setVisible(true);
+ Ext.getCmp('amount').getEl().up('.x-form-item').setDisplayed(true);
+ Ext.getCmp('recycle').setVisible(true);
+ Ext.getCmp('recycle').getEl().up('.x-form-item').setDisplayed(true);
+ Ext.getCmp('disabledBarcode').setVisible(true);
+ Ext.getCmp('disabledBarcode').getEl().up('.x-form-item').setDisplayed(true);
+ Ext.getCmp('repacking').setVisible(true);
+ Ext.getCmp('repacking').getEl().up('.x-form-item').setDisplayed(true);
+ Ext.getCmp('sterilizationRecordInfo').setVisible(false);
} else if ('材料' == result.data.scope) {
- top.Ext.getCmp("tousseName").setVisible(false);
- top.Ext.getCmp("tousseName").getEl().up('.x-form-item').setDisplayed(false);
- top.Ext.getCmp('tempBarcode').setVisible(false);
- top.Ext.getCmp('tempBarcode').getEl().up('.x-form-item').setDisplayed(false);
- top.Ext.getCmp("material").setVisible(true);
- top.Ext.getCmp("material").getEl().up('.x-form-item').setDisplayed(true);
- top.Ext.getCmp('amount').setVisible(true);
- top.Ext.getCmp('amount').getEl().up('.x-form-item').setDisplayed(true);
- top.Ext.getCmp('recycle').setVisible(false);
- top.Ext.getCmp('recycle').getEl().up('.x-form-item').setDisplayed(false);
- top.Ext.getCmp('disabledBarcode').setVisible(false);
- top.Ext.getCmp('disabledBarcode').getEl().up('.x-form-item').setDisplayed(false);
- top.Ext.getCmp('repacking').setVisible(false);
- top.Ext.getCmp('repacking').getEl().up('.x-form-item').setDisplayed(false);
- top.Ext.getCmp('sterilizationRecordInfo').setVisible(false);
+ Ext.getCmp("tousseName").setVisible(false);
+ Ext.getCmp("tousseName").getEl().up('.x-form-item').setDisplayed(false);
+ Ext.getCmp('tempBarcode').setVisible(false);
+ Ext.getCmp('tempBarcode').getEl().up('.x-form-item').setDisplayed(false);
+ Ext.getCmp("material").setVisible(true);
+ Ext.getCmp("material").getEl().up('.x-form-item').setDisplayed(true);
+ Ext.getCmp('amount').setVisible(true);
+ Ext.getCmp('amount').getEl().up('.x-form-item').setDisplayed(true);
+ Ext.getCmp('recycle').setVisible(false);
+ Ext.getCmp('recycle').getEl().up('.x-form-item').setDisplayed(false);
+ Ext.getCmp('disabledBarcode').setVisible(false);
+ Ext.getCmp('disabledBarcode').getEl().up('.x-form-item').setDisplayed(false);
+ Ext.getCmp('repacking').setVisible(false);
+ Ext.getCmp('repacking').getEl().up('.x-form-item').setDisplayed(false);
+ Ext.getCmp('sterilizationRecordInfo').setVisible(false);
} else if (result.data.scope == "材料和器械包") {
showTousseAndMaterialMsg();
- top.Ext.getCmp('sterilizationRecordInfo').setVisible(false);
+ Ext.getCmp('sterilizationRecordInfo').setVisible(false);
} else if (result.data.scope == "无") {
//FSSDERMYY-18:隐藏器械包信息
hideTousseAndMaterialMsg();
- top.Ext.getCmp('sterilizationRecordInfo').setVisible(false);
+ Ext.getCmp('sterilizationRecordInfo').setVisible(false);
} else if (result.data.scope == "灭菌炉记录") {
hideTousseAndMaterialMsg();
- top.Ext.getCmp('sterilizationRecordInfo').setVisible(true);
+ Ext.getCmp('sterilizationRecordInfo').setVisible(true);
}
for (var i = 0; i < result.data.items.length; i++) {
var item = result.data.items[i];
- if (top.Ext.getCmp('optionAmount').getValue() == null || top.Ext.getCmp('optionAmount').getValue() == '') {
- top.Ext.getCmp('optionAmount').setValue(item.id);
+ if (Ext.getCmp('optionAmount').getValue() == null || Ext.getCmp('optionAmount').getValue() == '') {
+ Ext.getCmp('optionAmount').setValue(item.id);
} else {
- top.Ext.getCmp('optionAmount').setValue(top.Ext.getCmp('optionAmount').getValue() + ';' + item.id);
+ Ext.getCmp('optionAmount').setValue(Ext.getCmp('optionAmount').getValue() + ';' + item.id);
}
var allowBlank = result.data.items[i].requirement == '必填' ? false : true;
items.push(createRoutineMonitoringItemElement(item.type, item.id, item.name, allowBlank, item.optionsJson, null, item.isTriggerItem));
@@ -1367,10 +852,10 @@
}
}
- top.Ext.getCmp('addRoutineMonitoringForm').remove('itemsFieldSet');
- top.Ext.getCmp('addRoutineMonitoringForm').remove('resultFieldSet');
+ Ext.getCmp('addRoutineMonitoringForm').remove('itemsFieldSet');
+ Ext.getCmp('addRoutineMonitoringForm').remove('resultFieldSet');
if (items.length > 0) {
- top.Ext.getCmp('addRoutineMonitoringForm').add({
+ Ext.getCmp('addRoutineMonitoringForm').add({
id: 'itemsFieldSet',
xtype: "fieldset",
labelAlign: 'left',
@@ -1383,13 +868,13 @@
addRoutingResultFieldSet();
- top.Ext.getCmp('addRoutineMonitoringForm').doLayout();
- if (top.Ext.getCmp('itemsFieldSet')) {
- top.Ext.getCmp('itemsFieldSet').doLayout();
+ Ext.getCmp('addRoutineMonitoringForm').doLayout();
+ if (Ext.getCmp('itemsFieldSet')) {
+ Ext.getCmp('itemsFieldSet').doLayout();
}
- if (top.Ext.getCmp('resultFieldSet')) {
- top.Ext.getCmp('resultFieldSet').doLayout();
+ if (Ext.getCmp('resultFieldSet')) {
+ Ext.getCmp('resultFieldSet').doLayout();
}
resetRecycleAndRepackingValue();
@@ -1426,7 +911,7 @@
]),
listeners: {
beforeload: function (thiz, options) {
- thiz.baseParams['tousseDefinitionId'] = top.Ext.getCmp('tousseDefinitionId').getValue();
+ thiz.baseParams['tousseDefinitionId'] = Ext.getCmp('tousseDefinitionId').getValue();
}
}
});
@@ -1464,35 +949,40 @@
listeners: {
load: function (store, records) {
if (records.length > 0) {
- top.Ext.getCmp('formName').setValue(records[0].data.name);
+ Ext.getCmp('formName').setValue(records[0].data.name);
if (sterilerConfirmObj && sterilerConfirmObj.defaultQualityMonitoringId) {
addRoutineMonitoringItem(sterilerConfirmObj.defaultQualityMonitoringId);
- top.Ext.getCmp("formDefinitionId").setValue(sterilerConfirmObj.defaultQualityMonitoringId);
- top.Ext.getCmp("formName").setRawValue(sterilerConfirmObj.defaultQualityMonitoring);
- top.Ext.getCmp("name").setValue(sterilerConfirmObj.defaultQualityMonitoring);
+ Ext.getCmp("formDefinitionId").setValue(sterilerConfirmObj.defaultQualityMonitoringId);
+ Ext.getCmp("formName").setRawValue(sterilerConfirmObj.defaultQualityMonitoring);
+ Ext.getCmp("name").setValue(sterilerConfirmObj.defaultQualityMonitoring);
} else {
addRoutineMonitoringItem(records[0].data.id);
- top.Ext.getCmp("formDefinitionId").setValue(records[0].data.id);
- top.Ext.getCmp("name").setValue(records[0].data.name);
+ Ext.getCmp("formDefinitionId").setValue(records[0].data.id);
+ Ext.getCmp("name").setValue(records[0].data.name);
}
} else {
// 没有找到监测项
- top.Ext.getCmp('formName').setValue('');
+ Ext.getCmp('formName').setValue('');
}
}
}
});
- var formPanel = new top.Ext.FormPanel({
+ var actualWidth = document.body.clientWidth;
+ var actualHeight = document.body.clientHeight;
+
+ var formPanel = new Ext.FormPanel({
id: 'addRoutineMonitoringForm',
frame: true,
labelSeparator: ':',
bodyStyle: 'padding:5px 5px 0px 5px',
- width: 600,
- height: 500,
+ width: actualWidth,
+ height: actualHeight,
labelAlign: 'right',
buttonAlign: 'center',
autoScroll: true,
+ renderTo: 'gridDiv',
+ bodyStyle: 'overflow-x:hidden; overflow-y:scroll',
items: [{
layout: 'column',
xtype: "fieldset", //定义类别为fieldset
@@ -1587,15 +1077,15 @@
}
},
select: function (combo, record, index) {
- top.Ext.getCmp("formDefinitionId").setValue(combo.getValue());
- top.Ext.getCmp("name").setValue(combo.getRawValue());
+ Ext.getCmp("formDefinitionId").setValue(combo.getValue());
+ Ext.getCmp("name").setValue(combo.getRawValue());
addRoutineMonitoringItem(combo.getValue());
}
}
}]
}, {
layout: 'form',
- columnWidth: .3,
+ columnWidth: .5,
labelWidth: 90,
items: [{
xtype: 'datefieldWithMin',
@@ -1622,11 +1112,11 @@
listeners: {
check: function (thiz, checked) {
if (checked) {
- top.Ext.getCmp('isRecycle').setValue('是');
- top.Ext.getCmp('repacking').setValue(false);
- top.Ext.getCmp('disabledBarcode').setValue(false);
+ Ext.getCmp('isRecycle').setValue('是');
+ Ext.getCmp('repacking').setValue(false);
+ Ext.getCmp('disabledBarcode').setValue(false);
} else {
- top.Ext.getCmp('isRecycle').setValue('否');
+ Ext.getCmp('isRecycle').setValue('否');
}
}
}
@@ -1644,11 +1134,11 @@
listeners: {
check: function (thiz, checked) {
if (checked) {
- top.Ext.getCmp('isRepacking').setValue('是');
- top.Ext.getCmp('recycle').setValue(false);
- top.Ext.getCmp('disabledBarcode').setValue(false);
+ Ext.getCmp('isRepacking').setValue('是');
+ Ext.getCmp('recycle').setValue(false);
+ Ext.getCmp('disabledBarcode').setValue(false);
} else {
- top.Ext.getCmp('isRepacking').setValue('否');
+ Ext.getCmp('isRepacking').setValue('否');
}
}
}
@@ -1666,11 +1156,11 @@
listeners: {
check: function (thiz, checked) {
if (checked) {
- top.Ext.getCmp('isDiscard').setValue('是');
- top.Ext.getCmp('recycle').setValue(false);
- top.Ext.getCmp('repacking').setValue(false);
+ Ext.getCmp('isDiscard').setValue('是');
+ Ext.getCmp('recycle').setValue(false);
+ Ext.getCmp('repacking').setValue(false);
} else {
- top.Ext.getCmp('isDiscard').setValue('否');
+ Ext.getCmp('isDiscard').setValue('否');
}
}
}
@@ -1687,7 +1177,7 @@
listeners: {
specialkey: function (field, e) {
if (e.getKey() == 13) {
- getTousseInstanceNameAndResponsiblePerson2(field.getValue(), top.Ext.getCmp('formDefinitionId').getValue(), materialDefinitionStore, false, true);
+ getTousseInstanceNameAndResponsiblePerson2(field.getValue(), Ext.getCmp('formDefinitionId').getValue(), materialDefinitionStore, false, true);
field.setValue('');
}
}
@@ -1717,13 +1207,13 @@
listeners: {
select: function (combo, record, index) {
combo.setValue(record.data.name);
- top.Ext.getCmp('tousseDefinitionId').setValue(record.data.id);
+ Ext.getCmp('tousseDefinitionId').setValue(record.data.id);
//加载责任人
},
blur: function (field) {
- if (!top.Ext.getCmp('tousseName').getRawValue()) {
- top.Ext.getCmp('tousseDefinitionId').setValue('');
+ if (!Ext.getCmp('tousseName').getRawValue()) {
+ Ext.getCmp('tousseDefinitionId').setValue('');
}
//重新加载包内的材料
materialDefinitionStore.reload();
@@ -1850,9 +1340,9 @@
listeners: {
select: function () {
// this.value 2017-2-2
- top.Ext.getCmp('sterilizerFre').setValue("");
+ Ext.getCmp('sterilizerFre').setValue("");
frequencyStore.baseParams.sterilizerDate = this.value;
- var name = top.Ext.getCmp('sterilizerName').getValue();
+ var name = Ext.getCmp('sterilizerName').getValue();
frequencyStore.baseParams.sterilizerName = name;
frequencyStore.load();
}
@@ -1884,9 +1374,9 @@
listeners: {
select: function (combo, record, index) {
// record.data.name 选择的值
- top.Ext.getCmp('sterilizerFre').setValue("");
+ Ext.getCmp('sterilizerFre').setValue("");
frequencyStore.baseParams.sterilizerName = record.data.name;
- var date = top.Ext.getCmp('srDateTime').getRawValue();
+ var date = Ext.getCmp('srDateTime').getRawValue();
frequencyStore.baseParams.sterilizerDate = date;
frequencyStore.load();
}
@@ -1917,50 +1407,38 @@
}]
});
- routineMonitoringWin = new top.Ext.Window({
- id: 'routineMonitoringWin',
- layout: 'fit',
- title: '定期监测信息',
- width: 700,
- modal: true,
- autoHeight: true,
- border: false,
- plain: true,
- items: [formPanel]
- });
- routineMonitoringWin.show();
if (id != null && id != '') {
- top.Ext.getCmp('formName').addClass("fieldReadOnlyNoRemove");
+ Ext.getCmp('formName').addClass("fieldReadOnlyNoRemove");
Ext.Ajax.request({
url: WWWROOT + '/disinfectSystem/qualityMonitoringInstanceAction!loadQualityMonitoringInstance.do',
params: { id: id },
success: function (response, options) {
var result = Ext.decode(response.responseText);
if (result.success) {
if (result.data.status == '已审核') {
- top.Ext.getCmp('saveBtn11').hide();
+ Ext.getCmp('saveBtn11').hide();
}
- top.Ext.getCmp('id').setValue(result.data.id);
- top.Ext.getCmp('formName').setValue(result.data.name);
- top.Ext.getCmp('formName').setEditable(false);
- top.Ext.getCmp('name').setValue(result.data.name);
- top.Ext.getCmp('type').setValue(result.data.type);
- top.Ext.getCmp('srDateTime').setValue(result.data.sterilizerDate);
- top.Ext.getCmp('sterilizerName').setValue(result.data.sterilizerName);
- top.Ext.getCmp('sterilizerFre').setValue(result.data.sterilizerFrequency);
+ Ext.getCmp('id').setValue(result.data.id);
+ Ext.getCmp('formName').setValue(result.data.name);
+ Ext.getCmp('formName').setEditable(false);
+ Ext.getCmp('name').setValue(result.data.name);
+ Ext.getCmp('type').setValue(result.data.type);
+ Ext.getCmp('srDateTime').setValue(result.data.sterilizerDate);
+ Ext.getCmp('sterilizerName').setValue(result.data.sterilizerName);
+ Ext.getCmp('sterilizerFre').setValue(result.data.sterilizerFrequency);
if (result.data.name == "无") {
- top.Ext.getCmp("formDefinitionId").setValue(0);
+ Ext.getCmp("formDefinitionId").setValue(0);
} else {
- top.Ext.getCmp("formDefinitionId").setValue(result.data.formDefinition.id);
+ Ext.getCmp("formDefinitionId").setValue(result.data.formDefinition.id);
}
- top.Ext.getCmp('dateTime').setValue(Ext.util.Format.date(new Date(result.data.dateTime.time), "Y-m-d H:i"));
+ Ext.getCmp('dateTime').setValue(Ext.util.Format.date(new Date(result.data.dateTime.time), "Y-m-d H:i"));
loadRoutineMonitoringTousseAndMaterialMsg(result.data.qualityMonitoringGoodsList);
- top.Ext.getCmp('scope').setValue(result.data.scope);
- top.Ext.getCmp('createUserName').setValue(result.data.createUserName);
- top.Ext.getCmp('reviewer').setValue(result.data.reviewer);
- top.Ext.getCmp('remark').setValue(result.data.remark);
- top.Ext.getCmp('optionAmount').setValue('');
+ Ext.getCmp('scope').setValue(result.data.scope);
+ Ext.getCmp('createUserName').setValue(result.data.createUserName);
+ Ext.getCmp('reviewer').setValue(result.data.reviewer);
+ Ext.getCmp('remark').setValue(result.data.remark);
+ Ext.getCmp('optionAmount').setValue('');
var items = new Array();
// 如果显示炉次炉号,添加表单
if (result.showSterNameAndFre == '是') {
@@ -1969,10 +1447,10 @@
}
for (var i = 0; i < result.data.items.length; i++) {
var item = result.data.items[i].definitionItem;
- if (top.Ext.getCmp('optionAmount').getValue() == null || top.Ext.getCmp('optionAmount').getValue() == '') {
- top.Ext.getCmp('optionAmount').setValue(item.id);
+ if (Ext.getCmp('optionAmount').getValue() == null || Ext.getCmp('optionAmount').getValue() == '') {
+ Ext.getCmp('optionAmount').setValue(item.id);
} else {
- top.Ext.getCmp('optionAmount').setValue(top.Ext.getCmp('optionAmount').getValue() + ';' + item.id);
+ Ext.getCmp('optionAmount').setValue(Ext.getCmp('optionAmount').getValue() + ';' + item.id);
}
var allowBlank = item.requirement == '必填' ? false : true;
var doNotSetDefaultValue = true;
@@ -1988,51 +1466,51 @@
}
if ('器械包' == result.data.scope) {
- top.Ext.getCmp("tousseName").setVisible(true);
- top.Ext.getCmp("tousseName").getEl().up('.x-form-item').setDisplayed(true);
- top.Ext.getCmp('tempBarcode').setVisible(true);
- top.Ext.getCmp('tempBarcode').getEl().up('.x-form-item').setDisplayed(true);
- top.Ext.getCmp("material").setVisible(false);
- top.Ext.getCmp("material").getEl().up('.x-form-item').setDisplayed(false);
- top.Ext.getCmp('amount').setVisible(true);
- top.Ext.getCmp('amount').getEl().up('.x-form-item').setDisplayed(true);
- top.Ext.getCmp('recycle').setVisible(true);
- top.Ext.getCmp('recycle').getEl().up('.x-form-item').setDisplayed(true);
- top.Ext.getCmp('repacking').setVisible(true);
- top.Ext.getCmp('repacking').getEl().up('.x-form-item').setDisplayed(true);
- top.Ext.getCmp('disabledBarcode').setVisible(true);
- top.Ext.getCmp('disabledBarcode').getEl().up('.x-form-item').setDisplayed(true);
- top.Ext.getCmp('sterilizationRecordInfo').setVisible(false);
+ Ext.getCmp("tousseName").setVisible(true);
+ Ext.getCmp("tousseName").getEl().up('.x-form-item').setDisplayed(true);
+ Ext.getCmp('tempBarcode').setVisible(true);
+ Ext.getCmp('tempBarcode').getEl().up('.x-form-item').setDisplayed(true);
+ Ext.getCmp("material").setVisible(false);
+ Ext.getCmp("material").getEl().up('.x-form-item').setDisplayed(false);
+ Ext.getCmp('amount').setVisible(true);
+ Ext.getCmp('amount').getEl().up('.x-form-item').setDisplayed(true);
+ Ext.getCmp('recycle').setVisible(true);
+ Ext.getCmp('recycle').getEl().up('.x-form-item').setDisplayed(true);
+ Ext.getCmp('repacking').setVisible(true);
+ Ext.getCmp('repacking').getEl().up('.x-form-item').setDisplayed(true);
+ Ext.getCmp('disabledBarcode').setVisible(true);
+ Ext.getCmp('disabledBarcode').getEl().up('.x-form-item').setDisplayed(true);
+ Ext.getCmp('sterilizationRecordInfo').setVisible(false);
} else if ('材料' == result.data.scope) {
- top.Ext.getCmp("tousseName").setVisible(false);
- top.Ext.getCmp("tousseName").getEl().up('.x-form-item').setDisplayed(false);
- top.Ext.getCmp('tempBarcode').setVisible(false);
- top.Ext.getCmp('tempBarcode').getEl().up('.x-form-item').setDisplayed(false);
- top.Ext.getCmp("material").setVisible(true);
- top.Ext.getCmp("material").getEl().up('.x-form-item').setDisplayed(true);
- top.Ext.getCmp('amount').setVisible(true);
- top.Ext.getCmp('amount').getEl().up('.x-form-item').setDisplayed(true);
- top.Ext.getCmp('recycle').setVisible(false);
- top.Ext.getCmp('recycle').getEl().up('.x-form-item').setDisplayed(false);
- top.Ext.getCmp('repacking').setVisible(false);
- top.Ext.getCmp('repacking').getEl().up('.x-form-item').setDisplayed(false);
- top.Ext.getCmp('disabledBarcode').setVisible(false);
- top.Ext.getCmp('disabledBarcode').getEl().up('.x-form-item').setDisplayed(false);
- top.Ext.getCmp('sterilizationRecordInfo').setVisible(false);
+ Ext.getCmp("tousseName").setVisible(false);
+ Ext.getCmp("tousseName").getEl().up('.x-form-item').setDisplayed(false);
+ Ext.getCmp('tempBarcode').setVisible(false);
+ Ext.getCmp('tempBarcode').getEl().up('.x-form-item').setDisplayed(false);
+ Ext.getCmp("material").setVisible(true);
+ Ext.getCmp("material").getEl().up('.x-form-item').setDisplayed(true);
+ Ext.getCmp('amount').setVisible(true);
+ Ext.getCmp('amount').getEl().up('.x-form-item').setDisplayed(true);
+ Ext.getCmp('recycle').setVisible(false);
+ Ext.getCmp('recycle').getEl().up('.x-form-item').setDisplayed(false);
+ Ext.getCmp('repacking').setVisible(false);
+ Ext.getCmp('repacking').getEl().up('.x-form-item').setDisplayed(false);
+ Ext.getCmp('disabledBarcode').setVisible(false);
+ Ext.getCmp('disabledBarcode').getEl().up('.x-form-item').setDisplayed(false);
+ Ext.getCmp('sterilizationRecordInfo').setVisible(false);
} else if (result.data.scope == "材料和器械包") {
showTousseAndMaterialMsg();
- top.Ext.getCmp('sterilizationRecordInfo').setVisible(false);
+ Ext.getCmp('sterilizationRecordInfo').setVisible(false);
} else if (result.data.scope == "无") {
//FSSDERMYY-18:隐藏器械包信息
hideTousseAndMaterialMsg();
- top.Ext.getCmp('sterilizationRecordInfo').setVisible(false);
+ Ext.getCmp('sterilizationRecordInfo').setVisible(false);
} else if (result.data.scope == "灭菌炉记录") {
hideTousseAndMaterialMsg();
- top.Ext.getCmp('sterilizationRecordInfo').setVisible(true);
+ Ext.getCmp('sterilizationRecordInfo').setVisible(true);
}
- top.Ext.getCmp('addRoutineMonitoringForm').remove('itemsFieldSet');
+ Ext.getCmp('addRoutineMonitoringForm').remove('itemsFieldSet');
if (items.length > 0) {
- top.Ext.getCmp('addRoutineMonitoringForm').add({
+ Ext.getCmp('addRoutineMonitoringForm').add({
id: 'itemsFieldSet',
xtype: "fieldset",
labelWidth: 400,
@@ -2045,32 +1523,32 @@
}
addRoutingResultFieldSet(result.data.result);
- top.Ext.getCmp('addRoutineMonitoringForm').doLayout();
- if (top.Ext.getCmp('itemsFieldSet')) {
- top.Ext.getCmp('itemsFieldSet').doLayout();
+ Ext.getCmp('addRoutineMonitoringForm').doLayout();
+ if (Ext.getCmp('itemsFieldSet')) {
+ Ext.getCmp('itemsFieldSet').doLayout();
}
- if (top.Ext.getCmp('resultFieldSet')) {
- top.Ext.getCmp('resultFieldSet').doLayout();
+ if (Ext.getCmp('resultFieldSet')) {
+ Ext.getCmp('resultFieldSet').doLayout();
}
qmInstanceStore.removeAll();
var monitorings = result.data.qualityMonitorings;
if (monitorings != null && monitorings.length > 0) {
- top.Ext.getCmp("addRoutineMonitoringGrid").show();
+ Ext.getCmp("addRoutineMonitoringGrid").show();
for (var j = 0; j < monitorings.length; j++) {
var qmForRoutine = monitorings[j];
var tmpDateTime = Ext.util.Format.date(new Date(qmForRoutine.dateTime.time), "Y-m-d H:i");
addQMInstance(qmForRoutine.id, qmForRoutine.name, tmpDateTime);
}
}
//打开已有质量监测记录,器械包条码,器械包名称,重新回收和重新装配都禁用掉,不能再修改
- top.Ext.getCmp('recycle').disable();
- top.Ext.getCmp('repacking').disable();
- top.Ext.getCmp('disabledBarcode').disable();
- top.Ext.getCmp('tempBarcode').disable();
- top.Ext.getCmp('tousseName').disable();
- if(SSTS_RoutineMonitoring_CustomEdit && qualityMonitoringUpdateMode == '仅登记人可以修改' && result.data.createUserName !== userName){
- top.Ext.getCmp('saveBtn11').hide();
+ Ext.getCmp('recycle').disable();
+ Ext.getCmp('repacking').disable();
+ Ext.getCmp('disabledBarcode').disable();
+ Ext.getCmp('tempBarcode').disable();
+ Ext.getCmp('tousseName').disable();
+ if (SSTS_RoutineMonitoring_CustomEdit && qualityMonitoringUpdateMode == '仅登记人可以修改' && result.data.createUserName !== userName) {
+ Ext.getCmp('saveBtn11').hide();
}
} else {
showResult("找不到该条码所对应的器械包实例");
@@ -2081,57 +1559,57 @@
}
});
} else {
- setStartDate(top.Ext, 'yyyy/MM/dd HH:mm', 'dateTime'); //(设置监测时间,取服务器时间 cjr)
- if (top.Ext.getCmp('srDateTime')) {
- setStartDate(top.Ext, 'yyyy/MM/dd', 'srDateTime');
+ setStartDate(Ext, 'yyyy/MM/dd HH:mm', 'dateTime'); //(设置监测时间,取服务器时间 cjr)
+ if (Ext.getCmp('srDateTime')) {
+ setStartDate(Ext, 'yyyy/MM/dd', 'srDateTime');
}
- top.Ext.getCmp('amount').setValue(1);
+ Ext.getCmp('amount').setValue(1);
disableRecycleAndRepacking();
formDefinitionStore.load();
}
}
function hideTousseAndMaterialMsg() {
- top.Ext.getCmp('recycle').setVisible(false);
- top.Ext.getCmp('recycle').getEl().up('.x-form-item').setDisplayed(false);
- top.Ext.getCmp('repacking').setVisible(false);
- top.Ext.getCmp('repacking').getEl().up('.x-form-item').setDisplayed(false);
- top.Ext.getCmp('disabledBarcode').setVisible(false);
- top.Ext.getCmp('disabledBarcode').getEl().up('.x-form-item').setDisplayed(false);
- top.Ext.getCmp('tempBarcode').setVisible(false);
- top.Ext.getCmp('tempBarcode').getEl().up('.x-form-item').setDisplayed(false);
- top.Ext.getCmp('tousseName').setVisible(false);
- top.Ext.getCmp('tousseName').getEl().up('.x-form-item').setDisplayed(false);
- top.Ext.getCmp('material').setVisible(false);
- top.Ext.getCmp('material').getEl().up('.x-form-item').setDisplayed(false);
- top.Ext.getCmp('amount').setVisible(false);
- top.Ext.getCmp('amount').getEl().up('.x-form-item').setDisplayed(false);
+ Ext.getCmp('recycle').setVisible(false);
+ Ext.getCmp('recycle').getEl().up('.x-form-item').setDisplayed(false);
+ Ext.getCmp('repacking').setVisible(false);
+ Ext.getCmp('repacking').getEl().up('.x-form-item').setDisplayed(false);
+ Ext.getCmp('disabledBarcode').setVisible(false);
+ Ext.getCmp('disabledBarcode').getEl().up('.x-form-item').setDisplayed(false);
+ Ext.getCmp('tempBarcode').setVisible(false);
+ Ext.getCmp('tempBarcode').getEl().up('.x-form-item').setDisplayed(false);
+ Ext.getCmp('tousseName').setVisible(false);
+ Ext.getCmp('tousseName').getEl().up('.x-form-item').setDisplayed(false);
+ Ext.getCmp('material').setVisible(false);
+ Ext.getCmp('material').getEl().up('.x-form-item').setDisplayed(false);
+ Ext.getCmp('amount').setVisible(false);
+ Ext.getCmp('amount').getEl().up('.x-form-item').setDisplayed(false);
}
function showTousseAndMaterialMsg() {
- top.Ext.getCmp('material').setVisible(true);
- top.Ext.getCmp('material').getEl().up('.x-form-item').setDisplayed(true);
- top.Ext.getCmp('amount').setVisible(true);
- top.Ext.getCmp('amount').getEl().up('.x-form-item').setDisplayed(true);
- top.Ext.getCmp('tempBarcode').setVisible(true);
- top.Ext.getCmp('tempBarcode').getEl().up('.x-form-item').setDisplayed(true);
- top.Ext.getCmp('recycle').setVisible(true);
- top.Ext.getCmp('recycle').getEl().up('.x-form-item').setDisplayed(true);
- top.Ext.getCmp('tousseName').setVisible(true);
- top.Ext.getCmp('tousseName').getEl().up('.x-form-item').setDisplayed(true);
- top.Ext.getCmp('repacking').setVisible(true);
- top.Ext.getCmp('repacking').getEl().up('.x-form-item').setDisplayed(true);
- top.Ext.getCmp('disabledBarcode').setVisible(true);
- top.Ext.getCmp('disabledBarcode').getEl().up('.x-form-item').setDisplayed(true);
+ Ext.getCmp('material').setVisible(true);
+ Ext.getCmp('material').getEl().up('.x-form-item').setDisplayed(true);
+ Ext.getCmp('amount').setVisible(true);
+ Ext.getCmp('amount').getEl().up('.x-form-item').setDisplayed(true);
+ Ext.getCmp('tempBarcode').setVisible(true);
+ Ext.getCmp('tempBarcode').getEl().up('.x-form-item').setDisplayed(true);
+ Ext.getCmp('recycle').setVisible(true);
+ Ext.getCmp('recycle').getEl().up('.x-form-item').setDisplayed(true);
+ Ext.getCmp('tousseName').setVisible(true);
+ Ext.getCmp('tousseName').getEl().up('.x-form-item').setDisplayed(true);
+ Ext.getCmp('repacking').setVisible(true);
+ Ext.getCmp('repacking').getEl().up('.x-form-item').setDisplayed(true);
+ Ext.getCmp('disabledBarcode').setVisible(true);
+ Ext.getCmp('disabledBarcode').getEl().up('.x-form-item').setDisplayed(true);
}
/**
* 控制“重新回收”和“重新装配”的复选框的是否可用.
*/
function updateControlStatus1() {
- var tousseType = top.Ext.getCmp('tousseType').getValue();
- var tousseInstanceId = top.Ext.getCmp('tousseInstanceId').getValue();
- var toussedefRecycling = top.Ext.getCmp('tousseDefRecycling').getValue();
+ var tousseType = Ext.getCmp('tousseType').getValue();
+ var tousseInstanceId = Ext.getCmp('tousseInstanceId').getValue();
+ var toussedefRecycling = Ext.getCmp('tousseDefRecycling').getValue();
if (isUndefinedOrNullOrEmpty(tousseInstanceId)) {
disableRecycleAndRepacking();
} else if (tousseType == '外来器械包'
@@ -2146,79 +1624,79 @@
* 将重新回收和重新装配及是否整炉设置为未选种状态
*/
function resetRecycleAndRepackingValue() {
- top.Ext.getCmp('isRecycle').setValue('');
- top.Ext.getCmp('isRepacking').setValue('');
- top.Ext.getCmp('isDiscard').setValue('');
+ Ext.getCmp('isRecycle').setValue('');
+ Ext.getCmp('isRepacking').setValue('');
+ Ext.getCmp('isDiscard').setValue('');
- top.Ext.getCmp('recycle').setValue(false);
- top.Ext.getCmp('repacking').setValue(false);
- top.Ext.getCmp('disabledBarcode').setValue(false);
+ Ext.getCmp('recycle').setValue(false);
+ Ext.getCmp('repacking').setValue(false);
+ Ext.getCmp('disabledBarcode').setValue(false);
}
//重置重新回收和重新装配
function disableRecycleAndRepacking() {
- top.Ext.getCmp('isRecycle').setValue('');
- top.Ext.getCmp('isRepacking').setValue('');
- top.Ext.getCmp('isDiscard').setValue('');
+ Ext.getCmp('isRecycle').setValue('');
+ Ext.getCmp('isRepacking').setValue('');
+ Ext.getCmp('isDiscard').setValue('');
- top.Ext.getCmp('recycle').disable();
- top.Ext.getCmp('repacking').disable();
- top.Ext.getCmp('disabledBarcode').disable();
+ Ext.getCmp('recycle').disable();
+ Ext.getCmp('repacking').disable();
+ Ext.getCmp('disabledBarcode').disable();
- top.Ext.getCmp('recycle').setValue(false);
- top.Ext.getCmp('repacking').setValue(false);
- top.Ext.getCmp('disabledBarcode').setValue(false);
+ Ext.getCmp('recycle').setValue(false);
+ Ext.getCmp('repacking').setValue(false);
+ Ext.getCmp('disabledBarcode').setValue(false);
}
function enableRecycleAndRepacking() {
- top.Ext.getCmp('recycle').enable();
- top.Ext.getCmp('repacking').enable();
- top.Ext.getCmp('disabledBarcode').enable();
+ Ext.getCmp('recycle').enable();
+ Ext.getCmp('repacking').enable();
+ Ext.getCmp('disabledBarcode').enable();
}
/**
* 不能重新回收,可以重新装配.
*/
function disableRecycleCanRepacking() {
- top.Ext.getCmp('isRecycle').setValue('');
- top.Ext.getCmp('isRepacking').setValue('');
- top.Ext.getCmp('isDiscard').setValue('');
+ Ext.getCmp('isRecycle').setValue('');
+ Ext.getCmp('isRepacking').setValue('');
+ Ext.getCmp('isDiscard').setValue('');
- top.Ext.getCmp('recycle').disable();
- top.Ext.getCmp('repacking').enable();
- top.Ext.getCmp('disabledBarcode').enable();
+ Ext.getCmp('recycle').disable();
+ Ext.getCmp('repacking').enable();
+ Ext.getCmp('disabledBarcode').enable();
- top.Ext.getCmp('recycle').setValue(false);
- top.Ext.getCmp('repacking').setValue(false);
- top.Ext.getCmp('disabledBarcode').setValue(false);
+ Ext.getCmp('recycle').setValue(false);
+ Ext.getCmp('repacking').setValue(false);
+ Ext.getCmp('disabledBarcode').setValue(false);
}
//SZSDSRMYY-76:获取条码的备注
function getBarcodeRemark(result) {
if (result.remark !== '') {
var remark = '【' + result.tousseName + '(' + result.barcode + '):' + result.remark + '】';
- var oldRemark = top.Ext.getCmp('remark').getValue();
- if (top.Ext.getCmp('remark2')) {
- var oldRemark2 = top.Ext.getCmp('remark2').getValue();
+ var oldRemark = Ext.getCmp('remark').getValue();
+ if (Ext.getCmp('remark2')) {
+ var oldRemark2 = Ext.getCmp('remark2').getValue();
if (oldRemark2 == '') {
var resultRemark = '装配备注:' + remark;
- top.Ext.getCmp('remark2').setValue(resultRemark);
+ Ext.getCmp('remark2').setValue(resultRemark);
} else {
if (oldRemark2.indexOf('装配备注:') == -1) {
var resultRemark = '装配备注:' + remark;
- top.Ext.getCmp('remark2').setValue(oldRemark + resultRemark);
+ Ext.getCmp('remark2').setValue(oldRemark + resultRemark);
} else {
- top.Ext.getCmp('remark2').setValue(oldRemark + remark);
+ Ext.getCmp('remark2').setValue(oldRemark + remark);
}
}
} else {
if (oldRemark == '') {
var resultRemark = '装配备注:' + remark;
- top.Ext.getCmp('remark').setValue(resultRemark);
+ Ext.getCmp('remark').setValue(resultRemark);
} else {
if (oldRemark.indexOf('装配备注:') == -1) {
var resultRemark = '装配备注:' + remark;
- top.Ext.getCmp('remark').setValue(oldRemark + resultRemark);
+ Ext.getCmp('remark').setValue(oldRemark + resultRemark);
} else {
- top.Ext.getCmp('remark').setValue(oldRemark + remark);
+ Ext.getCmp('remark').setValue(oldRemark + remark);
}
}
}
@@ -2239,49 +1717,49 @@
if (isQMView == true) {
if (tempBarcode != null && tempBarcode != '') {
- top.Ext.getCmp('tousseName2').setValue(result.tousseName + "(" + tempBarcode + ")");
+ Ext.getCmp('tousseName2').setValue(result.tousseName + "(" + tempBarcode + ")");
} else {
- top.Ext.getCmp('tousseName2').setValue(result.tousseName);
+ Ext.getCmp('tousseName2').setValue(result.tousseName);
}
- if (!isUndefinedOrNullOrEmpty(top.Ext.getCmp('configItemOptionSterNameQW'))) {
+ if (!isUndefinedOrNullOrEmpty(Ext.getCmp('configItemOptionSterNameQW'))) {
// 显示炉次和炉号
- top.Ext.getCmp('configItemOptionSterNameQW').setValue(result.sterilizerName);
- top.Ext.getCmp('configItemOptionSterFreQW').setValue(result.sterileFrequency);
+ Ext.getCmp('configItemOptionSterNameQW').setValue(result.sterilizerName);
+ Ext.getCmp('configItemOptionSterFreQW').setValue(result.sterileFrequency);
}
- top.Ext.getCmp('barcode2').setValue(tempBarcode);
- top.Ext.getCmp('tousseInstanceId2').setValue(result.tousseInstanceId);
+ Ext.getCmp('barcode2').setValue(tempBarcode);
+ Ext.getCmp('tousseInstanceId2').setValue(result.tousseInstanceId);
if (result.tousseDefinitionId) {
- top.Ext.getCmp('tousseDefinitionId2').setValue(result.tousseDefinitionId);
+ Ext.getCmp('tousseDefinitionId2').setValue(result.tousseDefinitionId);
if (materialDefinitionStore) {
materialDefinitionStore.reload();
}
} else if (materialDefinitionStore) {
- top.Ext.getCmp('tousseDefinitionId2').setValue('');
+ Ext.getCmp('tousseDefinitionId2').setValue('');
}
} else {
if (tempBarcode != null && tempBarcode != '') {
- top.Ext.getCmp('tousseName').setValue(result.tousseName + "(" + tempBarcode + ")");
+ Ext.getCmp('tousseName').setValue(result.tousseName + "(" + tempBarcode + ")");
} else {
- top.Ext.getCmp('tousseName').setValue(result.tousseName);
+ Ext.getCmp('tousseName').setValue(result.tousseName);
}
- top.Ext.getCmp('barcode').setValue(tempBarcode);
- top.Ext.getCmp('tousseInstanceId').setValue(result.tousseInstanceId);
- top.Ext.getCmp('tousseType').setValue(result.tousseType);
- top.Ext.getCmp('tousseDefRecycling').setValue(result.isRecycle);
- top.Ext.getCmp('isDiscard').setValue(result.isDiscard);
- if (!isUndefinedOrNullOrEmpty(top.Ext.getCmp('configItemOptionSterName'))) {
+ Ext.getCmp('barcode').setValue(tempBarcode);
+ Ext.getCmp('tousseInstanceId').setValue(result.tousseInstanceId);
+ Ext.getCmp('tousseType').setValue(result.tousseType);
+ Ext.getCmp('tousseDefRecycling').setValue(result.isRecycle);
+ Ext.getCmp('isDiscard').setValue(result.isDiscard);
+ if (!isUndefinedOrNullOrEmpty(Ext.getCmp('configItemOptionSterName'))) {
// 显示炉次和炉号
- top.Ext.getCmp('configItemOptionSterName').setValue(result.sterilizerName);
- top.Ext.getCmp('configItemOptionSterFre').setValue(result.sterileFrequency);
+ Ext.getCmp('configItemOptionSterName').setValue(result.sterilizerName);
+ Ext.getCmp('configItemOptionSterFre').setValue(result.sterileFrequency);
}
- // top.Ext.getCmp('responsiblePerson').setValue(result.responsiblePerson);
+ // Ext.getCmp('responsiblePerson').setValue(result.responsiblePerson);
if (result.tousseDefinitionId) {
- top.Ext.getCmp('tousseDefinitionId').setValue(result.tousseDefinitionId);
+ Ext.getCmp('tousseDefinitionId').setValue(result.tousseDefinitionId);
if (materialDefinitionStore) {
materialDefinitionStore.reload();
}
} else if (materialDefinitionStore) {
- top.Ext.getCmp('tousseDefinitionId').setValue('');
+ Ext.getCmp('tousseDefinitionId').setValue('');
}
updateControlStatus1();
}
@@ -2303,208 +1781,33 @@
}
/**
- * 保存质量监测实例(定期监测不合格保存的质量监测).
- * @param thiz
- * @param materialDefinitionStore
- */
-function saveRoutineMonitoring(thiz, materialDefinitionStore) {
- //监测项元素id集合(用分号分隔)
- var optionAmount = top.Ext.getCmp('optionAmount2').getValue();
- if (optionAmount) {
- var optionAmountArr = optionAmount.split(';');
- for (var i = 0; i < optionAmountArr.length; i++) {
- var itemId = optionAmountArr[i];
- if (top.Ext.getCmp('configItemOption' + itemId).getXType() != 'hidden') {
- if (!top.Ext.getCmp('configItemOption' + itemId).isValid()) {
- showResult("请正确填写表单各值。");
- return false;
- }
- } else {
- if (!top.Ext.getCmp('configItemOption' + itemId).hidden && top.Ext.getCmp('configItemOption' + itemId).getValue() == '#@') {
- showResult("请正确填写表单各值。");
- return false;
- }
- }
-
- //如果是多选,并且必填,需要单独校验
- var extElement = top.Ext.getCmp('hideElement' + itemId);
- if (extElement.getXType() == 'fieldset' && !extElement.allowBlank) {
- var checkboxArr = extElement.findByType('checkbox');
- var checked = false;
- for (var int = 0; int < checkboxArr.length; int++) {
- if (checkboxArr[int].checked) {
- checked = checkboxArr[int].checked;
- continue;
- }
- }
- if (!checked) {
- showResult(extElement.title + "是必填项");
- return false;
- }
- }
- }
- }
-
- var scope = top.Ext.getCmp('scope2').getValue();
- var material = top.Ext.getCmp('material2').getValue();
- var tousseName = top.Ext.getCmp('tousseName2').getRawValue();
- var barcode = top.Ext.getCmp('barcode2').getValue();
- if ('无' != scope) {
- if (!material && !tousseName) {
- showResult("请录入抽验器械或器械包名称");
- return false;
- }
- }
- // 获取质量检测记录的id,如果不为空,说明是打开的记录,不再校验包和材料的数量
- var id2 = top.Ext.getCmp('id2').getValue();
- if (isUndefinedOrNullOrEmpty(id2)) {
- if (material) {
- var amount = top.Ext.getCmp('amount2').getValue();
- if (!amount || amount < 0) {
- showResult('输入的“' + material + '”的数量且不能小于1');
- return false;
- }
-
- if (tousseName) {
- var isExist = false;
- var count = materialDefinitionStore.getCount();
- for (var i = 0; i < count; i++) {
- var r = materialDefinitionStore.getAt(i);
- if (r.data.name == material) {
- isExist = true;
- //对比 当前输入材料的数量 与 该器械包中此材料的数量
- var v = r.data.count - amount;
- if (v < 0) {
- showResult('输入的' + material + '的数量不能大于当前器械包该材料的数量');
- top.Ext.getCmp('amount2').setValue(r.data.count);
- return false;
- }
- }
- }
- if (!isExist) {
- showResult('在当前器械包中找不到找材料“' + material + '”');
- top.Ext.getCmp('material2').setValue('');
- top.Ext.getCmp('amount2').setValue();
- return false;
- }
- }
- }
- }
-
- checkIsUniqueWithBarcodeAndInspectItemAndConvertToJson(thiz, top.Ext.getCmp('id2').getValue(), barcode, top.Ext.getCmp('formDefinitionId2').getValue());
-}
-
-function checkIsUniqueWithBarcodeAndInspectItemAndConvertToJson(thiz, id, barcode, formDefinitionId) {
- if (barcode && formDefinitionId) {
- Ext.Ajax.request({
- url: WWWROOT + '/disinfectSystem/qualityMonitoringInstanceAction!checkIsUniqueWithBarcodeAndInspectItem.do',
- params: {
- id: id,
- barcode: barcode,
- formDefinitionId: formDefinitionId
- },
- success: function (response, options) {
- var result = Ext.decode(response.responseText);
- if (!result.isUnique) {
- showResult("当前器械包所对应的检测项已存在");
- thiz.enable();
- return false;
- }
- submintQMForm();
- },
- failure: function (response, options) {
- showResult('系统加载出错,请稍候再试');
- }
- });
- } else {
- submintQMForm();
- }
-}
-
-function submintQMForm() {
- var material2 = top.Ext.getCmp("material2").getValue();
- var amount2 = top.Ext.getCmp("amount2").getValue();
- var materialInfo = "";
- if (material2 != null && material2 != '') {
- materialInfo = material2 + "@" + amount2 + "@" + "" + "@" + 2 + "@" + " " + ";";
- }
- var tousseInstanceInfo = "";
- var tousseName = top.Ext.getCmp("tousseName2").getValue();
- var tousseBarcode = top.Ext.getCmp("barcode2").getValue();
- var tousseInstanceId = top.Ext.getCmp("tousseInstanceId2").getValue();
- var tousseAmount = 1;
- if (!isUndefinedOrNullOrEmpty(tousseName)) {
- if (isUndefinedOrNullOrEmpty(material2)) {
- tousseInstanceInfo = tousseBarcode + "@" + tousseInstanceId + "@" + tousseName + "@" + tousseAmount
- + "@" + "否" + "@" + "否" + "@" + amount2 + "@" + " " + "@" + "是" + ";";
- } else {
- tousseInstanceInfo = tousseBarcode + "@" + tousseInstanceId + "@" + tousseName + "@" + tousseAmount
- + "@" + "否" + "@" + "否" + "@" + 1 + "@" + " " + "@" + "是" + ";";
- }
- }
- var routineMonitoringWin = top.Ext.getCmp("routineMonitoringWin");
- top.Ext.getCmp('addRoutineMonitoringForm').form.submit({
- url: WWWROOT + '/disinfectSystem/qualityMonitoringInstanceAction!saveQualityMonitoringInstance.do',
- params: {
- materialInfo: materialInfo,
- tousseInstanceInfo: tousseInstanceInfo
- },
- method: 'POST',
- waitMsg: '正在保存数据,请稍候',
- waitTitle: '提交表单',
- success: function (form, action) {
- var result = top.Ext.decode(action.response.responseText);
- showResult(result.message);
- if (result.success) {
- var formName = top.Ext.getCmp('formName2').getRawValue();
- var dateTime = top.Ext.getCmp('dateTime2').getRawValue();
- addQMInstance(result.id, formName, dateTime);
- routineMonitoringWin.close();
- if (typeof (grid) != 'undefined' && grid != null) {
- grid.getStore().reload();
- }
- }
- },
- failure: function (form, action) {
- if (action.response != null && action.response.responseText != null) {
- var result = top.Ext.decode(action.response.responseText);
- showResult(result.message);
- } else {
- alert('failure = ' + action.failureType);
- }
- routineMonitoringWin.close();
- }
- });
-}
-
-/**
* 保存定期监测
* @param thiz
*/
function saveRoutineMonitoring(thiz, sterilerConfirmObj) {
thiz.disable();
//监测项元素id集合(用分号分隔)
- var optionAmount = top.Ext.getCmp('optionAmount').getValue();
+ var optionAmount = Ext.getCmp('optionAmount').getValue();
if (optionAmount) {
var optionAmountArr = optionAmount.split(';');
for (var i = 0; i < optionAmountArr.length; i++) {
var itemId = optionAmountArr[i];
- if (top.Ext.getCmp('configItemOption' + itemId).getXType() != 'hidden') {
- if (!top.Ext.getCmp('configItemOption' + itemId).isValid()) {
+ if (Ext.getCmp('configItemOption' + itemId).getXType() != 'hidden') {
+ if (!Ext.getCmp('configItemOption' + itemId).isValid()) {
showResult("请正确填写表单各值。");
thiz.enable();
return false;
}
} else {
- if (!top.Ext.getCmp('configItemOption' + itemId).hidden && top.Ext.getCmp('configItemOption' + itemId).getValue() == '#@') {
+ if (!Ext.getCmp('configItemOption' + itemId).hidden && Ext.getCmp('configItemOption' + itemId).getValue() == '#@') {
showResult("请正确填写表单各值。");
thiz.enable();
return false;
}
}
//如果是多选,并且必填,需要单独校验
- var extElement = top.Ext.getCmp('hideElement' + itemId);
+ var extElement = Ext.getCmp('hideElement' + itemId);
if (extElement.getXType() == 'fieldset' && !extElement.allowBlank) {
var checkboxArr = extElement.findByType('checkbox');
var checked = false;
@@ -2534,32 +1837,32 @@
id: record.get("id")
});
}
- top.Ext.getCmp('qualityMonitoringItems').setValue(Ext.encode(qmArray));
+ Ext.getCmp('qualityMonitoringItems').setValue(Ext.encode(qmArray));
- var material = top.Ext.getCmp("material").getValue();
- var amount = top.Ext.getCmp("amount").getValue();
+ var material = Ext.getCmp("material").getValue();
+ var amount = Ext.getCmp("amount").getValue();
if (isUndefinedOrNullOrEmpty(tousseName)) {
amount = 0;
}
var materialInfo = "";
if (material != null && material != '') {
- amount = top.Ext.getCmp("amount").getValue();
+ amount = Ext.getCmp("amount").getValue();
materialInfo = material + "@" + amount + "@" + "" + "@" + 2 + "@" + " " + ";";
}
var tousseInstanceInfo = "";
- var tousseName = top.Ext.getCmp("tousseName").getValue();
- var tousseBarcode = top.Ext.getCmp("barcode").getValue();
- var tousseInstanceId = top.Ext.getCmp("tousseInstanceId").getValue();
- var isRecycle = top.Ext.getCmp("isRecycle").getValue();
- var isRepacking = top.Ext.getCmp("isRepacking").getValue();
- var isDiscard = top.Ext.getCmp("isDiscard").getValue();
+ var tousseName = Ext.getCmp("tousseName").getValue();
+ var tousseBarcode = Ext.getCmp("barcode").getValue();
+ var tousseInstanceId = Ext.getCmp("tousseInstanceId").getValue();
+ var isRecycle = Ext.getCmp("isRecycle").getValue();
+ var isRepacking = Ext.getCmp("isRepacking").getValue();
+ var isDiscard = Ext.getCmp("isDiscard").getValue();
var tousseAmount = 1;
if (!isUndefinedOrNullOrEmpty(tousseName)) {
tousseInstanceInfo = tousseBarcode + "@" + tousseInstanceId + "@" + tousseName + "@" + tousseAmount
+ "@" + isRecycle + "@" + isRepacking + "@" + isDiscard + "@" + 1 + "@" + " " + "@" + "是" + ";";
}
- if (!top.Ext.getCmp('addRoutineMonitoringForm').form.isValid()) {
+ if (!Ext.getCmp('addRoutineMonitoringForm').form.isValid()) {
showResult('请正确填写表单各值。');
thiz.enable();
return false;
@@ -2578,16 +1881,16 @@
params.qualityMonitoringSterilizationID = sterilerConfirmObj.qualityMonitoringSterilizationID;
}
- top.Ext.getCmp('addRoutineMonitoringForm').form.submit({
+ Ext.getCmp('addRoutineMonitoringForm').form.submit({
url: WWWROOT + '/disinfectSystem/qualityMonitoringInstanceAction!saveQualityMonitoringInstance.do',
params: params,
method: 'POST',
waitMsg: '正在保存数据,请稍候',
waitTitle: '提交表单',
success: function (form, action) {
- var result = top.Ext.decode(action.response.responseText);
+ var result = Ext.decode(action.response.responseText);
showResult(result.message);
- top.Ext.getCmp('routineMonitoringWin').close();
+ cancelRoutineMonitoring();
if (typeof (grid) != 'undefined' && grid != null) {
grid.getStore().reload();
} else {
@@ -2596,7 +1899,7 @@
},
failure: function (form, action) {
if (action.response != null && action.response.responseText != null) {
- var result = top.Ext.decode(action.response.responseText);
+ var result = Ext.decode(action.response.responseText);
showResult(result.message);
} else {
alert("连接服务器出错");
@@ -2606,159 +1909,12 @@
});
}
-/**
- * 修改记录
- * modifyRecord函数 触发modify函数调用,并传入当前列的值以及record.data对象
- * 页面中需要定义 modify(v,data) 函数
- */
-function modify(v, data) {
- addRoutineMonitoring(data['id']);
-}
-
function cancelRoutineMonitoring() {
- routineMonitoringWin.close();
-}
-
-function cancelRoutineMonitoring() {
- top.Ext.getCmp('routineMonitoringWin').close();
-}
-
-// 删除
-function deleteRoutineMonitoring(number) {
- top.Ext.getCmp('routineMonitoringsColumn').remove('monitorings' + number);
-}
-
-function deleteRoutineMonitoring(gridView) {
-
- var records = gridView.getSelectionModel().getSelections();
-
- if (records.length == 0) {
- showResult("请选择要删除的记录!");
- return false;
+ if (top.Ext.getCmp('routineMonitoringWin')) {
+ top.Ext.getCmp('routineMonitoringWin').close();
}
- var ids = null;
- for (var i = 0, len = records.length; i < len; i++) {
- if (ids == null) {
- ids = records[i].data['id'];
- } else {
- ids = ids + ';' + records[i].data['id'];
- }
- }
- Ext.MessageBox.confirm("请确认", "是否确定要删除选中的信息吗?",
- function (button, text) {
- if ("yes" == button) {
- Ext.Ajax.request({
- url: WWWROOT + '/disinfectSystem/qualityMonitoringInstanceAction!deleteQualityMonitoringInstance.do',
- params: { ids: ids },
- success: function (response, options) {
- var result = Ext.decode(response.responseText);
- showResult(result.message);
- gridView.dwrReload();
- },
- failure: function (response, options) {
- var result = Ext.decode(response.responseText);
- alert(result.message);
- }
- });
- }
- });
-
}
-function reviewRoutineMonitoring(gridView) {
-
- var records = gridView.getSelectionModel().getSelections();
-
- if (records.length == 0) {
- showResult("请选择要审核定期监测记录!");
- return false;
- }
-
- var ids = [];
-
- for (var i = 0; i < records.length; i++) {
- ids[i] = records[i].data['id'];
- }
-
- Ext.MessageBox.confirm("请确认", "是否确定完成对该记录的审核吗?",
- function (button, text) {
- if ("yes" == button) {
- Ext.Ajax.request({
- url: WWWROOT + '/disinfectSystem/qualityMonitoringInstanceAction!batchReviewQualityMonitoring.do',
- params: { ids: ids.join(';') },
- success: function (response, options) {
- var result = Ext.decode(response.responseText);
- showResult(result.message);
- if (result.success) {
- gridView.dwrReload();
- }
- },
- failure: function (response, options) {
- var result = Ext.decode(response.responseText);
- alert(result.message);
- }
- });
- }
- });
-
-}
-
-var mask = null;
-function getMask() {
- if (!mask) {
- mask = new Ext.LoadMask(Ext.getBody(), {
- msg: '正在处理打印请求,请稍候...'
- });
- }
- return mask;
-}
-
-/**
- * 把"已审核"转成"未审核"的方法
- *
- */
-function becomeNotAudited(gridView) {
- var records = gridView.getSelectionModel().getSelections();
- if (records.length == 0) {
- showResult("请选择要返回的" + entityName + "记录!");
- return false;
- }
- var ids = [];
- for (var i = 0, len = records.length; i < len; i++) {
- if (records[i].data['status'] != '未审核') {
- ids.push(records[i].data['id']);
- } else {
- showResult("所选的记录不是已审核状态,请选择已审核的" + entityName + "记录!");
- return false;
- }
- }
-
- top.Ext.MessageBox.confirm("请确认", "确定要返回成未审核状态吗?", function (button, text) {
- if ("yes" == button) {
- getMask();
- mask.msg = '正在处理请求,请稍候...';
- mask.show();
- Ext.Ajax.request({
- url: WWWROOT + '/disinfectSystem/qualityMonitoringInstanceAction!updateStatus.do',
- params: { ids: JSON.stringify(ids), status: statusUnreview },
- success: function (response, options) {
- mask.hide();
- var result = Ext.decode(response.responseText);
- if (result.message) {
- showResult(result.message);
- }
- if (result.success) {
- showResult('所选的记录已成功返回成未审核状态!');
- gridView.dwrReload();
- }
- },
- failure: function (response, options) {
- mask.hide();
- showResult('后台程序忙,请联系管理员!');
- }
- });
- }
-
- });
-
+function isLoadIframe() {
+ return true
}
\ No newline at end of file
Index: ssts-web/src/main/webapp/disinfectsystem/routineMonitoring/routineMonitoringView.jsp
===================================================================
diff -u -r41033 -r41119
--- ssts-web/src/main/webapp/disinfectsystem/routineMonitoring/routineMonitoringView.jsp (.../routineMonitoringView.jsp) (revision 41033)
+++ ssts-web/src/main/webapp/disinfectsystem/routineMonitoring/routineMonitoringView.jsp (.../routineMonitoringView.jsp) (revision 41119)
@@ -1,18 +1,7 @@
-<%@page import="com.forgon.disinfectsystem.entity.qualitymonitoringmanager.qualitymonitoring.QualityMonitoringInstance"%>
-<%@page import="com.forgon.disinfectsystem.entity.customform.formdefinition.FormDefinition"%>
-<%@page import="com.forgon.disinfectsystem.basedatamanager.supplyroomconfig.service.SupplyRoomConfigManager"%>
-<%@page import="com.forgon.disinfectsystem.entity.basedatamanager.supplyroomconfig.SupplyRoomConfig"%>
<%@ page contentType="text/html; charset=UTF-8"%>
+<%@page import="com.forgon.disinfectsystem.entity.qualitymonitoringmanager.qualitymonitoring.QualityMonitoringInstance"%>
<%@ include file="/common/taglibs.jsp"%>
-<%@page import="com.forgon.disinfectsystem.entity.basedatamanager.toussedefinition.TousseDefinition" %>
-<%
- SupplyRoomConfigManager supplyRoomConfigManager =(SupplyRoomConfigManager) SpringBeanManger.getBean("supplyRoomConfigManager");
- request.setAttribute("userName",AcegiHelper.getLoginUser().getUserFullName());
- SupplyRoomConfig syscfg = supplyRoomConfigManager.getSystemParamsObj();
- request.setAttribute("qualityMonitoringUpdateMode", syscfg.getQualityMonitoringUpdateMode());
-%>
-
@@ -22,16 +11,19 @@
<%@ include file="/common/includeExtJsAndCss.jsp"%>
+
-
-
-
Index: ssts-web/src/main/webapp/disinfectsystem/sterilizationmanager/sterilizationrecord/sterilizationRecordView.jsp
===================================================================
diff -u -r41116 -r41119
--- ssts-web/src/main/webapp/disinfectsystem/sterilizationmanager/sterilizationrecord/sterilizationRecordView.jsp (.../sterilizationRecordView.jsp) (revision 41116)
+++ ssts-web/src/main/webapp/disinfectsystem/sterilizationmanager/sterilizationrecord/sterilizationRecordView.jsp (.../sterilizationRecordView.jsp) (revision 41119)
@@ -10,7 +10,6 @@
<%@page import="com.forgon.disinfectsystem.entity.basedatamanager.toussedefinition.TousseDefinition"%>
<%@page import="com.forgon.disinfectsystem.basedatamanager.supplyroomconfig.service.SupplyRoomConfigManager"%>
<%@page import="com.forgon.disinfectsystem.entity.basedatamanager.sterilizer.Sterilizer"%>
-<%@page import="com.forgon.disinfectsystem.entity.qualitymonitoringmanager.qualitymonitoring.QualityMonitoringInstance"%>
<%@include file="/common/taglibs.jsp"%>
<%@include file="/common/includeExtJsAndCss.jsp"%>
<%@include file="/common/include_Ext42_Js.jsp"%>
@@ -130,10 +129,6 @@
var formType_routineMonitoring = '<%=FormDefinition.FOMRTYPE_PERIODICMONITORING%>';
var formType_qualityMonitoring = '<%=FormDefinition.FOMRTYPE_QUALITYMONITORING%>';
- //定期监测状态:未审核与已审核
- var statusUnreview = '<%=QualityMonitoringInstance.STATUS_UNREVIEW %>';
- var statusReviewed = '<%=QualityMonitoringInstance.STATUS_REVIEWED %>';
-
//FSEYEQ-26:Clean H101513(灭菌器型号) sterilizationParaType=18
var STERILIZATIONPARATYPE_XINHUA_PDF = '<%=SterilizationRecord.STERILIZATIONPARATYPE_XINHUA_PDF%>';
@@ -172,7 +167,6 @@
<%--完成灭菌 --%>
<%--灭菌监测 --%>
-