Index: ssts-web/src/main/webapp/disinfectsystem/satisfactionsurvey/satisfactionSurveyTemplateForm.js =================================================================== diff -u -r18722 -r21279 --- ssts-web/src/main/webapp/disinfectsystem/satisfactionsurvey/satisfactionSurveyTemplateForm.js (.../satisfactionSurveyTemplateForm.js) (revision 18722) +++ ssts-web/src/main/webapp/disinfectsystem/satisfactionsurvey/satisfactionSurveyTemplateForm.js (.../satisfactionSurveyTemplateForm.js) (revision 21279) @@ -152,9 +152,9 @@ name : 'treeItemData', id : 'treeItemData' },{ - columnWidth : .6, + columnWidth : 1, layout : 'form', - labelWidth : 70, + labelWidth : 80, items : [{ xtype : 'textfield', fieldLabel : '名称', @@ -164,7 +164,7 @@ anchor : '98%' }] },{ - columnWidth : .4, + columnWidth : .5, layout : 'form', labelWidth : 80, items : [{ @@ -178,9 +178,31 @@ anchor : '95%' }] },{ + columnWidth : .5, + layout : 'form', + labelWidth : 80, + items : [{ + xtype : 'combo', + fieldLabel : '是否单独填写', + id : 'isfillOutAlone', + name : 'isfillOutAlone', + valueField : 'value', + displayField : 'value', + store : new Ext.data.SimpleStore({ + fields : [ 'value' ], + data : [ ['是' ], ['否' ]] + }), + forceSelection : true, + allowBlank: false, + editable:false, + mode : 'local', + triggerAction : 'all', + anchor : '98%' + }] + },{ columnWidth : 0.85, layout : 'form', - labelWidth : 70, + labelWidth : 80, items : [{ xtype : 'textfield', fieldLabel : '科室', @@ -207,7 +229,7 @@ },{ columnWidth : 1, layout : 'form', - labelWidth : 70, + labelWidth : 80, items : [{ xtype : 'textarea', fieldLabel : '调查表说明', @@ -221,7 +243,7 @@ },{ columnWidth : 1, layout : 'form', - labelWidth : 70, + labelWidth : 80, items : [{ xtype : 'textarea', fieldLabel : '总结', @@ -446,6 +468,7 @@ top.Ext.getCmp("endBtn").disable(); top.Ext.getCmp('saveBtn').enable(); top.Ext.getCmp('printBtn').disable(); + top.Ext.getCmp('isfillOutAlone').setValue('否'); //添加时默认是否单独统计为否 } wwindow.show(); } Index: ssts-basedata/src/main/java/com/forgon/disinfectsystem/entity/satisfactionsurvey/SatisfactionSurveyTemplate.java =================================================================== diff -u -r18546 -r21279 --- ssts-basedata/src/main/java/com/forgon/disinfectsystem/entity/satisfactionsurvey/SatisfactionSurveyTemplate.java (.../SatisfactionSurveyTemplate.java) (revision 18546) +++ ssts-basedata/src/main/java/com/forgon/disinfectsystem/entity/satisfactionsurvey/SatisfactionSurveyTemplate.java (.../SatisfactionSurveyTemplate.java) (revision 21279) @@ -5,6 +5,7 @@ import java.util.List; import javax.persistence.Column; +import javax.persistence.Converts; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; @@ -20,7 +21,9 @@ import org.hibernate.annotations.CacheConcurrencyStrategy; import org.hibernate.annotations.Cascade; +import com.forgon.Constants; import com.forgon.security.acls.AclFieldsObject; +import com.forgon.tools.string.StringTools; /** * 满意度调查模板 @@ -35,15 +38,35 @@ private Long id; - private String name;//满意度调查表名称 + /** + * 满意度调查表名称 + */ + private String name; - private String instructions;//描述说明 + /** + * 描述说明 + */ + private String instructions; - private Date remindStartDate; //提醒开始日期 + /** + * 提醒开始日期 + */ + private Date remindStartDate; - private Date entryDate;//录入日期 - private Date endDate;//结束日期 + /** + * 是否单独填写(默认是否) + */ + private String isfillOutAlone = Constants.STR_NO; + /** + * 录入日期 + */ + private Date entryDate; + /** + * 结束日期 + */ + private Date endDate; + private List itemList = new ArrayList(); /** @@ -237,6 +260,14 @@ this.formDefinition_id = formDefinition_id; } + public String getIsfillOutAlone() { + return StringTools.defaultIfBlank(isfillOutAlone, Constants.STR_NO); + } + + public void setIsfillOutAlone(String isfillOutAlone) { + this.isfillOutAlone = isfillOutAlone; + } + @Override public String toString() { return "SatisfactionSurveyTemplate{" +