提交 f8035ca4 编写于 作者: U unknown

表单选人组件增加是否显示卡片的选项

上级 3806a817
......@@ -27,6 +27,13 @@
<input type="radio" name="isReadonly" value="false" text{(!$.isReadonly)?'checked':''}/>
</td>
</tr>
<tr>
<td class="editTableTitle">显示卡片:</td>
<td class="editTableValue">
<input type="radio" name="showCard" value="yes" text{($.showCard!='no')?'checked':''}/>
<input type="radio" name="showCard" value="no" text{($.showCard=='no')?'checked':''}/>
</td>
</tr>
<tr>
<td class="editTableTitle">值类型:</td>
<td class="editTableValue">
......
......@@ -27,6 +27,13 @@
<input type="radio" name="isReadonly" value="false" text{(!$.isReadonly)?'checked':''}/>
</td>
</tr>
<tr>
<td class="editTableTitle">显示卡片:</td>
<td class="editTableValue">
<input type="radio" name="showCard" value="yes" text{($.showCard!='no')?'checked':''}/>
<input type="radio" name="showCard" value="no" text{($.showCard=='no')?'checked':''}/>
</td>
</tr>
<tr>
<td class="editTableTitle">允许输入:</td>
<td class="editTableValue">
......
......@@ -27,6 +27,13 @@
<input type="radio" name="isReadonly" value="false" text{(!$.isReadonly)?'checked':''}/>
</td>
</tr>
<tr>
<td class="editTableTitle">显示卡片:</td>
<td class="editTableValue">
<input type="radio" name="showCard" value="yes" text{($.showCard!='no')?'checked':''}/>
<input type="radio" name="showCard" value="no" text{($.showCard=='no')?'checked':''}/>
</td>
</tr>
<tr>
<td class="editTableTitle">值类型:</td>
<td class="editTableValue">
......
......@@ -466,7 +466,9 @@ MWF.xApplication.cms.Xform.Readerfield = MWF.CMSReaderfield = new Class({
}
},
loadOrgWidget: function(value, node){
var options = {"style": "xform", "canRemove":!this.readonly , "onRemove" : this.removeItem};
var disableInfor = layout.mobile ? true : false;
if( this.json.showCard === "no" )disableInfor = true;
var options = {"style": "xform", "canRemove":!this.readonly , "onRemove" : this.removeItem, "disableInfor" : disableInfor};
value.each(function(data){
if( data.distinguishedName ){
var flag = data.distinguishedName.substr(data.distinguishedName.length-1, 1);
......
......@@ -27,6 +27,13 @@
<input type="radio" name="isReadonly" value="false" text{(!$.isReadonly)?'checked':''}/>
</td>
</tr>
<tr>
<td class="editTableTitle">显示卡片:</td>
<td class="editTableValue">
<input type="radio" name="showCard" value="yes" text{($.showCard!='no')?'checked':''}/>
<input type="radio" name="showCard" value="no" text{($.showCard=='no')?'checked':''}/>
</td>
</tr>
<tr>
<td class="editTableTitle">允许输入:</td>
<td class="editTableValue">
......
......@@ -27,6 +27,13 @@
<input type="radio" name="isReadonly" value="false" text{(!$.isReadonly)?'checked':''}/>
</td>
</tr>
<tr>
<td class="editTableTitle">显示卡片:</td>
<td class="editTableValue">
<input type="radio" name="showCard" value="yes" text{($.showCard!='no')?'checked':''}/>
<input type="radio" name="showCard" value="no" text{($.showCard=='no')?'checked':''}/>
</td>
</tr>
<tr>
<td class="editTableTitle">允许输入:</td>
<td class="editTableValue">
......
......@@ -27,6 +27,13 @@
<input type="radio" name="isReadonly" value="false" text{(!$.isReadonly)?'checked':''}/>
</td>
</tr>
<tr>
<td class="editTableTitle">显示卡片:</td>
<td class="editTableValue">
<input type="radio" name="showCard" value="yes" text{($.showCard!='no')?'checked':''}/>
<input type="radio" name="showCard" value="no" text{($.showCard=='no')?'checked':''}/>
</td>
</tr>
<tr>
<td class="editTableTitle">允许输入:</td>
<td class="editTableValue">
......
......@@ -27,6 +27,13 @@
<input type="radio" name="isReadonly" value="false" text{(!$.isReadonly)?'checked':''}/>
</td>
</tr>
<tr>
<td class="editTableTitle">显示卡片:</td>
<td class="editTableValue">
<input type="radio" name="showCard" value="yes" text{($.showCard!='no')?'checked':''}/>
<input type="radio" name="showCard" value="no" text{($.showCard=='no')?'checked':''}/>
</td>
</tr>
<tr>
<td class="editTableTitle">允许输入:</td>
<td class="editTableValue">
......
......@@ -951,6 +951,7 @@ MWF.xApplication.process.Xform.Org = MWF.APPOrg = new Class({
},
loadOrgWidget: function(value, node){
var disableInfor = layout.mobile ? true : false;
if( this.json.showCard === "no" )disableInfor = true;
var height = node.getStyle("height").toInt();
if (node.getStyle("overflow")==="visible" && !height) node.setStyle("overflow", "hidden");
if (value && value.length){
......
......@@ -470,6 +470,7 @@ MWF.xApplication.process.Xform.Orgfield = MWF.APPOrgfield = new Class({
},
loadOrgWidget: function(value, node){
var disableInfor = layout.mobile ? true : false;
if( this.json.showCard === "no" )disableInfor = true;
var options = {"style": "xform", "canRemove":false , "onRemove" : this.removeItem,"disableInfor" : disableInfor};
value.each(function(data){
if( data.distinguishedName ){
......
......@@ -882,6 +882,7 @@ MWF.xApplication.process.Xform.Personfield = MWF.APPPersonfield = new Class({
},
loadOrgWidget: function(value, node){
var disableInfor = layout.mobile ? true : false;
if( this.json.showCard === "no" )disableInfor = true;
var height = node.getStyle("height").toInt();
if (node.getStyle("overflow")==="visible" && !height) node.setStyle("overflow", "hidden");
if (value && value.length){
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册