simdefault.lzx
<library>
<view name="simdefault" visible="false" width="${parent.width}" height="${parent.height-25}" initstage="defer">
<view width="${parent.width}">
<view x="20" align="left">
<text fontstyle="bold">Klantentool</text>
</view>
<view align="right">
<text> mobile rev.2011032601
</text>
</view>
</view>
<simplelayout axis="y" spacing="5"/>
<view name="userdefault" width="${parent.width}" height="${parent.height}">
<tabs x="5" style="whitecolors" id="mytabs" width="${parent.width-10}" height="${parent.height-5}">
<tabpane bgcolor="#FFFFFF" width="${parent.width}" height="${parent.height}">Details
<view x="5" y="5" height="${immediateparent.height-10}" width="${immediateparent.width-10}">
<view>
<text fontstyle="bold" selectable="true">Account nummer:</text>
<text selectable="true" datapath="loginDS:/dbdata/data/account_id/text()"/>
<simplelayout axis="x"/>
</view>
<view>
<text fontstyle="bold" selectable="true">Pro nummer:</text>
<text selectable="true" datapath="loginDS:/dbdata/data/group_id/text()"/><text>-</text>
<text selectable="true" datapath="loginDS:/dbdata/data/reseller_id/text()"/>
<simplelayout axis="x"/>
</view>
<view>
<text fontstyle="bold">Rekening balans:</text>
<text datapath="loginDS:/dbdata/data/credit/text()" width="75"/>
<simplelayout axis="x"/>
</view>
<view>
<text selectable="true" fontstyle="bold">Persoonlijke gegevens:</text>
<text selectable="true" datapath="loginDS:/dbdata/data/fullname/text()" width="350"/>
<text selectable="true" datapath="loginDS:/dbdata/data/street/text()" width="350"/>
<text selectable="true" datapath="loginDS:/dbdata/data/postalcity/text()" width="350"/>
<text selectable="true" datapath="loginDS:/dbdata/data/country/text()" width="350"/>
<text selectable="true" datapath="loginDS:/dbdata/data/email/text()" width="350"/>
<text/>
<text selectable="true" datapath="loginDS:/dbdata/data/company/text()" width="350"/>
<text selectable="true" datapath="loginDS:/dbdata/data/vat/text()" width="350"/>
<simplelayout axis="y"/>
</view>
<view layout="axis:x; spacing:5" align="left">
<button isdefault="true">Download contract
<handler name="onclick">
canvas.downloadAgreement();
</handler>
</button>
</view>
<view layout="axis:x; spacing:5" align="left">
<button isdefault="true">Genereer contract
<handler name="onclick">
canvas.requestAgreement();
</handler>
</button>
</view>
<view layout="axis:x; spacing:5" align="left">
<button isdefault="true">Koop belwaarde
<handler name="onclick">
lz.Browser.loadURL("https://ssl.weepee.org/klanten/belwaarde", "_blank");
</handler>
</button>
</view>
<view layout="axis:x; spacing:5" align="left">
<button isdefault="true">Wijzig wachtwoord
<handler name="onclick">
canvas.changepwddialog.open();
</handler>
</button>
</view>
<view layout="axis:x; spacing:5" align="left">
<button isdefault="true">Wijzig e-mail adres
<handler name="onclick">
canvas.changeemaildialog.open();
</handler>
</button>
</view>
<simplelayout axis="y" spacing="15"/>
</view>
</tabpane>
<tabpane bgcolor="#FFFFFF" width="${parent.width}" height="${parent.height}">Informatie
<tabslider width="${parent.width-20}" height="${parent.height-45}">
<tabelement text="Account Informatie" selected="true">
<view height="${immediateparent.height}" width="${immediateparent.width}" clip="true">
<text datapath="loginDS:/dbdata/data/accountinfo/text()" multiline="true" width="${parent.width}" height="250" selectable="true"/>
<simplelayout axis="y" spacing="15"/>
</view>
</tabelement>
<tabelement id="shortnrs" text="Belangrijke Nummers">
<view height="${immediateparent.height}" width="${immediateparent.width}" clip="true">
<text multiline="true" width="${parent.width}">
<font color="#FF0000"><b>NOOD NUMMER</b></font><br/>0903 42 704<br/><br/>
<font color="#FF0000"><b>TIJDENS KANTOOR UREN</b></font><br/>0800 26 1 26<br/><br/>
</text>
</view>
</tabelement>
<tabelement id="faxsoftware" text="Fax Software">
<view height="${immediateparent.height}" width="${immediateparent.width}" clip="true" layout="axis:y; spacing:5">
<text><b>Gebruikersnaam:</b></text>
<text datapath="loginDS:/dbdata/data/accountcode/text()" selectable="true"/>
<text><b>Wachtwoord:</b></text>
<text datapath="loginDS:/dbdata/data/faxpasswd/text()" selectable="true"/>
<text><b>Fax Server:</b></text>
<text datapath="loginDS:/dbdata/data/faxserver/text()" selectable="true"/>
<text/>
<text><b>Commerciële versie:</b></text>
<button isdefault="true">HylaFAX-client (windows)
<handler name="onclick">
lz.Browser.loadURL("http://www.swt-online.de/hylafax/index_eng.html", "_blank");
</handler>
</button>
<button isdefault="true">MacHylafax (macosx)
<handler name="onclick">
lz.Browser.loadURL("http://machylafax.webcogs.com/", "_blank");
</handler>
</button>
<text><b>Opensource versie:</b></text>
<button isdefault="true">JHylaFAX (alle platformen)
<handler name="onclick">
lz.Browser.loadURL("http://jhylafax.sourceforge.net/index.html", "_blank");
</handler>
</button>
</view>
</tabelement>
</tabslider>
</tabpane>
<tabpane bgcolor="#FFFFFF" width="${parent.width}" height="${parent.height}">Uitgaande Gesprekken
<simplelayout axis="y" spacing="5"/>
<view width="100%">
<view layout="axis:x" align="left" valign="top">
<text fontstyle="bold">Maand: </text>
<datacombobox id="callsoutmonth" width="150" shownitems="5" itemdatapath="lastyearDS:/dbdata/data" textdatapath="description/text()" valuedatapath="month/text()" selectfirst="true">
<handler name="onselected">
canvas.searchCallsout(callsoutmonth.getValue(), "");
</handler>
</datacombobox>
</view>
<view layout="axis:x" align="right" valign="top">
<edittext id="callsoutsearch" width="150"/>
<button isdefault="true">Zoek
<handler name="onclick">
canvas.searchCallsout(callsoutmonth.getValue(), callsoutsearch.getValue());
</handler>
</button>
<simplelayout axis="x" spacing="5"/>
</view>
</view>
<grid id="callsout" width="${parent.width-20}" height="${parent.height-80}" bgcolor0="$once{whitecolors.basecolor}" datapath="callsoutDS:/dbdata" sizetoheader="false">
<handler name="ondata">
canvas.gridCallsout=1;
canvas.checkGridData();
</handler>
<gridtext width="${parent.width/7}" editable="false" sortable="true" text="Wanneer" datapath="timestamp/text()"/>
<gridtext width="${parent.width/7}" editable="false" sortable="false" text="Informatie" datapath="country/text()"/>
<gridtext width="${parent.width/7}" editable="false" sortable="true" text="Naar" datapath="callee/text()"/>
<gridtext width="${parent.width/7}" editable="false" sortable="true" text="Duurtijd" datapath="billsec/text()"/>
<gridtext width="${parent.width/7}" editable="false" sortable="true" text="Prijs" datapath="price_out/text()"/>
<gridtext width="${parent.width/7}" editable="false" sortable="true" text="Setup" datapath="setup_out/text()"/>
<gridtext width="${parent.width/7}" editable="false" sortable="false" text="Type" datapath="type/text()"/>
</grid>
</tabpane>
<tabpane bgcolor="#FFFFFF" width="${parent.width}" height="${parent.height}">Inkomende Gesprekken
<simplelayout axis="y" spacing="5"/>
<view width="100%">
<view layout="axis:x" align="left" valign="top">
<text fontstyle="bold">Maand: </text>
<datacombobox id="callsinmonth" width="150" shownitems="5" itemdatapath="lastyearDS:/dbdata/data" textdatapath="description/text()" valuedatapath="month/text()" selectfirst="true">
<handler name="onselected">
canvas.searchCallsin(callsinmonth.getValue(), "");
</handler>
</datacombobox>
</view>
<view layout="axis:x" align="right" valign="top">
<edittext id="callsinsearch" width="150"/>
<button isdefault="true">Zoek
<handler name="onclick">
canvas.searchCallsin(callsinmonth.getValue(), callsinsearch.getValue());
</handler>
</button>
<simplelayout axis="x" spacing="5"/>
</view>
</view>
<grid id="callsin" width="${parent.width-20}" height="${parent.height-80}" bgcolor0="$once{whitecolors.basecolor}" datapath="callsinDS:/dbdata" sizetoheader="false">
<handler name="ondata">
canvas.gridCallsin=1;
canvas.checkGridData();
</handler>
<gridtext width="${parent.width/6}" editable="false" sortable="true" text="Wanneer" datapath="timestamp/text()"/>
<gridtext width="${parent.width/6}" editable="false" sortable="true" text="Van" datapath="callerid/text()"/>
<gridtext width="${parent.width/6}" editable="false" sortable="true" text="Naam" datapath="clid/text()"/>
<gridtext width="${parent.width/6}" editable="false" sortable="true" text="Naar" datapath="callee/text()"/>
<gridtext width="${parent.width/6}" editable="false" sortable="true" text="Duurtijd" datapath="billsec/text()"/>
<gridtext width="${parent.width/6}" editable="false" sortable="false" text="Type" datapath="type/text()"/>
</grid>
</tabpane>
<tabpane bgcolor="#FFFFFF" width="${parent.width}" height="${parent.height}">SMS
<view width="${parent.width-20}" height="${parent.height-80}">
<view width="550" height="300">
<text><u><b>WeePee SMS berichten dienst</b></u></text>
<text><b>Stuur naar mobiel nummer:</b></text>
<edittext maxlength="15" id="smsto" width="100"/>
<text><b>Bericht:</b></text>
<edittext maxlength="1216" multiline="true" id="smstext" width="500" height="200"/>
<text>(max 1216 karakters, prijs per 160 karakters 0.12€ incl. btw)</text>
<text/>
<button isdefault="true">Bericht verzenden
<handler name="onclick">
canvas.sendSMS(smsto.getValue(),smstext.getValue());
</handler>
</button>
<text/>
<text multiline="true" width="300" fontsize="20" fontstyle="bold" id="smsstatus"/>
<simplelayout axis="y" spacing="5"/>
</view>
</view>
</tabpane>
<tabpane bgcolor="#FFFFFF" width="${parent.width}" height="${parent.height}">Telefoon Nummers
<simplelayout axis="y" spacing="5"/>
<grid id="numbers" width="${parent.width-20}" height="${parent.height-80}" bgcolor0="$once{whitecolors.basecolor}" datapath="numbersDS:/dbdata" sizetoheader="false">
<handler name="ondata">
canvas.gridNumbers=1;
canvas.checkGridData();
</handler>
<gridtext width="${parent.width/2}" editable="false" sortable="true" text="Nummer" datapath="caller_id/text()" datatype="number"/>
<gridtext width="${parent.width/2}" editable="false" sortable="true" text="Type" datapath="numbertype/text()"/>
</grid>
</tabpane>
<tabpane bgcolor="#FFFFFF" width="${parent.width}" height="${parent.height}">Belwaarde
<simplelayout axis="y" spacing="5"/>
<view width="100%">
<simplelayout axis="x" spacing="5"/>
<view layout="axis:x" align="left" valign="top">
<button isdefault="true">Koop belwaarde
<handler name="onclick">
lz.Browser.loadURL("https://ssl.weepee.org/klanten/belwaarde", "_blank");
</handler>
</button>
</view>
<view layout="axis:x" align="right" valign="top">
<edittext id="vouchercode" width="150"/>
<button isdefault="true">Verzilver voucher
<handler name="onclick">
canvas.activateVoucher(vouchercode.getValue());
</handler>
</button>
<simplelayout axis="x" spacing="5"/>
</view>
</view>
<grid id="usedvouchers" width="${parent.width-20}" height="${parent.height-80}" bgcolor0="$once{whitecolors.basecolor}" datapath="usedvouchersDS:/dbdata" sizetoheader="false">
<handler name="ondata">
canvas.gridVouchers=1;
canvas.checkGridData();
</handler>
<gridtext width="${parent.width/3}" sortable="true" editable="false" text="Voucher Nummer" datapath="vouchercode/text()" datatype="number"/>
<gridtext width="${parent.width/3}" sortable="true" editable="false" text="Bedrag (€)" datapath="amount/text()" datatype="number"/>
<gridtext width="${parent.width/3}" sortable="true" editable="false" text="Bijgeladen Op" datapath="usedon/text()"/>
</grid>
</tabpane>
</tabs>
</view>
</view>
</library>
Cross References
Named Instances