Posty bez odpowiedzi |oraz Aktywne tematy Dzisiaj jest 2024-03-29, 12:34x



Odpowiedz w temacie  [ Posty: 1 ] 
Import nowych pracowników za pomocą XML 
Autor Wiadomość
Awatar użytkownika

Rejestracja: 2014-06-11, 14:38
Posty: 42
Post Import nowych pracowników za pomocą XML
Cześć,

Chciałbym za pomocą XML zaczytywać do Symfoni Forte nowych pracowników. Wszystko jest dobrze do póki nie było wcześniej już zamkniętych okresów. W przypadku takiej sytuacji niektóre pozycje występują dwukrotnie (załącznik). Czy jest jakaś możliwość aby tak nie było? Jakaś inna struktura XML-a musi być?

Mój kod XML:
Kod:
<?xml version="1.0" encoding="windows-1250" standalone="yes"?><hr-document> <dictionary>
  <calendar id="1" type="employee">
   <surname>JAKIEŚ NAZWISKO</surname>
   <name>JAKIEŚ IMIE</name>
   <pesel>6653156147</pesel>
  </calendar>
  <component id="1">
   <name>Dane osobowe</name>
  </component>
  <attribute id="2">
   <name>imię</name>
  </attribute>
  <attribute id="3">
   <name>drugie imię</name>
  </attribute>
  <attribute id="4">
   <name>nazwisko</name>
  </attribute>
  <attribute id="5">
   <name>nazwisko rodowe</name>
  </attribute>
  <attribute id="6">
   <name>płeć</name>
  </attribute>
  <component id="7">
   <name>Numer ewidencyjny</name>
  </component>
  <component id="8">
   <name>Fotografia pracownika</name>
  </component>
  <component id="9">
   <name>Identyfikator w FK</name>
  </component>
  <component id="10">
   <name>Dział</name>
  </component>
  <component id="11">
   <name>Urodzony</name>
  </component>
  <attribute id="12">
   <name>data urodzenia</name>
  </attribute>
  <attribute id="13">
   <name>miejscowość</name>
  </attribute>
  <attribute id="14">
   <name>imię ojca</name>
  </attribute>
  <attribute id="15">
   <name>imię matki</name>
  </attribute>
  <attribute id="16">
   <name>nazwisko panieńskie matki</name>
  </attribute>
  <component id="17">
   <name>Dowód tożsamości</name>
  </component>
  <attribute id="18">
   <name>rodzaj dokumentu</name>
  </attribute>
  <attribute id="19">
   <name>seria i nr</name>
  </attribute>
  <attribute id="20">
   <name>wydany przez</name>
  </attribute>
  <component id="21">
   <name>PESEL</name>
  </component>
  <component id="22">
   <name>NIP</name>
  </component>
  <component id="23">
   <name>Adres zameldowania</name>
  </component>
  <attribute id="24">
   <name>ulica</name>
  </attribute>
  <attribute id="25">
   <name>nr domu</name>
  </attribute>
  <attribute id="26">
   <name>nr lokalu</name>
  </attribute>
  <attribute id="27">
   <name>kod pocztowy</name>
  </attribute>
  <attribute id="28">
   <name>poczta</name>
  </attribute>
  <attribute id="29">
   <name>gmina</name>
  </attribute>
  <attribute id="30">
   <name>powiat</name>
  </attribute>
  <attribute id="31">
   <name>województwo</name>
  </attribute>
  <attribute id="32">
   <name>kraj</name>
  </attribute>
  <component id="33">
   <name>Adres tymczasowy</name>
  </component>
  <component id="34">
   <name>Adres do korespondencji</name>
  </component>
  <component id="35">
   <name>E-mail pracownika</name>
  </component>
  <component id="36">
   <name>Telefon służbowy</name>
  </component>
  <component id="37">
   <name>Telefon komórkowy</name>
  </component>
  <component id="38">
   <name>Telefon prywatny</name>
  </component>
  <component id="39">
   <name>Stopień pokrewieństwa</name>
  </component>
  <component id="40">
   <name>Konto bankowe</name>
  </component>
  <attribute id="41">
   <name>nazwa banku</name>
  </attribute>
  <attribute id="42">
   <name>nr konta</name>
  </attribute>
  <component id="43">
   <name>US</name>
  </component>
  <component id="44">
   <name>Obywatelstwo</name>
  </component>
  <component id="45">
   <name>Numer karty RCP</name>
  </component>
  <component id="46">
   <name>Główne miejsce pracy</name>
  </component>
