Masowa edycja wozów

koziutek
Posts: 475
Joined: 25 Mar 2006, 00:00

Re: Masowa edycja wozów

Post by koziutek » 20 Feb 2013, 16:32

http://open.phototrans.net/autobusy.php ... 941&r=Send
- wszystkie trzeba skasować (niestety dokładne daty są nieznane, więc pozostaje "?")
User avatar
decomposed05
Posts: 2664
Joined: 19 Apr 2005, 00:00
Contact:

Re: Masowa edycja wozów

Post by decomposed05 » 20 Feb 2013, 17:00

mrozard wrote:http://speedy.sh/mvCfk/scania.xlsx

Problem tylko z zapisaniem jako xml (dlatego jest xlsx), ale tak to żadnych.
Trzeba by było napisać makro do excella, które by generowało xml w takim formacie jak ja wysłałem czyli:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<vehicles>
  <vehicle id="<numer_wozu_wg_phototrans>" vin="" produced="1992" scrapped="?" model_id="939">
    <full_name>Ikarus 416.04NA</full_name>
    <remarks></remarks>
    <owners>
      <owner on="1992" off="?" operator_id="5941" />
    </owners>
    <registrations />
    <numbers>
      <number on="1992" off="?" operator_id="5941">2747</number>
    </numbers>
    <tests />
  </vehicle>
Bo teraz jest z excela:

Code: Select all

   <Row ss:Index="11" ss:AutoFitHeight="0" ss:Height="14,2583">
        <Cell> 
          <Data ss:Type="Number">336914</Data>
        </Cell>
        <Cell ss:StyleID="ce1">
          <Data ss:Type="String">YS2K6X20001861261</Data>
        </Cell>
        <Cell> 
          <Data ss:Type="Number">2008</Data>
        </Cell>
        <Cell> 
          <Data ss:Type="Number">3221</Data>
        </Cell>
        <Cell ss:StyleID="ce1">
          <Data ss:Type="String">Scania K280UB 6x2 / Lahti Scala</Data>
        </Cell>
        <Cell ss:StyleID="ce1" />
        <Cell ss:Index="10" ss:StyleID="ce1">
          <Data ss:Type="String">XE 89989</Data>
        </Cell>
        <Cell>
          <Data ss:Type="Number">2008</Data>
        </Cell>
        <Cell ss:StyleID="ce1">
          <Data ss:Type="Number">2951</Data>
        </Cell>
        <Cell> 
          <Data ss:Type="Number">2008</Data> 
        </Cell>
        <Cell ss:Index="15">
          <Data ss:Type="Number">383</Data>
        </Cell>
        <Cell ss:Index="1024" />
      </Row>
Jeszcze muszę zrobić załadowywarkę do bazy i będzie kytara.
User avatar
mrozard
Posts: 948
Joined: 01 Jan 1970, 01:00
Location: Koszalin

Re: Masowa edycja wozów

Post by mrozard » 20 Feb 2013, 17:45

