Index: ssts-web/src/main/webapp/disinfectsystem/basedatamanager/tousse/tousseForm.js =================================================================== diff -u -r33987 -r33994 --- ssts-web/src/main/webapp/disinfectsystem/basedatamanager/tousse/tousseForm.js (.../tousseForm.js) (revision 33987) +++ ssts-web/src/main/webapp/disinfectsystem/basedatamanager/tousse/tousseForm.js (.../tousseForm.js) (revision 33994) @@ -2819,6 +2819,98 @@ columnWidth: 0.4, layout: 'fit', items: [materialsPanel] + }], + buttonAlign : 'center', + buttons: [{ + id: 'saveBtn', + text: '保存', + handler: function () { + save2(null, this, false, false); + } + }, { + id: 'saveBtnAndClose', + text: '保存并关闭', + handler: function () { + save2(null, this, false, true); + } + }, { + xtype: 'button', + text: "另存为", + id: "saveAsTousse", + listeners: { + click: function (thiz) { + newSave(); + } + } + }, { + text: '打印条码', + id: 'printTDBarcode', + handler: function () { + printTDBarcode(id); + } + }, { + text: '器械包图片', + id: 'uploadFile', + hidden: id == 0 ? true : false, + handler: function () { + var tousseName = top.Ext.getCmp('name').getValue(); + uploadToussePackingImageFile(imageTypeTousse, id, tousseName); + } + }, { + text: '说明书', + id: 'uploadFile', + hidden: id == 0 ? true : false, + handler: function () { + var tousseName = top.Ext.getCmp('name').getValue(); + uploadToussePackingImageFile(imageTypeSpecification, id, tousseName); + } + }, { + text: '清洗操作指引', + menu: new top.Ext.menu.Menu({ + items: [{ + text: '清洗指引图片', + id: 'washGuideImageFile', + hidden: id == 0 ? true : false, + handler: function () { + var tousseName = top.Ext.getCmp('name').getValue(); + uploadToussePackingImageFile(imageTypeWashGuide, id, tousseName); + } + }, { + text: '清洗教学视频', + id: 'washGuideVedio', + handler: function () { + var tousseName = top.Ext.getCmp('name').getValue(); + uploadToussePackingVideoFile(vidoeTypeTousseWashTeaching, id, tousseName); + } + }] + }) + }, { + text: '装配教学', + menu: new top.Ext.menu.Menu({ + items: [{ + text: '装配教学图片', + id: 'uploadToussePackingImageFile', + hidden: id == 0 ? true : false, + handler: function () { + var tousseName = top.Ext.getCmp('name').getValue(); + uploadToussePackingImageFile(imageTypeToussePacking, id, tousseName); + } + }, { + text: '装配教学视频', + id: 'uploadVedio', + handler: function () { + var tousseName = top.Ext.getCmp('name').getValue(); + uploadToussePackingVideoFile(videoType, id, tousseName); + } + }] + }) + }, { + text: '取消', + id: 'saveAndNewBtn', + handler: function () { + tousseWin.close(); + grid.dwrReload(); + } }] }] });