Index: ssts-web/src/main/webapp/disinfectsystem/basedatamanager/supplyroomtype/supplyRoomTypeForm.js
===================================================================
diff -u -r31863 -r32942
--- ssts-web/src/main/webapp/disinfectsystem/basedatamanager/supplyroomtype/supplyRoomTypeForm.js (.../supplyRoomTypeForm.js) (revision 31863)
+++ ssts-web/src/main/webapp/disinfectsystem/basedatamanager/supplyroomtype/supplyRoomTypeForm.js (.../supplyRoomTypeForm.js) (revision 32942)
@@ -21,26 +21,26 @@
* @param queryResultId 显示结果节点的id
*/
function searchSupplyRoomStore(supplyRoomStore, keyWordId, queryResultId) {
- var keyWord = Ext.getCmp(keyWordId).getValue();
- var count = 0;
+ var keyWord = Ext.getCmp(keyWordId).getValue();
+ var count = 0;
//先清除高亮标记
- supplyRoomStore.each(function (item) {
- item.set('isFind', false);
- });
- //如果关键搜索为空,则不进行搜索
- if (Ext.isEmpty(keyWord)){
- setQueryResultTips(queryResultId, '');
- return;
- }
- supplyRoomStore.findBy(function (item) {
- var reg = new RegExp(keyWord, 'i');
- if (item.get('name').search(reg) != -1 || item.get('spell').search(reg) != -1){
- //如果找到该记录,设计高亮标记
- item.set('isFind', true);
- count++;
+ supplyRoomStore.each(function (item) {
+ item.set('isFind', false);
+ });
+ //如果关键搜索为空,则不进行搜索
+ if (Ext.isEmpty(keyWord)) {
+ setQueryResultTips(queryResultId, '');
+ return;
+ }
+ supplyRoomStore.findBy(function (item) {
+ var reg = new RegExp(keyWord, 'i');
+ if (item.get('name').search(reg) != -1 || item.get('spell').search(reg) != -1) {
+ //如果找到该记录,设计高亮标记
+ item.set('isFind', true);
+ count++;
}
- });
- setQueryResultTips(queryResultId, '共找到:' + count + '条记录');
+ });
+ setQueryResultTips(queryResultId, '共找到:' + count + '条记录');
}
/**
@@ -49,16 +49,16 @@
* @param tips 要显示的提示信息
*/
function setQueryResultTips(queryResultId, tips) {
- var queryResult = Ext.getCmp(queryResultId);
- queryResult.setText(tips);
+ var queryResult = Ext.getCmp(queryResultId);
+ queryResult.setText(tips);
}
-function removeGridItem(supplyRoom){
+function removeGridItem(supplyRoom) {
var obj = Ext.getCmp(supplyRoom);
var rows = obj.getSelectionModel().getSelections();// 返回值为
var store = obj.getStore();
if (rows) {
- for ( var i = 0; i < rows.length; i++) {
+ for (var i = 0; i < rows.length; i++) {
store.remove(rows[i]);
}
}
@@ -68,24 +68,24 @@
* @param orgUnitCoding 供应室科室编码
* @param orgUnitName 供应室科室名称
*/
-function addServiceAllClinicOrgUnit(orgUnitCoding,orgUnitName){
- SupplyRoomConfigTableManager.addServiceAllClinicOrgUnit(orgUnitCoding,orgUnitName,function(message){
+function addServiceAllClinicOrgUnit(orgUnitCoding, orgUnitName) {
+ SupplyRoomConfigTableManager.addServiceAllClinicOrgUnit(orgUnitCoding, orgUnitName, function (message) {
showResult(message);
});
}
-function setRecordSequence(store){
- for(var i=0;i 0){
- for ( var i = 0; i < sourceStore.getCount(); i++) {
- var record = sourceStore.getAt(i);
- var tempName = record.get('name');
- var tempDepartId = record.get('departId');
- if(departmentName == tempName && departId == tempDepartId){
- if(record.json){
- if(parseInt(record.json.status) == 1){
+function addGridItem(sourceStore, departmentName, departId, cleanTextFieldId) {
+ var isExist = false;
+ if (departmentName != null && departmentName.length > 0) {
+ for (var i = 0; i < sourceStore.getCount(); i++) {
+ var record = sourceStore.getAt(i);
+ var tempName = record.get('name');
+ var tempDepartId = record.get('departId');
+ if (departmentName == tempName && departId == tempDepartId) {
+ if (record.json) {
+ if (parseInt(record.json.status) == 1) {
isExist = true;
- }
- }else {
+ }
+ } else {
isExist = true;
- }
- break;
- }
+ }
+ break;
+ }
}
- }else{
+ } else {
showResult('请选择科室!');
return;
}
- if(!isExist){
- var item = new tempItem({
- id : 0,
- departId : departId,
- name : departmentName,
- settleAccountsDepart:'',
- settleAccountsDepartCoding:''
- });
-
- sourceStore.add(item);
-
- if(cleanTextFieldId != ""){
- Ext.getCmp(cleanTextFieldId).setValue();
- }
- }else{
- showResult('科室:['+departmentName+'] 已存在!');
+ if (!isExist) {
+ var item = new tempItem({
+ id: 0,
+ departId: departId,
+ name: departmentName,
+ settleAccountsDepart: '',
+ settleAccountsDepartCoding: ''
+ });
+
+ sourceStore.add(item);
+
+ if (cleanTextFieldId != "") {
+ Ext.getCmp(cleanTextFieldId).setValue();
+ }
+ } else {
+ showResult('科室:[' + departmentName + '] 已存在!');
}
}
-Ext.onReady(function(){
-
+Ext.onReady(function () {
+
var departJsonStore = new Ext.data.Store({
- proxy : new Ext.data.HttpProxy({
- url : WWWROOT + '/disinfectSystem/baseData/supplyRoomConfigAction!getAllOrgUnitName.do',
- method : 'POST'
+ proxy: new Ext.data.HttpProxy({
+ url: WWWROOT + '/disinfectSystem/baseData/supplyRoomConfigAction!getAllOrgUnitName.do',
+ method: 'POST'
}),
- baseParams :{
- showDisableOrgUnit : false
+ baseParams: {
+ showDisableOrgUnit: false
},
- reader : new Ext.data.JsonReader({
- root : 'data'
- },[
- {name : 'id',mapping : 'id'},
- {name : 'name',mapping : 'name'}
- ]
+ reader: new Ext.data.JsonReader({
+ root: 'data'
+ }, [
+ { name: 'id', mapping: 'id' },
+ { name: 'name', mapping: 'name' }
+ ]
)
});
-
+
sterilingTypeStore = new Ext.data.SimpleStore({
- fields : [ 'id','typeName','typeNameAndPurpose' ],
- url : WWWROOT + '/disinfectSystem/baseData/sterilizerAction!getSterilizerTypeAndSterilizationPurpose.do'
+ fields: ['id', 'typeName', 'typeNameAndPurpose'],
+ url: WWWROOT + '/disinfectSystem/baseData/sterilizerAction!getSterilizerTypeAndSterilizationPurpose.do'
});
packageTypeStore = new Ext.data.SimpleStore({
- fields : [ 'typeName','validDate','validDateUnit','warningDate' ],
- url : WWWROOT + '/disinfectSystem/baseData/expirationDateInfoAction!getPackageTypeAndExpirationDateInfo.do',
- baseParams :{addNullValue:true}
+ fields: ['typeName', 'validDate', 'validDateUnit', 'warningDate'],
+ url: WWWROOT + '/disinfectSystem/baseData/expirationDateInfoAction!getPackageTypeAndExpirationDateInfo.do',
+ baseParams: { addNullValue: true }
});
-
- var rd = new Ext.data.JsonReader( {
- fields : [
- {name : 'id'},
- {name : 'departId'},
- {name : 'name'},
- {name : 'sequence'},
- {name : 'newSequence'},
- {name : 'disposablePriceFluctuation'},
- {name : 'spell'},
- {name : 'showInvoicePlan'},
- //simon-add
- {name : 'settleAccountsDepart'},
- {name : 'settleAccountsDepartCoding'}
+
+ var rd = new Ext.data.JsonReader({
+ fields: [
+ { name: 'id' },
+ { name: 'departId' },
+ { name: 'name' },
+ { name: 'sequence' },
+ { name: 'newSequence' },
+ { name: 'disposablePriceFluctuation' },
+ { name: 'spell' },
+ { name: 'showInvoicePlan' },
+ //simon-add
+ { name: 'settleAccountsDepart' },
+ { name: 'settleAccountsDepartCoding' }
]
});
-
+
supplyRoomStoreFirstSupplyRoom = new Ext.data.Store({
- proxy : new Ext.data.HttpProxy({
- url : WWWROOT + '/disinfectSystem/baseData/supplyRoomConfigAction!loadSupplyRoomConfigRoom.do',
- method : 'POST'
+ proxy: new Ext.data.HttpProxy({
+ url: WWWROOT + '/disinfectSystem/baseData/supplyRoomConfigAction!loadSupplyRoomConfigRoom.do',
+ method: 'POST'
}),
- baseParams :{type:"1"},
- reader : rd
+ baseParams: { type: "1" },
+ reader: rd
});
-
+
supplyRoomStoreSecondSupplyRoom = new Ext.data.Store({
- proxy : new Ext.data.HttpProxy({
- url : WWWROOT + '/disinfectSystem/baseData/supplyRoomConfigAction!loadSupplyRoomConfigRoom.do',
- method : 'POST'
+ proxy: new Ext.data.HttpProxy({
+ url: WWWROOT + '/disinfectSystem/baseData/supplyRoomConfigAction!loadSupplyRoomConfigRoom.do',
+ method: 'POST'
}),
- baseParams :{type:"2"},
- reader : rd
+ baseParams: { type: "2" },
+ reader: rd
});
-
+
//申领科室
supplyRoomStoreApply = new Ext.data.Store({
- proxy : new Ext.data.HttpProxy({
- url : WWWROOT + '/disinfectSystem/baseData/supplyRoomConfigAction!loadSupplyRoomConfig.do?type=3',
- method : 'POST'
+ proxy: new Ext.data.HttpProxy({
+ url: WWWROOT + '/disinfectSystem/baseData/supplyRoomConfigAction!loadSupplyRoomConfig.do?type=3',
+ method: 'POST'
}),
- reader : rd
+ reader: rd
});
-
+
//结算科室
supplyRoomStoreSettleAccount = new Ext.data.Store({
- proxy : new Ext.data.HttpProxy({
- url : WWWROOT + '/disinfectSystem/baseData/supplyRoomConfigAction!loadSupplyRoomConfig.do?type=4',
- method : 'POST'
+ proxy: new Ext.data.HttpProxy({
+ url: WWWROOT + '/disinfectSystem/baseData/supplyRoomConfigAction!loadSupplyRoomConfig.do?type=4',
+ method: 'POST'
}),
- reader : rd
+ reader: rd
});
//使用记录转申请单不发货科室配置
- supplyRoomStoreUseRecordToApplicationNotInvoice = new Ext.data.Store({
- proxy : new Ext.data.HttpProxy({
- url : WWWROOT + '/disinfectSystem/baseData/supplyRoomConfigAction!loadSupplyRoomConfig.do?type=5',
- method : 'POST'
- }),
- reader : rd
- });
- // 器械位置流转科室
+ supplyRoomStoreUseRecordToApplicationNotInvoice = new Ext.data.Store({
+ proxy: new Ext.data.HttpProxy({
+ url: WWWROOT + '/disinfectSystem/baseData/supplyRoomConfigAction!loadSupplyRoomConfig.do?type=5',
+ method: 'POST'
+ }),
+ reader: rd
+ });
+ // 器械位置流转科室
supplyRoomStoreTousseOperation = new Ext.data.Store({
- proxy : new Ext.data.HttpProxy({
- url : WWWROOT + '/disinfectSystem/baseData/supplyRoomConfigAction!loadSupplyRoomConfig.do?type=6',
- method : 'POST'
+ proxy: new Ext.data.HttpProxy({
+ url: WWWROOT + '/disinfectSystem/baseData/supplyRoomConfigAction!loadSupplyRoomConfig.do?type=6',
+ method: 'POST'
}),
- reader : rd
+ reader: rd
});
supplyRoomStoreRecyclingApplicationNotInvoice = new Ext.data.Store({
- proxy : new Ext.data.HttpProxy({
- url : WWWROOT + '/disinfectSystem/baseData/supplyRoomConfigAction!loadSupplyRoomConfig.do?type=7',
- method : 'POST'
+ proxy: new Ext.data.HttpProxy({
+ url: WWWROOT + '/disinfectSystem/baseData/supplyRoomConfigAction!loadSupplyRoomConfig.do?type=7',
+ method: 'POST'
}),
- reader : rd
+ reader: rd
});
-
+
//高值耗材处理科室的store
supplyRoomStoreExpensiveGoods = new Ext.data.Store({
- proxy : new Ext.data.HttpProxy({
- url : WWWROOT + '/disinfectSystem/baseData/supplyRoomConfigAction!loadSupplyRoomConfigRoom.do',
- method : 'POST'
+ proxy: new Ext.data.HttpProxy({
+ url: WWWROOT + '/disinfectSystem/baseData/supplyRoomConfigAction!loadSupplyRoomConfigRoom.do',
+ method: 'POST'
}),
- baseParams :{type:"8"},
- reader : rd
+ baseParams: { type: "8" },
+ reader: rd
});
-
+
//一级供应室配置的表格列头
- var cmFirstSupplyRoom = new Ext.grid.ColumnModel( [ {
- id : 'id',
- dataIndex : 'id',
- hidden :true
- },{
- header : "科室编码",
- id : 'departId',
- dataIndex : 'departId',
- width : 20,
- hidden :false
- },{
- header : "科室名称",
- dataIndex : 'name',
- width : 200,
- menuDisabled : true
- },{
- id : 'deleteItem',
- header:'操作',
- width : 100,
- renderer: function(v,p,record){
+ var cmFirstSupplyRoom = new Ext.grid.ColumnModel([{
+ id: 'id',
+ dataIndex: 'id',
+ hidden: true
+ }, {
+ header: "科室编码",
+ id: 'departId',
+ dataIndex: 'departId',
+ width: 20,
+ hidden: false
+ }, {
+ header: "科室名称",
+ dataIndex: 'name',
+ width: 200,
+ menuDisabled: true
+ }, {
+ id: 'deleteItem',
+ header: '操作',
+ width: 100,
+ renderer: function (v, p, record) {
var str = "
";
- str += "
";
+ str += "
";
return str;
},
- menuDisabled:true,
- dataIndex:'id'
- } ]);
-
- var cmSecondSupplyRoom = new Ext.grid.ColumnModel( [ {
- id : 'id',
- dataIndex : 'id',
- hidden :true
- },{
- header : "科室编码",
- id : 'departId',
- dataIndex : 'departId',
- width : 20,
- hidden :false
- },{
- header : "科室名称",
- dataIndex : 'name',
- width : 220,
- menuDisabled : true
- },{
- header : "显示发货计划",
- dataIndex : 'showInvoicePlan',
- width : 100,
- menuDisabled : true,
- editor : new Ext.form.ComboBox({
- xtype : 'combo',
- valueField : 'value',
- displayField : 'value',
- mode : 'local',
- anchor : '100%',
- editable : false,
- store : new Ext.data.SimpleStore( {
- fields : [ 'value'],
- data : [['是'],['否']]
+ menuDisabled: true,
+ dataIndex: 'id'
+ }]);
+
+ var cmSecondSupplyRoom = new Ext.grid.ColumnModel([{
+ id: 'id',
+ dataIndex: 'id',
+ hidden: true
+ }, {
+ header: "科室编码",
+ id: 'departId',
+ dataIndex: 'departId',
+ width: 20,
+ hidden: false
+ }, {
+ header: "科室名称",
+ dataIndex: 'name',
+ width: 220,
+ menuDisabled: true
+ }, {
+ header: "显示发货计划",
+ dataIndex: 'showInvoicePlan',
+ width: 100,
+ menuDisabled: true,
+ editor: new Ext.form.ComboBox({
+ xtype: 'combo',
+ valueField: 'value',
+ displayField: 'value',
+ mode: 'local',
+ anchor: '100%',
+ editable: false,
+ store: new Ext.data.SimpleStore({
+ fields: ['value'],
+ data: [['是'], ['否']]
}),
- forceSelection : true,
- allowBlank : false,
- triggerAction : 'all'
+ forceSelection: true,
+ allowBlank: false,
+ triggerAction: 'all'
})
- },{
- header : "科室拼音",
- dataIndex : 'spell',
- width : 20,
- hidden :true,
- menuDisabled : true
- },{
- id : 'deleteItem',
- header:'删除',
- width : 100,
- renderer: function(v,p,record){
+ }, {
+ header: "科室拼音",
+ dataIndex: 'spell',
+ width: 20,
+ hidden: true,
+ menuDisabled: true
+ }, {
+ id: 'deleteItem',
+ header: '删除',
+ width: 100,
+ renderer: function (v, p, record) {
var str = "
";
- str += "
";
+ str += "
";
return str;
},
- menuDisabled : true,
- dataIndex:'id'
- } ]);
-
- var cmApply = new Ext.grid.ColumnModel( [ {
- id : 'id',
- dataIndex : 'id',
- hidden :true
- },{
- id : 'departId',
- dataIndex : 'departId',
- header : "科室编码",
- width : 20,
- hidden :false
- },{
- id : 'sequence',
- dataIndex : 'sequence',
- hidden :true
- },{
- header : "拼音",
- id : 'spell',
- dataIndex : 'spell',
- hidden :true
- },{
- header : "科室名称",
- dataIndex : 'name',
- width : 160,
- menuDisabled : true
+ menuDisabled: true,
+ dataIndex: 'id'
+ }]);
+
+ var cmApply = new Ext.grid.ColumnModel([{
+ id: 'id',
+ dataIndex: 'id',
+ hidden: true
+ }, {
+ id: 'departId',
+ dataIndex: 'departId',
+ header: "科室编码",
+ width: 20,
+ hidden: false
+ }, {
+ id: 'sequence',
+ dataIndex: 'sequence',
+ hidden: true
+ }, {
+ header: "拼音",
+ id: 'spell',
+ dataIndex: 'spell',
+ hidden: true
+ }, {
+ header: "科室名称",
+ dataIndex: 'name',
+ width: 160,
+ menuDisabled: true
},
{
- header : "设置默认结算科室",
- dataIndex : 'settleAccountsDepart',
- width : 60,
- menuDisabled : true,
- editor : new Ext.form.ComboBox({
- fieldLabel : '设置默认结算科室',
- queryParam : 'spell',
- minChars : 0,
- valueField : 'settleAccountsDepart',
- displayField : 'settleAccountsDepart',
- store : new Ext.data.Store({
- proxy : new Ext.data.HttpProxy({
- url : WWWROOT + '/disinfectSystem/baseData/supplyRoomConfigAction!getSettleAccountsDepartJson.do',
- method : "POST"
+ header: "设置默认结算科室",
+ dataIndex: 'settleAccountsDepart',
+ width: 60,
+ menuDisabled: true,
+ editor: new Ext.form.ComboBox({
+ fieldLabel: '设置默认结算科室',
+ queryParam: 'spell',
+ minChars: 0,
+ valueField: 'settleAccountsDepart',
+ displayField: 'settleAccountsDepart',
+ store: new Ext.data.Store({
+ proxy: new Ext.data.HttpProxy({
+ url: WWWROOT + '/disinfectSystem/baseData/supplyRoomConfigAction!getSettleAccountsDepartJson.do',
+ method: "POST"
}),
- reader : new Ext.data.JsonReader({
- root : 'data'
- },[{name : 'settleAccountsDepartCoding',mapping : 'id'},
- {name : 'settleAccountsDepart',mapping : 'name'}])
+ reader: new Ext.data.JsonReader({
+ root: 'data'
+ }, [{ name: 'settleAccountsDepartCoding', mapping: 'id' },
+ { name: 'settleAccountsDepart', mapping: 'name' }])
}),
- forceSelection : false,
- lazyInit : true,
- triggerAction : 'all',
- hideTrigger : true,
- typeAhead : false,
- width : 200,
+ forceSelection: false,
+ lazyInit: true,
+ triggerAction: 'all',
+ hideTrigger: true,
+ typeAhead: false,
+ width: 200,
matchFieldWidth: false,
- listConfig: {width: 300},
- allowBlank : true,
- flex : 1,
- listeners:{
- select:function(combo, records, index){
+ listConfig: { width: 300 },
+ allowBlank: true,
+ flex: 1,
+ listeners: {
+ select: function (combo, records, index) {
var record = transformRecords(records);
//将值设置到supplyRoomStoreApply
- var settleAccountsDepartCoding=record.data.settleAccountsDepartCoding;
- var settleAccountsDepart=record.data.settleAccountsDepart;
+ var settleAccountsDepartCoding = record.data.settleAccountsDepartCoding;
+ var settleAccountsDepart = record.data.settleAccountsDepart;
var obj = Ext.getCmp('supplyRoomApply');
var rows = obj.getSelectionModel().getSelections();// 返回值为
- addOrUpdateSupplyRoomStoreApply(rows[0].data.id,rows[0].data.name,settleAccountsDepart,settleAccountsDepartCoding);
+ addOrUpdateSupplyRoomStoreApply(rows[0].data.id, rows[0].data.name, settleAccountsDepart, settleAccountsDepartCoding);
}
- }
+ }
})
- },{
- id : 'deleteItem3',
- header:'操作',
- width : 100,
- renderer: function(v,p,record){
- var str = "
"
- + "
"
- + "
"
- + "
";
- return str;
+ }, {
+ id: 'deleteItem3',
+ header: '操作',
+ width: 100,
+ renderer: function (v, p, record) {
+ var str = "
"
+ + "
"
+ + "
"
+ + "
";
+ return str;
},
- menuDisabled:true,
- dataIndex:'id'
- }
+ menuDisabled: true,
+ dataIndex: 'id'
+ }
]);
-
- var cmSettleAccount = new Ext.grid.ColumnModel( [ {
- id : 'id',
- dataIndex : 'id',
- hidden :true
- },{
- header : "科室编码",
- id : 'departId',
- width : 20,
- dataIndex : 'departId'
- },{
- header : "科室名称",
- dataIndex : 'name',
- width : 220,
- menuDisabled : true
- },{
- id : 'deleteItem',
- header:'删除',
- width : 100,
- renderer: function(v,p,record){
+
+ var cmSettleAccount = new Ext.grid.ColumnModel([{
+ id: 'id',
+ dataIndex: 'id',
+ hidden: true
+ }, {
+ header: "科室编码",
+ id: 'departId',
+ width: 20,
+ dataIndex: 'departId'
+ }, {
+ header: "科室名称",
+ dataIndex: 'name',
+ width: 220,
+ menuDisabled: true
+ }, {
+ id: 'deleteItem',
+ header: '删除',
+ width: 100,
+ renderer: function (v, p, record) {
var str = "
";
return str;
},
- menuDisabled : true,
- dataIndex:'id'
+ menuDisabled: true,
+ dataIndex: 'id'
}]);
-
- var cmTousseOperation = new Ext.grid.ColumnModel( [ {
- id : 'id',
- dataIndex : 'id',
- hidden :true
- },{
- header : "科室编码",
- id : 'departId',
- width : 20,
- dataIndex : 'departId',
- hidden :false
- },{
- header : "科室名称",
- dataIndex : 'name',
- width : 220,
- menuDisabled : true
- },{
- header : "拼音",
- id : 'spell',
- dataIndex : 'spell',
- hidden :true
- },{
- id : 'deleteItem',
- header:'删除',
- width : 100,
- renderer: function(v,p,record){
+
+ var cmTousseOperation = new Ext.grid.ColumnModel([{
+ id: 'id',
+ dataIndex: 'id',
+ hidden: true
+ }, {
+ header: "科室编码",
+ id: 'departId',
+ width: 20,
+ dataIndex: 'departId',
+ hidden: false
+ }, {
+ header: "科室名称",
+ dataIndex: 'name',
+ width: 220,
+ menuDisabled: true
+ }, {
+ header: "拼音",
+ id: 'spell',
+ dataIndex: 'spell',
+ hidden: true
+ }, {
+ id: 'deleteItem',
+ header: '删除',
+ width: 100,
+ renderer: function (v, p, record) {
var str = "
";
return str;
},
- menuDisabled : true,
- dataIndex:'id'
- } ]);
-
- function setRecordSequenceAndGetSupplyRoomItemsStr(store){
+ menuDisabled: true,
+ dataIndex: 'id'
+ }]);
+
+ function setRecordSequenceAndGetSupplyRoomItemsStr(store) {
setRecordSequence(store);// 设置序号
return buildJSONStringFromStore(store);
}
@@ -581,7 +581,7 @@
$Id('supplyRoom_type_apply').value = setRecordSequenceAndGetSupplyRoomItemsStr(supplyRoomStoreApply);
// 结算科室配置
$Id('supplyRoom_type_settleAccount').value = setRecordSequenceAndGetSupplyRoomItemsStr(supplyRoomStoreSettleAccount);
-
+
var supplyRoomStoreUseRecordToApplicationNotInvoice = Ext.getCmp("supplyRoomUseRecordToApplicationNotInvoice").getStore();
$Id('supplyRoom_type_userecord_to_application_not_invoice').value = setRecordSequenceAndGetSupplyRoomItemsStr(supplyRoomStoreUseRecordToApplicationNotInvoice);
// 器械位置流转科室
@@ -591,239 +591,264 @@
//高值耗材处理科室
$Id('supplyRoom_type_ExpensiveGoods').value = setRecordSequenceAndGetSupplyRoomItemsStr(supplyRoomStoreExpensiveGoods);
}
-
+
var taskGroupJsonStore = new Ext.data.SimpleStore({
- fields : [ 'taskGroupName','departCode','departName' ],
- url : WWWROOT + '/disinfectSystem/baseData/tousseDefinitionAction!getTaskGroupList.do',
- listeners:{
- load:function(store,records) {
- if(records.length>0 && id==0) {
+ fields: ['taskGroupName', 'departCode', 'departName'],
+ url: WWWROOT + '/disinfectSystem/baseData/tousseDefinitionAction!getTaskGroupList.do',
+ listeners: {
+ load: function (store, records) {
+ if (records.length > 0 && id == 0) {
Ext.getCmp('customTousseDefaultTaskGroup').setValue(records[0].data.taskGroupName);
}
}
}
});
-
+
var sterilizerTypeStore = new Ext.data.SimpleStore({
- fields : [ 'id','typeName' ],
- url : WWWROOT + '/disinfectSystem/baseData/sterilizerAction!getSterilizerType.do'
+ fields: ['id', 'typeName'],
+ url: WWWROOT + '/disinfectSystem/baseData/sterilizerAction!getSterilizerType.do'
});
- sterilizerTypeStore.load();
-
- var barcodePaperTypeStore = new Ext.data.JsonStore({
- fields : [ 'name'],
- url : WWWROOT + '/disinfectSystem/labelTemplateAction!getAllForeignTousseBarcodePaperType.do',
- listeners:{
- load:function(store,records) {
+ sterilizerTypeStore.load();
+
+ var barcodePaperTypeStore = new Ext.data.JsonStore({
+ fields: ['name'],
+ url: WWWROOT + '/disinfectSystem/labelTemplateAction!getAllForeignTousseBarcodePaperType.do',
+ listeners: {
+ load: function (store, records) {
}
}
});
- //获取普通器械包源的标签模板
- var labelTemplateTousseTypeStore = new Ext.data.JsonStore({
- fields : [ 'name'],
- url : WWWROOT + '/disinfectSystem/labelTemplateAction!getAllTousseTypeStore.do',
- listeners:{
- load:function(store,records) {
+ //获取普通器械包源的标签模板
+ var labelTemplateTousseTypeStore = new Ext.data.JsonStore({
+ fields: ['name'],
+ url: WWWROOT + '/disinfectSystem/labelTemplateAction!getAllTousseTypeStore.do',
+ listeners: {
+ load: function (store, records) {
}
}
});
- //标签纸类型combo的store
+ //标签纸类型combo的store
var customBarcodePaperTypeStore = new Ext.data.JsonStore({
- fields : [ 'name'],
- url : WWWROOT + '/disinfectSystem/labelTemplateAction!getTousseBarcodePaperType.do',
- listeners:{
- load:function(store,records) {
+ fields: ['name'],
+ url: WWWROOT + '/disinfectSystem/labelTemplateAction!getTousseBarcodePaperType.do',
+ listeners: {
+ load: function (store, records) {
}
}
});
- /**
- * 不合并的申请单的store
- */
+ /**
+ * 不合并的申请单的store
+ */
var noMergeApplicationTypesStore = new Ext.data.SimpleStore({
- fields : ['value'],
- data : [['全部'],['器械包申请单'],['一次性物品申请单'],['通用申请单']]
+ fields: ['value'],
+ data: [['全部'], ['器械包申请单'], ['一次性物品申请单'], ['通用申请单']]
});
-
- var expensiveGoodsPaperTypeStore = new Ext.data.JsonStore({
- fields : [ 'name'],
- url : WWWROOT + '/disinfectSystem/labelTemplateAction!getAllExpensiveGoodsPaperTypeStore.do'
+
+ var expensiveGoodsPaperTypeStore = new Ext.data.JsonStore({
+ fields: ['name'],
+ url: WWWROOT + '/disinfectSystem/labelTemplateAction!getAllExpensiveGoodsPaperTypeStore.do'
});
-
+
//加急等级数据源
var urgentStore = new Ext.data.JsonStore({
- fields : ['id','name'],
- root:'data',
- url : WWWROOT + '/disinfectSystem/baseData/urgentLevelAction!loadAllExceptDisabledUrgent.do'
+ fields: ['id', 'name'],
+ root: 'data',
+ url: WWWROOT + '/disinfectSystem/baseData/urgentLevelAction!loadAllExceptDisabledUrgent.do'
});
var tabsItemArr = new Array();
- var itemWidth = (document.body.offsetWidth>1400)?document.body.offsetWidth-60:1420;
+ var itemWidth = (document.body.offsetWidth > 1400) ? document.body.offsetWidth - 60 : 1420;
tabsItemArr.push({
- title: '系统参数设置',
- autoScroll : true,
- items:[
+ title: '系统参数设置',
+ autoScroll: true,
+ items: [
- new Ext.Panel({
- frame : true,
- width : document.body.offsetWidth-20,
- height : document.body.offsetHeight-90,
- autoScroll : true,
- layout :'column',
- labelAlign:'right',
- items:[{
- xtype:'hidden',
- id :'supplyRoom_type_first_supplyRoom',
- name :'supplyRoom_type_first_supplyRoom'
- },{
- xtype:'hidden',
- id :'supplyRoom_type_second_supplyRoom',
- name :'supplyRoom_type_second_supplyRoom'
- },{
- xtype:'hidden',
- id :'supplyRoom_type_apply',
- name :'supplyRoom_type_apply'
- },{
- xtype:'hidden',
- id :'supplyRoom_type_settleAccount',
- name :'supplyRoom_type_settleAccount'
- },{
- xtype:'hidden',
- id :'supplyRoom_type_userecord_to_application_not_invoice',
- name :'supplyRoom_type_userecord_to_application_not_invoice'
- },{
- xtype:'hidden',
- id :'supplyRoom_type_tousse_operation',
- name :'supplyRoom_type_tousse_operation'
- },{
- xtype:'hidden',
- id :'supplyRoom_type_recycling_application_not_invoice',
- name :'supplyRoom_type_recycling_application_not_invoice'
- },{
- xtype:'hidden',
- id :'supplyRoom_type_ExpensiveGoods',
- name :'supplyRoom_type_ExpensiveGoods'
- },{
- xtype:'hidden',
- id :'mergeTousseRuleForInvoiceBatchPrint',
- name :'mergeTousseRuleForInvoiceBatchPrint'
- },{
- xtype:'hidden',
- id :'ftApplyDepartment',
- name :'ftApplyDepartment'
- },{
- xtype:'hidden',
- id :'ftApplyDepartmentCode',
- name :'ftApplyDepartmentCode'
- },{
- xtype : "fieldset",
- title : '系统参数设置',
- layout:'column',
- width : itemWidth,
- height : fontSize == 12 ? 135 : 150,
+ new Ext.Panel({
+ frame: true,
+ width: document.body.offsetWidth - 20,
+ height: document.body.offsetHeight - 90,
+ autoScroll: true,
+ layout: 'column',
+ labelAlign: 'right',
+ items: [{
+ xtype: 'hidden',
+ id: 'supplyRoom_type_first_supplyRoom',
+ name: 'supplyRoom_type_first_supplyRoom'
+ }, {
+ xtype: 'hidden',
+ id: 'supplyRoom_type_second_supplyRoom',
+ name: 'supplyRoom_type_second_supplyRoom'
+ }, {
+ xtype: 'hidden',
+ id: 'supplyRoom_type_apply',
+ name: 'supplyRoom_type_apply'
+ }, {
+ xtype: 'hidden',
+ id: 'supplyRoom_type_settleAccount',
+ name: 'supplyRoom_type_settleAccount'
+ }, {
+ xtype: 'hidden',
+ id: 'supplyRoom_type_userecord_to_application_not_invoice',
+ name: 'supplyRoom_type_userecord_to_application_not_invoice'
+ }, {
+ xtype: 'hidden',
+ id: 'supplyRoom_type_tousse_operation',
+ name: 'supplyRoom_type_tousse_operation'
+ }, {
+ xtype: 'hidden',
+ id: 'supplyRoom_type_recycling_application_not_invoice',
+ name: 'supplyRoom_type_recycling_application_not_invoice'
+ }, {
+ xtype: 'hidden',
+ id: 'supplyRoom_type_ExpensiveGoods',
+ name: 'supplyRoom_type_ExpensiveGoods'
+ }, {
+ xtype: 'hidden',
+ id: 'mergeTousseRuleForInvoiceBatchPrint',
+ name: 'mergeTousseRuleForInvoiceBatchPrint'
+ }, {
+ xtype: 'hidden',
+ id: 'ftApplyDepartment',
+ name: 'ftApplyDepartment'
+ }, {
+ xtype: 'hidden',
+ id: 'ftApplyDepartmentCode',
+ name: 'ftApplyDepartmentCode'
+ }, {
+ xtype: "fieldset",
+ title: '系统参数设置',
+ layout: 'column',
+ width: itemWidth,
+ height: fontSize == 12 ? 135 : 150,
// columnWidth : 1,
- labelWidth : 95,
- items : [
- {
- layout:'form',
- labelWidth : fontSize == 12 ? 180 : 210,
- labelAlign:"right",
- columnWidth: .25,
- items:[{
- xtype : 'textfield',
- fieldLabel : '单位名称',
- id : 'unitName',
- name : 'unitName',
- anchor : '100%',
- allowBlank : true
- }]
- },{
- layout:'form',
- labelWidth : 180,
- columnWidth: .25,
- items:[{
- xtype :'timefield',
- fieldLabel :'一天的开始时间',
- id :'dayStartTime',
- name :'dayStartTime',
- format : 'H:i',
- anchor : '100%',
- allowBlank : false,
- emptyText :'时间格式如:05:30'
- }]
- },{
- layout : 'form',
- labelWidth : 180,
- columnWidth : .25,
- items : [{
- xtype : 'combo',
- valueField : 'name',
- displayField : 'name',
- mode : 'local',
- fieldLabel : '图片保存方式',
- id : 'saveImageMethod',
- name : 'saveImageMethod',
- allowNegative : false,
- allowBlank : false,
- editable:false,
- forceSelection : true,
- triggerAction : 'all',
- anchor : '100%',
- listWidth:150,
- store : new Ext.data.SimpleStore( {
- fields : [ 'name'],
- data : [['保存到数据库'],['保存到本地磁盘']]}),
- listeners:{
- select : function (combo, record, index ){
- if(combo.getRawValue() == '保存到本地磁盘'){
- setSaveDisk(false);
- }else{
- setSaveDisk(true);
- }
+ labelWidth: 95,
+ items: [
+ {
+ layout: 'form',
+ labelWidth: fontSize == 12 ? 180 : 210,
+ labelAlign: "right",
+ columnWidth: .25,
+ items: [{
+ xtype: 'textfield',
+ fieldLabel: '单位名称',
+ id: 'unitName',
+ name: 'unitName',
+ anchor: '100%',
+ allowBlank: true
+ }]
+ }, {
+ layout: 'form',
+ labelWidth: 180,
+ columnWidth: .25,
+ items: [{
+ xtype: 'timefield',
+ fieldLabel: '一天的开始时间',
+ id: 'dayStartTime',
+ name: 'dayStartTime',
+ format: 'H:i',
+ anchor: '100%',
+ allowBlank: false,
+ emptyText: '时间格式如:05:30'
+ }]
+ }, {
+ layout: 'form',
+ labelWidth: 180,
+ columnWidth: .25,
+ items: [{
+ xtype: 'combo',
+ valueField: 'name',
+ displayField: 'name',
+ mode: 'local',
+ fieldLabel: '图片保存方式',
+ id: 'saveImageMethod',
+ name: 'saveImageMethod',
+ allowNegative: false,
+ allowBlank: false,
+ editable: false,
+ forceSelection: true,
+ triggerAction: 'all',
+ anchor: '100%',
+ listWidth: 150,
+ store: new Ext.data.SimpleStore({
+ fields: ['name'],
+ data: [['保存到数据库'], ['保存到本地磁盘']]
+ }),
+ listeners: {
+ select: function (combo, record, index) {
+ if (combo.getRawValue() == '保存到本地磁盘') {
+ setSaveDisk(false);
+ } else {
+ setSaveDisk(true);
}
}
+ }
}]
- },{
+ }, {
- id : 'saveDirectory2',
- layout:'form',
- labelWidth : fontSize == 12 ? 180 : 220,
- labelAlign:"right",
- columnWidth: .25,
- items:[{
- xtype : 'textfield',
- allowDecimals : false,
- fieldLabel : '保存路径',
- id : 'saveImagePath',
- name : 'saveImagePath',
- anchor : '100%',
- allowBlank : true
- }]
-
- },{
- layout:'form',
- labelWidth : fontSize == 12 ? 180 : 210,
- labelAlign:"right",
- columnWidth: .25,
- items:[{
- xtype : 'combo',
- fieldLabel : '是否清洗时间结束后装配',
- id : 'isPackingAfterWashTimeEnd',
- name : 'isPackingAfterWashTimeEnd',
- valueField : 'value',
- displayField : 'value',
- mode : 'local',
- anchor : '100%',
- editable : false,
- store : new Ext.data.SimpleStore( {
- fields : [ 'value'],
- data : [['是'],['否']]
- }),
- forceSelection : true,
- allowBlank : false,
- triggerAction : 'all'
- }]
- },{
+ id: 'saveDirectory2',
+ layout: 'form',
+ labelWidth: fontSize == 12 ? 180 : 220,
+ labelAlign: "right",
+ columnWidth: .25,
+ items: [{
+ xtype: 'textfield',
+ allowDecimals: false,
+ fieldLabel: '保存路径',
+ id: 'saveImagePath',
+ name: 'saveImagePath',
+ anchor: '100%',
+ allowBlank: true
+ }]
+
+ }, {
+ layout: 'form',
+ labelWidth: fontSize == 12 ? 180 : 210,
+ labelAlign: "right",
+ columnWidth: .25,
+ items: [{
+ xtype: 'combo',
+ fieldLabel: '是否清洗时间结束后装配',
+ id: 'isPackingAfterWashTimeEnd',
+ name: 'isPackingAfterWashTimeEnd',
+ valueField: 'value',
+ displayField: 'value',
+ mode: 'local',
+ anchor: '100%',
+ editable: false,
+ store: new Ext.data.SimpleStore({
+ fields: ['value'],
+ data: [['是'], ['否']]
+ }),
+ forceSelection: true,
+ allowBlank: false,
+ triggerAction: 'all'
+ }]
+ }, {
+ layout: 'form',
+ labelWidth: 180,
+ columnWidth: .25,
+ items: [{
+ xtype: 'combo',
+ valueField: 'name',
+ displayField: 'name',
+ mode: 'local',
+ fieldLabel: '配包打印用户姓名',
+ id: 'printUserName',
+ name: 'printUserName',
+ allowNegative: false,
+ allowBlank: false,
+ editable: false,
+ // value :'是',
+ forceSelection: true,
+ triggerAction: 'all',
+ anchor: '100%',
+ store: new Ext.data.SimpleStore({
+ fields: ['name'],
+ data: [['是'], ['否']]
+ })
+ }]
+ },/* {
layout : 'form',
labelWidth : 180,
columnWidth : .25,
@@ -832,30 +857,6 @@
valueField : 'name',
displayField : 'name',
mode : 'local',
- fieldLabel : '配包打印用户姓名',
- id : 'printUserName',
- name : 'printUserName',
- allowNegative : false,
- allowBlank : false,
- editable:false,
-// value :'是',
- forceSelection : true,
- triggerAction : 'all',
- anchor : '100%',
- store : new Ext.data.SimpleStore({
- fields : [ 'name'],
- data : [['是'],['否']]
- })
- }]
- },/* {
- layout : 'form',
- labelWidth : 180,
- columnWidth : .25,
- items : [{
- xtype : 'combo',
- valueField : 'name',
- displayField : 'name',
- mode : 'local',
fieldLabel : '是否自动合并申请单',
id : 'autoMergeApplication',
name : 'autoMergeApplication',
@@ -883,1025 +884,939 @@
}]
} ,*/{
- layout : 'form',
- columnWidth : .25,
- labelWidth : fontSize == 12 ? 180 : 220,
- labelAlign:"right",
- items : [{
- xtype : 'combo',
- valueField : 'name',
- displayField : 'name',
- mode : 'local',
- fieldLabel : '二次清洗是否统计工作量',
- id : 'secondWashCountWorkload',
- name : 'secondWashCountWorkload',
- allowNegative : false,
- allowBlank : false,
- editable:false,
-// value :'是',
- forceSelection : true,
- triggerAction : 'all',
- anchor : '100%',
- store : new Ext.data.SimpleStore( {
- fields : [ 'name'],
- data : [['是'],['否']]
- })
- }]
-
- },{
- layout : 'form',
- labelWidth : fontSize == 12 ? 180 : 210,
- labelAlign:"right",
- columnWidth : .25,
- items : [{
- xtype : 'numberfield',
- fieldLabel : '每天例行监测灭菌完成分钟数',
- id : 'dailyMonitoringMinute',
- name : 'dailyMonitoringMinute',
- allowNegative : false,
- allowBlank : false,
- anchor : '100%'
- }]
- }, {
- layout:'form',
- labelWidth : 180,
- columnWidth: .25,
- items:[{
- xtype :'numberfield',
- fieldLabel :'一次性物品退货天数',
- id :'disposableGoodsExpTime',
- name :'disposableGoodsExpTime',
- allowDecimals : false,
- emptyText :'天数',
- anchor : '100%',
- allowBlank : false
- }]
- },{
- layout : 'form',
- labelWidth : 180,
- columnWidth : .25,
- items : [{
- xtype : 'numberfield',
- fieldLabel : '清洗筐装载器械包数量上限',
- id : 'basketLoadeTousseAmount',
- name : 'basketLoadeTousseAmount',
- allowNegative : false,
- anchor : '100%'
- }]
- },{
- layout:'form',
- labelWidth : fontSize == 12 ? 180 : 220,
- labelAlign:"right",
- columnWidth: .25,
- items:[{
- xtype : 'combo',
- fieldLabel : '二级供应室是否需要回收',
- id : 'isSecondSupplyRoomNeedRecycle',
- name : 'isSecondSupplyRoomNeedRecycle',
- valueField : 'name',
- displayField : 'name',
- mode : 'local',
- anchor : '100%',
- editable : false,
- store : new Ext.data.SimpleStore( {
- fields : [ 'name'],
- data : [['否'],['是']]
- }),
- forceSelection : true,
- allowBlank : false,
- triggerAction : 'all'
- }]
- },{
- layout:'form',
- labelWidth : fontSize == 12 ? 180 : 210,
- labelAlign:"right",
- columnWidth: .25,
- items:[{
- xtype : 'combo',
- fieldLabel : '一次性物品是否转换申请单',
- id : 'isDgConvertApplication',
- name : 'isDgConvertApplication',
- valueField : 'name',
- displayField : 'name',
- mode : 'local',
- anchor : '100%',
- editable : false,
- store : new Ext.data.SimpleStore( {
- fields : [ 'name'],
- data : [['否'],['是']]
- }),
- forceSelection : true,
- allowBlank : true,
- triggerAction : 'all',
- listeners:{
- select : function (combo, record, index ){
- if(combo.getRawValue() == '是'){
- Ext.getCmp('isTousseDgMergeConvertLabel').show();
- }else{
- Ext.getCmp('isTousseDgMergeConvertLabel').hide();
- }
- }
+ layout: 'form',
+ columnWidth: .25,
+ labelWidth: fontSize == 12 ? 180 : 220,
+ labelAlign: "right",
+ items: [{
+ xtype: 'combo',
+ valueField: 'name',
+ displayField: 'name',
+ mode: 'local',
+ fieldLabel: '二次清洗是否统计工作量',
+ id: 'secondWashCountWorkload',
+ name: 'secondWashCountWorkload',
+ allowNegative: false,
+ allowBlank: false,
+ editable: false,
+ // value :'是',
+ forceSelection: true,
+ triggerAction: 'all',
+ anchor: '100%',
+ store: new Ext.data.SimpleStore({
+ fields: ['name'],
+ data: [['是'], ['否']]
+ })
+ }]
+
+ }, {
+ layout: 'form',
+ labelWidth: fontSize == 12 ? 180 : 210,
+ labelAlign: "right",
+ columnWidth: .25,
+ items: [{
+ xtype: 'numberfield',
+ fieldLabel: '每天例行监测灭菌完成分钟数',
+ id: 'dailyMonitoringMinute',
+ name: 'dailyMonitoringMinute',
+ allowNegative: false,
+ allowBlank: false,
+ anchor: '100%'
+ }]
+ }, {
+ layout: 'form',
+ labelWidth: 180,
+ columnWidth: .25,
+ items: [{
+ xtype: 'numberfield',
+ fieldLabel: '一次性物品退货天数',
+ id: 'disposableGoodsExpTime',
+ name: 'disposableGoodsExpTime',
+ allowDecimals: false,
+ emptyText: '天数',
+ anchor: '100%',
+ allowBlank: false
+ }]
+ }, {
+ layout: 'form',
+ labelWidth: 180,
+ columnWidth: .25,
+ items: [{
+ xtype: 'numberfield',
+ fieldLabel: '清洗筐装载器械包数量上限',
+ id: 'basketLoadeTousseAmount',
+ name: 'basketLoadeTousseAmount',
+ allowNegative: false,
+ anchor: '100%'
+ }]
+ }, {
+ layout: 'form',
+ labelWidth: fontSize == 12 ? 180 : 220,
+ labelAlign: "right",
+ columnWidth: .25,
+ items: [{
+ xtype: 'combo',
+ fieldLabel: '二级供应室是否需要回收',
+ id: 'isSecondSupplyRoomNeedRecycle',
+ name: 'isSecondSupplyRoomNeedRecycle',
+ valueField: 'name',
+ displayField: 'name',
+ mode: 'local',
+ anchor: '100%',
+ editable: false,
+ store: new Ext.data.SimpleStore({
+ fields: ['name'],
+ data: [['否'], ['是']]
+ }),
+ forceSelection: true,
+ allowBlank: false,
+ triggerAction: 'all'
+ }]
+ }, {
+ layout: 'form',
+ labelWidth: fontSize == 12 ? 180 : 210,
+ labelAlign: "right",
+ columnWidth: .25,
+ items: [{
+ xtype: 'combo',
+ fieldLabel: '一次性物品是否转换申请单',
+ id: 'isDgConvertApplication',
+ name: 'isDgConvertApplication',
+ valueField: 'name',
+ displayField: 'name',
+ mode: 'local',
+ anchor: '100%',
+ editable: false,
+ store: new Ext.data.SimpleStore({
+ fields: ['name'],
+ data: [['否'], ['是']]
+ }),
+ forceSelection: true,
+ allowBlank: true,
+ triggerAction: 'all',
+ listeners: {
+ select: function (combo, record, index) {
+ if (combo.getRawValue() == '是') {
+ Ext.getCmp('isTousseDgMergeConvertLabel').show();
+ } else {
+ Ext.getCmp('isTousseDgMergeConvertLabel').hide();
}
- }]
- },{
- layout:'form',
- labelWidth : 180,
- columnWidth: .25,
- id:'isTousseDgMergeConvertLabel',
- items:[{
- xtype : 'combo',
- fieldLabel : '器械包和一次性物品转换合并',
- id : 'isTousseDgMergeConvert',
- name : 'isTousseDgMergeConvert',
- valueField : 'name',
- displayField : 'name',
- mode : 'local',
- anchor : '100%',
- editable : false,
- store : new Ext.data.SimpleStore( {
- fields : [ 'name'],
- data : [['否'],['是']]
- }),
- forceSelection : true,
- allowBlank : false,
- triggerAction : 'all'
- }]
- },{
- layout:'form',
- labelWidth : 180,
- columnWidth: .25,
- items:[{
- xtype :'numberfield',
- fieldLabel :'一次性物品的预警期(天数)',
- id :'disposableGoodsWarningDate',
- name :'disposableGoodsWarningDate',
- allowDecimals : false,
- emptyText :'天数',
- anchor : '100%',
- allowBlank : true
- }]
- },{
- layout : 'form',
- labelWidth : 180,
- columnWidth : .25,
- id :'supplierCertificationExpTimeLabel',
- items : [{
- xtype :'numberfield',
- fieldLabel :'供应商注册证预警天数',
- id :'supplierCertificationExpTime',
- name :'supplierCertificationExpTime',
- allowDecimals : false,
- emptyText :'天数',
- anchor : '100%',
- allowBlank : false
- }]
- },{
- layout : 'form',
- labelWidth : 180,
- columnWidth : .25,
- id :'expensiveGoodsBillWarningTimeLabel',
- items : [{
- xtype :'numberfield',
- fieldLabel :'高值耗材发票预警天数',
- id :'expensiveGoodsBillWarningTime',
- name :'expensiveGoodsBillWarningTime',
- allowDecimals : false,
- emptyText :'天数',
- anchor : '100%',
- allowBlank : false
- }]
- },{
- layout:'form',
- labelWidth : fontSize == 12 ? 180 : 210,
- labelAlign:"right",
+ }
+ }
+ }]
+ }, {
+ layout: 'form',
+ labelWidth: 180,
columnWidth: .25,
- hidden:!(sstsConfig.enableTousseVoluntarilyUrgent && sstsConfig.enableUrgentFunction),
- items:[{
- xtype:'hidden',
- name:'urgentLevelId',
- id:'urgentLevelId'
- },{
- xtype : 'combo',
- fieldLabel : '自动加急的加急级别',
- id : 'urgentLevelName',
- name : 'urgentLevelName',
- valueField : 'name',
- displayField : 'name',
- anchor : '100%',
- editable : false,
- store : urgentStore,
- forceSelection : true,
- allowBlank : true,
- triggerAction : 'all',
- listeners:{
- select : function (combo, record, index ){
+ id: 'isTousseDgMergeConvertLabel',
+ items: [{
+ xtype: 'combo',
+ fieldLabel: '器械包和一次性物品转换合并',
+ id: 'isTousseDgMergeConvert',
+ name: 'isTousseDgMergeConvert',
+ valueField: 'name',
+ displayField: 'name',
+ mode: 'local',
+ anchor: '100%',
+ editable: false,
+ store: new Ext.data.SimpleStore({
+ fields: ['name'],
+ data: [['否'], ['是']]
+ }),
+ forceSelection: true,
+ allowBlank: false,
+ triggerAction: 'all'
+ }]
+ }, {
+ layout: 'form',
+ labelWidth: 180,
+ columnWidth: .25,
+ items: [{
+ xtype: 'numberfield',
+ fieldLabel: '一次性物品的预警期(天数)',
+ id: 'disposableGoodsWarningDate',
+ name: 'disposableGoodsWarningDate',
+ allowDecimals: false,
+ emptyText: '天数',
+ anchor: '100%',
+ allowBlank: true
+ }]
+ }, {
+ layout: 'form',
+ labelWidth: 180,
+ columnWidth: .25,
+ id: 'supplierCertificationExpTimeLabel',
+ items: [{
+ xtype: 'numberfield',
+ fieldLabel: '供应商注册证预警天数',
+ id: 'supplierCertificationExpTime',
+ name: 'supplierCertificationExpTime',
+ allowDecimals: false,
+ emptyText: '天数',
+ anchor: '100%',
+ allowBlank: false
+ }]
+ }, {
+ layout: 'form',
+ labelWidth: 180,
+ columnWidth: .25,
+ id: 'expensiveGoodsBillWarningTimeLabel',
+ items: [{
+ xtype: 'numberfield',
+ fieldLabel: '高值耗材发票预警天数',
+ id: 'expensiveGoodsBillWarningTime',
+ name: 'expensiveGoodsBillWarningTime',
+ allowDecimals: false,
+ emptyText: '天数',
+ anchor: '100%',
+ allowBlank: false
+ }]
+ }, {
+ layout: 'form',
+ labelWidth: fontSize == 12 ? 180 : 210,
+ labelAlign: "right",
+ columnWidth: .25,
+ hidden: !(sstsConfig.enableTousseVoluntarilyUrgent && sstsConfig.enableUrgentFunction),
+ items: [{
+ xtype: 'hidden',
+ name: 'urgentLevelId',
+ id: 'urgentLevelId'
+ }, {
+ xtype: 'combo',
+ fieldLabel: '自动加急的加急级别',
+ id: 'urgentLevelName',
+ name: 'urgentLevelName',
+ valueField: 'name',
+ displayField: 'name',
+ anchor: '100%',
+ editable: false,
+ store: urgentStore,
+ forceSelection: true,
+ allowBlank: true,
+ triggerAction: 'all',
+ listeners: {
+ select: function (combo, record, index) {
var id = record.data.id;
Ext.getCmp('urgentLevelId').setValue(id);
}
}
}]
- },{
- layout:'form',
- labelWidth : 180,
- columnWidth: .25,
- id : 'expensiveGoodsPaperTypeLabel',
- items:[{
- xtype : 'combo',
- fieldLabel : '高值耗材打印标签',
- id : 'expensiveGoodsPaperType',
- name : 'expensiveGoodsPaperType',
- valueField : 'name',
- displayField : 'name',
-// store : new Ext.data.SimpleStore( {
-// fields : [ 'value'],
-// data : [['大标签'],['中标签'],['小标签']]
-// }),
- store:expensiveGoodsPaperTypeStore,
-// mode : 'local',
- editable : false,
- forceSelection : true,
- editable :false,
- allowBlank : false,
- triggerAction : 'all',
- anchor : '100%'
- }]
- }/*, {
- layout:'form',
- labelWidth : fontSize == 12 ? 180 : 210,
- labelAlign:"right",
- columnWidth: .25,
- id:'isORAppFormMergeLabel',
- items : [{
- xtype : 'combo',
- valueField : 'name',
- displayField : 'name',
- mode : 'local',
- fieldLabel : '手术室手工录入申请单合并',
- id : 'isORAppFormMerge',
- name : 'isORAppFormMerge',
- allowNegative : false,
- allowBlank : true,
- editable:false,
- forceSelection : true,
- triggerAction : 'all',
- anchor : '100%',
- store : new Ext.data.SimpleStore( {
- fields : [ 'name'],
- data : [['是'],['否']]
- })
- }]
- } ,{
- labelWidth : 180,
- columnWidth : .25,
- layout : 'form',
- id : 'noMergeApplicationTypesLabel',
- items : [{
- xtype : 'multiSelect',
- fieldLabel : "不合并的申请单类型",
- valueField : 'value',
- displayField : 'value',
- store : noMergeApplicationTypesStore,
- triggerAction : 'all',
- id : 'noMergeApplicationTypes',
- name : 'noMergeApplicationTypes',
- readOnly:true,
- mode : 'local',
- anchor : '100%',
- listeners: {
- render: function(thiz) {
- thiz.selectAll();
- },
- select: function (combo, record, index) {
- //1、如果选中“全部”的项,则把所有的项选中,反之全部取消选择
- if (record.get('value') == '全部') {
- if (record.get('checked')) {
- combo.selectAll();
- } else {
- combo.deselectAll();
- }
- }
-
- //2、如果已经选中所有的项,则把“全部”项选中,反之把“全部”项取消选择
- var selectAll = true;
- combo.store.each(function(record) {
- if (record.get('value') != '全部' && !record.get(this.checkField)) {
- selectAll = false;
- return;
- }
- }, combo);
-
- var all = combo.store.getAt(0);
- if (selectAll) {
- all.set(combo.checkField, true);
- } else {
- all.set(combo.checkField, false);
- }
- combo.setValue(combo.getCheckedValue());
- }
- }
- }]
- } */
+ }, {
+ layout: 'form',
+ labelWidth: 180,
+ columnWidth: .25,
+ id: 'expensiveGoodsPaperTypeLabel',
+ items: [{
+ xtype: 'combo',
+ fieldLabel: '高值耗材打印标签',
+ id: 'expensiveGoodsPaperType',
+ name: 'expensiveGoodsPaperType',
+ valueField: 'name',
+ displayField: 'name',
+ store: expensiveGoodsPaperTypeStore,
+ editable: false,
+ forceSelection: true,
+ editable: false,
+ allowBlank: false,
+ triggerAction: 'all',
+ anchor: '100%'
+ }]
+ }
]
- },{
- xtype : "fieldset",
- title : '合并申请单设置',
- layout:'column',
- width : itemWidth,
+ }, {
+ xtype: "fieldset",
+ title: '合并申请单设置',
+ layout: 'column',
+ width: itemWidth,
height: 100,
- // columnWidth : 1,
- labelWidth : 95,
- items : [
+ labelWidth: 95,
+ items: [
{
- layout : 'form',
- labelWidth : 180,
- columnWidth : .25,
- items : [{
- xtype : 'combo',
- valueField : 'name',
- displayField : 'name',
- mode : 'local',
- fieldLabel : '是否自动合并申请单',
- id : 'autoMergeApplication',
- name : 'autoMergeApplication',
- allowNegative : false,
- allowBlank : false,
- editable:false,
- forceSelection : true,
- triggerAction : 'all',
- anchor : '100%',
- store : new Ext.data.SimpleStore( {
- fields : [ 'name'],
- data : [['是'],['否']]
- }),
- listeners:{
- select : function (combo, record, index ){
- if(combo.getRawValue() == '否'){
- Ext.getCmp("isORAppFormMergeLabel").hide();
- Ext.getCmp("noMergeApplicationTypesLabel").hide();
- Ext.getCmp("autoMergeApplicationDeparts").hide();
- }else{
- Ext.getCmp("isORAppFormMergeLabel").show();
- Ext.getCmp("noMergeApplicationTypesLabel").show();
- Ext.getCmp("autoMergeApplicationDeparts").show();
- }
+ layout: 'form',
+ labelWidth: 180,
+ columnWidth: .25,
+ items: [{
+ xtype: 'combo',
+ valueField: 'name',
+ displayField: 'name',
+ mode: 'local',
+ fieldLabel: '是否自动合并申请单',
+ id: 'autoMergeApplication',
+ name: 'autoMergeApplication',
+ allowNegative: false,
+ allowBlank: false,
+ editable: false,
+ forceSelection: true,
+ triggerAction: 'all',
+ anchor: '100%',
+ store: new Ext.data.SimpleStore({
+ fields: ['name'],
+ data: [['是'], ['否']]
+ }),
+ listeners: {
+ select: function (combo, record, index) {
+ if (combo.getRawValue() == '否') {
+ Ext.getCmp("isORAppFormMergeLabel").hide();
+ Ext.getCmp("noMergeApplicationTypesLabel").hide();
+ Ext.getCmp("autoMergeApplicationDeparts").hide();
+ } else {
+ Ext.getCmp("isORAppFormMergeLabel").show();
+ Ext.getCmp("noMergeApplicationTypesLabel").show();
+ Ext.getCmp("autoMergeApplicationDeparts").show();
}
- }
+ }
+ }
}]
}, {
- layout:'form',
- labelWidth : fontSize == 12 ? 180 : 210,
- labelAlign:"right",
- columnWidth: .25,
- id:'isORAppFormMergeLabel',
- items : [{
- xtype : 'combo',
- valueField : 'name',
- displayField : 'name',
- mode : 'local',
- fieldLabel : '手术室手工录入申请单合并',
- id : 'isORAppFormMerge',
- name : 'isORAppFormMerge',
- allowNegative : false,
- allowBlank : true,
- editable:false,
- forceSelection : true,
- triggerAction : 'all',
- anchor : '100%',
- store : new Ext.data.SimpleStore( {
- fields : [ 'name'],
- data : [['是'],['否']]
- })
- }]
- } ,{
- labelWidth : 180,
- columnWidth : .25,
- layout : 'form',
- id : 'noMergeApplicationTypesLabel',
- items : [{
- xtype : 'multiSelect',
- fieldLabel : "不合并的申请单类型",
- valueField : 'value',
- displayField : 'value',
- store : noMergeApplicationTypesStore,
- triggerAction : 'all',
- id : 'noMergeApplicationTypes',
- name : 'noMergeApplicationTypes',
- readOnly:true,
- mode : 'local',
- anchor : '100%',
- listeners: {
- render: function(thiz) {
- thiz.selectAll();
- },
- select: function (combo, record, index) {
- //1、如果选中“全部”的项,则把所有的项选中,反之全部取消选择
- if (record.get('value') == '全部') {
- if (record.get('checked')) {
- combo.selectAll();
- } else {
- combo.deselectAll();
- }
- }
-
- //2、如果已经选中所有的项,则把“全部”项选中,反之把“全部”项取消选择
- var selectAll = true;
- combo.store.each(function(record) {
- if (record.get('value') != '全部' && !record.get(this.checkField)) {
- selectAll = false;
- return;
- }
- }, combo);
-
- var all = combo.store.getAt(0);
- if (selectAll) {
- all.set(combo.checkField, true);
- } else {
- all.set(combo.checkField, false);
- }
- combo.setValue(combo.getCheckedValue());
- }
- }
- }]
- },{
- columnWidth : 1,
- layout : 'form',
- labelWidth : 180,
- labelAlign:"right",
- id:"autoMergeApplicationDeparts",
- items:[{
- //用于保存时:传递所属科室编码
- xtype : 'hidden',
- id : 'autoMergeApplicationDepartsCodes',
- name : 'autoMergeApplicationDepartsCodes'
- },{
- xtype : 'trigger',
- fieldLabel : "自动合并申请单的科室",
- allowBlank : true,
- name : "autoMergeApplicationDepartsName",
- id : "autoMergeApplicationDepartsName",
- msgTarget:'side',
- readOnly:true,
- onTriggerClick : function(){
- setDepartOrgUnit('autoMergeApplicationDepartsCodes' , 'autoMergeApplicationDepartsName' , Ext.getCmp('autoMergeApplicationDepartsCodes').getValue());
+ layout: 'form',
+ labelWidth: fontSize == 12 ? 180 : 210,
+ labelAlign: "right",
+ columnWidth: .25,
+ id: 'isORAppFormMergeLabel',
+ items: [{
+ xtype: 'combo',
+ valueField: 'name',
+ displayField: 'name',
+ mode: 'local',
+ fieldLabel: '手术室手工录入申请单合并',
+ id: 'isORAppFormMerge',
+ name: 'isORAppFormMerge',
+ allowNegative: false,
+ allowBlank: true,
+ editable: false,
+ forceSelection: true,
+ triggerAction: 'all',
+ anchor: '100%',
+ store: new Ext.data.SimpleStore({
+ fields: ['name'],
+ data: [['是'], ['否']]
+ })
+ }]
+ }, {
+ labelWidth: 180,
+ columnWidth: .25,
+ layout: 'form',
+ id: 'noMergeApplicationTypesLabel',
+ items: [{
+ xtype: 'multiSelect',
+ fieldLabel: "不合并的申请单类型",
+ valueField: 'value',
+ displayField: 'value',
+ store: noMergeApplicationTypesStore,
+ triggerAction: 'all',
+ id: 'noMergeApplicationTypes',
+ name: 'noMergeApplicationTypes',
+ readOnly: true,
+ mode: 'local',
+ anchor: '100%',
+ listeners: {
+ render: function (thiz) {
+ thiz.selectAll();
},
- triggerClass : 'x-form-search-trigger',
- anchor : '100%'
- }]
+ select: function (combo, record, index) {
+ //1、如果选中“全部”的项,则把所有的项选中,反之全部取消选择
+ if (record.get('value') == '全部') {
+ if (record.get('checked')) {
+ combo.selectAll();
+ } else {
+ combo.deselectAll();
+ }
+ }
+
+ //2、如果已经选中所有的项,则把“全部”项选中,反之把“全部”项取消选择
+ var selectAll = true;
+ combo.store.each(function (record) {
+ if (record.get('value') != '全部' && !record.get(this.checkField)) {
+ selectAll = false;
+ return;
+ }
+ }, combo);
+
+ var all = combo.store.getAt(0);
+ if (selectAll) {
+ all.set(combo.checkField, true);
+ } else {
+ all.set(combo.checkField, false);
+ }
+ combo.setValue(combo.getCheckedValue());
+ }
+ }
+ }]
+ }, {
+ columnWidth: 1,
+ layout: 'form',
+ labelWidth: 180,
+ labelAlign: "right",
+ id: "autoMergeApplicationDeparts",
+ items: [{
+ //用于保存时:传递所属科室编码
+ xtype: 'hidden',
+ id: 'autoMergeApplicationDepartsCodes',
+ name: 'autoMergeApplicationDepartsCodes'
+ }, {
+ xtype: 'trigger',
+ fieldLabel: "自动合并申请单的科室",
+ allowBlank: true,
+ name: "autoMergeApplicationDepartsName",
+ id: "autoMergeApplicationDepartsName",
+ msgTarget: 'side',
+ readOnly: true,
+ onTriggerClick: function () {
+ setDepartOrgUnit('autoMergeApplicationDepartsCodes', 'autoMergeApplicationDepartsName', Ext.getCmp('autoMergeApplicationDepartsCodes').getValue());
+ },
+ triggerClass: 'x-form-search-trigger',
+ anchor: '100%'
+ }]
}
-
+
]
- },{
- xtype : "fieldset",
- title : '价格参数设置',
- layout:'column',
- width : itemWidth,
+ }, {
+ xtype: "fieldset",
+ title: '价格参数设置',
+ layout: 'column',
+ width: itemWidth,
height: 100,
// columnWidth : 1,
- labelWidth : 95,
- items : [
- {
- layout : 'form',
- labelWidth : 180,
- columnWidth : .25,
- items : [{
- xtype : 'numberfield',
- fieldLabel : '一次性物品价格浮动系数',
- decimalPrecision : 2,
- id : 'diposablePriceFluctuation',
- name : 'diposablePriceFluctuation',
- allowNegative : false,
- allowBlank : false,
- anchor : '100%'
- }]
- },{
- layout : 'form',
- labelWidth : 180,
- columnWidth : .25,
- items : [{
- xtype : 'numberfield',
- fieldLabel : '器械包价格浮动系数',
- id : 'toussePriceFluctuation',
- name : 'toussePriceFluctuation',
- allowNegative : false,
- allowBlank : false,
- anchor : '100%'
- }]
- }, {
- layout:'form',
- labelWidth : 180,
- columnWidth: .25,
- items:[{
- xtype : 'numberfield',
- fieldLabel : '外来器械包价格',
- id : 'foreignToussePrice',
- name : 'foreignToussePrice',
- anchor : '100%',
- allowBlank : false
- }]
- },{
- layout:'form',
- labelWidth : 180,
- columnWidth: .25,
- items:[{
- xtype : 'numberfield',
- fieldLabel : '自定义器械包价格',
- id : 'customToussePrice',
- name : 'customToussePrice',
- anchor : '100%',
- allowBlank : false
- }]
- },{
- layout:'form',
- labelWidth : 180,
- columnWidth: .25,
- items:[{
- xtype : 'numberfield',
- fieldLabel : '标识牌价格',
- id : 'idCardPrice',
- name : 'idCardPrice',
- anchor : '100%',
- allowBlank : false
- }]
- },{
- layout:'form',
- labelWidth : 180,
- columnWidth: .25,
- items:[{
- xtype : 'combo',
- fieldLabel : '报损器械计算科室成本',
- id : 'damagedTousseAtCost',
- name : 'damagedTousseAtCost',
- valueField : 'name',
- displayField : 'name',
- mode : 'local',
- anchor : '100%',
- editable : false,
- store : new Ext.data.SimpleStore( {
- fields : [ 'name'],
- data : [['否'],['是']]
- }),
- forceSelection : true,
- allowBlank : false,
- triggerAction : 'all'
- }]
- },{
- layout:'form',
- labelWidth : 180,
- columnWidth: .25,
- items:[{
- xtype : 'combo',
- fieldLabel : '包内材料扣减科室成本',
- id : 'insideTousseMaterialOutCost',
- name : 'insideTousseMaterialOutCost',
- valueField : 'name',
- displayField : 'name',
- mode : 'local',
- anchor : '100%',
- editable : false,
- store : new Ext.data.SimpleStore( {
- fields : [ 'name'],
- data : [['是'],['否']]
- }),
- forceSelection : true,
- allowBlank : false,
- triggerAction : 'all'
- }]
- }
+ labelWidth: 95,
+ items: [
+ {
+ layout: 'form',
+ labelWidth: 180,
+ columnWidth: .25,
+ items: [{
+ xtype: 'numberfield',
+ fieldLabel: '一次性物品价格浮动系数',
+ decimalPrecision: 2,
+ id: 'diposablePriceFluctuation',
+ name: 'diposablePriceFluctuation',
+ allowNegative: false,
+ allowBlank: false,
+ anchor: '100%'
+ }]
+ }, {
+ layout: 'form',
+ labelWidth: 180,
+ columnWidth: .25,
+ items: [{
+ xtype: 'numberfield',
+ fieldLabel: '器械包价格浮动系数',
+ id: 'toussePriceFluctuation',
+ name: 'toussePriceFluctuation',
+ allowNegative: false,
+ allowBlank: false,
+ anchor: '100%'
+ }]
+ }, {
+ layout: 'form',
+ labelWidth: 180,
+ columnWidth: .25,
+ items: [{
+ xtype: 'numberfield',
+ fieldLabel: '外来器械包价格',
+ id: 'foreignToussePrice',
+ name: 'foreignToussePrice',
+ anchor: '100%',
+ allowBlank: false
+ }]
+ }, {
+ layout: 'form',
+ labelWidth: 180,
+ columnWidth: .25,
+ items: [{
+ xtype: 'numberfield',
+ fieldLabel: '自定义器械包价格',
+ id: 'customToussePrice',
+ name: 'customToussePrice',
+ anchor: '100%',
+ allowBlank: false
+ }]
+ }, {
+ layout: 'form',
+ labelWidth: 180,
+ columnWidth: .25,
+ items: [{
+ xtype: 'numberfield',
+ fieldLabel: '标识牌价格',
+ id: 'idCardPrice',
+ name: 'idCardPrice',
+ anchor: '100%',
+ allowBlank: false
+ }]
+ }, {
+ layout: 'form',
+ labelWidth: 180,
+ columnWidth: .25,
+ items: [{
+ xtype: 'combo',
+ fieldLabel: '报损器械计算科室成本',
+ id: 'damagedTousseAtCost',
+ name: 'damagedTousseAtCost',
+ valueField: 'name',
+ displayField: 'name',
+ mode: 'local',
+ anchor: '100%',
+ editable: false,
+ store: new Ext.data.SimpleStore({
+ fields: ['name'],
+ data: [['否'], ['是']]
+ }),
+ forceSelection: true,
+ allowBlank: false,
+ triggerAction: 'all'
+ }]
+ }, {
+ layout: 'form',
+ labelWidth: 180,
+ columnWidth: .25,
+ items: [{
+ xtype: 'combo',
+ fieldLabel: '包内材料扣减科室成本',
+ id: 'insideTousseMaterialOutCost',
+ name: 'insideTousseMaterialOutCost',
+ valueField: 'name',
+ displayField: 'name',
+ mode: 'local',
+ anchor: '100%',
+ editable: false,
+ store: new Ext.data.SimpleStore({
+ fields: ['name'],
+ data: [['是'], ['否']]
+ }),
+ forceSelection: true,
+ allowBlank: false,
+ triggerAction: 'all'
+ }]
+ }
]
- },{
- xtype : "fieldset",
- title : '外来器械参数设置',
- layout:'column',
- width : itemWidth,
- height:130,
+ }, {
+ xtype: "fieldset",
+ title: '外来器械参数设置',
+ layout: 'column',
+ width: itemWidth,
+ height: 130,
// columnWidth : 1,
- labelWidth : 95,
- items : [
- {
- layout:'form',
- labelWidth : 180,
- columnWidth: .98,
- items:[{
- xtype : 'hidden',
- id : 'fTHandleDepartAndTaskGroup',
- name : 'fTHandleDepartAndTaskGroup'
- },{
- xtype : 'textfield',
- fieldLabel : '外来器械包处理科室与装配组',
- id : 'fTHandleDepartAndTaskGroupCombo',
- name : 'fTHandleDepartAndTaskGroupCombo',
- anchor : '100%',
- readOnly : true,
- allowBlank : true
- }]
- }, {
- layout:'form',
- columnWidth: .02,
- items:[{
- xtype : 'button',
- iconCls : 'icon_edit',
- handler : function(){
- setDepartAndTaskGroup('fTHandleDepartAndTaskGroup' , 'fTHandleDepartAndTaskGroupCombo' , Ext.getCmp('fTHandleDepartAndTaskGroup').getValue());
- }
- }]
- }, {
- layout:'form',
- labelWidth : 180,
- columnWidth: .25,
- items:[{
- xtype : 'combo',
- fieldLabel : '外来器械包是否整包清洗',
- id : 'foreignTousseCleanedEntirely',
- name : 'foreignTousseCleanedEntirely',
- valueField : 'value',
- displayField : 'value',
- store : new Ext.data.SimpleStore({
- fields : ['value'],
- data : [['是'],['否']]
- }),
- mode : 'local',
- editable : false,
- forceSelection : true,
- allowBlank : false,
- triggerAction : 'all',
- anchor : '100%'
- }]
- }, {
- layout:'form',
- labelWidth : 180,
- columnWidth: .25,
- items:[{
- xtype : 'combo',
- fieldLabel : '外来器械包是否审核',
- id : 'foreignTousseNeedReview',
- name : 'foreignTousseNeedReview',
- valueField : 'value',
- displayField : 'value',
- store : new Ext.data.SimpleStore({
- fields : ['value'],
- data : [['是'],['否']]
- }),
- mode : 'local',
- editable : false,
- forceSelection : true,
- allowBlank : false,
- triggerAction : 'all',
- anchor : '100%'
- }]
- },{
- layout:'form',
- labelWidth : 180,
- columnWidth: .25,
- items:[{
- xtype : 'combo',
- fieldLabel : '外来器械包打印标签',
- id : 'barcodePaperType',
- name : 'barcodePaperType',
- valueField : 'name',
- displayField : 'name',
-// store : new Ext.data.SimpleStore( {
-// fields : [ 'value'],
-// data : [['大标签'],['中标签'],['小标签']]
-// }),
- store:barcodePaperTypeStore,
-// mode : 'local',
- editable : false,
- forceSelection : true,
- editable :false,
- allowBlank : false,
- triggerAction : 'all',
- anchor : '100%'
- }]
- },{
- layout:'form',
- labelWidth : fontSize == 12 ? 180 : 220,
- columnWidth: .25,
- items:[{
- xtype : 'combo',
- id : "bigPackageSterilizerType",
- name : "bigPackageSterilizerType",
- fieldLabel : "超大、重外来器械灭菌方式",
- valueField : 'typeName',
- displayField : 'typeName',
- store : sterilizerTypeStore,
- forceSelection : false,
- editable : false,
- listWidth:150,
- triggerAction : 'all',
- anchor : '100%',
- allowBlank : false
- }]
- },{
- layout:'form',
- labelWidth : 180,
- columnWidth: .25,
- items:[{
- xtype : 'combo',
- fieldLabel : '外来器械默认包装类型',
- id : 'ftDefaultPackageType',
- name : 'ftDefaultPackageType',
- valueField : 'typeName',
- displayField : 'typeName',
- store : packageTypeStore,
- forceSelection : true,
- listWidth:150,
- allowBlank : true,
- editable : false,
- triggerAction : 'all',
- anchor : '100%'
- }]
- },{
- layout:'form',
- labelWidth : 180,
- columnWidth: .25,
- items:[{
- xtype : 'combo',
- fieldLabel : '外来器械默认灭菌程序',
- id : 'ftDefaultSterilingMethod',
- name : 'ftDefaultSterilingMethod',
- valueField : 'typeName',
- displayField : 'typeName',
- store : sterilingTypeStore,
- forceSelection : true,
- listWidth:150,
- allowBlank : true,
- editable : false,
- triggerAction : 'all',
- anchor : '100%'
- }]
- },{
- layout:'form',
- labelWidth : 180,
- columnWidth: .25,
- hidden: !sstsConfig.enableForeignTousseApplyDepartment,
- items:[{
- xtype : 'combo',
- fieldLabel : '外来器械默认申请科室',
- id : 'ftApplyDepartmentCombo',
- name : 'ftApplyDepartmentCombo',
- valueField : 'departmentCode',
- displayField : 'departmentName',
- store : new Ext.data.Store({
- proxy : new Ext.data.HttpProxy({
- url : WWWROOT + '/systemmanage/orgUnit/searchApplyDepartmentByKeyWord.do',
- method : 'POST'
- }),
- reader : new Ext.data.JsonReader({
- root : 'data',
- totalProperty : 'totalCount'
- },[
- {name : 'departmentCode',mapping : 'departmentCode'},
- {name : 'departmentName',mapping : 'departmentName'}
- ]
- )
+ labelWidth: 95,
+ items: [
+ {
+ layout: 'form',
+ labelWidth: 180,
+ columnWidth: .98,
+ items: [{
+ xtype: 'hidden',
+ id: 'fTHandleDepartAndTaskGroup',
+ name: 'fTHandleDepartAndTaskGroup'
+ }, {
+ xtype: 'textfield',
+ fieldLabel: '外来器械包处理科室与装配组',
+ id: 'fTHandleDepartAndTaskGroupCombo',
+ name: 'fTHandleDepartAndTaskGroupCombo',
+ anchor: '100%',
+ readOnly: true,
+ allowBlank: true
+ }]
+ }, {
+ layout: 'form',
+ columnWidth: .02,
+ items: [{
+ xtype: 'button',
+ iconCls: 'icon_edit',
+ handler: function () {
+ setDepartAndTaskGroup('fTHandleDepartAndTaskGroup', 'fTHandleDepartAndTaskGroupCombo', Ext.getCmp('fTHandleDepartAndTaskGroup').getValue());
+ }
+ }]
+ }, {
+ layout: 'form',
+ labelWidth: 180,
+ columnWidth: .25,
+ items: [{
+ xtype: 'combo',
+ fieldLabel: '外来器械包是否整包清洗',
+ id: 'foreignTousseCleanedEntirely',
+ name: 'foreignTousseCleanedEntirely',
+ valueField: 'value',
+ displayField: 'value',
+ store: new Ext.data.SimpleStore({
+ fields: ['value'],
+ data: [['是'], ['否']]
+ }),
+ mode: 'local',
+ editable: false,
+ forceSelection: true,
+ allowBlank: false,
+ triggerAction: 'all',
+ anchor: '100%'
+ }]
+ }, {
+ layout: 'form',
+ labelWidth: 180,
+ columnWidth: .25,
+ items: [{
+ xtype: 'combo',
+ fieldLabel: '外来器械包是否审核',
+ id: 'foreignTousseNeedReview',
+ name: 'foreignTousseNeedReview',
+ valueField: 'value',
+ displayField: 'value',
+ store: new Ext.data.SimpleStore({
+ fields: ['value'],
+ data: [['是'], ['否']]
+ }),
+ mode: 'local',
+ editable: false,
+ forceSelection: true,
+ allowBlank: false,
+ triggerAction: 'all',
+ anchor: '100%'
+ }]
+ }, {
+ layout: 'form',
+ labelWidth: 180,
+ columnWidth: .25,
+ items: [{
+ xtype: 'combo',
+ fieldLabel: '外来器械包打印标签',
+ id: 'barcodePaperType',
+ name: 'barcodePaperType',
+ valueField: 'name',
+ displayField: 'name',
+ store: barcodePaperTypeStore,
+ editable: false,
+ forceSelection: true,
+ editable: false,
+ allowBlank: false,
+ triggerAction: 'all',
+ anchor: '100%'
+ }]
+ }, {
+ layout: 'form',
+ labelWidth: fontSize == 12 ? 180 : 220,
+ columnWidth: .25,
+ items: [{
+ xtype: 'combo',
+ id: "bigPackageSterilizerType",
+ name: "bigPackageSterilizerType",
+ fieldLabel: "超大、重外来器械灭菌方式",
+ valueField: 'typeName',
+ displayField: 'typeName',
+ store: sterilizerTypeStore,
+ forceSelection: false,
+ editable: false,
+ listWidth: 150,
+ triggerAction: 'all',
+ anchor: '100%',
+ allowBlank: false
+ }]
+ }, {
+ layout: 'form',
+ labelWidth: 180,
+ columnWidth: .25,
+ items: [{
+ xtype: 'combo',
+ fieldLabel: '外来器械默认包装类型',
+ id: 'ftDefaultPackageType',
+ name: 'ftDefaultPackageType',
+ valueField: 'typeName',
+ displayField: 'typeName',
+ store: packageTypeStore,
+ forceSelection: true,
+ listWidth: 150,
+ allowBlank: true,
+ editable: false,
+ triggerAction: 'all',
+ anchor: '100%'
+ }]
+ }, {
+ layout: 'form',
+ labelWidth: 180,
+ columnWidth: .25,
+ items: [{
+ xtype: 'combo',
+ fieldLabel: '外来器械默认灭菌程序',
+ id: 'ftDefaultSterilingMethod',
+ name: 'ftDefaultSterilingMethod',
+ valueField: 'typeName',
+ displayField: 'typeName',
+ store: sterilingTypeStore,
+ forceSelection: true,
+ listWidth: 150,
+ allowBlank: true,
+ editable: false,
+ triggerAction: 'all',
+ anchor: '100%'
+ }]
+ }, {
+ layout: 'form',
+ labelWidth: 180,
+ columnWidth: .25,
+ hidden: !sstsConfig.enableForeignTousseApplyDepartment,
+ items: [{
+ xtype: 'combo',
+ fieldLabel: '外来器械默认申请科室',
+ id: 'ftApplyDepartmentCombo',
+ name: 'ftApplyDepartmentCombo',
+ valueField: 'departmentCode',
+ displayField: 'departmentName',
+ store: new Ext.data.Store({
+ proxy: new Ext.data.HttpProxy({
+ url: WWWROOT + '/systemmanage/orgUnit/searchApplyDepartmentByKeyWord.do',
+ method: 'POST'
}),
- forceSelection : true,
- listWidth:150,
- minChars : 0,
- queryParam : 'spell',
- allowBlank : true,
- triggerAction : 'all',
- anchor : '100%',
- listeners: {
- select: function(combo, record, index) {
- Ext.getCmp('ftApplyDepartment').setValue(record.data.departmentName);
- Ext.getCmp('ftApplyDepartmentCode').setValue(record.data.departmentCode);
- }
+ reader: new Ext.data.JsonReader({
+ root: 'data',
+ totalProperty: 'totalCount'
+ }, [
+ { name: 'departmentCode', mapping: 'departmentCode' },
+ { name: 'departmentName', mapping: 'departmentName' }
+ ]
+ )
+ }),
+ forceSelection: true,
+ listWidth: 150,
+ minChars: 0,
+ queryParam: 'spell',
+ allowBlank: true,
+ triggerAction: 'all',
+ anchor: '100%',
+ listeners: {
+ select: function (combo, record, index) {
+ Ext.getCmp('ftApplyDepartment').setValue(record.data.departmentName);
+ Ext.getCmp('ftApplyDepartmentCode').setValue(record.data.departmentCode);
}
- }]
- },{
- columnWidth : .25,
- layout : 'form',
- labelWidth : 180,
- labelAlign:"right",
- items:[{
- xtype : 'combo',
- fieldLabel : '打印科室来源',
- id : 'ftPrintOrgSource',
- name : 'ftPrintOrgSource',
- valueField : 'value',
- displayField : 'value',
- store : new Ext.data.SimpleStore( {
- fields : [ 'value'],
- data : [['资产归属'],['回收科室'],['无']]
- }),
- editable : false,
- forceSelection : true,
- allowBlank : false,
- value : '无',
- mode : 'local',
- triggerAction : 'all',
- anchor : '100%'
- }]
- },{
- layout : 'form',
- columnWidth : .25,
- labelWidth : 180,
- labelAlign:"right",
- items:[{
- xtype : 'numberfield',
- fieldLabel : "打印份数",
- allowBlank : false,
- allowNegative:false,
- minValue: 1,
- name : 'ftPrintAmount',
- id : 'ftPrintAmount',
- anchor : '100%'
- }]
- },{
- columnWidth : .25,
- layout : 'form',
- labelWidth : 180,
- labelAlign:"right",
- items:[{
- xtype : 'combo',
- fieldLabel : '打印份数来源',
- id : 'ftPrintAmountSource',
- name : 'ftPrintAmountSource',
- editable:false,
- valueField : 'value',
- displayField : 'value',
- store : new Ext.data.SimpleStore({
- fields : [ 'value'],
- data : [['全部外来器械包'],['工具材料'],['植入物材料']]
- }),
- value : '全部外来器械包',
- forceSelection : true,
- mode : 'local',
- triggerAction : 'all',
- anchor : '100%'
- }]
- },{
- layout:'form',
- labelWidth : 180,
- columnWidth: .25,
- items:[{
- xtype : 'combo',
- fieldLabel : '外来器械是否二次回收',
- id : 'foreignTousseIsSecondRecycle',
- name : 'foreignTousseIsSecondRecycle',
- valueField : 'value',
- displayField : 'value',
- mode : 'local',
- anchor : '100%',
- editable : false,
- store : new Ext.data.SimpleStore( {
- fields : [ 'value'],
- data : [['是'],['否']]
- }),
- forceSelection : true,
- allowBlank : true,
- triggerAction : 'all'
- }]
- },{
- layout:'form',
- labelWidth : 180,
+ }
+ }]
+ }, {
columnWidth: .25,
- items:[{
- xtype :'timefield',
- fieldLabel :'外来器械包申请截止时间',
- id :'foreignTousseAppEndTime',
- name :'foreignTousseAppEndTime',
- format : 'H:i',
- anchor : '100%',
- allowBlank : true,
- emptyText :'时间格式如:05:30'
+ layout: 'form',
+ labelWidth: 180,
+ labelAlign: "right",
+ items: [{
+ xtype: 'combo',
+ fieldLabel: '打印科室来源',
+ id: 'ftPrintOrgSource',
+ name: 'ftPrintOrgSource',
+ valueField: 'value',
+ displayField: 'value',
+ store: new Ext.data.SimpleStore({
+ fields: ['value'],
+ data: [['资产归属'], ['回收科室'], ['无']]
+ }),
+ editable: false,
+ forceSelection: true,
+ allowBlank: false,
+ value: '无',
+ mode: 'local',
+ triggerAction: 'all',
+ anchor: '100%'
}]
+ }, {
+ layout: 'form',
+ columnWidth: .25,
+ labelWidth: 180,
+ labelAlign: "right",
+ items: [{
+ xtype: 'numberfield',
+ fieldLabel: "打印份数",
+ allowBlank: false,
+ allowNegative: false,
+ minValue: 1,
+ name: 'ftPrintAmount',
+ id: 'ftPrintAmount',
+ anchor: '100%'
+ }]
+ }, {
+ columnWidth: .25,
+ layout: 'form',
+ labelWidth: 180,
+ labelAlign: "right",
+ items: [{
+ xtype: 'combo',
+ fieldLabel: '打印份数来源',
+ id: 'ftPrintAmountSource',
+ name: 'ftPrintAmountSource',
+ editable: false,
+ valueField: 'value',
+ displayField: 'value',
+ store: new Ext.data.SimpleStore({
+ fields: ['value'],
+ data: [['全部外来器械包'], ['工具材料'], ['植入物材料']]
+ }),
+ value: '全部外来器械包',
+ forceSelection: true,
+ mode: 'local',
+ triggerAction: 'all',
+ anchor: '100%'
+ }]
+ }, {
+ layout: 'form',
+ labelWidth: 180,
+ columnWidth: .25,
+ items: [{
+ xtype: 'combo',
+ fieldLabel: '外来器械是否二次回收',
+ id: 'foreignTousseIsSecondRecycle',
+ name: 'foreignTousseIsSecondRecycle',
+ valueField: 'value',
+ displayField: 'value',
+ mode: 'local',
+ anchor: '100%',
+ editable: false,
+ store: new Ext.data.SimpleStore({
+ fields: ['value'],
+ data: [['是'], ['否']]
+ }),
+ forceSelection: true,
+ allowBlank: true,
+ triggerAction: 'all'
+ }]
+ }, {
+ layout: 'form',
+ labelWidth: 180,
+ columnWidth: .25,
+ items: [{
+ xtype: 'timefield',
+ fieldLabel: '外来器械包申请截止时间',
+ id: 'foreignTousseAppEndTime',
+ name: 'foreignTousseAppEndTime',
+ format: 'H:i',
+ anchor: '100%',
+ allowBlank: true,
+ emptyText: '时间格式如:05:30'
+ }]
}
-
+
]
- },
- {
- xtype : "fieldset",
- title : '自定义器械参数设置',
- layout:'column',
- width : itemWidth,
+ },
+ {
+ xtype: "fieldset",
+ title: '自定义器械参数设置',
+ layout: 'column',
+ width: itemWidth,
height: 80,
// columnWidth : 1,
- labelWidth : 95,
- items : [
+ labelWidth: 95,
+ items: [
{
- layout:'form',
- labelWidth : 180,
- columnWidth: .25,
- items:[{
- xtype : 'combo',
- fieldLabel : '自定义器械包默认装配组',
- id : 'customTousseDefaultTaskGroup',
- name : 'customTousseDefaultTaskGroup',
- valueField : 'taskGroupName',
- displayField : 'taskGroupName',
- store : taskGroupJsonStore,
- forceSelection : true,
- listWidth:150,
- allowBlank : true,
- editable : false,
- triggerAction : 'all',
- anchor : '100%'
- }]
- },{
- layout:'form',
- labelWidth : fontSize == 12 ? 180 : 220,
- labelAlign:"right",
- columnWidth: .25,
- items:[{
- xtype : 'combo',
- fieldLabel : '自定义器械包是否整包清洗',
- id : 'isCustomTousseCleanEntirely',
- name : 'isCustomTousseCleanEntirely',
- valueField : 'value',
- displayField : 'value',
- mode : 'local',
- anchor : '100%',
- editable : false,
- store : new Ext.data.SimpleStore( {
- fields : [ 'value'],
- data : [['是'],['否']]
- }),
- forceSelection : true,
- allowBlank : false,
- triggerAction : 'all'
- }]
- },{
- layout:'form',
- labelWidth : fontSize == 12 ? 180 : 220,
- labelAlign:"right",
+ layout: 'form',
+ labelWidth: 180,
columnWidth: .25,
- items:[{
- xtype : 'combo',
- fieldLabel : '自定义器械包默认包装类型',
- id : 'ctDefaultPackageType',
- name : 'ctDefaultPackageType',
- valueField : 'typeName',
- displayField : 'typeName',
- store : packageTypeStore,
- forceSelection : true,
- listWidth:150,
- allowBlank : true,
- editable : false,
- triggerAction : 'all',
- anchor : '100%'
+ items: [{
+ xtype: 'combo',
+ fieldLabel: '自定义器械包默认装配组',
+ id: 'customTousseDefaultTaskGroup',
+ name: 'customTousseDefaultTaskGroup',
+ valueField: 'taskGroupName',
+ displayField: 'taskGroupName',
+ store: taskGroupJsonStore,
+ forceSelection: true,
+ listWidth: 150,
+ allowBlank: true,
+ editable: false,
+ triggerAction: 'all',
+ anchor: '100%'
}]
- },{
- layout:'form',
- labelWidth : 180,
+ }, {
+ layout: 'form',
+ labelWidth: fontSize == 12 ? 180 : 220,
+ labelAlign: "right",
columnWidth: .25,
- items:[{
- xtype : 'combo',
- fieldLabel : '自定义器械包默认灭菌程序',
- id : 'ctDefaultSterilingMethod',
- name : 'ctDefaultSterilingMethod',
- valueField : 'typeName',
- displayField : 'typeName',
- store : sterilingTypeStore,
- forceSelection : true,
- listWidth:150,
- allowBlank : true,
- editable : false,
- triggerAction : 'all',
- anchor : '100%'
+ items: [{
+ xtype: 'combo',
+ fieldLabel: '自定义器械包是否整包清洗',
+ id: 'isCustomTousseCleanEntirely',
+ name: 'isCustomTousseCleanEntirely',
+ valueField: 'value',
+ displayField: 'value',
+ mode: 'local',
+ anchor: '100%',
+ editable: false,
+ store: new Ext.data.SimpleStore({
+ fields: ['value'],
+ data: [['是'], ['否']]
+ }),
+ forceSelection: true,
+ allowBlank: false,
+ triggerAction: 'all'
}]
}, {
- layout:'form',
- labelWidth : 180,
+ layout: 'form',
+ labelWidth: fontSize == 12 ? 180 : 220,
+ labelAlign: "right",
columnWidth: .25,
- items:[{
- xtype : 'combo',
- fieldLabel : '自定义器械包是否审核',
- id : 'customTousseNeedReview',
- name : 'customTousseNeedReview',
- valueField : 'value',
- displayField : 'value',
- store : new Ext.data.SimpleStore({
- fields : ['value'],
- data : [['是'],['否']]
- }),
- mode : 'local',
- editable : false,
- forceSelection : true,
- allowBlank : false,
- triggerAction : 'all',
- anchor : '100%'
+ items: [{
+ xtype: 'combo',
+ fieldLabel: '自定义器械包默认包装类型',
+ id: 'ctDefaultPackageType',
+ name: 'ctDefaultPackageType',
+ valueField: 'typeName',
+ displayField: 'typeName',
+ store: packageTypeStore,
+ forceSelection: true,
+ listWidth: 150,
+ allowBlank: true,
+ editable: false,
+ triggerAction: 'all',
+ anchor: '100%'
}]
- },{
- layout:'form',
- labelWidth : 180,
+ }, {
+ layout: 'form',
+ labelWidth: 180,
columnWidth: .25,
- items:[{
- xtype : 'combo',
- fieldLabel : '自定义器械包打印标签',
- id : 'ctBarcodePaperType',
- name : 'ctBarcodePaperType',
- valueField : 'name',
- displayField : 'name',
- store:customBarcodePaperTypeStore,
- editable : false,
- forceSelection : true,
- editable :false,
- allowBlank : false,
- triggerAction : 'all',
- anchor : '100%'
- }]
+ items: [{
+ xtype: 'combo',
+ fieldLabel: '自定义器械包默认灭菌程序',
+ id: 'ctDefaultSterilingMethod',
+ name: 'ctDefaultSterilingMethod',
+ valueField: 'typeName',
+ displayField: 'typeName',
+ store: sterilingTypeStore,
+ forceSelection: true,
+ listWidth: 150,
+ allowBlank: true,
+ editable: false,
+ triggerAction: 'all',
+ anchor: '100%'
+ }]
+ }, {
+ layout: 'form',
+ labelWidth: 180,
+ columnWidth: .25,
+ items: [{
+ xtype: 'combo',
+ fieldLabel: '自定义器械包是否审核',
+ id: 'customTousseNeedReview',
+ name: 'customTousseNeedReview',
+ valueField: 'value',
+ displayField: 'value',
+ store: new Ext.data.SimpleStore({
+ fields: ['value'],
+ data: [['是'], ['否']]
+ }),
+ mode: 'local',
+ editable: false,
+ forceSelection: true,
+ allowBlank: false,
+ triggerAction: 'all',
+ anchor: '100%'
+ }]
+ }, {
+ layout: 'form',
+ labelWidth: 180,
+ columnWidth: .25,
+ items: [{
+ xtype: 'combo',
+ fieldLabel: '自定义器械包打印标签',
+ id: 'ctBarcodePaperType',
+ name: 'ctBarcodePaperType',
+ valueField: 'name',
+ displayField: 'name',
+ store: customBarcodePaperTypeStore,
+ editable: false,
+ forceSelection: true,
+ editable: false,
+ allowBlank: false,
+ triggerAction: 'all',
+ anchor: '100%'
+ }]
}/* , {
layout:'form',
labelWidth : 180,
@@ -1924,1752 +1839,1718 @@
triggerAction : 'all',
anchor : '100%'
}]
- } */,{
- columnWidth : .25,
- layout : 'form',
- labelWidth : 180,
- labelAlign:"right",
- items:[{
- xtype : 'combo',
- fieldLabel : '自定义器械包打印科室来源',
- id : 'ctPrintOrgSource',
- name : 'ctPrintOrgSource',
- valueField : 'value',
- displayField : 'value',
- store : new Ext.data.SimpleStore( {
- fields : [ 'value'],
- data : [['回收科室'],['无']]
- }),
- editable : false,
- forceSelection : true,
- allowBlank : false,
- value : '无',
- mode : 'local',
- triggerAction : 'all',
- anchor : '100%'
+ } */, {
+ columnWidth: .25,
+ layout: 'form',
+ labelWidth: 180,
+ labelAlign: "right",
+ items: [{
+ xtype: 'combo',
+ fieldLabel: '自定义器械包打印科室来源',
+ id: 'ctPrintOrgSource',
+ name: 'ctPrintOrgSource',
+ valueField: 'value',
+ displayField: 'value',
+ store: new Ext.data.SimpleStore({
+ fields: ['value'],
+ data: [['回收科室'], ['无']]
+ }),
+ editable: false,
+ forceSelection: true,
+ allowBlank: false,
+ value: '无',
+ mode: 'local',
+ triggerAction: 'all',
+ anchor: '100%'
}]
}
]
- },{
- xtype : "fieldset",
- title : '发货参数设置',
- layout:'column',
- width : itemWidth,
- height:120,
+ }, {
+ xtype: "fieldset",
+ title: '发货参数设置',
+ layout: 'column',
+ width: itemWidth,
+ height: 120,
// columnWidth : 1,
- labelWidth : 95,
- items : [{
- layout:'form',
- labelWidth : fontSize == 12 ? 180 : 220,
- labelAlign:"right",
- columnWidth: .25,
- items:[{
- xtype : 'combo',
- fieldLabel : '发货数量依据',
- id : 'invoiceOrigin',
- name : 'invoiceOrigin',
- valueField : 'formname',
- displayField : 'formname',
- store : new Ext.data.SimpleStore({
- fields : ['formname'],
- data : [[invoiceOriginApplication],[invoiceOriginRecycling]]
- }),
- mode : 'local',
- editable : false,
- forceSelection : true,
- allowBlank : false,
- triggerAction : 'all',
- anchor : '100%'
- }]
- },
+ labelWidth: 95,
+ items: [{
+ layout: 'form',
+ labelWidth: fontSize == 12 ? 180 : 220,
+ labelAlign: "right",
+ columnWidth: .25,
+ items: [{
+ xtype: 'combo',
+ fieldLabel: '发货数量依据',
+ id: 'invoiceOrigin',
+ name: 'invoiceOrigin',
+ valueField: 'formname',
+ displayField: 'formname',
+ store: new Ext.data.SimpleStore({
+ fields: ['formname'],
+ data: [[invoiceOriginApplication], [invoiceOriginRecycling]]
+ }),
+ mode: 'local',
+ editable: false,
+ forceSelection: true,
+ allowBlank: false,
+ triggerAction: 'all',
+ anchor: '100%'
+ }]
+ },
{
- layout : 'form',
- labelWidth : 180,
- columnWidth : .25,
- hidden:true,
- items : [{
- xtype : 'combo',
- valueField : 'name',
- displayField : 'name',
- mode : 'local',
- fieldLabel : '器械包回收后发货',
- id : 'afterRecyclingTousseDeliver',
- name : 'afterRecyclingTousseDeliver',
- allowNegative : false,
- allowBlank : false,
- editable:false,
- forceSelection : true,
- triggerAction : 'all',
- anchor : '100%',
- store : new Ext.data.SimpleStore( {
- fields : [ 'name'],
- data : [['是'],['否']]
- })
+ layout: 'form',
+ labelWidth: 180,
+ columnWidth: .25,
+ hidden: true,
+ items: [{
+ xtype: 'combo',
+ valueField: 'name',
+ displayField: 'name',
+ mode: 'local',
+ fieldLabel: '器械包回收后发货',
+ id: 'afterRecyclingTousseDeliver',
+ name: 'afterRecyclingTousseDeliver',
+ allowNegative: false,
+ allowBlank: false,
+ editable: false,
+ forceSelection: true,
+ triggerAction: 'all',
+ anchor: '100%',
+ store: new Ext.data.SimpleStore({
+ fields: ['name'],
+ data: [['是'], ['否']]
+ })
}]
- },
+ },
{
- layout : 'form',
- labelWidth : 180,
- columnWidth : .25,
- items : [{
- xtype : 'combo',
- valueField : 'name',
- displayField : 'name',
- mode : 'local',
- fieldLabel : '器械包发货时间',
- id : 'tousseDeliverOccasion',
- name : 'tousseDeliverOccasion',
- allowNegative : false,
- allowBlank : false,
- editable:false,
- forceSelection : true,
- triggerAction : 'all',
- anchor : '100%',
- store : new Ext.data.SimpleStore( {
- fields : [ 'name'],
- data : [[tousseDeliverOccasionBeforeRecycling],[tousseDeliverOccasionAfterPreRecycling],[tousseDeliverOccasionAfterRecycling]]
- })
+ layout: 'form',
+ labelWidth: 180,
+ columnWidth: .25,
+ items: [{
+ xtype: 'combo',
+ valueField: 'name',
+ displayField: 'name',
+ mode: 'local',
+ fieldLabel: '器械包发货时间',
+ id: 'tousseDeliverOccasion',
+ name: 'tousseDeliverOccasion',
+ allowNegative: false,
+ allowBlank: false,
+ editable: false,
+ forceSelection: true,
+ triggerAction: 'all',
+ anchor: '100%',
+ store: new Ext.data.SimpleStore({
+ fields: ['name'],
+ data: [[tousseDeliverOccasionBeforeRecycling], [tousseDeliverOccasionAfterPreRecycling], [tousseDeliverOccasionAfterRecycling]]
+ })
}]
- },{
- layout:'form',
- labelWidth : 180,
- columnWidth: .25,
- items:[{
- xtype : 'combo',
- fieldLabel : '是否自动签收发货单',
- id : 'autoSignInvoice',
- name : 'autoSignInvoice',
- valueField : 'name',
- displayField : 'name',
- mode : 'local',
- anchor : '100%',
- store : new Ext.data.SimpleStore( {
- fields : [ 'name'],
- data : [['否'],['是']]
- }),
- forceSelection : true,
- allowBlank : false,
- editable : false,
- triggerAction : 'all',
- listeners : {
- select : function (combo, record, index ){
- if(combo.getRawValue() == '是'){
- setFieldsHide(false);
- }else{
- setFieldsHide(true);
- }
+ }, {
+ layout: 'form',
+ labelWidth: 180,
+ columnWidth: .25,
+ items: [{
+ xtype: 'combo',
+ fieldLabel: '是否自动签收发货单',
+ id: 'autoSignInvoice',
+ name: 'autoSignInvoice',
+ valueField: 'name',
+ displayField: 'name',
+ mode: 'local',
+ anchor: '100%',
+ store: new Ext.data.SimpleStore({
+ fields: ['name'],
+ data: [['否'], ['是']]
+ }),
+ forceSelection: true,
+ allowBlank: false,
+ editable: false,
+ triggerAction: 'all',
+ listeners: {
+ select: function (combo, record, index) {
+ if (combo.getRawValue() == '是') {
+ setFieldsHide(false);
+ } else {
+ setFieldsHide(true);
}
}
- }]
- }, {
- id : 'receiptorId',
- layout:'form',
- columnWidth: .25,
- labelWidth : 180,
- items:[{
- xtype : 'textfield',
- allowDecimals : false,
- fieldLabel : '签收人名字',
- id : 'receiptor',
- name : 'receiptor',
- anchor : '100%',
- allowBlank : false,
- value : '系统签收',
- listeners : {
- render: function(thiz) {
- var value = thiz.value;
- if(value == undefined || value == ''){
- Ext.getCmp("receiptor").setValue('系统签收');
- }
- },
- change : function (field, newValue, oldValue){
- if(newValue == undefined || newValue == ''){
- Ext.getCmp("receiptor").setValue('系统签收');
- }
- }
+ }
+ }]
+ }, {
+ id: 'receiptorId',
+ layout: 'form',
+ columnWidth: .25,
+ labelWidth: 180,
+ items: [{
+ xtype: 'textfield',
+ allowDecimals: false,
+ fieldLabel: '签收人名字',
+ id: 'receiptor',
+ name: 'receiptor',
+ anchor: '100%',
+ allowBlank: false,
+ value: '系统签收',
+ listeners: {
+ render: function (thiz) {
+ var value = thiz.value;
+ if (value == undefined || value == '') {
+ Ext.getCmp("receiptor").setValue('系统签收');
}
- }]
- },{
- id : 'timingSignInvoiceTimeId',
- layout:'form',
- columnWidth: .25,
- labelWidth : 180,
- items:[{
- xtype : 'numberfield',
- allowDecimals : false,
- fieldLabel : '定时签收发货单时间(分钟)',
- id : 'timingSignInvoiceTime',
- name : 'timingSignInvoiceTime',
- anchor : '100%'
- }]
- },{
- layout : 'form',
- labelWidth : 180,
- columnWidth : .25,
- items : [{
- xtype : 'combo',
- fieldLabel : '二级供应室自动发货',
- id : 'isSecondSupplyRoomAutoInvoice',
- name : 'isSecondSupplyRoomAutoInvoice',
- valueField : 'name',
- displayField : 'name',
- mode : 'local',
- anchor : '100%',
- editable : false,
- store : new Ext.data.SimpleStore( {
- fields : [ 'name'],
- data : [['不启用'],['仅对回收自本科室的器械包'],['对回收自所有科室的物品']]
- }),
- forceSelection : true,
- allowBlank : false,
- triggerAction : 'all'
- }]
- },{
- layout : 'form',
- labelWidth : fontSize == 12 ? 180 : 220,
- labelAlign:"right",
- columnWidth : .25,
- items : [{
- xtype : 'combo',
- valueField : 'name',
- displayField : 'name',
- mode : 'local',
- fieldLabel : '处于预警期器械包能否发货',
- id : 'warningTousseWhetherDelivery',
- name : 'warningTousseWhetherDelivery',
- allowNegative : false,
- allowBlank : false,
- editable:false,
- forceSelection : true,
- triggerAction : 'all',
- anchor : '100%',
- store : new Ext.data.SimpleStore( {
- fields : [ 'name'],
- data : [['是'],['否']]
- })
- }]
- },{
- layout : 'form',
- labelWidth : 180,
- columnWidth : .25,
- items : [{
- xtype : 'combo',
- valueField : 'v',
- displayField : 'name',
- mode : 'local',
- fieldLabel : '合并发货单器械规则',
- id : 'mergeTousseRuleForInvoiceBatchPrintStr',
- name : 'mergeTousseRuleForInvoiceBatchPrintStr',
- allowNegative : false,
- allowBlank : false,
- editable:false,
- forceSelection : true,
- triggerAction : 'all',
- anchor : '100%',
- store : new Ext.data.JsonStore( {
- fields : [ 'v','name'],
- data : [{name: '默认',v: '0'},{name: '按包名合并',v: '1'}]
- // data : [{name: '0',v: '0'},{name: '1',v: '1'}]
- }),
- listeners:{
- select:function(combo, record, index){
- Ext.getCmp("mergeTousseRuleForInvoiceBatchPrint").setValue(record.data.v);
- }
+ },
+ change: function (field, newValue, oldValue) {
+ if (newValue == undefined || newValue == '') {
+ Ext.getCmp("receiptor").setValue('系统签收');
}
- }]
- }
- ]
- }]
- })
- ]
+ }
+ }
+ }]
+ }, {
+ id: 'timingSignInvoiceTimeId',
+ layout: 'form',
+ columnWidth: .25,
+ labelWidth: 180,
+ items: [{
+ xtype: 'numberfield',
+ allowDecimals: false,
+ fieldLabel: '定时签收发货单时间(分钟)',
+ id: 'timingSignInvoiceTime',
+ name: 'timingSignInvoiceTime',
+ anchor: '100%'
+ }]
+ }, {
+ layout: 'form',
+ labelWidth: 180,
+ columnWidth: .25,
+ items: [{
+ xtype: 'combo',
+ fieldLabel: '二级供应室自动发货',
+ id: 'isSecondSupplyRoomAutoInvoice',
+ name: 'isSecondSupplyRoomAutoInvoice',
+ valueField: 'name',
+ displayField: 'name',
+ mode: 'local',
+ anchor: '100%',
+ editable: false,
+ store: new Ext.data.SimpleStore({
+ fields: ['name'],
+ data: [['不启用'], ['仅对回收自本科室的器械包'], ['对回收自所有科室的物品']]
+ }),
+ forceSelection: true,
+ allowBlank: false,
+ triggerAction: 'all'
+ }]
+ }, {
+ layout: 'form',
+ labelWidth: fontSize == 12 ? 180 : 220,
+ labelAlign: "right",
+ columnWidth: .25,
+ items: [{
+ xtype: 'combo',
+ valueField: 'name',
+ displayField: 'name',
+ mode: 'local',
+ fieldLabel: '处于预警期器械包能否发货',
+ id: 'warningTousseWhetherDelivery',
+ name: 'warningTousseWhetherDelivery',
+ allowNegative: false,
+ allowBlank: false,
+ editable: false,
+ forceSelection: true,
+ triggerAction: 'all',
+ anchor: '100%',
+ store: new Ext.data.SimpleStore({
+ fields: ['name'],
+ data: [['是'], ['否']]
+ })
+ }]
+ }, {
+ layout: 'form',
+ labelWidth: 180,
+ columnWidth: .25,
+ items: [{
+ xtype: 'combo',
+ valueField: 'v',
+ displayField: 'name',
+ mode: 'local',
+ fieldLabel: '合并发货单器械规则',
+ id: 'mergeTousseRuleForInvoiceBatchPrintStr',
+ name: 'mergeTousseRuleForInvoiceBatchPrintStr',
+ allowNegative: false,
+ allowBlank: false,
+ editable: false,
+ forceSelection: true,
+ triggerAction: 'all',
+ anchor: '100%',
+ store: new Ext.data.JsonStore({
+ fields: ['v', 'name'],
+ data: [{ name: '默认', v: '0' }, { name: '按包名合并', v: '1' }]
+ }),
+ listeners: {
+ select: function (combo, record, index) {
+ Ext.getCmp("mergeTousseRuleForInvoiceBatchPrint").setValue(record.data.v);
+ }
+ }
+ }]
+ }
+ ]
+ }]
+ })
+ ]
});
-
+
//启用高值耗材配置才显示供应商预警期天数和发票预警天数
- if(sstsConfig.enableExpensiveGoods){
- Ext.getCmp('supplierCertificationExpTimeLabel').show();
- Ext.getCmp('expensiveGoodsBillWarningTimeLabel').show();
- Ext.getCmp('expensiveGoodsPaperTypeLabel').show();
- }else{
- Ext.getCmp('supplierCertificationExpTimeLabel').hide();
- Ext.getCmp('expensiveGoodsBillWarningTimeLabel').hide();
- Ext.getCmp('expensiveGoodsPaperTypeLabel').hide();
- }
-
+ if (sstsConfig.enableExpensiveGoods) {
+ Ext.getCmp('supplierCertificationExpTimeLabel').show();
+ Ext.getCmp('expensiveGoodsBillWarningTimeLabel').show();
+ Ext.getCmp('expensiveGoodsPaperTypeLabel').show();
+ } else {
+ Ext.getCmp('supplierCertificationExpTimeLabel').hide();
+ Ext.getCmp('expensiveGoodsBillWarningTimeLabel').hide();
+ Ext.getCmp('expensiveGoodsPaperTypeLabel').hide();
+ }
+
tabsItemArr.push({
- title: '一级供应室配置',
- layout:'fit',
- items:[
- new Ext.grid.EditorGridPanel({
- id : 'supplyRoomFirstSupplyRoom',
- store : supplyRoomStoreFirstSupplyRoom,
- cm : cmFirstSupplyRoom,
- width:document.body.offsetWidth-20,
- height:document.body.offsetHeight-94,
- frame : false,
- viewConfig: {
- forceFit:true
- },
- bodyStyle : 'border:1px solid #9cbaef',
- selModel : new Ext.grid.RowSelectionModel({
- singleSelect : false
- }),
- autoExpandColumn : 'deleteItem',
- tbar : [{
- text : '选择科室 :'
- },{
- xtype : 'combo',
- id : 'departNameFirstSupplyRoom',
- name : 'departNameFirstSupplyRoom',
- queryParam : 'spell',
- minChars : 0,
- valueField : 'id',
- displayField : 'name',
-// width : 320,
- store : departJsonStore,
- forceSelection : true,
- lazyInit : true,
- triggerAction : 'all',
- hideTrigger : true,
- typeAhead : false,
- allowBlank : true,
- anchor : '97%'
- },{
- text : '添加',
- iconCls : 'btn_ext_add',
- handler : function() {
- var name =Ext.getCmp('departNameFirstSupplyRoom').getRawValue();
- var departId =Ext.getCmp('departNameFirstSupplyRoom').getValue();
- addGridItem(supplyRoomStoreFirstSupplyRoom,name,departId,"departNameFirstSupplyRoom");
- }
- }]
- })
- ]
+ title: '一级供应室配置',
+ layout: 'fit',
+ items: [
+ new Ext.grid.EditorGridPanel({
+ id: 'supplyRoomFirstSupplyRoom',
+ store: supplyRoomStoreFirstSupplyRoom,
+ cm: cmFirstSupplyRoom,
+ width: document.body.offsetWidth - 20,
+ height: document.body.offsetHeight - 94,
+ frame: false,
+ viewConfig: {
+ forceFit: true
+ },
+ bodyStyle: 'border:1px solid #9cbaef',
+ selModel: new Ext.grid.RowSelectionModel({
+ singleSelect: false
+ }),
+ autoExpandColumn: 'deleteItem',
+ tbar: [{
+ text: '选择科室 :'
+ }, {
+ xtype: 'combo',
+ id: 'departNameFirstSupplyRoom',
+ name: 'departNameFirstSupplyRoom',
+ queryParam: 'spell',
+ minChars: 0,
+ valueField: 'id',
+ displayField: 'name',
+ store: departJsonStore,
+ forceSelection: true,
+ lazyInit: true,
+ triggerAction: 'all',
+ hideTrigger: true,
+ typeAhead: false,
+ allowBlank: true,
+ anchor: '97%'
+ }, {
+ text: '添加',
+ iconCls: 'btn_ext_add',
+ handler: function () {
+ var name = Ext.getCmp('departNameFirstSupplyRoom').getRawValue();
+ var departId = Ext.getCmp('departNameFirstSupplyRoom').getValue();
+ addGridItem(supplyRoomStoreFirstSupplyRoom, name, departId, "departNameFirstSupplyRoom");
+ }
+ }]
+ })
+ ]
});
-
+
tabsItemArr.push({
- title: '二级供应室配置',
- layout:'fit',
- items:[
+ title: '二级供应室配置',
+ layout: 'fit',
+ items: [
new Ext.grid.EditorGridPanel({
- id : 'supplyRoomSecondSupplyRoom',
- store : supplyRoomStoreSecondSupplyRoom,
- cm : cmSecondSupplyRoom,
- autoExpandColumn : 'deleteItem',
- enableHdMenu : false,
- width:document.body.offsetWidth-12,
- height:document.body.offsetHeight-94,
- frame : false,
- viewConfig: {
- forceFit:true,
- getRowClass: function(record, rowIndex){
- return record.get("isFind") ? "resultList" : "";
+ id: 'supplyRoomSecondSupplyRoom',
+ store: supplyRoomStoreSecondSupplyRoom,
+ cm: cmSecondSupplyRoom,
+ autoExpandColumn: 'deleteItem',
+ enableHdMenu: false,
+ width: document.body.offsetWidth - 12,
+ height: document.body.offsetHeight - 94,
+ frame: false,
+ viewConfig: {
+ forceFit: true,
+ getRowClass: function (record, rowIndex) {
+ return record.get("isFind") ? "resultList" : "";
+ }
+ },
+ bodyStyle: 'border:1px solid #9cbaef',
+ clicksToEdit: 1,
+ selModel: new Ext.grid.RowSelectionModel({
+ singleSelect: false
+ }),
+ tbar: [{
+ text: '选择科室 :'
+ }, {
+ xtype: 'combo',
+ id: 'departNameSecondSupplyRoom',
+ name: 'departNameSecondSupplyRoom',
+ queryParam: 'spell',
+ minChars: 0,
+ valueField: 'id',
+ displayField: 'name',
+ listWidth: 300,
+ store: departJsonStore,
+ forceSelection: true,
+ lazyInit: true,
+ triggerAction: 'all',
+ hideTrigger: true,
+ typeAhead: false,
+ allowBlank: true,
+ anchor: '97%'
+ }, {
+ text: '添加',
+ iconCls: 'btn_ext_add',
+ handler: function () {
+ var name = Ext.getCmp('departNameSecondSupplyRoom').getRawValue();
+ var departId = Ext.getCmp('departNameSecondSupplyRoom').getValue();
+ addGridItem(supplyRoomStoreSecondSupplyRoom, name, departId, "departNameSecondSupplyRoom");
+ }
+ }, {
+ text: '搜索科室名称:'
+ }, {
+ xtype: 'textfield',
+ id: 'keyWordSecondSupplyRoom',
+ anchor: '100%',
+ allowBlank: true,
+ listeners: {
+ specialkey: function (field, ee) {
+ if (ee.getKey() == Ext.EventObject.ENTER) {
+ searchSupplyRoomStore(supplyRoomStoreSecondSupplyRoom, 'keyWordSecondSupplyRoom', 'queryResultSecondSupplyRoom');
+ }
}
- },
- bodyStyle : 'border:1px solid #9cbaef',
- clicksToEdit : 1,
- selModel : new Ext.grid.RowSelectionModel({
- singleSelect : false
- }),
- tbar : [{
- text : '选择科室 :'
- },{
- xtype : 'combo',
- id : 'departNameSecondSupplyRoom',
- name : 'departNameSecondSupplyRoom',
- queryParam : 'spell',
- minChars : 0,
- valueField : 'id',
- displayField : 'name',
- listWidth : 300,
- // width : 320,
- store : departJsonStore,
- forceSelection : true,
- lazyInit : true,
- triggerAction : 'all',
- hideTrigger : true,
- typeAhead : false,
- allowBlank : true,
- anchor : '97%'
- },{
- text : '添加',
- iconCls : 'btn_ext_add',
- handler : function() {
- var name =Ext.getCmp('departNameSecondSupplyRoom').getRawValue();
- var departId =Ext.getCmp('departNameSecondSupplyRoom').getValue();
- addGridItem(supplyRoomStoreSecondSupplyRoom,name,departId,"departNameSecondSupplyRoom");
- }
- },{
- text : '搜索科室名称:'
- },{
- xtype : 'textfield',
- id : 'keyWordSecondSupplyRoom',
- anchor : '100%',
- allowBlank : true,
- listeners : {
- specialkey : function(field, ee) {
- if (ee.getKey() == Ext.EventObject.ENTER) {
- searchSupplyRoomStore(supplyRoomStoreSecondSupplyRoom, 'keyWordSecondSupplyRoom', 'queryResultSecondSupplyRoom');
- }
- }
- }
- },{
- xtype: 'button',
- text: '查询',
- iconCls: 'icon_search',
- handler: function () {
- searchSupplyRoomStore(supplyRoomStoreSecondSupplyRoom, 'keyWordSecondSupplyRoom', 'queryResultSecondSupplyRoom');
- }
- },'->',{
- text : '',
- id : 'queryResultSecondSupplyRoom'
- }]
- })
- ]
+ }
+ }, {
+ xtype: 'button',
+ text: '查询',
+ iconCls: 'icon_search',
+ handler: function () {
+ searchSupplyRoomStore(supplyRoomStoreSecondSupplyRoom, 'keyWordSecondSupplyRoom', 'queryResultSecondSupplyRoom');
+ }
+ }, '->', {
+ text: '',
+ id: 'queryResultSecondSupplyRoom'
+ }]
+ })
+ ]
});
var supplyRoomStoreApplyGrid = new Ext.grid.EditorGridPanel({
- id : 'supplyRoomApply',
- store : supplyRoomStoreApply,
- cm : cmApply,
- autoScroll:true,
- frame : false,
+ id: 'supplyRoomApply',
+ store: supplyRoomStoreApply,
+ cm: cmApply,
+ autoScroll: true,
+ frame: false,
viewConfig: {
- forceFit:true,
- getRowClass: function(record, rowIndex){
+ forceFit: true,
+ getRowClass: function (record, rowIndex) {
return record.get("isFind") ? "resultList" : "";
}
},
- width:document.body.offsetWidth-12,
- height:document.body.offsetHeight-94,
- bodyStyle : 'border:1px solid #9cbaef',
- clicksToEdit : 1,
- selModel : new Ext.grid.RowSelectionModel({
- singleSelect : false
+ width: document.body.offsetWidth - 12,
+ height: document.body.offsetHeight - 94,
+ bodyStyle: 'border:1px solid #9cbaef',
+ clicksToEdit: 1,
+ selModel: new Ext.grid.RowSelectionModel({
+ singleSelect: false
}),
- tbar : [{
- text : '选择科室 :'
- },{
- xtype : 'combo',
- fieldLabel : '申请科室',
- id : 'departNameApply',
- name : 'departNameApply',
- queryParam : 'spell',
- minChars : 0,
- valueField : 'id',
- displayField : 'name',
- // width : 100,
- store : departJsonStore,
- listWidth : 300,
- // matchFieldWidth: false,
- forceSelection : true,
- lazyInit : true,
- triggerAction : 'all',
- hideTrigger : true,
- typeAhead : false,
- allowBlank : true,
- anchor : '97%'
- },{
- text : '添加',
- iconCls : 'btn_ext_add',
- handler : function() {
- var name =Ext.getCmp('departNameApply').getRawValue();
- var departId =Ext.getCmp('departNameApply').getValue();
- addGridItem(supplyRoomStoreApply,name,departId,"departNameApply");
+ tbar: [{
+ text: '选择科室 :'
+ }, {
+ xtype: 'combo',
+ fieldLabel: '申请科室',
+ id: 'departNameApply',
+ name: 'departNameApply',
+ queryParam: 'spell',
+ minChars: 0,
+ valueField: 'id',
+ displayField: 'name',
+ store: departJsonStore,
+ listWidth: 300,
+ forceSelection: true,
+ lazyInit: true,
+ triggerAction: 'all',
+ hideTrigger: true,
+ typeAhead: false,
+ allowBlank: true,
+ anchor: '97%'
+ }, {
+ text: '添加',
+ iconCls: 'btn_ext_add',
+ handler: function () {
+ var name = Ext.getCmp('departNameApply').getRawValue();
+ var departId = Ext.getCmp('departNameApply').getValue();
+ addGridItem(supplyRoomStoreApply, name, departId, "departNameApply");
}
- },{
- text : '添加全部',
- iconCls : 'icon_systemset',
- handler : function() {
+ }, {
+ text: '添加全部',
+ iconCls: 'icon_systemset',
+ handler: function () {
Ext.Ajax.request({
- url : WWWROOT + '/disinfectSystem/baseData/supplyRoomConfigAction!getAllOrgUnitName.do',
- success : function(response, options) {
+ url: WWWROOT + '/disinfectSystem/baseData/supplyRoomConfigAction!getAllOrgUnitName.do',
+ success: function (response, options) {
var result = Ext.decode(response.responseText);
var lenth = result.data.length;
- for(var index = 0;index < lenth;index++){
- var name = result.data[index].name;
+ for (var index = 0; index < lenth; index++) {
+ var name = result.data[index].name;
var departId = result.data[index].id;
- addGridItem(supplyRoomStoreApply,name,departId,"");
+ addGridItem(supplyRoomStoreApply, name, departId, "");
}
},
- failure : function(response, options) {
+ failure: function (response, options) {
}
});
}
- },{
-
- text : '删除',
- iconCls : 'btn_ext_application_del',
- handler : function() {
-
+ }, {
+
+ text: '删除',
+ iconCls: 'btn_ext_application_del',
+ handler: function () {
+
removeGridItem('supplyRoomApply');
}
- },{
-
- text : '删除全部',
- iconCls : 'btn_ext_application_del',
- handler : function() {
-
- top.Ext.MessageBox.confirm("请确认","确定要删除所有申领科室吗?",function(btn){
- if(btn == "yes"){
+ }, {
+
+ text: '删除全部',
+ iconCls: 'btn_ext_application_del',
+ handler: function () {
+
+ top.Ext.MessageBox.confirm("请确认", "确定要删除所有申领科室吗?", function (btn) {
+ if (btn == "yes") {
supplyRoomStoreApply.removeAll();
}
});
}
- },{
- text : '复制到结算科室',
- iconCls : 'icon_systemset',
- handler : function() {
+ }, {
+ text: '复制到结算科室',
+ iconCls: 'icon_systemset',
+ handler: function () {
var count = supplyRoomStoreApply.getCount();
- for(var i = 0;i < count;i++){
+ for (var i = 0; i < count; i++) {
var record = supplyRoomStoreApply.getAt(i);
- var name = record.data['name'];
+ var name = record.data['name'];
var departId = record.data['departId'];
addGridItem(supplyRoomStoreSettleAccount, name, departId, "");
}
}
},
- // {
- // text : '上移到顶部',
- // handler : function() {
- // moveTopGridItem3();
- // }
- // },{
- // text : '上移',
- // handler : function() {
- // moveUpGridItem3();
- // }
- // },{
- // text : '下移',
- // handler : function() {
- // moveDownGridItem3();
- // }
- // },{
- // text : '下移到底部',
- // handler : function() {
- // moveBottomGridItem3();
- // }
- // },
- {
- text : '搜索科室名称:'
- },{
- xtype : 'textfield',
- id : 'keyWordApply',
- anchor : '100%',
- allowBlank : true,
- listeners : {
- specialkey : function(field, ee) {
+ {
+ text: '搜索科室名称:'
+ }, {
+ xtype: 'textfield',
+ id: 'keyWordApply',
+ anchor: '100%',
+ allowBlank: true,
+ listeners: {
+ specialkey: function (field, ee) {
if (ee.getKey() == Ext.EventObject.ENTER) {
searchSupplyRoomStore(supplyRoomStoreApply, 'keyWordApply', 'queryResultApply');
}
}
}
- },{
+ }, {
xtype: 'button',
text: '查询',
iconCls: 'icon_search',
handler: function () {
searchSupplyRoomStore(supplyRoomStoreApply, 'keyWordApply', 'queryResultApply');
}
- },'->',{
- text : '',
- id : 'queryResultApply'
+ }, '->', {
+ text: '',
+ id: 'queryResultApply'
}]
})
-
- supplyRoomStoreApplyGrid.getStore().on('load',function(items,records){
- items.each(function(item,key){
- if(parseInt(item.json.status) == 0){
- supplyRoomStoreApplyGrid.getView().getRow(key).style.display='none';
+
+ supplyRoomStoreApplyGrid.getStore().on('load', function (items, records) {
+ items.each(function (item, key) {
+ if (parseInt(item.json.status) == 0) {
+ supplyRoomStoreApplyGrid.getView().getRow(key).style.display = 'none';
}
})
})
tabsItemArr.push({
- title: '科室申领配置',
- layout:'fit',
- items:[
+ title: '科室申领配置',
+ layout: 'fit',
+ items: [
supplyRoomStoreApplyGrid
- ]
+ ]
});
var supplyRoomStoreSettleAccountGrid = new Ext.grid.EditorGridPanel({
- id : 'supplyRoomSettleAccount',
- store : supplyRoomStoreSettleAccount,
- cm : cmSettleAccount,
- autoExpandColumn : 'deleteItem',
- enableHdMenu : false,
- frame : false,
+ id: 'supplyRoomSettleAccount',
+ store: supplyRoomStoreSettleAccount,
+ cm: cmSettleAccount,
+ autoExpandColumn: 'deleteItem',
+ enableHdMenu: false,
+ frame: false,
viewConfig: {
- forceFit:true,
- getRowClass: function(record, rowIndex){
+ forceFit: true,
+ getRowClass: function (record, rowIndex) {
return record.get("isFind") ? "resultList" : "";
}
},
- width:document.body.offsetWidth-12,
- height:document.body.offsetHeight-94,
- bodyStyle : 'border:1px solid #9cbaef',
- clicksToEdit : 1,
- selModel : new Ext.grid.RowSelectionModel({
- singleSelect : false
+ width: document.body.offsetWidth - 12,
+ height: document.body.offsetHeight - 94,
+ bodyStyle: 'border:1px solid #9cbaef',
+ clicksToEdit: 1,
+ selModel: new Ext.grid.RowSelectionModel({
+ singleSelect: false
}),
- tbar : [{
- text : '选择科室 :'
- },{
- xtype : 'combo',
- id : 'departNameSettleAccount',
- name : 'departNameSettleAccount',
- queryParam : 'spell',
- minChars : 0,
- valueField : 'id',
- displayField : 'name',
- store : departJsonStore,
- forceSelection : true,
- listWidth : 300,
- lazyInit : true,
- triggerAction : 'all',
- hideTrigger : true,
- typeAhead : false,
- allowBlank : true,
- anchor : '97%'
- },{
- text : '添加',
- iconCls : 'btn_ext_add',
- handler : function() {
- var name =Ext.getCmp('departNameSettleAccount').getRawValue();
- var departId =Ext.getCmp('departNameSettleAccount').getValue();
- addGridItem(supplyRoomStoreSettleAccount,name,departId,"departNameSettleAccount");
+ tbar: [{
+ text: '选择科室 :'
+ }, {
+ xtype: 'combo',
+ id: 'departNameSettleAccount',
+ name: 'departNameSettleAccount',
+ queryParam: 'spell',
+ minChars: 0,
+ valueField: 'id',
+ displayField: 'name',
+ store: departJsonStore,
+ forceSelection: true,
+ listWidth: 300,
+ lazyInit: true,
+ triggerAction: 'all',
+ hideTrigger: true,
+ typeAhead: false,
+ allowBlank: true,
+ anchor: '97%'
+ }, {
+ text: '添加',
+ iconCls: 'btn_ext_add',
+ handler: function () {
+ var name = Ext.getCmp('departNameSettleAccount').getRawValue();
+ var departId = Ext.getCmp('departNameSettleAccount').getValue();
+ addGridItem(supplyRoomStoreSettleAccount, name, departId, "departNameSettleAccount");
}
},
{
- text : '删除全部',
- iconCls : 'btn_ext_application_del',
- handler : function() {
-
- top.Ext.MessageBox.confirm("请确认","确定要删除所有结算科室吗?",function(btn){
- if(btn == "yes"){
+ text: '删除全部',
+ iconCls: 'btn_ext_application_del',
+ handler: function () {
+
+ top.Ext.MessageBox.confirm("请确认", "确定要删除所有结算科室吗?", function (btn) {
+ if (btn == "yes") {
supplyRoomStoreSettleAccount.removeAll();
}
});
}
- },{
- text : '搜索科室名称:'
- },{
- xtype : 'textfield',
- id : 'keyWordSettleAccount',
- anchor : '100%',
- allowBlank : true,
- listeners : {
- specialkey : function(field, ee) {
+ }, {
+ text: '搜索科室名称:'
+ }, {
+ xtype: 'textfield',
+ id: 'keyWordSettleAccount',
+ anchor: '100%',
+ allowBlank: true,
+ listeners: {
+ specialkey: function (field, ee) {
if (ee.getKey() == Ext.EventObject.ENTER) {
searchSupplyRoomStore(supplyRoomStoreSettleAccount, 'keyWordSettleAccount', 'queryResultSettleAccount');
}
}
}
- },{
+ }, {
xtype: 'button',
text: '查询',
iconCls: 'icon_search',
handler: function () {
searchSupplyRoomStore(supplyRoomStoreSettleAccount, 'keyWordSettleAccount', 'queryResultSettleAccount');
}
- },'->',{
- text : '',
- id : 'queryResultSettleAccount'
+ }, '->', {
+ text: '',
+ id: 'queryResultSettleAccount'
}]
})
- supplyRoomStoreSettleAccountGrid.getStore().on('load',function(items,records){
- items.each(function(item,key){
- if(parseInt(item.json.status) == 0){
- supplyRoomStoreSettleAccountGrid.getView().getRow(key).style.display='none';
+ supplyRoomStoreSettleAccountGrid.getStore().on('load', function (items, records) {
+ items.each(function (item, key) {
+ if (parseInt(item.json.status) == 0) {
+ supplyRoomStoreSettleAccountGrid.getView().getRow(key).style.display = 'none';
}
})
})
-
+
tabsItemArr.push({
- title: '结算科室配置',
- layout:'fit',
- items:[
+ title: '结算科室配置',
+ layout: 'fit',
+ items: [
supplyRoomStoreSettleAccountGrid
- ]
+ ]
});
-
+
tabsItemArr.push({
- title: '使用记录转申请单不发货科室配置',
- layout:'fit',
- items:[
+ title: '使用记录转申请单不发货科室配置',
+ layout: 'fit',
+ items: [
new Ext.grid.EditorGridPanel({
- id : 'supplyRoomUseRecordToApplicationNotInvoice',
- store : supplyRoomStoreUseRecordToApplicationNotInvoice,
- cm : new Ext.grid.ColumnModel( [ {
- id : 'id',
- dataIndex : 'id',
- hidden :true
- },{
- id : 'departId',
- dataIndex : 'departId',
- header : '科室编码',
- width : 20,
- hidden :false
- },{
- header : "科室名称",
- dataIndex : 'name',
- width : 220,
- menuDisabled : true
- },{
- header : "科室拼音",
- dataIndex : 'spell',
- width : 30,
- hidden :true,
- menuDisabled : true
- },{
- id : 'deleteItem',
- header:'删除',
- width : 100,
- renderer: function(v,p,record){
+ id: 'supplyRoomUseRecordToApplicationNotInvoice',
+ store: supplyRoomStoreUseRecordToApplicationNotInvoice,
+ cm: new Ext.grid.ColumnModel([{
+ id: 'id',
+ dataIndex: 'id',
+ hidden: true
+ }, {
+ id: 'departId',
+ dataIndex: 'departId',
+ header: '科室编码',
+ width: 20,
+ hidden: false
+ }, {
+ header: "科室名称",
+ dataIndex: 'name',
+ width: 220,
+ menuDisabled: true
+ }, {
+ header: "科室拼音",
+ dataIndex: 'spell',
+ width: 30,
+ hidden: true,
+ menuDisabled: true
+ }, {
+ id: 'deleteItem',
+ header: '删除',
+ width: 100,
+ renderer: function (v, p, record) {
var str = "
";
return str;
},
- menuDisabled : true,
- dataIndex:'id'
- } ]),
- autoExpandColumn : 'deleteItem',
- enableHdMenu : false,
- frame : false,
- viewConfig: {
- forceFit:true,
- getRowClass: function(record, rowIndex){
- return record.get("isFind") ? "resultList" : "";
- }
- },
- width:document.body.offsetWidth-12,
- height:document.body.offsetHeight-94,
- bodyStyle : 'border:1px solid #9cbaef',
- clicksToEdit : 1,
- selModel : new Ext.grid.RowSelectionModel({
- singleSelect : false
+ menuDisabled: true,
+ dataIndex: 'id'
+ }]),
+ autoExpandColumn: 'deleteItem',
+ enableHdMenu: false,
+ frame: false,
+ viewConfig: {
+ forceFit: true,
+ getRowClass: function (record, rowIndex) {
+ return record.get("isFind") ? "resultList" : "";
+ }
+ },
+ width: document.body.offsetWidth - 12,
+ height: document.body.offsetHeight - 94,
+ bodyStyle: 'border:1px solid #9cbaef',
+ clicksToEdit: 1,
+ selModel: new Ext.grid.RowSelectionModel({
+ singleSelect: false
}),
- tbar : [{
- text : '选择科室 :'
- },{
- xtype : 'combo',
- id : 'departNameUseRecordToApplicationNotInvoice',
- name : 'departNameUseRecordToApplicationNotInvoice',
- queryParam : 'spell',
- minChars : 0,
- valueField : 'id',
- displayField : 'name',
- listWidth : 300,
- store : departJsonStore,
- forceSelection : true,
- lazyInit : true,
- triggerAction : 'all',
- hideTrigger : true,
- typeAhead : false,
- allowBlank : true,
- anchor : '97%'
- },{
- text : '添加',
- iconCls : 'btn_ext_add',
- handler : function() {
- var name =Ext.getCmp('departNameUseRecordToApplicationNotInvoice').getRawValue();
- var departId =Ext.getCmp('departNameUseRecordToApplicationNotInvoice').getValue();
- addGridItem(Ext.getCmp("supplyRoomUseRecordToApplicationNotInvoice").getStore(),name,departId,"departNameUseRecordToApplicationNotInvoice");
+ tbar: [{
+ text: '选择科室 :'
+ }, {
+ xtype: 'combo',
+ id: 'departNameUseRecordToApplicationNotInvoice',
+ name: 'departNameUseRecordToApplicationNotInvoice',
+ queryParam: 'spell',
+ minChars: 0,
+ valueField: 'id',
+ displayField: 'name',
+ listWidth: 300,
+ store: departJsonStore,
+ forceSelection: true,
+ lazyInit: true,
+ triggerAction: 'all',
+ hideTrigger: true,
+ typeAhead: false,
+ allowBlank: true,
+ anchor: '97%'
+ }, {
+ text: '添加',
+ iconCls: 'btn_ext_add',
+ handler: function () {
+ var name = Ext.getCmp('departNameUseRecordToApplicationNotInvoice').getRawValue();
+ var departId = Ext.getCmp('departNameUseRecordToApplicationNotInvoice').getValue();
+ addGridItem(Ext.getCmp("supplyRoomUseRecordToApplicationNotInvoice").getStore(), name, departId, "departNameUseRecordToApplicationNotInvoice");
}
},
{
-
- text : '删除全部',
- iconCls : 'btn_ext_application_del',
- handler : function() {
- top.Ext.MessageBox.confirm("请确认","确定要删除所有科室吗?",function(btn){
- if(btn == "yes"){
+
+ text: '删除全部',
+ iconCls: 'btn_ext_application_del',
+ handler: function () {
+ top.Ext.MessageBox.confirm("请确认", "确定要删除所有科室吗?", function (btn) {
+ if (btn == "yes") {
Ext.getCmp("supplyRoomUseRecordToApplicationNotInvoice").getStore().removeAll();
}
});
}
- },{
- text : '搜索科室名称:'
- },{
- xtype : 'textfield',
- id : 'keyWordUseRecordToApplicationNotInvoice',
- anchor : '100%',
- allowBlank : true,
- listeners : {
- specialkey : function(field, ee) {
+ }, {
+ text: '搜索科室名称:'
+ }, {
+ xtype: 'textfield',
+ id: 'keyWordUseRecordToApplicationNotInvoice',
+ anchor: '100%',
+ allowBlank: true,
+ listeners: {
+ specialkey: function (field, ee) {
if (ee.getKey() == Ext.EventObject.ENTER) {
searchSupplyRoomStore(supplyRoomStoreUseRecordToApplicationNotInvoice, 'keyWordUseRecordToApplicationNotInvoice', 'queryResultUseRecordToApplicationNotInvoice');
}
}
}
- },{
+ }, {
xtype: 'button',
text: '查询',
iconCls: 'icon_search',
handler: function () {
searchSupplyRoomStore(supplyRoomStoreUseRecordToApplicationNotInvoice, 'keyWordUseRecordToApplicationNotInvoice', 'queryResultUseRecordToApplicationNotInvoice');
}
- },'->',{
- text : '',
- id : 'queryResultUseRecordToApplicationNotInvoice'
+ }, '->', {
+ text: '',
+ id: 'queryResultUseRecordToApplicationNotInvoice'
}]
})
- ]
+ ]
});
-
+
tabsItemArr.push({
- title: '器械流转科室配置',
- layout:'fit',
- items:[
+ title: '器械流转科室配置',
+ layout: 'fit',
+ items: [
new Ext.grid.EditorGridPanel({
- id : 'supplyRoomTousseOperation',
- store : supplyRoomStoreTousseOperation,
- cm : cmTousseOperation,
- autoExpandColumn : 'deleteItem',
- enableHdMenu : false,
- frame : false,
- viewConfig: {
- forceFit:true,
- getRowClass: function(record, rowIndex){
- return record.get("isFind") ? "resultList" : "";
- }
- },
- width:document.body.offsetWidth-12,
- height:document.body.offsetHeight-94,
- bodyStyle : 'border:1px solid #9cbaef',
- clicksToEdit : 1,
- selModel : new Ext.grid.RowSelectionModel({
- singleSelect : false
+ id: 'supplyRoomTousseOperation',
+ store: supplyRoomStoreTousseOperation,
+ cm: cmTousseOperation,
+ autoExpandColumn: 'deleteItem',
+ enableHdMenu: false,
+ frame: false,
+ viewConfig: {
+ forceFit: true,
+ getRowClass: function (record, rowIndex) {
+ return record.get("isFind") ? "resultList" : "";
+ }
+ },
+ width: document.body.offsetWidth - 12,
+ height: document.body.offsetHeight - 94,
+ bodyStyle: 'border:1px solid #9cbaef',
+ clicksToEdit: 1,
+ selModel: new Ext.grid.RowSelectionModel({
+ singleSelect: false
}),
- tbar : [{
- text : '选择科室 :'
- },{
- xtype : 'combo',
- id : 'departNameTousseOperation',
- name : 'departNameTousseOperation',
- queryParam : 'spell',
- minChars : 0,
- valueField : 'id',
- displayField : 'name',
- store : departJsonStore,
- forceSelection : true,
- listWidth : 300,
- lazyInit : true,
- triggerAction : 'all',
- hideTrigger : true,
- typeAhead : false,
- allowBlank : true,
- anchor : '97%'
- },{
+ tbar: [{
+ text: '选择科室 :'
+ }, {
+ xtype: 'combo',
+ id: 'departNameTousseOperation',
+ name: 'departNameTousseOperation',
+ queryParam: 'spell',
+ minChars: 0,
+ valueField: 'id',
+ displayField: 'name',
+ store: departJsonStore,
+ forceSelection: true,
+ listWidth: 300,
+ lazyInit: true,
+ triggerAction: 'all',
+ hideTrigger: true,
+ typeAhead: false,
+ allowBlank: true,
+ anchor: '97%'
+ }, {
- text : '添加',
- iconCls : 'btn_ext_add',
- handler : function() {
- var name =Ext.getCmp('departNameTousseOperation').getRawValue();
- var departId =Ext.getCmp('departNameTousseOperation').getValue();
- addGridItem(supplyRoomStoreTousseOperation,name,departId,"departNameTousseOperation");
+ text: '添加',
+ iconCls: 'btn_ext_add',
+ handler: function () {
+ var name = Ext.getCmp('departNameTousseOperation').getRawValue();
+ var departId = Ext.getCmp('departNameTousseOperation').getValue();
+ addGridItem(supplyRoomStoreTousseOperation, name, departId, "departNameTousseOperation");
}
},
{
- text : '删除全部',
- iconCls : 'btn_ext_application_del',
- handler : function() {
-
- top.Ext.MessageBox.confirm("请确认","确定要删除所有结算科室吗?",function(btn){
- if(btn == "yes"){
+ text: '删除全部',
+ iconCls: 'btn_ext_application_del',
+ handler: function () {
+
+ top.Ext.MessageBox.confirm("请确认", "确定要删除所有结算科室吗?", function (btn) {
+ if (btn == "yes") {
supplyRoomStoreTousseOperation.removeAll();
}
});
}
- },{
- text : '搜索科室名称:'
- },{
- xtype : 'textfield',
- id : 'keyWordTousseOperation',
- anchor : '100%',
- allowBlank : true,
- listeners : {
- specialkey : function(field, ee) {
+ }, {
+ text: '搜索科室名称:'
+ }, {
+ xtype: 'textfield',
+ id: 'keyWordTousseOperation',
+ anchor: '100%',
+ allowBlank: true,
+ listeners: {
+ specialkey: function (field, ee) {
if (ee.getKey() == Ext.EventObject.ENTER) {
searchSupplyRoomStore(supplyRoomStoreTousseOperation, 'keyWordTousseOperation', 'queryResultTousseOperation');
}
}
}
- },{
+ }, {
xtype: 'button',
text: '查询',
iconCls: 'icon_search',
handler: function () {
- searchSupplyRoomStore(supplyRoomStoreTousseOperation, 'keyWordTousseOperation', 'queryResultTousseOperation');
+ searchSupplyRoomStore(supplyRoomStoreTousseOperation, 'keyWordTousseOperation', 'queryResultTousseOperation');
}
- },'->',{
- text : '',
- id : 'queryResultTousseOperation'
+ }, '->', {
+ text: '',
+ id: 'queryResultTousseOperation'
}]
})
- ]
+ ]
});
-
+
var recyclingApplicationNotInvoiceConfigTab = {
- title: '回收申请单不发货科室配置',
- layout:'fit',
- items:[
+ title: '回收申请单不发货科室配置',
+ layout: 'fit',
+ items: [
new Ext.grid.EditorGridPanel({
- id : 'supplyRoomRecyclingApplicationNotInvoice',
- store : supplyRoomStoreRecyclingApplicationNotInvoice,
- cm : new Ext.grid.ColumnModel( [ {
- dataIndex : 'id',
- hidden :true
- },{
- dataIndex : 'departId',
- header : '科室编码',
- width : 20,
- hidden :false
- },{
- header : "科室名称",
- dataIndex : 'name',
- width : 220,
- menuDisabled : true
- },{
- header : "科室拼音",
- dataIndex : 'spell',
- width : 30,
- hidden :true,
- menuDisabled : true
- },{
- id : 'deleteItem',
- header:'删除',
- width : 100,
- renderer: function(v,p,record){
+ id: 'supplyRoomRecyclingApplicationNotInvoice',
+ store: supplyRoomStoreRecyclingApplicationNotInvoice,
+ cm: new Ext.grid.ColumnModel([{
+ dataIndex: 'id',
+ hidden: true
+ }, {
+ dataIndex: 'departId',
+ header: '科室编码',
+ width: 20,
+ hidden: false
+ }, {
+ header: "科室名称",
+ dataIndex: 'name',
+ width: 220,
+ menuDisabled: true
+ }, {
+ header: "科室拼音",
+ dataIndex: 'spell',
+ width: 30,
+ hidden: true,
+ menuDisabled: true
+ }, {
+ id: 'deleteItem',
+ header: '删除',
+ width: 100,
+ renderer: function (v, p, record) {
var str = "
";
return str;
},
- menuDisabled : true,
- dataIndex:'id'
- } ]),
- autoExpandColumn : 'deleteItem',
- enableHdMenu : false,
- frame : false,
- viewConfig: {
- forceFit:true,
- getRowClass: function(record, rowIndex){
- return record.get("isFind") ? "resultList" : "";
- }
- },
- width:document.body.offsetWidth-12,
- height:document.body.offsetHeight-94,
- bodyStyle : 'border:1px solid #9cbaef',
- clicksToEdit : 1,
- selModel : new Ext.grid.RowSelectionModel({
- singleSelect : false
+ menuDisabled: true,
+ dataIndex: 'id'
+ }]),
+ autoExpandColumn: 'deleteItem',
+ enableHdMenu: false,
+ frame: false,
+ viewConfig: {
+ forceFit: true,
+ getRowClass: function (record, rowIndex) {
+ return record.get("isFind") ? "resultList" : "";
+ }
+ },
+ width: document.body.offsetWidth - 12,
+ height: document.body.offsetHeight - 94,
+ bodyStyle: 'border:1px solid #9cbaef',
+ clicksToEdit: 1,
+ selModel: new Ext.grid.RowSelectionModel({
+ singleSelect: false
}),
- tbar : [{
- text : '选择科室 :'
- },{
- xtype : 'combo',
- id : 'departNameRecyclingApplicationNotInvoice',
- name : 'departNameRecyclingApplicationNotInvoice',
- queryParam : 'spell',
- minChars : 0,
- valueField : 'id',
- displayField : 'name',
- listWidth : 300,
- store : departJsonStore,
- forceSelection : true,
- lazyInit : true,
- triggerAction : 'all',
- hideTrigger : true,
- typeAhead : false,
- allowBlank : true,
- anchor : '97%'
- },{
- text : '添加',
- iconCls : 'btn_ext_add',
- handler : function() {
- var name =Ext.getCmp('departNameRecyclingApplicationNotInvoice').getRawValue();
- var departId =Ext.getCmp('departNameRecyclingApplicationNotInvoice').getValue();
- addGridItem(Ext.getCmp("supplyRoomRecyclingApplicationNotInvoice").getStore(),name,departId,"departNameRecyclingApplicationNotInvoice");
+ tbar: [{
+ text: '选择科室 :'
+ }, {
+ xtype: 'combo',
+ id: 'departNameRecyclingApplicationNotInvoice',
+ name: 'departNameRecyclingApplicationNotInvoice',
+ queryParam: 'spell',
+ minChars: 0,
+ valueField: 'id',
+ displayField: 'name',
+ listWidth: 300,
+ store: departJsonStore,
+ forceSelection: true,
+ lazyInit: true,
+ triggerAction: 'all',
+ hideTrigger: true,
+ typeAhead: false,
+ allowBlank: true,
+ anchor: '97%'
+ }, {
+ text: '添加',
+ iconCls: 'btn_ext_add',
+ handler: function () {
+ var name = Ext.getCmp('departNameRecyclingApplicationNotInvoice').getRawValue();
+ var departId = Ext.getCmp('departNameRecyclingApplicationNotInvoice').getValue();
+ addGridItem(Ext.getCmp("supplyRoomRecyclingApplicationNotInvoice").getStore(), name, departId, "departNameRecyclingApplicationNotInvoice");
}
},
{
-
- text : '删除全部',
- iconCls : 'btn_ext_application_del',
- handler : function() {
- top.Ext.MessageBox.confirm("请确认","确定要删除所有科室吗?",function(btn){
- if(btn == "yes"){
+
+ text: '删除全部',
+ iconCls: 'btn_ext_application_del',
+ handler: function () {
+ top.Ext.MessageBox.confirm("请确认", "确定要删除所有科室吗?", function (btn) {
+ if (btn == "yes") {
Ext.getCmp("supplyRoomRecyclingApplicationNotInvoice").getStore().removeAll();
}
});
}
- },{
- text : '搜索科室名称:'
- },{
- xtype : 'textfield',
- id : 'keyWordRecyclingApplicationNotInvoice',
- anchor : '100%',
- allowBlank : true,
- listeners : {
- specialkey : function(field, ee) {
+ }, {
+ text: '搜索科室名称:'
+ }, {
+ xtype: 'textfield',
+ id: 'keyWordRecyclingApplicationNotInvoice',
+ anchor: '100%',
+ allowBlank: true,
+ listeners: {
+ specialkey: function (field, ee) {
if (ee.getKey() == Ext.EventObject.ENTER) {
searchSupplyRoomStore(supplyRoomStoreRecyclingApplicationNotInvoice, 'keyWordRecyclingApplicationNotInvoice', 'queryResultRecyclingApplicationNotInvoice');
}
}
}
- },{
+ }, {
xtype: 'button',
text: '查询',
iconCls: 'icon_search',
handler: function () {
searchSupplyRoomStore(supplyRoomStoreRecyclingApplicationNotInvoice, 'keyWordRecyclingApplicationNotInvoice', 'queryResultRecyclingApplicationNotInvoice');
}
- },'->',{
- text : '',
- id : 'queryResultRecyclingApplicationNotInvoice'
+ }, '->', {
+ text: '',
+ id: 'queryResultRecyclingApplicationNotInvoice'
}]
})
- ]
+ ]
};
- if(sstsConfig.enableRecyclingApplicationNotInvoice){
+ if (sstsConfig.enableRecyclingApplicationNotInvoice) {
tabsItemArr.push(recyclingApplicationNotInvoiceConfigTab);
}
-
+
if (sstsConfig.enableExpensiveGoods) {
tabsItemArr.push({
- title: '高值耗材处理科室配置',
- layout:'fit',
- items:[
- new Ext.grid.EditorGridPanel({
- id : 'expensiveGoodsSupplyRoom',
- store : supplyRoomStoreExpensiveGoods,
- cm : new Ext.grid.ColumnModel([{
- dataIndex : 'id',
- hidden :true
- },{
- dataIndex : 'departId',
- header : '科室编码',
- width : 20,
- hidden :false
- },{
- header : "科室名称",
- dataIndex : 'name',
- width : 220,
- menuDisabled : true
- },{
- header : "科室拼音",
- dataIndex : 'spell',
- width : 30,
- hidden :true,
- menuDisabled : true
- },{
- id : 'deleteItem',
- header:'删除',
- width : 100,
- renderer: function(v,p,record){
- var str = "
";
- return str;
- },
- menuDisabled : true,
- dataIndex:'id'
- }]),
- width:document.body.offsetWidth-20,
- height:document.body.offsetHeight-94,
- frame : false,
- viewConfig: {
- forceFit:true
+ title: '高值耗材处理科室配置',
+ layout: 'fit',
+ items: [
+ new Ext.grid.EditorGridPanel({
+ id: 'expensiveGoodsSupplyRoom',
+ store: supplyRoomStoreExpensiveGoods,
+ cm: new Ext.grid.ColumnModel([{
+ dataIndex: 'id',
+ hidden: true
+ }, {
+ dataIndex: 'departId',
+ header: '科室编码',
+ width: 20,
+ hidden: false
+ }, {
+ header: "科室名称",
+ dataIndex: 'name',
+ width: 220,
+ menuDisabled: true
+ }, {
+ header: "科室拼音",
+ dataIndex: 'spell',
+ width: 30,
+ hidden: true,
+ menuDisabled: true
+ }, {
+ id: 'deleteItem',
+ header: '删除',
+ width: 100,
+ renderer: function (v, p, record) {
+ var str = "
";
+ return str;
},
- bodyStyle : 'border:1px solid #9cbaef',
- selModel : new Ext.grid.RowSelectionModel({
- singleSelect : false
- }),
- autoExpandColumn : 'deleteItem',
- tbar : [{
- text : '选择科室 :'
- },{
- xtype : 'combo',
- id : 'departNameExpensiveGoodsSupplyRoom',
- name : 'departNameExpensiveGoodsSupplyRoom',
- queryParam : 'spell',
- minChars : 0,
- valueField : 'id',
- displayField : 'name',
-// width : 320,
- store : departJsonStore,
- forceSelection : true,
- lazyInit : true,
- triggerAction : 'all',
- hideTrigger : true,
- typeAhead : false,
- allowBlank : true,
- anchor : '97%'
- },{
- text : '添加',
- iconCls : 'btn_ext_add',
- handler : function() {
- var name =Ext.getCmp('departNameExpensiveGoodsSupplyRoom').getRawValue();
- var departId =Ext.getCmp('departNameExpensiveGoodsSupplyRoom').getValue();
- addGridItem(supplyRoomStoreExpensiveGoods,name,departId,"departNameExpensiveGoodsSupplyRoom");
- }
- }]
- })
- ]
+ menuDisabled: true,
+ dataIndex: 'id'
+ }]),
+ width: document.body.offsetWidth - 20,
+ height: document.body.offsetHeight - 94,
+ frame: false,
+ viewConfig: {
+ forceFit: true
+ },
+ bodyStyle: 'border:1px solid #9cbaef',
+ selModel: new Ext.grid.RowSelectionModel({
+ singleSelect: false
+ }),
+ autoExpandColumn: 'deleteItem',
+ tbar: [{
+ text: '选择科室 :'
+ }, {
+ xtype: 'combo',
+ id: 'departNameExpensiveGoodsSupplyRoom',
+ name: 'departNameExpensiveGoodsSupplyRoom',
+ queryParam: 'spell',
+ minChars: 0,
+ valueField: 'id',
+ displayField: 'name',
+ store: departJsonStore,
+ forceSelection: true,
+ lazyInit: true,
+ triggerAction: 'all',
+ hideTrigger: true,
+ typeAhead: false,
+ allowBlank: true,
+ anchor: '97%'
+ }, {
+ text: '添加',
+ iconCls: 'btn_ext_add',
+ handler: function () {
+ var name = Ext.getCmp('departNameExpensiveGoodsSupplyRoom').getRawValue();
+ var departId = Ext.getCmp('departNameExpensiveGoodsSupplyRoom').getValue();
+ addGridItem(supplyRoomStoreExpensiveGoods, name, departId, "departNameExpensiveGoodsSupplyRoom");
+ }
+ }]
+ })
+ ]
});
}
var tabs = new Ext.TabPanel({
activeTab: 0,
- width:document.body.offsetWidth-10,
- height:document.body.offsetHeight-13,
- plain:true,
- deferredRender : false,
- items:tabsItemArr,
- buttonAlign :'center',
- buttons:[
- {
- text:'保存',
- handler:function(){
- if(Ext.getCmp('autoSignInvoice').getValue() == '是'){
- setHiddenFieldsAllowBlank(false);
- }else{
- setHiddenFieldsAllowBlank(true);
+ width: document.body.offsetWidth - 10,
+ height: document.body.offsetHeight - 13,
+ plain: true,
+ deferredRender: false,
+ items: tabsItemArr,
+ buttonAlign: 'center',
+ buttons: [
+ {
+ text: '保存',
+ handler: function () {
+ if (Ext.getCmp('autoSignInvoice').getValue() == '是') {
+ setHiddenFieldsAllowBlank(false);
+ } else {
+ setHiddenFieldsAllowBlank(true);
}
- if(supplyRoomStoreFirstSupplyRoom.getCount() > 1){
+ if (supplyRoomStoreFirstSupplyRoom.getCount() > 1) {
showResult('只允许设置一个一级供应室,请删除多余的科室后再保存!');
- return false;
+ return false;
}
- var dayStartTime = Ext.getCmp("dayStartTime").getValue();
- if(dayStartTime == ""){
- showResult('一天的开始时间不能为空!');
- return false;
- }
- var saveImageMethod = Ext.getCmp("saveImageMethod").getValue();
- if(saveImageMethod == ""){
- showResult('图片保存方式不能为空!');
- return false;
- }
- var invoiceOrigin = Ext.getCmp("invoiceOrigin").getValue();
- if(invoiceOrigin == ""){
- showResult('发货数量依据不能为空!');
- return false;
- }
- var tousseDeliverOccasion = Ext.getCmp("tousseDeliverOccasion").getValue();
- if(tousseDeliverOccasion == ""){
- showResult('器械包发货时间不能为空!');
- return false;
- }
- var isPackingAfterWashTimeEnd = Ext.getCmp("isPackingAfterWashTimeEnd").getValue();
- if(isPackingAfterWashTimeEnd == ""){
- showResult('是否清洗时间结束后装配不能为空!');
- return false;
- }
- var printUserName = Ext.getCmp("printUserName").getValue();
- if(printUserName == ""){
- showResult('配包打印用户姓名不能为空!');
- return false;
- }
- var autoMergeApplication = Ext.getCmp("autoMergeApplication").getValue();
- if(autoMergeApplication == ""){
- showResult('是否自动合并申请单不能为空!');
- return false;
- }
- var noMergeApplicationTypes = null;
- if(autoMergeApplication == '是'){
- noMergeApplicationTypes = Ext.getCmp("noMergeApplicationTypes").getValue();
- }
- var secondWashCountWorkload = Ext.getCmp("secondWashCountWorkload").getValue();
- if(secondWashCountWorkload == ""){
- showResult('二次清洗是否统计工作量不能为空!');
- return false;
- }
- var dailyMonitoringMinute = Ext.getCmp("dailyMonitoringMinute").getValue();
- if(dailyMonitoringMinute+'' == ""){
- showResult('每天例行监测灭菌完成分钟数不能为空!');
- return false;
- }
+ var dayStartTime = Ext.getCmp("dayStartTime").getValue();
+ if (dayStartTime == "") {
+ showResult('一天的开始时间不能为空!');
+ return false;
+ }
+ var saveImageMethod = Ext.getCmp("saveImageMethod").getValue();
+ if (saveImageMethod == "") {
+ showResult('图片保存方式不能为空!');
+ return false;
+ }
+ var invoiceOrigin = Ext.getCmp("invoiceOrigin").getValue();
+ if (invoiceOrigin == "") {
+ showResult('发货数量依据不能为空!');
+ return false;
+ }
+ var tousseDeliverOccasion = Ext.getCmp("tousseDeliverOccasion").getValue();
+ if (tousseDeliverOccasion == "") {
+ showResult('器械包发货时间不能为空!');
+ return false;
+ }
+ var isPackingAfterWashTimeEnd = Ext.getCmp("isPackingAfterWashTimeEnd").getValue();
+ if (isPackingAfterWashTimeEnd == "") {
+ showResult('是否清洗时间结束后装配不能为空!');
+ return false;
+ }
+ var printUserName = Ext.getCmp("printUserName").getValue();
+ if (printUserName == "") {
+ showResult('配包打印用户姓名不能为空!');
+ return false;
+ }
+ var autoMergeApplication = Ext.getCmp("autoMergeApplication").getValue();
+ if (autoMergeApplication == "") {
+ showResult('是否自动合并申请单不能为空!');
+ return false;
+ }
+ var noMergeApplicationTypes = null;
+ if (autoMergeApplication == '是') {
+ noMergeApplicationTypes = Ext.getCmp("noMergeApplicationTypes").getValue();
+ }
+ var secondWashCountWorkload = Ext.getCmp("secondWashCountWorkload").getValue();
+ if (secondWashCountWorkload == "") {
+ showResult('二次清洗是否统计工作量不能为空!');
+ return false;
+ }
+ var dailyMonitoringMinute = Ext.getCmp("dailyMonitoringMinute").getValue();
+ if (dailyMonitoringMinute + '' == "") {
+ showResult('每天例行监测灭菌完成分钟数不能为空!');
+ return false;
+ }
var disposableGoodsWarningDate = Ext.getCmp("disposableGoodsWarningDate").getValue();
- if(disposableGoodsWarningDate == null){
+ if (disposableGoodsWarningDate == null) {
disposableGoodsWarningDate = "";
}
- var disposableGoodsExpTime = Ext.getCmp("disposableGoodsExpTime").getValue();
- if(disposableGoodsExpTime == ""){
- showResult('一次性物品退货天数不能为空!');
- return false;
- }
- var isSecondSupplyRoomNeedRecycle = Ext.getCmp("isSecondSupplyRoomNeedRecycle").getValue();
- if(isSecondSupplyRoomNeedRecycle == ""){
- showResult('二级供应室是否需要回收不能为空!');
- return false;
- }
- var isTousseDgMergeConvert = Ext.getCmp("isTousseDgMergeConvert").getValue();
- if(isTousseDgMergeConvert == ""){
- showResult('器械包和一次性物品转换合并不能为空!');
- return false;
- }
- var damagedTousseAtCost = Ext.getCmp("damagedTousseAtCost").getValue();
- if(damagedTousseAtCost == ""){
- showResult('报损器械计算科室成本不能为空!');
- return false;
- }
- var insideTousseMaterialOutCost = Ext.getCmp("insideTousseMaterialOutCost").getValue();
- if(insideTousseMaterialOutCost == ""){
- showResult('包内材料扣减科室成本不能为空!');
- return false;
- }
- var foreignToussePrice = Ext.getCmp("foreignToussePrice").getValue();
- if(typeof(foreignToussePrice) != "number"){
- showResult('外来器械包价格不能为空!');
- return false;
- }
- var diposablePriceFluctuation = Ext.getCmp("diposablePriceFluctuation").getValue();
- if(typeof(diposablePriceFluctuation) != "number"){
- showResult('一次性物品价格浮动系数不能为空!');
- return false;
- }
- var toussePriceFluctuation = Ext.getCmp("toussePriceFluctuation").getValue();
- if(typeof(toussePriceFluctuation) != "number"){
- showResult('器械包价格浮动系数不能为空!');
- return false;
- }
- var customToussePrice = Ext.getCmp("customToussePrice").getValue();
- if(typeof(customToussePrice) != "number"){
- showResult('自定义器械包价格不能为空!');
- return false;
- }
- var idCardPrice = Ext.getCmp("idCardPrice").getValue();
- if(typeof(idCardPrice) != "number"){
- showResult('标识牌价格不能为空!');
- return false;
- }
- var foreignTousseCleanedEntirely = Ext.getCmp("foreignTousseCleanedEntirely").getValue();
- if(foreignTousseCleanedEntirely == ""){
- showResult('外来器械包是否整包清洗不能为空!');
- return false;
- }
- var foreignTousseNeedReview = Ext.getCmp("foreignTousseNeedReview").getRawValue();
- if(foreignTousseNeedReview == ""){
- showResult('外来器械包是否审核不能为空!');
- return false;
- }
- var foreignTousseIsSecondRecycle = Ext.getCmp("foreignTousseIsSecondRecycle").getRawValue();
- var barcodePaperType = Ext.getCmp("barcodePaperType").getValue();
- if(barcodePaperType == ""){
- showResult('外来器械包打印标签不能为空!');
- return false;
- }
- var expensiveGoodsPaperType = Ext.getCmp("expensiveGoodsPaperType").getValue();
- var bigPackageSterilizerType = Ext.getCmp("bigPackageSterilizerType").getValue();
- if(bigPackageSterilizerType == ""){
- showResult('超大、重外来器械灭菌方式不能为空!');
- return false;
- }
- var isCustomTousseCleanEntirely = Ext.getCmp("isCustomTousseCleanEntirely").getValue();
- if(isCustomTousseCleanEntirely == ""){
- showResult('自定义器械包是否整包清洗不能为空!');
- return false;
- }
- /*var afterRecyclingTousseDeliver = Ext.getCmp("afterRecyclingTousseDeliver").getValue();
- if(afterRecyclingTousseDeliver == ""){
- showResult('器械包回收后发货不能为空!');
- return false;
- }*/
- var autoSignInvoice = Ext.getCmp("autoSignInvoice").getValue();
- if(autoSignInvoice == ""){
- showResult('是否自动签收发货单不能为空!');
- return false;
- }
- var isSecondSupplyRoomAutoInvoice = Ext.getCmp("isSecondSupplyRoomAutoInvoice").getValue();
- if(isSecondSupplyRoomAutoInvoice == ""){
- showResult('二级供应室是否自动发货不能为空!');
- return false;
- }
- var timingSignInvoiceTime = Ext.getCmp("timingSignInvoiceTime").getValue();
-// if(timingSignInvoiceTime == ""){
-// showResult('定时签收发货单时间(分钟)不能为空!');
-// return false;
-// }
-
- var warningTousseWhetherDelivery = Ext.getCmp("warningTousseWhetherDelivery").getValue();
- if(warningTousseWhetherDelivery == ""){
- showResult('处于预警期器械包能否发货不能为空!');
- return false;
- }
-
- var mergeTousseRuleForInvoiceBatchPrintStr = Ext.getCmp("mergeTousseRuleForInvoiceBatchPrintStr").getRawValue();
- if(mergeTousseRuleForInvoiceBatchPrintStr == ""){
- showResult('合并发货单器械规则不能为空!');
- return false;
- }
-
- if(sstsConfig.enableExpensiveGoods){
- var supplierCertificationExpTime = Ext.getCmp("supplierCertificationExpTime").getValue();
- if(supplierCertificationExpTime == ""){
- showResult('供应商注册证预警期天数不能为空!');
- return false;
- }
- }
- if(sstsConfig.enableExpensiveGoods){
- var expensiveGoodsBillWarningTime = Ext.getCmp("expensiveGoodsBillWarningTime").getValue();
- if(expensiveGoodsBillWarningTime == ""){
- showResult('高值耗材发票预警期天数不能为空!');
- return false;
- }
+ var disposableGoodsExpTime = Ext.getCmp("disposableGoodsExpTime").getValue();
+ if (disposableGoodsExpTime == "") {
+ showResult('一次性物品退货天数不能为空!');
+ return false;
}
+ var isSecondSupplyRoomNeedRecycle = Ext.getCmp("isSecondSupplyRoomNeedRecycle").getValue();
+ if (isSecondSupplyRoomNeedRecycle == "") {
+ showResult('二级供应室是否需要回收不能为空!');
+ return false;
+ }
+ var isTousseDgMergeConvert = Ext.getCmp("isTousseDgMergeConvert").getValue();
+ if (isTousseDgMergeConvert == "") {
+ showResult('器械包和一次性物品转换合并不能为空!');
+ return false;
+ }
+ var damagedTousseAtCost = Ext.getCmp("damagedTousseAtCost").getValue();
+ if (damagedTousseAtCost == "") {
+ showResult('报损器械计算科室成本不能为空!');
+ return false;
+ }
+ var insideTousseMaterialOutCost = Ext.getCmp("insideTousseMaterialOutCost").getValue();
+ if (insideTousseMaterialOutCost == "") {
+ showResult('包内材料扣减科室成本不能为空!');
+ return false;
+ }
+ var foreignToussePrice = Ext.getCmp("foreignToussePrice").getValue();
+ if (typeof (foreignToussePrice) != "number") {
+ showResult('外来器械包价格不能为空!');
+ return false;
+ }
+ var diposablePriceFluctuation = Ext.getCmp("diposablePriceFluctuation").getValue();
+ if (typeof (diposablePriceFluctuation) != "number") {
+ showResult('一次性物品价格浮动系数不能为空!');
+ return false;
+ }
+ var toussePriceFluctuation = Ext.getCmp("toussePriceFluctuation").getValue();
+ if (typeof (toussePriceFluctuation) != "number") {
+ showResult('器械包价格浮动系数不能为空!');
+ return false;
+ }
+ var customToussePrice = Ext.getCmp("customToussePrice").getValue();
+ if (typeof (customToussePrice) != "number") {
+ showResult('自定义器械包价格不能为空!');
+ return false;
+ }
+ var idCardPrice = Ext.getCmp("idCardPrice").getValue();
+ if (typeof (idCardPrice) != "number") {
+ showResult('标识牌价格不能为空!');
+ return false;
+ }
+ var foreignTousseCleanedEntirely = Ext.getCmp("foreignTousseCleanedEntirely").getValue();
+ if (foreignTousseCleanedEntirely == "") {
+ showResult('外来器械包是否整包清洗不能为空!');
+ return false;
+ }
+ var foreignTousseNeedReview = Ext.getCmp("foreignTousseNeedReview").getRawValue();
+ if (foreignTousseNeedReview == "") {
+ showResult('外来器械包是否审核不能为空!');
+ return false;
+ }
+ var foreignTousseIsSecondRecycle = Ext.getCmp("foreignTousseIsSecondRecycle").getRawValue();
+ var barcodePaperType = Ext.getCmp("barcodePaperType").getValue();
+ if (barcodePaperType == "") {
+ showResult('外来器械包打印标签不能为空!');
+ return false;
+ }
+ var expensiveGoodsPaperType = Ext.getCmp("expensiveGoodsPaperType").getValue();
+ var bigPackageSterilizerType = Ext.getCmp("bigPackageSterilizerType").getValue();
+ if (bigPackageSterilizerType == "") {
+ showResult('超大、重外来器械灭菌方式不能为空!');
+ return false;
+ }
+ var isCustomTousseCleanEntirely = Ext.getCmp("isCustomTousseCleanEntirely").getValue();
+ if (isCustomTousseCleanEntirely == "") {
+ showResult('自定义器械包是否整包清洗不能为空!');
+ return false;
+ }
+ /*var afterRecyclingTousseDeliver = Ext.getCmp("afterRecyclingTousseDeliver").getValue();
+ if(afterRecyclingTousseDeliver == ""){
+ showResult('器械包回收后发货不能为空!');
+ return false;
+ }*/
+ var autoSignInvoice = Ext.getCmp("autoSignInvoice").getValue();
+ if (autoSignInvoice == "") {
+ showResult('是否自动签收发货单不能为空!');
+ return false;
+ }
+ var isSecondSupplyRoomAutoInvoice = Ext.getCmp("isSecondSupplyRoomAutoInvoice").getValue();
+ if (isSecondSupplyRoomAutoInvoice == "") {
+ showResult('二级供应室是否自动发货不能为空!');
+ return false;
+ }
+ var timingSignInvoiceTime = Ext.getCmp("timingSignInvoiceTime").getValue();
+
+ var warningTousseWhetherDelivery = Ext.getCmp("warningTousseWhetherDelivery").getValue();
+ if (warningTousseWhetherDelivery == "") {
+ showResult('处于预警期器械包能否发货不能为空!');
+ return false;
+ }
+
+ var mergeTousseRuleForInvoiceBatchPrintStr = Ext.getCmp("mergeTousseRuleForInvoiceBatchPrintStr").getRawValue();
+ if (mergeTousseRuleForInvoiceBatchPrintStr == "") {
+ showResult('合并发货单器械规则不能为空!');
+ return false;
+ }
+
+ if (sstsConfig.enableExpensiveGoods) {
+ var supplierCertificationExpTime = Ext.getCmp("supplierCertificationExpTime").getValue();
+ if (supplierCertificationExpTime == "") {
+ showResult('供应商注册证预警期天数不能为空!');
+ return false;
+ }
+ }
+ if (sstsConfig.enableExpensiveGoods) {
+ var expensiveGoodsBillWarningTime = Ext.getCmp("expensiveGoodsBillWarningTime").getValue();
+ if (expensiveGoodsBillWarningTime == "") {
+ showResult('高值耗材发票预警期天数不能为空!');
+ return false;
+ }
+ }
var foreignTousseAppEndTime = Ext.getCmp("foreignTousseAppEndTime").getValue();
- var unitName = Ext.getCmp("unitName").getValue();
- var basketLoadeTousseAmount = Ext.getCmp("basketLoadeTousseAmount").getValue();
- var customTousseDefaultTaskGroup = Ext.getCmp("customTousseDefaultTaskGroup").getValue();
- var ctDefaultPackageType = Ext.getCmp("ctDefaultPackageType").getValue();//自定义器械包默认类型
- var customTousseNeedReview = Ext.getCmp("customTousseNeedReview").getValue();//自定义器械包是否审核
- var ctDefaultSterilingMethod = Ext.getCmp("ctDefaultSterilingMethod").getValue();//自定义器械包默认灭菌程序
- var ctBarcodePaperType = Ext.getCmp("ctBarcodePaperType").getValue();//自定义器械包打印标签
- var ctPrintOrgSource = Ext.getCmp("ctPrintOrgSource").getValue();//自定义器械包打印科室来源
- // var customTousseNeedRecycle = Ext.getCmp("customTousseNeedRecycle").getValue();//自定义器械包是否回收
- var fTHandleDepartAndTaskGroup = Ext.getCmp("fTHandleDepartAndTaskGroup").getValue();
- var ftDefaultSterilingMethod = Ext.getCmp("ftDefaultSterilingMethod").getValue();
-
- var ftPrintOrgSource = Ext.getCmp("ftPrintOrgSource").getValue();
- var ftPrintAmount = Ext.getCmp("ftPrintAmount").getValue();
- var ftPrintAmountSource = Ext.getCmp("ftPrintAmountSource").getValue();
- //外来器械默认申请科室
- var ftApplyDepartment = '';
- var ftApplyDepartmentCode = '';
- if (Ext.getCmp("ftApplyDepartmentCombo").getRawValue()) {
- ftApplyDepartment = Ext.getCmp("ftApplyDepartment").getValue();
- ftApplyDepartmentCode = Ext.getCmp("ftApplyDepartmentCode").getValue();
- }
-
+ var unitName = Ext.getCmp("unitName").getValue();
+ var basketLoadeTousseAmount = Ext.getCmp("basketLoadeTousseAmount").getValue();
+ var customTousseDefaultTaskGroup = Ext.getCmp("customTousseDefaultTaskGroup").getValue();
+ var ctDefaultPackageType = Ext.getCmp("ctDefaultPackageType").getValue();//自定义器械包默认类型
+ var customTousseNeedReview = Ext.getCmp("customTousseNeedReview").getValue();//自定义器械包是否审核
+ var ctDefaultSterilingMethod = Ext.getCmp("ctDefaultSterilingMethod").getValue();//自定义器械包默认灭菌程序
+ var ctBarcodePaperType = Ext.getCmp("ctBarcodePaperType").getValue();//自定义器械包打印标签
+ var ctPrintOrgSource = Ext.getCmp("ctPrintOrgSource").getValue();//自定义器械包打印科室来源
+ // var customTousseNeedRecycle = Ext.getCmp("customTousseNeedRecycle").getValue();//自定义器械包是否回收
+ var fTHandleDepartAndTaskGroup = Ext.getCmp("fTHandleDepartAndTaskGroup").getValue();
+ var ftDefaultSterilingMethod = Ext.getCmp("ftDefaultSterilingMethod").getValue();
+
+ var ftPrintOrgSource = Ext.getCmp("ftPrintOrgSource").getValue();
+ var ftPrintAmount = Ext.getCmp("ftPrintAmount").getValue();
+ var ftPrintAmountSource = Ext.getCmp("ftPrintAmountSource").getValue();
+ //外来器械默认申请科室
+ var ftApplyDepartment = '';
+ var ftApplyDepartmentCode = '';
+ if (Ext.getCmp("ftApplyDepartmentCombo").getRawValue()) {
+ ftApplyDepartment = Ext.getCmp("ftApplyDepartment").getValue();
+ ftApplyDepartmentCode = Ext.getCmp("ftApplyDepartmentCode").getValue();
+ }
+
var mergeApplicationDepartNameAndCodeArr = "";
- if(autoMergeApplication == "否" || autoMergeApplication == ""){
+ if (autoMergeApplication == "否" || autoMergeApplication == "") {
mergeApplicationDepartNameAndCodeArr = "";
- }else{
- mergeApplicationDepartNameAndCodeArr = Ext.getCmp("autoMergeApplicationDepartsCodes").getValue();
+ } else {
+ mergeApplicationDepartNameAndCodeArr = Ext.getCmp("autoMergeApplicationDepartsCodes").getValue();
}
-
- var ftDefaultPackageType = Ext.getCmp("ftDefaultPackageType").getValue();
- var isORAppFormMerge = Ext.getCmp("isORAppFormMerge").getValue();
- var isDgConvertApplication = Ext.getCmp("isDgConvertApplication").getValue();
- var saveImagePath = Ext.getCmp("saveImagePath").getValue();
- var mergeTousseRuleForInvoiceBatchPrint = Ext.getCmp("mergeTousseRuleForInvoiceBatchPrint").getValue();
+
+ var ftDefaultPackageType = Ext.getCmp("ftDefaultPackageType").getValue();
+ var isORAppFormMerge = Ext.getCmp("isORAppFormMerge").getValue();
+ var isDgConvertApplication = Ext.getCmp("isDgConvertApplication").getValue();
+ var saveImagePath = Ext.getCmp("saveImagePath").getValue();
+ var mergeTousseRuleForInvoiceBatchPrint = Ext.getCmp("mergeTousseRuleForInvoiceBatchPrint").getValue();
var receiptor = Ext.getCmp("receiptor").getValue();
var urgentLevelId = Ext.getCmp("urgentLevelId").getValue();
- var myMask = new Ext.LoadMask(Ext.getBody(), {msg:"正在保存..."});
- myMask.show();
-
- getGridData();
-
- var supplyRoom_type_first_supplyRoom = Ext.getCmp('supplyRoom_type_first_supplyRoom').getValue();
- var supplyRoom_type_second_supplyRoom = Ext.getCmp('supplyRoom_type_second_supplyRoom').getValue();
- var supplyRoom_type_apply = Ext.getCmp('supplyRoom_type_apply').getValue();
- var supplyRoom_type_settleAccount = Ext.getCmp('supplyRoom_type_settleAccount').getValue();
- var supplyRoom_type_userecord_to_application_not_invoice = Ext.getCmp('supplyRoom_type_userecord_to_application_not_invoice').getValue();
- var supplyRoom_type_tousse_operation = Ext.getCmp('supplyRoom_type_tousse_operation').getValue();
- var supplyRoom_type_recycling_application_not_invoice = Ext.getCmp('supplyRoom_type_recycling_application_not_invoice').getValue();
- var supplyRoom_type_ExpensiveGoods = Ext.getCmp('supplyRoom_type_ExpensiveGoods').getValue();
- Ext.Ajax.request({
- url : WWWROOT + '/disinfectSystem/baseData/supplyRoomConfigAction!saveSupplyRoomCongfig.do',
- method:'POST',
- params : {
- supplyRoom_type_first_supplyRoom : supplyRoom_type_first_supplyRoom,
- supplyRoom_type_second_supplyRoom : supplyRoom_type_second_supplyRoom,
- supplyRoom_type_apply : supplyRoom_type_apply,
- supplyRoom_type_settleAccount : supplyRoom_type_settleAccount,
- supplyRoom_type_userecord_to_application_not_invoice : supplyRoom_type_userecord_to_application_not_invoice,
- supplyRoom_type_tousse_operation : supplyRoom_type_tousse_operation,
- supplyRoom_type_recycling_application_not_invoice:supplyRoom_type_recycling_application_not_invoice,
- supplyRoom_type_ExpensiveGoods: supplyRoom_type_ExpensiveGoods, //高值耗材的grid数据
- saveImageMethod : saveImageMethod,//
- saveImagePath : saveImagePath,//
- secondWashCountWorkload : secondWashCountWorkload,//
- //afterRecyclingTousseDeliver:afterRecyclingTousseDeliver,//
- autoMergeApplication : autoMergeApplication,//
- autoSignInvoice : autoSignInvoice,//
- bigPackageSterilizerType : bigPackageSterilizerType,//
- barcodePaperType : barcodePaperType,//
- urgentLevelId:urgentLevelId,
- expensiveGoodsPaperType : expensiveGoodsPaperType,//
- basketLoadeTousseAmount : basketLoadeTousseAmount,//
- customTousseDefaultTaskGroup : customTousseDefaultTaskGroup,//
- ctDefaultPackageType : ctDefaultPackageType,//自定义器械包默认类型
- customTousseNeedReview : customTousseNeedReview,//自定义器械包是否审核
- ctDefaultSterilingMethod : ctDefaultSterilingMethod,//自定义器械包默认灭菌程序
- ctBarcodePaperType : ctBarcodePaperType,//自定义器械包默认打印标签
- ctPrintOrgSource : ctPrintOrgSource,//自定义器械包打印科室来源
- // customTousseNeedRecycle : customTousseNeedRecycle,//自定义器械包是否回收
- customToussePrice : customToussePrice,//
- dayStartTime : dayStartTime,//
- disposableGoodsWarningDate:disposableGoodsWarningDate,
- disposableGoodsExpTime : disposableGoodsExpTime,//
- fTHandleDepartAndTaskGroup : fTHandleDepartAndTaskGroup,
- diposablePriceFluctuation : diposablePriceFluctuation,//
- dailyMonitoringMinute : dailyMonitoringMinute,//
- foreignToussePrice : foreignToussePrice,//
- foreignTousseCleanedEntirely:foreignTousseCleanedEntirely,//
- foreignTousseNeedReview:foreignTousseNeedReview,//
- foreignTousseIsSecondRecycle:foreignTousseIsSecondRecycle,
- foreignTousseAppEndTime:foreignTousseAppEndTime,
- ftDefaultSterilingMethod:ftDefaultSterilingMethod,//
- ftPrintOrgSource:ftPrintOrgSource,
- ftPrintAmount:ftPrintAmount,
- ftPrintAmountSource: ftPrintAmountSource,
- ftApplyDepartment:ftApplyDepartment,//
- ftApplyDepartmentCode:ftApplyDepartmentCode,//
- ftDefaultPackageType:ftDefaultPackageType,//
- idCardPrice : idCardPrice,//
- invoiceOrigin : invoiceOrigin,//
- tousseDeliverOccasion:tousseDeliverOccasion,
- isORAppFormMerge:isORAppFormMerge,//
- isDgConvertApplication:isDgConvertApplication,//
- isTousseDgMergeConvert:isTousseDgMergeConvert,//
- damagedTousseAtCost : damagedTousseAtCost,
- insideTousseMaterialOutCost : insideTousseMaterialOutCost,
- isCustomTousseCleanEntirely:isCustomTousseCleanEntirely,//
- isSecondSupplyRoomNeedRecycle : isSecondSupplyRoomNeedRecycle,//
- isSecondSupplyRoomAutoInvoice:isSecondSupplyRoomAutoInvoice,//
- isPackingAfterWashTimeEnd : isPackingAfterWashTimeEnd,//
- toussePriceFluctuation : toussePriceFluctuation,//
- printUserName : printUserName,//
- mergeTousseRuleForInvoiceBatchPrint : mergeTousseRuleForInvoiceBatchPrint,//
- timingSignInvoiceTime:timingSignInvoiceTime,//
- warningTousseWhetherDelivery:warningTousseWhetherDelivery,//
- unitName : unitName,
- supplierCertificationExpTime : supplierCertificationExpTime, //供应商注册证预警期
- expensiveGoodsBillWarningTime : expensiveGoodsBillWarningTime,//高值耗材发票预警期
- noMergeApplicationTypes : noMergeApplicationTypes,
- mergeApplicationDepartArr:mergeApplicationDepartNameAndCodeArr, //自动合并申请单的科室编码和科室名称
- receiptor : receiptor //自动签收发货单的签收人名字
- },
- success : function(response, options) {
- var result = Ext.decode(response.responseText);
- myMask.hide();
- if(result.success){
- supplyRoomStoreFirstSupplyRoom.reload();
- supplyRoomStoreSecondSupplyRoom.reload();
- supplyRoomStoreExpensiveGoods.reload();
- showResult('保存成功');
- }else{
- showResult(result.message);
- }
- },
- failure : function(response, options) {
- myMask.hide();
- var result = Ext.decode(response.responseText);
- if(result && result.msg){
- showResult(result.msg);
- }else{
- showResult('保存失败');
- }
- }
- });
-
- }
- }
- ]
- });
-
+ var myMask = new Ext.LoadMask(Ext.getBody(), { msg: "正在保存..." });
+ myMask.show();
+
+ getGridData();
+
+ var supplyRoom_type_first_supplyRoom = Ext.getCmp('supplyRoom_type_first_supplyRoom').getValue();
+ var supplyRoom_type_second_supplyRoom = Ext.getCmp('supplyRoom_type_second_supplyRoom').getValue();
+ var supplyRoom_type_apply = Ext.getCmp('supplyRoom_type_apply').getValue();
+ var supplyRoom_type_settleAccount = Ext.getCmp('supplyRoom_type_settleAccount').getValue();
+ var supplyRoom_type_userecord_to_application_not_invoice = Ext.getCmp('supplyRoom_type_userecord_to_application_not_invoice').getValue();
+ var supplyRoom_type_tousse_operation = Ext.getCmp('supplyRoom_type_tousse_operation').getValue();
+ var supplyRoom_type_recycling_application_not_invoice = Ext.getCmp('supplyRoom_type_recycling_application_not_invoice').getValue();
+ var supplyRoom_type_ExpensiveGoods = Ext.getCmp('supplyRoom_type_ExpensiveGoods').getValue();
+ Ext.Ajax.request({
+ url: WWWROOT + '/disinfectSystem/baseData/supplyRoomConfigAction!saveSupplyRoomCongfig.do',
+ method: 'POST',
+ params: {
+ supplyRoom_type_first_supplyRoom: supplyRoom_type_first_supplyRoom,
+ supplyRoom_type_second_supplyRoom: supplyRoom_type_second_supplyRoom,
+ supplyRoom_type_apply: supplyRoom_type_apply,
+ supplyRoom_type_settleAccount: supplyRoom_type_settleAccount,
+ supplyRoom_type_userecord_to_application_not_invoice: supplyRoom_type_userecord_to_application_not_invoice,
+ supplyRoom_type_tousse_operation: supplyRoom_type_tousse_operation,
+ supplyRoom_type_recycling_application_not_invoice: supplyRoom_type_recycling_application_not_invoice,
+ supplyRoom_type_ExpensiveGoods: supplyRoom_type_ExpensiveGoods, //高值耗材的grid数据
+ saveImageMethod: saveImageMethod,//
+ saveImagePath: saveImagePath,//
+ secondWashCountWorkload: secondWashCountWorkload,//
+ //afterRecyclingTousseDeliver:afterRecyclingTousseDeliver,//
+ autoMergeApplication: autoMergeApplication,//
+ autoSignInvoice: autoSignInvoice,//
+ bigPackageSterilizerType: bigPackageSterilizerType,//
+ barcodePaperType: barcodePaperType,//
+ urgentLevelId: urgentLevelId,
+ expensiveGoodsPaperType: expensiveGoodsPaperType,//
+ basketLoadeTousseAmount: basketLoadeTousseAmount,//
+ customTousseDefaultTaskGroup: customTousseDefaultTaskGroup,//
+ ctDefaultPackageType: ctDefaultPackageType,//自定义器械包默认类型
+ customTousseNeedReview: customTousseNeedReview,//自定义器械包是否审核
+ ctDefaultSterilingMethod: ctDefaultSterilingMethod,//自定义器械包默认灭菌程序
+ ctBarcodePaperType: ctBarcodePaperType,//自定义器械包默认打印标签
+ ctPrintOrgSource: ctPrintOrgSource,//自定义器械包打印科室来源
+ // customTousseNeedRecycle : customTousseNeedRecycle,//自定义器械包是否回收
+ customToussePrice: customToussePrice,//
+ dayStartTime: dayStartTime,//
+ disposableGoodsWarningDate: disposableGoodsWarningDate,
+ disposableGoodsExpTime: disposableGoodsExpTime,//
+ fTHandleDepartAndTaskGroup: fTHandleDepartAndTaskGroup,
+ diposablePriceFluctuation: diposablePriceFluctuation,//
+ dailyMonitoringMinute: dailyMonitoringMinute,//
+ foreignToussePrice: foreignToussePrice,//
+ foreignTousseCleanedEntirely: foreignTousseCleanedEntirely,//
+ foreignTousseNeedReview: foreignTousseNeedReview,//
+ foreignTousseIsSecondRecycle: foreignTousseIsSecondRecycle,
+ foreignTousseAppEndTime: foreignTousseAppEndTime,
+ ftDefaultSterilingMethod: ftDefaultSterilingMethod,//
+ ftPrintOrgSource: ftPrintOrgSource,
+ ftPrintAmount: ftPrintAmount,
+ ftPrintAmountSource: ftPrintAmountSource,
+ ftApplyDepartment: ftApplyDepartment,//
+ ftApplyDepartmentCode: ftApplyDepartmentCode,//
+ ftDefaultPackageType: ftDefaultPackageType,//
+ idCardPrice: idCardPrice,//
+ invoiceOrigin: invoiceOrigin,//
+ tousseDeliverOccasion: tousseDeliverOccasion,
+ isORAppFormMerge: isORAppFormMerge,//
+ isDgConvertApplication: isDgConvertApplication,//
+ isTousseDgMergeConvert: isTousseDgMergeConvert,//
+ damagedTousseAtCost: damagedTousseAtCost,
+ insideTousseMaterialOutCost: insideTousseMaterialOutCost,
+ isCustomTousseCleanEntirely: isCustomTousseCleanEntirely,//
+ isSecondSupplyRoomNeedRecycle: isSecondSupplyRoomNeedRecycle,//
+ isSecondSupplyRoomAutoInvoice: isSecondSupplyRoomAutoInvoice,//
+ isPackingAfterWashTimeEnd: isPackingAfterWashTimeEnd,//
+ toussePriceFluctuation: toussePriceFluctuation,//
+ printUserName: printUserName,//
+ mergeTousseRuleForInvoiceBatchPrint: mergeTousseRuleForInvoiceBatchPrint,//
+ timingSignInvoiceTime: timingSignInvoiceTime,//
+ warningTousseWhetherDelivery: warningTousseWhetherDelivery,//
+ unitName: unitName,
+ supplierCertificationExpTime: supplierCertificationExpTime, //供应商注册证预警期
+ expensiveGoodsBillWarningTime: expensiveGoodsBillWarningTime,//高值耗材发票预警期
+ noMergeApplicationTypes: noMergeApplicationTypes,
+ mergeApplicationDepartArr: mergeApplicationDepartNameAndCodeArr, //自动合并申请单的科室编码和科室名称
+ receiptor: receiptor //自动签收发货单的签收人名字
+ },
+ success: function (response, options) {
+ var result = Ext.decode(response.responseText);
+ myMask.hide();
+ if (result.success) {
+ supplyRoomStoreFirstSupplyRoom.reload();
+ supplyRoomStoreSecondSupplyRoom.reload();
+ supplyRoomStoreExpensiveGoods.reload();
+ showResult('保存成功');
+ } else {
+ showResult(result.message);
+ }
+ },
+ failure: function (response, options) {
+ myMask.hide();
+ var result = Ext.decode(response.responseText);
+ if (result && result.msg) {
+ showResult(result.msg);
+ } else {
+ showResult('保存失败');
+ }
+ }
+ });
+
+ }
+ }
+ ]
+ });
+
tabs.doLayout()
-
+
var formPanel = new Ext.form.FormPanel({
- id: "myFormPanel",
- frame : true,
- border : false,
- renderTo: 'formPanel',
- buttonAlign :'center',
- height : document.body.offsetHeight,
- layout : 'border',
- items:[tabs]
+ id: "myFormPanel",
+ frame: true,
+ border: false,
+ renderTo: 'formPanel',
+ buttonAlign: 'center',
+ height: document.body.offsetHeight,
+ layout: 'border',
+ items: [tabs]
});
-
- SupplyRoomConfigTableManager.getStartTimeObject(function(supplyRoomConfig){
- if(supplyRoomConfig!=null){
- if(supplyRoomConfig.dayStartTime!=null){
- Ext.getCmp('dayStartTime').setValue(supplyRoomConfig.dayStartTime);
- }
- if(supplyRoomConfig.barcodePaperType!=null){
- Ext.getCmp('barcodePaperType').setValue(supplyRoomConfig.barcodePaperType);
- }
- if(supplyRoomConfig.expensiveGoodsPaperType!=null){
- Ext.getCmp('expensiveGoodsPaperType').setValue(supplyRoomConfig.expensiveGoodsPaperType);
- }
-
- if(supplyRoomConfig.disposableGoodsWarningDate!=null){
- Ext.getCmp('disposableGoodsWarningDate').setValue(supplyRoomConfig.disposableGoodsWarningDate);
+
+ SupplyRoomConfigTableManager.getStartTimeObject(function (supplyRoomConfig) {
+ if (supplyRoomConfig != null) {
+ if (supplyRoomConfig.dayStartTime != null) {
+ Ext.getCmp('dayStartTime').setValue(supplyRoomConfig.dayStartTime);
}
- if(supplyRoomConfig.disposableGoodsExpTime!=null){
- Ext.getCmp('disposableGoodsExpTime').setValue(supplyRoomConfig.disposableGoodsExpTime);
- }
- if(supplyRoomConfig.fTHandleDepartAndTaskGroup){
- Ext.getCmp('fTHandleDepartAndTaskGroup').setValue(supplyRoomConfig.fTHandleDepartAndTaskGroup);
- var showArr = [];
- var fTHandleDepartAndTaskGroupJsonArray = Ext.decode(supplyRoomConfig.fTHandleDepartAndTaskGroup);
- for ( var i = 0; i < fTHandleDepartAndTaskGroupJsonArray.length; i++) {
- var record = fTHandleDepartAndTaskGroupJsonArray[i];
- showArr.push((i + 1) + "、供应室:"+ record['departName'] +",任务组:" + record['taskGroup']);
+ if (supplyRoomConfig.barcodePaperType != null) {
+ Ext.getCmp('barcodePaperType').setValue(supplyRoomConfig.barcodePaperType);
+ }
+ if (supplyRoomConfig.expensiveGoodsPaperType != null) {
+ Ext.getCmp('expensiveGoodsPaperType').setValue(supplyRoomConfig.expensiveGoodsPaperType);
+ }
+
+ if (supplyRoomConfig.disposableGoodsWarningDate != null) {
+ Ext.getCmp('disposableGoodsWarningDate').setValue(supplyRoomConfig.disposableGoodsWarningDate);
+ }
+ if (supplyRoomConfig.disposableGoodsExpTime != null) {
+ Ext.getCmp('disposableGoodsExpTime').setValue(supplyRoomConfig.disposableGoodsExpTime);
+ }
+ if (supplyRoomConfig.fTHandleDepartAndTaskGroup) {
+ Ext.getCmp('fTHandleDepartAndTaskGroup').setValue(supplyRoomConfig.fTHandleDepartAndTaskGroup);
+ var showArr = [];
+ var fTHandleDepartAndTaskGroupJsonArray = Ext.decode(supplyRoomConfig.fTHandleDepartAndTaskGroup);
+ for (var i = 0; i < fTHandleDepartAndTaskGroupJsonArray.length; i++) {
+ var record = fTHandleDepartAndTaskGroupJsonArray[i];
+ showArr.push((i + 1) + "、供应室:" + record['departName'] + ",任务组:" + record['taskGroup']);
}
Ext.getCmp('fTHandleDepartAndTaskGroupCombo').setValue(showArr.join(";"));
- }
- if(supplyRoomConfig.customTousseDefaultTaskGroup != null) {
- Ext.getCmp('customTousseDefaultTaskGroup').setValue(supplyRoomConfig.customTousseDefaultTaskGroup);
- }
- if(supplyRoomConfig.ctDefaultPackageType != null) {//自定义器械包默认类型
- Ext.getCmp('ctDefaultPackageType').setValue(supplyRoomConfig.ctDefaultPackageType);
}
- if(supplyRoomConfig.customTousseNeedReview != null) {//自定义器械包是否审核
- Ext.getCmp('customTousseNeedReview').setValue(supplyRoomConfig.customTousseNeedReview);
- }
- if(supplyRoomConfig.ctDefaultSterilingMethod != null) {//自定义器械包默认灭菌程序
- Ext.getCmp('ctDefaultSterilingMethod').setValue(supplyRoomConfig.ctDefaultSterilingMethod);
- }
- if(supplyRoomConfig.ctBarcodePaperType != null) {//自定义器械包打印标签
- Ext.getCmp('ctBarcodePaperType').setValue(supplyRoomConfig.ctBarcodePaperType);
- }
- if(supplyRoomConfig.ctPrintOrgSource != null) {//自定义器械包打印科室来源
- Ext.getCmp('ctPrintOrgSource').setValue(supplyRoomConfig.ctPrintOrgSource);
- }
- // if(supplyRoomConfig.customTousseNeedRecycle != null) {//自定义器械包是否回收
- // Ext.getCmp('customTousseNeedRecycle').setValue(supplyRoomConfig.customTousseNeedRecycle);
- // }
- if(supplyRoomConfig.invoiceOrigin!=null){
- Ext.getCmp('invoiceOrigin').setValue(supplyRoomConfig.invoiceOrigin);
+ if (supplyRoomConfig.customTousseDefaultTaskGroup != null) {
+ Ext.getCmp('customTousseDefaultTaskGroup').setValue(supplyRoomConfig.customTousseDefaultTaskGroup);
}
- if(supplyRoomConfig.tousseDeliverOccasion!=null){
- Ext.getCmp('tousseDeliverOccasion').setValue(supplyRoomConfig.tousseDeliverOccasion);
+ if (supplyRoomConfig.ctDefaultPackageType != null) {//自定义器械包默认类型
+ Ext.getCmp('ctDefaultPackageType').setValue(supplyRoomConfig.ctDefaultPackageType);
}
- if(supplyRoomConfig.unitName!=null){
- Ext.getCmp('unitName').setValue(supplyRoomConfig.unitName);
+ if (supplyRoomConfig.customTousseNeedReview != null) {//自定义器械包是否审核
+ Ext.getCmp('customTousseNeedReview').setValue(supplyRoomConfig.customTousseNeedReview);
}
- if(supplyRoomConfig.cleanInvoiceStatusTime!=null){
- Ext.getCmp('cleanInvoiceStatusTime').setValue(supplyRoomConfig.cleanInvoiceStatusTime);
+ if (supplyRoomConfig.ctDefaultSterilingMethod != null) {//自定义器械包默认灭菌程序
+ Ext.getCmp('ctDefaultSterilingMethod').setValue(supplyRoomConfig.ctDefaultSterilingMethod);
}
- if(supplyRoomConfig.customToussePrice != null) {
- Ext.getCmp('customToussePrice').setValue(supplyRoomConfig.customToussePrice);
- }
- if(supplyRoomConfig.foreignToussePrice != null) {
- Ext.getCmp('foreignToussePrice').setValue(supplyRoomConfig.foreignToussePrice);
- }
- if(supplyRoomConfig.idCardPrice != null) {
- Ext.getCmp('idCardPrice').setValue(supplyRoomConfig.idCardPrice);
- }
- if(supplyRoomConfig.unitName!=null){
- Ext.getCmp('unitName').setValue(supplyRoomConfig.unitName);
+ if (supplyRoomConfig.ctBarcodePaperType != null) {//自定义器械包打印标签
+ Ext.getCmp('ctBarcodePaperType').setValue(supplyRoomConfig.ctBarcodePaperType);
}
- if (supplyRoomConfig.diposablePriceFluctuation != null) {
- Ext.getCmp('diposablePriceFluctuation').setValue(supplyRoomConfig.diposablePriceFluctuation);
- }
- if (supplyRoomConfig.toussePriceFluctuation != null) {
- Ext.getCmp('toussePriceFluctuation').setValue(supplyRoomConfig.toussePriceFluctuation);
- }
- if (supplyRoomConfig.dailyMonitoringMinute != null) {
- Ext.getCmp('dailyMonitoringMinute').setValue(supplyRoomConfig.dailyMonitoringMinute);
- }
-
- if(supplyRoomConfig.saveImageMethod !=null){
- Ext.getCmp('saveImageMethod').setValue(supplyRoomConfig.saveImageMethod);
- if(supplyRoomConfig.saveImageMethod == "保存到数据库"){
- Ext.getCmp("saveDirectory2").hide();
- }
- }
- if(supplyRoomConfig.saveImagePath != null){
- Ext.getCmp('saveImagePath').setValue(supplyRoomConfig.saveImagePath);
+ if (supplyRoomConfig.ctPrintOrgSource != null) {//自定义器械包打印科室来源
+ Ext.getCmp('ctPrintOrgSource').setValue(supplyRoomConfig.ctPrintOrgSource);
}
-
- Ext.getCmp('bigPackageSterilizerType').setValue(supplyRoomConfig.bigPackageSterilizerType);
- if(supplyRoomConfig.autoSignInvoice){
- setHiddenFieldsAllowBlank(false);
- setFieldsHide(false);
- Ext.getCmp('autoSignInvoice').setValue('是');
- Ext.getCmp('timingSignInvoiceTime').setValue(supplyRoomConfig.timingSignInvoiceTime);
- Ext.getCmp('receiptor').setValue(supplyRoomConfig.receiptor);
- }else{
+ if (supplyRoomConfig.invoiceOrigin != null) {
+ Ext.getCmp('invoiceOrigin').setValue(supplyRoomConfig.invoiceOrigin);
+ }
+ if (supplyRoomConfig.tousseDeliverOccasion != null) {
+ Ext.getCmp('tousseDeliverOccasion').setValue(supplyRoomConfig.tousseDeliverOccasion);
+ }
+ if (supplyRoomConfig.unitName != null) {
+ Ext.getCmp('unitName').setValue(supplyRoomConfig.unitName);
+ }
+ if (supplyRoomConfig.cleanInvoiceStatusTime != null) {
+ Ext.getCmp('cleanInvoiceStatusTime').setValue(supplyRoomConfig.cleanInvoiceStatusTime);
+ }
+ if (supplyRoomConfig.customToussePrice != null) {
+ Ext.getCmp('customToussePrice').setValue(supplyRoomConfig.customToussePrice);
+ }
+ if (supplyRoomConfig.foreignToussePrice != null) {
+ Ext.getCmp('foreignToussePrice').setValue(supplyRoomConfig.foreignToussePrice);
+ }
+ if (supplyRoomConfig.idCardPrice != null) {
+ Ext.getCmp('idCardPrice').setValue(supplyRoomConfig.idCardPrice);
+ }
+ if (supplyRoomConfig.unitName != null) {
+ Ext.getCmp('unitName').setValue(supplyRoomConfig.unitName);
+ }
+ if (supplyRoomConfig.diposablePriceFluctuation != null) {
+ Ext.getCmp('diposablePriceFluctuation').setValue(supplyRoomConfig.diposablePriceFluctuation);
+ }
+ if (supplyRoomConfig.toussePriceFluctuation != null) {
+ Ext.getCmp('toussePriceFluctuation').setValue(supplyRoomConfig.toussePriceFluctuation);
+ }
+ if (supplyRoomConfig.dailyMonitoringMinute != null) {
+ Ext.getCmp('dailyMonitoringMinute').setValue(supplyRoomConfig.dailyMonitoringMinute);
+ }
+
+ if (supplyRoomConfig.saveImageMethod != null) {
+ Ext.getCmp('saveImageMethod').setValue(supplyRoomConfig.saveImageMethod);
+ if (supplyRoomConfig.saveImageMethod == "保存到数据库") {
+ Ext.getCmp("saveDirectory2").hide();
+ }
+ }
+ if (supplyRoomConfig.saveImagePath != null) {
+ Ext.getCmp('saveImagePath').setValue(supplyRoomConfig.saveImagePath);
+ }
+
+ Ext.getCmp('bigPackageSterilizerType').setValue(supplyRoomConfig.bigPackageSterilizerType);
+ if (supplyRoomConfig.autoSignInvoice) {
+ setHiddenFieldsAllowBlank(false);
+ setFieldsHide(false);
+ Ext.getCmp('autoSignInvoice').setValue('是');
+ Ext.getCmp('timingSignInvoiceTime').setValue(supplyRoomConfig.timingSignInvoiceTime);
+ Ext.getCmp('receiptor').setValue(supplyRoomConfig.receiptor);
+ } else {
setHiddenFieldsAllowBlank(true);
setFieldsHide(true);
Ext.getCmp('autoSignInvoice').setValue('否');
}
-
- if(supplyRoomConfig.autoMergeApplication){
+
+ if (supplyRoomConfig.autoMergeApplication) {
Ext.getCmp('autoMergeApplication').setValue('是');
Ext.getCmp('noMergeApplicationTypes').setValue(supplyRoomConfig.noMergeApplicationTypes);
//自动合并申请单的科室
- if(supplyRoomConfig.mergeApplicationDepartArr != null){
+ if (supplyRoomConfig.mergeApplicationDepartArr != null) {
Ext.getCmp('autoMergeApplicationDepartsCodes').setValue(supplyRoomConfig.mergeApplicationDepartArr);
var autoMergeApplicationDepartsShowArr = [];
var autoMergeApplicationDepartsJsonArray = Ext.decode(supplyRoomConfig.mergeApplicationDepartArr);
- for ( var j = 0; j < autoMergeApplicationDepartsJsonArray.length; j++) {
+ for (var j = 0; j < autoMergeApplicationDepartsJsonArray.length; j++) {
var record = autoMergeApplicationDepartsJsonArray[j];
autoMergeApplicationDepartsShowArr.push(record['mergeApplicationDepartsName']);
}
Ext.getCmp('autoMergeApplicationDepartsName').setValue(autoMergeApplicationDepartsShowArr.join(";"));
}
- }else{
+ } else {
Ext.getCmp('autoMergeApplication').setValue('否');
Ext.getCmp('isORAppFormMergeLabel').hide();
Ext.getCmp('noMergeApplicationTypesLabel').hide();
Ext.getCmp('autoMergeApplicationDeparts').hide();//自动合并申请单的科室
}
-
- if(supplyRoomConfig.isORAppFormMerge){
+
+ if (supplyRoomConfig.isORAppFormMerge) {
Ext.getCmp('isORAppFormMerge').setValue('是');
- }else if(supplyRoomConfig.isORAppFormMerge == undefined){
-
- }else{
+ } else if (supplyRoomConfig.isORAppFormMerge == undefined) {
+
+ } else {
Ext.getCmp('isORAppFormMerge').setValue('否');
}
-
- if(supplyRoomConfig.isSecondSupplyRoomAutoInvoice){
+
+ if (supplyRoomConfig.isSecondSupplyRoomAutoInvoice) {
Ext.getCmp('isSecondSupplyRoomAutoInvoice').setValue(supplyRoomConfig.isSecondSupplyRoomAutoInvoice);
- }else{
+ } else {
Ext.getCmp('isSecondSupplyRoomAutoInvoice').setValue("不启用");
}
-
- if(supplyRoomConfig.secondSupplyRoomNeedRecycle){
+
+ if (supplyRoomConfig.secondSupplyRoomNeedRecycle) {
Ext.getCmp('isSecondSupplyRoomNeedRecycle').setValue('是');
- }else{
+ } else {
Ext.getCmp('isSecondSupplyRoomNeedRecycle').setValue('否');
}
- if(supplyRoomConfig.isPackingAfterWashTimeEnd == false){
+ if (supplyRoomConfig.isPackingAfterWashTimeEnd == false) {
Ext.getCmp('isPackingAfterWashTimeEnd').setValue('否');
- }else{
+ } else {
Ext.getCmp('isPackingAfterWashTimeEnd').setValue('是');
}
-
- if(supplyRoomConfig.afterRecyclingTousseDeliver){
+
+ if (supplyRoomConfig.afterRecyclingTousseDeliver) {
Ext.getCmp('afterRecyclingTousseDeliver').setValue('是');
- }else{
+ } else {
Ext.getCmp('afterRecyclingTousseDeliver').setValue('否');
}
- if(supplyRoomConfig.printUserFullName){
+ if (supplyRoomConfig.printUserFullName) {
Ext.getCmp('printUserName').setValue('是');
- }else{
+ } else {
Ext.getCmp('printUserName').setValue('否');
}
- if(supplyRoomConfig.secondWashCountWorkload){
+ if (supplyRoomConfig.secondWashCountWorkload) {
Ext.getCmp('secondWashCountWorkload').setValue('是');
- }else{
+ } else {
Ext.getCmp('secondWashCountWorkload').setValue('否');
}
if (supplyRoomConfig.basketLoadeTousseAmount != null) {
- Ext.getCmp('basketLoadeTousseAmount').setValue(supplyRoomConfig.basketLoadeTousseAmount);
- }
- if(supplyRoomConfig.warningTousseWhetherDelivery){
+ Ext.getCmp('basketLoadeTousseAmount').setValue(supplyRoomConfig.basketLoadeTousseAmount);
+ }
+ if (supplyRoomConfig.warningTousseWhetherDelivery) {
Ext.getCmp('warningTousseWhetherDelivery').setValue('是');
- }else{
+ } else {
Ext.getCmp('warningTousseWhetherDelivery').setValue('否');
}
- if(supplyRoomConfig.isDgConvertApplication){
- Ext.getCmp('isDgConvertApplication').setValue('是');
- }else{
+ if (supplyRoomConfig.isDgConvertApplication) {
+ Ext.getCmp('isDgConvertApplication').setValue('是');
+ } else {
Ext.getCmp('isDgConvertApplication').setValue('否');
Ext.getCmp('isTousseDgMergeConvertLabel').hide();
}
- if(supplyRoomConfig.isTousseDgMergeConvert){
- Ext.getCmp('isTousseDgMergeConvert').setValue('是');
- }else{
+ if (supplyRoomConfig.isTousseDgMergeConvert) {
+ Ext.getCmp('isTousseDgMergeConvert').setValue('是');
+ } else {
Ext.getCmp('isTousseDgMergeConvert').setValue('否');
}
- if(supplyRoomConfig.damagedTousseAtCost == '是'){
- Ext.getCmp('damagedTousseAtCost').setValue('是');
- }else{
+ if (supplyRoomConfig.damagedTousseAtCost == '是') {
+ Ext.getCmp('damagedTousseAtCost').setValue('是');
+ } else {
Ext.getCmp('damagedTousseAtCost').setValue('否');
}
- if(supplyRoomConfig.insideTousseMaterialOutCost == '否'){
- Ext.getCmp('insideTousseMaterialOutCost').setValue('否');
- }else{
+ if (supplyRoomConfig.insideTousseMaterialOutCost == '否') {
+ Ext.getCmp('insideTousseMaterialOutCost').setValue('否');
+ } else {
Ext.getCmp('insideTousseMaterialOutCost').setValue('是');
}
- if(supplyRoomConfig.ftDefaultSterilingMethod!=null){
- Ext.getCmp('ftDefaultSterilingMethod').setValue(supplyRoomConfig.ftDefaultSterilingMethod);
+ if (supplyRoomConfig.ftDefaultSterilingMethod != null) {
+ Ext.getCmp('ftDefaultSterilingMethod').setValue(supplyRoomConfig.ftDefaultSterilingMethod);
}
//外来器械默认申请科室
- if(supplyRoomConfig.ftApplyDepartmentCode!=null){
+ if (supplyRoomConfig.ftApplyDepartmentCode != null) {
Ext.getCmp('ftApplyDepartment').setValue(supplyRoomConfig.ftApplyDepartment);
Ext.getCmp('ftApplyDepartmentCode').setValue(supplyRoomConfig.ftApplyDepartmentCode);
Ext.getCmp('ftApplyDepartmentCombo').setValue(supplyRoomConfig.ftApplyDepartment);
}
- if(supplyRoomConfig.ftDefaultPackageType!=null){
- Ext.getCmp('ftDefaultPackageType').setValue(supplyRoomConfig.ftDefaultPackageType);
+ if (supplyRoomConfig.ftDefaultPackageType != null) {
+ Ext.getCmp('ftDefaultPackageType').setValue(supplyRoomConfig.ftDefaultPackageType);
}
- if(supplyRoomConfig.supplierCertificationExpTime!=null){
- Ext.getCmp('supplierCertificationExpTime').setValue(supplyRoomConfig.supplierCertificationExpTime);
+ if (supplyRoomConfig.supplierCertificationExpTime != null) {
+ Ext.getCmp('supplierCertificationExpTime').setValue(supplyRoomConfig.supplierCertificationExpTime);
}
- if(supplyRoomConfig.expensiveGoodsBillWarningTime!=null){
+ if (supplyRoomConfig.expensiveGoodsBillWarningTime != null) {
Ext.getCmp('expensiveGoodsBillWarningTime').setValue(supplyRoomConfig.expensiveGoodsBillWarningTime);
}
//ZSSXLRMYY-198:自动加急的加急级别
- if(supplyRoomConfig.urgentLevel){
+ if (supplyRoomConfig.urgentLevel) {
Ext.getCmp('urgentLevelName').setValue(supplyRoomConfig.urgentLevel.name);
Ext.getCmp('urgentLevelId').setValue(supplyRoomConfig.urgentLevel.id);
}
-
+
Ext.getCmp('mergeTousseRuleForInvoiceBatchPrint').setValue(supplyRoomConfig.mergeTousseRuleForInvoiceBatchPrint);
Ext.getCmp('mergeTousseRuleForInvoiceBatchPrintStr').setValue(supplyRoomConfig.mergeTousseRuleForInvoiceBatchPrint);
Ext.getCmp('isCustomTousseCleanEntirely').setValue(supplyRoomConfig.isCustomTousseCleanEntirely);
Ext.getCmp('foreignTousseCleanedEntirely').setValue(supplyRoomConfig.foreignTousseCleanedEntirely);
- Ext.getCmp('foreignTousseNeedReview').setValue(supplyRoomConfig.foreignTousseNeedReview);
+ Ext.getCmp('foreignTousseNeedReview').setValue(supplyRoomConfig.foreignTousseNeedReview);
Ext.getCmp('foreignTousseIsSecondRecycle').setValue(supplyRoomConfig.foreignTousseIsSecondRecycle);
Ext.getCmp('foreignTousseAppEndTime').setValue(supplyRoomConfig.foreignTousseAppEndTime);
Ext.getCmp('ftPrintOrgSource').setValue(supplyRoomConfig.ftPrintOrgSource);
Ext.getCmp('ftPrintAmount').setValue(supplyRoomConfig.ftPrintAmount);
Ext.getCmp('ftPrintAmountSource').setValue(supplyRoomConfig.ftPrintAmountSource);
-
- }
- });
-
- var myMask = new Ext.LoadMask(Ext.getBody(), {
+
+ }
+ });
+
+ var myMask = new Ext.LoadMask(Ext.getBody(), {
msg: '正在加载,请稍候!',
removeMask: true
});
myMask.show();
-
+
var count = 0;
-
- supplyRoomStoreFirstSupplyRoom.load({
- callback: function(records, options, success){
- count++;
- hideMask(count,myMask);
- }
- });
- supplyRoomStoreSecondSupplyRoom.load({
- callback: function(records, options, success){
- count++;
- hideMask(count,myMask);
- }
+
+ supplyRoomStoreFirstSupplyRoom.load({
+ callback: function (records, options, success) {
+ count++;
+ hideMask(count, myMask);
+ }
});
+ supplyRoomStoreSecondSupplyRoom.load({
+ callback: function (records, options, success) {
+ count++;
+ hideMask(count, myMask);
+ }
+ });
supplyRoomStoreApply.load({
- callback: function(records, options, success){
- count++;
- hideMask(count,myMask);
- }
- });
- supplyRoomStoreSettleAccount.load({
- callback: function(records, options, success){
- count++;
- hideMask(count,myMask);
- }
- });
-
+ callback: function (records, options, success) {
+ count++;
+ hideMask(count, myMask);
+ }
+ });
+ supplyRoomStoreSettleAccount.load({
+ callback: function (records, options, success) {
+ count++;
+ hideMask(count, myMask);
+ }
+ });
+
var supplyRoomStoreUseRecordToApplicationNotInvoice = Ext.getCmp("supplyRoomUseRecordToApplicationNotInvoice").getStore();
- supplyRoomStoreUseRecordToApplicationNotInvoice.load({
- callback: function(records, options, success){
- count++;
- hideMask(count,myMask);
- }
- });
- supplyRoomStoreTousseOperation.load({
- callback: function(records, options, success){
- count++;
- hideMask(count,myMask);
- }
- });
- supplyRoomStoreRecyclingApplicationNotInvoice.load({
- callback: function(records, options, success){
- count++;
- hideMask(count,myMask);
- }
- });
- supplyRoomStoreExpensiveGoods.load({
- callback: function(records, options, success){
+ supplyRoomStoreUseRecordToApplicationNotInvoice.load({
+ callback: function (records, options, success) {
count++;
- hideMask(count,myMask);
- }
+ hideMask(count, myMask);
+ }
});
+ supplyRoomStoreTousseOperation.load({
+ callback: function (records, options, success) {
+ count++;
+ hideMask(count, myMask);
+ }
+ });
+ supplyRoomStoreRecyclingApplicationNotInvoice.load({
+ callback: function (records, options, success) {
+ count++;
+ hideMask(count, myMask);
+ }
+ });
+ supplyRoomStoreExpensiveGoods.load({
+ callback: function (records, options, success) {
+ count++;
+ hideMask(count, myMask);
+ }
+ });
});
\ No newline at end of file