XML if (GetControlValue

4004 단어 uyumsoft
<root MainCode="" Caption="Kredi ve Ödeme Listesi">
<script ScriptCode="
AddLoadList('FirstLoad()');

        FirstLoad=function()
        {
            GetControl('pDocDateL').SetVisible(false);
        } 

"></script>
    <tabcontrol Visibility="True">
        <tabpage Caption="Kriterler">
            <section Caption="" CaptionVisibility="False" Visibility="True" ColumnCount="6">
                <row>
                    <cell colspan="2">
                        <control FieldName="CoCode" ControlType="ButtonEdit" Caption="Firma" DefaultValue="Session(CoCode)" ControlRequired="True">
                            <DataSource SourceType="Command" Source="CompanyCollection.Show" Filter="" FilterValues="" OrderByProperty="" ReturnProperties="CoCode" ReturnedProperties="CoCode" RelatedProperty="" ProcessTypeMode="1" ListPropertyName="CoCode"></DataSource>
                        </control>
                    </cell>
                </row>

                <row>
                    <cell colspan="1">
                        <control FieldName = "Yerlesim" 
                     ControlType = "ComboEdit" 
                     ControlEnabled="True" 
                     DefaultValue="Ödenecek" 
                     MaxLength = "50" 
                     ControlRequired = "True" 
                     Caption = "Liste Tipi" 
                     ControlVisible="True">
                            <DataSource  SourceType="TextAndValue" Text="Ödenecek;Ödenen;Reel Kur" Value="Ödenecek;Ödenen;Reel Kur"></DataSource>
                                          <ClientSideEvents ValueChanged="function(s,e)
                                                { 
                                                    if (GetControlValue('Yerlesim') == 'Ödenen')
                                                    {
                                                        GetControl('pDocDateL').SetVisible(true);
                                                    }
                                                    else if (GetControlValue('Yerlesim') == 'Reel Kur')
                                                    {
                                                        GetControl('pDocDateL').SetVisible(true);
                                                    }
                                                     else 

                                                     {
                                                     GetControl('pDocDateL').SetVisible(false);
                                                     }

                                                }">
                </ClientSideEvents>
                        </control>
                    </cell>
                </row>

                <row>
                    <cell colspan="2">
                        <control FieldName="pDocDateF" ControlType="DateEdit" ControlRequired="True" Caption="Tarih" ControlEnabled="true" DefaultValue=""></control>
                    </cell>
            <cell colspan="1">
            <control FieldName="pDocDateL" ControlType="DateEdit" CaptionVisible="False" DefaultValue="">
            </control>
            </cell>
                </row>


            </section>
        </tabpage>
    </tabcontrol>
</root>

좋은 웹페이지 즐겨찾기