mojaSymfonia FORUM
https://forum.mix-soft.pl/

Import nowych pracowników za pomocą XML
https://forum.mix-soft.pl/viewtopic.php?f=3&t=5971
Strona 1 z 1

Autor:  Floyd [ 2014-09-04, 12:40 ]
Tytuł:  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 2564 razy ]

Strona 1 z 1 Strefa czasowa UTC+1godz. [letni]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/