</dictionary>
<data>
  <unit calendar="1">
   <component id="1">
    <history>
     <tuple>
      <value id="2">JAKIEŚ IMIE</value><value id="4">JAKIEŚ NAZWISKO</value><value id="6">Mężczyzna</value>
     </tuple>
    </history>
   </component> <component id="11">
    <history>
     <tuple>
      <value id="12">1987-05-31</value>
      <value id="13">JAKIEŚ MIASTO</value>
      <value id="14">JAKIEŚ IMIE</value>
      <value id="15">JAKIEŚ IMIE</value>     </tuple>
    </history>
   </component>
   <component id="22">
    <history>
     <value id="22">8231571439</value>
    </history>
   </component>
   <component id="23">
    <history>
     <tuple>
      <value id="24">ULICA</value>
      <value id="25">2</value>
      <value id="26">A23</value>
      <value id="13">WYSZOMIERZ</value>
      <value id="27">08-311</value>
      <value id="28">BIAŁOBRZEGI</value>
      <value id="29">BIELANY</value>
      <value id="30">SOKOŁOWSKI</value>
   <value id="31">MAZOWIECKIE</value>
      <value id="32">POLSKA</value>
     </tuple>
    </history>
   </component>
   <component id="40">
    <history>
     <tuple>
      <value id="41">ALIORBANK</value>
      <value id="42">1321564165161</value>
     </tuple>
    </history>
   </component>
   <component id="43">
    <history>
     <value id="43">URZĄD SKARBOWY ŻYRARDÓW</value>
    </history>
   </component>
  </unit>
</data></hr-document>


Załączniki:
Nowa osoba.PNG
Nowa osoba.PNG [ 23.27 KiB | Przeglądany 2535 razy ]
2014-09-04, 12:40
Wyświetl profil
Autor Wiadomość
 


Wyświetl posty nie starsze niż:  Sortuj wg  
Odpowiedz w temacie   [ Posty: 1 ] 
   Podobne tematy   Autor   Odpowiedzi   Odsłony   Ostatni post 
Na tym forum nie ma nowych nieprzeczytanych postów. nie generuje PIT dla nowych pracowników

w Programy Kadrowo Płacowe

nevion

2

2413

2018-01-19, 13:06

nevion Wyświetl najnowszy post

Na tym forum nie ma nowych nieprzeczytanych postów. Wczytywanie pliku xml za pomocą funkcji Dispatch

w Programowanie

Pedro

4

2885

2014-05-08, 08:45

Pedro Wyświetl najnowszy post

Na tym forum nie ma nowych nieprzeczytanych postów. Import WB w 50c i wyłączenie tworzenia nowych transakcji

w Programy Księgowe

Gepp87

2

1952

2021-02-26, 12:38

Gepp87 Wyświetl najnowszy post

Na tym forum nie ma nowych nieprzeczytanych postów. Załączniki [HMF2017] Import dok płatności za pomocą IOreca

w Programowanie

luks

8

3682

2017-04-19, 15:48

rafal Wyświetl najnowszy post



Kto jest online

Użytkownicy przeglądający to forum: Nie ma żadnego zarejestrowanego użytkownika i 16 gości


Nie możesz tworzyć nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz dodawać załączników

Szukaj:
Przejdź do:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Support forum phpbb by phpBB Assistant