Kõnõtraat: Difference between revisions
From ICO wiki
Jump to navigationJump to search
No edit summary |
|||
Line 4: | Line 4: | ||
* Kristjan Tõnismäe | * Kristjan Tõnismäe | ||
* Andreas Plado | * Andreas Plado | ||
== XML, XSLT== | |||
=='''XML fail:'''== | |||
<?xml version="1.0" encoding="utf-8" ?> | |||
<events> | |||
<event name="BeachParty"> | |||
<contacts> | |||
<contact phonenumber="+3725001345" nimi="Steffi" value="" added="12.03.2016" deleted=""> | |||
</contact> | |||
</contacts> | |||
<event name="DMX"> | |||
<contacts> | |||
<contact phonenumber="+3725001345" nimi="Kristjan" value="" added="12.03.2016" deleted=""> | |||
</contact> | |||
</contacts> | |||
</event> | |||
<event name="Weekend"> | |||
<contacts> | |||
<contact phonenumber="+3725686888" nimi="Helena" value="" added="12.03.2016" deleted=""> | |||
</contact> | |||
</contacts> | |||
</event> | |||
</event> | |||
</events> | |||
=='''XSLT fail:'''== | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> | |||
<xs:element name="events"> | |||
<xs:complexType> | |||
<xs:sequence> | |||
<xs:element name="event"> | |||
<xs:complexType> | |||
<xs:sequence> | |||
<xs:element name="contacts"> | |||
<xs:complexType> | |||
<xs:sequence> | |||
<xs:element name="contact"> | |||
<xs:complexType> | |||
<xs:simpleContent> | |||
<xs:extension base="xs:string"> | |||
<xs:attribute name="phonenumber" type="xs:long" use="required" /> | |||
<xs:attribute name="nimi" type="xs:string" use="required" /> | |||
<xs:attribute name="value" type="xs:string" use="required" /> | |||
<xs:attribute name="added" type="xs:string" use="required" /> | |||
<xs:attribute name="deleted" type="xs:string" use="required" /> | |||
</xs:extension> | |||
</xs:simpleContent> | |||
</xs:complexType> | |||
</xs:element> | |||
</xs:sequence> | |||
</xs:complexType> | |||
</xs:element> | |||
<xs:element maxOccurs="unbounded" name="event"> | |||
<xs:complexType> | |||
<xs:sequence> | |||
<xs:element name="contacts"> | |||
<xs:complexType> | |||
<xs:sequence> | |||
<xs:element name="contact"> | |||
<xs:complexType> | |||
<xs:simpleContent> | |||
<xs:extension base="xs:string"> | |||
<xs:attribute name="phonenumber" type="xs:long" use="required" /> | |||
<xs:attribute name="nimi" type="xs:string" use="required" /> | |||
<xs:attribute name="value" type="xs:string" use="required" /> | |||
<xs:attribute name="added" type="xs:string" use="required" /> | |||
<xs:attribute name="deleted" type="xs:string" use="required" /> | |||
</xs:extension> | |||
</xs:simpleContent> | |||
</xs:complexType> | |||
</xs:element> | |||
</xs:sequence> | |||
</xs:complexType> | |||
</xs:element> | |||
</xs:sequence> | |||
<xs:attribute name="name" type="xs:string" use="required" /> | |||
</xs:complexType> | |||
</xs:element> | |||
</xs:sequence> | |||
<xs:attribute name="name" type="xs:string" use="required" /> | |||
</xs:complexType> | |||
</xs:element> | |||
</xs:sequence> | |||
</xs:complexType> | |||
</xs:element> | |||
</xs:schema> | |||
== Kirjeldus == | == Kirjeldus == |
Revision as of 00:14, 21 March 2016
Meeskond
- Kristjan Tõnismäe
- Andreas Plado
XML, XSLT
XML fail:
<?xml version="1.0" encoding="utf-8" ?> <events>
<event name="BeachParty"> <contacts> <contact phonenumber="+3725001345" nimi="Steffi" value="" added="12.03.2016" deleted=""> </contact> </contacts> <event name="DMX"> <contacts> <contact phonenumber="+3725001345" nimi="Kristjan" value="" added="12.03.2016" deleted=""> </contact> </contacts> </event> <event name="Weekend"> <contacts> <contact phonenumber="+3725686888" nimi="Helena" value="" added="12.03.2016" deleted=""> </contact> </contacts> </event> </event>
</events>
XSLT fail:
<?xml version="1.0" encoding="utf-8"?> <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="events"> <xs:complexType> <xs:sequence> <xs:element name="event"> <xs:complexType> <xs:sequence> <xs:element name="contacts"> <xs:complexType> <xs:sequence> <xs:element name="contact"> <xs:complexType> <xs:simpleContent> <xs:extension base="xs:string"> <xs:attribute name="phonenumber" type="xs:long" use="required" /> <xs:attribute name="nimi" type="xs:string" use="required" /> <xs:attribute name="value" type="xs:string" use="required" /> <xs:attribute name="added" type="xs:string" use="required" /> <xs:attribute name="deleted" type="xs:string" use="required" /> </xs:extension> </xs:simpleContent> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element maxOccurs="unbounded" name="event"> <xs:complexType> <xs:sequence> <xs:element name="contacts"> <xs:complexType> <xs:sequence> <xs:element name="contact"> <xs:complexType> <xs:simpleContent> <xs:extension base="xs:string"> <xs:attribute name="phonenumber" type="xs:long" use="required" /> <xs:attribute name="nimi" type="xs:string" use="required" /> <xs:attribute name="value" type="xs:string" use="required" /> <xs:attribute name="added" type="xs:string" use="required" /> <xs:attribute name="deleted" type="xs:string" use="required" /> </xs:extension> </xs:simpleContent> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> <xs:attribute name="name" type="xs:string" use="required" /> </xs:complexType> </xs:element> </xs:sequence> <xs:attribute name="name" type="xs:string" use="required" /> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element>
</xs:schema>
Kirjeldus
Teeme laheda telefoniraamatu.
ERD Diagramm:
Kasutatavad tehnoloogiad:
1. Entity Framework
2. WEB API
3. WPF
Teenus
Must have
- Rakenduses saab lisada erinevaid kasutajaid.
- Kasutaja registreeritakse: kasutajanime, parooli, eesnime, perenime ja vanuse alusel.
- Kasutaja saab sisse logida rakendusse kasutajanime ja parooliga.
- Kasutaja saab teenuses kontakte lisada, muuta ja kustutada.
- Kontakt koosneb: eesnimi, perekonnanimi, lauatelefon, mobiil, sünniaeg.
- Kasutaja saab oma kontakte otsida: eesnime, perekonnanime, lauatelefoni ja mobiili järgi.
- Kasutajal on võimalik oma kontakte grupeerida.
- Kasutajal on võimalik lisada juurde vajalikke kontaktandmete liike: nt veel telefoninumbreid, skype, aadress, faks.
- Kasutajatel on võimalik jagada omavahel kontakte ja kontaktide gruppe.
- Lemmikute lisamine.
- Visiitkaardi lisamine.
- Logi.
Nice to have
- Luua võimalus ühele kasutajale (või erinevatele kasutajagruppidele) maksimumpäringute hulga määramiseks.
- Kasutajaid on võimalik lisada gruppidesse.