Ojcu, ale w ogóle nie idzie eksportować do xml, bo w Excelu ('07) piszą że mapy z tego pliku są nieeksportowalne.
User avatar
decomposed05
Posts: 2664
Joined: 19 Apr 2005, 00:00
Contact:

Re: Masowa edycja wozów

Post by decomposed05 » 20 Feb 2013, 19:33

Excell jest gupi.

Do edycji takich rzeczy polecam jakiś edytor XML. Np. XML spy.
User avatar
mrozard
Posts: 948
Joined: 01 Jan 1970, 01:00
Location: Koszalin

Re: Masowa edycja wozów

Post by mrozard » 20 Feb 2013, 20:44

To jest zbyt debiloodporne.
User avatar
decomposed05
Posts: 2664
Joined: 19 Apr 2005, 00:00
Contact:

Re: Masowa edycja wozów

Post by decomposed05 » 20 Feb 2013, 21:04

Właśnie trzasnąłem update tego co mówił Jarosz.
Jeszcze mi odświeżanie cache nie działa dla serii. Ale będę walczył.
User avatar
mrozard
Posts: 948
Joined: 01 Jan 1970, 01:00
Location: Koszalin

Re: Masowa edycja wozów

Post by mrozard » 20 Feb 2013, 21:27

http://speedy.sh/7NsBP/scania.xml

Zrobilim, co możem.

Myślę, że niektórzy niewpełnosprytni mogą mieć problemy z ogarnięciem edytorów XML, sam skorzystałem z XML Notepada 2007 który ma niski stopień skomplikowania, ino żmudny jest proces edycji każdego wozu z osobna - przy tym co teraz jest bez tego całego systemu to i tak pikuś.
User avatar
decomposed05
Posts: 2664
Joined: 19 Apr 2005, 00:00
Contact:

Re: Masowa edycja wozów

Post by decomposed05 » 20 Feb 2013, 21:48

Nie jest to może ideał ale taki xml daje rokowania na przyszłość. Może komuś będzie się chciało zrobić makro do excella to importu i exportu tego. Można też napisać cały program, który będzie generował takie xmle i je wysyłał na serwer. Można je generować jakimś skryptem i obrabiać poprzez style.
I tak jest chyba szybciej niż wyklikując.

Załadowałem:

Code: Select all

Vozilo: 336917 Uspeh
Vozilo: 336916 Uspeh
Vozilo: 336915 Uspeh
Vozilo: 336914 Uspeh
Vozilo: 336912 Uspeh
Vozilo: 336911 Uspeh
Vozilo: 336908 Uspeh
Vozilo: 336907 Uspeh
Vozilo: 336895 Uspeh
Vozilo: 334033 Uspeh
Vozilo: 330612 Uspeh
Vozilo: 330611 Uspeh
Vozilo: 330610 Uspeh
Vozilo: 330609 Uspeh
Vozilo: 324580 Uspeh
Vozilo: 321693 Uspeh
Vozilo: 321338 Uspeh
Vozilo: 321335 Uspeh
Vozilo: 320588 Uspeh
Vozilo: 320230 Uspeh
Vozilo: 315879 Uspeh
Vozilo: 315878 Uspeh
Vozilo: 315877 Uspeh
Vozilo: 315876 Uspeh
Vozilo: 315875 Uspeh
Vozilo: 315838 Uspeh
Vozilo: 315834 Uspeh
Vozilo: 314662 Uspeh
Vozilo: 312140 Uspeh
Vozilo: 312121 Uspeh
Vozilo: 312118 Uspeh
Vozilo: 311965 Uspeh
Vozilo: 310761 Uspeh
Vozilo: 309213 Uspeh
Vozilo: 309093 Uspeh
Vozilo: 308588 Uspeh
Vozilo: 308543 Uspeh
Vozilo: 308250 Uspeh
Vozilo: 306988 Uspeh
Vozilo: 305943 Uspeh
Vozilo: 304187 Uspeh
Vozilo: 304120 Uspeh
Vozilo: 303739 Uspeh
Vozilo: 299151 Uspeh
Vozilo: 293127 Uspeh
Vozilo: 290010 Uspeh
Vozilo: 285335 Uspeh
Vozilo: 277742 Uspeh
Vozilo: 265905 Uspeh
Vozilo: 265904 Uspeh
Vozilo: 263053 Uspeh
Vozilo: 263052 Uspeh
Vozilo: 263051 Uspeh
Vozilo: 263050 Uspeh
Vozilo: 263049 Uspeh
Vozilo: 263048 Uspeh
Vozilo: 263047 Uspeh
Vozilo: 263046 Uspeh
Vozilo: 263045 Uspeh
Vozilo: 263044 Uspeh
Vozilo: 263043 Uspeh
Vozilo: 263042 Uspeh
Vozilo: 263041 Uspeh
Vozilo: 263040 Uspeh
Vozilo: 262969 Uspeh
Vozilo: 262968 Uspeh
Vozilo: 262967 Uspeh
Vozilo: 262966 Uspeh
Vozilo: 262965 Uspeh
Vozilo: 262964 Uspeh
Vozilo: 262961 Uspeh
Vozilo: 262960 Uspeh
Vozilo: 262959 Uspeh
Vozilo: 262958 Uspeh
Vozilo: 262956 Uspeh
Vozilo: 262955 Uspeh
Vozilo: 262954 Uspeh
Vozilo: 262953 Uspeh
Vozilo: 262952 Uspeh
Vozilo: 262950 Uspeh
Vozilo: 262949 Uspeh
Vozilo: 262948 Uspeh
Vozilo: 262947 Uspeh
Vozilo: 262946 Uspeh
Vozilo: 262945 Uspeh
Vozilo: 262944 Uspeh
Vozilo: 262943 Uspeh
Vozilo: 262942 Uspeh
Vozilo: 262941 Uspeh
Vozilo: 262940 Uspeh
Vozilo: 262939 Uspeh
Vozilo: 262938 Uspeh
Vozilo: 262937 Uspeh
Vozilo: 262936 Uspeh
Vozilo: 262935 Uspeh
Vozilo: 262934 Uspeh
Vozilo: 262932 Uspeh
Vozilo: 262931 Uspeh
Vozilo: 262930 Uspeh
Vozilo: 262929 Uspeh
Vozilo: 262928 Uspeh
Vozilo: 262927 Uspeh
Vozilo: 262926 Uspeh
Vozilo: 262925 Uspeh
Vozilo: 262924 Uspeh
Vozilo: 262923 Uspeh
Vozilo: 262922 Uspeh
Vozilo: 262921 Uspeh
Vozilo: 262920 Uspeh
Vozilo: 262919 Uspeh
Vozilo: 262918 Uspeh
Vozilo: 259582 Uspeh
Vozilo: 254994 Uspeh
Vozilo: 254823 Uspeh
Vozilo: 251191 Uspeh
Vozilo: 250605 Uspeh
Vozilo: 250604 Uspeh
Vozilo: 242543 Uspeh
Vozilo: 242543 Uspeh
Vozilo: 242541 Uspeh
Vozilo: 242440 Uspeh
Vozilo: 224708 Uspeh
Vozilo: 223283 Uspeh
Vozilo: 221594 Uspeh
Vozilo: 221409 Uspeh
Vozilo: 221408 Uspeh
Vozilo: 220091 Uspeh
Vozilo: 219645 Uspeh
Vozilo: 210296 Uspeh
Vozilo: 210295 Uspeh
Vozilo: 210294 Uspeh
Vozilo: 210293 Uspeh
Vozilo: 210292 Uspeh
Vozilo: 210290 Uspeh
Vozilo: 210289 Uspeh
Vozilo: 210288 Uspeh
Vozilo: 206429 Uspeh
Vozilo: 200264 Uspeh
Vozilo: 198642 Uspeh
Vozilo: 197597 Uspeh
Vozilo: 197596 Uspeh
Vozilo: 197595 Uspeh
Vozilo: 197233 Uspeh
Vozilo: 197197 Uspeh
Vozilo: 197196 Uspeh
Vozilo: 197195 Uspeh
Vozilo: 197194 Uspeh
Vozilo: 197193 Uspeh
Vozilo: 197192 Uspeh
Vozilo: 197191 Uspeh
User avatar
mrozard
Posts: 948
Joined: 01 Jan 1970, 01:00
Location: Koszalin

Re: Masowa edycja wozów

Post by mrozard » 20 Feb 2013, 22:04

Coś chyba nie bangla z tym załadowaniem, bo sobie klikłem w download as XML a tam wszędzie nadal model_id jest inny niż 3221 (czyli seria Lahti Scala). Serwer nie wyrabia z przetworzeniem takiej ilości danych na raz, czy szto?
User avatar
decomposed05
Posts: 2664
Joined: 19 Apr 2005, 00:00
Contact:

Re: Masowa edycja wozów

Post by decomposed05 » 20 Feb 2013, 22:09

Zobaczymy jak teraz.

Był błąd.
Post Reply