2017-10-11 52 views
0

我必須模擬以下情況:員工可以提出可能導致疾病或事故發生的保險索賠。對事故索賠需要一些額外的投入(地點,警察報告......)。強制性有一個關係。

我告訴Mipsy entity claim has a accident,後面定義了select entity accidentcreate filed location mandatory。到目前爲止,這麼好,屏幕意外是在一個新標籤,我不能保存沒有價值位置

是否有可能在索賠中有一個選擇框accident/illness/other,使得標籤accident在發生事故和事故時是強制性的?

回答

0

你可以做到以下幾點:

select entity claim 
add field Type of claim with type enum and values Accident, Illness, Other 

然後打開文件 「的意見> e_claim> show_fields.dust」 在編輯器中,並添加標籤以下條件:

<ul class="nav nav-tabs"> 
    <li class="active"> 
     <a data-toggle="tab" href="#home"> 
      {@__ key="entity.e_claim.label_entity" /} 
     </a> 
    </li> 
    {@eq key=f_type_of_claim value="Accident"} 
     <li> 
      <a id="r_accident-click" data-toggle="tab" href="#r_accident"> 
       {@__ key="entity.e_accident.as_r_accident" /} 
      </a> 
     </li> 
    {/eq} 
</ul> 

可以設置標籤內容中的條件相同,以避免向瀏覽器發送不相關的數據。