No Description

Schemat_JPK_V7M(1)_v1-0.Designer.cs 300KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723
  1. // ------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Generated by Xsd2Code++. Version 5.0.0.47. www.xsd2code.com
  4. // <NameSpace>JPK_VDEK</NameSpace><Collection>List</Collection><codeType>CSharp</codeType><EnableDataBinding>False</EnableDataBinding><GenerateCloneMethod>False</GenerateCloneMethod><GenerateDataContracts>False</GenerateDataContracts><DataMemberNameArg>OnlyIfDifferent</DataMemberNameArg><DataMemberOnXmlIgnore>False</DataMemberOnXmlIgnore><CodeBaseTag>Net45</CodeBaseTag><InitializeFields>None</InitializeFields><GenerateUnusedComplexTypes>False</GenerateUnusedComplexTypes><GenerateUnusedSimpleTypes>True</GenerateUnusedSimpleTypes><GenerateXMLAttributes>True</GenerateXMLAttributes><OrderXMLAttrib>False</OrderXMLAttrib><EnableLazyLoading>False</EnableLazyLoading><VirtualProp>False</VirtualProp><PascalCase>False</PascalCase><AutomaticProperties>False</AutomaticProperties><PropNameSpecified>None</PropNameSpecified><PrivateFieldName>StartWithUnderscore</PrivateFieldName><PrivateFieldNamePrefix></PrivateFieldNamePrefix><EnableRestriction>False</EnableRestriction><RestrictionMaxLenght>False</RestrictionMaxLenght><RestrictionRegEx>False</RestrictionRegEx><RestrictionRange>False</RestrictionRange><ValidateProperty>False</ValidateProperty><ClassNamePrefix></ClassNamePrefix><ClassLevel>Public</ClassLevel><PartialClass>True</PartialClass><ClassesInSeparateFiles>False</ClassesInSeparateFiles><ClassesInSeparateFilesDir></ClassesInSeparateFilesDir><TrackingChangesEnable>False</TrackingChangesEnable><GenTrackingClasses>False</GenTrackingClasses><HidePrivateFieldInIDE>False</HidePrivateFieldInIDE><EnableSummaryComment>False</EnableSummaryComment><EnableAppInfoSettings>False</EnableAppInfoSettings><EnableExternalSchemasCache>False</EnableExternalSchemasCache><EnableDebug>False</EnableDebug><EnableWarn>False</EnableWarn><ExcludeImportedTypes>False</ExcludeImportedTypes><ExpandNesteadAttributeGroup>False</ExpandNesteadAttributeGroup><CleanupCode>False</CleanupCode><EnableXmlSerialization>True</EnableXmlSerialization><SerializeMethodName>Serialize</SerializeMethodName><DeserializeMethodName>Deserialize</DeserializeMethodName><SaveToFileMethodName>SaveToFile</SaveToFileMethodName><LoadFromFileMethodName>LoadFromFile</LoadFromFileMethodName><EnableEncoding>False</EnableEncoding><EnableXMLIndent>False</EnableXMLIndent><IndentChar>Indent2Space</IndentChar><NewLineAttr>False</NewLineAttr><OmitXML>False</OmitXML><Encoder>UTF8</Encoder><Serializer>XmlSerializer</Serializer><sspNullable>False</sspNullable><sspString>True</sspString><sspCollection>True</sspCollection><sspComplexType>True</sspComplexType><sspSimpleType>True</sspSimpleType><sspEnumType>True</sspEnumType><XmlSerializerEvent>False</XmlSerializerEvent><BaseClassName>EntityBase</BaseClassName><UseBaseClass>False</UseBaseClass><GenBaseClass>False</GenBaseClass><CustomUsings></CustomUsings><AttributesToExlude></AttributesToExlude>
  5. // </auto-generated>
  6. // ------------------------------------------------------------------------------
  7. #pragma warning disable
  8. namespace JPK_VDEK
  9. {
  10. using System;
  11. using System.Diagnostics;
  12. using System.Xml.Serialization;
  13. using System.Collections;
  14. using System.Xml.Schema;
  15. using System.ComponentModel;
  16. using System.IO;
  17. using System.Text;
  18. using System.Xml;
  19. using System.Collections.Generic;
  20. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3761.0")]
  21. [System.SerializableAttribute()]
  22. [System.Diagnostics.DebuggerStepThroughAttribute()]
  23. [System.ComponentModel.DesignerCategoryAttribute("code")]
  24. [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://crd.gov.pl/wzor/2020/05/08/9393/")]
  25. [System.Xml.Serialization.XmlRootAttribute(Namespace = "http://crd.gov.pl/wzor/2020/05/08/9393/", IsNullable = false)]
  26. public partial class JPK
  27. {
  28. #region Private fields
  29. private JPKNaglowek _naglowek;
  30. private JPKPodmiot1 _podmiot1;
  31. private JPKDeklaracja _deklaracja;
  32. private JPKEwidencja _ewidencja;
  33. private static XmlSerializer serializer;
  34. #endregion
  35. public JPKNaglowek Naglowek
  36. {
  37. get
  38. {
  39. return this._naglowek;
  40. }
  41. set
  42. {
  43. this._naglowek = value;
  44. }
  45. }
  46. public JPKPodmiot1 Podmiot1
  47. {
  48. get
  49. {
  50. return this._podmiot1;
  51. }
  52. set
  53. {
  54. this._podmiot1 = value;
  55. }
  56. }
  57. public JPKDeklaracja Deklaracja
  58. {
  59. get
  60. {
  61. return this._deklaracja;
  62. }
  63. set
  64. {
  65. this._deklaracja = value;
  66. }
  67. }
  68. public JPKEwidencja Ewidencja
  69. {
  70. get
  71. {
  72. return this._ewidencja;
  73. }
  74. set
  75. {
  76. this._ewidencja = value;
  77. }
  78. }
  79. private static XmlSerializer Serializer
  80. {
  81. get
  82. {
  83. if ((serializer == null))
  84. {
  85. serializer = new XmlSerializerFactory().CreateSerializer(typeof(JPK));
  86. }
  87. return serializer;
  88. }
  89. }
  90. /// <summary>
  91. /// Test whether Naglowek should be serialized
  92. /// </summary>
  93. public virtual bool ShouldSerializeNaglowek()
  94. {
  95. return (_naglowek != null);
  96. }
  97. /// <summary>
  98. /// Test whether Podmiot1 should be serialized
  99. /// </summary>
  100. public virtual bool ShouldSerializePodmiot1()
  101. {
  102. return (_podmiot1 != null);
  103. }
  104. /// <summary>
  105. /// Test whether Deklaracja should be serialized
  106. /// </summary>
  107. public virtual bool ShouldSerializeDeklaracja()
  108. {
  109. return (_deklaracja != null);
  110. }
  111. /// <summary>
  112. /// Test whether Ewidencja should be serialized
  113. /// </summary>
  114. public virtual bool ShouldSerializeEwidencja()
  115. {
  116. return (_ewidencja != null);
  117. }
  118. #region Serialize/Deserialize
  119. /// <summary>
  120. /// Serializes current JPK object into an XML string
  121. /// </summary>
  122. /// <returns>string XML value</returns>
  123. public virtual string Serialize()
  124. {
  125. System.IO.StreamReader streamReader = null;
  126. System.IO.MemoryStream memoryStream = null;
  127. try
  128. {
  129. memoryStream = new System.IO.MemoryStream();
  130. System.Xml.XmlWriterSettings xmlWriterSettings = new System.Xml.XmlWriterSettings();
  131. System.Xml.XmlWriter xmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings);
  132. Serializer.Serialize(xmlWriter, this);
  133. memoryStream.Seek(0, SeekOrigin.Begin);
  134. streamReader = new System.IO.StreamReader(memoryStream);
  135. return streamReader.ReadToEnd();
  136. }
  137. finally
  138. {
  139. if ((streamReader != null))
  140. {
  141. streamReader.Dispose();
  142. }
  143. if ((memoryStream != null))
  144. {
  145. memoryStream.Dispose();
  146. }
  147. }
  148. }
  149. /// <summary>
  150. /// Deserializes workflow markup into an JPK object
  151. /// </summary>
  152. /// <param name="input">string workflow markup to deserialize</param>
  153. /// <param name="obj">Output JPK object</param>
  154. /// <param name="exception">output Exception value if deserialize failed</param>
  155. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  156. public static bool Deserialize(string input, out JPK obj, out System.Exception exception)
  157. {
  158. exception = null;
  159. obj = default(JPK);
  160. try
  161. {
  162. obj = Deserialize(input);
  163. return true;
  164. }
  165. catch (System.Exception ex)
  166. {
  167. exception = ex;
  168. return false;
  169. }
  170. }
  171. public static bool Deserialize(string input, out JPK obj)
  172. {
  173. System.Exception exception = null;
  174. return Deserialize(input, out obj, out exception);
  175. }
  176. public static JPK Deserialize(string input)
  177. {
  178. System.IO.StringReader stringReader = null;
  179. try
  180. {
  181. stringReader = new System.IO.StringReader(input);
  182. return ((JPK)(Serializer.Deserialize(XmlReader.Create(stringReader))));
  183. }
  184. finally
  185. {
  186. if ((stringReader != null))
  187. {
  188. stringReader.Dispose();
  189. }
  190. }
  191. }
  192. public static JPK Deserialize(System.IO.Stream s)
  193. {
  194. return ((JPK)(Serializer.Deserialize(s)));
  195. }
  196. #endregion
  197. /// <summary>
  198. /// Serializes current JPK object into file
  199. /// </summary>
  200. /// <param name="fileName">full path of outupt xml file</param>
  201. /// <param name="exception">output Exception value if failed</param>
  202. /// <returns>true if can serialize and save into file; otherwise, false</returns>
  203. public virtual bool SaveToFile(string fileName, out System.Exception exception)
  204. {
  205. exception = null;
  206. try
  207. {
  208. SaveToFile(fileName);
  209. return true;
  210. }
  211. catch (System.Exception e)
  212. {
  213. exception = e;
  214. return false;
  215. }
  216. }
  217. public virtual void SaveToFile(string fileName)
  218. {
  219. System.IO.StreamWriter streamWriter = null;
  220. try
  221. {
  222. string xmlString = Serialize();
  223. System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
  224. streamWriter = xmlFile.CreateText();
  225. streamWriter.WriteLine(xmlString);
  226. streamWriter.Close();
  227. }
  228. finally
  229. {
  230. if ((streamWriter != null))
  231. {
  232. streamWriter.Dispose();
  233. }
  234. }
  235. }
  236. /// <summary>
  237. /// Deserializes xml markup from file into an JPK object
  238. /// </summary>
  239. /// <param name="fileName">string xml file to load and deserialize</param>
  240. /// <param name="obj">Output JPK object</param>
  241. /// <param name="exception">output Exception value if deserialize failed</param>
  242. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  243. public static bool LoadFromFile(string fileName, out JPK obj, out System.Exception exception)
  244. {
  245. exception = null;
  246. obj = default(JPK);
  247. try
  248. {
  249. obj = LoadFromFile(fileName);
  250. return true;
  251. }
  252. catch (System.Exception ex)
  253. {
  254. exception = ex;
  255. return false;
  256. }
  257. }
  258. public static bool LoadFromFile(string fileName, out JPK obj)
  259. {
  260. System.Exception exception = null;
  261. return LoadFromFile(fileName, out obj, out exception);
  262. }
  263. public static JPK LoadFromFile(string fileName)
  264. {
  265. System.IO.FileStream file = null;
  266. System.IO.StreamReader sr = null;
  267. try
  268. {
  269. file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
  270. sr = new System.IO.StreamReader(file);
  271. string xmlString = sr.ReadToEnd();
  272. sr.Close();
  273. file.Close();
  274. return Deserialize(xmlString);
  275. }
  276. finally
  277. {
  278. if ((file != null))
  279. {
  280. file.Dispose();
  281. }
  282. if ((sr != null))
  283. {
  284. sr.Dispose();
  285. }
  286. }
  287. }
  288. }
  289. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3761.0")]
  290. [System.SerializableAttribute()]
  291. [System.Diagnostics.DebuggerStepThroughAttribute()]
  292. [System.ComponentModel.DesignerCategoryAttribute("code")]
  293. [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://crd.gov.pl/wzor/2020/05/08/9393/")]
  294. public partial class JPKNaglowek : TNaglowek
  295. {
  296. #region Private fields
  297. private static XmlSerializer serializer;
  298. #endregion
  299. private static XmlSerializer Serializer
  300. {
  301. get
  302. {
  303. if ((serializer == null))
  304. {
  305. serializer = new XmlSerializerFactory().CreateSerializer(typeof(JPKNaglowek));
  306. }
  307. return serializer;
  308. }
  309. }
  310. #region Serialize/Deserialize
  311. /// <summary>
  312. /// Serializes current JPKNaglowek object into an XML string
  313. /// </summary>
  314. /// <returns>string XML value</returns>
  315. public virtual string Serialize()
  316. {
  317. System.IO.StreamReader streamReader = null;
  318. System.IO.MemoryStream memoryStream = null;
  319. try
  320. {
  321. memoryStream = new System.IO.MemoryStream();
  322. System.Xml.XmlWriterSettings xmlWriterSettings = new System.Xml.XmlWriterSettings();
  323. System.Xml.XmlWriter xmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings);
  324. Serializer.Serialize(xmlWriter, this);
  325. memoryStream.Seek(0, SeekOrigin.Begin);
  326. streamReader = new System.IO.StreamReader(memoryStream);
  327. return streamReader.ReadToEnd();
  328. }
  329. finally
  330. {
  331. if ((streamReader != null))
  332. {
  333. streamReader.Dispose();
  334. }
  335. if ((memoryStream != null))
  336. {
  337. memoryStream.Dispose();
  338. }
  339. }
  340. }
  341. /// <summary>
  342. /// Deserializes workflow markup into an JPKNaglowek object
  343. /// </summary>
  344. /// <param name="input">string workflow markup to deserialize</param>
  345. /// <param name="obj">Output JPKNaglowek object</param>
  346. /// <param name="exception">output Exception value if deserialize failed</param>
  347. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  348. public static bool Deserialize(string input, out JPKNaglowek obj, out System.Exception exception)
  349. {
  350. exception = null;
  351. obj = default(JPKNaglowek);
  352. try
  353. {
  354. obj = Deserialize(input);
  355. return true;
  356. }
  357. catch (System.Exception ex)
  358. {
  359. exception = ex;
  360. return false;
  361. }
  362. }
  363. public static bool Deserialize(string input, out JPKNaglowek obj)
  364. {
  365. System.Exception exception = null;
  366. return Deserialize(input, out obj, out exception);
  367. }
  368. public new static JPKNaglowek Deserialize(string input)
  369. {
  370. System.IO.StringReader stringReader = null;
  371. try
  372. {
  373. stringReader = new System.IO.StringReader(input);
  374. return ((JPKNaglowek)(Serializer.Deserialize(XmlReader.Create(stringReader))));
  375. }
  376. finally
  377. {
  378. if ((stringReader != null))
  379. {
  380. stringReader.Dispose();
  381. }
  382. }
  383. }
  384. public static JPKNaglowek Deserialize(System.IO.Stream s)
  385. {
  386. return ((JPKNaglowek)(Serializer.Deserialize(s)));
  387. }
  388. #endregion
  389. /// <summary>
  390. /// Serializes current JPKNaglowek object into file
  391. /// </summary>
  392. /// <param name="fileName">full path of outupt xml file</param>
  393. /// <param name="exception">output Exception value if failed</param>
  394. /// <returns>true if can serialize and save into file; otherwise, false</returns>
  395. public virtual bool SaveToFile(string fileName, out System.Exception exception)
  396. {
  397. exception = null;
  398. try
  399. {
  400. SaveToFile(fileName);
  401. return true;
  402. }
  403. catch (System.Exception e)
  404. {
  405. exception = e;
  406. return false;
  407. }
  408. }
  409. public virtual void SaveToFile(string fileName)
  410. {
  411. System.IO.StreamWriter streamWriter = null;
  412. try
  413. {
  414. string xmlString = Serialize();
  415. System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
  416. streamWriter = xmlFile.CreateText();
  417. streamWriter.WriteLine(xmlString);
  418. streamWriter.Close();
  419. }
  420. finally
  421. {
  422. if ((streamWriter != null))
  423. {
  424. streamWriter.Dispose();
  425. }
  426. }
  427. }
  428. /// <summary>
  429. /// Deserializes xml markup from file into an JPKNaglowek object
  430. /// </summary>
  431. /// <param name="fileName">string xml file to load and deserialize</param>
  432. /// <param name="obj">Output JPKNaglowek object</param>
  433. /// <param name="exception">output Exception value if deserialize failed</param>
  434. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  435. public static bool LoadFromFile(string fileName, out JPKNaglowek obj, out System.Exception exception)
  436. {
  437. exception = null;
  438. obj = default(JPKNaglowek);
  439. try
  440. {
  441. obj = LoadFromFile(fileName);
  442. return true;
  443. }
  444. catch (System.Exception ex)
  445. {
  446. exception = ex;
  447. return false;
  448. }
  449. }
  450. public static bool LoadFromFile(string fileName, out JPKNaglowek obj)
  451. {
  452. System.Exception exception = null;
  453. return LoadFromFile(fileName, out obj, out exception);
  454. }
  455. public new static JPKNaglowek LoadFromFile(string fileName)
  456. {
  457. System.IO.FileStream file = null;
  458. System.IO.StreamReader sr = null;
  459. try
  460. {
  461. file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
  462. sr = new System.IO.StreamReader(file);
  463. string xmlString = sr.ReadToEnd();
  464. sr.Close();
  465. file.Close();
  466. return Deserialize(xmlString);
  467. }
  468. finally
  469. {
  470. if ((file != null))
  471. {
  472. file.Dispose();
  473. }
  474. if ((sr != null))
  475. {
  476. sr.Dispose();
  477. }
  478. }
  479. }
  480. }
  481. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3761.0")]
  482. [System.SerializableAttribute()]
  483. [System.Diagnostics.DebuggerStepThroughAttribute()]
  484. [System.ComponentModel.DesignerCategoryAttribute("code")]
  485. [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://crd.gov.pl/wzor/2020/05/08/9393/")]
  486. public partial class TNaglowek
  487. {
  488. #region Private fields
  489. private bool _shouldSerializeKodUrzedu;
  490. private bool _shouldSerializeMiesiac;
  491. private bool _shouldSerializeDataWytworzeniaJPK;
  492. private bool _shouldSerializeWariantFormularza;
  493. private TNaglowekKodFormularza _kodFormularza;
  494. private sbyte _wariantFormularza;
  495. private System.DateTime _dataWytworzeniaJPK;
  496. private string _nazwaSystemu;
  497. private TNaglowekCelZlozenia _celZlozenia;
  498. private TKodUS _kodUrzedu;
  499. private string _rok;
  500. private sbyte _miesiac;
  501. private static XmlSerializer serializer;
  502. #endregion
  503. public TNaglowekKodFormularza KodFormularza
  504. {
  505. get
  506. {
  507. return this._kodFormularza;
  508. }
  509. set
  510. {
  511. this._kodFormularza = value;
  512. }
  513. }
  514. public sbyte WariantFormularza
  515. {
  516. get
  517. {
  518. return this._wariantFormularza;
  519. }
  520. set
  521. {
  522. this._wariantFormularza = value;
  523. _shouldSerializeWariantFormularza = true;
  524. }
  525. }
  526. public System.DateTime DataWytworzeniaJPK
  527. {
  528. get
  529. {
  530. return this._dataWytworzeniaJPK;
  531. }
  532. set
  533. {
  534. this._dataWytworzeniaJPK = value;
  535. _shouldSerializeDataWytworzeniaJPK = true;
  536. }
  537. }
  538. [System.Xml.Serialization.XmlElementAttribute(DataType = "token")]
  539. public string NazwaSystemu
  540. {
  541. get
  542. {
  543. return this._nazwaSystemu;
  544. }
  545. set
  546. {
  547. this._nazwaSystemu = value;
  548. }
  549. }
  550. public TNaglowekCelZlozenia CelZlozenia
  551. {
  552. get
  553. {
  554. return this._celZlozenia;
  555. }
  556. set
  557. {
  558. this._celZlozenia = value;
  559. }
  560. }
  561. public TKodUS KodUrzedu
  562. {
  563. get
  564. {
  565. return this._kodUrzedu;
  566. }
  567. set
  568. {
  569. this._kodUrzedu = value;
  570. _shouldSerializeKodUrzedu = true;
  571. }
  572. }
  573. [System.Xml.Serialization.XmlElementAttribute(DataType = "gYear")]
  574. public string Rok
  575. {
  576. get
  577. {
  578. return this._rok;
  579. }
  580. set
  581. {
  582. this._rok = value;
  583. }
  584. }
  585. public sbyte Miesiac
  586. {
  587. get
  588. {
  589. return this._miesiac;
  590. }
  591. set
  592. {
  593. this._miesiac = value;
  594. _shouldSerializeMiesiac = true;
  595. }
  596. }
  597. private static XmlSerializer Serializer
  598. {
  599. get
  600. {
  601. if ((serializer == null))
  602. {
  603. serializer = new XmlSerializerFactory().CreateSerializer(typeof(TNaglowek));
  604. }
  605. return serializer;
  606. }
  607. }
  608. /// <summary>
  609. /// Test whether WariantFormularza should be serialized
  610. /// </summary>
  611. public virtual bool ShouldSerializeWariantFormularza()
  612. {
  613. if (_shouldSerializeWariantFormularza)
  614. {
  615. return true;
  616. }
  617. return (_wariantFormularza != default(sbyte));
  618. }
  619. /// <summary>
  620. /// Test whether DataWytworzeniaJPK should be serialized
  621. /// </summary>
  622. public virtual bool ShouldSerializeDataWytworzeniaJPK()
  623. {
  624. if (_shouldSerializeDataWytworzeniaJPK)
  625. {
  626. return true;
  627. }
  628. return (_dataWytworzeniaJPK != default(System.DateTime));
  629. }
  630. /// <summary>
  631. /// Test whether Miesiac should be serialized
  632. /// </summary>
  633. public virtual bool ShouldSerializeMiesiac()
  634. {
  635. if (_shouldSerializeMiesiac)
  636. {
  637. return true;
  638. }
  639. return (_miesiac != default(sbyte));
  640. }
  641. /// <summary>
  642. /// Test whether KodUrzedu should be serialized
  643. /// </summary>
  644. public virtual bool ShouldSerializeKodUrzedu()
  645. {
  646. if (_shouldSerializeKodUrzedu)
  647. {
  648. return true;
  649. }
  650. return (_kodUrzedu != default(TKodUS));
  651. }
  652. /// <summary>
  653. /// Test whether KodFormularza should be serialized
  654. /// </summary>
  655. public virtual bool ShouldSerializeKodFormularza()
  656. {
  657. return (_kodFormularza != null);
  658. }
  659. /// <summary>
  660. /// Test whether CelZlozenia should be serialized
  661. /// </summary>
  662. public virtual bool ShouldSerializeCelZlozenia()
  663. {
  664. return (_celZlozenia != null);
  665. }
  666. /// <summary>
  667. /// Test whether NazwaSystemu should be serialized
  668. /// </summary>
  669. public virtual bool ShouldSerializeNazwaSystemu()
  670. {
  671. return !string.IsNullOrEmpty(NazwaSystemu);
  672. }
  673. /// <summary>
  674. /// Test whether Rok should be serialized
  675. /// </summary>
  676. public virtual bool ShouldSerializeRok()
  677. {
  678. return !string.IsNullOrEmpty(Rok);
  679. }
  680. #region Serialize/Deserialize
  681. /// <summary>
  682. /// Serializes current TNaglowek object into an XML string
  683. /// </summary>
  684. /// <returns>string XML value</returns>
  685. public virtual string Serialize()
  686. {
  687. System.IO.StreamReader streamReader = null;
  688. System.IO.MemoryStream memoryStream = null;
  689. try
  690. {
  691. memoryStream = new System.IO.MemoryStream();
  692. System.Xml.XmlWriterSettings xmlWriterSettings = new System.Xml.XmlWriterSettings();
  693. System.Xml.XmlWriter xmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings);
  694. Serializer.Serialize(xmlWriter, this);
  695. memoryStream.Seek(0, SeekOrigin.Begin);
  696. streamReader = new System.IO.StreamReader(memoryStream);
  697. return streamReader.ReadToEnd();
  698. }
  699. finally
  700. {
  701. if ((streamReader != null))
  702. {
  703. streamReader.Dispose();
  704. }
  705. if ((memoryStream != null))
  706. {
  707. memoryStream.Dispose();
  708. }
  709. }
  710. }
  711. /// <summary>
  712. /// Deserializes workflow markup into an TNaglowek object
  713. /// </summary>
  714. /// <param name="input">string workflow markup to deserialize</param>
  715. /// <param name="obj">Output TNaglowek object</param>
  716. /// <param name="exception">output Exception value if deserialize failed</param>
  717. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  718. public static bool Deserialize(string input, out TNaglowek obj, out System.Exception exception)
  719. {
  720. exception = null;
  721. obj = default(TNaglowek);
  722. try
  723. {
  724. obj = Deserialize(input);
  725. return true;
  726. }
  727. catch (System.Exception ex)
  728. {
  729. exception = ex;
  730. return false;
  731. }
  732. }
  733. public static bool Deserialize(string input, out TNaglowek obj)
  734. {
  735. System.Exception exception = null;
  736. return Deserialize(input, out obj, out exception);
  737. }
  738. public static TNaglowek Deserialize(string input)
  739. {
  740. System.IO.StringReader stringReader = null;
  741. try
  742. {
  743. stringReader = new System.IO.StringReader(input);
  744. return ((TNaglowek)(Serializer.Deserialize(XmlReader.Create(stringReader))));
  745. }
  746. finally
  747. {
  748. if ((stringReader != null))
  749. {
  750. stringReader.Dispose();
  751. }
  752. }
  753. }
  754. public static TNaglowek Deserialize(System.IO.Stream s)
  755. {
  756. return ((TNaglowek)(Serializer.Deserialize(s)));
  757. }
  758. #endregion
  759. /// <summary>
  760. /// Serializes current TNaglowek object into file
  761. /// </summary>
  762. /// <param name="fileName">full path of outupt xml file</param>
  763. /// <param name="exception">output Exception value if failed</param>
  764. /// <returns>true if can serialize and save into file; otherwise, false</returns>
  765. public virtual bool SaveToFile(string fileName, out System.Exception exception)
  766. {
  767. exception = null;
  768. try
  769. {
  770. SaveToFile(fileName);
  771. return true;
  772. }
  773. catch (System.Exception e)
  774. {
  775. exception = e;
  776. return false;
  777. }
  778. }
  779. public virtual void SaveToFile(string fileName)
  780. {
  781. System.IO.StreamWriter streamWriter = null;
  782. try
  783. {
  784. string xmlString = Serialize();
  785. System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
  786. streamWriter = xmlFile.CreateText();
  787. streamWriter.WriteLine(xmlString);
  788. streamWriter.Close();
  789. }
  790. finally
  791. {
  792. if ((streamWriter != null))
  793. {
  794. streamWriter.Dispose();
  795. }
  796. }
  797. }
  798. /// <summary>
  799. /// Deserializes xml markup from file into an TNaglowek object
  800. /// </summary>
  801. /// <param name="fileName">string xml file to load and deserialize</param>
  802. /// <param name="obj">Output TNaglowek object</param>
  803. /// <param name="exception">output Exception value if deserialize failed</param>
  804. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  805. public static bool LoadFromFile(string fileName, out TNaglowek obj, out System.Exception exception)
  806. {
  807. exception = null;
  808. obj = default(TNaglowek);
  809. try
  810. {
  811. obj = LoadFromFile(fileName);
  812. return true;
  813. }
  814. catch (System.Exception ex)
  815. {
  816. exception = ex;
  817. return false;
  818. }
  819. }
  820. public static bool LoadFromFile(string fileName, out TNaglowek obj)
  821. {
  822. System.Exception exception = null;
  823. return LoadFromFile(fileName, out obj, out exception);
  824. }
  825. public static TNaglowek LoadFromFile(string fileName)
  826. {
  827. System.IO.FileStream file = null;
  828. System.IO.StreamReader sr = null;
  829. try
  830. {
  831. file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
  832. sr = new System.IO.StreamReader(file);
  833. string xmlString = sr.ReadToEnd();
  834. sr.Close();
  835. file.Close();
  836. return Deserialize(xmlString);
  837. }
  838. finally
  839. {
  840. if ((file != null))
  841. {
  842. file.Dispose();
  843. }
  844. if ((sr != null))
  845. {
  846. sr.Dispose();
  847. }
  848. }
  849. }
  850. }
  851. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3761.0")]
  852. [System.SerializableAttribute()]
  853. [System.Diagnostics.DebuggerStepThroughAttribute()]
  854. [System.ComponentModel.DesignerCategoryAttribute("code")]
  855. [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://crd.gov.pl/wzor/2020/05/08/9393/")]
  856. public partial class TNaglowekKodFormularza
  857. {
  858. #region Private fields
  859. private bool _shouldSerializeValue;
  860. private string _kodSystemowy;
  861. private string _wersjaSchemy;
  862. private TKodFormularza _value;
  863. private static XmlSerializer serializer;
  864. #endregion
  865. public TNaglowekKodFormularza()
  866. {
  867. this._kodSystemowy = "JPK_V7M (1)";
  868. this._wersjaSchemy = "1-2E";
  869. }
  870. [System.Xml.Serialization.XmlAttributeAttribute()]
  871. public string kodSystemowy
  872. {
  873. get
  874. {
  875. return this._kodSystemowy;
  876. }
  877. set
  878. {
  879. this._kodSystemowy = value;
  880. }
  881. }
  882. [System.Xml.Serialization.XmlAttributeAttribute()]
  883. public string wersjaSchemy
  884. {
  885. get
  886. {
  887. return this._wersjaSchemy;
  888. }
  889. set
  890. {
  891. this._wersjaSchemy = value;
  892. }
  893. }
  894. [System.Xml.Serialization.XmlTextAttribute()]
  895. public TKodFormularza Value
  896. {
  897. get
  898. {
  899. return this._value;
  900. }
  901. set
  902. {
  903. this._value = value;
  904. _shouldSerializeValue = true;
  905. }
  906. }
  907. private static XmlSerializer Serializer
  908. {
  909. get
  910. {
  911. if ((serializer == null))
  912. {
  913. serializer = new XmlSerializerFactory().CreateSerializer(typeof(TNaglowekKodFormularza));
  914. }
  915. return serializer;
  916. }
  917. }
  918. /// <summary>
  919. /// Test whether Value should be serialized
  920. /// </summary>
  921. public virtual bool ShouldSerializeValue()
  922. {
  923. if (_shouldSerializeValue)
  924. {
  925. return true;
  926. }
  927. return (_value != default(TKodFormularza));
  928. }
  929. /// <summary>
  930. /// Test whether kodSystemowy should be serialized
  931. /// </summary>
  932. public virtual bool ShouldSerializekodSystemowy()
  933. {
  934. return !string.IsNullOrEmpty(kodSystemowy);
  935. }
  936. /// <summary>
  937. /// Test whether wersjaSchemy should be serialized
  938. /// </summary>
  939. public virtual bool ShouldSerializewersjaSchemy()
  940. {
  941. return !string.IsNullOrEmpty(wersjaSchemy);
  942. }
  943. #region Serialize/Deserialize
  944. /// <summary>
  945. /// Serializes current TNaglowekKodFormularza object into an XML string
  946. /// </summary>
  947. /// <returns>string XML value</returns>
  948. public virtual string Serialize()
  949. {
  950. System.IO.StreamReader streamReader = null;
  951. System.IO.MemoryStream memoryStream = null;
  952. try
  953. {
  954. memoryStream = new System.IO.MemoryStream();
  955. System.Xml.XmlWriterSettings xmlWriterSettings = new System.Xml.XmlWriterSettings();
  956. System.Xml.XmlWriter xmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings);
  957. Serializer.Serialize(xmlWriter, this);
  958. memoryStream.Seek(0, SeekOrigin.Begin);
  959. streamReader = new System.IO.StreamReader(memoryStream);
  960. return streamReader.ReadToEnd();
  961. }
  962. finally
  963. {
  964. if ((streamReader != null))
  965. {
  966. streamReader.Dispose();
  967. }
  968. if ((memoryStream != null))
  969. {
  970. memoryStream.Dispose();
  971. }
  972. }
  973. }
  974. /// <summary>
  975. /// Deserializes workflow markup into an TNaglowekKodFormularza object
  976. /// </summary>
  977. /// <param name="input">string workflow markup to deserialize</param>
  978. /// <param name="obj">Output TNaglowekKodFormularza object</param>
  979. /// <param name="exception">output Exception value if deserialize failed</param>
  980. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  981. public static bool Deserialize(string input, out TNaglowekKodFormularza obj, out System.Exception exception)
  982. {
  983. exception = null;
  984. obj = default(TNaglowekKodFormularza);
  985. try
  986. {
  987. obj = Deserialize(input);
  988. return true;
  989. }
  990. catch (System.Exception ex)
  991. {
  992. exception = ex;
  993. return false;
  994. }
  995. }
  996. public static bool Deserialize(string input, out TNaglowekKodFormularza obj)
  997. {
  998. System.Exception exception = null;
  999. return Deserialize(input, out obj, out exception);
  1000. }
  1001. public static TNaglowekKodFormularza Deserialize(string input)
  1002. {
  1003. System.IO.StringReader stringReader = null;
  1004. try
  1005. {
  1006. stringReader = new System.IO.StringReader(input);
  1007. return ((TNaglowekKodFormularza)(Serializer.Deserialize(XmlReader.Create(stringReader))));
  1008. }
  1009. finally
  1010. {
  1011. if ((stringReader != null))
  1012. {
  1013. stringReader.Dispose();
  1014. }
  1015. }
  1016. }
  1017. public static TNaglowekKodFormularza Deserialize(System.IO.Stream s)
  1018. {
  1019. return ((TNaglowekKodFormularza)(Serializer.Deserialize(s)));
  1020. }
  1021. #endregion
  1022. /// <summary>
  1023. /// Serializes current TNaglowekKodFormularza object into file
  1024. /// </summary>
  1025. /// <param name="fileName">full path of outupt xml file</param>
  1026. /// <param name="exception">output Exception value if failed</param>
  1027. /// <returns>true if can serialize and save into file; otherwise, false</returns>
  1028. public virtual bool SaveToFile(string fileName, out System.Exception exception)
  1029. {
  1030. exception = null;
  1031. try
  1032. {
  1033. SaveToFile(fileName);
  1034. return true;
  1035. }
  1036. catch (System.Exception e)
  1037. {
  1038. exception = e;
  1039. return false;
  1040. }
  1041. }
  1042. public virtual void SaveToFile(string fileName)
  1043. {
  1044. System.IO.StreamWriter streamWriter = null;
  1045. try
  1046. {
  1047. string xmlString = Serialize();
  1048. System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
  1049. streamWriter = xmlFile.CreateText();
  1050. streamWriter.WriteLine(xmlString);
  1051. streamWriter.Close();
  1052. }
  1053. finally
  1054. {
  1055. if ((streamWriter != null))
  1056. {
  1057. streamWriter.Dispose();
  1058. }
  1059. }
  1060. }
  1061. /// <summary>
  1062. /// Deserializes xml markup from file into an TNaglowekKodFormularza object
  1063. /// </summary>
  1064. /// <param name="fileName">string xml file to load and deserialize</param>
  1065. /// <param name="obj">Output TNaglowekKodFormularza object</param>
  1066. /// <param name="exception">output Exception value if deserialize failed</param>
  1067. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  1068. public static bool LoadFromFile(string fileName, out TNaglowekKodFormularza obj, out System.Exception exception)
  1069. {
  1070. exception = null;
  1071. obj = default(TNaglowekKodFormularza);
  1072. try
  1073. {
  1074. obj = LoadFromFile(fileName);
  1075. return true;
  1076. }
  1077. catch (System.Exception ex)
  1078. {
  1079. exception = ex;
  1080. return false;
  1081. }
  1082. }
  1083. public static bool LoadFromFile(string fileName, out TNaglowekKodFormularza obj)
  1084. {
  1085. System.Exception exception = null;
  1086. return LoadFromFile(fileName, out obj, out exception);
  1087. }
  1088. public static TNaglowekKodFormularza LoadFromFile(string fileName)
  1089. {
  1090. System.IO.FileStream file = null;
  1091. System.IO.StreamReader sr = null;
  1092. try
  1093. {
  1094. file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
  1095. sr = new System.IO.StreamReader(file);
  1096. string xmlString = sr.ReadToEnd();
  1097. sr.Close();
  1098. file.Close();
  1099. return Deserialize(xmlString);
  1100. }
  1101. finally
  1102. {
  1103. if ((file != null))
  1104. {
  1105. file.Dispose();
  1106. }
  1107. if ((sr != null))
  1108. {
  1109. sr.Dispose();
  1110. }
  1111. }
  1112. }
  1113. }
  1114. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3761.0")]
  1115. [System.SerializableAttribute()]
  1116. [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://crd.gov.pl/wzor/2020/05/08/9393/")]
  1117. public enum TKodFormularza
  1118. {
  1119. /// <remarks/>
  1120. JPK_VAT,
  1121. }
  1122. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3761.0")]
  1123. [System.SerializableAttribute()]
  1124. [System.Diagnostics.DebuggerStepThroughAttribute()]
  1125. [System.ComponentModel.DesignerCategoryAttribute("code")]
  1126. [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://crd.gov.pl/wzor/2020/05/08/9393/")]
  1127. public partial class TIdentyfikatorOsobyNiefizycznej
  1128. {
  1129. #region Private fields
  1130. private string _nIP;
  1131. private string _pelnaNazwa;
  1132. private static XmlSerializer serializer;
  1133. #endregion
  1134. public string NIP
  1135. {
  1136. get
  1137. {
  1138. return this._nIP;
  1139. }
  1140. set
  1141. {
  1142. this._nIP = value;
  1143. }
  1144. }
  1145. [System.Xml.Serialization.XmlElementAttribute(DataType = "token")]
  1146. public string PelnaNazwa
  1147. {
  1148. get
  1149. {
  1150. return this._pelnaNazwa;
  1151. }
  1152. set
  1153. {
  1154. this._pelnaNazwa = value;
  1155. }
  1156. }
  1157. private static XmlSerializer Serializer
  1158. {
  1159. get
  1160. {
  1161. if ((serializer == null))
  1162. {
  1163. serializer = new XmlSerializerFactory().CreateSerializer(typeof(TIdentyfikatorOsobyNiefizycznej));
  1164. }
  1165. return serializer;
  1166. }
  1167. }
  1168. /// <summary>
  1169. /// Test whether NIP should be serialized
  1170. /// </summary>
  1171. public virtual bool ShouldSerializeNIP()
  1172. {
  1173. return !string.IsNullOrEmpty(NIP);
  1174. }
  1175. /// <summary>
  1176. /// Test whether PelnaNazwa should be serialized
  1177. /// </summary>
  1178. public virtual bool ShouldSerializePelnaNazwa()
  1179. {
  1180. return !string.IsNullOrEmpty(PelnaNazwa);
  1181. }
  1182. #region Serialize/Deserialize
  1183. /// <summary>
  1184. /// Serializes current TIdentyfikatorOsobyNiefizycznej object into an XML string
  1185. /// </summary>
  1186. /// <returns>string XML value</returns>
  1187. public virtual string Serialize()
  1188. {
  1189. System.IO.StreamReader streamReader = null;
  1190. System.IO.MemoryStream memoryStream = null;
  1191. try
  1192. {
  1193. memoryStream = new System.IO.MemoryStream();
  1194. System.Xml.XmlWriterSettings xmlWriterSettings = new System.Xml.XmlWriterSettings();
  1195. System.Xml.XmlWriter xmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings);
  1196. Serializer.Serialize(xmlWriter, this);
  1197. memoryStream.Seek(0, SeekOrigin.Begin);
  1198. streamReader = new System.IO.StreamReader(memoryStream);
  1199. return streamReader.ReadToEnd();
  1200. }
  1201. finally
  1202. {
  1203. if ((streamReader != null))
  1204. {
  1205. streamReader.Dispose();
  1206. }
  1207. if ((memoryStream != null))
  1208. {
  1209. memoryStream.Dispose();
  1210. }
  1211. }
  1212. }
  1213. /// <summary>
  1214. /// Deserializes workflow markup into an TIdentyfikatorOsobyNiefizycznej object
  1215. /// </summary>
  1216. /// <param name="input">string workflow markup to deserialize</param>
  1217. /// <param name="obj">Output TIdentyfikatorOsobyNiefizycznej object</param>
  1218. /// <param name="exception">output Exception value if deserialize failed</param>
  1219. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  1220. public static bool Deserialize(string input, out TIdentyfikatorOsobyNiefizycznej obj, out System.Exception exception)
  1221. {
  1222. exception = null;
  1223. obj = default(TIdentyfikatorOsobyNiefizycznej);
  1224. try
  1225. {
  1226. obj = Deserialize(input);
  1227. return true;
  1228. }
  1229. catch (System.Exception ex)
  1230. {
  1231. exception = ex;
  1232. return false;
  1233. }
  1234. }
  1235. public static bool Deserialize(string input, out TIdentyfikatorOsobyNiefizycznej obj)
  1236. {
  1237. System.Exception exception = null;
  1238. return Deserialize(input, out obj, out exception);
  1239. }
  1240. public static TIdentyfikatorOsobyNiefizycznej Deserialize(string input)
  1241. {
  1242. System.IO.StringReader stringReader = null;
  1243. try
  1244. {
  1245. stringReader = new System.IO.StringReader(input);
  1246. return ((TIdentyfikatorOsobyNiefizycznej)(Serializer.Deserialize(XmlReader.Create(stringReader))));
  1247. }
  1248. finally
  1249. {
  1250. if ((stringReader != null))
  1251. {
  1252. stringReader.Dispose();
  1253. }
  1254. }
  1255. }
  1256. public static TIdentyfikatorOsobyNiefizycznej Deserialize(System.IO.Stream s)
  1257. {
  1258. return ((TIdentyfikatorOsobyNiefizycznej)(Serializer.Deserialize(s)));
  1259. }
  1260. #endregion
  1261. /// <summary>
  1262. /// Serializes current TIdentyfikatorOsobyNiefizycznej object into file
  1263. /// </summary>
  1264. /// <param name="fileName">full path of outupt xml file</param>
  1265. /// <param name="exception">output Exception value if failed</param>
  1266. /// <returns>true if can serialize and save into file; otherwise, false</returns>
  1267. public virtual bool SaveToFile(string fileName, out System.Exception exception)
  1268. {
  1269. exception = null;
  1270. try
  1271. {
  1272. SaveToFile(fileName);
  1273. return true;
  1274. }
  1275. catch (System.Exception e)
  1276. {
  1277. exception = e;
  1278. return false;
  1279. }
  1280. }
  1281. public virtual void SaveToFile(string fileName)
  1282. {
  1283. System.IO.StreamWriter streamWriter = null;
  1284. try
  1285. {
  1286. string xmlString = Serialize();
  1287. System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
  1288. streamWriter = xmlFile.CreateText();
  1289. streamWriter.WriteLine(xmlString);
  1290. streamWriter.Close();
  1291. }
  1292. finally
  1293. {
  1294. if ((streamWriter != null))
  1295. {
  1296. streamWriter.Dispose();
  1297. }
  1298. }
  1299. }
  1300. /// <summary>
  1301. /// Deserializes xml markup from file into an TIdentyfikatorOsobyNiefizycznej object
  1302. /// </summary>
  1303. /// <param name="fileName">string xml file to load and deserialize</param>
  1304. /// <param name="obj">Output TIdentyfikatorOsobyNiefizycznej object</param>
  1305. /// <param name="exception">output Exception value if deserialize failed</param>
  1306. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  1307. public static bool LoadFromFile(string fileName, out TIdentyfikatorOsobyNiefizycznej obj, out System.Exception exception)
  1308. {
  1309. exception = null;
  1310. obj = default(TIdentyfikatorOsobyNiefizycznej);
  1311. try
  1312. {
  1313. obj = LoadFromFile(fileName);
  1314. return true;
  1315. }
  1316. catch (System.Exception ex)
  1317. {
  1318. exception = ex;
  1319. return false;
  1320. }
  1321. }
  1322. public static bool LoadFromFile(string fileName, out TIdentyfikatorOsobyNiefizycznej obj)
  1323. {
  1324. System.Exception exception = null;
  1325. return LoadFromFile(fileName, out obj, out exception);
  1326. }
  1327. public static TIdentyfikatorOsobyNiefizycznej LoadFromFile(string fileName)
  1328. {
  1329. System.IO.FileStream file = null;
  1330. System.IO.StreamReader sr = null;
  1331. try
  1332. {
  1333. file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
  1334. sr = new System.IO.StreamReader(file);
  1335. string xmlString = sr.ReadToEnd();
  1336. sr.Close();
  1337. file.Close();
  1338. return Deserialize(xmlString);
  1339. }
  1340. finally
  1341. {
  1342. if ((file != null))
  1343. {
  1344. file.Dispose();
  1345. }
  1346. if ((sr != null))
  1347. {
  1348. sr.Dispose();
  1349. }
  1350. }
  1351. }
  1352. }
  1353. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3761.0")]
  1354. [System.SerializableAttribute()]
  1355. [System.Diagnostics.DebuggerStepThroughAttribute()]
  1356. [System.ComponentModel.DesignerCategoryAttribute("code")]
  1357. [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2020/03/11/eD/DefinicjeTypy/")]
  1358. public partial class TIdentyfikatorOsobyFizycznej2
  1359. {
  1360. #region Private fields
  1361. private bool _shouldSerializeDataUrodzenia;
  1362. private string _nIP;
  1363. private string _imiePierwsze;
  1364. private string _nazwisko;
  1365. private System.DateTime _dataUrodzenia;
  1366. private static XmlSerializer serializer;
  1367. #endregion
  1368. public string NIP
  1369. {
  1370. get
  1371. {
  1372. return this._nIP;
  1373. }
  1374. set
  1375. {
  1376. this._nIP = value;
  1377. }
  1378. }
  1379. [System.Xml.Serialization.XmlElementAttribute(DataType = "token")]
  1380. public string ImiePierwsze
  1381. {
  1382. get
  1383. {
  1384. return this._imiePierwsze;
  1385. }
  1386. set
  1387. {
  1388. this._imiePierwsze = value;
  1389. }
  1390. }
  1391. [System.Xml.Serialization.XmlElementAttribute(DataType = "token")]
  1392. public string Nazwisko
  1393. {
  1394. get
  1395. {
  1396. return this._nazwisko;
  1397. }
  1398. set
  1399. {
  1400. this._nazwisko = value;
  1401. }
  1402. }
  1403. [System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
  1404. public System.DateTime DataUrodzenia
  1405. {
  1406. get
  1407. {
  1408. return this._dataUrodzenia;
  1409. }
  1410. set
  1411. {
  1412. this._dataUrodzenia = value;
  1413. _shouldSerializeDataUrodzenia = true;
  1414. }
  1415. }
  1416. private static XmlSerializer Serializer
  1417. {
  1418. get
  1419. {
  1420. if ((serializer == null))
  1421. {
  1422. serializer = new XmlSerializerFactory().CreateSerializer(typeof(TIdentyfikatorOsobyFizycznej2));
  1423. }
  1424. return serializer;
  1425. }
  1426. }
  1427. /// <summary>
  1428. /// Test whether DataUrodzenia should be serialized
  1429. /// </summary>
  1430. public virtual bool ShouldSerializeDataUrodzenia()
  1431. {
  1432. if (_shouldSerializeDataUrodzenia)
  1433. {
  1434. return true;
  1435. }
  1436. return (_dataUrodzenia != default(System.DateTime));
  1437. }
  1438. /// <summary>
  1439. /// Test whether NIP should be serialized
  1440. /// </summary>
  1441. public virtual bool ShouldSerializeNIP()
  1442. {
  1443. return !string.IsNullOrEmpty(NIP);
  1444. }
  1445. /// <summary>
  1446. /// Test whether ImiePierwsze should be serialized
  1447. /// </summary>
  1448. public virtual bool ShouldSerializeImiePierwsze()
  1449. {
  1450. return !string.IsNullOrEmpty(ImiePierwsze);
  1451. }
  1452. /// <summary>
  1453. /// Test whether Nazwisko should be serialized
  1454. /// </summary>
  1455. public virtual bool ShouldSerializeNazwisko()
  1456. {
  1457. return !string.IsNullOrEmpty(Nazwisko);
  1458. }
  1459. #region Serialize/Deserialize
  1460. /// <summary>
  1461. /// Serializes current TIdentyfikatorOsobyFizycznej2 object into an XML string
  1462. /// </summary>
  1463. /// <returns>string XML value</returns>
  1464. public virtual string Serialize()
  1465. {
  1466. System.IO.StreamReader streamReader = null;
  1467. System.IO.MemoryStream memoryStream = null;
  1468. try
  1469. {
  1470. memoryStream = new System.IO.MemoryStream();
  1471. System.Xml.XmlWriterSettings xmlWriterSettings = new System.Xml.XmlWriterSettings();
  1472. System.Xml.XmlWriter xmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings);
  1473. Serializer.Serialize(xmlWriter, this);
  1474. memoryStream.Seek(0, SeekOrigin.Begin);
  1475. streamReader = new System.IO.StreamReader(memoryStream);
  1476. return streamReader.ReadToEnd();
  1477. }
  1478. finally
  1479. {
  1480. if ((streamReader != null))
  1481. {
  1482. streamReader.Dispose();
  1483. }
  1484. if ((memoryStream != null))
  1485. {
  1486. memoryStream.Dispose();
  1487. }
  1488. }
  1489. }
  1490. /// <summary>
  1491. /// Deserializes workflow markup into an TIdentyfikatorOsobyFizycznej2 object
  1492. /// </summary>
  1493. /// <param name="input">string workflow markup to deserialize</param>
  1494. /// <param name="obj">Output TIdentyfikatorOsobyFizycznej2 object</param>
  1495. /// <param name="exception">output Exception value if deserialize failed</param>
  1496. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  1497. public static bool Deserialize(string input, out TIdentyfikatorOsobyFizycznej2 obj, out System.Exception exception)
  1498. {
  1499. exception = null;
  1500. obj = default(TIdentyfikatorOsobyFizycznej2);
  1501. try
  1502. {
  1503. obj = Deserialize(input);
  1504. return true;
  1505. }
  1506. catch (System.Exception ex)
  1507. {
  1508. exception = ex;
  1509. return false;
  1510. }
  1511. }
  1512. public static bool Deserialize(string input, out TIdentyfikatorOsobyFizycznej2 obj)
  1513. {
  1514. System.Exception exception = null;
  1515. return Deserialize(input, out obj, out exception);
  1516. }
  1517. public static TIdentyfikatorOsobyFizycznej2 Deserialize(string input)
  1518. {
  1519. System.IO.StringReader stringReader = null;
  1520. try
  1521. {
  1522. stringReader = new System.IO.StringReader(input);
  1523. return ((TIdentyfikatorOsobyFizycznej2)(Serializer.Deserialize(XmlReader.Create(stringReader))));
  1524. }
  1525. finally
  1526. {
  1527. if ((stringReader != null))
  1528. {
  1529. stringReader.Dispose();
  1530. }
  1531. }
  1532. }
  1533. public static TIdentyfikatorOsobyFizycznej2 Deserialize(System.IO.Stream s)
  1534. {
  1535. return ((TIdentyfikatorOsobyFizycznej2)(Serializer.Deserialize(s)));
  1536. }
  1537. #endregion
  1538. /// <summary>
  1539. /// Serializes current TIdentyfikatorOsobyFizycznej2 object into file
  1540. /// </summary>
  1541. /// <param name="fileName">full path of outupt xml file</param>
  1542. /// <param name="exception">output Exception value if failed</param>
  1543. /// <returns>true if can serialize and save into file; otherwise, false</returns>
  1544. public virtual bool SaveToFile(string fileName, out System.Exception exception)
  1545. {
  1546. exception = null;
  1547. try
  1548. {
  1549. SaveToFile(fileName);
  1550. return true;
  1551. }
  1552. catch (System.Exception e)
  1553. {
  1554. exception = e;
  1555. return false;
  1556. }
  1557. }
  1558. public virtual void SaveToFile(string fileName)
  1559. {
  1560. System.IO.StreamWriter streamWriter = null;
  1561. try
  1562. {
  1563. string xmlString = Serialize();
  1564. System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
  1565. streamWriter = xmlFile.CreateText();
  1566. streamWriter.WriteLine(xmlString);
  1567. streamWriter.Close();
  1568. }
  1569. finally
  1570. {
  1571. if ((streamWriter != null))
  1572. {
  1573. streamWriter.Dispose();
  1574. }
  1575. }
  1576. }
  1577. /// <summary>
  1578. /// Deserializes xml markup from file into an TIdentyfikatorOsobyFizycznej2 object
  1579. /// </summary>
  1580. /// <param name="fileName">string xml file to load and deserialize</param>
  1581. /// <param name="obj">Output TIdentyfikatorOsobyFizycznej2 object</param>
  1582. /// <param name="exception">output Exception value if deserialize failed</param>
  1583. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  1584. public static bool LoadFromFile(string fileName, out TIdentyfikatorOsobyFizycznej2 obj, out System.Exception exception)
  1585. {
  1586. exception = null;
  1587. obj = default(TIdentyfikatorOsobyFizycznej2);
  1588. try
  1589. {
  1590. obj = LoadFromFile(fileName);
  1591. return true;
  1592. }
  1593. catch (System.Exception ex)
  1594. {
  1595. exception = ex;
  1596. return false;
  1597. }
  1598. }
  1599. public static bool LoadFromFile(string fileName, out TIdentyfikatorOsobyFizycznej2 obj)
  1600. {
  1601. System.Exception exception = null;
  1602. return LoadFromFile(fileName, out obj, out exception);
  1603. }
  1604. public static TIdentyfikatorOsobyFizycznej2 LoadFromFile(string fileName)
  1605. {
  1606. System.IO.FileStream file = null;
  1607. System.IO.StreamReader sr = null;
  1608. try
  1609. {
  1610. file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
  1611. sr = new System.IO.StreamReader(file);
  1612. string xmlString = sr.ReadToEnd();
  1613. sr.Close();
  1614. file.Close();
  1615. return Deserialize(xmlString);
  1616. }
  1617. finally
  1618. {
  1619. if ((file != null))
  1620. {
  1621. file.Dispose();
  1622. }
  1623. if ((sr != null))
  1624. {
  1625. sr.Dispose();
  1626. }
  1627. }
  1628. }
  1629. }
  1630. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3761.0")]
  1631. [System.SerializableAttribute()]
  1632. [System.Diagnostics.DebuggerStepThroughAttribute()]
  1633. [System.ComponentModel.DesignerCategoryAttribute("code")]
  1634. [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://crd.gov.pl/wzor/2020/05/08/9393/")]
  1635. public partial class TPodmiotDowolnyBezAdresu
  1636. {
  1637. #region Private fields
  1638. private bool _shouldSerializeItem;
  1639. private object _item;
  1640. private static XmlSerializer serializer;
  1641. #endregion
  1642. [System.Xml.Serialization.XmlElementAttribute("OsobaFizyczna", typeof(TPodmiotDowolnyBezAdresuOsobaFizyczna))]
  1643. [System.Xml.Serialization.XmlElementAttribute("OsobaNiefizyczna", typeof(TPodmiotDowolnyBezAdresuOsobaNiefizyczna))]
  1644. public object Item
  1645. {
  1646. get
  1647. {
  1648. return this._item;
  1649. }
  1650. set
  1651. {
  1652. this._item = value;
  1653. _shouldSerializeItem = true;
  1654. }
  1655. }
  1656. private static XmlSerializer Serializer
  1657. {
  1658. get
  1659. {
  1660. if ((serializer == null))
  1661. {
  1662. serializer = new XmlSerializerFactory().CreateSerializer(typeof(TPodmiotDowolnyBezAdresu));
  1663. }
  1664. return serializer;
  1665. }
  1666. }
  1667. /// <summary>
  1668. /// Test whether Item should be serialized
  1669. /// </summary>
  1670. public virtual bool ShouldSerializeItem()
  1671. {
  1672. if (_shouldSerializeItem)
  1673. {
  1674. return true;
  1675. }
  1676. return (_item != default(object));
  1677. }
  1678. #region Serialize/Deserialize
  1679. /// <summary>
  1680. /// Serializes current TPodmiotDowolnyBezAdresu object into an XML string
  1681. /// </summary>
  1682. /// <returns>string XML value</returns>
  1683. public virtual string Serialize()
  1684. {
  1685. System.IO.StreamReader streamReader = null;
  1686. System.IO.MemoryStream memoryStream = null;
  1687. try
  1688. {
  1689. memoryStream = new System.IO.MemoryStream();
  1690. System.Xml.XmlWriterSettings xmlWriterSettings = new System.Xml.XmlWriterSettings();
  1691. System.Xml.XmlWriter xmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings);
  1692. Serializer.Serialize(xmlWriter, this);
  1693. memoryStream.Seek(0, SeekOrigin.Begin);
  1694. streamReader = new System.IO.StreamReader(memoryStream);
  1695. return streamReader.ReadToEnd();
  1696. }
  1697. finally
  1698. {
  1699. if ((streamReader != null))
  1700. {
  1701. streamReader.Dispose();
  1702. }
  1703. if ((memoryStream != null))
  1704. {
  1705. memoryStream.Dispose();
  1706. }
  1707. }
  1708. }
  1709. /// <summary>
  1710. /// Deserializes workflow markup into an TPodmiotDowolnyBezAdresu object
  1711. /// </summary>
  1712. /// <param name="input">string workflow markup to deserialize</param>
  1713. /// <param name="obj">Output TPodmiotDowolnyBezAdresu object</param>
  1714. /// <param name="exception">output Exception value if deserialize failed</param>
  1715. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  1716. public static bool Deserialize(string input, out TPodmiotDowolnyBezAdresu obj, out System.Exception exception)
  1717. {
  1718. exception = null;
  1719. obj = default(TPodmiotDowolnyBezAdresu);
  1720. try
  1721. {
  1722. obj = Deserialize(input);
  1723. return true;
  1724. }
  1725. catch (System.Exception ex)
  1726. {
  1727. exception = ex;
  1728. return false;
  1729. }
  1730. }
  1731. public static bool Deserialize(string input, out TPodmiotDowolnyBezAdresu obj)
  1732. {
  1733. System.Exception exception = null;
  1734. return Deserialize(input, out obj, out exception);
  1735. }
  1736. public static TPodmiotDowolnyBezAdresu Deserialize(string input)
  1737. {
  1738. System.IO.StringReader stringReader = null;
  1739. try
  1740. {
  1741. stringReader = new System.IO.StringReader(input);
  1742. return ((TPodmiotDowolnyBezAdresu)(Serializer.Deserialize(XmlReader.Create(stringReader))));
  1743. }
  1744. finally
  1745. {
  1746. if ((stringReader != null))
  1747. {
  1748. stringReader.Dispose();
  1749. }
  1750. }
  1751. }
  1752. public static TPodmiotDowolnyBezAdresu Deserialize(System.IO.Stream s)
  1753. {
  1754. return ((TPodmiotDowolnyBezAdresu)(Serializer.Deserialize(s)));
  1755. }
  1756. #endregion
  1757. /// <summary>
  1758. /// Serializes current TPodmiotDowolnyBezAdresu object into file
  1759. /// </summary>
  1760. /// <param name="fileName">full path of outupt xml file</param>
  1761. /// <param name="exception">output Exception value if failed</param>
  1762. /// <returns>true if can serialize and save into file; otherwise, false</returns>
  1763. public virtual bool SaveToFile(string fileName, out System.Exception exception)
  1764. {
  1765. exception = null;
  1766. try
  1767. {
  1768. SaveToFile(fileName);
  1769. return true;
  1770. }
  1771. catch (System.Exception e)
  1772. {
  1773. exception = e;
  1774. return false;
  1775. }
  1776. }
  1777. public virtual void SaveToFile(string fileName)
  1778. {
  1779. System.IO.StreamWriter streamWriter = null;
  1780. try
  1781. {
  1782. string xmlString = Serialize();
  1783. System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
  1784. streamWriter = xmlFile.CreateText();
  1785. streamWriter.WriteLine(xmlString);
  1786. streamWriter.Close();
  1787. }
  1788. finally
  1789. {
  1790. if ((streamWriter != null))
  1791. {
  1792. streamWriter.Dispose();
  1793. }
  1794. }
  1795. }
  1796. /// <summary>
  1797. /// Deserializes xml markup from file into an TPodmiotDowolnyBezAdresu object
  1798. /// </summary>
  1799. /// <param name="fileName">string xml file to load and deserialize</param>
  1800. /// <param name="obj">Output TPodmiotDowolnyBezAdresu object</param>
  1801. /// <param name="exception">output Exception value if deserialize failed</param>
  1802. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  1803. public static bool LoadFromFile(string fileName, out TPodmiotDowolnyBezAdresu obj, out System.Exception exception)
  1804. {
  1805. exception = null;
  1806. obj = default(TPodmiotDowolnyBezAdresu);
  1807. try
  1808. {
  1809. obj = LoadFromFile(fileName);
  1810. return true;
  1811. }
  1812. catch (System.Exception ex)
  1813. {
  1814. exception = ex;
  1815. return false;
  1816. }
  1817. }
  1818. public static bool LoadFromFile(string fileName, out TPodmiotDowolnyBezAdresu obj)
  1819. {
  1820. System.Exception exception = null;
  1821. return LoadFromFile(fileName, out obj, out exception);
  1822. }
  1823. public static TPodmiotDowolnyBezAdresu LoadFromFile(string fileName)
  1824. {
  1825. System.IO.FileStream file = null;
  1826. System.IO.StreamReader sr = null;
  1827. try
  1828. {
  1829. file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
  1830. sr = new System.IO.StreamReader(file);
  1831. string xmlString = sr.ReadToEnd();
  1832. sr.Close();
  1833. file.Close();
  1834. return Deserialize(xmlString);
  1835. }
  1836. finally
  1837. {
  1838. if ((file != null))
  1839. {
  1840. file.Dispose();
  1841. }
  1842. if ((sr != null))
  1843. {
  1844. sr.Dispose();
  1845. }
  1846. }
  1847. }
  1848. }
  1849. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3761.0")]
  1850. [System.SerializableAttribute()]
  1851. [System.Diagnostics.DebuggerStepThroughAttribute()]
  1852. [System.ComponentModel.DesignerCategoryAttribute("code")]
  1853. [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://crd.gov.pl/wzor/2020/05/08/9393/")]
  1854. public partial class TPodmiotDowolnyBezAdresuOsobaFizyczna : TIdentyfikatorOsobyFizycznej2
  1855. {
  1856. #region Private fields
  1857. private string _email;
  1858. private string _telefon;
  1859. private static XmlSerializer serializer;
  1860. #endregion
  1861. [System.Xml.Serialization.XmlElementAttribute(DataType = "token")]
  1862. public string Email
  1863. {
  1864. get
  1865. {
  1866. return this._email;
  1867. }
  1868. set
  1869. {
  1870. this._email = value;
  1871. }
  1872. }
  1873. [System.Xml.Serialization.XmlElementAttribute(DataType = "token")]
  1874. public string Telefon
  1875. {
  1876. get
  1877. {
  1878. return this._telefon;
  1879. }
  1880. set
  1881. {
  1882. this._telefon = value;
  1883. }
  1884. }
  1885. private static XmlSerializer Serializer
  1886. {
  1887. get
  1888. {
  1889. if ((serializer == null))
  1890. {
  1891. serializer = new XmlSerializerFactory().CreateSerializer(typeof(TPodmiotDowolnyBezAdresuOsobaFizyczna));
  1892. }
  1893. return serializer;
  1894. }
  1895. }
  1896. /// <summary>
  1897. /// Test whether Email should be serialized
  1898. /// </summary>
  1899. public virtual bool ShouldSerializeEmail()
  1900. {
  1901. return !string.IsNullOrEmpty(Email);
  1902. }
  1903. /// <summary>
  1904. /// Test whether Telefon should be serialized
  1905. /// </summary>
  1906. public virtual bool ShouldSerializeTelefon()
  1907. {
  1908. return !string.IsNullOrEmpty(Telefon);
  1909. }
  1910. #region Serialize/Deserialize
  1911. /// <summary>
  1912. /// Serializes current TPodmiotDowolnyBezAdresuOsobaFizyczna object into an XML string
  1913. /// </summary>
  1914. /// <returns>string XML value</returns>
  1915. public virtual string Serialize()
  1916. {
  1917. System.IO.StreamReader streamReader = null;
  1918. System.IO.MemoryStream memoryStream = null;
  1919. try
  1920. {
  1921. memoryStream = new System.IO.MemoryStream();
  1922. System.Xml.XmlWriterSettings xmlWriterSettings = new System.Xml.XmlWriterSettings();
  1923. System.Xml.XmlWriter xmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings);
  1924. Serializer.Serialize(xmlWriter, this);
  1925. memoryStream.Seek(0, SeekOrigin.Begin);
  1926. streamReader = new System.IO.StreamReader(memoryStream);
  1927. return streamReader.ReadToEnd();
  1928. }
  1929. finally
  1930. {
  1931. if ((streamReader != null))
  1932. {
  1933. streamReader.Dispose();
  1934. }
  1935. if ((memoryStream != null))
  1936. {
  1937. memoryStream.Dispose();
  1938. }
  1939. }
  1940. }
  1941. /// <summary>
  1942. /// Deserializes workflow markup into an TPodmiotDowolnyBezAdresuOsobaFizyczna object
  1943. /// </summary>
  1944. /// <param name="input">string workflow markup to deserialize</param>
  1945. /// <param name="obj">Output TPodmiotDowolnyBezAdresuOsobaFizyczna object</param>
  1946. /// <param name="exception">output Exception value if deserialize failed</param>
  1947. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  1948. public static bool Deserialize(string input, out TPodmiotDowolnyBezAdresuOsobaFizyczna obj, out System.Exception exception)
  1949. {
  1950. exception = null;
  1951. obj = default(TPodmiotDowolnyBezAdresuOsobaFizyczna);
  1952. try
  1953. {
  1954. obj = Deserialize(input);
  1955. return true;
  1956. }
  1957. catch (System.Exception ex)
  1958. {
  1959. exception = ex;
  1960. return false;
  1961. }
  1962. }
  1963. public static bool Deserialize(string input, out TPodmiotDowolnyBezAdresuOsobaFizyczna obj)
  1964. {
  1965. System.Exception exception = null;
  1966. return Deserialize(input, out obj, out exception);
  1967. }
  1968. public new static TPodmiotDowolnyBezAdresuOsobaFizyczna Deserialize(string input)
  1969. {
  1970. System.IO.StringReader stringReader = null;
  1971. try
  1972. {
  1973. stringReader = new System.IO.StringReader(input);
  1974. return ((TPodmiotDowolnyBezAdresuOsobaFizyczna)(Serializer.Deserialize(XmlReader.Create(stringReader))));
  1975. }
  1976. finally
  1977. {
  1978. if ((stringReader != null))
  1979. {
  1980. stringReader.Dispose();
  1981. }
  1982. }
  1983. }
  1984. public static TPodmiotDowolnyBezAdresuOsobaFizyczna Deserialize(System.IO.Stream s)
  1985. {
  1986. return ((TPodmiotDowolnyBezAdresuOsobaFizyczna)(Serializer.Deserialize(s)));
  1987. }
  1988. #endregion
  1989. /// <summary>
  1990. /// Serializes current TPodmiotDowolnyBezAdresuOsobaFizyczna object into file
  1991. /// </summary>
  1992. /// <param name="fileName">full path of outupt xml file</param>
  1993. /// <param name="exception">output Exception value if failed</param>
  1994. /// <returns>true if can serialize and save into file; otherwise, false</returns>
  1995. public virtual bool SaveToFile(string fileName, out System.Exception exception)
  1996. {
  1997. exception = null;
  1998. try
  1999. {
  2000. SaveToFile(fileName);
  2001. return true;
  2002. }
  2003. catch (System.Exception e)
  2004. {
  2005. exception = e;
  2006. return false;
  2007. }
  2008. }
  2009. public virtual void SaveToFile(string fileName)
  2010. {
  2011. System.IO.StreamWriter streamWriter = null;
  2012. try
  2013. {
  2014. string xmlString = Serialize();
  2015. System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
  2016. streamWriter = xmlFile.CreateText();
  2017. streamWriter.WriteLine(xmlString);
  2018. streamWriter.Close();
  2019. }
  2020. finally
  2021. {
  2022. if ((streamWriter != null))
  2023. {
  2024. streamWriter.Dispose();
  2025. }
  2026. }
  2027. }
  2028. /// <summary>
  2029. /// Deserializes xml markup from file into an TPodmiotDowolnyBezAdresuOsobaFizyczna object
  2030. /// </summary>
  2031. /// <param name="fileName">string xml file to load and deserialize</param>
  2032. /// <param name="obj">Output TPodmiotDowolnyBezAdresuOsobaFizyczna object</param>
  2033. /// <param name="exception">output Exception value if deserialize failed</param>
  2034. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  2035. public static bool LoadFromFile(string fileName, out TPodmiotDowolnyBezAdresuOsobaFizyczna obj, out System.Exception exception)
  2036. {
  2037. exception = null;
  2038. obj = default(TPodmiotDowolnyBezAdresuOsobaFizyczna);
  2039. try
  2040. {
  2041. obj = LoadFromFile(fileName);
  2042. return true;
  2043. }
  2044. catch (System.Exception ex)
  2045. {
  2046. exception = ex;
  2047. return false;
  2048. }
  2049. }
  2050. public static bool LoadFromFile(string fileName, out TPodmiotDowolnyBezAdresuOsobaFizyczna obj)
  2051. {
  2052. System.Exception exception = null;
  2053. return LoadFromFile(fileName, out obj, out exception);
  2054. }
  2055. public new static TPodmiotDowolnyBezAdresuOsobaFizyczna LoadFromFile(string fileName)
  2056. {
  2057. System.IO.FileStream file = null;
  2058. System.IO.StreamReader sr = null;
  2059. try
  2060. {
  2061. file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
  2062. sr = new System.IO.StreamReader(file);
  2063. string xmlString = sr.ReadToEnd();
  2064. sr.Close();
  2065. file.Close();
  2066. return Deserialize(xmlString);
  2067. }
  2068. finally
  2069. {
  2070. if ((file != null))
  2071. {
  2072. file.Dispose();
  2073. }
  2074. if ((sr != null))
  2075. {
  2076. sr.Dispose();
  2077. }
  2078. }
  2079. }
  2080. }
  2081. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3761.0")]
  2082. [System.SerializableAttribute()]
  2083. [System.Diagnostics.DebuggerStepThroughAttribute()]
  2084. [System.ComponentModel.DesignerCategoryAttribute("code")]
  2085. [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://crd.gov.pl/wzor/2020/05/08/9393/")]
  2086. public partial class TPodmiotDowolnyBezAdresuOsobaNiefizyczna : TIdentyfikatorOsobyNiefizycznej
  2087. {
  2088. #region Private fields
  2089. private string _email;
  2090. private string _telefon;
  2091. private static XmlSerializer serializer;
  2092. #endregion
  2093. [System.Xml.Serialization.XmlElementAttribute(DataType = "token")]
  2094. public string Email
  2095. {
  2096. get
  2097. {
  2098. return this._email;
  2099. }
  2100. set
  2101. {
  2102. this._email = value;
  2103. }
  2104. }
  2105. [System.Xml.Serialization.XmlElementAttribute(DataType = "token")]
  2106. public string Telefon
  2107. {
  2108. get
  2109. {
  2110. return this._telefon;
  2111. }
  2112. set
  2113. {
  2114. this._telefon = value;
  2115. }
  2116. }
  2117. private static XmlSerializer Serializer
  2118. {
  2119. get
  2120. {
  2121. if ((serializer == null))
  2122. {
  2123. serializer = new XmlSerializerFactory().CreateSerializer(typeof(TPodmiotDowolnyBezAdresuOsobaNiefizyczna));
  2124. }
  2125. return serializer;
  2126. }
  2127. }
  2128. /// <summary>
  2129. /// Test whether Email should be serialized
  2130. /// </summary>
  2131. public virtual bool ShouldSerializeEmail()
  2132. {
  2133. return !string.IsNullOrEmpty(Email);
  2134. }
  2135. /// <summary>
  2136. /// Test whether Telefon should be serialized
  2137. /// </summary>
  2138. public virtual bool ShouldSerializeTelefon()
  2139. {
  2140. return !string.IsNullOrEmpty(Telefon);
  2141. }
  2142. #region Serialize/Deserialize
  2143. /// <summary>
  2144. /// Serializes current TPodmiotDowolnyBezAdresuOsobaNiefizyczna object into an XML string
  2145. /// </summary>
  2146. /// <returns>string XML value</returns>
  2147. public virtual string Serialize()
  2148. {
  2149. System.IO.StreamReader streamReader = null;
  2150. System.IO.MemoryStream memoryStream = null;
  2151. try
  2152. {
  2153. memoryStream = new System.IO.MemoryStream();
  2154. System.Xml.XmlWriterSettings xmlWriterSettings = new System.Xml.XmlWriterSettings();
  2155. System.Xml.XmlWriter xmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings);
  2156. Serializer.Serialize(xmlWriter, this);
  2157. memoryStream.Seek(0, SeekOrigin.Begin);
  2158. streamReader = new System.IO.StreamReader(memoryStream);
  2159. return streamReader.ReadToEnd();
  2160. }
  2161. finally
  2162. {
  2163. if ((streamReader != null))
  2164. {
  2165. streamReader.Dispose();
  2166. }
  2167. if ((memoryStream != null))
  2168. {
  2169. memoryStream.Dispose();
  2170. }
  2171. }
  2172. }
  2173. /// <summary>
  2174. /// Deserializes workflow markup into an TPodmiotDowolnyBezAdresuOsobaNiefizyczna object
  2175. /// </summary>
  2176. /// <param name="input">string workflow markup to deserialize</param>
  2177. /// <param name="obj">Output TPodmiotDowolnyBezAdresuOsobaNiefizyczna object</param>
  2178. /// <param name="exception">output Exception value if deserialize failed</param>
  2179. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  2180. public static bool Deserialize(string input, out TPodmiotDowolnyBezAdresuOsobaNiefizyczna obj, out System.Exception exception)
  2181. {
  2182. exception = null;
  2183. obj = default(TPodmiotDowolnyBezAdresuOsobaNiefizyczna);
  2184. try
  2185. {
  2186. obj = Deserialize(input);
  2187. return true;
  2188. }
  2189. catch (System.Exception ex)
  2190. {
  2191. exception = ex;
  2192. return false;
  2193. }
  2194. }
  2195. public static bool Deserialize(string input, out TPodmiotDowolnyBezAdresuOsobaNiefizyczna obj)
  2196. {
  2197. System.Exception exception = null;
  2198. return Deserialize(input, out obj, out exception);
  2199. }
  2200. public new static TPodmiotDowolnyBezAdresuOsobaNiefizyczna Deserialize(string input)
  2201. {
  2202. System.IO.StringReader stringReader = null;
  2203. try
  2204. {
  2205. stringReader = new System.IO.StringReader(input);
  2206. return ((TPodmiotDowolnyBezAdresuOsobaNiefizyczna)(Serializer.Deserialize(XmlReader.Create(stringReader))));
  2207. }
  2208. finally
  2209. {
  2210. if ((stringReader != null))
  2211. {
  2212. stringReader.Dispose();
  2213. }
  2214. }
  2215. }
  2216. public static TPodmiotDowolnyBezAdresuOsobaNiefizyczna Deserialize(System.IO.Stream s)
  2217. {
  2218. return ((TPodmiotDowolnyBezAdresuOsobaNiefizyczna)(Serializer.Deserialize(s)));
  2219. }
  2220. #endregion
  2221. /// <summary>
  2222. /// Serializes current TPodmiotDowolnyBezAdresuOsobaNiefizyczna object into file
  2223. /// </summary>
  2224. /// <param name="fileName">full path of outupt xml file</param>
  2225. /// <param name="exception">output Exception value if failed</param>
  2226. /// <returns>true if can serialize and save into file; otherwise, false</returns>
  2227. public virtual bool SaveToFile(string fileName, out System.Exception exception)
  2228. {
  2229. exception = null;
  2230. try
  2231. {
  2232. SaveToFile(fileName);
  2233. return true;
  2234. }
  2235. catch (System.Exception e)
  2236. {
  2237. exception = e;
  2238. return false;
  2239. }
  2240. }
  2241. public virtual void SaveToFile(string fileName)
  2242. {
  2243. System.IO.StreamWriter streamWriter = null;
  2244. try
  2245. {
  2246. string xmlString = Serialize();
  2247. System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
  2248. streamWriter = xmlFile.CreateText();
  2249. streamWriter.WriteLine(xmlString);
  2250. streamWriter.Close();
  2251. }
  2252. finally
  2253. {
  2254. if ((streamWriter != null))
  2255. {
  2256. streamWriter.Dispose();
  2257. }
  2258. }
  2259. }
  2260. /// <summary>
  2261. /// Deserializes xml markup from file into an TPodmiotDowolnyBezAdresuOsobaNiefizyczna object
  2262. /// </summary>
  2263. /// <param name="fileName">string xml file to load and deserialize</param>
  2264. /// <param name="obj">Output TPodmiotDowolnyBezAdresuOsobaNiefizyczna object</param>
  2265. /// <param name="exception">output Exception value if deserialize failed</param>
  2266. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  2267. public static bool LoadFromFile(string fileName, out TPodmiotDowolnyBezAdresuOsobaNiefizyczna obj, out System.Exception exception)
  2268. {
  2269. exception = null;
  2270. obj = default(TPodmiotDowolnyBezAdresuOsobaNiefizyczna);
  2271. try
  2272. {
  2273. obj = LoadFromFile(fileName);
  2274. return true;
  2275. }
  2276. catch (System.Exception ex)
  2277. {
  2278. exception = ex;
  2279. return false;
  2280. }
  2281. }
  2282. public static bool LoadFromFile(string fileName, out TPodmiotDowolnyBezAdresuOsobaNiefizyczna obj)
  2283. {
  2284. System.Exception exception = null;
  2285. return LoadFromFile(fileName, out obj, out exception);
  2286. }
  2287. public new static TPodmiotDowolnyBezAdresuOsobaNiefizyczna LoadFromFile(string fileName)
  2288. {
  2289. System.IO.FileStream file = null;
  2290. System.IO.StreamReader sr = null;
  2291. try
  2292. {
  2293. file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
  2294. sr = new System.IO.StreamReader(file);
  2295. string xmlString = sr.ReadToEnd();
  2296. sr.Close();
  2297. file.Close();
  2298. return Deserialize(xmlString);
  2299. }
  2300. finally
  2301. {
  2302. if ((file != null))
  2303. {
  2304. file.Dispose();
  2305. }
  2306. if ((sr != null))
  2307. {
  2308. sr.Dispose();
  2309. }
  2310. }
  2311. }
  2312. }
  2313. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3761.0")]
  2314. [System.SerializableAttribute()]
  2315. [System.Diagnostics.DebuggerStepThroughAttribute()]
  2316. [System.ComponentModel.DesignerCategoryAttribute("code")]
  2317. [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://crd.gov.pl/wzor/2020/05/08/9393/")]
  2318. public partial class TNaglowekCelZlozenia
  2319. {
  2320. #region Private fields
  2321. private bool _shouldSerializeValue;
  2322. private string _poz;
  2323. private sbyte _value;
  2324. private static XmlSerializer serializer;
  2325. #endregion
  2326. public TNaglowekCelZlozenia()
  2327. {
  2328. this._poz = "P_7";
  2329. }
  2330. [System.Xml.Serialization.XmlAttributeAttribute()]
  2331. public string poz
  2332. {
  2333. get
  2334. {
  2335. return this._poz;
  2336. }
  2337. set
  2338. {
  2339. this._poz = value;
  2340. }
  2341. }
  2342. [System.Xml.Serialization.XmlTextAttribute()]
  2343. public sbyte Value
  2344. {
  2345. get
  2346. {
  2347. return this._value;
  2348. }
  2349. set
  2350. {
  2351. this._value = value;
  2352. _shouldSerializeValue = true;
  2353. }
  2354. }
  2355. private static XmlSerializer Serializer
  2356. {
  2357. get
  2358. {
  2359. if ((serializer == null))
  2360. {
  2361. serializer = new XmlSerializerFactory().CreateSerializer(typeof(TNaglowekCelZlozenia));
  2362. }
  2363. return serializer;
  2364. }
  2365. }
  2366. /// <summary>
  2367. /// Test whether Value should be serialized
  2368. /// </summary>
  2369. public virtual bool ShouldSerializeValue()
  2370. {
  2371. if (_shouldSerializeValue)
  2372. {
  2373. return true;
  2374. }
  2375. return (_value != default(sbyte));
  2376. }
  2377. /// <summary>
  2378. /// Test whether poz should be serialized
  2379. /// </summary>
  2380. public virtual bool ShouldSerializepoz()
  2381. {
  2382. return !string.IsNullOrEmpty(poz);
  2383. }
  2384. #region Serialize/Deserialize
  2385. /// <summary>
  2386. /// Serializes current TNaglowekCelZlozenia object into an XML string
  2387. /// </summary>
  2388. /// <returns>string XML value</returns>
  2389. public virtual string Serialize()
  2390. {
  2391. System.IO.StreamReader streamReader = null;
  2392. System.IO.MemoryStream memoryStream = null;
  2393. try
  2394. {
  2395. memoryStream = new System.IO.MemoryStream();
  2396. System.Xml.XmlWriterSettings xmlWriterSettings = new System.Xml.XmlWriterSettings();
  2397. System.Xml.XmlWriter xmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings);
  2398. Serializer.Serialize(xmlWriter, this);
  2399. memoryStream.Seek(0, SeekOrigin.Begin);
  2400. streamReader = new System.IO.StreamReader(memoryStream);
  2401. return streamReader.ReadToEnd();
  2402. }
  2403. finally
  2404. {
  2405. if ((streamReader != null))
  2406. {
  2407. streamReader.Dispose();
  2408. }
  2409. if ((memoryStream != null))
  2410. {
  2411. memoryStream.Dispose();
  2412. }
  2413. }
  2414. }
  2415. /// <summary>
  2416. /// Deserializes workflow markup into an TNaglowekCelZlozenia object
  2417. /// </summary>
  2418. /// <param name="input">string workflow markup to deserialize</param>
  2419. /// <param name="obj">Output TNaglowekCelZlozenia object</param>
  2420. /// <param name="exception">output Exception value if deserialize failed</param>
  2421. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  2422. public static bool Deserialize(string input, out TNaglowekCelZlozenia obj, out System.Exception exception)
  2423. {
  2424. exception = null;
  2425. obj = default(TNaglowekCelZlozenia);
  2426. try
  2427. {
  2428. obj = Deserialize(input);
  2429. return true;
  2430. }
  2431. catch (System.Exception ex)
  2432. {
  2433. exception = ex;
  2434. return false;
  2435. }
  2436. }
  2437. public static bool Deserialize(string input, out TNaglowekCelZlozenia obj)
  2438. {
  2439. System.Exception exception = null;
  2440. return Deserialize(input, out obj, out exception);
  2441. }
  2442. public static TNaglowekCelZlozenia Deserialize(string input)
  2443. {
  2444. System.IO.StringReader stringReader = null;
  2445. try
  2446. {
  2447. stringReader = new System.IO.StringReader(input);
  2448. return ((TNaglowekCelZlozenia)(Serializer.Deserialize(XmlReader.Create(stringReader))));
  2449. }
  2450. finally
  2451. {
  2452. if ((stringReader != null))
  2453. {
  2454. stringReader.Dispose();
  2455. }
  2456. }
  2457. }
  2458. public static TNaglowekCelZlozenia Deserialize(System.IO.Stream s)
  2459. {
  2460. return ((TNaglowekCelZlozenia)(Serializer.Deserialize(s)));
  2461. }
  2462. #endregion
  2463. /// <summary>
  2464. /// Serializes current TNaglowekCelZlozenia object into file
  2465. /// </summary>
  2466. /// <param name="fileName">full path of outupt xml file</param>
  2467. /// <param name="exception">output Exception value if failed</param>
  2468. /// <returns>true if can serialize and save into file; otherwise, false</returns>
  2469. public virtual bool SaveToFile(string fileName, out System.Exception exception)
  2470. {
  2471. exception = null;
  2472. try
  2473. {
  2474. SaveToFile(fileName);
  2475. return true;
  2476. }
  2477. catch (System.Exception e)
  2478. {
  2479. exception = e;
  2480. return false;
  2481. }
  2482. }
  2483. public virtual void SaveToFile(string fileName)
  2484. {
  2485. System.IO.StreamWriter streamWriter = null;
  2486. try
  2487. {
  2488. string xmlString = Serialize();
  2489. System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
  2490. streamWriter = xmlFile.CreateText();
  2491. streamWriter.WriteLine(xmlString);
  2492. streamWriter.Close();
  2493. }
  2494. finally
  2495. {
  2496. if ((streamWriter != null))
  2497. {
  2498. streamWriter.Dispose();
  2499. }
  2500. }
  2501. }
  2502. /// <summary>
  2503. /// Deserializes xml markup from file into an TNaglowekCelZlozenia object
  2504. /// </summary>
  2505. /// <param name="fileName">string xml file to load and deserialize</param>
  2506. /// <param name="obj">Output TNaglowekCelZlozenia object</param>
  2507. /// <param name="exception">output Exception value if deserialize failed</param>
  2508. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  2509. public static bool LoadFromFile(string fileName, out TNaglowekCelZlozenia obj, out System.Exception exception)
  2510. {
  2511. exception = null;
  2512. obj = default(TNaglowekCelZlozenia);
  2513. try
  2514. {
  2515. obj = LoadFromFile(fileName);
  2516. return true;
  2517. }
  2518. catch (System.Exception ex)
  2519. {
  2520. exception = ex;
  2521. return false;
  2522. }
  2523. }
  2524. public static bool LoadFromFile(string fileName, out TNaglowekCelZlozenia obj)
  2525. {
  2526. System.Exception exception = null;
  2527. return LoadFromFile(fileName, out obj, out exception);
  2528. }
  2529. public static TNaglowekCelZlozenia LoadFromFile(string fileName)
  2530. {
  2531. System.IO.FileStream file = null;
  2532. System.IO.StreamReader sr = null;
  2533. try
  2534. {
  2535. file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
  2536. sr = new System.IO.StreamReader(file);
  2537. string xmlString = sr.ReadToEnd();
  2538. sr.Close();
  2539. file.Close();
  2540. return Deserialize(xmlString);
  2541. }
  2542. finally
  2543. {
  2544. if ((file != null))
  2545. {
  2546. file.Dispose();
  2547. }
  2548. if ((sr != null))
  2549. {
  2550. sr.Dispose();
  2551. }
  2552. }
  2553. }
  2554. }
  2555. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3761.0")]
  2556. [System.SerializableAttribute()]
  2557. [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://crd.gov.pl/xml/schematy/dziedzinowe/mf/2020/03/11/eD/DefinicjeTypy/")]
  2558. public enum TKodUS
  2559. {
  2560. /// <remarks/>
  2561. [System.Xml.Serialization.XmlEnumAttribute("0202")]
  2562. Item0202,
  2563. /// <remarks/>
  2564. [System.Xml.Serialization.XmlEnumAttribute("0203")]
  2565. Item0203,
  2566. /// <remarks/>
  2567. [System.Xml.Serialization.XmlEnumAttribute("0204")]
  2568. Item0204,
  2569. /// <remarks/>
  2570. [System.Xml.Serialization.XmlEnumAttribute("0205")]
  2571. Item0205,
  2572. /// <remarks/>
  2573. [System.Xml.Serialization.XmlEnumAttribute("0206")]
  2574. Item0206,
  2575. /// <remarks/>
  2576. [System.Xml.Serialization.XmlEnumAttribute("0207")]
  2577. Item0207,
  2578. /// <remarks/>
  2579. [System.Xml.Serialization.XmlEnumAttribute("0208")]
  2580. Item0208,
  2581. /// <remarks/>
  2582. [System.Xml.Serialization.XmlEnumAttribute("0209")]
  2583. Item0209,
  2584. /// <remarks/>
  2585. [System.Xml.Serialization.XmlEnumAttribute("0210")]
  2586. Item0210,
  2587. /// <remarks/>
  2588. [System.Xml.Serialization.XmlEnumAttribute("0211")]
  2589. Item0211,
  2590. /// <remarks/>
  2591. [System.Xml.Serialization.XmlEnumAttribute("0212")]
  2592. Item0212,
  2593. /// <remarks/>
  2594. [System.Xml.Serialization.XmlEnumAttribute("0213")]
  2595. Item0213,
  2596. /// <remarks/>
  2597. [System.Xml.Serialization.XmlEnumAttribute("0214")]
  2598. Item0214,
  2599. /// <remarks/>
  2600. [System.Xml.Serialization.XmlEnumAttribute("0215")]
  2601. Item0215,
  2602. /// <remarks/>
  2603. [System.Xml.Serialization.XmlEnumAttribute("0216")]
  2604. Item0216,
  2605. /// <remarks/>
  2606. [System.Xml.Serialization.XmlEnumAttribute("0217")]
  2607. Item0217,
  2608. /// <remarks/>
  2609. [System.Xml.Serialization.XmlEnumAttribute("0218")]
  2610. Item0218,
  2611. /// <remarks/>
  2612. [System.Xml.Serialization.XmlEnumAttribute("0219")]
  2613. Item0219,
  2614. /// <remarks/>
  2615. [System.Xml.Serialization.XmlEnumAttribute("0220")]
  2616. Item0220,
  2617. /// <remarks/>
  2618. [System.Xml.Serialization.XmlEnumAttribute("0221")]
  2619. Item0221,
  2620. /// <remarks/>
  2621. [System.Xml.Serialization.XmlEnumAttribute("0222")]
  2622. Item0222,
  2623. /// <remarks/>
  2624. [System.Xml.Serialization.XmlEnumAttribute("0223")]
  2625. Item0223,
  2626. /// <remarks/>
  2627. [System.Xml.Serialization.XmlEnumAttribute("0224")]
  2628. Item0224,
  2629. /// <remarks/>
  2630. [System.Xml.Serialization.XmlEnumAttribute("0225")]
  2631. Item0225,
  2632. /// <remarks/>
  2633. [System.Xml.Serialization.XmlEnumAttribute("0226")]
  2634. Item0226,
  2635. /// <remarks/>
  2636. [System.Xml.Serialization.XmlEnumAttribute("0227")]
  2637. Item0227,
  2638. /// <remarks/>
  2639. [System.Xml.Serialization.XmlEnumAttribute("0228")]
  2640. Item0228,
  2641. /// <remarks/>
  2642. [System.Xml.Serialization.XmlEnumAttribute("0229")]
  2643. Item0229,
  2644. /// <remarks/>
  2645. [System.Xml.Serialization.XmlEnumAttribute("0230")]
  2646. Item0230,
  2647. /// <remarks/>
  2648. [System.Xml.Serialization.XmlEnumAttribute("0231")]
  2649. Item0231,
  2650. /// <remarks/>
  2651. [System.Xml.Serialization.XmlEnumAttribute("0232")]
  2652. Item0232,
  2653. /// <remarks/>
  2654. [System.Xml.Serialization.XmlEnumAttribute("0233")]
  2655. Item0233,
  2656. /// <remarks/>
  2657. [System.Xml.Serialization.XmlEnumAttribute("0234")]
  2658. Item0234,
  2659. /// <remarks/>
  2660. [System.Xml.Serialization.XmlEnumAttribute("0271")]
  2661. Item0271,
  2662. /// <remarks/>
  2663. [System.Xml.Serialization.XmlEnumAttribute("0402")]
  2664. Item0402,
  2665. /// <remarks/>
  2666. [System.Xml.Serialization.XmlEnumAttribute("0403")]
  2667. Item0403,
  2668. /// <remarks/>
  2669. [System.Xml.Serialization.XmlEnumAttribute("0404")]
  2670. Item0404,
  2671. /// <remarks/>
  2672. [System.Xml.Serialization.XmlEnumAttribute("0405")]
  2673. Item0405,
  2674. /// <remarks/>
  2675. [System.Xml.Serialization.XmlEnumAttribute("0406")]
  2676. Item0406,
  2677. /// <remarks/>
  2678. [System.Xml.Serialization.XmlEnumAttribute("0407")]
  2679. Item0407,
  2680. /// <remarks/>
  2681. [System.Xml.Serialization.XmlEnumAttribute("0408")]
  2682. Item0408,
  2683. /// <remarks/>
  2684. [System.Xml.Serialization.XmlEnumAttribute("0409")]
  2685. Item0409,
  2686. /// <remarks/>
  2687. [System.Xml.Serialization.XmlEnumAttribute("0410")]
  2688. Item0410,
  2689. /// <remarks/>
  2690. [System.Xml.Serialization.XmlEnumAttribute("0411")]
  2691. Item0411,
  2692. /// <remarks/>
  2693. [System.Xml.Serialization.XmlEnumAttribute("0412")]
  2694. Item0412,
  2695. /// <remarks/>
  2696. [System.Xml.Serialization.XmlEnumAttribute("0413")]
  2697. Item0413,
  2698. /// <remarks/>
  2699. [System.Xml.Serialization.XmlEnumAttribute("0414")]
  2700. Item0414,
  2701. /// <remarks/>
  2702. [System.Xml.Serialization.XmlEnumAttribute("0415")]
  2703. Item0415,
  2704. /// <remarks/>
  2705. [System.Xml.Serialization.XmlEnumAttribute("0416")]
  2706. Item0416,
  2707. /// <remarks/>
  2708. [System.Xml.Serialization.XmlEnumAttribute("0417")]
  2709. Item0417,
  2710. /// <remarks/>
  2711. [System.Xml.Serialization.XmlEnumAttribute("0418")]
  2712. Item0418,
  2713. /// <remarks/>
  2714. [System.Xml.Serialization.XmlEnumAttribute("0419")]
  2715. Item0419,
  2716. /// <remarks/>
  2717. [System.Xml.Serialization.XmlEnumAttribute("0420")]
  2718. Item0420,
  2719. /// <remarks/>
  2720. [System.Xml.Serialization.XmlEnumAttribute("0421")]
  2721. Item0421,
  2722. /// <remarks/>
  2723. [System.Xml.Serialization.XmlEnumAttribute("0422")]
  2724. Item0422,
  2725. /// <remarks/>
  2726. [System.Xml.Serialization.XmlEnumAttribute("0423")]
  2727. Item0423,
  2728. /// <remarks/>
  2729. [System.Xml.Serialization.XmlEnumAttribute("0471")]
  2730. Item0471,
  2731. /// <remarks/>
  2732. [System.Xml.Serialization.XmlEnumAttribute("0602")]
  2733. Item0602,
  2734. /// <remarks/>
  2735. [System.Xml.Serialization.XmlEnumAttribute("0603")]
  2736. Item0603,
  2737. /// <remarks/>
  2738. [System.Xml.Serialization.XmlEnumAttribute("0604")]
  2739. Item0604,
  2740. /// <remarks/>
  2741. [System.Xml.Serialization.XmlEnumAttribute("0605")]
  2742. Item0605,
  2743. /// <remarks/>
  2744. [System.Xml.Serialization.XmlEnumAttribute("0606")]
  2745. Item0606,
  2746. /// <remarks/>
  2747. [System.Xml.Serialization.XmlEnumAttribute("0607")]
  2748. Item0607,
  2749. /// <remarks/>
  2750. [System.Xml.Serialization.XmlEnumAttribute("0608")]
  2751. Item0608,
  2752. /// <remarks/>
  2753. [System.Xml.Serialization.XmlEnumAttribute("0609")]
  2754. Item0609,
  2755. /// <remarks/>
  2756. [System.Xml.Serialization.XmlEnumAttribute("0610")]
  2757. Item0610,
  2758. /// <remarks/>
  2759. [System.Xml.Serialization.XmlEnumAttribute("0611")]
  2760. Item0611,
  2761. /// <remarks/>
  2762. [System.Xml.Serialization.XmlEnumAttribute("0612")]
  2763. Item0612,
  2764. /// <remarks/>
  2765. [System.Xml.Serialization.XmlEnumAttribute("0613")]
  2766. Item0613,
  2767. /// <remarks/>
  2768. [System.Xml.Serialization.XmlEnumAttribute("0614")]
  2769. Item0614,
  2770. /// <remarks/>
  2771. [System.Xml.Serialization.XmlEnumAttribute("0615")]
  2772. Item0615,
  2773. /// <remarks/>
  2774. [System.Xml.Serialization.XmlEnumAttribute("0616")]
  2775. Item0616,
  2776. /// <remarks/>
  2777. [System.Xml.Serialization.XmlEnumAttribute("0617")]
  2778. Item0617,
  2779. /// <remarks/>
  2780. [System.Xml.Serialization.XmlEnumAttribute("0618")]
  2781. Item0618,
  2782. /// <remarks/>
  2783. [System.Xml.Serialization.XmlEnumAttribute("0619")]
  2784. Item0619,
  2785. /// <remarks/>
  2786. [System.Xml.Serialization.XmlEnumAttribute("0620")]
  2787. Item0620,
  2788. /// <remarks/>
  2789. [System.Xml.Serialization.XmlEnumAttribute("0621")]
  2790. Item0621,
  2791. /// <remarks/>
  2792. [System.Xml.Serialization.XmlEnumAttribute("0622")]
  2793. Item0622,
  2794. /// <remarks/>
  2795. [System.Xml.Serialization.XmlEnumAttribute("0671")]
  2796. Item0671,
  2797. /// <remarks/>
  2798. [System.Xml.Serialization.XmlEnumAttribute("0802")]
  2799. Item0802,
  2800. /// <remarks/>
  2801. [System.Xml.Serialization.XmlEnumAttribute("0803")]
  2802. Item0803,
  2803. /// <remarks/>
  2804. [System.Xml.Serialization.XmlEnumAttribute("0804")]
  2805. Item0804,
  2806. /// <remarks/>
  2807. [System.Xml.Serialization.XmlEnumAttribute("0805")]
  2808. Item0805,
  2809. /// <remarks/>
  2810. [System.Xml.Serialization.XmlEnumAttribute("0806")]
  2811. Item0806,
  2812. /// <remarks/>
  2813. [System.Xml.Serialization.XmlEnumAttribute("0807")]
  2814. Item0807,
  2815. /// <remarks/>
  2816. [System.Xml.Serialization.XmlEnumAttribute("0808")]
  2817. Item0808,
  2818. /// <remarks/>
  2819. [System.Xml.Serialization.XmlEnumAttribute("0809")]
  2820. Item0809,
  2821. /// <remarks/>
  2822. [System.Xml.Serialization.XmlEnumAttribute("0810")]
  2823. Item0810,
  2824. /// <remarks/>
  2825. [System.Xml.Serialization.XmlEnumAttribute("0811")]
  2826. Item0811,
  2827. /// <remarks/>
  2828. [System.Xml.Serialization.XmlEnumAttribute("0812")]
  2829. Item0812,
  2830. /// <remarks/>
  2831. [System.Xml.Serialization.XmlEnumAttribute("0813")]
  2832. Item0813,
  2833. /// <remarks/>
  2834. [System.Xml.Serialization.XmlEnumAttribute("0814")]
  2835. Item0814,
  2836. /// <remarks/>
  2837. [System.Xml.Serialization.XmlEnumAttribute("0871")]
  2838. Item0871,
  2839. /// <remarks/>
  2840. [System.Xml.Serialization.XmlEnumAttribute("1002")]
  2841. Item1002,
  2842. /// <remarks/>
  2843. [System.Xml.Serialization.XmlEnumAttribute("1003")]
  2844. Item1003,
  2845. /// <remarks/>
  2846. [System.Xml.Serialization.XmlEnumAttribute("1004")]
  2847. Item1004,
  2848. /// <remarks/>
  2849. [System.Xml.Serialization.XmlEnumAttribute("1005")]
  2850. Item1005,
  2851. /// <remarks/>
  2852. [System.Xml.Serialization.XmlEnumAttribute("1006")]
  2853. Item1006,
  2854. /// <remarks/>
  2855. [System.Xml.Serialization.XmlEnumAttribute("1007")]
  2856. Item1007,
  2857. /// <remarks/>
  2858. [System.Xml.Serialization.XmlEnumAttribute("1008")]
  2859. Item1008,
  2860. /// <remarks/>
  2861. [System.Xml.Serialization.XmlEnumAttribute("1009")]
  2862. Item1009,
  2863. /// <remarks/>
  2864. [System.Xml.Serialization.XmlEnumAttribute("1010")]
  2865. Item1010,
  2866. /// <remarks/>
  2867. [System.Xml.Serialization.XmlEnumAttribute("1011")]
  2868. Item1011,
  2869. /// <remarks/>
  2870. [System.Xml.Serialization.XmlEnumAttribute("1012")]
  2871. Item1012,
  2872. /// <remarks/>
  2873. [System.Xml.Serialization.XmlEnumAttribute("1013")]
  2874. Item1013,
  2875. /// <remarks/>
  2876. [System.Xml.Serialization.XmlEnumAttribute("1014")]
  2877. Item1014,
  2878. /// <remarks/>
  2879. [System.Xml.Serialization.XmlEnumAttribute("1015")]
  2880. Item1015,
  2881. /// <remarks/>
  2882. [System.Xml.Serialization.XmlEnumAttribute("1016")]
  2883. Item1016,
  2884. /// <remarks/>
  2885. [System.Xml.Serialization.XmlEnumAttribute("1017")]
  2886. Item1017,
  2887. /// <remarks/>
  2888. [System.Xml.Serialization.XmlEnumAttribute("1018")]
  2889. Item1018,
  2890. /// <remarks/>
  2891. [System.Xml.Serialization.XmlEnumAttribute("1019")]
  2892. Item1019,
  2893. /// <remarks/>
  2894. [System.Xml.Serialization.XmlEnumAttribute("1020")]
  2895. Item1020,
  2896. /// <remarks/>
  2897. [System.Xml.Serialization.XmlEnumAttribute("1021")]
  2898. Item1021,
  2899. /// <remarks/>
  2900. [System.Xml.Serialization.XmlEnumAttribute("1022")]
  2901. Item1022,
  2902. /// <remarks/>
  2903. [System.Xml.Serialization.XmlEnumAttribute("1023")]
  2904. Item1023,
  2905. /// <remarks/>
  2906. [System.Xml.Serialization.XmlEnumAttribute("1024")]
  2907. Item1024,
  2908. /// <remarks/>
  2909. [System.Xml.Serialization.XmlEnumAttribute("1025")]
  2910. Item1025,
  2911. /// <remarks/>
  2912. [System.Xml.Serialization.XmlEnumAttribute("1026")]
  2913. Item1026,
  2914. /// <remarks/>
  2915. [System.Xml.Serialization.XmlEnumAttribute("1027")]
  2916. Item1027,
  2917. /// <remarks/>
  2918. [System.Xml.Serialization.XmlEnumAttribute("1028")]
  2919. Item1028,
  2920. /// <remarks/>
  2921. [System.Xml.Serialization.XmlEnumAttribute("1029")]
  2922. Item1029,
  2923. /// <remarks/>
  2924. [System.Xml.Serialization.XmlEnumAttribute("1071")]
  2925. Item1071,
  2926. /// <remarks/>
  2927. [System.Xml.Serialization.XmlEnumAttribute("1202")]
  2928. Item1202,
  2929. /// <remarks/>
  2930. [System.Xml.Serialization.XmlEnumAttribute("1203")]
  2931. Item1203,
  2932. /// <remarks/>
  2933. [System.Xml.Serialization.XmlEnumAttribute("1204")]
  2934. Item1204,
  2935. /// <remarks/>
  2936. [System.Xml.Serialization.XmlEnumAttribute("1205")]
  2937. Item1205,
  2938. /// <remarks/>
  2939. [System.Xml.Serialization.XmlEnumAttribute("1206")]
  2940. Item1206,
  2941. /// <remarks/>
  2942. [System.Xml.Serialization.XmlEnumAttribute("1207")]
  2943. Item1207,
  2944. /// <remarks/>
  2945. [System.Xml.Serialization.XmlEnumAttribute("1208")]
  2946. Item1208,
  2947. /// <remarks/>
  2948. [System.Xml.Serialization.XmlEnumAttribute("1209")]
  2949. Item1209,
  2950. /// <remarks/>
  2951. [System.Xml.Serialization.XmlEnumAttribute("1210")]
  2952. Item1210,
  2953. /// <remarks/>
  2954. [System.Xml.Serialization.XmlEnumAttribute("1211")]
  2955. Item1211,
  2956. /// <remarks/>
  2957. [System.Xml.Serialization.XmlEnumAttribute("1212")]
  2958. Item1212,
  2959. /// <remarks/>
  2960. [System.Xml.Serialization.XmlEnumAttribute("1213")]
  2961. Item1213,
  2962. /// <remarks/>
  2963. [System.Xml.Serialization.XmlEnumAttribute("1214")]
  2964. Item1214,
  2965. /// <remarks/>
  2966. [System.Xml.Serialization.XmlEnumAttribute("1215")]
  2967. Item1215,
  2968. /// <remarks/>
  2969. [System.Xml.Serialization.XmlEnumAttribute("1216")]
  2970. Item1216,
  2971. /// <remarks/>
  2972. [System.Xml.Serialization.XmlEnumAttribute("1217")]
  2973. Item1217,
  2974. /// <remarks/>
  2975. [System.Xml.Serialization.XmlEnumAttribute("1218")]
  2976. Item1218,
  2977. /// <remarks/>
  2978. [System.Xml.Serialization.XmlEnumAttribute("1219")]
  2979. Item1219,
  2980. /// <remarks/>
  2981. [System.Xml.Serialization.XmlEnumAttribute("1220")]
  2982. Item1220,
  2983. /// <remarks/>
  2984. [System.Xml.Serialization.XmlEnumAttribute("1221")]
  2985. Item1221,
  2986. /// <remarks/>
  2987. [System.Xml.Serialization.XmlEnumAttribute("1222")]
  2988. Item1222,
  2989. /// <remarks/>
  2990. [System.Xml.Serialization.XmlEnumAttribute("1223")]
  2991. Item1223,
  2992. /// <remarks/>
  2993. [System.Xml.Serialization.XmlEnumAttribute("1224")]
  2994. Item1224,
  2995. /// <remarks/>
  2996. [System.Xml.Serialization.XmlEnumAttribute("1225")]
  2997. Item1225,
  2998. /// <remarks/>
  2999. [System.Xml.Serialization.XmlEnumAttribute("1226")]
  3000. Item1226,
  3001. /// <remarks/>
  3002. [System.Xml.Serialization.XmlEnumAttribute("1227")]
  3003. Item1227,
  3004. /// <remarks/>
  3005. [System.Xml.Serialization.XmlEnumAttribute("1228")]
  3006. Item1228,
  3007. /// <remarks/>
  3008. [System.Xml.Serialization.XmlEnumAttribute("1271")]
  3009. Item1271,
  3010. /// <remarks/>
  3011. [System.Xml.Serialization.XmlEnumAttribute("1402")]
  3012. Item1402,
  3013. /// <remarks/>
  3014. [System.Xml.Serialization.XmlEnumAttribute("1403")]
  3015. Item1403,
  3016. /// <remarks/>
  3017. [System.Xml.Serialization.XmlEnumAttribute("1404")]
  3018. Item1404,
  3019. /// <remarks/>
  3020. [System.Xml.Serialization.XmlEnumAttribute("1405")]
  3021. Item1405,
  3022. /// <remarks/>
  3023. [System.Xml.Serialization.XmlEnumAttribute("1406")]
  3024. Item1406,
  3025. /// <remarks/>
  3026. [System.Xml.Serialization.XmlEnumAttribute("1407")]
  3027. Item1407,
  3028. /// <remarks/>
  3029. [System.Xml.Serialization.XmlEnumAttribute("1408")]
  3030. Item1408,
  3031. /// <remarks/>
  3032. [System.Xml.Serialization.XmlEnumAttribute("1409")]
  3033. Item1409,
  3034. /// <remarks/>
  3035. [System.Xml.Serialization.XmlEnumAttribute("1410")]
  3036. Item1410,
  3037. /// <remarks/>
  3038. [System.Xml.Serialization.XmlEnumAttribute("1411")]
  3039. Item1411,
  3040. /// <remarks/>
  3041. [System.Xml.Serialization.XmlEnumAttribute("1412")]
  3042. Item1412,
  3043. /// <remarks/>
  3044. [System.Xml.Serialization.XmlEnumAttribute("1413")]
  3045. Item1413,
  3046. /// <remarks/>
  3047. [System.Xml.Serialization.XmlEnumAttribute("1414")]
  3048. Item1414,
  3049. /// <remarks/>
  3050. [System.Xml.Serialization.XmlEnumAttribute("1415")]
  3051. Item1415,
  3052. /// <remarks/>
  3053. [System.Xml.Serialization.XmlEnumAttribute("1416")]
  3054. Item1416,
  3055. /// <remarks/>
  3056. [System.Xml.Serialization.XmlEnumAttribute("1417")]
  3057. Item1417,
  3058. /// <remarks/>
  3059. [System.Xml.Serialization.XmlEnumAttribute("1418")]
  3060. Item1418,
  3061. /// <remarks/>
  3062. [System.Xml.Serialization.XmlEnumAttribute("1419")]
  3063. Item1419,
  3064. /// <remarks/>
  3065. [System.Xml.Serialization.XmlEnumAttribute("1420")]
  3066. Item1420,
  3067. /// <remarks/>
  3068. [System.Xml.Serialization.XmlEnumAttribute("1421")]
  3069. Item1421,
  3070. /// <remarks/>
  3071. [System.Xml.Serialization.XmlEnumAttribute("1422")]
  3072. Item1422,
  3073. /// <remarks/>
  3074. [System.Xml.Serialization.XmlEnumAttribute("1423")]
  3075. Item1423,
  3076. /// <remarks/>
  3077. [System.Xml.Serialization.XmlEnumAttribute("1424")]
  3078. Item1424,
  3079. /// <remarks/>
  3080. [System.Xml.Serialization.XmlEnumAttribute("1425")]
  3081. Item1425,
  3082. /// <remarks/>
  3083. [System.Xml.Serialization.XmlEnumAttribute("1426")]
  3084. Item1426,
  3085. /// <remarks/>
  3086. [System.Xml.Serialization.XmlEnumAttribute("1427")]
  3087. Item1427,
  3088. /// <remarks/>
  3089. [System.Xml.Serialization.XmlEnumAttribute("1428")]
  3090. Item1428,
  3091. /// <remarks/>
  3092. [System.Xml.Serialization.XmlEnumAttribute("1429")]
  3093. Item1429,
  3094. /// <remarks/>
  3095. [System.Xml.Serialization.XmlEnumAttribute("1430")]
  3096. Item1430,
  3097. /// <remarks/>
  3098. [System.Xml.Serialization.XmlEnumAttribute("1431")]
  3099. Item1431,
  3100. /// <remarks/>
  3101. [System.Xml.Serialization.XmlEnumAttribute("1432")]
  3102. Item1432,
  3103. /// <remarks/>
  3104. [System.Xml.Serialization.XmlEnumAttribute("1433")]
  3105. Item1433,
  3106. /// <remarks/>
  3107. [System.Xml.Serialization.XmlEnumAttribute("1434")]
  3108. Item1434,
  3109. /// <remarks/>
  3110. [System.Xml.Serialization.XmlEnumAttribute("1435")]
  3111. Item1435,
  3112. /// <remarks/>
  3113. [System.Xml.Serialization.XmlEnumAttribute("1436")]
  3114. Item1436,
  3115. /// <remarks/>
  3116. [System.Xml.Serialization.XmlEnumAttribute("1437")]
  3117. Item1437,
  3118. /// <remarks/>
  3119. [System.Xml.Serialization.XmlEnumAttribute("1438")]
  3120. Item1438,
  3121. /// <remarks/>
  3122. [System.Xml.Serialization.XmlEnumAttribute("1439")]
  3123. Item1439,
  3124. /// <remarks/>
  3125. [System.Xml.Serialization.XmlEnumAttribute("1440")]
  3126. Item1440,
  3127. /// <remarks/>
  3128. [System.Xml.Serialization.XmlEnumAttribute("1441")]
  3129. Item1441,
  3130. /// <remarks/>
  3131. [System.Xml.Serialization.XmlEnumAttribute("1442")]
  3132. Item1442,
  3133. /// <remarks/>
  3134. [System.Xml.Serialization.XmlEnumAttribute("1443")]
  3135. Item1443,
  3136. /// <remarks/>
  3137. [System.Xml.Serialization.XmlEnumAttribute("1444")]
  3138. Item1444,
  3139. /// <remarks/>
  3140. [System.Xml.Serialization.XmlEnumAttribute("1445")]
  3141. Item1445,
  3142. /// <remarks/>
  3143. [System.Xml.Serialization.XmlEnumAttribute("1446")]
  3144. Item1446,
  3145. /// <remarks/>
  3146. [System.Xml.Serialization.XmlEnumAttribute("1447")]
  3147. Item1447,
  3148. /// <remarks/>
  3149. [System.Xml.Serialization.XmlEnumAttribute("1448")]
  3150. Item1448,
  3151. /// <remarks/>
  3152. [System.Xml.Serialization.XmlEnumAttribute("1449")]
  3153. Item1449,
  3154. /// <remarks/>
  3155. [System.Xml.Serialization.XmlEnumAttribute("1471")]
  3156. Item1471,
  3157. /// <remarks/>
  3158. [System.Xml.Serialization.XmlEnumAttribute("1472")]
  3159. Item1472,
  3160. /// <remarks/>
  3161. [System.Xml.Serialization.XmlEnumAttribute("1473")]
  3162. Item1473,
  3163. /// <remarks/>
  3164. [System.Xml.Serialization.XmlEnumAttribute("1602")]
  3165. Item1602,
  3166. /// <remarks/>
  3167. [System.Xml.Serialization.XmlEnumAttribute("1603")]
  3168. Item1603,
  3169. /// <remarks/>
  3170. [System.Xml.Serialization.XmlEnumAttribute("1604")]
  3171. Item1604,
  3172. /// <remarks/>
  3173. [System.Xml.Serialization.XmlEnumAttribute("1605")]
  3174. Item1605,
  3175. /// <remarks/>
  3176. [System.Xml.Serialization.XmlEnumAttribute("1606")]
  3177. Item1606,
  3178. /// <remarks/>
  3179. [System.Xml.Serialization.XmlEnumAttribute("1607")]
  3180. Item1607,
  3181. /// <remarks/>
  3182. [System.Xml.Serialization.XmlEnumAttribute("1608")]
  3183. Item1608,
  3184. /// <remarks/>
  3185. [System.Xml.Serialization.XmlEnumAttribute("1609")]
  3186. Item1609,
  3187. /// <remarks/>
  3188. [System.Xml.Serialization.XmlEnumAttribute("1610")]
  3189. Item1610,
  3190. /// <remarks/>
  3191. [System.Xml.Serialization.XmlEnumAttribute("1611")]
  3192. Item1611,
  3193. /// <remarks/>
  3194. [System.Xml.Serialization.XmlEnumAttribute("1612")]
  3195. Item1612,
  3196. /// <remarks/>
  3197. [System.Xml.Serialization.XmlEnumAttribute("1613")]
  3198. Item1613,
  3199. /// <remarks/>
  3200. [System.Xml.Serialization.XmlEnumAttribute("1671")]
  3201. Item1671,
  3202. /// <remarks/>
  3203. [System.Xml.Serialization.XmlEnumAttribute("1802")]
  3204. Item1802,
  3205. /// <remarks/>
  3206. [System.Xml.Serialization.XmlEnumAttribute("1803")]
  3207. Item1803,
  3208. /// <remarks/>
  3209. [System.Xml.Serialization.XmlEnumAttribute("1804")]
  3210. Item1804,
  3211. /// <remarks/>
  3212. [System.Xml.Serialization.XmlEnumAttribute("1805")]
  3213. Item1805,
  3214. /// <remarks/>
  3215. [System.Xml.Serialization.XmlEnumAttribute("1806")]
  3216. Item1806,
  3217. /// <remarks/>
  3218. [System.Xml.Serialization.XmlEnumAttribute("1807")]
  3219. Item1807,
  3220. /// <remarks/>
  3221. [System.Xml.Serialization.XmlEnumAttribute("1808")]
  3222. Item1808,
  3223. /// <remarks/>
  3224. [System.Xml.Serialization.XmlEnumAttribute("1809")]
  3225. Item1809,
  3226. /// <remarks/>
  3227. [System.Xml.Serialization.XmlEnumAttribute("1810")]
  3228. Item1810,
  3229. /// <remarks/>
  3230. [System.Xml.Serialization.XmlEnumAttribute("1811")]
  3231. Item1811,
  3232. /// <remarks/>
  3233. [System.Xml.Serialization.XmlEnumAttribute("1812")]
  3234. Item1812,
  3235. /// <remarks/>
  3236. [System.Xml.Serialization.XmlEnumAttribute("1813")]
  3237. Item1813,
  3238. /// <remarks/>
  3239. [System.Xml.Serialization.XmlEnumAttribute("1814")]
  3240. Item1814,
  3241. /// <remarks/>
  3242. [System.Xml.Serialization.XmlEnumAttribute("1815")]
  3243. Item1815,
  3244. /// <remarks/>
  3245. [System.Xml.Serialization.XmlEnumAttribute("1816")]
  3246. Item1816,
  3247. /// <remarks/>
  3248. [System.Xml.Serialization.XmlEnumAttribute("1817")]
  3249. Item1817,
  3250. /// <remarks/>
  3251. [System.Xml.Serialization.XmlEnumAttribute("1818")]
  3252. Item1818,
  3253. /// <remarks/>
  3254. [System.Xml.Serialization.XmlEnumAttribute("1819")]
  3255. Item1819,
  3256. /// <remarks/>
  3257. [System.Xml.Serialization.XmlEnumAttribute("1820")]
  3258. Item1820,
  3259. /// <remarks/>
  3260. [System.Xml.Serialization.XmlEnumAttribute("1821")]
  3261. Item1821,
  3262. /// <remarks/>
  3263. [System.Xml.Serialization.XmlEnumAttribute("1822")]
  3264. Item1822,
  3265. /// <remarks/>
  3266. [System.Xml.Serialization.XmlEnumAttribute("1823")]
  3267. Item1823,
  3268. /// <remarks/>
  3269. [System.Xml.Serialization.XmlEnumAttribute("1871")]
  3270. Item1871,
  3271. /// <remarks/>
  3272. [System.Xml.Serialization.XmlEnumAttribute("2002")]
  3273. Item2002,
  3274. /// <remarks/>
  3275. [System.Xml.Serialization.XmlEnumAttribute("2003")]
  3276. Item2003,
  3277. /// <remarks/>
  3278. [System.Xml.Serialization.XmlEnumAttribute("2004")]
  3279. Item2004,
  3280. /// <remarks/>
  3281. [System.Xml.Serialization.XmlEnumAttribute("2005")]
  3282. Item2005,
  3283. /// <remarks/>
  3284. [System.Xml.Serialization.XmlEnumAttribute("2006")]
  3285. Item2006,
  3286. /// <remarks/>
  3287. [System.Xml.Serialization.XmlEnumAttribute("2007")]
  3288. Item2007,
  3289. /// <remarks/>
  3290. [System.Xml.Serialization.XmlEnumAttribute("2008")]
  3291. Item2008,
  3292. /// <remarks/>
  3293. [System.Xml.Serialization.XmlEnumAttribute("2009")]
  3294. Item2009,
  3295. /// <remarks/>
  3296. [System.Xml.Serialization.XmlEnumAttribute("2010")]
  3297. Item2010,
  3298. /// <remarks/>
  3299. [System.Xml.Serialization.XmlEnumAttribute("2011")]
  3300. Item2011,
  3301. /// <remarks/>
  3302. [System.Xml.Serialization.XmlEnumAttribute("2012")]
  3303. Item2012,
  3304. /// <remarks/>
  3305. [System.Xml.Serialization.XmlEnumAttribute("2013")]
  3306. Item2013,
  3307. /// <remarks/>
  3308. [System.Xml.Serialization.XmlEnumAttribute("2014")]
  3309. Item2014,
  3310. /// <remarks/>
  3311. [System.Xml.Serialization.XmlEnumAttribute("2015")]
  3312. Item2015,
  3313. /// <remarks/>
  3314. [System.Xml.Serialization.XmlEnumAttribute("2071")]
  3315. Item2071,
  3316. /// <remarks/>
  3317. [System.Xml.Serialization.XmlEnumAttribute("2202")]
  3318. Item2202,
  3319. /// <remarks/>
  3320. [System.Xml.Serialization.XmlEnumAttribute("2203")]
  3321. Item2203,
  3322. /// <remarks/>
  3323. [System.Xml.Serialization.XmlEnumAttribute("2204")]
  3324. Item2204,
  3325. /// <remarks/>
  3326. [System.Xml.Serialization.XmlEnumAttribute("2205")]
  3327. Item2205,
  3328. /// <remarks/>
  3329. [System.Xml.Serialization.XmlEnumAttribute("2206")]
  3330. Item2206,
  3331. /// <remarks/>
  3332. [System.Xml.Serialization.XmlEnumAttribute("2207")]
  3333. Item2207,
  3334. /// <remarks/>
  3335. [System.Xml.Serialization.XmlEnumAttribute("2208")]
  3336. Item2208,
  3337. /// <remarks/>
  3338. [System.Xml.Serialization.XmlEnumAttribute("2209")]
  3339. Item2209,
  3340. /// <remarks/>
  3341. [System.Xml.Serialization.XmlEnumAttribute("2210")]
  3342. Item2210,
  3343. /// <remarks/>
  3344. [System.Xml.Serialization.XmlEnumAttribute("2211")]
  3345. Item2211,
  3346. /// <remarks/>
  3347. [System.Xml.Serialization.XmlEnumAttribute("2212")]
  3348. Item2212,
  3349. /// <remarks/>
  3350. [System.Xml.Serialization.XmlEnumAttribute("2213")]
  3351. Item2213,
  3352. /// <remarks/>
  3353. [System.Xml.Serialization.XmlEnumAttribute("2214")]
  3354. Item2214,
  3355. /// <remarks/>
  3356. [System.Xml.Serialization.XmlEnumAttribute("2215")]
  3357. Item2215,
  3358. /// <remarks/>
  3359. [System.Xml.Serialization.XmlEnumAttribute("2216")]
  3360. Item2216,
  3361. /// <remarks/>
  3362. [System.Xml.Serialization.XmlEnumAttribute("2217")]
  3363. Item2217,
  3364. /// <remarks/>
  3365. [System.Xml.Serialization.XmlEnumAttribute("2218")]
  3366. Item2218,
  3367. /// <remarks/>
  3368. [System.Xml.Serialization.XmlEnumAttribute("2219")]
  3369. Item2219,
  3370. /// <remarks/>
  3371. [System.Xml.Serialization.XmlEnumAttribute("2220")]
  3372. Item2220,
  3373. /// <remarks/>
  3374. [System.Xml.Serialization.XmlEnumAttribute("2221")]
  3375. Item2221,
  3376. /// <remarks/>
  3377. [System.Xml.Serialization.XmlEnumAttribute("2271")]
  3378. Item2271,
  3379. /// <remarks/>
  3380. [System.Xml.Serialization.XmlEnumAttribute("2402")]
  3381. Item2402,
  3382. /// <remarks/>
  3383. [System.Xml.Serialization.XmlEnumAttribute("2403")]
  3384. Item2403,
  3385. /// <remarks/>
  3386. [System.Xml.Serialization.XmlEnumAttribute("2404")]
  3387. Item2404,
  3388. /// <remarks/>
  3389. [System.Xml.Serialization.XmlEnumAttribute("2405")]
  3390. Item2405,
  3391. /// <remarks/>
  3392. [System.Xml.Serialization.XmlEnumAttribute("2406")]
  3393. Item2406,
  3394. /// <remarks/>
  3395. [System.Xml.Serialization.XmlEnumAttribute("2407")]
  3396. Item2407,
  3397. /// <remarks/>
  3398. [System.Xml.Serialization.XmlEnumAttribute("2408")]
  3399. Item2408,
  3400. /// <remarks/>
  3401. [System.Xml.Serialization.XmlEnumAttribute("2409")]
  3402. Item2409,
  3403. /// <remarks/>
  3404. [System.Xml.Serialization.XmlEnumAttribute("2410")]
  3405. Item2410,
  3406. /// <remarks/>
  3407. [System.Xml.Serialization.XmlEnumAttribute("2411")]
  3408. Item2411,
  3409. /// <remarks/>
  3410. [System.Xml.Serialization.XmlEnumAttribute("2412")]
  3411. Item2412,
  3412. /// <remarks/>
  3413. [System.Xml.Serialization.XmlEnumAttribute("2413")]
  3414. Item2413,
  3415. /// <remarks/>
  3416. [System.Xml.Serialization.XmlEnumAttribute("2414")]
  3417. Item2414,
  3418. /// <remarks/>
  3419. [System.Xml.Serialization.XmlEnumAttribute("2415")]
  3420. Item2415,
  3421. /// <remarks/>
  3422. [System.Xml.Serialization.XmlEnumAttribute("2416")]
  3423. Item2416,
  3424. /// <remarks/>
  3425. [System.Xml.Serialization.XmlEnumAttribute("2417")]
  3426. Item2417,
  3427. /// <remarks/>
  3428. [System.Xml.Serialization.XmlEnumAttribute("2418")]
  3429. Item2418,
  3430. /// <remarks/>
  3431. [System.Xml.Serialization.XmlEnumAttribute("2419")]
  3432. Item2419,
  3433. /// <remarks/>
  3434. [System.Xml.Serialization.XmlEnumAttribute("2420")]
  3435. Item2420,
  3436. /// <remarks/>
  3437. [System.Xml.Serialization.XmlEnumAttribute("2421")]
  3438. Item2421,
  3439. /// <remarks/>
  3440. [System.Xml.Serialization.XmlEnumAttribute("2422")]
  3441. Item2422,
  3442. /// <remarks/>
  3443. [System.Xml.Serialization.XmlEnumAttribute("2423")]
  3444. Item2423,
  3445. /// <remarks/>
  3446. [System.Xml.Serialization.XmlEnumAttribute("2424")]
  3447. Item2424,
  3448. /// <remarks/>
  3449. [System.Xml.Serialization.XmlEnumAttribute("2425")]
  3450. Item2425,
  3451. /// <remarks/>
  3452. [System.Xml.Serialization.XmlEnumAttribute("2426")]
  3453. Item2426,
  3454. /// <remarks/>
  3455. [System.Xml.Serialization.XmlEnumAttribute("2427")]
  3456. Item2427,
  3457. /// <remarks/>
  3458. [System.Xml.Serialization.XmlEnumAttribute("2428")]
  3459. Item2428,
  3460. /// <remarks/>
  3461. [System.Xml.Serialization.XmlEnumAttribute("2429")]
  3462. Item2429,
  3463. /// <remarks/>
  3464. [System.Xml.Serialization.XmlEnumAttribute("2430")]
  3465. Item2430,
  3466. /// <remarks/>
  3467. [System.Xml.Serialization.XmlEnumAttribute("2431")]
  3468. Item2431,
  3469. /// <remarks/>
  3470. [System.Xml.Serialization.XmlEnumAttribute("2432")]
  3471. Item2432,
  3472. /// <remarks/>
  3473. [System.Xml.Serialization.XmlEnumAttribute("2433")]
  3474. Item2433,
  3475. /// <remarks/>
  3476. [System.Xml.Serialization.XmlEnumAttribute("2434")]
  3477. Item2434,
  3478. /// <remarks/>
  3479. [System.Xml.Serialization.XmlEnumAttribute("2435")]
  3480. Item2435,
  3481. /// <remarks/>
  3482. [System.Xml.Serialization.XmlEnumAttribute("2436")]
  3483. Item2436,
  3484. /// <remarks/>
  3485. [System.Xml.Serialization.XmlEnumAttribute("2471")]
  3486. Item2471,
  3487. /// <remarks/>
  3488. [System.Xml.Serialization.XmlEnumAttribute("2472")]
  3489. Item2472,
  3490. /// <remarks/>
  3491. [System.Xml.Serialization.XmlEnumAttribute("2602")]
  3492. Item2602,
  3493. /// <remarks/>
  3494. [System.Xml.Serialization.XmlEnumAttribute("2603")]
  3495. Item2603,
  3496. /// <remarks/>
  3497. [System.Xml.Serialization.XmlEnumAttribute("2604")]
  3498. Item2604,
  3499. /// <remarks/>
  3500. [System.Xml.Serialization.XmlEnumAttribute("2605")]
  3501. Item2605,
  3502. /// <remarks/>
  3503. [System.Xml.Serialization.XmlEnumAttribute("2606")]
  3504. Item2606,
  3505. /// <remarks/>
  3506. [System.Xml.Serialization.XmlEnumAttribute("2607")]
  3507. Item2607,
  3508. /// <remarks/>
  3509. [System.Xml.Serialization.XmlEnumAttribute("2608")]
  3510. Item2608,
  3511. /// <remarks/>
  3512. [System.Xml.Serialization.XmlEnumAttribute("2609")]
  3513. Item2609,
  3514. /// <remarks/>
  3515. [System.Xml.Serialization.XmlEnumAttribute("2610")]
  3516. Item2610,
  3517. /// <remarks/>
  3518. [System.Xml.Serialization.XmlEnumAttribute("2611")]
  3519. Item2611,
  3520. /// <remarks/>
  3521. [System.Xml.Serialization.XmlEnumAttribute("2612")]
  3522. Item2612,
  3523. /// <remarks/>
  3524. [System.Xml.Serialization.XmlEnumAttribute("2613")]
  3525. Item2613,
  3526. /// <remarks/>
  3527. [System.Xml.Serialization.XmlEnumAttribute("2614")]
  3528. Item2614,
  3529. /// <remarks/>
  3530. [System.Xml.Serialization.XmlEnumAttribute("2615")]
  3531. Item2615,
  3532. /// <remarks/>
  3533. [System.Xml.Serialization.XmlEnumAttribute("2671")]
  3534. Item2671,
  3535. /// <remarks/>
  3536. [System.Xml.Serialization.XmlEnumAttribute("2802")]
  3537. Item2802,
  3538. /// <remarks/>
  3539. [System.Xml.Serialization.XmlEnumAttribute("2803")]
  3540. Item2803,
  3541. /// <remarks/>
  3542. [System.Xml.Serialization.XmlEnumAttribute("2804")]
  3543. Item2804,
  3544. /// <remarks/>
  3545. [System.Xml.Serialization.XmlEnumAttribute("2805")]
  3546. Item2805,
  3547. /// <remarks/>
  3548. [System.Xml.Serialization.XmlEnumAttribute("2806")]
  3549. Item2806,
  3550. /// <remarks/>
  3551. [System.Xml.Serialization.XmlEnumAttribute("2807")]
  3552. Item2807,
  3553. /// <remarks/>
  3554. [System.Xml.Serialization.XmlEnumAttribute("2808")]
  3555. Item2808,
  3556. /// <remarks/>
  3557. [System.Xml.Serialization.XmlEnumAttribute("2809")]
  3558. Item2809,
  3559. /// <remarks/>
  3560. [System.Xml.Serialization.XmlEnumAttribute("2810")]
  3561. Item2810,
  3562. /// <remarks/>
  3563. [System.Xml.Serialization.XmlEnumAttribute("2811")]
  3564. Item2811,
  3565. /// <remarks/>
  3566. [System.Xml.Serialization.XmlEnumAttribute("2812")]
  3567. Item2812,
  3568. /// <remarks/>
  3569. [System.Xml.Serialization.XmlEnumAttribute("2813")]
  3570. Item2813,
  3571. /// <remarks/>
  3572. [System.Xml.Serialization.XmlEnumAttribute("2814")]
  3573. Item2814,
  3574. /// <remarks/>
  3575. [System.Xml.Serialization.XmlEnumAttribute("2815")]
  3576. Item2815,
  3577. /// <remarks/>
  3578. [System.Xml.Serialization.XmlEnumAttribute("2816")]
  3579. Item2816,
  3580. /// <remarks/>
  3581. [System.Xml.Serialization.XmlEnumAttribute("2871")]
  3582. Item2871,
  3583. /// <remarks/>
  3584. [System.Xml.Serialization.XmlEnumAttribute("3002")]
  3585. Item3002,
  3586. /// <remarks/>
  3587. [System.Xml.Serialization.XmlEnumAttribute("3003")]
  3588. Item3003,
  3589. /// <remarks/>
  3590. [System.Xml.Serialization.XmlEnumAttribute("3004")]
  3591. Item3004,
  3592. /// <remarks/>
  3593. [System.Xml.Serialization.XmlEnumAttribute("3005")]
  3594. Item3005,
  3595. /// <remarks/>
  3596. [System.Xml.Serialization.XmlEnumAttribute("3006")]
  3597. Item3006,
  3598. /// <remarks/>
  3599. [System.Xml.Serialization.XmlEnumAttribute("3007")]
  3600. Item3007,
  3601. /// <remarks/>
  3602. [System.Xml.Serialization.XmlEnumAttribute("3008")]
  3603. Item3008,
  3604. /// <remarks/>
  3605. [System.Xml.Serialization.XmlEnumAttribute("3009")]
  3606. Item3009,
  3607. /// <remarks/>
  3608. [System.Xml.Serialization.XmlEnumAttribute("3010")]
  3609. Item3010,
  3610. /// <remarks/>
  3611. [System.Xml.Serialization.XmlEnumAttribute("3011")]
  3612. Item3011,
  3613. /// <remarks/>
  3614. [System.Xml.Serialization.XmlEnumAttribute("3012")]
  3615. Item3012,
  3616. /// <remarks/>
  3617. [System.Xml.Serialization.XmlEnumAttribute("3013")]
  3618. Item3013,
  3619. /// <remarks/>
  3620. [System.Xml.Serialization.XmlEnumAttribute("3014")]
  3621. Item3014,
  3622. /// <remarks/>
  3623. [System.Xml.Serialization.XmlEnumAttribute("3015")]
  3624. Item3015,
  3625. /// <remarks/>
  3626. [System.Xml.Serialization.XmlEnumAttribute("3016")]
  3627. Item3016,
  3628. /// <remarks/>
  3629. [System.Xml.Serialization.XmlEnumAttribute("3017")]
  3630. Item3017,
  3631. /// <remarks/>
  3632. [System.Xml.Serialization.XmlEnumAttribute("3018")]
  3633. Item3018,
  3634. /// <remarks/>
  3635. [System.Xml.Serialization.XmlEnumAttribute("3019")]
  3636. Item3019,
  3637. /// <remarks/>
  3638. [System.Xml.Serialization.XmlEnumAttribute("3020")]
  3639. Item3020,
  3640. /// <remarks/>
  3641. [System.Xml.Serialization.XmlEnumAttribute("3021")]
  3642. Item3021,
  3643. /// <remarks/>
  3644. [System.Xml.Serialization.XmlEnumAttribute("3022")]
  3645. Item3022,
  3646. /// <remarks/>
  3647. [System.Xml.Serialization.XmlEnumAttribute("3023")]
  3648. Item3023,
  3649. /// <remarks/>
  3650. [System.Xml.Serialization.XmlEnumAttribute("3025")]
  3651. Item3025,
  3652. /// <remarks/>
  3653. [System.Xml.Serialization.XmlEnumAttribute("3026")]
  3654. Item3026,
  3655. /// <remarks/>
  3656. [System.Xml.Serialization.XmlEnumAttribute("3027")]
  3657. Item3027,
  3658. /// <remarks/>
  3659. [System.Xml.Serialization.XmlEnumAttribute("3028")]
  3660. Item3028,
  3661. /// <remarks/>
  3662. [System.Xml.Serialization.XmlEnumAttribute("3029")]
  3663. Item3029,
  3664. /// <remarks/>
  3665. [System.Xml.Serialization.XmlEnumAttribute("3030")]
  3666. Item3030,
  3667. /// <remarks/>
  3668. [System.Xml.Serialization.XmlEnumAttribute("3031")]
  3669. Item3031,
  3670. /// <remarks/>
  3671. [System.Xml.Serialization.XmlEnumAttribute("3032")]
  3672. Item3032,
  3673. /// <remarks/>
  3674. [System.Xml.Serialization.XmlEnumAttribute("3033")]
  3675. Item3033,
  3676. /// <remarks/>
  3677. [System.Xml.Serialization.XmlEnumAttribute("3034")]
  3678. Item3034,
  3679. /// <remarks/>
  3680. [System.Xml.Serialization.XmlEnumAttribute("3035")]
  3681. Item3035,
  3682. /// <remarks/>
  3683. [System.Xml.Serialization.XmlEnumAttribute("3036")]
  3684. Item3036,
  3685. /// <remarks/>
  3686. [System.Xml.Serialization.XmlEnumAttribute("3037")]
  3687. Item3037,
  3688. /// <remarks/>
  3689. [System.Xml.Serialization.XmlEnumAttribute("3038")]
  3690. Item3038,
  3691. /// <remarks/>
  3692. [System.Xml.Serialization.XmlEnumAttribute("3039")]
  3693. Item3039,
  3694. /// <remarks/>
  3695. [System.Xml.Serialization.XmlEnumAttribute("3071")]
  3696. Item3071,
  3697. /// <remarks/>
  3698. [System.Xml.Serialization.XmlEnumAttribute("3072")]
  3699. Item3072,
  3700. /// <remarks/>
  3701. [System.Xml.Serialization.XmlEnumAttribute("3202")]
  3702. Item3202,
  3703. /// <remarks/>
  3704. [System.Xml.Serialization.XmlEnumAttribute("3203")]
  3705. Item3203,
  3706. /// <remarks/>
  3707. [System.Xml.Serialization.XmlEnumAttribute("3204")]
  3708. Item3204,
  3709. /// <remarks/>
  3710. [System.Xml.Serialization.XmlEnumAttribute("3205")]
  3711. Item3205,
  3712. /// <remarks/>
  3713. [System.Xml.Serialization.XmlEnumAttribute("3206")]
  3714. Item3206,
  3715. /// <remarks/>
  3716. [System.Xml.Serialization.XmlEnumAttribute("3207")]
  3717. Item3207,
  3718. /// <remarks/>
  3719. [System.Xml.Serialization.XmlEnumAttribute("3208")]
  3720. Item3208,
  3721. /// <remarks/>
  3722. [System.Xml.Serialization.XmlEnumAttribute("3209")]
  3723. Item3209,
  3724. /// <remarks/>
  3725. [System.Xml.Serialization.XmlEnumAttribute("3210")]
  3726. Item3210,
  3727. /// <remarks/>
  3728. [System.Xml.Serialization.XmlEnumAttribute("3211")]
  3729. Item3211,
  3730. /// <remarks/>
  3731. [System.Xml.Serialization.XmlEnumAttribute("3212")]
  3732. Item3212,
  3733. /// <remarks/>
  3734. [System.Xml.Serialization.XmlEnumAttribute("3213")]
  3735. Item3213,
  3736. /// <remarks/>
  3737. [System.Xml.Serialization.XmlEnumAttribute("3214")]
  3738. Item3214,
  3739. /// <remarks/>
  3740. [System.Xml.Serialization.XmlEnumAttribute("3215")]
  3741. Item3215,
  3742. /// <remarks/>
  3743. [System.Xml.Serialization.XmlEnumAttribute("3216")]
  3744. Item3216,
  3745. /// <remarks/>
  3746. [System.Xml.Serialization.XmlEnumAttribute("3217")]
  3747. Item3217,
  3748. /// <remarks/>
  3749. [System.Xml.Serialization.XmlEnumAttribute("3218")]
  3750. Item3218,
  3751. /// <remarks/>
  3752. [System.Xml.Serialization.XmlEnumAttribute("3219")]
  3753. Item3219,
  3754. /// <remarks/>
  3755. [System.Xml.Serialization.XmlEnumAttribute("3220")]
  3756. Item3220,
  3757. /// <remarks/>
  3758. [System.Xml.Serialization.XmlEnumAttribute("3271")]
  3759. Item3271,
  3760. }
  3761. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3761.0")]
  3762. [System.SerializableAttribute()]
  3763. [System.Diagnostics.DebuggerStepThroughAttribute()]
  3764. [System.ComponentModel.DesignerCategoryAttribute("code")]
  3765. [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://crd.gov.pl/wzor/2020/05/08/9393/")]
  3766. public partial class JPKPodmiot1 : TPodmiotDowolnyBezAdresu
  3767. {
  3768. #region Private fields
  3769. private string _rola;
  3770. private static XmlSerializer serializer;
  3771. #endregion
  3772. public JPKPodmiot1()
  3773. {
  3774. this._rola = "Podatnik";
  3775. }
  3776. [System.Xml.Serialization.XmlAttributeAttribute()]
  3777. public string rola
  3778. {
  3779. get
  3780. {
  3781. return this._rola;
  3782. }
  3783. set
  3784. {
  3785. this._rola = value;
  3786. }
  3787. }
  3788. private static XmlSerializer Serializer
  3789. {
  3790. get
  3791. {
  3792. if ((serializer == null))
  3793. {
  3794. serializer = new XmlSerializerFactory().CreateSerializer(typeof(JPKPodmiot1));
  3795. }
  3796. return serializer;
  3797. }
  3798. }
  3799. /// <summary>
  3800. /// Test whether rola should be serialized
  3801. /// </summary>
  3802. public virtual bool ShouldSerializerola()
  3803. {
  3804. return !string.IsNullOrEmpty(rola);
  3805. }
  3806. #region Serialize/Deserialize
  3807. /// <summary>
  3808. /// Serializes current JPKPodmiot1 object into an XML string
  3809. /// </summary>
  3810. /// <returns>string XML value</returns>
  3811. public virtual string Serialize()
  3812. {
  3813. System.IO.StreamReader streamReader = null;
  3814. System.IO.MemoryStream memoryStream = null;
  3815. try
  3816. {
  3817. memoryStream = new System.IO.MemoryStream();
  3818. System.Xml.XmlWriterSettings xmlWriterSettings = new System.Xml.XmlWriterSettings();
  3819. System.Xml.XmlWriter xmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings);
  3820. Serializer.Serialize(xmlWriter, this);
  3821. memoryStream.Seek(0, SeekOrigin.Begin);
  3822. streamReader = new System.IO.StreamReader(memoryStream);
  3823. return streamReader.ReadToEnd();
  3824. }
  3825. finally
  3826. {
  3827. if ((streamReader != null))
  3828. {
  3829. streamReader.Dispose();
  3830. }
  3831. if ((memoryStream != null))
  3832. {
  3833. memoryStream.Dispose();
  3834. }
  3835. }
  3836. }
  3837. /// <summary>
  3838. /// Deserializes workflow markup into an JPKPodmiot1 object
  3839. /// </summary>
  3840. /// <param name="input">string workflow markup to deserialize</param>
  3841. /// <param name="obj">Output JPKPodmiot1 object</param>
  3842. /// <param name="exception">output Exception value if deserialize failed</param>
  3843. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  3844. public static bool Deserialize(string input, out JPKPodmiot1 obj, out System.Exception exception)
  3845. {
  3846. exception = null;
  3847. obj = default(JPKPodmiot1);
  3848. try
  3849. {
  3850. obj = Deserialize(input);
  3851. return true;
  3852. }
  3853. catch (System.Exception ex)
  3854. {
  3855. exception = ex;
  3856. return false;
  3857. }
  3858. }
  3859. public static bool Deserialize(string input, out JPKPodmiot1 obj)
  3860. {
  3861. System.Exception exception = null;
  3862. return Deserialize(input, out obj, out exception);
  3863. }
  3864. public new static JPKPodmiot1 Deserialize(string input)
  3865. {
  3866. System.IO.StringReader stringReader = null;
  3867. try
  3868. {
  3869. stringReader = new System.IO.StringReader(input);
  3870. return ((JPKPodmiot1)(Serializer.Deserialize(XmlReader.Create(stringReader))));
  3871. }
  3872. finally
  3873. {
  3874. if ((stringReader != null))
  3875. {
  3876. stringReader.Dispose();
  3877. }
  3878. }
  3879. }
  3880. public static JPKPodmiot1 Deserialize(System.IO.Stream s)
  3881. {
  3882. return ((JPKPodmiot1)(Serializer.Deserialize(s)));
  3883. }
  3884. #endregion
  3885. /// <summary>
  3886. /// Serializes current JPKPodmiot1 object into file
  3887. /// </summary>
  3888. /// <param name="fileName">full path of outupt xml file</param>
  3889. /// <param name="exception">output Exception value if failed</param>
  3890. /// <returns>true if can serialize and save into file; otherwise, false</returns>
  3891. public virtual bool SaveToFile(string fileName, out System.Exception exception)
  3892. {
  3893. exception = null;
  3894. try
  3895. {
  3896. SaveToFile(fileName);
  3897. return true;
  3898. }
  3899. catch (System.Exception e)
  3900. {
  3901. exception = e;
  3902. return false;
  3903. }
  3904. }
  3905. public virtual void SaveToFile(string fileName)
  3906. {
  3907. System.IO.StreamWriter streamWriter = null;
  3908. try
  3909. {
  3910. string xmlString = Serialize();
  3911. System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
  3912. streamWriter = xmlFile.CreateText();
  3913. streamWriter.WriteLine(xmlString);
  3914. streamWriter.Close();
  3915. }
  3916. finally
  3917. {
  3918. if ((streamWriter != null))
  3919. {
  3920. streamWriter.Dispose();
  3921. }
  3922. }
  3923. }
  3924. /// <summary>
  3925. /// Deserializes xml markup from file into an JPKPodmiot1 object
  3926. /// </summary>
  3927. /// <param name="fileName">string xml file to load and deserialize</param>
  3928. /// <param name="obj">Output JPKPodmiot1 object</param>
  3929. /// <param name="exception">output Exception value if deserialize failed</param>
  3930. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  3931. public static bool LoadFromFile(string fileName, out JPKPodmiot1 obj, out System.Exception exception)
  3932. {
  3933. exception = null;
  3934. obj = default(JPKPodmiot1);
  3935. try
  3936. {
  3937. obj = LoadFromFile(fileName);
  3938. return true;
  3939. }
  3940. catch (System.Exception ex)
  3941. {
  3942. exception = ex;
  3943. return false;
  3944. }
  3945. }
  3946. public static bool LoadFromFile(string fileName, out JPKPodmiot1 obj)
  3947. {
  3948. System.Exception exception = null;
  3949. return LoadFromFile(fileName, out obj, out exception);
  3950. }
  3951. public new static JPKPodmiot1 LoadFromFile(string fileName)
  3952. {
  3953. System.IO.FileStream file = null;
  3954. System.IO.StreamReader sr = null;
  3955. try
  3956. {
  3957. file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
  3958. sr = new System.IO.StreamReader(file);
  3959. string xmlString = sr.ReadToEnd();
  3960. sr.Close();
  3961. file.Close();
  3962. return Deserialize(xmlString);
  3963. }
  3964. finally
  3965. {
  3966. if ((file != null))
  3967. {
  3968. file.Dispose();
  3969. }
  3970. if ((sr != null))
  3971. {
  3972. sr.Dispose();
  3973. }
  3974. }
  3975. }
  3976. }
  3977. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3761.0")]
  3978. [System.SerializableAttribute()]
  3979. [System.Diagnostics.DebuggerStepThroughAttribute()]
  3980. [System.ComponentModel.DesignerCategoryAttribute("code")]
  3981. [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://crd.gov.pl/wzor/2020/05/08/9393/")]
  3982. public partial class JPKDeklaracja
  3983. {
  3984. #region Private fields
  3985. private bool _shouldSerializePouczenia;
  3986. private JPKDeklaracjaNaglowek _naglowek;
  3987. private JPKDeklaracjaPozycjeSzczegolowe _pozycjeSzczegolowe;
  3988. private decimal _pouczenia;
  3989. private static XmlSerializer serializer;
  3990. #endregion
  3991. public JPKDeklaracjaNaglowek Naglowek
  3992. {
  3993. get
  3994. {
  3995. return this._naglowek;
  3996. }
  3997. set
  3998. {
  3999. this._naglowek = value;
  4000. }
  4001. }
  4002. public JPKDeklaracjaPozycjeSzczegolowe PozycjeSzczegolowe
  4003. {
  4004. get
  4005. {
  4006. return this._pozycjeSzczegolowe;
  4007. }
  4008. set
  4009. {
  4010. this._pozycjeSzczegolowe = value;
  4011. }
  4012. }
  4013. public decimal Pouczenia
  4014. {
  4015. get
  4016. {
  4017. return this._pouczenia;
  4018. }
  4019. set
  4020. {
  4021. this._pouczenia = value;
  4022. _shouldSerializePouczenia = true;
  4023. }
  4024. }
  4025. private static XmlSerializer Serializer
  4026. {
  4027. get
  4028. {
  4029. if ((serializer == null))
  4030. {
  4031. serializer = new XmlSerializerFactory().CreateSerializer(typeof(JPKDeklaracja));
  4032. }
  4033. return serializer;
  4034. }
  4035. }
  4036. /// <summary>
  4037. /// Test whether Pouczenia should be serialized
  4038. /// </summary>
  4039. public virtual bool ShouldSerializePouczenia()
  4040. {
  4041. if (_shouldSerializePouczenia)
  4042. {
  4043. return true;
  4044. }
  4045. return (_pouczenia != default(decimal));
  4046. }
  4047. /// <summary>
  4048. /// Test whether Naglowek should be serialized
  4049. /// </summary>
  4050. public virtual bool ShouldSerializeNaglowek()
  4051. {
  4052. return (_naglowek != null);
  4053. }
  4054. /// <summary>
  4055. /// Test whether PozycjeSzczegolowe should be serialized
  4056. /// </summary>
  4057. public virtual bool ShouldSerializePozycjeSzczegolowe()
  4058. {
  4059. return (_pozycjeSzczegolowe != null);
  4060. }
  4061. #region Serialize/Deserialize
  4062. /// <summary>
  4063. /// Serializes current JPKDeklaracja object into an XML string
  4064. /// </summary>
  4065. /// <returns>string XML value</returns>
  4066. public virtual string Serialize()
  4067. {
  4068. System.IO.StreamReader streamReader = null;
  4069. System.IO.MemoryStream memoryStream = null;
  4070. try
  4071. {
  4072. memoryStream = new System.IO.MemoryStream();
  4073. System.Xml.XmlWriterSettings xmlWriterSettings = new System.Xml.XmlWriterSettings();
  4074. System.Xml.XmlWriter xmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings);
  4075. Serializer.Serialize(xmlWriter, this);
  4076. memoryStream.Seek(0, SeekOrigin.Begin);
  4077. streamReader = new System.IO.StreamReader(memoryStream);
  4078. return streamReader.ReadToEnd();
  4079. }
  4080. finally
  4081. {
  4082. if ((streamReader != null))
  4083. {
  4084. streamReader.Dispose();
  4085. }
  4086. if ((memoryStream != null))
  4087. {
  4088. memoryStream.Dispose();
  4089. }
  4090. }
  4091. }
  4092. /// <summary>
  4093. /// Deserializes workflow markup into an JPKDeklaracja object
  4094. /// </summary>
  4095. /// <param name="input">string workflow markup to deserialize</param>
  4096. /// <param name="obj">Output JPKDeklaracja object</param>
  4097. /// <param name="exception">output Exception value if deserialize failed</param>
  4098. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  4099. public static bool Deserialize(string input, out JPKDeklaracja obj, out System.Exception exception)
  4100. {
  4101. exception = null;
  4102. obj = default(JPKDeklaracja);
  4103. try
  4104. {
  4105. obj = Deserialize(input);
  4106. return true;
  4107. }
  4108. catch (System.Exception ex)
  4109. {
  4110. exception = ex;
  4111. return false;
  4112. }
  4113. }
  4114. public static bool Deserialize(string input, out JPKDeklaracja obj)
  4115. {
  4116. System.Exception exception = null;
  4117. return Deserialize(input, out obj, out exception);
  4118. }
  4119. public static JPKDeklaracja Deserialize(string input)
  4120. {
  4121. System.IO.StringReader stringReader = null;
  4122. try
  4123. {
  4124. stringReader = new System.IO.StringReader(input);
  4125. return ((JPKDeklaracja)(Serializer.Deserialize(XmlReader.Create(stringReader))));
  4126. }
  4127. finally
  4128. {
  4129. if ((stringReader != null))
  4130. {
  4131. stringReader.Dispose();
  4132. }
  4133. }
  4134. }
  4135. public static JPKDeklaracja Deserialize(System.IO.Stream s)
  4136. {
  4137. return ((JPKDeklaracja)(Serializer.Deserialize(s)));
  4138. }
  4139. #endregion
  4140. /// <summary>
  4141. /// Serializes current JPKDeklaracja object into file
  4142. /// </summary>
  4143. /// <param name="fileName">full path of outupt xml file</param>
  4144. /// <param name="exception">output Exception value if failed</param>
  4145. /// <returns>true if can serialize and save into file; otherwise, false</returns>
  4146. public virtual bool SaveToFile(string fileName, out System.Exception exception)
  4147. {
  4148. exception = null;
  4149. try
  4150. {
  4151. SaveToFile(fileName);
  4152. return true;
  4153. }
  4154. catch (System.Exception e)
  4155. {
  4156. exception = e;
  4157. return false;
  4158. }
  4159. }
  4160. public virtual void SaveToFile(string fileName)
  4161. {
  4162. System.IO.StreamWriter streamWriter = null;
  4163. try
  4164. {
  4165. string xmlString = Serialize();
  4166. System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
  4167. streamWriter = xmlFile.CreateText();
  4168. streamWriter.WriteLine(xmlString);
  4169. streamWriter.Close();
  4170. }
  4171. finally
  4172. {
  4173. if ((streamWriter != null))
  4174. {
  4175. streamWriter.Dispose();
  4176. }
  4177. }
  4178. }
  4179. /// <summary>
  4180. /// Deserializes xml markup from file into an JPKDeklaracja object
  4181. /// </summary>
  4182. /// <param name="fileName">string xml file to load and deserialize</param>
  4183. /// <param name="obj">Output JPKDeklaracja object</param>
  4184. /// <param name="exception">output Exception value if deserialize failed</param>
  4185. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  4186. public static bool LoadFromFile(string fileName, out JPKDeklaracja obj, out System.Exception exception)
  4187. {
  4188. exception = null;
  4189. obj = default(JPKDeklaracja);
  4190. try
  4191. {
  4192. obj = LoadFromFile(fileName);
  4193. return true;
  4194. }
  4195. catch (System.Exception ex)
  4196. {
  4197. exception = ex;
  4198. return false;
  4199. }
  4200. }
  4201. public static bool LoadFromFile(string fileName, out JPKDeklaracja obj)
  4202. {
  4203. System.Exception exception = null;
  4204. return LoadFromFile(fileName, out obj, out exception);
  4205. }
  4206. public static JPKDeklaracja LoadFromFile(string fileName)
  4207. {
  4208. System.IO.FileStream file = null;
  4209. System.IO.StreamReader sr = null;
  4210. try
  4211. {
  4212. file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
  4213. sr = new System.IO.StreamReader(file);
  4214. string xmlString = sr.ReadToEnd();
  4215. sr.Close();
  4216. file.Close();
  4217. return Deserialize(xmlString);
  4218. }
  4219. finally
  4220. {
  4221. if ((file != null))
  4222. {
  4223. file.Dispose();
  4224. }
  4225. if ((sr != null))
  4226. {
  4227. sr.Dispose();
  4228. }
  4229. }
  4230. }
  4231. }
  4232. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3761.0")]
  4233. [System.SerializableAttribute()]
  4234. [System.Diagnostics.DebuggerStepThroughAttribute()]
  4235. [System.ComponentModel.DesignerCategoryAttribute("code")]
  4236. [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://crd.gov.pl/wzor/2020/05/08/9393/")]
  4237. public partial class JPKDeklaracjaNaglowek
  4238. {
  4239. #region Private fields
  4240. private bool _shouldSerializeWariantFormularzaDekl;
  4241. private JPKDeklaracjaNaglowekKodFormularzaDekl _kodFormularzaDekl;
  4242. private sbyte _wariantFormularzaDekl;
  4243. private static XmlSerializer serializer;
  4244. #endregion
  4245. public JPKDeklaracjaNaglowekKodFormularzaDekl KodFormularzaDekl
  4246. {
  4247. get
  4248. {
  4249. return this._kodFormularzaDekl;
  4250. }
  4251. set
  4252. {
  4253. this._kodFormularzaDekl = value;
  4254. }
  4255. }
  4256. public sbyte WariantFormularzaDekl
  4257. {
  4258. get
  4259. {
  4260. return this._wariantFormularzaDekl;
  4261. }
  4262. set
  4263. {
  4264. this._wariantFormularzaDekl = value;
  4265. _shouldSerializeWariantFormularzaDekl = true;
  4266. }
  4267. }
  4268. private static XmlSerializer Serializer
  4269. {
  4270. get
  4271. {
  4272. if ((serializer == null))
  4273. {
  4274. serializer = new XmlSerializerFactory().CreateSerializer(typeof(JPKDeklaracjaNaglowek));
  4275. }
  4276. return serializer;
  4277. }
  4278. }
  4279. /// <summary>
  4280. /// Test whether WariantFormularzaDekl should be serialized
  4281. /// </summary>
  4282. public virtual bool ShouldSerializeWariantFormularzaDekl()
  4283. {
  4284. if (_shouldSerializeWariantFormularzaDekl)
  4285. {
  4286. return true;
  4287. }
  4288. return (_wariantFormularzaDekl != default(sbyte));
  4289. }
  4290. /// <summary>
  4291. /// Test whether KodFormularzaDekl should be serialized
  4292. /// </summary>
  4293. public virtual bool ShouldSerializeKodFormularzaDekl()
  4294. {
  4295. return (_kodFormularzaDekl != null);
  4296. }
  4297. #region Serialize/Deserialize
  4298. /// <summary>
  4299. /// Serializes current JPKDeklaracjaNaglowek object into an XML string
  4300. /// </summary>
  4301. /// <returns>string XML value</returns>
  4302. public virtual string Serialize()
  4303. {
  4304. System.IO.StreamReader streamReader = null;
  4305. System.IO.MemoryStream memoryStream = null;
  4306. try
  4307. {
  4308. memoryStream = new System.IO.MemoryStream();
  4309. System.Xml.XmlWriterSettings xmlWriterSettings = new System.Xml.XmlWriterSettings();
  4310. System.Xml.XmlWriter xmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings);
  4311. Serializer.Serialize(xmlWriter, this);
  4312. memoryStream.Seek(0, SeekOrigin.Begin);
  4313. streamReader = new System.IO.StreamReader(memoryStream);
  4314. return streamReader.ReadToEnd();
  4315. }
  4316. finally
  4317. {
  4318. if ((streamReader != null))
  4319. {
  4320. streamReader.Dispose();
  4321. }
  4322. if ((memoryStream != null))
  4323. {
  4324. memoryStream.Dispose();
  4325. }
  4326. }
  4327. }
  4328. /// <summary>
  4329. /// Deserializes workflow markup into an JPKDeklaracjaNaglowek object
  4330. /// </summary>
  4331. /// <param name="input">string workflow markup to deserialize</param>
  4332. /// <param name="obj">Output JPKDeklaracjaNaglowek object</param>
  4333. /// <param name="exception">output Exception value if deserialize failed</param>
  4334. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  4335. public static bool Deserialize(string input, out JPKDeklaracjaNaglowek obj, out System.Exception exception)
  4336. {
  4337. exception = null;
  4338. obj = default(JPKDeklaracjaNaglowek);
  4339. try
  4340. {
  4341. obj = Deserialize(input);
  4342. return true;
  4343. }
  4344. catch (System.Exception ex)
  4345. {
  4346. exception = ex;
  4347. return false;
  4348. }
  4349. }
  4350. public static bool Deserialize(string input, out JPKDeklaracjaNaglowek obj)
  4351. {
  4352. System.Exception exception = null;
  4353. return Deserialize(input, out obj, out exception);
  4354. }
  4355. public static JPKDeklaracjaNaglowek Deserialize(string input)
  4356. {
  4357. System.IO.StringReader stringReader = null;
  4358. try
  4359. {
  4360. stringReader = new System.IO.StringReader(input);
  4361. return ((JPKDeklaracjaNaglowek)(Serializer.Deserialize(XmlReader.Create(stringReader))));
  4362. }
  4363. finally
  4364. {
  4365. if ((stringReader != null))
  4366. {
  4367. stringReader.Dispose();
  4368. }
  4369. }
  4370. }
  4371. public static JPKDeklaracjaNaglowek Deserialize(System.IO.Stream s)
  4372. {
  4373. return ((JPKDeklaracjaNaglowek)(Serializer.Deserialize(s)));
  4374. }
  4375. #endregion
  4376. /// <summary>
  4377. /// Serializes current JPKDeklaracjaNaglowek object into file
  4378. /// </summary>
  4379. /// <param name="fileName">full path of outupt xml file</param>
  4380. /// <param name="exception">output Exception value if failed</param>
  4381. /// <returns>true if can serialize and save into file; otherwise, false</returns>
  4382. public virtual bool SaveToFile(string fileName, out System.Exception exception)
  4383. {
  4384. exception = null;
  4385. try
  4386. {
  4387. SaveToFile(fileName);
  4388. return true;
  4389. }
  4390. catch (System.Exception e)
  4391. {
  4392. exception = e;
  4393. return false;
  4394. }
  4395. }
  4396. public virtual void SaveToFile(string fileName)
  4397. {
  4398. System.IO.StreamWriter streamWriter = null;
  4399. try
  4400. {
  4401. string xmlString = Serialize();
  4402. System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
  4403. streamWriter = xmlFile.CreateText();
  4404. streamWriter.WriteLine(xmlString);
  4405. streamWriter.Close();
  4406. }
  4407. finally
  4408. {
  4409. if ((streamWriter != null))
  4410. {
  4411. streamWriter.Dispose();
  4412. }
  4413. }
  4414. }
  4415. /// <summary>
  4416. /// Deserializes xml markup from file into an JPKDeklaracjaNaglowek object
  4417. /// </summary>
  4418. /// <param name="fileName">string xml file to load and deserialize</param>
  4419. /// <param name="obj">Output JPKDeklaracjaNaglowek object</param>
  4420. /// <param name="exception">output Exception value if deserialize failed</param>
  4421. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  4422. public static bool LoadFromFile(string fileName, out JPKDeklaracjaNaglowek obj, out System.Exception exception)
  4423. {
  4424. exception = null;
  4425. obj = default(JPKDeklaracjaNaglowek);
  4426. try
  4427. {
  4428. obj = LoadFromFile(fileName);
  4429. return true;
  4430. }
  4431. catch (System.Exception ex)
  4432. {
  4433. exception = ex;
  4434. return false;
  4435. }
  4436. }
  4437. public static bool LoadFromFile(string fileName, out JPKDeklaracjaNaglowek obj)
  4438. {
  4439. System.Exception exception = null;
  4440. return LoadFromFile(fileName, out obj, out exception);
  4441. }
  4442. public static JPKDeklaracjaNaglowek LoadFromFile(string fileName)
  4443. {
  4444. System.IO.FileStream file = null;
  4445. System.IO.StreamReader sr = null;
  4446. try
  4447. {
  4448. file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
  4449. sr = new System.IO.StreamReader(file);
  4450. string xmlString = sr.ReadToEnd();
  4451. sr.Close();
  4452. file.Close();
  4453. return Deserialize(xmlString);
  4454. }
  4455. finally
  4456. {
  4457. if ((file != null))
  4458. {
  4459. file.Dispose();
  4460. }
  4461. if ((sr != null))
  4462. {
  4463. sr.Dispose();
  4464. }
  4465. }
  4466. }
  4467. }
  4468. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3761.0")]
  4469. [System.SerializableAttribute()]
  4470. [System.Diagnostics.DebuggerStepThroughAttribute()]
  4471. [System.ComponentModel.DesignerCategoryAttribute("code")]
  4472. [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://crd.gov.pl/wzor/2020/05/08/9393/")]
  4473. public partial class JPKDeklaracjaNaglowekKodFormularzaDekl
  4474. {
  4475. #region Private fields
  4476. private bool _shouldSerializeValue;
  4477. private string _kodSystemowy;
  4478. private string _kodPodatku;
  4479. private string _rodzajZobowiazania;
  4480. private string _wersjaSchemy;
  4481. private TKodFormularzaVAT7 _value;
  4482. private static XmlSerializer serializer;
  4483. #endregion
  4484. public JPKDeklaracjaNaglowekKodFormularzaDekl()
  4485. {
  4486. this._kodSystemowy = "VAT-7 (21)";
  4487. this._kodPodatku = "VAT";
  4488. this._rodzajZobowiazania = "Z";
  4489. this._wersjaSchemy = "1-2E";
  4490. }
  4491. [System.Xml.Serialization.XmlAttributeAttribute()]
  4492. public string kodSystemowy
  4493. {
  4494. get
  4495. {
  4496. return this._kodSystemowy;
  4497. }
  4498. set
  4499. {
  4500. this._kodSystemowy = value;
  4501. }
  4502. }
  4503. [System.Xml.Serialization.XmlAttributeAttribute()]
  4504. public string kodPodatku
  4505. {
  4506. get
  4507. {
  4508. return this._kodPodatku;
  4509. }
  4510. set
  4511. {
  4512. this._kodPodatku = value;
  4513. }
  4514. }
  4515. [System.Xml.Serialization.XmlAttributeAttribute(DataType = "token")]
  4516. public string rodzajZobowiazania
  4517. {
  4518. get
  4519. {
  4520. return this._rodzajZobowiazania;
  4521. }
  4522. set
  4523. {
  4524. this._rodzajZobowiazania = value;
  4525. }
  4526. }
  4527. [System.Xml.Serialization.XmlAttributeAttribute()]
  4528. public string wersjaSchemy
  4529. {
  4530. get
  4531. {
  4532. return this._wersjaSchemy;
  4533. }
  4534. set
  4535. {
  4536. this._wersjaSchemy = value;
  4537. }
  4538. }
  4539. [System.Xml.Serialization.XmlTextAttribute()]
  4540. public TKodFormularzaVAT7 Value
  4541. {
  4542. get
  4543. {
  4544. return this._value;
  4545. }
  4546. set
  4547. {
  4548. this._value = value;
  4549. _shouldSerializeValue = true;
  4550. }
  4551. }
  4552. private static XmlSerializer Serializer
  4553. {
  4554. get
  4555. {
  4556. if ((serializer == null))
  4557. {
  4558. serializer = new XmlSerializerFactory().CreateSerializer(typeof(JPKDeklaracjaNaglowekKodFormularzaDekl));
  4559. }
  4560. return serializer;
  4561. }
  4562. }
  4563. /// <summary>
  4564. /// Test whether Value should be serialized
  4565. /// </summary>
  4566. public virtual bool ShouldSerializeValue()
  4567. {
  4568. if (_shouldSerializeValue)
  4569. {
  4570. return true;
  4571. }
  4572. return (_value != default(TKodFormularzaVAT7));
  4573. }
  4574. /// <summary>
  4575. /// Test whether kodSystemowy should be serialized
  4576. /// </summary>
  4577. public virtual bool ShouldSerializekodSystemowy()
  4578. {
  4579. return !string.IsNullOrEmpty(kodSystemowy);
  4580. }
  4581. /// <summary>
  4582. /// Test whether kodPodatku should be serialized
  4583. /// </summary>
  4584. public virtual bool ShouldSerializekodPodatku()
  4585. {
  4586. return !string.IsNullOrEmpty(kodPodatku);
  4587. }
  4588. /// <summary>
  4589. /// Test whether rodzajZobowiazania should be serialized
  4590. /// </summary>
  4591. public virtual bool ShouldSerializerodzajZobowiazania()
  4592. {
  4593. return !string.IsNullOrEmpty(rodzajZobowiazania);
  4594. }
  4595. /// <summary>
  4596. /// Test whether wersjaSchemy should be serialized
  4597. /// </summary>
  4598. public virtual bool ShouldSerializewersjaSchemy()
  4599. {
  4600. return !string.IsNullOrEmpty(wersjaSchemy);
  4601. }
  4602. #region Serialize/Deserialize
  4603. /// <summary>
  4604. /// Serializes current JPKDeklaracjaNaglowekKodFormularzaDekl object into an XML string
  4605. /// </summary>
  4606. /// <returns>string XML value</returns>
  4607. public virtual string Serialize()
  4608. {
  4609. System.IO.StreamReader streamReader = null;
  4610. System.IO.MemoryStream memoryStream = null;
  4611. try
  4612. {
  4613. memoryStream = new System.IO.MemoryStream();
  4614. System.Xml.XmlWriterSettings xmlWriterSettings = new System.Xml.XmlWriterSettings();
  4615. System.Xml.XmlWriter xmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings);
  4616. Serializer.Serialize(xmlWriter, this);
  4617. memoryStream.Seek(0, SeekOrigin.Begin);
  4618. streamReader = new System.IO.StreamReader(memoryStream);
  4619. return streamReader.ReadToEnd();
  4620. }
  4621. finally
  4622. {
  4623. if ((streamReader != null))
  4624. {
  4625. streamReader.Dispose();
  4626. }
  4627. if ((memoryStream != null))
  4628. {
  4629. memoryStream.Dispose();
  4630. }
  4631. }
  4632. }
  4633. /// <summary>
  4634. /// Deserializes workflow markup into an JPKDeklaracjaNaglowekKodFormularzaDekl object
  4635. /// </summary>
  4636. /// <param name="input">string workflow markup to deserialize</param>
  4637. /// <param name="obj">Output JPKDeklaracjaNaglowekKodFormularzaDekl object</param>
  4638. /// <param name="exception">output Exception value if deserialize failed</param>
  4639. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  4640. public static bool Deserialize(string input, out JPKDeklaracjaNaglowekKodFormularzaDekl obj, out System.Exception exception)
  4641. {
  4642. exception = null;
  4643. obj = default(JPKDeklaracjaNaglowekKodFormularzaDekl);
  4644. try
  4645. {
  4646. obj = Deserialize(input);
  4647. return true;
  4648. }
  4649. catch (System.Exception ex)
  4650. {
  4651. exception = ex;
  4652. return false;
  4653. }
  4654. }
  4655. public static bool Deserialize(string input, out JPKDeklaracjaNaglowekKodFormularzaDekl obj)
  4656. {
  4657. System.Exception exception = null;
  4658. return Deserialize(input, out obj, out exception);
  4659. }
  4660. public static JPKDeklaracjaNaglowekKodFormularzaDekl Deserialize(string input)
  4661. {
  4662. System.IO.StringReader stringReader = null;
  4663. try
  4664. {
  4665. stringReader = new System.IO.StringReader(input);
  4666. return ((JPKDeklaracjaNaglowekKodFormularzaDekl)(Serializer.Deserialize(XmlReader.Create(stringReader))));
  4667. }
  4668. finally
  4669. {
  4670. if ((stringReader != null))
  4671. {
  4672. stringReader.Dispose();
  4673. }
  4674. }
  4675. }
  4676. public static JPKDeklaracjaNaglowekKodFormularzaDekl Deserialize(System.IO.Stream s)
  4677. {
  4678. return ((JPKDeklaracjaNaglowekKodFormularzaDekl)(Serializer.Deserialize(s)));
  4679. }
  4680. #endregion
  4681. /// <summary>
  4682. /// Serializes current JPKDeklaracjaNaglowekKodFormularzaDekl object into file
  4683. /// </summary>
  4684. /// <param name="fileName">full path of outupt xml file</param>
  4685. /// <param name="exception">output Exception value if failed</param>
  4686. /// <returns>true if can serialize and save into file; otherwise, false</returns>
  4687. public virtual bool SaveToFile(string fileName, out System.Exception exception)
  4688. {
  4689. exception = null;
  4690. try
  4691. {
  4692. SaveToFile(fileName);
  4693. return true;
  4694. }
  4695. catch (System.Exception e)
  4696. {
  4697. exception = e;
  4698. return false;
  4699. }
  4700. }
  4701. public virtual void SaveToFile(string fileName)
  4702. {
  4703. System.IO.StreamWriter streamWriter = null;
  4704. try
  4705. {
  4706. string xmlString = Serialize();
  4707. System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
  4708. streamWriter = xmlFile.CreateText();
  4709. streamWriter.WriteLine(xmlString);
  4710. streamWriter.Close();
  4711. }
  4712. finally
  4713. {
  4714. if ((streamWriter != null))
  4715. {
  4716. streamWriter.Dispose();
  4717. }
  4718. }
  4719. }
  4720. /// <summary>
  4721. /// Deserializes xml markup from file into an JPKDeklaracjaNaglowekKodFormularzaDekl object
  4722. /// </summary>
  4723. /// <param name="fileName">string xml file to load and deserialize</param>
  4724. /// <param name="obj">Output JPKDeklaracjaNaglowekKodFormularzaDekl object</param>
  4725. /// <param name="exception">output Exception value if deserialize failed</param>
  4726. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  4727. public static bool LoadFromFile(string fileName, out JPKDeklaracjaNaglowekKodFormularzaDekl obj, out System.Exception exception)
  4728. {
  4729. exception = null;
  4730. obj = default(JPKDeklaracjaNaglowekKodFormularzaDekl);
  4731. try
  4732. {
  4733. obj = LoadFromFile(fileName);
  4734. return true;
  4735. }
  4736. catch (System.Exception ex)
  4737. {
  4738. exception = ex;
  4739. return false;
  4740. }
  4741. }
  4742. public static bool LoadFromFile(string fileName, out JPKDeklaracjaNaglowekKodFormularzaDekl obj)
  4743. {
  4744. System.Exception exception = null;
  4745. return LoadFromFile(fileName, out obj, out exception);
  4746. }
  4747. public static JPKDeklaracjaNaglowekKodFormularzaDekl LoadFromFile(string fileName)
  4748. {
  4749. System.IO.FileStream file = null;
  4750. System.IO.StreamReader sr = null;
  4751. try
  4752. {
  4753. file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
  4754. sr = new System.IO.StreamReader(file);
  4755. string xmlString = sr.ReadToEnd();
  4756. sr.Close();
  4757. file.Close();
  4758. return Deserialize(xmlString);
  4759. }
  4760. finally
  4761. {
  4762. if ((file != null))
  4763. {
  4764. file.Dispose();
  4765. }
  4766. if ((sr != null))
  4767. {
  4768. sr.Dispose();
  4769. }
  4770. }
  4771. }
  4772. }
  4773. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3761.0")]
  4774. [System.SerializableAttribute()]
  4775. [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://crd.gov.pl/wzor/2020/05/08/9393/")]
  4776. public enum TKodFormularzaVAT7
  4777. {
  4778. /// <remarks/>
  4779. [System.Xml.Serialization.XmlEnumAttribute("VAT-7")]
  4780. VAT7,
  4781. }
  4782. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3761.0")]
  4783. [System.SerializableAttribute()]
  4784. [System.Diagnostics.DebuggerStepThroughAttribute()]
  4785. [System.ComponentModel.DesignerCategoryAttribute("code")]
  4786. [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://crd.gov.pl/wzor/2020/05/08/9393/")]
  4787. public partial class JPKDeklaracjaPozycjeSzczegolowe
  4788. {
  4789. #region Private fields
  4790. private bool _shouldSerializeItemElementName;
  4791. private bool _shouldSerializeP_67;
  4792. private bool _shouldSerializeP_66;
  4793. private bool _shouldSerializeP_65;
  4794. private bool _shouldSerializeP_64;
  4795. private bool _shouldSerializeP_63;
  4796. private bool _shouldSerializeP_59;
  4797. private bool _shouldSerializeItem;
  4798. private string _p_10;
  4799. private string _p_11;
  4800. private string _p_12;
  4801. private string _p_13;
  4802. private string _p_14;
  4803. private string _p_15;
  4804. private string _p_16;
  4805. private string _p_17;
  4806. private string _p_18;
  4807. private string _p_19;
  4808. private string _p_20;
  4809. private string _p_21;
  4810. private string _p_22;
  4811. private string _p_23;
  4812. private string _p_24;
  4813. private string _p_25;
  4814. private string _p_26;
  4815. private string _p_27;
  4816. private string _p_28;
  4817. private string _p_29;
  4818. private string _p_30;
  4819. private string _p_31;
  4820. private string _p_32;
  4821. private string _p_33;
  4822. private string _p_34;
  4823. private string _p_35;
  4824. private string _p_36;
  4825. private string _p_37;
  4826. private string _p_38;
  4827. private string _p_39;
  4828. private string _p_40;
  4829. private string _p_41;
  4830. private string _p_42;
  4831. private string _p_43;
  4832. private string _p_44;
  4833. private string _p_45;
  4834. private string _p_46;
  4835. private string _p_47;
  4836. private string _p_48;
  4837. private string _p_49;
  4838. private string _p_50;
  4839. private string _p_51;
  4840. private string _p_52;
  4841. private string _p_53;
  4842. private string _p_54;
  4843. private sbyte _item;
  4844. private ItemChoiceType _itemElementName;
  4845. private sbyte _p_59;
  4846. private string _p_60;
  4847. private string _p_61;
  4848. private string _p_62;
  4849. private sbyte _p_63;
  4850. private sbyte _p_64;
  4851. private sbyte _p_65;
  4852. private sbyte _p_66;
  4853. private sbyte _p_67;
  4854. private string _p_68;
  4855. private string _p_69;
  4856. private string _p_ORDZU;
  4857. private static XmlSerializer serializer;
  4858. #endregion
  4859. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  4860. public string P_10
  4861. {
  4862. get
  4863. {
  4864. return this._p_10;
  4865. }
  4866. set
  4867. {
  4868. this._p_10 = value;
  4869. }
  4870. }
  4871. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  4872. public string P_11
  4873. {
  4874. get
  4875. {
  4876. return this._p_11;
  4877. }
  4878. set
  4879. {
  4880. this._p_11 = value;
  4881. }
  4882. }
  4883. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  4884. public string P_12
  4885. {
  4886. get
  4887. {
  4888. return this._p_12;
  4889. }
  4890. set
  4891. {
  4892. this._p_12 = value;
  4893. }
  4894. }
  4895. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  4896. public string P_13
  4897. {
  4898. get
  4899. {
  4900. return this._p_13;
  4901. }
  4902. set
  4903. {
  4904. this._p_13 = value;
  4905. }
  4906. }
  4907. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  4908. public string P_14
  4909. {
  4910. get
  4911. {
  4912. return this._p_14;
  4913. }
  4914. set
  4915. {
  4916. this._p_14 = value;
  4917. }
  4918. }
  4919. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  4920. public string P_15
  4921. {
  4922. get
  4923. {
  4924. return this._p_15;
  4925. }
  4926. set
  4927. {
  4928. this._p_15 = value;
  4929. }
  4930. }
  4931. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  4932. public string P_16
  4933. {
  4934. get
  4935. {
  4936. return this._p_16;
  4937. }
  4938. set
  4939. {
  4940. this._p_16 = value;
  4941. }
  4942. }
  4943. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  4944. public string P_17
  4945. {
  4946. get
  4947. {
  4948. return this._p_17;
  4949. }
  4950. set
  4951. {
  4952. this._p_17 = value;
  4953. }
  4954. }
  4955. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  4956. public string P_18
  4957. {
  4958. get
  4959. {
  4960. return this._p_18;
  4961. }
  4962. set
  4963. {
  4964. this._p_18 = value;
  4965. }
  4966. }
  4967. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  4968. public string P_19
  4969. {
  4970. get
  4971. {
  4972. return this._p_19;
  4973. }
  4974. set
  4975. {
  4976. this._p_19 = value;
  4977. }
  4978. }
  4979. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  4980. public string P_20
  4981. {
  4982. get
  4983. {
  4984. return this._p_20;
  4985. }
  4986. set
  4987. {
  4988. this._p_20 = value;
  4989. }
  4990. }
  4991. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  4992. public string P_21
  4993. {
  4994. get
  4995. {
  4996. return this._p_21;
  4997. }
  4998. set
  4999. {
  5000. this._p_21 = value;
  5001. }
  5002. }
  5003. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  5004. public string P_22
  5005. {
  5006. get
  5007. {
  5008. return this._p_22;
  5009. }
  5010. set
  5011. {
  5012. this._p_22 = value;
  5013. }
  5014. }
  5015. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  5016. public string P_23
  5017. {
  5018. get
  5019. {
  5020. return this._p_23;
  5021. }
  5022. set
  5023. {
  5024. this._p_23 = value;
  5025. }
  5026. }
  5027. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  5028. public string P_24
  5029. {
  5030. get
  5031. {
  5032. return this._p_24;
  5033. }
  5034. set
  5035. {
  5036. this._p_24 = value;
  5037. }
  5038. }
  5039. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  5040. public string P_25
  5041. {
  5042. get
  5043. {
  5044. return this._p_25;
  5045. }
  5046. set
  5047. {
  5048. this._p_25 = value;
  5049. }
  5050. }
  5051. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  5052. public string P_26
  5053. {
  5054. get
  5055. {
  5056. return this._p_26;
  5057. }
  5058. set
  5059. {
  5060. this._p_26 = value;
  5061. }
  5062. }
  5063. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  5064. public string P_27
  5065. {
  5066. get
  5067. {
  5068. return this._p_27;
  5069. }
  5070. set
  5071. {
  5072. this._p_27 = value;
  5073. }
  5074. }
  5075. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  5076. public string P_28
  5077. {
  5078. get
  5079. {
  5080. return this._p_28;
  5081. }
  5082. set
  5083. {
  5084. this._p_28 = value;
  5085. }
  5086. }
  5087. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  5088. public string P_29
  5089. {
  5090. get
  5091. {
  5092. return this._p_29;
  5093. }
  5094. set
  5095. {
  5096. this._p_29 = value;
  5097. }
  5098. }
  5099. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  5100. public string P_30
  5101. {
  5102. get
  5103. {
  5104. return this._p_30;
  5105. }
  5106. set
  5107. {
  5108. this._p_30 = value;
  5109. }
  5110. }
  5111. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  5112. public string P_31
  5113. {
  5114. get
  5115. {
  5116. return this._p_31;
  5117. }
  5118. set
  5119. {
  5120. this._p_31 = value;
  5121. }
  5122. }
  5123. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  5124. public string P_32
  5125. {
  5126. get
  5127. {
  5128. return this._p_32;
  5129. }
  5130. set
  5131. {
  5132. this._p_32 = value;
  5133. }
  5134. }
  5135. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  5136. public string P_33
  5137. {
  5138. get
  5139. {
  5140. return this._p_33;
  5141. }
  5142. set
  5143. {
  5144. this._p_33 = value;
  5145. }
  5146. }
  5147. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  5148. public string P_34
  5149. {
  5150. get
  5151. {
  5152. return this._p_34;
  5153. }
  5154. set
  5155. {
  5156. this._p_34 = value;
  5157. }
  5158. }
  5159. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  5160. public string P_35
  5161. {
  5162. get
  5163. {
  5164. return this._p_35;
  5165. }
  5166. set
  5167. {
  5168. this._p_35 = value;
  5169. }
  5170. }
  5171. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  5172. public string P_36
  5173. {
  5174. get
  5175. {
  5176. return this._p_36;
  5177. }
  5178. set
  5179. {
  5180. this._p_36 = value;
  5181. }
  5182. }
  5183. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  5184. public string P_37
  5185. {
  5186. get
  5187. {
  5188. return this._p_37;
  5189. }
  5190. set
  5191. {
  5192. this._p_37 = value;
  5193. }
  5194. }
  5195. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  5196. public string P_38
  5197. {
  5198. get
  5199. {
  5200. return this._p_38;
  5201. }
  5202. set
  5203. {
  5204. this._p_38 = value;
  5205. }
  5206. }
  5207. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  5208. public string P_39
  5209. {
  5210. get
  5211. {
  5212. return this._p_39;
  5213. }
  5214. set
  5215. {
  5216. this._p_39 = value;
  5217. }
  5218. }
  5219. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  5220. public string P_40
  5221. {
  5222. get
  5223. {
  5224. return this._p_40;
  5225. }
  5226. set
  5227. {
  5228. this._p_40 = value;
  5229. }
  5230. }
  5231. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  5232. public string P_41
  5233. {
  5234. get
  5235. {
  5236. return this._p_41;
  5237. }
  5238. set
  5239. {
  5240. this._p_41 = value;
  5241. }
  5242. }
  5243. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  5244. public string P_42
  5245. {
  5246. get
  5247. {
  5248. return this._p_42;
  5249. }
  5250. set
  5251. {
  5252. this._p_42 = value;
  5253. }
  5254. }
  5255. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  5256. public string P_43
  5257. {
  5258. get
  5259. {
  5260. return this._p_43;
  5261. }
  5262. set
  5263. {
  5264. this._p_43 = value;
  5265. }
  5266. }
  5267. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  5268. public string P_44
  5269. {
  5270. get
  5271. {
  5272. return this._p_44;
  5273. }
  5274. set
  5275. {
  5276. this._p_44 = value;
  5277. }
  5278. }
  5279. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  5280. public string P_45
  5281. {
  5282. get
  5283. {
  5284. return this._p_45;
  5285. }
  5286. set
  5287. {
  5288. this._p_45 = value;
  5289. }
  5290. }
  5291. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  5292. public string P_46
  5293. {
  5294. get
  5295. {
  5296. return this._p_46;
  5297. }
  5298. set
  5299. {
  5300. this._p_46 = value;
  5301. }
  5302. }
  5303. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  5304. public string P_47
  5305. {
  5306. get
  5307. {
  5308. return this._p_47;
  5309. }
  5310. set
  5311. {
  5312. this._p_47 = value;
  5313. }
  5314. }
  5315. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  5316. public string P_48
  5317. {
  5318. get
  5319. {
  5320. return this._p_48;
  5321. }
  5322. set
  5323. {
  5324. this._p_48 = value;
  5325. }
  5326. }
  5327. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  5328. public string P_49
  5329. {
  5330. get
  5331. {
  5332. return this._p_49;
  5333. }
  5334. set
  5335. {
  5336. this._p_49 = value;
  5337. }
  5338. }
  5339. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  5340. public string P_50
  5341. {
  5342. get
  5343. {
  5344. return this._p_50;
  5345. }
  5346. set
  5347. {
  5348. this._p_50 = value;
  5349. }
  5350. }
  5351. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  5352. public string P_51
  5353. {
  5354. get
  5355. {
  5356. return this._p_51;
  5357. }
  5358. set
  5359. {
  5360. this._p_51 = value;
  5361. }
  5362. }
  5363. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  5364. public string P_52
  5365. {
  5366. get
  5367. {
  5368. return this._p_52;
  5369. }
  5370. set
  5371. {
  5372. this._p_52 = value;
  5373. }
  5374. }
  5375. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  5376. public string P_53
  5377. {
  5378. get
  5379. {
  5380. return this._p_53;
  5381. }
  5382. set
  5383. {
  5384. this._p_53 = value;
  5385. }
  5386. }
  5387. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  5388. public string P_54
  5389. {
  5390. get
  5391. {
  5392. return this._p_54;
  5393. }
  5394. set
  5395. {
  5396. this._p_54 = value;
  5397. }
  5398. }
  5399. [System.Xml.Serialization.XmlElementAttribute("P_55", typeof(sbyte))]
  5400. [System.Xml.Serialization.XmlElementAttribute("P_56", typeof(sbyte))]
  5401. [System.Xml.Serialization.XmlElementAttribute("P_57", typeof(sbyte))]
  5402. [System.Xml.Serialization.XmlElementAttribute("P_58", typeof(sbyte))]
  5403. [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemElementName")]
  5404. public sbyte Item
  5405. {
  5406. get
  5407. {
  5408. return this._item;
  5409. }
  5410. set
  5411. {
  5412. this._item = value;
  5413. _shouldSerializeItem = true;
  5414. }
  5415. }
  5416. [System.Xml.Serialization.XmlIgnoreAttribute()]
  5417. public ItemChoiceType ItemElementName
  5418. {
  5419. get
  5420. {
  5421. return this._itemElementName;
  5422. }
  5423. set
  5424. {
  5425. this._itemElementName = value;
  5426. _shouldSerializeItemElementName = true;
  5427. }
  5428. }
  5429. public sbyte P_59
  5430. {
  5431. get
  5432. {
  5433. return this._p_59;
  5434. }
  5435. set
  5436. {
  5437. this._p_59 = value;
  5438. _shouldSerializeP_59 = true;
  5439. }
  5440. }
  5441. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  5442. public string P_60
  5443. {
  5444. get
  5445. {
  5446. return this._p_60;
  5447. }
  5448. set
  5449. {
  5450. this._p_60 = value;
  5451. }
  5452. }
  5453. [System.Xml.Serialization.XmlElementAttribute(DataType = "token")]
  5454. public string P_61
  5455. {
  5456. get
  5457. {
  5458. return this._p_61;
  5459. }
  5460. set
  5461. {
  5462. this._p_61 = value;
  5463. }
  5464. }
  5465. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  5466. public string P_62
  5467. {
  5468. get
  5469. {
  5470. return this._p_62;
  5471. }
  5472. set
  5473. {
  5474. this._p_62 = value;
  5475. }
  5476. }
  5477. public sbyte P_63
  5478. {
  5479. get
  5480. {
  5481. return this._p_63;
  5482. }
  5483. set
  5484. {
  5485. this._p_63 = value;
  5486. _shouldSerializeP_63 = true;
  5487. }
  5488. }
  5489. public sbyte P_64
  5490. {
  5491. get
  5492. {
  5493. return this._p_64;
  5494. }
  5495. set
  5496. {
  5497. this._p_64 = value;
  5498. _shouldSerializeP_64 = true;
  5499. }
  5500. }
  5501. public sbyte P_65
  5502. {
  5503. get
  5504. {
  5505. return this._p_65;
  5506. }
  5507. set
  5508. {
  5509. this._p_65 = value;
  5510. _shouldSerializeP_65 = true;
  5511. }
  5512. }
  5513. public sbyte P_66
  5514. {
  5515. get
  5516. {
  5517. return this._p_66;
  5518. }
  5519. set
  5520. {
  5521. this._p_66 = value;
  5522. _shouldSerializeP_66 = true;
  5523. }
  5524. }
  5525. public sbyte P_67
  5526. {
  5527. get
  5528. {
  5529. return this._p_67;
  5530. }
  5531. set
  5532. {
  5533. this._p_67 = value;
  5534. _shouldSerializeP_67 = true;
  5535. }
  5536. }
  5537. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  5538. public string P_68
  5539. {
  5540. get
  5541. {
  5542. return this._p_68;
  5543. }
  5544. set
  5545. {
  5546. this._p_68 = value;
  5547. }
  5548. }
  5549. [System.Xml.Serialization.XmlElementAttribute(DataType = "integer")]
  5550. public string P_69
  5551. {
  5552. get
  5553. {
  5554. return this._p_69;
  5555. }
  5556. set
  5557. {
  5558. this._p_69 = value;
  5559. }
  5560. }
  5561. public string P_ORDZU
  5562. {
  5563. get
  5564. {
  5565. return this._p_ORDZU;
  5566. }
  5567. set
  5568. {
  5569. this._p_ORDZU = value;
  5570. }
  5571. }
  5572. private static XmlSerializer Serializer
  5573. {
  5574. get
  5575. {
  5576. if ((serializer == null))
  5577. {
  5578. serializer = new XmlSerializerFactory().CreateSerializer(typeof(JPKDeklaracjaPozycjeSzczegolowe));
  5579. }
  5580. return serializer;
  5581. }
  5582. }
  5583. /// <summary>
  5584. /// Test whether Item should be serialized
  5585. /// </summary>
  5586. public virtual bool ShouldSerializeItem()
  5587. {
  5588. if (_shouldSerializeItem)
  5589. {
  5590. return true;
  5591. }
  5592. return (_item != default(sbyte));
  5593. }
  5594. /// <summary>
  5595. /// Test whether P_59 should be serialized
  5596. /// </summary>
  5597. public virtual bool ShouldSerializeP_59()
  5598. {
  5599. if (_shouldSerializeP_59)
  5600. {
  5601. return true;
  5602. }
  5603. return (_p_59 != default(sbyte));
  5604. }
  5605. /// <summary>
  5606. /// Test whether P_63 should be serialized
  5607. /// </summary>
  5608. public virtual bool ShouldSerializeP_63()
  5609. {
  5610. if (_shouldSerializeP_63)
  5611. {
  5612. return true;
  5613. }
  5614. return (_p_63 != default(sbyte));
  5615. }
  5616. /// <summary>
  5617. /// Test whether P_64 should be serialized
  5618. /// </summary>
  5619. public virtual bool ShouldSerializeP_64()
  5620. {
  5621. if (_shouldSerializeP_64)
  5622. {
  5623. return true;
  5624. }
  5625. return (_p_64 != default(sbyte));
  5626. }
  5627. /// <summary>
  5628. /// Test whether P_65 should be serialized
  5629. /// </summary>
  5630. public virtual bool ShouldSerializeP_65()
  5631. {
  5632. if (_shouldSerializeP_65)
  5633. {
  5634. return true;
  5635. }
  5636. return (_p_65 != default(sbyte));
  5637. }
  5638. /// <summary>
  5639. /// Test whether P_66 should be serialized
  5640. /// </summary>
  5641. public virtual bool ShouldSerializeP_66()
  5642. {
  5643. if (_shouldSerializeP_66)
  5644. {
  5645. return true;
  5646. }
  5647. return (_p_66 != default(sbyte));
  5648. }
  5649. /// <summary>
  5650. /// Test whether P_67 should be serialized
  5651. /// </summary>
  5652. public virtual bool ShouldSerializeP_67()
  5653. {
  5654. if (_shouldSerializeP_67)
  5655. {
  5656. return true;
  5657. }
  5658. return (_p_67 != default(sbyte));
  5659. }
  5660. /// <summary>
  5661. /// Test whether ItemElementName should be serialized
  5662. /// </summary>
  5663. public virtual bool ShouldSerializeItemElementName()
  5664. {
  5665. if (_shouldSerializeItemElementName)
  5666. {
  5667. return true;
  5668. }
  5669. return (_itemElementName != default(ItemChoiceType));
  5670. }
  5671. /// <summary>
  5672. /// Test whether P_10 should be serialized
  5673. /// </summary>
  5674. public virtual bool ShouldSerializeP_10()
  5675. {
  5676. return !string.IsNullOrEmpty(P_10);
  5677. }
  5678. /// <summary>
  5679. /// Test whether P_11 should be serialized
  5680. /// </summary>
  5681. public virtual bool ShouldSerializeP_11()
  5682. {
  5683. return !string.IsNullOrEmpty(P_11);
  5684. }
  5685. /// <summary>
  5686. /// Test whether P_12 should be serialized
  5687. /// </summary>
  5688. public virtual bool ShouldSerializeP_12()
  5689. {
  5690. return !string.IsNullOrEmpty(P_12);
  5691. }
  5692. /// <summary>
  5693. /// Test whether P_13 should be serialized
  5694. /// </summary>
  5695. public virtual bool ShouldSerializeP_13()
  5696. {
  5697. return !string.IsNullOrEmpty(P_13);
  5698. }
  5699. /// <summary>
  5700. /// Test whether P_14 should be serialized
  5701. /// </summary>
  5702. public virtual bool ShouldSerializeP_14()
  5703. {
  5704. return !string.IsNullOrEmpty(P_14);
  5705. }
  5706. /// <summary>
  5707. /// Test whether P_15 should be serialized
  5708. /// </summary>
  5709. public virtual bool ShouldSerializeP_15()
  5710. {
  5711. return !string.IsNullOrEmpty(P_15);
  5712. }
  5713. /// <summary>
  5714. /// Test whether P_16 should be serialized
  5715. /// </summary>
  5716. public virtual bool ShouldSerializeP_16()
  5717. {
  5718. return !string.IsNullOrEmpty(P_16);
  5719. }
  5720. /// <summary>
  5721. /// Test whether P_17 should be serialized
  5722. /// </summary>
  5723. public virtual bool ShouldSerializeP_17()
  5724. {
  5725. return !string.IsNullOrEmpty(P_17);
  5726. }
  5727. /// <summary>
  5728. /// Test whether P_18 should be serialized
  5729. /// </summary>
  5730. public virtual bool ShouldSerializeP_18()
  5731. {
  5732. return !string.IsNullOrEmpty(P_18);
  5733. }
  5734. /// <summary>
  5735. /// Test whether P_19 should be serialized
  5736. /// </summary>
  5737. public virtual bool ShouldSerializeP_19()
  5738. {
  5739. return !string.IsNullOrEmpty(P_19);
  5740. }
  5741. /// <summary>
  5742. /// Test whether P_20 should be serialized
  5743. /// </summary>
  5744. public virtual bool ShouldSerializeP_20()
  5745. {
  5746. return !string.IsNullOrEmpty(P_20);
  5747. }
  5748. /// <summary>
  5749. /// Test whether P_21 should be serialized
  5750. /// </summary>
  5751. public virtual bool ShouldSerializeP_21()
  5752. {
  5753. return !string.IsNullOrEmpty(P_21);
  5754. }
  5755. /// <summary>
  5756. /// Test whether P_22 should be serialized
  5757. /// </summary>
  5758. public virtual bool ShouldSerializeP_22()
  5759. {
  5760. return !string.IsNullOrEmpty(P_22);
  5761. }
  5762. /// <summary>
  5763. /// Test whether P_23 should be serialized
  5764. /// </summary>
  5765. public virtual bool ShouldSerializeP_23()
  5766. {
  5767. return !string.IsNullOrEmpty(P_23);
  5768. }
  5769. /// <summary>
  5770. /// Test whether P_24 should be serialized
  5771. /// </summary>
  5772. public virtual bool ShouldSerializeP_24()
  5773. {
  5774. return !string.IsNullOrEmpty(P_24);
  5775. }
  5776. /// <summary>
  5777. /// Test whether P_25 should be serialized
  5778. /// </summary>
  5779. public virtual bool ShouldSerializeP_25()
  5780. {
  5781. return !string.IsNullOrEmpty(P_25);
  5782. }
  5783. /// <summary>
  5784. /// Test whether P_26 should be serialized
  5785. /// </summary>
  5786. public virtual bool ShouldSerializeP_26()
  5787. {
  5788. return !string.IsNullOrEmpty(P_26);
  5789. }
  5790. /// <summary>
  5791. /// Test whether P_27 should be serialized
  5792. /// </summary>
  5793. public virtual bool ShouldSerializeP_27()
  5794. {
  5795. return !string.IsNullOrEmpty(P_27);
  5796. }
  5797. /// <summary>
  5798. /// Test whether P_28 should be serialized
  5799. /// </summary>
  5800. public virtual bool ShouldSerializeP_28()
  5801. {
  5802. return !string.IsNullOrEmpty(P_28);
  5803. }
  5804. /// <summary>
  5805. /// Test whether P_29 should be serialized
  5806. /// </summary>
  5807. public virtual bool ShouldSerializeP_29()
  5808. {
  5809. return !string.IsNullOrEmpty(P_29);
  5810. }
  5811. /// <summary>
  5812. /// Test whether P_30 should be serialized
  5813. /// </summary>
  5814. public virtual bool ShouldSerializeP_30()
  5815. {
  5816. return !string.IsNullOrEmpty(P_30);
  5817. }
  5818. /// <summary>
  5819. /// Test whether P_31 should be serialized
  5820. /// </summary>
  5821. public virtual bool ShouldSerializeP_31()
  5822. {
  5823. return !string.IsNullOrEmpty(P_31);
  5824. }
  5825. /// <summary>
  5826. /// Test whether P_32 should be serialized
  5827. /// </summary>
  5828. public virtual bool ShouldSerializeP_32()
  5829. {
  5830. return !string.IsNullOrEmpty(P_32);
  5831. }
  5832. /// <summary>
  5833. /// Test whether P_33 should be serialized
  5834. /// </summary>
  5835. public virtual bool ShouldSerializeP_33()
  5836. {
  5837. return !string.IsNullOrEmpty(P_33);
  5838. }
  5839. /// <summary>
  5840. /// Test whether P_34 should be serialized
  5841. /// </summary>
  5842. public virtual bool ShouldSerializeP_34()
  5843. {
  5844. return !string.IsNullOrEmpty(P_34);
  5845. }
  5846. /// <summary>
  5847. /// Test whether P_35 should be serialized
  5848. /// </summary>
  5849. public virtual bool ShouldSerializeP_35()
  5850. {
  5851. return !string.IsNullOrEmpty(P_35);
  5852. }
  5853. /// <summary>
  5854. /// Test whether P_36 should be serialized
  5855. /// </summary>
  5856. public virtual bool ShouldSerializeP_36()
  5857. {
  5858. return !string.IsNullOrEmpty(P_36);
  5859. }
  5860. /// <summary>
  5861. /// Test whether P_37 should be serialized
  5862. /// </summary>
  5863. public virtual bool ShouldSerializeP_37()
  5864. {
  5865. return !string.IsNullOrEmpty(P_37);
  5866. }
  5867. /// <summary>
  5868. /// Test whether P_38 should be serialized
  5869. /// </summary>
  5870. public virtual bool ShouldSerializeP_38()
  5871. {
  5872. return !string.IsNullOrEmpty(P_38);
  5873. }
  5874. /// <summary>
  5875. /// Test whether P_39 should be serialized
  5876. /// </summary>
  5877. public virtual bool ShouldSerializeP_39()
  5878. {
  5879. return !string.IsNullOrEmpty(P_39);
  5880. }
  5881. /// <summary>
  5882. /// Test whether P_40 should be serialized
  5883. /// </summary>
  5884. public virtual bool ShouldSerializeP_40()
  5885. {
  5886. return !string.IsNullOrEmpty(P_40);
  5887. }
  5888. /// <summary>
  5889. /// Test whether P_41 should be serialized
  5890. /// </summary>
  5891. public virtual bool ShouldSerializeP_41()
  5892. {
  5893. return !string.IsNullOrEmpty(P_41);
  5894. }
  5895. /// <summary>
  5896. /// Test whether P_42 should be serialized
  5897. /// </summary>
  5898. public virtual bool ShouldSerializeP_42()
  5899. {
  5900. return !string.IsNullOrEmpty(P_42);
  5901. }
  5902. /// <summary>
  5903. /// Test whether P_43 should be serialized
  5904. /// </summary>
  5905. public virtual bool ShouldSerializeP_43()
  5906. {
  5907. return !string.IsNullOrEmpty(P_43);
  5908. }
  5909. /// <summary>
  5910. /// Test whether P_44 should be serialized
  5911. /// </summary>
  5912. public virtual bool ShouldSerializeP_44()
  5913. {
  5914. return !string.IsNullOrEmpty(P_44);
  5915. }
  5916. /// <summary>
  5917. /// Test whether P_45 should be serialized
  5918. /// </summary>
  5919. public virtual bool ShouldSerializeP_45()
  5920. {
  5921. return !string.IsNullOrEmpty(P_45);
  5922. }
  5923. /// <summary>
  5924. /// Test whether P_46 should be serialized
  5925. /// </summary>
  5926. public virtual bool ShouldSerializeP_46()
  5927. {
  5928. return !string.IsNullOrEmpty(P_46);
  5929. }
  5930. /// <summary>
  5931. /// Test whether P_47 should be serialized
  5932. /// </summary>
  5933. public virtual bool ShouldSerializeP_47()
  5934. {
  5935. return !string.IsNullOrEmpty(P_47);
  5936. }
  5937. /// <summary>
  5938. /// Test whether P_48 should be serialized
  5939. /// </summary>
  5940. public virtual bool ShouldSerializeP_48()
  5941. {
  5942. return !string.IsNullOrEmpty(P_48);
  5943. }
  5944. /// <summary>
  5945. /// Test whether P_49 should be serialized
  5946. /// </summary>
  5947. public virtual bool ShouldSerializeP_49()
  5948. {
  5949. return !string.IsNullOrEmpty(P_49);
  5950. }
  5951. /// <summary>
  5952. /// Test whether P_50 should be serialized
  5953. /// </summary>
  5954. public virtual bool ShouldSerializeP_50()
  5955. {
  5956. return !string.IsNullOrEmpty(P_50);
  5957. }
  5958. /// <summary>
  5959. /// Test whether P_51 should be serialized
  5960. /// </summary>
  5961. public virtual bool ShouldSerializeP_51()
  5962. {
  5963. return !string.IsNullOrEmpty(P_51);
  5964. }
  5965. /// <summary>
  5966. /// Test whether P_52 should be serialized
  5967. /// </summary>
  5968. public virtual bool ShouldSerializeP_52()
  5969. {
  5970. return !string.IsNullOrEmpty(P_52);
  5971. }
  5972. /// <summary>
  5973. /// Test whether P_53 should be serialized
  5974. /// </summary>
  5975. public virtual bool ShouldSerializeP_53()
  5976. {
  5977. return !string.IsNullOrEmpty(P_53);
  5978. }
  5979. /// <summary>
  5980. /// Test whether P_54 should be serialized
  5981. /// </summary>
  5982. public virtual bool ShouldSerializeP_54()
  5983. {
  5984. return !string.IsNullOrEmpty(P_54);
  5985. }
  5986. /// <summary>
  5987. /// Test whether P_60 should be serialized
  5988. /// </summary>
  5989. public virtual bool ShouldSerializeP_60()
  5990. {
  5991. return !string.IsNullOrEmpty(P_60);
  5992. }
  5993. /// <summary>
  5994. /// Test whether P_61 should be serialized
  5995. /// </summary>
  5996. public virtual bool ShouldSerializeP_61()
  5997. {
  5998. return !string.IsNullOrEmpty(P_61);
  5999. }
  6000. /// <summary>
  6001. /// Test whether P_62 should be serialized
  6002. /// </summary>
  6003. public virtual bool ShouldSerializeP_62()
  6004. {
  6005. return !string.IsNullOrEmpty(P_62);
  6006. }
  6007. /// <summary>
  6008. /// Test whether P_68 should be serialized
  6009. /// </summary>
  6010. public virtual bool ShouldSerializeP_68()
  6011. {
  6012. return !string.IsNullOrEmpty(P_68);
  6013. }
  6014. /// <summary>
  6015. /// Test whether P_69 should be serialized
  6016. /// </summary>
  6017. public virtual bool ShouldSerializeP_69()
  6018. {
  6019. return !string.IsNullOrEmpty(P_69);
  6020. }
  6021. /// <summary>
  6022. /// Test whether P_ORDZU should be serialized
  6023. /// </summary>
  6024. public virtual bool ShouldSerializeP_ORDZU()
  6025. {
  6026. return !string.IsNullOrEmpty(P_ORDZU);
  6027. }
  6028. #region Serialize/Deserialize
  6029. /// <summary>
  6030. /// Serializes current JPKDeklaracjaPozycjeSzczegolowe object into an XML string
  6031. /// </summary>
  6032. /// <returns>string XML value</returns>
  6033. public virtual string Serialize()
  6034. {
  6035. System.IO.StreamReader streamReader = null;
  6036. System.IO.MemoryStream memoryStream = null;
  6037. try
  6038. {
  6039. memoryStream = new System.IO.MemoryStream();
  6040. System.Xml.XmlWriterSettings xmlWriterSettings = new System.Xml.XmlWriterSettings();
  6041. System.Xml.XmlWriter xmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings);
  6042. Serializer.Serialize(xmlWriter, this);
  6043. memoryStream.Seek(0, SeekOrigin.Begin);
  6044. streamReader = new System.IO.StreamReader(memoryStream);
  6045. return streamReader.ReadToEnd();
  6046. }
  6047. finally
  6048. {
  6049. if ((streamReader != null))
  6050. {
  6051. streamReader.Dispose();
  6052. }
  6053. if ((memoryStream != null))
  6054. {
  6055. memoryStream.Dispose();
  6056. }
  6057. }
  6058. }
  6059. /// <summary>
  6060. /// Deserializes workflow markup into an JPKDeklaracjaPozycjeSzczegolowe object
  6061. /// </summary>
  6062. /// <param name="input">string workflow markup to deserialize</param>
  6063. /// <param name="obj">Output JPKDeklaracjaPozycjeSzczegolowe object</param>
  6064. /// <param name="exception">output Exception value if deserialize failed</param>
  6065. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  6066. public static bool Deserialize(string input, out JPKDeklaracjaPozycjeSzczegolowe obj, out System.Exception exception)
  6067. {
  6068. exception = null;
  6069. obj = default(JPKDeklaracjaPozycjeSzczegolowe);
  6070. try
  6071. {
  6072. obj = Deserialize(input);
  6073. return true;
  6074. }
  6075. catch (System.Exception ex)
  6076. {
  6077. exception = ex;
  6078. return false;
  6079. }
  6080. }
  6081. public static bool Deserialize(string input, out JPKDeklaracjaPozycjeSzczegolowe obj)
  6082. {
  6083. System.Exception exception = null;
  6084. return Deserialize(input, out obj, out exception);
  6085. }
  6086. public static JPKDeklaracjaPozycjeSzczegolowe Deserialize(string input)
  6087. {
  6088. System.IO.StringReader stringReader = null;
  6089. try
  6090. {
  6091. stringReader = new System.IO.StringReader(input);
  6092. return ((JPKDeklaracjaPozycjeSzczegolowe)(Serializer.Deserialize(XmlReader.Create(stringReader))));
  6093. }
  6094. finally
  6095. {
  6096. if ((stringReader != null))
  6097. {
  6098. stringReader.Dispose();
  6099. }
  6100. }
  6101. }
  6102. public static JPKDeklaracjaPozycjeSzczegolowe Deserialize(System.IO.Stream s)
  6103. {
  6104. return ((JPKDeklaracjaPozycjeSzczegolowe)(Serializer.Deserialize(s)));
  6105. }
  6106. #endregion
  6107. /// <summary>
  6108. /// Serializes current JPKDeklaracjaPozycjeSzczegolowe object into file
  6109. /// </summary>
  6110. /// <param name="fileName">full path of outupt xml file</param>
  6111. /// <param name="exception">output Exception value if failed</param>
  6112. /// <returns>true if can serialize and save into file; otherwise, false</returns>
  6113. public virtual bool SaveToFile(string fileName, out System.Exception exception)
  6114. {
  6115. exception = null;
  6116. try
  6117. {
  6118. SaveToFile(fileName);
  6119. return true;
  6120. }
  6121. catch (System.Exception e)
  6122. {
  6123. exception = e;
  6124. return false;
  6125. }
  6126. }
  6127. public virtual void SaveToFile(string fileName)
  6128. {
  6129. System.IO.StreamWriter streamWriter = null;
  6130. try
  6131. {
  6132. string xmlString = Serialize();
  6133. System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
  6134. streamWriter = xmlFile.CreateText();
  6135. streamWriter.WriteLine(xmlString);
  6136. streamWriter.Close();
  6137. }
  6138. finally
  6139. {
  6140. if ((streamWriter != null))
  6141. {
  6142. streamWriter.Dispose();
  6143. }
  6144. }
  6145. }
  6146. /// <summary>
  6147. /// Deserializes xml markup from file into an JPKDeklaracjaPozycjeSzczegolowe object
  6148. /// </summary>
  6149. /// <param name="fileName">string xml file to load and deserialize</param>
  6150. /// <param name="obj">Output JPKDeklaracjaPozycjeSzczegolowe object</param>
  6151. /// <param name="exception">output Exception value if deserialize failed</param>
  6152. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  6153. public static bool LoadFromFile(string fileName, out JPKDeklaracjaPozycjeSzczegolowe obj, out System.Exception exception)
  6154. {
  6155. exception = null;
  6156. obj = default(JPKDeklaracjaPozycjeSzczegolowe);
  6157. try
  6158. {
  6159. obj = LoadFromFile(fileName);
  6160. return true;
  6161. }
  6162. catch (System.Exception ex)
  6163. {
  6164. exception = ex;
  6165. return false;
  6166. }
  6167. }
  6168. public static bool LoadFromFile(string fileName, out JPKDeklaracjaPozycjeSzczegolowe obj)
  6169. {
  6170. System.Exception exception = null;
  6171. return LoadFromFile(fileName, out obj, out exception);
  6172. }
  6173. public static JPKDeklaracjaPozycjeSzczegolowe LoadFromFile(string fileName)
  6174. {
  6175. System.IO.FileStream file = null;
  6176. System.IO.StreamReader sr = null;
  6177. try
  6178. {
  6179. file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
  6180. sr = new System.IO.StreamReader(file);
  6181. string xmlString = sr.ReadToEnd();
  6182. sr.Close();
  6183. file.Close();
  6184. return Deserialize(xmlString);
  6185. }
  6186. finally
  6187. {
  6188. if ((file != null))
  6189. {
  6190. file.Dispose();
  6191. }
  6192. if ((sr != null))
  6193. {
  6194. sr.Dispose();
  6195. }
  6196. }
  6197. }
  6198. }
  6199. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3761.0")]
  6200. [System.SerializableAttribute()]
  6201. [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://crd.gov.pl/wzor/2020/05/08/9393/", IncludeInSchema = false)]
  6202. public enum ItemChoiceType
  6203. {
  6204. /// <remarks/>
  6205. P_55,
  6206. /// <remarks/>
  6207. P_56,
  6208. /// <remarks/>
  6209. P_57,
  6210. /// <remarks/>
  6211. P_58,
  6212. }
  6213. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3761.0")]
  6214. [System.SerializableAttribute()]
  6215. [System.Diagnostics.DebuggerStepThroughAttribute()]
  6216. [System.ComponentModel.DesignerCategoryAttribute("code")]
  6217. [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://crd.gov.pl/wzor/2020/05/08/9393/")]
  6218. public partial class JPKEwidencja
  6219. {
  6220. #region Private fields
  6221. private List<JPKEwidencjaSprzedazWiersz> _sprzedazWiersz;
  6222. private JPKEwidencjaSprzedazCtrl _sprzedazCtrl;
  6223. private List<JPKEwidencjaZakupWiersz> _zakupWiersz;
  6224. private JPKEwidencjaZakupCtrl _zakupCtrl;
  6225. private static XmlSerializer serializer;
  6226. #endregion
  6227. [System.Xml.Serialization.XmlElementAttribute("SprzedazWiersz")]
  6228. public List<JPKEwidencjaSprzedazWiersz> SprzedazWiersz
  6229. {
  6230. get
  6231. {
  6232. return this._sprzedazWiersz;
  6233. }
  6234. set
  6235. {
  6236. this._sprzedazWiersz = value;
  6237. }
  6238. }
  6239. public JPKEwidencjaSprzedazCtrl SprzedazCtrl
  6240. {
  6241. get
  6242. {
  6243. return this._sprzedazCtrl;
  6244. }
  6245. set
  6246. {
  6247. this._sprzedazCtrl = value;
  6248. }
  6249. }
  6250. [System.Xml.Serialization.XmlElementAttribute("ZakupWiersz")]
  6251. public List<JPKEwidencjaZakupWiersz> ZakupWiersz
  6252. {
  6253. get
  6254. {
  6255. return this._zakupWiersz;
  6256. }
  6257. set
  6258. {
  6259. this._zakupWiersz = value;
  6260. }
  6261. }
  6262. public JPKEwidencjaZakupCtrl ZakupCtrl
  6263. {
  6264. get
  6265. {
  6266. return this._zakupCtrl;
  6267. }
  6268. set
  6269. {
  6270. this._zakupCtrl = value;
  6271. }
  6272. }
  6273. private static XmlSerializer Serializer
  6274. {
  6275. get
  6276. {
  6277. if ((serializer == null))
  6278. {
  6279. serializer = new XmlSerializerFactory().CreateSerializer(typeof(JPKEwidencja));
  6280. }
  6281. return serializer;
  6282. }
  6283. }
  6284. /// <summary>
  6285. /// Test whether SprzedazWiersz should be serialized
  6286. /// </summary>
  6287. public virtual bool ShouldSerializeSprzedazWiersz()
  6288. {
  6289. return SprzedazWiersz != null && SprzedazWiersz.Count > 0;
  6290. }
  6291. /// <summary>
  6292. /// Test whether ZakupWiersz should be serialized
  6293. /// </summary>
  6294. public virtual bool ShouldSerializeZakupWiersz()
  6295. {
  6296. return ZakupWiersz != null && ZakupWiersz.Count > 0;
  6297. }
  6298. /// <summary>
  6299. /// Test whether SprzedazCtrl should be serialized
  6300. /// </summary>
  6301. public virtual bool ShouldSerializeSprzedazCtrl()
  6302. {
  6303. return (_sprzedazCtrl != null);
  6304. }
  6305. /// <summary>
  6306. /// Test whether ZakupCtrl should be serialized
  6307. /// </summary>
  6308. public virtual bool ShouldSerializeZakupCtrl()
  6309. {
  6310. return (_zakupCtrl != null);
  6311. }
  6312. #region Serialize/Deserialize
  6313. /// <summary>
  6314. /// Serializes current JPKEwidencja object into an XML string
  6315. /// </summary>
  6316. /// <returns>string XML value</returns>
  6317. public virtual string Serialize()
  6318. {
  6319. System.IO.StreamReader streamReader = null;
  6320. System.IO.MemoryStream memoryStream = null;
  6321. try
  6322. {
  6323. memoryStream = new System.IO.MemoryStream();
  6324. System.Xml.XmlWriterSettings xmlWriterSettings = new System.Xml.XmlWriterSettings();
  6325. System.Xml.XmlWriter xmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings);
  6326. Serializer.Serialize(xmlWriter, this);
  6327. memoryStream.Seek(0, SeekOrigin.Begin);
  6328. streamReader = new System.IO.StreamReader(memoryStream);
  6329. return streamReader.ReadToEnd();
  6330. }
  6331. finally
  6332. {
  6333. if ((streamReader != null))
  6334. {
  6335. streamReader.Dispose();
  6336. }
  6337. if ((memoryStream != null))
  6338. {
  6339. memoryStream.Dispose();
  6340. }
  6341. }
  6342. }
  6343. /// <summary>
  6344. /// Deserializes workflow markup into an JPKEwidencja object
  6345. /// </summary>
  6346. /// <param name="input">string workflow markup to deserialize</param>
  6347. /// <param name="obj">Output JPKEwidencja object</param>
  6348. /// <param name="exception">output Exception value if deserialize failed</param>
  6349. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  6350. public static bool Deserialize(string input, out JPKEwidencja obj, out System.Exception exception)
  6351. {
  6352. exception = null;
  6353. obj = default(JPKEwidencja);
  6354. try
  6355. {
  6356. obj = Deserialize(input);
  6357. return true;
  6358. }
  6359. catch (System.Exception ex)
  6360. {
  6361. exception = ex;
  6362. return false;
  6363. }
  6364. }
  6365. public static bool Deserialize(string input, out JPKEwidencja obj)
  6366. {
  6367. System.Exception exception = null;
  6368. return Deserialize(input, out obj, out exception);
  6369. }
  6370. public static JPKEwidencja Deserialize(string input)
  6371. {
  6372. System.IO.StringReader stringReader = null;
  6373. try
  6374. {
  6375. stringReader = new System.IO.StringReader(input);
  6376. return ((JPKEwidencja)(Serializer.Deserialize(XmlReader.Create(stringReader))));
  6377. }
  6378. finally
  6379. {
  6380. if ((stringReader != null))
  6381. {
  6382. stringReader.Dispose();
  6383. }
  6384. }
  6385. }
  6386. public static JPKEwidencja Deserialize(System.IO.Stream s)
  6387. {
  6388. return ((JPKEwidencja)(Serializer.Deserialize(s)));
  6389. }
  6390. #endregion
  6391. /// <summary>
  6392. /// Serializes current JPKEwidencja object into file
  6393. /// </summary>
  6394. /// <param name="fileName">full path of outupt xml file</param>
  6395. /// <param name="exception">output Exception value if failed</param>
  6396. /// <returns>true if can serialize and save into file; otherwise, false</returns>
  6397. public virtual bool SaveToFile(string fileName, out System.Exception exception)
  6398. {
  6399. exception = null;
  6400. try
  6401. {
  6402. SaveToFile(fileName);
  6403. return true;
  6404. }
  6405. catch (System.Exception e)
  6406. {
  6407. exception = e;
  6408. return false;
  6409. }
  6410. }
  6411. public virtual void SaveToFile(string fileName)
  6412. {
  6413. System.IO.StreamWriter streamWriter = null;
  6414. try
  6415. {
  6416. string xmlString = Serialize();
  6417. System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
  6418. streamWriter = xmlFile.CreateText();
  6419. streamWriter.WriteLine(xmlString);
  6420. streamWriter.Close();
  6421. }
  6422. finally
  6423. {
  6424. if ((streamWriter != null))
  6425. {
  6426. streamWriter.Dispose();
  6427. }
  6428. }
  6429. }
  6430. /// <summary>
  6431. /// Deserializes xml markup from file into an JPKEwidencja object
  6432. /// </summary>
  6433. /// <param name="fileName">string xml file to load and deserialize</param>
  6434. /// <param name="obj">Output JPKEwidencja object</param>
  6435. /// <param name="exception">output Exception value if deserialize failed</param>
  6436. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  6437. public static bool LoadFromFile(string fileName, out JPKEwidencja obj, out System.Exception exception)
  6438. {
  6439. exception = null;
  6440. obj = default(JPKEwidencja);
  6441. try
  6442. {
  6443. obj = LoadFromFile(fileName);
  6444. return true;
  6445. }
  6446. catch (System.Exception ex)
  6447. {
  6448. exception = ex;
  6449. return false;
  6450. }
  6451. }
  6452. public static bool LoadFromFile(string fileName, out JPKEwidencja obj)
  6453. {
  6454. System.Exception exception = null;
  6455. return LoadFromFile(fileName, out obj, out exception);
  6456. }
  6457. public static JPKEwidencja LoadFromFile(string fileName)
  6458. {
  6459. System.IO.FileStream file = null;
  6460. System.IO.StreamReader sr = null;
  6461. try
  6462. {
  6463. file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
  6464. sr = new System.IO.StreamReader(file);
  6465. string xmlString = sr.ReadToEnd();
  6466. sr.Close();
  6467. file.Close();
  6468. return Deserialize(xmlString);
  6469. }
  6470. finally
  6471. {
  6472. if ((file != null))
  6473. {
  6474. file.Dispose();
  6475. }
  6476. if ((sr != null))
  6477. {
  6478. sr.Dispose();
  6479. }
  6480. }
  6481. }
  6482. }
  6483. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3761.0")]
  6484. [System.SerializableAttribute()]
  6485. [System.Diagnostics.DebuggerStepThroughAttribute()]
  6486. [System.ComponentModel.DesignerCategoryAttribute("code")]
  6487. [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://crd.gov.pl/wzor/2020/05/08/9393/")]
  6488. public partial class JPKEwidencjaSprzedazWiersz
  6489. {
  6490. #region Private fields
  6491. private bool _shouldSerializeTypDokumentu;
  6492. private bool _shouldSerializeSprzedazVAT_Marza;
  6493. private bool _shouldSerializeK_36;
  6494. private bool _shouldSerializeK_35;
  6495. private bool _shouldSerializeK_34;
  6496. private bool _shouldSerializeK_33;
  6497. private bool _shouldSerializeK_32;
  6498. private bool _shouldSerializeK_31;
  6499. private bool _shouldSerializeK_30;
  6500. private bool _shouldSerializeK_29;
  6501. private bool _shouldSerializeK_28;
  6502. private bool _shouldSerializeK_27;
  6503. private bool _shouldSerializeK_26;
  6504. private bool _shouldSerializeK_25;
  6505. private bool _shouldSerializeK_24;
  6506. private bool _shouldSerializeK_23;
  6507. private bool _shouldSerializeK_22;
  6508. private bool _shouldSerializeK_21;
  6509. private bool _shouldSerializeK_20;
  6510. private bool _shouldSerializeK_19;
  6511. private bool _shouldSerializeK_18;
  6512. private bool _shouldSerializeK_17;
  6513. private bool _shouldSerializeK_16;
  6514. private bool _shouldSerializeK_15;
  6515. private bool _shouldSerializeK_14;
  6516. private bool _shouldSerializeK_13;
  6517. private bool _shouldSerializeK_12;
  6518. private bool _shouldSerializeK_11;
  6519. private bool _shouldSerializeK_10;
  6520. private bool _shouldSerializeKorektaPodstawyOpodt;
  6521. private bool _shouldSerializeMPP;
  6522. private bool _shouldSerializeB_MPV_PROWIZJA;
  6523. private bool _shouldSerializeB_SPV_DOSTAWA;
  6524. private bool _shouldSerializeB_SPV;
  6525. private bool _shouldSerializeI_63;
  6526. private bool _shouldSerializeI_42;
  6527. private bool _shouldSerializeMR_UZ;
  6528. private bool _shouldSerializeMR_T;
  6529. private bool _shouldSerializeTT_D;
  6530. private bool _shouldSerializeTT_WNT;
  6531. private bool _shouldSerializeTP;
  6532. private bool _shouldSerializeEE;
  6533. private bool _shouldSerializeSW;
  6534. private bool _shouldSerializeGTU_13;
  6535. private bool _shouldSerializeGTU_12;
  6536. private bool _shouldSerializeGTU_11;
  6537. private bool _shouldSerializeGTU_10;
  6538. private bool _shouldSerializeGTU_09;
  6539. private bool _shouldSerializeGTU_08;
  6540. private bool _shouldSerializeGTU_07;
  6541. private bool _shouldSerializeGTU_06;
  6542. private bool _shouldSerializeGTU_05;
  6543. private bool _shouldSerializeGTU_04;
  6544. private bool _shouldSerializeGTU_03;
  6545. private bool _shouldSerializeGTU_02;
  6546. private bool _shouldSerializeGTU_01;
  6547. private bool _shouldSerializeDataSprzedazy;
  6548. private bool _shouldSerializeDataWystawienia;
  6549. private string _lpSprzedazy;
  6550. private string _kodKrajuNadaniaTIN;
  6551. private string _nrKontrahenta;
  6552. private string _nazwaKontrahenta;
  6553. private string _dowodSprzedazy;
  6554. private System.DateTime _dataWystawienia;
  6555. private System.DateTime _dataSprzedazy;
  6556. private TDowoduSprzedazy _typDokumentu;
  6557. private sbyte _gTU_01;
  6558. private sbyte _gTU_02;
  6559. private sbyte _gTU_03;
  6560. private sbyte _gTU_04;
  6561. private sbyte _gTU_05;
  6562. private sbyte _gTU_06;
  6563. private sbyte _gTU_07;
  6564. private sbyte _gTU_08;
  6565. private sbyte _gTU_09;
  6566. private sbyte _gTU_10;
  6567. private sbyte _gTU_11;
  6568. private sbyte _gTU_12;
  6569. private sbyte _gTU_13;
  6570. private sbyte _sw;
  6571. private bool swFieldSpecified;
  6572. private sbyte _ee;
  6573. private bool eeFieldSpecified;
  6574. private sbyte _tp;
  6575. private bool tpFieldSpecified;
  6576. private sbyte _tT_WNT;
  6577. private sbyte _tT_D;
  6578. private sbyte _mR_T;
  6579. private sbyte _mR_UZ;
  6580. private sbyte _i_42;
  6581. private sbyte _i_63;
  6582. private sbyte _b_SPV;
  6583. private sbyte _b_SPV_DOSTAWA;
  6584. private sbyte _b_MPV_PROWIZJA;
  6585. private sbyte _mPP;
  6586. private sbyte _korektaPodstawyOpodt;
  6587. private decimal _k_10;
  6588. private decimal _k_11;
  6589. private decimal _k_12;
  6590. private decimal _k_13;
  6591. private decimal _k_14;
  6592. private decimal _k_15;
  6593. private decimal _k_16;
  6594. private decimal _k_17;
  6595. private decimal _k_18;
  6596. private decimal _k_19;
  6597. private decimal _k_20;
  6598. private decimal _k_21;
  6599. private decimal _k_22;
  6600. private decimal _k_23;
  6601. private decimal _k_24;
  6602. private decimal _k_25;
  6603. private decimal _k_26;
  6604. private decimal _k_27;
  6605. private decimal _k_28;
  6606. private decimal _k_29;
  6607. private decimal _k_30;
  6608. private decimal _k_31;
  6609. private decimal _k_32;
  6610. private decimal _k_33;
  6611. private decimal _k_34;
  6612. private decimal _k_35;
  6613. private decimal _k_36;
  6614. private decimal _sprzedazVAT_Marza;
  6615. private static XmlSerializer serializer;
  6616. #endregion
  6617. [System.Xml.Serialization.XmlElementAttribute(DataType = "nonNegativeInteger")]
  6618. public string LpSprzedazy
  6619. {
  6620. get
  6621. {
  6622. return this._lpSprzedazy;
  6623. }
  6624. set
  6625. {
  6626. this._lpSprzedazy = value;
  6627. }
  6628. }
  6629. public string KodKrajuNadaniaTIN
  6630. {
  6631. get
  6632. {
  6633. return this._kodKrajuNadaniaTIN;
  6634. }
  6635. set
  6636. {
  6637. this._kodKrajuNadaniaTIN = value;
  6638. }
  6639. }
  6640. public string NrKontrahenta
  6641. {
  6642. get
  6643. {
  6644. return this._nrKontrahenta;
  6645. }
  6646. set
  6647. {
  6648. this._nrKontrahenta = value;
  6649. }
  6650. }
  6651. [System.Xml.Serialization.XmlElementAttribute(DataType = "token")]
  6652. public string NazwaKontrahenta
  6653. {
  6654. get
  6655. {
  6656. return this._nazwaKontrahenta;
  6657. }
  6658. set
  6659. {
  6660. this._nazwaKontrahenta = value;
  6661. }
  6662. }
  6663. [System.Xml.Serialization.XmlElementAttribute(DataType = "token")]
  6664. public string DowodSprzedazy
  6665. {
  6666. get
  6667. {
  6668. return this._dowodSprzedazy;
  6669. }
  6670. set
  6671. {
  6672. this._dowodSprzedazy = value;
  6673. }
  6674. }
  6675. [System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
  6676. public System.DateTime DataWystawienia
  6677. {
  6678. get
  6679. {
  6680. return this._dataWystawienia;
  6681. }
  6682. set
  6683. {
  6684. this._dataWystawienia = value;
  6685. _shouldSerializeDataWystawienia = true;
  6686. }
  6687. }
  6688. [System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
  6689. public System.DateTime DataSprzedazy
  6690. {
  6691. get
  6692. {
  6693. return this._dataSprzedazy;
  6694. }
  6695. set
  6696. {
  6697. this._dataSprzedazy = value;
  6698. _shouldSerializeDataSprzedazy = true;
  6699. }
  6700. }
  6701. public TDowoduSprzedazy TypDokumentu
  6702. {
  6703. get
  6704. {
  6705. return this._typDokumentu;
  6706. }
  6707. set
  6708. {
  6709. this._typDokumentu = value;
  6710. _shouldSerializeTypDokumentu = true;
  6711. }
  6712. }
  6713. public sbyte GTU_01
  6714. {
  6715. get
  6716. {
  6717. return this._gTU_01;
  6718. }
  6719. set
  6720. {
  6721. this._gTU_01 = value;
  6722. _shouldSerializeGTU_01 = true;
  6723. }
  6724. }
  6725. public sbyte GTU_02
  6726. {
  6727. get
  6728. {
  6729. return this._gTU_02;
  6730. }
  6731. set
  6732. {
  6733. this._gTU_02 = value;
  6734. _shouldSerializeGTU_02 = true;
  6735. }
  6736. }
  6737. public sbyte GTU_03
  6738. {
  6739. get
  6740. {
  6741. return this._gTU_03;
  6742. }
  6743. set
  6744. {
  6745. this._gTU_03 = value;
  6746. _shouldSerializeGTU_03 = true;
  6747. }
  6748. }
  6749. public sbyte GTU_04
  6750. {
  6751. get
  6752. {
  6753. return this._gTU_04;
  6754. }
  6755. set
  6756. {
  6757. this._gTU_04 = value;
  6758. _shouldSerializeGTU_04 = true;
  6759. }
  6760. }
  6761. public sbyte GTU_05
  6762. {
  6763. get
  6764. {
  6765. return this._gTU_05;
  6766. }
  6767. set
  6768. {
  6769. this._gTU_05 = value;
  6770. _shouldSerializeGTU_05 = true;
  6771. }
  6772. }
  6773. public sbyte GTU_06
  6774. {
  6775. get
  6776. {
  6777. return this._gTU_06;
  6778. }
  6779. set
  6780. {
  6781. this._gTU_06 = value;
  6782. _shouldSerializeGTU_06 = true;
  6783. }
  6784. }
  6785. public sbyte GTU_07
  6786. {
  6787. get
  6788. {
  6789. return this._gTU_07;
  6790. }
  6791. set
  6792. {
  6793. this._gTU_07 = value;
  6794. _shouldSerializeGTU_07 = true;
  6795. }
  6796. }
  6797. public sbyte GTU_08
  6798. {
  6799. get
  6800. {
  6801. return this._gTU_08;
  6802. }
  6803. set
  6804. {
  6805. this._gTU_08 = value;
  6806. _shouldSerializeGTU_08 = true;
  6807. }
  6808. }
  6809. public sbyte GTU_09
  6810. {
  6811. get
  6812. {
  6813. return this._gTU_09;
  6814. }
  6815. set
  6816. {
  6817. this._gTU_09 = value;
  6818. _shouldSerializeGTU_09 = true;
  6819. }
  6820. }
  6821. public sbyte GTU_10
  6822. {
  6823. get
  6824. {
  6825. return this._gTU_10;
  6826. }
  6827. set
  6828. {
  6829. this._gTU_10 = value;
  6830. _shouldSerializeGTU_10 = true;
  6831. }
  6832. }
  6833. public sbyte GTU_11
  6834. {
  6835. get
  6836. {
  6837. return this._gTU_11;
  6838. }
  6839. set
  6840. {
  6841. this._gTU_11 = value;
  6842. _shouldSerializeGTU_11 = true;
  6843. }
  6844. }
  6845. public sbyte GTU_12
  6846. {
  6847. get
  6848. {
  6849. return this._gTU_12;
  6850. }
  6851. set
  6852. {
  6853. this._gTU_12 = value;
  6854. _shouldSerializeGTU_12 = true;
  6855. }
  6856. }
  6857. public sbyte GTU_13
  6858. {
  6859. get
  6860. {
  6861. return this._gTU_13;
  6862. }
  6863. set
  6864. {
  6865. this._gTU_13 = value;
  6866. _shouldSerializeGTU_13 = true;
  6867. }
  6868. }
  6869. public sbyte SW
  6870. {
  6871. get
  6872. {
  6873. return this._sw;
  6874. }
  6875. set
  6876. {
  6877. this._sw = value;
  6878. _shouldSerializeSW = true;
  6879. }
  6880. }
  6881. public sbyte EE
  6882. {
  6883. get
  6884. {
  6885. return this._ee;
  6886. }
  6887. set
  6888. {
  6889. this._ee = value;
  6890. _shouldSerializeEE = true;
  6891. }
  6892. }
  6893. public sbyte TP
  6894. {
  6895. get
  6896. {
  6897. return this._tp;
  6898. }
  6899. set
  6900. {
  6901. this._tp = value;
  6902. _shouldSerializeTP = true;
  6903. }
  6904. }
  6905. public sbyte TT_WNT
  6906. {
  6907. get
  6908. {
  6909. return this._tT_WNT;
  6910. }
  6911. set
  6912. {
  6913. this._tT_WNT = value;
  6914. _shouldSerializeTT_WNT = true;
  6915. }
  6916. }
  6917. public sbyte TT_D
  6918. {
  6919. get
  6920. {
  6921. return this._tT_D;
  6922. }
  6923. set
  6924. {
  6925. this._tT_D = value;
  6926. _shouldSerializeTT_D = true;
  6927. }
  6928. }
  6929. public sbyte MR_T
  6930. {
  6931. get
  6932. {
  6933. return this._mR_T;
  6934. }
  6935. set
  6936. {
  6937. this._mR_T = value;
  6938. _shouldSerializeMR_T = true;
  6939. }
  6940. }
  6941. public sbyte MR_UZ
  6942. {
  6943. get
  6944. {
  6945. return this._mR_UZ;
  6946. }
  6947. set
  6948. {
  6949. this._mR_UZ = value;
  6950. _shouldSerializeMR_UZ = true;
  6951. }
  6952. }
  6953. public sbyte I_42
  6954. {
  6955. get
  6956. {
  6957. return this._i_42;
  6958. }
  6959. set
  6960. {
  6961. this._i_42 = value;
  6962. _shouldSerializeI_42 = true;
  6963. }
  6964. }
  6965. public sbyte I_63
  6966. {
  6967. get
  6968. {
  6969. return this._i_63;
  6970. }
  6971. set
  6972. {
  6973. this._i_63 = value;
  6974. _shouldSerializeI_63 = true;
  6975. }
  6976. }
  6977. public sbyte B_SPV
  6978. {
  6979. get
  6980. {
  6981. return this._b_SPV;
  6982. }
  6983. set
  6984. {
  6985. this._b_SPV = value;
  6986. _shouldSerializeB_SPV = true;
  6987. }
  6988. }
  6989. public sbyte B_SPV_DOSTAWA
  6990. {
  6991. get
  6992. {
  6993. return this._b_SPV_DOSTAWA;
  6994. }
  6995. set
  6996. {
  6997. this._b_SPV_DOSTAWA = value;
  6998. _shouldSerializeB_SPV_DOSTAWA = true;
  6999. }
  7000. }
  7001. public sbyte B_MPV_PROWIZJA
  7002. {
  7003. get
  7004. {
  7005. return this._b_MPV_PROWIZJA;
  7006. }
  7007. set
  7008. {
  7009. this._b_MPV_PROWIZJA = value;
  7010. _shouldSerializeB_MPV_PROWIZJA = true;
  7011. }
  7012. }
  7013. public sbyte MPP
  7014. {
  7015. get
  7016. {
  7017. return this._mPP;
  7018. }
  7019. set
  7020. {
  7021. this._mPP = value;
  7022. _shouldSerializeMPP = true;
  7023. }
  7024. }
  7025. public sbyte KorektaPodstawyOpodt
  7026. {
  7027. get
  7028. {
  7029. return this._korektaPodstawyOpodt;
  7030. }
  7031. set
  7032. {
  7033. this._korektaPodstawyOpodt = value;
  7034. _shouldSerializeKorektaPodstawyOpodt = true;
  7035. }
  7036. }
  7037. public decimal K_10
  7038. {
  7039. get
  7040. {
  7041. return this._k_10;
  7042. }
  7043. set
  7044. {
  7045. this._k_10 = value;
  7046. _shouldSerializeK_10 = true;
  7047. }
  7048. }
  7049. public decimal K_11
  7050. {
  7051. get
  7052. {
  7053. return this._k_11;
  7054. }
  7055. set
  7056. {
  7057. this._k_11 = value;
  7058. _shouldSerializeK_11 = true;
  7059. }
  7060. }
  7061. public decimal K_12
  7062. {
  7063. get
  7064. {
  7065. return this._k_12;
  7066. }
  7067. set
  7068. {
  7069. this._k_12 = value;
  7070. _shouldSerializeK_12 = true;
  7071. }
  7072. }
  7073. public decimal K_13
  7074. {
  7075. get
  7076. {
  7077. return this._k_13;
  7078. }
  7079. set
  7080. {
  7081. this._k_13 = value;
  7082. _shouldSerializeK_13 = true;
  7083. }
  7084. }
  7085. public decimal K_14
  7086. {
  7087. get
  7088. {
  7089. return this._k_14;
  7090. }
  7091. set
  7092. {
  7093. this._k_14 = value;
  7094. _shouldSerializeK_14 = true;
  7095. }
  7096. }
  7097. public decimal K_15
  7098. {
  7099. get
  7100. {
  7101. return this._k_15;
  7102. }
  7103. set
  7104. {
  7105. this._k_15 = value;
  7106. _shouldSerializeK_15 = true;
  7107. }
  7108. }
  7109. public decimal K_16
  7110. {
  7111. get
  7112. {
  7113. return this._k_16;
  7114. }
  7115. set
  7116. {
  7117. this._k_16 = value;
  7118. _shouldSerializeK_16 = true;
  7119. }
  7120. }
  7121. public decimal K_17
  7122. {
  7123. get
  7124. {
  7125. return this._k_17;
  7126. }
  7127. set
  7128. {
  7129. this._k_17 = value;
  7130. _shouldSerializeK_17 = true;
  7131. }
  7132. }
  7133. public decimal K_18
  7134. {
  7135. get
  7136. {
  7137. return this._k_18;
  7138. }
  7139. set
  7140. {
  7141. this._k_18 = value;
  7142. _shouldSerializeK_18 = true;
  7143. }
  7144. }
  7145. public decimal K_19
  7146. {
  7147. get
  7148. {
  7149. return this._k_19;
  7150. }
  7151. set
  7152. {
  7153. this._k_19 = value;
  7154. _shouldSerializeK_19 = true;
  7155. }
  7156. }
  7157. public decimal K_20
  7158. {
  7159. get
  7160. {
  7161. return this._k_20;
  7162. }
  7163. set
  7164. {
  7165. this._k_20 = value;
  7166. _shouldSerializeK_20 = true;
  7167. }
  7168. }
  7169. public decimal K_21
  7170. {
  7171. get
  7172. {
  7173. return this._k_21;
  7174. }
  7175. set
  7176. {
  7177. this._k_21 = value;
  7178. _shouldSerializeK_21 = true;
  7179. }
  7180. }
  7181. public decimal K_22
  7182. {
  7183. get
  7184. {
  7185. return this._k_22;
  7186. }
  7187. set
  7188. {
  7189. this._k_22 = value;
  7190. _shouldSerializeK_22 = true;
  7191. }
  7192. }
  7193. public decimal K_23
  7194. {
  7195. get
  7196. {
  7197. return this._k_23;
  7198. }
  7199. set
  7200. {
  7201. this._k_23 = value;
  7202. _shouldSerializeK_23 = true;
  7203. }
  7204. }
  7205. public decimal K_24
  7206. {
  7207. get
  7208. {
  7209. return this._k_24;
  7210. }
  7211. set
  7212. {
  7213. this._k_24 = value;
  7214. _shouldSerializeK_24 = true;
  7215. }
  7216. }
  7217. public decimal K_25
  7218. {
  7219. get
  7220. {
  7221. return this._k_25;
  7222. }
  7223. set
  7224. {
  7225. this._k_25 = value;
  7226. _shouldSerializeK_25 = true;
  7227. }
  7228. }
  7229. public decimal K_26
  7230. {
  7231. get
  7232. {
  7233. return this._k_26;
  7234. }
  7235. set
  7236. {
  7237. this._k_26 = value;
  7238. _shouldSerializeK_26 = true;
  7239. }
  7240. }
  7241. public decimal K_27
  7242. {
  7243. get
  7244. {
  7245. return this._k_27;
  7246. }
  7247. set
  7248. {
  7249. this._k_27 = value;
  7250. _shouldSerializeK_27 = true;
  7251. }
  7252. }
  7253. public decimal K_28
  7254. {
  7255. get
  7256. {
  7257. return this._k_28;
  7258. }
  7259. set
  7260. {
  7261. this._k_28 = value;
  7262. _shouldSerializeK_28 = true;
  7263. }
  7264. }
  7265. public decimal K_29
  7266. {
  7267. get
  7268. {
  7269. return this._k_29;
  7270. }
  7271. set
  7272. {
  7273. this._k_29 = value;
  7274. _shouldSerializeK_29 = true;
  7275. }
  7276. }
  7277. public decimal K_30
  7278. {
  7279. get
  7280. {
  7281. return this._k_30;
  7282. }
  7283. set
  7284. {
  7285. this._k_30 = value;
  7286. _shouldSerializeK_30 = true;
  7287. }
  7288. }
  7289. public decimal K_31
  7290. {
  7291. get
  7292. {
  7293. return this._k_31;
  7294. }
  7295. set
  7296. {
  7297. this._k_31 = value;
  7298. _shouldSerializeK_31 = true;
  7299. }
  7300. }
  7301. public decimal K_32
  7302. {
  7303. get
  7304. {
  7305. return this._k_32;
  7306. }
  7307. set
  7308. {
  7309. this._k_32 = value;
  7310. _shouldSerializeK_32 = true;
  7311. }
  7312. }
  7313. public decimal K_33
  7314. {
  7315. get
  7316. {
  7317. return this._k_33;
  7318. }
  7319. set
  7320. {
  7321. this._k_33 = value;
  7322. _shouldSerializeK_33 = true;
  7323. }
  7324. }
  7325. public decimal K_34
  7326. {
  7327. get
  7328. {
  7329. return this._k_34;
  7330. }
  7331. set
  7332. {
  7333. this._k_34 = value;
  7334. _shouldSerializeK_34 = true;
  7335. }
  7336. }
  7337. public decimal K_35
  7338. {
  7339. get
  7340. {
  7341. return this._k_35;
  7342. }
  7343. set
  7344. {
  7345. this._k_35 = value;
  7346. _shouldSerializeK_35 = true;
  7347. }
  7348. }
  7349. public decimal K_36
  7350. {
  7351. get
  7352. {
  7353. return this._k_36;
  7354. }
  7355. set
  7356. {
  7357. this._k_36 = value;
  7358. _shouldSerializeK_36 = true;
  7359. }
  7360. }
  7361. public decimal SprzedazVAT_Marza
  7362. {
  7363. get
  7364. {
  7365. return this._sprzedazVAT_Marza;
  7366. }
  7367. set
  7368. {
  7369. this._sprzedazVAT_Marza = value;
  7370. _shouldSerializeSprzedazVAT_Marza = true;
  7371. }
  7372. }
  7373. private static XmlSerializer Serializer
  7374. {
  7375. get
  7376. {
  7377. if ((serializer == null))
  7378. {
  7379. serializer = new XmlSerializerFactory().CreateSerializer(typeof(JPKEwidencjaSprzedazWiersz));
  7380. }
  7381. return serializer;
  7382. }
  7383. }
  7384. /// <summary>
  7385. /// Test whether DataWystawienia should be serialized
  7386. /// </summary>
  7387. public virtual bool ShouldSerializeDataWystawienia()
  7388. {
  7389. if (_shouldSerializeDataWystawienia)
  7390. {
  7391. return true;
  7392. }
  7393. return (_dataWystawienia != default(System.DateTime));
  7394. }
  7395. /// <summary>
  7396. /// Test whether DataSprzedazy should be serialized
  7397. /// </summary>
  7398. public virtual bool ShouldSerializeDataSprzedazy()
  7399. {
  7400. if (_shouldSerializeDataSprzedazy)
  7401. {
  7402. return true;
  7403. }
  7404. return (_dataSprzedazy != default(System.DateTime));
  7405. }
  7406. /// <summary>
  7407. /// Test whether GTU_01 should be serialized
  7408. /// </summary>
  7409. public virtual bool ShouldSerializeGTU_01()
  7410. {
  7411. if (_shouldSerializeGTU_01)
  7412. {
  7413. return true;
  7414. }
  7415. return (_gTU_01 != default(sbyte));
  7416. }
  7417. /// <summary>
  7418. /// Test whether GTU_02 should be serialized
  7419. /// </summary>
  7420. public virtual bool ShouldSerializeGTU_02()
  7421. {
  7422. if (_shouldSerializeGTU_02)
  7423. {
  7424. return true;
  7425. }
  7426. return (_gTU_02 != default(sbyte));
  7427. }
  7428. /// <summary>
  7429. /// Test whether GTU_03 should be serialized
  7430. /// </summary>
  7431. public virtual bool ShouldSerializeGTU_03()
  7432. {
  7433. if (_shouldSerializeGTU_03)
  7434. {
  7435. return true;
  7436. }
  7437. return (_gTU_03 != default(sbyte));
  7438. }
  7439. /// <summary>
  7440. /// Test whether GTU_04 should be serialized
  7441. /// </summary>
  7442. public virtual bool ShouldSerializeGTU_04()
  7443. {
  7444. if (_shouldSerializeGTU_04)
  7445. {
  7446. return true;
  7447. }
  7448. return (_gTU_04 != default(sbyte));
  7449. }
  7450. /// <summary>
  7451. /// Test whether GTU_05 should be serialized
  7452. /// </summary>
  7453. public virtual bool ShouldSerializeGTU_05()
  7454. {
  7455. if (_shouldSerializeGTU_05)
  7456. {
  7457. return true;
  7458. }
  7459. return (_gTU_05 != default(sbyte));
  7460. }
  7461. /// <summary>
  7462. /// Test whether GTU_06 should be serialized
  7463. /// </summary>
  7464. public virtual bool ShouldSerializeGTU_06()
  7465. {
  7466. if (_shouldSerializeGTU_06)
  7467. {
  7468. return true;
  7469. }
  7470. return (_gTU_06 != default(sbyte));
  7471. }
  7472. /// <summary>
  7473. /// Test whether GTU_07 should be serialized
  7474. /// </summary>
  7475. public virtual bool ShouldSerializeGTU_07()
  7476. {
  7477. if (_shouldSerializeGTU_07)
  7478. {
  7479. return true;
  7480. }
  7481. return (_gTU_07 != default(sbyte));
  7482. }
  7483. /// <summary>
  7484. /// Test whether GTU_08 should be serialized
  7485. /// </summary>
  7486. public virtual bool ShouldSerializeGTU_08()
  7487. {
  7488. if (_shouldSerializeGTU_08)
  7489. {
  7490. return true;
  7491. }
  7492. return (_gTU_08 != default(sbyte));
  7493. }
  7494. /// <summary>
  7495. /// Test whether GTU_09 should be serialized
  7496. /// </summary>
  7497. public virtual bool ShouldSerializeGTU_09()
  7498. {
  7499. if (_shouldSerializeGTU_09)
  7500. {
  7501. return true;
  7502. }
  7503. return (_gTU_09 != default(sbyte));
  7504. }
  7505. /// <summary>
  7506. /// Test whether GTU_10 should be serialized
  7507. /// </summary>
  7508. public virtual bool ShouldSerializeGTU_10()
  7509. {
  7510. if (_shouldSerializeGTU_10)
  7511. {
  7512. return true;
  7513. }
  7514. return (_gTU_10 != default(sbyte));
  7515. }
  7516. /// <summary>
  7517. /// Test whether GTU_11 should be serialized
  7518. /// </summary>
  7519. public virtual bool ShouldSerializeGTU_11()
  7520. {
  7521. if (_shouldSerializeGTU_11)
  7522. {
  7523. return true;
  7524. }
  7525. return (_gTU_11 != default(sbyte));
  7526. }
  7527. /// <summary>
  7528. /// Test whether GTU_12 should be serialized
  7529. /// </summary>
  7530. public virtual bool ShouldSerializeGTU_12()
  7531. {
  7532. if (_shouldSerializeGTU_12)
  7533. {
  7534. return true;
  7535. }
  7536. return (_gTU_12 != default(sbyte));
  7537. }
  7538. /// <summary>
  7539. /// Test whether GTU_13 should be serialized
  7540. /// </summary>
  7541. public virtual bool ShouldSerializeGTU_13()
  7542. {
  7543. if (_shouldSerializeGTU_13)
  7544. {
  7545. return true;
  7546. }
  7547. return (_gTU_13 != default(sbyte));
  7548. }
  7549. /// <summary>
  7550. /// Test whether SW should be serialized
  7551. /// </summary>
  7552. public virtual bool ShouldSerializeSW()
  7553. {
  7554. if (_shouldSerializeSW)
  7555. {
  7556. return true;
  7557. }
  7558. return (_sw != default(sbyte));
  7559. }
  7560. /// <summary>
  7561. /// Test whether EE should be serialized
  7562. /// </summary>
  7563. public virtual bool ShouldSerializeEE()
  7564. {
  7565. if (_shouldSerializeEE)
  7566. {
  7567. return true;
  7568. }
  7569. return (_ee != default(sbyte));
  7570. }
  7571. /// <summary>
  7572. /// Test whether TP should be serialized
  7573. /// </summary>
  7574. public virtual bool ShouldSerializeTP()
  7575. {
  7576. if (_shouldSerializeTP)
  7577. {
  7578. return true;
  7579. }
  7580. return (_tp != default(sbyte));
  7581. }
  7582. /// <summary>
  7583. /// Test whether TT_WNT should be serialized
  7584. /// </summary>
  7585. public virtual bool ShouldSerializeTT_WNT()
  7586. {
  7587. if (_shouldSerializeTT_WNT)
  7588. {
  7589. return true;
  7590. }
  7591. return (_tT_WNT != default(sbyte));
  7592. }
  7593. /// <summary>
  7594. /// Test whether TT_D should be serialized
  7595. /// </summary>
  7596. public virtual bool ShouldSerializeTT_D()
  7597. {
  7598. if (_shouldSerializeTT_D)
  7599. {
  7600. return true;
  7601. }
  7602. return (_tT_D != default(sbyte));
  7603. }
  7604. /// <summary>
  7605. /// Test whether MR_T should be serialized
  7606. /// </summary>
  7607. public virtual bool ShouldSerializeMR_T()
  7608. {
  7609. if (_shouldSerializeMR_T)
  7610. {
  7611. return true;
  7612. }
  7613. return (_mR_T != default(sbyte));
  7614. }
  7615. /// <summary>
  7616. /// Test whether MR_UZ should be serialized
  7617. /// </summary>
  7618. public virtual bool ShouldSerializeMR_UZ()
  7619. {
  7620. if (_shouldSerializeMR_UZ)
  7621. {
  7622. return true;
  7623. }
  7624. return (_mR_UZ != default(sbyte));
  7625. }
  7626. /// <summary>
  7627. /// Test whether I_42 should be serialized
  7628. /// </summary>
  7629. public virtual bool ShouldSerializeI_42()
  7630. {
  7631. if (_shouldSerializeI_42)
  7632. {
  7633. return true;
  7634. }
  7635. return (_i_42 != default(sbyte));
  7636. }
  7637. /// <summary>
  7638. /// Test whether I_63 should be serialized
  7639. /// </summary>
  7640. public virtual bool ShouldSerializeI_63()
  7641. {
  7642. if (_shouldSerializeI_63)
  7643. {
  7644. return true;
  7645. }
  7646. return (_i_63 != default(sbyte));
  7647. }
  7648. /// <summary>
  7649. /// Test whether B_SPV should be serialized
  7650. /// </summary>
  7651. public virtual bool ShouldSerializeB_SPV()
  7652. {
  7653. if (_shouldSerializeB_SPV)
  7654. {
  7655. return true;
  7656. }
  7657. return (_b_SPV != default(sbyte));
  7658. }
  7659. /// <summary>
  7660. /// Test whether B_SPV_DOSTAWA should be serialized
  7661. /// </summary>
  7662. public virtual bool ShouldSerializeB_SPV_DOSTAWA()
  7663. {
  7664. if (_shouldSerializeB_SPV_DOSTAWA)
  7665. {
  7666. return true;
  7667. }
  7668. return (_b_SPV_DOSTAWA != default(sbyte));
  7669. }
  7670. /// <summary>
  7671. /// Test whether B_MPV_PROWIZJA should be serialized
  7672. /// </summary>
  7673. public virtual bool ShouldSerializeB_MPV_PROWIZJA()
  7674. {
  7675. if (_shouldSerializeB_MPV_PROWIZJA)
  7676. {
  7677. return true;
  7678. }
  7679. return (_b_MPV_PROWIZJA != default(sbyte));
  7680. }
  7681. /// <summary>
  7682. /// Test whether MPP should be serialized
  7683. /// </summary>
  7684. public virtual bool ShouldSerializeMPP()
  7685. {
  7686. if (_shouldSerializeMPP)
  7687. {
  7688. return true;
  7689. }
  7690. return (_mPP != default(sbyte));
  7691. }
  7692. /// <summary>
  7693. /// Test whether KorektaPodstawyOpodt should be serialized
  7694. /// </summary>
  7695. public virtual bool ShouldSerializeKorektaPodstawyOpodt()
  7696. {
  7697. if (_shouldSerializeKorektaPodstawyOpodt)
  7698. {
  7699. return true;
  7700. }
  7701. return (_korektaPodstawyOpodt != default(sbyte));
  7702. }
  7703. /// <summary>
  7704. /// Test whether K_10 should be serialized
  7705. /// </summary>
  7706. public virtual bool ShouldSerializeK_10()
  7707. {
  7708. if (_shouldSerializeK_10)
  7709. {
  7710. return true;
  7711. }
  7712. return (_k_10 != default(decimal));
  7713. }
  7714. /// <summary>
  7715. /// Test whether K_11 should be serialized
  7716. /// </summary>
  7717. public virtual bool ShouldSerializeK_11()
  7718. {
  7719. if (_shouldSerializeK_11)
  7720. {
  7721. return true;
  7722. }
  7723. return (_k_11 != default(decimal));
  7724. }
  7725. /// <summary>
  7726. /// Test whether K_12 should be serialized
  7727. /// </summary>
  7728. public virtual bool ShouldSerializeK_12()
  7729. {
  7730. if (_shouldSerializeK_12)
  7731. {
  7732. return true;
  7733. }
  7734. return (_k_12 != default(decimal));
  7735. }
  7736. /// <summary>
  7737. /// Test whether K_13 should be serialized
  7738. /// </summary>
  7739. public virtual bool ShouldSerializeK_13()
  7740. {
  7741. if (_shouldSerializeK_13)
  7742. {
  7743. return true;
  7744. }
  7745. return (_k_13 != default(decimal));
  7746. }
  7747. /// <summary>
  7748. /// Test whether K_14 should be serialized
  7749. /// </summary>
  7750. public virtual bool ShouldSerializeK_14()
  7751. {
  7752. if (_shouldSerializeK_14)
  7753. {
  7754. return true;
  7755. }
  7756. return (_k_14 != default(decimal));
  7757. }
  7758. /// <summary>
  7759. /// Test whether K_15 should be serialized
  7760. /// </summary>
  7761. public virtual bool ShouldSerializeK_15()
  7762. {
  7763. if (_shouldSerializeK_15)
  7764. {
  7765. return true;
  7766. }
  7767. return (_k_15 != default(decimal));
  7768. }
  7769. /// <summary>
  7770. /// Test whether K_16 should be serialized
  7771. /// </summary>
  7772. public virtual bool ShouldSerializeK_16()
  7773. {
  7774. if (_shouldSerializeK_16)
  7775. {
  7776. return true;
  7777. }
  7778. return (_k_16 != default(decimal));
  7779. }
  7780. /// <summary>
  7781. /// Test whether K_17 should be serialized
  7782. /// </summary>
  7783. public virtual bool ShouldSerializeK_17()
  7784. {
  7785. if (_shouldSerializeK_17)
  7786. {
  7787. return true;
  7788. }
  7789. return (_k_17 != default(decimal));
  7790. }
  7791. /// <summary>
  7792. /// Test whether K_18 should be serialized
  7793. /// </summary>
  7794. public virtual bool ShouldSerializeK_18()
  7795. {
  7796. if (_shouldSerializeK_18)
  7797. {
  7798. return true;
  7799. }
  7800. return (_k_18 != default(decimal));
  7801. }
  7802. /// <summary>
  7803. /// Test whether K_19 should be serialized
  7804. /// </summary>
  7805. public virtual bool ShouldSerializeK_19()
  7806. {
  7807. if (_shouldSerializeK_19)
  7808. {
  7809. return true;
  7810. }
  7811. return (_k_19 != default(decimal));
  7812. }
  7813. /// <summary>
  7814. /// Test whether K_20 should be serialized
  7815. /// </summary>
  7816. public virtual bool ShouldSerializeK_20()
  7817. {
  7818. if (_shouldSerializeK_20)
  7819. {
  7820. return true;
  7821. }
  7822. return (_k_20 != default(decimal));
  7823. }
  7824. /// <summary>
  7825. /// Test whether K_21 should be serialized
  7826. /// </summary>
  7827. public virtual bool ShouldSerializeK_21()
  7828. {
  7829. if (_shouldSerializeK_21)
  7830. {
  7831. return true;
  7832. }
  7833. return (_k_21 != default(decimal));
  7834. }
  7835. /// <summary>
  7836. /// Test whether K_22 should be serialized
  7837. /// </summary>
  7838. public virtual bool ShouldSerializeK_22()
  7839. {
  7840. if (_shouldSerializeK_22)
  7841. {
  7842. return true;
  7843. }
  7844. return (_k_22 != default(decimal));
  7845. }
  7846. /// <summary>
  7847. /// Test whether K_23 should be serialized
  7848. /// </summary>
  7849. public virtual bool ShouldSerializeK_23()
  7850. {
  7851. if (_shouldSerializeK_23)
  7852. {
  7853. return true;
  7854. }
  7855. return (_k_23 != default(decimal));
  7856. }
  7857. /// <summary>
  7858. /// Test whether K_24 should be serialized
  7859. /// </summary>
  7860. public virtual bool ShouldSerializeK_24()
  7861. {
  7862. if (_shouldSerializeK_24)
  7863. {
  7864. return true;
  7865. }
  7866. return (_k_24 != default(decimal));
  7867. }
  7868. /// <summary>
  7869. /// Test whether K_25 should be serialized
  7870. /// </summary>
  7871. public virtual bool ShouldSerializeK_25()
  7872. {
  7873. if (_shouldSerializeK_25)
  7874. {
  7875. return true;
  7876. }
  7877. return (_k_25 != default(decimal));
  7878. }
  7879. /// <summary>
  7880. /// Test whether K_26 should be serialized
  7881. /// </summary>
  7882. public virtual bool ShouldSerializeK_26()
  7883. {
  7884. if (_shouldSerializeK_26)
  7885. {
  7886. return true;
  7887. }
  7888. return (_k_26 != default(decimal));
  7889. }
  7890. /// <summary>
  7891. /// Test whether K_27 should be serialized
  7892. /// </summary>
  7893. public virtual bool ShouldSerializeK_27()
  7894. {
  7895. if (_shouldSerializeK_27)
  7896. {
  7897. return true;
  7898. }
  7899. return (_k_27 != default(decimal));
  7900. }
  7901. /// <summary>
  7902. /// Test whether K_28 should be serialized
  7903. /// </summary>
  7904. public virtual bool ShouldSerializeK_28()
  7905. {
  7906. if (_shouldSerializeK_28)
  7907. {
  7908. return true;
  7909. }
  7910. return (_k_28 != default(decimal));
  7911. }
  7912. /// <summary>
  7913. /// Test whether K_29 should be serialized
  7914. /// </summary>
  7915. public virtual bool ShouldSerializeK_29()
  7916. {
  7917. if (_shouldSerializeK_29)
  7918. {
  7919. return true;
  7920. }
  7921. return (_k_29 != default(decimal));
  7922. }
  7923. /// <summary>
  7924. /// Test whether K_30 should be serialized
  7925. /// </summary>
  7926. public virtual bool ShouldSerializeK_30()
  7927. {
  7928. if (_shouldSerializeK_30)
  7929. {
  7930. return true;
  7931. }
  7932. return (_k_30 != default(decimal));
  7933. }
  7934. /// <summary>
  7935. /// Test whether K_31 should be serialized
  7936. /// </summary>
  7937. public virtual bool ShouldSerializeK_31()
  7938. {
  7939. if (_shouldSerializeK_31)
  7940. {
  7941. return true;
  7942. }
  7943. return (_k_31 != default(decimal));
  7944. }
  7945. /// <summary>
  7946. /// Test whether K_32 should be serialized
  7947. /// </summary>
  7948. public virtual bool ShouldSerializeK_32()
  7949. {
  7950. if (_shouldSerializeK_32)
  7951. {
  7952. return true;
  7953. }
  7954. return (_k_32 != default(decimal));
  7955. }
  7956. /// <summary>
  7957. /// Test whether K_33 should be serialized
  7958. /// </summary>
  7959. public virtual bool ShouldSerializeK_33()
  7960. {
  7961. if (_shouldSerializeK_33)
  7962. {
  7963. return true;
  7964. }
  7965. return (_k_33 != default(decimal));
  7966. }
  7967. /// <summary>
  7968. /// Test whether K_34 should be serialized
  7969. /// </summary>
  7970. public virtual bool ShouldSerializeK_34()
  7971. {
  7972. if (_shouldSerializeK_34)
  7973. {
  7974. return true;
  7975. }
  7976. return (_k_34 != default(decimal));
  7977. }
  7978. /// <summary>
  7979. /// Test whether K_35 should be serialized
  7980. /// </summary>
  7981. public virtual bool ShouldSerializeK_35()
  7982. {
  7983. if (_shouldSerializeK_35)
  7984. {
  7985. return true;
  7986. }
  7987. return (_k_35 != default(decimal));
  7988. }
  7989. /// <summary>
  7990. /// Test whether K_36 should be serialized
  7991. /// </summary>
  7992. public virtual bool ShouldSerializeK_36()
  7993. {
  7994. if (_shouldSerializeK_36)
  7995. {
  7996. return true;
  7997. }
  7998. return (_k_36 != default(decimal));
  7999. }
  8000. /// <summary>
  8001. /// Test whether SprzedazVAT_Marza should be serialized
  8002. /// </summary>
  8003. public virtual bool ShouldSerializeSprzedazVAT_Marza()
  8004. {
  8005. if (_shouldSerializeSprzedazVAT_Marza)
  8006. {
  8007. return true;
  8008. }
  8009. return (_sprzedazVAT_Marza != default(decimal));
  8010. }
  8011. /// <summary>
  8012. /// Test whether TypDokumentu should be serialized
  8013. /// </summary>
  8014. public virtual bool ShouldSerializeTypDokumentu()
  8015. {
  8016. if (_shouldSerializeTypDokumentu)
  8017. {
  8018. return true;
  8019. }
  8020. return (_typDokumentu != default(TDowoduSprzedazy));
  8021. }
  8022. /// <summary>
  8023. /// Test whether LpSprzedazy should be serialized
  8024. /// </summary>
  8025. public virtual bool ShouldSerializeLpSprzedazy()
  8026. {
  8027. return !string.IsNullOrEmpty(LpSprzedazy);
  8028. }
  8029. /// <summary>
  8030. /// Test whether KodKrajuNadaniaTIN should be serialized
  8031. /// </summary>
  8032. public virtual bool ShouldSerializeKodKrajuNadaniaTIN()
  8033. {
  8034. return !string.IsNullOrEmpty(KodKrajuNadaniaTIN);
  8035. }
  8036. /// <summary>
  8037. /// Test whether NrKontrahenta should be serialized
  8038. /// </summary>
  8039. public virtual bool ShouldSerializeNrKontrahenta()
  8040. {
  8041. return !string.IsNullOrEmpty(NrKontrahenta);
  8042. }
  8043. /// <summary>
  8044. /// Test whether NazwaKontrahenta should be serialized
  8045. /// </summary>
  8046. public virtual bool ShouldSerializeNazwaKontrahenta()
  8047. {
  8048. return !string.IsNullOrEmpty(NazwaKontrahenta);
  8049. }
  8050. /// <summary>
  8051. /// Test whether DowodSprzedazy should be serialized
  8052. /// </summary>
  8053. public virtual bool ShouldSerializeDowodSprzedazy()
  8054. {
  8055. return !string.IsNullOrEmpty(DowodSprzedazy);
  8056. }
  8057. #region Serialize/Deserialize
  8058. /// <summary>
  8059. /// Serializes current JPKEwidencjaSprzedazWiersz object into an XML string
  8060. /// </summary>
  8061. /// <returns>string XML value</returns>
  8062. public virtual string Serialize()
  8063. {
  8064. System.IO.StreamReader streamReader = null;
  8065. System.IO.MemoryStream memoryStream = null;
  8066. try
  8067. {
  8068. memoryStream = new System.IO.MemoryStream();
  8069. System.Xml.XmlWriterSettings xmlWriterSettings = new System.Xml.XmlWriterSettings();
  8070. System.Xml.XmlWriter xmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings);
  8071. Serializer.Serialize(xmlWriter, this);
  8072. memoryStream.Seek(0, SeekOrigin.Begin);
  8073. streamReader = new System.IO.StreamReader(memoryStream);
  8074. return streamReader.ReadToEnd();
  8075. }
  8076. finally
  8077. {
  8078. if ((streamReader != null))
  8079. {
  8080. streamReader.Dispose();
  8081. }
  8082. if ((memoryStream != null))
  8083. {
  8084. memoryStream.Dispose();
  8085. }
  8086. }
  8087. }
  8088. /// <summary>
  8089. /// Deserializes workflow markup into an JPKEwidencjaSprzedazWiersz object
  8090. /// </summary>
  8091. /// <param name="input">string workflow markup to deserialize</param>
  8092. /// <param name="obj">Output JPKEwidencjaSprzedazWiersz object</param>
  8093. /// <param name="exception">output Exception value if deserialize failed</param>
  8094. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  8095. public static bool Deserialize(string input, out JPKEwidencjaSprzedazWiersz obj, out System.Exception exception)
  8096. {
  8097. exception = null;
  8098. obj = default(JPKEwidencjaSprzedazWiersz);
  8099. try
  8100. {
  8101. obj = Deserialize(input);
  8102. return true;
  8103. }
  8104. catch (System.Exception ex)
  8105. {
  8106. exception = ex;
  8107. return false;
  8108. }
  8109. }
  8110. public static bool Deserialize(string input, out JPKEwidencjaSprzedazWiersz obj)
  8111. {
  8112. System.Exception exception = null;
  8113. return Deserialize(input, out obj, out exception);
  8114. }
  8115. public static JPKEwidencjaSprzedazWiersz Deserialize(string input)
  8116. {
  8117. System.IO.StringReader stringReader = null;
  8118. try
  8119. {
  8120. stringReader = new System.IO.StringReader(input);
  8121. return ((JPKEwidencjaSprzedazWiersz)(Serializer.Deserialize(XmlReader.Create(stringReader))));
  8122. }
  8123. finally
  8124. {
  8125. if ((stringReader != null))
  8126. {
  8127. stringReader.Dispose();
  8128. }
  8129. }
  8130. }
  8131. public static JPKEwidencjaSprzedazWiersz Deserialize(System.IO.Stream s)
  8132. {
  8133. return ((JPKEwidencjaSprzedazWiersz)(Serializer.Deserialize(s)));
  8134. }
  8135. #endregion
  8136. /// <summary>
  8137. /// Serializes current JPKEwidencjaSprzedazWiersz object into file
  8138. /// </summary>
  8139. /// <param name="fileName">full path of outupt xml file</param>
  8140. /// <param name="exception">output Exception value if failed</param>
  8141. /// <returns>true if can serialize and save into file; otherwise, false</returns>
  8142. public virtual bool SaveToFile(string fileName, out System.Exception exception)
  8143. {
  8144. exception = null;
  8145. try
  8146. {
  8147. SaveToFile(fileName);
  8148. return true;
  8149. }
  8150. catch (System.Exception e)
  8151. {
  8152. exception = e;
  8153. return false;
  8154. }
  8155. }
  8156. public virtual void SaveToFile(string fileName)
  8157. {
  8158. System.IO.StreamWriter streamWriter = null;
  8159. try
  8160. {
  8161. string xmlString = Serialize();
  8162. System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
  8163. streamWriter = xmlFile.CreateText();
  8164. streamWriter.WriteLine(xmlString);
  8165. streamWriter.Close();
  8166. }
  8167. finally
  8168. {
  8169. if ((streamWriter != null))
  8170. {
  8171. streamWriter.Dispose();
  8172. }
  8173. }
  8174. }
  8175. /// <summary>
  8176. /// Deserializes xml markup from file into an JPKEwidencjaSprzedazWiersz object
  8177. /// </summary>
  8178. /// <param name="fileName">string xml file to load and deserialize</param>
  8179. /// <param name="obj">Output JPKEwidencjaSprzedazWiersz object</param>
  8180. /// <param name="exception">output Exception value if deserialize failed</param>
  8181. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  8182. public static bool LoadFromFile(string fileName, out JPKEwidencjaSprzedazWiersz obj, out System.Exception exception)
  8183. {
  8184. exception = null;
  8185. obj = default(JPKEwidencjaSprzedazWiersz);
  8186. try
  8187. {
  8188. obj = LoadFromFile(fileName);
  8189. return true;
  8190. }
  8191. catch (System.Exception ex)
  8192. {
  8193. exception = ex;
  8194. return false;
  8195. }
  8196. }
  8197. public static bool LoadFromFile(string fileName, out JPKEwidencjaSprzedazWiersz obj)
  8198. {
  8199. System.Exception exception = null;
  8200. return LoadFromFile(fileName, out obj, out exception);
  8201. }
  8202. public static JPKEwidencjaSprzedazWiersz LoadFromFile(string fileName)
  8203. {
  8204. System.IO.FileStream file = null;
  8205. System.IO.StreamReader sr = null;
  8206. try
  8207. {
  8208. file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
  8209. sr = new System.IO.StreamReader(file);
  8210. string xmlString = sr.ReadToEnd();
  8211. sr.Close();
  8212. file.Close();
  8213. return Deserialize(xmlString);
  8214. }
  8215. finally
  8216. {
  8217. if ((file != null))
  8218. {
  8219. file.Dispose();
  8220. }
  8221. if ((sr != null))
  8222. {
  8223. sr.Dispose();
  8224. }
  8225. }
  8226. }
  8227. }
  8228. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3761.0")]
  8229. [System.SerializableAttribute()]
  8230. [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://crd.gov.pl/wzor/2020/05/08/9393/")]
  8231. public enum TDowoduSprzedazy
  8232. {
  8233. /// <remarks/>
  8234. RO,
  8235. /// <remarks/>
  8236. WEW,
  8237. /// <remarks/>
  8238. FP,
  8239. }
  8240. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3761.0")]
  8241. [System.SerializableAttribute()]
  8242. [System.Diagnostics.DebuggerStepThroughAttribute()]
  8243. [System.ComponentModel.DesignerCategoryAttribute("code")]
  8244. [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://crd.gov.pl/wzor/2020/05/08/9393/")]
  8245. public partial class JPKEwidencjaSprzedazCtrl
  8246. {
  8247. #region Private fields
  8248. private bool _shouldSerializePodatekNalezny;
  8249. private string _liczbaWierszySprzedazy;
  8250. private decimal _podatekNalezny;
  8251. private static XmlSerializer serializer;
  8252. #endregion
  8253. [System.Xml.Serialization.XmlElementAttribute(DataType = "nonNegativeInteger")]
  8254. public string LiczbaWierszySprzedazy
  8255. {
  8256. get
  8257. {
  8258. return this._liczbaWierszySprzedazy;
  8259. }
  8260. set
  8261. {
  8262. this._liczbaWierszySprzedazy = value;
  8263. }
  8264. }
  8265. public decimal PodatekNalezny
  8266. {
  8267. get
  8268. {
  8269. return this._podatekNalezny;
  8270. }
  8271. set
  8272. {
  8273. this._podatekNalezny = value;
  8274. _shouldSerializePodatekNalezny = true;
  8275. }
  8276. }
  8277. private static XmlSerializer Serializer
  8278. {
  8279. get
  8280. {
  8281. if ((serializer == null))
  8282. {
  8283. serializer = new XmlSerializerFactory().CreateSerializer(typeof(JPKEwidencjaSprzedazCtrl));
  8284. }
  8285. return serializer;
  8286. }
  8287. }
  8288. /// <summary>
  8289. /// Test whether PodatekNalezny should be serialized
  8290. /// </summary>
  8291. public virtual bool ShouldSerializePodatekNalezny()
  8292. {
  8293. if (_shouldSerializePodatekNalezny)
  8294. {
  8295. return true;
  8296. }
  8297. return (_podatekNalezny != default(decimal));
  8298. }
  8299. /// <summary>
  8300. /// Test whether LiczbaWierszySprzedazy should be serialized
  8301. /// </summary>
  8302. public virtual bool ShouldSerializeLiczbaWierszySprzedazy()
  8303. {
  8304. return !string.IsNullOrEmpty(LiczbaWierszySprzedazy);
  8305. }
  8306. #region Serialize/Deserialize
  8307. /// <summary>
  8308. /// Serializes current JPKEwidencjaSprzedazCtrl object into an XML string
  8309. /// </summary>
  8310. /// <returns>string XML value</returns>
  8311. public virtual string Serialize()
  8312. {
  8313. System.IO.StreamReader streamReader = null;
  8314. System.IO.MemoryStream memoryStream = null;
  8315. try
  8316. {
  8317. memoryStream = new System.IO.MemoryStream();
  8318. System.Xml.XmlWriterSettings xmlWriterSettings = new System.Xml.XmlWriterSettings();
  8319. System.Xml.XmlWriter xmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings);
  8320. Serializer.Serialize(xmlWriter, this);
  8321. memoryStream.Seek(0, SeekOrigin.Begin);
  8322. streamReader = new System.IO.StreamReader(memoryStream);
  8323. return streamReader.ReadToEnd();
  8324. }
  8325. finally
  8326. {
  8327. if ((streamReader != null))
  8328. {
  8329. streamReader.Dispose();
  8330. }
  8331. if ((memoryStream != null))
  8332. {
  8333. memoryStream.Dispose();
  8334. }
  8335. }
  8336. }
  8337. /// <summary>
  8338. /// Deserializes workflow markup into an JPKEwidencjaSprzedazCtrl object
  8339. /// </summary>
  8340. /// <param name="input">string workflow markup to deserialize</param>
  8341. /// <param name="obj">Output JPKEwidencjaSprzedazCtrl object</param>
  8342. /// <param name="exception">output Exception value if deserialize failed</param>
  8343. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  8344. public static bool Deserialize(string input, out JPKEwidencjaSprzedazCtrl obj, out System.Exception exception)
  8345. {
  8346. exception = null;
  8347. obj = default(JPKEwidencjaSprzedazCtrl);
  8348. try
  8349. {
  8350. obj = Deserialize(input);
  8351. return true;
  8352. }
  8353. catch (System.Exception ex)
  8354. {
  8355. exception = ex;
  8356. return false;
  8357. }
  8358. }
  8359. public static bool Deserialize(string input, out JPKEwidencjaSprzedazCtrl obj)
  8360. {
  8361. System.Exception exception = null;
  8362. return Deserialize(input, out obj, out exception);
  8363. }
  8364. public static JPKEwidencjaSprzedazCtrl Deserialize(string input)
  8365. {
  8366. System.IO.StringReader stringReader = null;
  8367. try
  8368. {
  8369. stringReader = new System.IO.StringReader(input);
  8370. return ((JPKEwidencjaSprzedazCtrl)(Serializer.Deserialize(XmlReader.Create(stringReader))));
  8371. }
  8372. finally
  8373. {
  8374. if ((stringReader != null))
  8375. {
  8376. stringReader.Dispose();
  8377. }
  8378. }
  8379. }
  8380. public static JPKEwidencjaSprzedazCtrl Deserialize(System.IO.Stream s)
  8381. {
  8382. return ((JPKEwidencjaSprzedazCtrl)(Serializer.Deserialize(s)));
  8383. }
  8384. #endregion
  8385. /// <summary>
  8386. /// Serializes current JPKEwidencjaSprzedazCtrl object into file
  8387. /// </summary>
  8388. /// <param name="fileName">full path of outupt xml file</param>
  8389. /// <param name="exception">output Exception value if failed</param>
  8390. /// <returns>true if can serialize and save into file; otherwise, false</returns>
  8391. public virtual bool SaveToFile(string fileName, out System.Exception exception)
  8392. {
  8393. exception = null;
  8394. try
  8395. {
  8396. SaveToFile(fileName);
  8397. return true;
  8398. }
  8399. catch (System.Exception e)
  8400. {
  8401. exception = e;
  8402. return false;
  8403. }
  8404. }
  8405. public virtual void SaveToFile(string fileName)
  8406. {
  8407. System.IO.StreamWriter streamWriter = null;
  8408. try
  8409. {
  8410. string xmlString = Serialize();
  8411. System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
  8412. streamWriter = xmlFile.CreateText();
  8413. streamWriter.WriteLine(xmlString);
  8414. streamWriter.Close();
  8415. }
  8416. finally
  8417. {
  8418. if ((streamWriter != null))
  8419. {
  8420. streamWriter.Dispose();
  8421. }
  8422. }
  8423. }
  8424. /// <summary>
  8425. /// Deserializes xml markup from file into an JPKEwidencjaSprzedazCtrl object
  8426. /// </summary>
  8427. /// <param name="fileName">string xml file to load and deserialize</param>
  8428. /// <param name="obj">Output JPKEwidencjaSprzedazCtrl object</param>
  8429. /// <param name="exception">output Exception value if deserialize failed</param>
  8430. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  8431. public static bool LoadFromFile(string fileName, out JPKEwidencjaSprzedazCtrl obj, out System.Exception exception)
  8432. {
  8433. exception = null;
  8434. obj = default(JPKEwidencjaSprzedazCtrl);
  8435. try
  8436. {
  8437. obj = LoadFromFile(fileName);
  8438. return true;
  8439. }
  8440. catch (System.Exception ex)
  8441. {
  8442. exception = ex;
  8443. return false;
  8444. }
  8445. }
  8446. public static bool LoadFromFile(string fileName, out JPKEwidencjaSprzedazCtrl obj)
  8447. {
  8448. System.Exception exception = null;
  8449. return LoadFromFile(fileName, out obj, out exception);
  8450. }
  8451. public static JPKEwidencjaSprzedazCtrl LoadFromFile(string fileName)
  8452. {
  8453. System.IO.FileStream file = null;
  8454. System.IO.StreamReader sr = null;
  8455. try
  8456. {
  8457. file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
  8458. sr = new System.IO.StreamReader(file);
  8459. string xmlString = sr.ReadToEnd();
  8460. sr.Close();
  8461. file.Close();
  8462. return Deserialize(xmlString);
  8463. }
  8464. finally
  8465. {
  8466. if ((file != null))
  8467. {
  8468. file.Dispose();
  8469. }
  8470. if ((sr != null))
  8471. {
  8472. sr.Dispose();
  8473. }
  8474. }
  8475. }
  8476. }
  8477. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3761.0")]
  8478. [System.SerializableAttribute()]
  8479. [System.Diagnostics.DebuggerStepThroughAttribute()]
  8480. [System.ComponentModel.DesignerCategoryAttribute("code")]
  8481. [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://crd.gov.pl/wzor/2020/05/08/9393/")]
  8482. public partial class JPKEwidencjaZakupWiersz
  8483. {
  8484. #region Private fields
  8485. private bool _shouldSerializeDokumentZakupu;
  8486. private bool _shouldSerializeZakupVAT_Marza;
  8487. private bool _shouldSerializeK_47;
  8488. private bool _shouldSerializeK_46;
  8489. private bool _shouldSerializeK_45;
  8490. private bool _shouldSerializeK_44;
  8491. private bool _shouldSerializeK_43;
  8492. private bool _shouldSerializeK_42;
  8493. private bool _shouldSerializeK_41;
  8494. private bool _shouldSerializeK_40;
  8495. private bool _shouldSerializeIMP;
  8496. private bool _shouldSerializeMPP;
  8497. private bool _shouldSerializeDataWplywu;
  8498. private bool _shouldSerializeDataZakupu;
  8499. private string _lpZakupu;
  8500. private string _kodKrajuNadaniaTIN;
  8501. private string _nrDostawcy;
  8502. private string _nazwaDostawcy;
  8503. private string _dowodZakupu;
  8504. private System.DateTime _dataZakupu;
  8505. private System.DateTime _dataWplywu;
  8506. private TDowoduZakupu _dokumentZakupu;
  8507. private sbyte _mPP;
  8508. private sbyte _iMP;
  8509. private decimal _k_40;
  8510. private decimal _k_41;
  8511. private decimal _k_42;
  8512. private decimal _k_43;
  8513. private decimal _k_44;
  8514. private decimal _k_45;
  8515. private decimal _k_46;
  8516. private decimal _k_47;
  8517. private decimal _zakupVAT_Marza;
  8518. private static XmlSerializer serializer;
  8519. #endregion
  8520. [System.Xml.Serialization.XmlElementAttribute(DataType = "nonNegativeInteger")]
  8521. public string LpZakupu
  8522. {
  8523. get
  8524. {
  8525. return this._lpZakupu;
  8526. }
  8527. set
  8528. {
  8529. this._lpZakupu = value;
  8530. }
  8531. }
  8532. public string KodKrajuNadaniaTIN
  8533. {
  8534. get
  8535. {
  8536. return this._kodKrajuNadaniaTIN;
  8537. }
  8538. set
  8539. {
  8540. this._kodKrajuNadaniaTIN = value;
  8541. }
  8542. }
  8543. public string NrDostawcy
  8544. {
  8545. get
  8546. {
  8547. return this._nrDostawcy;
  8548. }
  8549. set
  8550. {
  8551. this._nrDostawcy = value;
  8552. }
  8553. }
  8554. [System.Xml.Serialization.XmlElementAttribute(DataType = "token")]
  8555. public string NazwaDostawcy
  8556. {
  8557. get
  8558. {
  8559. return this._nazwaDostawcy;
  8560. }
  8561. set
  8562. {
  8563. this._nazwaDostawcy = value;
  8564. }
  8565. }
  8566. [System.Xml.Serialization.XmlElementAttribute(DataType = "token")]
  8567. public string DowodZakupu
  8568. {
  8569. get
  8570. {
  8571. return this._dowodZakupu;
  8572. }
  8573. set
  8574. {
  8575. this._dowodZakupu = value;
  8576. }
  8577. }
  8578. [System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
  8579. public System.DateTime DataZakupu
  8580. {
  8581. get
  8582. {
  8583. return this._dataZakupu;
  8584. }
  8585. set
  8586. {
  8587. this._dataZakupu = value;
  8588. _shouldSerializeDataZakupu = true;
  8589. }
  8590. }
  8591. [System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
  8592. public System.DateTime DataWplywu
  8593. {
  8594. get
  8595. {
  8596. return this._dataWplywu;
  8597. }
  8598. set
  8599. {
  8600. this._dataWplywu = value;
  8601. _shouldSerializeDataWplywu = true;
  8602. }
  8603. }
  8604. public TDowoduZakupu DokumentZakupu
  8605. {
  8606. get
  8607. {
  8608. return this._dokumentZakupu;
  8609. }
  8610. set
  8611. {
  8612. this._dokumentZakupu = value;
  8613. _shouldSerializeDokumentZakupu = true;
  8614. }
  8615. }
  8616. public sbyte MPP
  8617. {
  8618. get
  8619. {
  8620. return this._mPP;
  8621. }
  8622. set
  8623. {
  8624. this._mPP = value;
  8625. _shouldSerializeMPP = true;
  8626. }
  8627. }
  8628. public sbyte IMP
  8629. {
  8630. get
  8631. {
  8632. return this._iMP;
  8633. }
  8634. set
  8635. {
  8636. this._iMP = value;
  8637. _shouldSerializeIMP = true;
  8638. }
  8639. }
  8640. public decimal K_40
  8641. {
  8642. get
  8643. {
  8644. return this._k_40;
  8645. }
  8646. set
  8647. {
  8648. this._k_40 = value;
  8649. _shouldSerializeK_40 = true;
  8650. }
  8651. }
  8652. public decimal K_41
  8653. {
  8654. get
  8655. {
  8656. return this._k_41;
  8657. }
  8658. set
  8659. {
  8660. this._k_41 = value;
  8661. _shouldSerializeK_41 = true;
  8662. }
  8663. }
  8664. public decimal K_42
  8665. {
  8666. get
  8667. {
  8668. return this._k_42;
  8669. }
  8670. set
  8671. {
  8672. this._k_42 = value;
  8673. _shouldSerializeK_42 = true;
  8674. }
  8675. }
  8676. public decimal K_43
  8677. {
  8678. get
  8679. {
  8680. return this._k_43;
  8681. }
  8682. set
  8683. {
  8684. this._k_43 = value;
  8685. _shouldSerializeK_43 = true;
  8686. }
  8687. }
  8688. public decimal K_44
  8689. {
  8690. get
  8691. {
  8692. return this._k_44;
  8693. }
  8694. set
  8695. {
  8696. this._k_44 = value;
  8697. _shouldSerializeK_44 = true;
  8698. }
  8699. }
  8700. public decimal K_45
  8701. {
  8702. get
  8703. {
  8704. return this._k_45;
  8705. }
  8706. set
  8707. {
  8708. this._k_45 = value;
  8709. _shouldSerializeK_45 = true;
  8710. }
  8711. }
  8712. public decimal K_46
  8713. {
  8714. get
  8715. {
  8716. return this._k_46;
  8717. }
  8718. set
  8719. {
  8720. this._k_46 = value;
  8721. _shouldSerializeK_46 = true;
  8722. }
  8723. }
  8724. public decimal K_47
  8725. {
  8726. get
  8727. {
  8728. return this._k_47;
  8729. }
  8730. set
  8731. {
  8732. this._k_47 = value;
  8733. _shouldSerializeK_47 = true;
  8734. }
  8735. }
  8736. public decimal ZakupVAT_Marza
  8737. {
  8738. get
  8739. {
  8740. return this._zakupVAT_Marza;
  8741. }
  8742. set
  8743. {
  8744. this._zakupVAT_Marza = value;
  8745. _shouldSerializeZakupVAT_Marza = true;
  8746. }
  8747. }
  8748. private static XmlSerializer Serializer
  8749. {
  8750. get
  8751. {
  8752. if ((serializer == null))
  8753. {
  8754. serializer = new XmlSerializerFactory().CreateSerializer(typeof(JPKEwidencjaZakupWiersz));
  8755. }
  8756. return serializer;
  8757. }
  8758. }
  8759. /// <summary>
  8760. /// Test whether DataZakupu should be serialized
  8761. /// </summary>
  8762. public virtual bool ShouldSerializeDataZakupu()
  8763. {
  8764. if (_shouldSerializeDataZakupu)
  8765. {
  8766. return true;
  8767. }
  8768. return (_dataZakupu != default(System.DateTime));
  8769. }
  8770. /// <summary>
  8771. /// Test whether DataWplywu should be serialized
  8772. /// </summary>
  8773. public virtual bool ShouldSerializeDataWplywu()
  8774. {
  8775. if (_shouldSerializeDataWplywu)
  8776. {
  8777. return true;
  8778. }
  8779. return (_dataWplywu != default(System.DateTime));
  8780. }
  8781. /// <summary>
  8782. /// Test whether MPP should be serialized
  8783. /// </summary>
  8784. public virtual bool ShouldSerializeMPP()
  8785. {
  8786. if (_shouldSerializeMPP)
  8787. {
  8788. return true;
  8789. }
  8790. return (_mPP != default(sbyte));
  8791. }
  8792. /// <summary>
  8793. /// Test whether IMP should be serialized
  8794. /// </summary>
  8795. public virtual bool ShouldSerializeIMP()
  8796. {
  8797. if (_shouldSerializeIMP)
  8798. {
  8799. return true;
  8800. }
  8801. return (_iMP != default(sbyte));
  8802. }
  8803. /// <summary>
  8804. /// Test whether K_40 should be serialized
  8805. /// </summary>
  8806. public virtual bool ShouldSerializeK_40()
  8807. {
  8808. if (_shouldSerializeK_40)
  8809. {
  8810. return true;
  8811. }
  8812. return (_k_40 != default(decimal));
  8813. }
  8814. /// <summary>
  8815. /// Test whether K_41 should be serialized
  8816. /// </summary>
  8817. public virtual bool ShouldSerializeK_41()
  8818. {
  8819. if (_shouldSerializeK_41)
  8820. {
  8821. return true;
  8822. }
  8823. return (_k_41 != default(decimal));
  8824. }
  8825. /// <summary>
  8826. /// Test whether K_42 should be serialized
  8827. /// </summary>
  8828. public virtual bool ShouldSerializeK_42()
  8829. {
  8830. if (_shouldSerializeK_42)
  8831. {
  8832. return true;
  8833. }
  8834. return (_k_42 != default(decimal));
  8835. }
  8836. /// <summary>
  8837. /// Test whether K_43 should be serialized
  8838. /// </summary>
  8839. public virtual bool ShouldSerializeK_43()
  8840. {
  8841. if (_shouldSerializeK_43)
  8842. {
  8843. return true;
  8844. }
  8845. return (_k_43 != default(decimal));
  8846. }
  8847. /// <summary>
  8848. /// Test whether K_44 should be serialized
  8849. /// </summary>
  8850. public virtual bool ShouldSerializeK_44()
  8851. {
  8852. if (_shouldSerializeK_44)
  8853. {
  8854. return true;
  8855. }
  8856. return (_k_44 != default(decimal));
  8857. }
  8858. /// <summary>
  8859. /// Test whether K_45 should be serialized
  8860. /// </summary>
  8861. public virtual bool ShouldSerializeK_45()
  8862. {
  8863. if (_shouldSerializeK_45)
  8864. {
  8865. return true;
  8866. }
  8867. return (_k_45 != default(decimal));
  8868. }
  8869. /// <summary>
  8870. /// Test whether K_46 should be serialized
  8871. /// </summary>
  8872. public virtual bool ShouldSerializeK_46()
  8873. {
  8874. if (_shouldSerializeK_46)
  8875. {
  8876. return true;
  8877. }
  8878. return (_k_46 != default(decimal));
  8879. }
  8880. /// <summary>
  8881. /// Test whether K_47 should be serialized
  8882. /// </summary>
  8883. public virtual bool ShouldSerializeK_47()
  8884. {
  8885. if (_shouldSerializeK_47)
  8886. {
  8887. return true;
  8888. }
  8889. return (_k_47 != default(decimal));
  8890. }
  8891. /// <summary>
  8892. /// Test whether ZakupVAT_Marza should be serialized
  8893. /// </summary>
  8894. public virtual bool ShouldSerializeZakupVAT_Marza()
  8895. {
  8896. if (_shouldSerializeZakupVAT_Marza)
  8897. {
  8898. return true;
  8899. }
  8900. return (_zakupVAT_Marza != default(decimal));
  8901. }
  8902. /// <summary>
  8903. /// Test whether DokumentZakupu should be serialized
  8904. /// </summary>
  8905. public virtual bool ShouldSerializeDokumentZakupu()
  8906. {
  8907. if (_shouldSerializeDokumentZakupu)
  8908. {
  8909. return true;
  8910. }
  8911. return (_dokumentZakupu != default(TDowoduZakupu));
  8912. }
  8913. /// <summary>
  8914. /// Test whether LpZakupu should be serialized
  8915. /// </summary>
  8916. public virtual bool ShouldSerializeLpZakupu()
  8917. {
  8918. return !string.IsNullOrEmpty(LpZakupu);
  8919. }
  8920. /// <summary>
  8921. /// Test whether KodKrajuNadaniaTIN should be serialized
  8922. /// </summary>
  8923. public virtual bool ShouldSerializeKodKrajuNadaniaTIN()
  8924. {
  8925. return !string.IsNullOrEmpty(KodKrajuNadaniaTIN);
  8926. }
  8927. /// <summary>
  8928. /// Test whether NrDostawcy should be serialized
  8929. /// </summary>
  8930. public virtual bool ShouldSerializeNrDostawcy()
  8931. {
  8932. return !string.IsNullOrEmpty(NrDostawcy);
  8933. }
  8934. /// <summary>
  8935. /// Test whether NazwaDostawcy should be serialized
  8936. /// </summary>
  8937. public virtual bool ShouldSerializeNazwaDostawcy()
  8938. {
  8939. return !string.IsNullOrEmpty(NazwaDostawcy);
  8940. }
  8941. /// <summary>
  8942. /// Test whether DowodZakupu should be serialized
  8943. /// </summary>
  8944. public virtual bool ShouldSerializeDowodZakupu()
  8945. {
  8946. return !string.IsNullOrEmpty(DowodZakupu);
  8947. }
  8948. #region Serialize/Deserialize
  8949. /// <summary>
  8950. /// Serializes current JPKEwidencjaZakupWiersz object into an XML string
  8951. /// </summary>
  8952. /// <returns>string XML value</returns>
  8953. public virtual string Serialize()
  8954. {
  8955. System.IO.StreamReader streamReader = null;
  8956. System.IO.MemoryStream memoryStream = null;
  8957. try
  8958. {
  8959. memoryStream = new System.IO.MemoryStream();
  8960. System.Xml.XmlWriterSettings xmlWriterSettings = new System.Xml.XmlWriterSettings();
  8961. System.Xml.XmlWriter xmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings);
  8962. Serializer.Serialize(xmlWriter, this);
  8963. memoryStream.Seek(0, SeekOrigin.Begin);
  8964. streamReader = new System.IO.StreamReader(memoryStream);
  8965. return streamReader.ReadToEnd();
  8966. }
  8967. finally
  8968. {
  8969. if ((streamReader != null))
  8970. {
  8971. streamReader.Dispose();
  8972. }
  8973. if ((memoryStream != null))
  8974. {
  8975. memoryStream.Dispose();
  8976. }
  8977. }
  8978. }
  8979. /// <summary>
  8980. /// Deserializes workflow markup into an JPKEwidencjaZakupWiersz object
  8981. /// </summary>
  8982. /// <param name="input">string workflow markup to deserialize</param>
  8983. /// <param name="obj">Output JPKEwidencjaZakupWiersz object</param>
  8984. /// <param name="exception">output Exception value if deserialize failed</param>
  8985. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  8986. public static bool Deserialize(string input, out JPKEwidencjaZakupWiersz obj, out System.Exception exception)
  8987. {
  8988. exception = null;
  8989. obj = default(JPKEwidencjaZakupWiersz);
  8990. try
  8991. {
  8992. obj = Deserialize(input);
  8993. return true;
  8994. }
  8995. catch (System.Exception ex)
  8996. {
  8997. exception = ex;
  8998. return false;
  8999. }
  9000. }
  9001. public static bool Deserialize(string input, out JPKEwidencjaZakupWiersz obj)
  9002. {
  9003. System.Exception exception = null;
  9004. return Deserialize(input, out obj, out exception);
  9005. }
  9006. public static JPKEwidencjaZakupWiersz Deserialize(string input)
  9007. {
  9008. System.IO.StringReader stringReader = null;
  9009. try
  9010. {
  9011. stringReader = new System.IO.StringReader(input);
  9012. return ((JPKEwidencjaZakupWiersz)(Serializer.Deserialize(XmlReader.Create(stringReader))));
  9013. }
  9014. finally
  9015. {
  9016. if ((stringReader != null))
  9017. {
  9018. stringReader.Dispose();
  9019. }
  9020. }
  9021. }
  9022. public static JPKEwidencjaZakupWiersz Deserialize(System.IO.Stream s)
  9023. {
  9024. return ((JPKEwidencjaZakupWiersz)(Serializer.Deserialize(s)));
  9025. }
  9026. #endregion
  9027. /// <summary>
  9028. /// Serializes current JPKEwidencjaZakupWiersz object into file
  9029. /// </summary>
  9030. /// <param name="fileName">full path of outupt xml file</param>
  9031. /// <param name="exception">output Exception value if failed</param>
  9032. /// <returns>true if can serialize and save into file; otherwise, false</returns>
  9033. public virtual bool SaveToFile(string fileName, out System.Exception exception)
  9034. {
  9035. exception = null;
  9036. try
  9037. {
  9038. SaveToFile(fileName);
  9039. return true;
  9040. }
  9041. catch (System.Exception e)
  9042. {
  9043. exception = e;
  9044. return false;
  9045. }
  9046. }
  9047. public virtual void SaveToFile(string fileName)
  9048. {
  9049. System.IO.StreamWriter streamWriter = null;
  9050. try
  9051. {
  9052. string xmlString = Serialize();
  9053. System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
  9054. streamWriter = xmlFile.CreateText();
  9055. streamWriter.WriteLine(xmlString);
  9056. streamWriter.Close();
  9057. }
  9058. finally
  9059. {
  9060. if ((streamWriter != null))
  9061. {
  9062. streamWriter.Dispose();
  9063. }
  9064. }
  9065. }
  9066. /// <summary>
  9067. /// Deserializes xml markup from file into an JPKEwidencjaZakupWiersz object
  9068. /// </summary>
  9069. /// <param name="fileName">string xml file to load and deserialize</param>
  9070. /// <param name="obj">Output JPKEwidencjaZakupWiersz object</param>
  9071. /// <param name="exception">output Exception value if deserialize failed</param>
  9072. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  9073. public static bool LoadFromFile(string fileName, out JPKEwidencjaZakupWiersz obj, out System.Exception exception)
  9074. {
  9075. exception = null;
  9076. obj = default(JPKEwidencjaZakupWiersz);
  9077. try
  9078. {
  9079. obj = LoadFromFile(fileName);
  9080. return true;
  9081. }
  9082. catch (System.Exception ex)
  9083. {
  9084. exception = ex;
  9085. return false;
  9086. }
  9087. }
  9088. public static bool LoadFromFile(string fileName, out JPKEwidencjaZakupWiersz obj)
  9089. {
  9090. System.Exception exception = null;
  9091. return LoadFromFile(fileName, out obj, out exception);
  9092. }
  9093. public static JPKEwidencjaZakupWiersz LoadFromFile(string fileName)
  9094. {
  9095. System.IO.FileStream file = null;
  9096. System.IO.StreamReader sr = null;
  9097. try
  9098. {
  9099. file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
  9100. sr = new System.IO.StreamReader(file);
  9101. string xmlString = sr.ReadToEnd();
  9102. sr.Close();
  9103. file.Close();
  9104. return Deserialize(xmlString);
  9105. }
  9106. finally
  9107. {
  9108. if ((file != null))
  9109. {
  9110. file.Dispose();
  9111. }
  9112. if ((sr != null))
  9113. {
  9114. sr.Dispose();
  9115. }
  9116. }
  9117. }
  9118. }
  9119. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3761.0")]
  9120. [System.SerializableAttribute()]
  9121. [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://crd.gov.pl/wzor/2020/05/08/9393/")]
  9122. public enum TDowoduZakupu
  9123. {
  9124. /// <remarks/>
  9125. MK,
  9126. /// <remarks/>
  9127. VAT_RR,
  9128. /// <remarks/>
  9129. WEW,
  9130. }
  9131. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3761.0")]
  9132. [System.SerializableAttribute()]
  9133. [System.Diagnostics.DebuggerStepThroughAttribute()]
  9134. [System.ComponentModel.DesignerCategoryAttribute("code")]
  9135. [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://crd.gov.pl/wzor/2020/05/08/9393/")]
  9136. public partial class JPKEwidencjaZakupCtrl
  9137. {
  9138. #region Private fields
  9139. private bool _shouldSerializePodatekNaliczony;
  9140. private string _liczbaWierszyZakupow;
  9141. private decimal _podatekNaliczony;
  9142. private static XmlSerializer serializer;
  9143. #endregion
  9144. [System.Xml.Serialization.XmlElementAttribute(DataType = "nonNegativeInteger")]
  9145. public string LiczbaWierszyZakupow
  9146. {
  9147. get
  9148. {
  9149. return this._liczbaWierszyZakupow;
  9150. }
  9151. set
  9152. {
  9153. this._liczbaWierszyZakupow = value;
  9154. }
  9155. }
  9156. public decimal PodatekNaliczony
  9157. {
  9158. get
  9159. {
  9160. return this._podatekNaliczony;
  9161. }
  9162. set
  9163. {
  9164. this._podatekNaliczony = value;
  9165. _shouldSerializePodatekNaliczony = true;
  9166. }
  9167. }
  9168. private static XmlSerializer Serializer
  9169. {
  9170. get
  9171. {
  9172. if ((serializer == null))
  9173. {
  9174. serializer = new XmlSerializerFactory().CreateSerializer(typeof(JPKEwidencjaZakupCtrl));
  9175. }
  9176. return serializer;
  9177. }
  9178. }
  9179. /// <summary>
  9180. /// Test whether PodatekNaliczony should be serialized
  9181. /// </summary>
  9182. public virtual bool ShouldSerializePodatekNaliczony()
  9183. {
  9184. if (_shouldSerializePodatekNaliczony)
  9185. {
  9186. return true;
  9187. }
  9188. return (_podatekNaliczony != default(decimal));
  9189. }
  9190. /// <summary>
  9191. /// Test whether LiczbaWierszyZakupow should be serialized
  9192. /// </summary>
  9193. public virtual bool ShouldSerializeLiczbaWierszyZakupow()
  9194. {
  9195. return !string.IsNullOrEmpty(LiczbaWierszyZakupow);
  9196. }
  9197. #region Serialize/Deserialize
  9198. /// <summary>
  9199. /// Serializes current JPKEwidencjaZakupCtrl object into an XML string
  9200. /// </summary>
  9201. /// <returns>string XML value</returns>
  9202. public virtual string Serialize()
  9203. {
  9204. System.IO.StreamReader streamReader = null;
  9205. System.IO.MemoryStream memoryStream = null;
  9206. try
  9207. {
  9208. memoryStream = new System.IO.MemoryStream();
  9209. System.Xml.XmlWriterSettings xmlWriterSettings = new System.Xml.XmlWriterSettings();
  9210. System.Xml.XmlWriter xmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings);
  9211. Serializer.Serialize(xmlWriter, this);
  9212. memoryStream.Seek(0, SeekOrigin.Begin);
  9213. streamReader = new System.IO.StreamReader(memoryStream);
  9214. return streamReader.ReadToEnd();
  9215. }
  9216. finally
  9217. {
  9218. if ((streamReader != null))
  9219. {
  9220. streamReader.Dispose();
  9221. }
  9222. if ((memoryStream != null))
  9223. {
  9224. memoryStream.Dispose();
  9225. }
  9226. }
  9227. }
  9228. /// <summary>
  9229. /// Deserializes workflow markup into an JPKEwidencjaZakupCtrl object
  9230. /// </summary>
  9231. /// <param name="input">string workflow markup to deserialize</param>
  9232. /// <param name="obj">Output JPKEwidencjaZakupCtrl object</param>
  9233. /// <param name="exception">output Exception value if deserialize failed</param>
  9234. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  9235. public static bool Deserialize(string input, out JPKEwidencjaZakupCtrl obj, out System.Exception exception)
  9236. {
  9237. exception = null;
  9238. obj = default(JPKEwidencjaZakupCtrl);
  9239. try
  9240. {
  9241. obj = Deserialize(input);
  9242. return true;
  9243. }
  9244. catch (System.Exception ex)
  9245. {
  9246. exception = ex;
  9247. return false;
  9248. }
  9249. }
  9250. public static bool Deserialize(string input, out JPKEwidencjaZakupCtrl obj)
  9251. {
  9252. System.Exception exception = null;
  9253. return Deserialize(input, out obj, out exception);
  9254. }
  9255. public static JPKEwidencjaZakupCtrl Deserialize(string input)
  9256. {
  9257. System.IO.StringReader stringReader = null;
  9258. try
  9259. {
  9260. stringReader = new System.IO.StringReader(input);
  9261. return ((JPKEwidencjaZakupCtrl)(Serializer.Deserialize(XmlReader.Create(stringReader))));
  9262. }
  9263. finally
  9264. {
  9265. if ((stringReader != null))
  9266. {
  9267. stringReader.Dispose();
  9268. }
  9269. }
  9270. }
  9271. public static JPKEwidencjaZakupCtrl Deserialize(System.IO.Stream s)
  9272. {
  9273. return ((JPKEwidencjaZakupCtrl)(Serializer.Deserialize(s)));
  9274. }
  9275. #endregion
  9276. /// <summary>
  9277. /// Serializes current JPKEwidencjaZakupCtrl object into file
  9278. /// </summary>
  9279. /// <param name="fileName">full path of outupt xml file</param>
  9280. /// <param name="exception">output Exception value if failed</param>
  9281. /// <returns>true if can serialize and save into file; otherwise, false</returns>
  9282. public virtual bool SaveToFile(string fileName, out System.Exception exception)
  9283. {
  9284. exception = null;
  9285. try
  9286. {
  9287. SaveToFile(fileName);
  9288. return true;
  9289. }
  9290. catch (System.Exception e)
  9291. {
  9292. exception = e;
  9293. return false;
  9294. }
  9295. }
  9296. public virtual void SaveToFile(string fileName)
  9297. {
  9298. System.IO.StreamWriter streamWriter = null;
  9299. try
  9300. {
  9301. string xmlString = Serialize();
  9302. System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
  9303. streamWriter = xmlFile.CreateText();
  9304. streamWriter.WriteLine(xmlString);
  9305. streamWriter.Close();
  9306. }
  9307. finally
  9308. {
  9309. if ((streamWriter != null))
  9310. {
  9311. streamWriter.Dispose();
  9312. }
  9313. }
  9314. }
  9315. /// <summary>
  9316. /// Deserializes xml markup from file into an JPKEwidencjaZakupCtrl object
  9317. /// </summary>
  9318. /// <param name="fileName">string xml file to load and deserialize</param>
  9319. /// <param name="obj">Output JPKEwidencjaZakupCtrl object</param>
  9320. /// <param name="exception">output Exception value if deserialize failed</param>
  9321. /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
  9322. public static bool LoadFromFile(string fileName, out JPKEwidencjaZakupCtrl obj, out System.Exception exception)
  9323. {
  9324. exception = null;
  9325. obj = default(JPKEwidencjaZakupCtrl);
  9326. try
  9327. {
  9328. obj = LoadFromFile(fileName);
  9329. return true;
  9330. }
  9331. catch (System.Exception ex)
  9332. {
  9333. exception = ex;
  9334. return false;
  9335. }
  9336. }
  9337. public static bool LoadFromFile(string fileName, out JPKEwidencjaZakupCtrl obj)
  9338. {
  9339. System.Exception exception = null;
  9340. return LoadFromFile(fileName, out obj, out exception);
  9341. }
  9342. public static JPKEwidencjaZakupCtrl LoadFromFile(string fileName)
  9343. {
  9344. System.IO.FileStream file = null;
  9345. System.IO.StreamReader sr = null;
  9346. try
  9347. {
  9348. file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
  9349. sr = new System.IO.StreamReader(file);
  9350. string xmlString = sr.ReadToEnd();
  9351. sr.Close();
  9352. file.Close();
  9353. return Deserialize(xmlString);
  9354. }
  9355. finally
  9356. {
  9357. if ((file != null))
  9358. {
  9359. file.Dispose();
  9360. }
  9361. if ((sr != null))
  9362. {
  9363. sr.Dispose();
  9364. }
  9365. }
  9366. }
  9367. }
  9368. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3761.0")]
  9369. [System.SerializableAttribute()]
  9370. [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://crd.gov.pl/wzor/2020/05/08/9393/")]
  9371. [System.Xml.Serialization.XmlRootAttribute(Namespace = "http://crd.gov.pl/wzor/2020/05/08/9393/", IsNullable = false)]
  9372. public enum TKodKrajuEL
  9373. {
  9374. /// <remarks/>
  9375. EL,
  9376. }
  9377. }
  9378. #pragma warning restore