Нема описа
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

合約本文.vb 999KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484
  1. Option Strict Off
  2. Imports Microsoft.Office.Interop.Word
  3. Imports Microsoft.Office.Interop
  4. Public Class 合約本文
  5. ReadOnly ds1, ds2, ds3, ds4, ds5, ds6, ds7, ds8, ds15 As New DataSet
  6. Dim EDR, YR As Integer
  7. Dim YY(3), X(35), Y(35) As Integer
  8. Dim 條件選擇 As String
  9. ReadOnly 本文數 As Integer = 757
  10. Dim 最終數1 As Integer
  11. Dim 自動移動, 放大, 簽回檔 As Boolean
  12. Const x0 As Integer = 70
  13. Const y0 As Integer = 350
  14. Const h As Integer = 10
  15. Const hd As Integer = 10
  16. Const cnt As Integer = 4
  17. Private Sub Set_合約範例()
  18. 範例文本_dgv.DataSource = Nothing : ds7.Clear()
  19. 範例文本_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  20. 範例文本_dgv.ColumnHeadersHeight = 25 : 範例文本_dgv.AllowUserToAddRows = False
  21. SQL_合約清單_範本()
  22. da.Fill(ds7) : 範例文本_dgv.DataSource = ds7.Tables(0) : conn.Close()
  23. Dim OLY As Integer
  24. For no As Integer = 1 To 本文數
  25. Dim LBS As Label = CType(Me.Controls.Find("LB" + (no).ToString(), True)(0), Label)
  26. If 範例文本_dgv.Rows.Count < no Then : Else
  27. LBS.Text = 範例文本_dgv("內容", no - 1).Value : OLY = LBS.Location.Y : LBS.Location = New Drawing.Point(範例文本_dgv("座標X", no - 1).Value, OLY)
  28. End If
  29. Next
  30. 自動移動 = True
  31. LB7_移動() : LB8_移動() : LB9_移動() : LB10_移動() : LB11_移動() : LB12_移動() : LB13_移動() : LB14_移動() : LB15_移動() : LB16_移動() : LB17_移動() : LB18_移動() : LB19_移動()
  32. LB20_移動() : LB31_移動() : LB32_移動() : LB35_移動() : LB36_移動() : LB37_移動() : LB38_移動() : LB86_移動() : LB87_移動() : LB88_移動() : LB89_移動() : LB90_移動()
  33. LB91_移動() : LB92_移動() : LB93_移動() : LB103_移動() : LB104_移動() : LB105_移動() : LB106_移動() : LB107_移動() : LB108_移動() : LB109_移動() : LB110_移動() : LB111_移動()
  34. LB112_移動() : LB113_移動() : LB114_移動() : LB115_移動() : LB116_移動() : LB117_移動() : LB118_移動() : LB119_移動() : LB120_移動() : LB121_移動() : LB122_移動() : LB123_移動()
  35. LB124_移動() : LB125_移動() : LB126_移動() : LB127_移動() : LB129_移動() : LB131_移動() : LB132_移動() : LB133_移動() : LB134_移動() : LB135_移動() : LB136_移動() : LB137_移動()
  36. LB138_移動() : LB140_移動() : LB141_移動() : LB142_移動() : LB143_移動() : LB144_移動() : LB145_移動() : LB147_移動() : LB149_移動() : LB150_移動() : LB152_移動() : LB159_移動()
  37. LB160_移動() : LB161_移動() : LB163_移動() : LB164_移動() : LB167_移動() : LB168_移動() : LB170_移動() : LB171_移動() : LB173_移動() : LB174_移動() : LB176_移動() : LB177_移動()
  38. LB179_移動() : LB180_移動() : LB182_移動() : LB183_移動() : LB191_移動() : LB192_移動() : LB194_移動() : LB195_移動() : LB197_移動() : LB198_移動() : LB200_移動() : LB201_移動()
  39. LB203_移動() : LB204_移動() : LB206_移動() : LB207_移動() : LB209_移動() : LB210_移動() : LB212_移動() : LB213_移動() : LB215_移動() : LB216_移動() : LB218_移動() : LB219_移動()
  40. LB221_移動() : LB222_移動() : LB224_移動() : LB235_移動() : LB236_移動() : LB238_移動() : LB239_移動() : LB241_移動() : LB242_移動() : LB244_移動() : LB245_移動() : LB247_移動()
  41. LB248_移動() : LB250_移動() : LB251_移動() : LB253_移動() : LB254_移動() : LB256_移動() : LB257_移動() : LB259_移動() : LB260_移動() : LB262_移動() : LB263_移動() : LB265_移動()
  42. LB277_移動() : LB278_移動() : LB280_移動() : LB281_移動() : LB283_移動() : LB284_移動() : LB286_移動() : LB287_移動() : LB289_移動() : LB290_移動() : LB292_移動() : LB293_移動()
  43. LB295_移動() : LB296_移動() : LB298_移動() : LB299_移動() : LB301_移動() : LB307_移動() : LB308_移動() : LB310_移動() : LB311_移動() : LB313_移動() : LB314_移動() : LB316_移動()
  44. LB317_移動() : LB319_移動() : LB320_移動() : LB322_移動() : LB323_移動() : LB325_移動() : LB326_移動() : LB328_移動() : LB331_移動() : LB332_移動() : LB334_移動() : LB335_移動()
  45. LB337_移動() : LB338_移動() : LB340_移動() : LB341_移動() : LB343_移動() : LB344_移動() : LB346_移動() : LB352_移動() : LB353_移動() : LB355_移動() : LB356_移動() : LB358_移動()
  46. LB359_移動() : LB361_移動() : LB362_移動() : LB364_移動() : LB365_移動() : LB367_移動() : LB368_移動() : LB370_移動() : LB371_移動() : LB373_移動() : LB374_移動() : LB376_移動()
  47. LB377_移動() : LB379_移動() : LB380_移動() : LB382_移動() : LB383_移動() : LB385_移動() : LB386_移動() : LB388_移動() : LB389_移動() : LB391_移動() : LB397_移動() : LB398_移動()
  48. LB400_移動() : LB401_移動() : LB403_移動() : LB404_移動() : LB406_移動() : LB407_移動() : LB409_移動() : LB410_移動() : LB412_移動() : LB413_移動() : LB415_移動() : LB416_移動()
  49. LB418_移動() : LB419_移動() : LB421_移動() : LB422_移動() : LB424_移動() : LB425_移動() : LB427_移動() : LB428_移動() : LB430_移動() : LB431_移動() : LB433_移動() : LB434_移動()
  50. LB436_移動() : LB442_移動() : LB443_移動() : LB445_移動() : LB446_移動() : LB448_移動() : LB449_移動() : LB451_移動() : LB452_移動() : LB454_移動() : LB455_移動() : LB457_移動()
  51. LB458_移動() : LB460_移動() : LB461_移動() : LB463_移動() : LB464_移動() : LB466_移動() : LB467_移動() : LB469_移動() : LB470_移動() : LB472_移動() : LB473_移動() : LB475_移動()
  52. LB476_移動() : LB478_移動() : LB479_移動() : LB481_移動() : LB489_移動() : LB490_移動() : LB492_移動() : LB493_移動() : LB495_移動() : LB496_移動() : LB498_移動() : LB499_移動()
  53. LB501_移動() : LB502_移動() : LB504_移動() : LB505_移動() : LB507_移動() : LB508_移動() : LB510_移動() : LB511_移動() : LB513_移動() : LB514_移動() : LB516_移動() : LB517_移動()
  54. LB519_移動() : LB520_移動() : LB522_移動() : LB529_移動() : LB530_移動() : LB532_移動() : LB533_移動() : LB535_移動() : LB536_移動() : LB538_移動() : LB539_移動() : LB541_移動()
  55. LB542_移動() : LB544_移動() : LB545_移動() : LB547_移動() : LB548_移動() : LB550_移動() : LB551_移動() : LB553_移動() : LB554_移動() : LB556_移動() : LB557_移動() : LB559_移動()
  56. LB560_移動() : LB562_移動() : LB563_移動() : LB565_移動() : LB577_移動() : LB578_移動() : LB580_移動() : LB581_移動() : LB583_移動() : LB584_移動() : LB586_移動() : LB587_移動()
  57. LB589_移動() : LB590_移動() : LB592_移動() : LB593_移動() : LB595_移動() : LB596_移動() : LB598_移動() : LB604_移動() : LB605_移動() : LB607_移動() : LB608_移動() : LB610_移動()
  58. LB611_移動() : LB613_移動() : LB614_移動() : LB616_移動() : LB617_移動() : LB619_移動() : LB620_移動() : LB622_移動() : LB623_移動() : LB625_移動() : LB626_移動() : LB628_移動()
  59. LB629_移動() : LB631_移動() : LB632_移動() : LB634_移動() : LB635_移動() : LB637_移動() : LB638_移動() : LB640_移動() : LB641_移動() : LB643_移動() : LB649_移動() : LB650_移動()
  60. LB652_移動() : LB653_移動() : LB655_移動() : LB656_移動() : LB658_移動() : LB659_移動() : LB661_移動() : LB662_移動() : LB664_移動() : LB665_移動() : LB667_移動() : LB668_移動()
  61. LB670_移動() : LB671_移動() : LB673_移動() : LB674_移動() : LB676_移動() : LB677_移動() : LB679_移動() : LB680_移動() : LB682_移動() : LB693_移動() : LB694_移動() : LB696_移動()
  62. LB697_移動() : LB699_移動() : LB700_移動() : LB702_移動() : LB703_移動() : LB705_移動() : LB706_移動() : LB708_移動() : LB709_移動() : LB711_移動() : LB712_移動() : LB714_移動()
  63. LB715_移動() : LB717_移動() : LB722_移動() : LB723_移動() : LB725_移動() : LB726_移動() : LB728_移動() : LB729_移動() : LB731_移動() : LB732_移動() : LB734_移動() : LB735_移動()
  64. LB737_移動() : LB738_移動() : LB740_移動() : LB750_移動() : LB751_移動() : LB753_移動() : LB754_移動() : LB756_移動()
  65. 自動移動 = False
  66. End Sub
  67. Private Sub Set_存檔比較用()
  68. 存檔比較_dgv.DataSource = Nothing : ds8.Clear()
  69. 存檔比較_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  70. 存檔比較_dgv.ColumnHeadersHeight = 25 : 存檔比較_dgv.AllowUserToAddRows = False
  71. SQL_合約本文清單()
  72. da.Fill(ds8) : 存檔比較_dgv.DataSource = ds8.Tables(0) : conn.Close()
  73. End Sub
  74. Private Sub Set_合約清單()
  75. 合約_dgv.DataSource = Nothing : ds6.Clear()
  76. 合約_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  77. 合約_dgv.ColumnHeadersHeight = 25 : 合約_dgv.AllowUserToAddRows = False
  78. PA46 = 合約編號1_cb.Text : PA47 = 工程期1_ch.Text
  79. SQL_合約清單_未語轉()
  80. da.Fill(ds6) : 合約_dgv.DataSource = ds6.Tables(0) : conn.Close()
  81. 合約_dgv.Columns(0).FillWeight = 160 : 合約_dgv.Columns(1).Visible = False : 合約_dgv.Columns(2).Visible = False : 合約_dgv.Columns(3).Visible = False
  82. 合約_dgv.Columns(4).Visible = False : 合約_dgv.Columns(5).Visible = False : 合約_dgv.Columns(6).Visible = False : 合約_dgv.Columns(7).Visible = False
  83. 合約_dgv.Columns(8).Visible = False : 合約_dgv.Columns(9).Visible = False : 合約_dgv.Columns(10).Visible = False : 合約_dgv.Columns(11).Visible = False
  84. 合約_dgv.Columns(12).Visible = False : 合約_dgv.Columns(13).Visible = False : 合約_dgv.Columns(14).Visible = False : 合約_dgv.Columns(15).Visible = False
  85. 合約_dgv.Columns(16).Visible = False : 合約_dgv.Columns(17).Visible = False : 合約_dgv.Columns(18).Visible = False : 合約_dgv.Columns(19).Visible = False
  86. 合約_dgv.Columns(20).Visible = False : 合約_dgv.Columns(21).Visible = False : 合約_dgv.Columns(22).Visible = False : 合約_dgv.Columns(23).Visible = False
  87. 合約_dgv.Columns(24).FillWeight = 100 : 合約_dgv.Columns(25).Visible = False : 合約_dgv.Columns(26).Visible = False : 合約_dgv.Columns(27).Visible = False
  88. 合約_dgv.Columns(28).Visible = False : 合約_dgv.Columns("工程名稱_中").FillWeight = 300 : 合約_dgv.Columns("簽回檔圖庫").Visible = False
  89. 合約_dgv.Columns("簽回").FillWeight = 40
  90. 合約_dgv.Columns(0).ReadOnly = True : 合約_dgv.Columns("工程名稱_中").ReadOnly = True
  91. If 放大 = True Then
  92. 合約_dgv.Columns("工程名稱_中").Visible = True
  93. Else
  94. 合約_dgv.Columns("工程名稱_中").Visible = False
  95. End If
  96. For no As Integer = 0 To 35 : Dim LBS As Label = CType(Me.Controls.Find("LB" + (no + 50).ToString(), True)(0), Label) : LBS.Location = New Drawing.Point(X(no), Y(no)) : Next
  97. For i As Integer = 0 To 合約_dgv.Rows.Count - 1 : If IsDBNull(合約_dgv("簽回", i).Value) = True Then : 合約_dgv("簽回", i).Value = False : End If : Next
  98. PA = 合約編號_cb.Text & "-" & 合約編號1_tb.Text & " " & 合約編號2_tb.Text & "-" & 合約編號3_tb.Text
  99. PA1 = "1" : Set_合約明細1() : PA1 = "2" : Set_合約明細2() : PA1 = "3" : Set_合約明細3() : PA1 = "4" : Set_合約明細4() : PA1 = "5" : Set_合約明細5()
  100. End Sub
  101. Private Sub Set_合約明細1()
  102. 第1期_dgv.DataSource = Nothing : ds1.Clear()
  103. 第1期_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  104. 第1期_dgv.ColumnHeadersHeight = 25 : 第1期_dgv.AllowUserToAddRows = False
  105. SQL_合約明細讀取()
  106. da.Fill(ds1) : 第1期_dgv.DataSource = ds1.Tables(0) : conn.Close()
  107. 第1期_dgv.Columns(0).Visible = False : 第1期_dgv.Columns(1).Visible = False : 第1期_dgv.Columns(2).FillWeight = 20 : 第1期_dgv.Columns(3).FillWeight = 140
  108. 第1期_dgv.Columns(4).FillWeight = 20 : 第1期_dgv.Columns(5).FillWeight = 50 : 第1期_dgv.Columns(2).ReadOnly = True : 第1期_dgv.Columns(5).ReadOnly = True
  109. 第1期_dgv.EditMode = DataGridViewEditMode.EditOnEnter
  110. 第1期_dgv.Columns(2).DefaultCellStyle.Format = "#,##0" : 第1期_dgv.Columns(4).DefaultCellStyle.Format = "#,##0.00" : 第1期_dgv.Columns(5).DefaultCellStyle.Format = "#,##0"
  111. 第1期_dgv.Columns(4).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
  112. 第1期_dgv.Columns(5).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
  113. YY(0) = 0 : Dim NN1, NY As Integer
  114. For no As Integer = 1 To 40 : Dim NLBS As Label = CType(Me.Controls.Find("NLB" + no.ToString(), True)(0), Label) : NLBS.Visible = False : Next
  115. For I As Integer = 0 To 第1期_dgv.Rows.Count - 1
  116. YY(0) += YR
  117. For no As Integer = 0 To 35
  118. Dim LBS As Label = CType(Me.Controls.Find("LB" + (no + 50).ToString(), True)(0), Label) : LBS.Location = New Drawing.Point(X(no), Y(no) + YY(0))
  119. Next
  120. Next
  121. For I As Integer = 0 To 第1期_dgv.Rows.Count - 1
  122. Dim NLBS1 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 1).ToString(), True)(0), Label)
  123. Dim NLBS2 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 2).ToString(), True)(0), Label)
  124. Dim NLBS3 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 3).ToString(), True)(0), Label)
  125. Dim NLBS4 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 4).ToString(), True)(0), Label)
  126. NLBS1.Visible = True : NLBS2.Visible = True : NLBS3.Visible = True : NLBS4.Visible = True
  127. NLBS1.Location = New Drawing.Point(73, 149 + NY) : NLBS2.Location = New Drawing.Point(102, 149 + NY)
  128. NLBS3.Location = New Drawing.Point(529, 149 + NY) : NLBS4.Location = New Drawing.Point(610, 149 + NY)
  129. NLBS2.Text = 第1期_dgv("內容", I).Value.ToString : NLBS3.Text = Format(第1期_dgv("比例", I).Value, "#,##0.00") & " %"
  130. NLBS4.Text = Format(第1期_dgv("金額", I).Value, "#,##0") : NN1 += 3 : NY += 20
  131. Next
  132. End Sub
  133. Private Sub Set_合約明細2()
  134. 第2期_dgv.DataSource = Nothing : ds2.Clear()
  135. 第2期_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  136. 第2期_dgv.ColumnHeadersHeight = 25 : 第2期_dgv.AllowUserToAddRows = False
  137. SQL_合約明細讀取()
  138. da.Fill(ds2) : 第2期_dgv.DataSource = ds2.Tables(0) : conn.Close()
  139. 第2期_dgv.Columns(0).Visible = False : 第2期_dgv.Columns(1).Visible = False : 第2期_dgv.Columns(2).FillWeight = 20 : 第2期_dgv.Columns(3).FillWeight = 140
  140. 第2期_dgv.Columns(4).FillWeight = 20 : 第2期_dgv.Columns(5).FillWeight = 50 : 第2期_dgv.Columns(2).ReadOnly = True : 第2期_dgv.Columns(5).ReadOnly = True
  141. 第2期_dgv.EditMode = DataGridViewEditMode.EditOnEnter
  142. 第2期_dgv.Columns(2).DefaultCellStyle.Format = "#,##0" : 第2期_dgv.Columns(4).DefaultCellStyle.Format = "#,##0.00" : 第2期_dgv.Columns(5).DefaultCellStyle.Format = "#,##0"
  143. 第2期_dgv.Columns(4).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
  144. 第2期_dgv.Columns(5).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
  145. YY(1) = 0 : Dim NN1, NY, OY As Integer
  146. For no As Integer = 41 To 80 : Dim NLBS As Label = CType(Me.Controls.Find("NLB" + no.ToString(), True)(0), Label) : NLBS.Visible = False : Next
  147. For I As Integer = 0 To 第2期_dgv.Rows.Count - 1
  148. YY(1) += YR
  149. For no As Integer = 0 To 26
  150. Dim LBS As Label = CType(Me.Controls.Find("LB" + (no + 59).ToString(), True)(0), Label) : LBS.Location = New Drawing.Point(X(no + 9), Y(no + 9) + YY(0) + YY(1))
  151. Next
  152. Next
  153. OY = LB52.Location.Y + 20 : NN1 = 40
  154. For I As Integer = 0 To 第2期_dgv.Rows.Count - 1
  155. Dim NLBS1 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 1).ToString(), True)(0), Label)
  156. Dim NLBS2 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 2).ToString(), True)(0), Label)
  157. Dim NLBS3 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 3).ToString(), True)(0), Label)
  158. Dim NLBS4 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 4).ToString(), True)(0), Label)
  159. NLBS1.Visible = True : NLBS2.Visible = True : NLBS3.Visible = True : NLBS4.Visible = True
  160. NLBS1.Location = New Drawing.Point(73, OY + NY) : NLBS2.Location = New Drawing.Point(102, OY + NY)
  161. NLBS3.Location = New Drawing.Point(529, OY + NY) : NLBS4.Location = New Drawing.Point(610, OY + NY)
  162. NLBS2.Text = 第2期_dgv("內容", I).Value.ToString : NLBS3.Text = Format(第2期_dgv("比例", I).Value, "#,##0.00") & " %"
  163. NLBS4.Text = Format(第2期_dgv("金額", I).Value, "#,##0") : NN1 += 3 : NY += 20
  164. Next
  165. End Sub
  166. Private Sub Set_合約明細3()
  167. 第3期_dgv.DataSource = Nothing : ds3.Clear()
  168. 第3期_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  169. 第3期_dgv.ColumnHeadersHeight = 25 : 第3期_dgv.AllowUserToAddRows = False
  170. SQL_合約明細讀取()
  171. da.Fill(ds3) : 第3期_dgv.DataSource = ds3.Tables(0) : conn.Close()
  172. 第3期_dgv.Columns(0).Visible = False : 第3期_dgv.Columns(1).Visible = False : 第3期_dgv.Columns(2).FillWeight = 20 : 第3期_dgv.Columns(3).FillWeight = 140
  173. 第3期_dgv.Columns(4).FillWeight = 20 : 第3期_dgv.Columns(5).FillWeight = 50 : 第3期_dgv.Columns(2).ReadOnly = True : 第3期_dgv.Columns(5).ReadOnly = True
  174. 第3期_dgv.EditMode = DataGridViewEditMode.EditOnEnter
  175. 第3期_dgv.Columns(2).DefaultCellStyle.Format = "#,##0" : 第3期_dgv.Columns(4).DefaultCellStyle.Format = "#,##0.00" : 第3期_dgv.Columns(5).DefaultCellStyle.Format = "#,##0"
  176. 第3期_dgv.Columns(4).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
  177. 第3期_dgv.Columns(5).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
  178. YY(2) = 0 : Dim NN1, NY, OY As Integer
  179. For no As Integer = 81 To 120 : Dim NLBS As Label = CType(Me.Controls.Find("NLB" + no.ToString(), True)(0), Label) : NLBS.Visible = False : Next
  180. For I As Integer = 0 To 第3期_dgv.Rows.Count - 1
  181. YY(2) += YR
  182. For no As Integer = 0 To 17
  183. Dim LBS As Label = CType(Me.Controls.Find("LB" + (no + 68).ToString(), True)(0), Label) : LBS.Location = New Drawing.Point(X(no + 18), Y(no + 18) + YY(0) + YY(1) + YY(2))
  184. Next
  185. Next
  186. OY = LB61.Location.Y + 20 : NN1 = 80
  187. For I As Integer = 0 To 第3期_dgv.Rows.Count - 1
  188. Dim NLBS1 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 1).ToString(), True)(0), Label)
  189. Dim NLBS2 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 2).ToString(), True)(0), Label)
  190. Dim NLBS3 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 3).ToString(), True)(0), Label)
  191. Dim NLBS4 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 4).ToString(), True)(0), Label)
  192. NLBS1.Visible = True : NLBS2.Visible = True : NLBS3.Visible = True : NLBS4.Visible = True
  193. NLBS1.Location = New Drawing.Point(73, OY + NY) : NLBS2.Location = New Drawing.Point(102, OY + NY)
  194. NLBS3.Location = New Drawing.Point(529, OY + NY) : NLBS4.Location = New Drawing.Point(610, OY + NY)
  195. NLBS2.Text = 第3期_dgv("內容", I).Value.ToString : NLBS3.Text = Format(第3期_dgv("比例", I).Value, "#,##0.00") & " %"
  196. NLBS4.Text = Format(第3期_dgv("金額", I).Value, "#,##0") : NN1 += 3 : NY += 20
  197. Next
  198. End Sub
  199. Private Sub Set_合約明細4()
  200. 第4期_dgv.DataSource = Nothing : ds4.Clear()
  201. 第4期_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  202. 第4期_dgv.ColumnHeadersHeight = 25 : 第4期_dgv.AllowUserToAddRows = False
  203. SQL_合約明細讀取()
  204. da.Fill(ds4) : 第4期_dgv.DataSource = ds4.Tables(0) : conn.Close()
  205. 第4期_dgv.Columns(0).Visible = False : 第4期_dgv.Columns(1).Visible = False : 第4期_dgv.Columns(2).FillWeight = 20 : 第4期_dgv.Columns(3).FillWeight = 140
  206. 第4期_dgv.Columns(4).FillWeight = 20 : 第4期_dgv.Columns(5).FillWeight = 50 : 第4期_dgv.Columns(2).ReadOnly = True : 第4期_dgv.Columns(5).ReadOnly = True
  207. 第4期_dgv.EditMode = DataGridViewEditMode.EditOnEnter
  208. 第4期_dgv.Columns(2).DefaultCellStyle.Format = "#,##0" : 第4期_dgv.Columns(4).DefaultCellStyle.Format = "#,##0.00" : 第4期_dgv.Columns(5).DefaultCellStyle.Format = "#,##0"
  209. 第4期_dgv.Columns(4).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
  210. 第4期_dgv.Columns(5).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
  211. YY(3) = 0 : Dim NN1, NY, OY As Integer
  212. For no As Integer = 121 To 160
  213. Dim NLBS As Label = CType(Me.Controls.Find("NLB" + no.ToString(), True)(0), Label) : NLBS.Visible = False
  214. Next
  215. For I As Integer = 0 To 第4期_dgv.Rows.Count - 1
  216. YY(3) += YR
  217. For no As Integer = 0 To 8
  218. Dim LBS As Label = CType(Me.Controls.Find("LB" + (no + 77).ToString(), True)(0), Label) : LBS.Location = New Drawing.Point(X(no + 27), Y(no + 27) + YY(0) + YY(1) + YY(2) + YY(3))
  219. Next
  220. Next
  221. OY = LB70.Location.Y + 20 : NN1 = 120
  222. For I As Integer = 0 To 第4期_dgv.Rows.Count - 1
  223. Dim NLBS1 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 1).ToString(), True)(0), Label)
  224. Dim NLBS2 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 2).ToString(), True)(0), Label)
  225. Dim NLBS3 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 3).ToString(), True)(0), Label)
  226. Dim NLBS4 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 4).ToString(), True)(0), Label)
  227. NLBS1.Visible = True : NLBS2.Visible = True : NLBS3.Visible = True : NLBS4.Visible = True
  228. NLBS1.Location = New Drawing.Point(73, OY + NY) : NLBS2.Location = New Drawing.Point(102, OY + NY)
  229. NLBS3.Location = New Drawing.Point(529, OY + NY) : NLBS4.Location = New Drawing.Point(610, OY + NY)
  230. NLBS2.Text = 第4期_dgv("內容", I).Value.ToString : NLBS3.Text = Format(第4期_dgv("比例", I).Value, "#,##0.00") & " %"
  231. NLBS4.Text = Format(第4期_dgv("金額", I).Value, "#,##0") : NN1 += 3 : NY += 20
  232. Next
  233. End Sub
  234. Private Sub Set_合約明細5()
  235. 第5期_dgv.DataSource = Nothing : ds5.Clear()
  236. 第5期_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  237. 第5期_dgv.ColumnHeadersHeight = 25 : 第5期_dgv.AllowUserToAddRows = False
  238. SQL_合約明細讀取()
  239. da.Fill(ds5) : 第5期_dgv.DataSource = ds5.Tables(0) : conn.Close()
  240. 第5期_dgv.Columns(0).Visible = False : 第5期_dgv.Columns(1).Visible = False : 第5期_dgv.Columns(2).FillWeight = 20 : 第5期_dgv.Columns(3).FillWeight = 140
  241. 第5期_dgv.Columns(4).FillWeight = 20 : 第5期_dgv.Columns(5).FillWeight = 50 : 第5期_dgv.Columns(2).ReadOnly = True : 第5期_dgv.Columns(5).ReadOnly = True
  242. 第5期_dgv.Columns(2).DefaultCellStyle.Format = "#,##0" : 第5期_dgv.Columns(4).DefaultCellStyle.Format = "#,##0.00" : 第5期_dgv.Columns(5).DefaultCellStyle.Format = "#,##0"
  243. 第5期_dgv.Columns(4).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
  244. 第5期_dgv.Columns(5).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
  245. Dim NN1, NY, OY As Integer
  246. For no As Integer = 161 To 200
  247. Dim NLBS As Label = CType(Me.Controls.Find("NLB" + no.ToString(), True)(0), Label) : NLBS.Visible = False
  248. Next
  249. OY = LB79.Location.Y + 20 : NN1 = 160
  250. For I As Integer = 0 To 第5期_dgv.Rows.Count - 1
  251. Dim NLBS1 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 1).ToString(), True)(0), Label)
  252. Dim NLBS2 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 2).ToString(), True)(0), Label)
  253. Dim NLBS3 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 3).ToString(), True)(0), Label)
  254. Dim NLBS4 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 4).ToString(), True)(0), Label)
  255. NLBS1.Visible = True : NLBS2.Visible = True : NLBS3.Visible = True : NLBS4.Visible = True
  256. NLBS1.Location = New Drawing.Point(73, OY + NY) : NLBS2.Location = New Drawing.Point(102, OY + NY)
  257. NLBS3.Location = New Drawing.Point(529, OY + NY) : NLBS4.Location = New Drawing.Point(610, OY + NY)
  258. NLBS2.Text = 第5期_dgv("內容", I).Value.ToString : NLBS3.Text = Format(第5期_dgv("比例", I).Value, "#,##0.00") & " %"
  259. NLBS4.Text = Format(第5期_dgv("金額", I).Value, "#,##0") : NN1 += 3 : NY += 20
  260. Next
  261. End Sub
  262. Private Sub Set_合約報價總表()
  263. 報價總表_dgv.DataSource = Nothing : ds15.Clear()
  264. 報價總表_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  265. 報價總表_dgv.ColumnHeadersHeight = 40 : 報價總表_dgv.AllowUserToAddRows = False : 報價總表_dgv.RowTemplate.Height = 45
  266. 報價總表_dgv.RowsDefaultCellStyle.WrapMode = DataGridViewTriState.True
  267. SQL_合約報價總表()
  268. da.Fill(ds15) : 報價總表_dgv.DataSource = ds15.Tables(0) : conn.Close()
  269. 報價總表_dgv.Columns(0).Visible = False : 報價總表_dgv.Columns(8).Visible = False : 報價總表_dgv.Columns(9).Visible = False
  270. 報價總表_dgv.Columns(0).FillWeight = 50 : 報價總表_dgv.Columns(1).FillWeight = 50 : 報價總表_dgv.Columns(2).FillWeight = 210
  271. 報價總表_dgv.Columns(3).FillWeight = 50 : 報價總表_dgv.Columns(4).FillWeight = 50 : 報價總表_dgv.Columns(5).FillWeight = 80
  272. 報價總表_dgv.Columns(6).FillWeight = 80 : 報價總表_dgv.Columns(7).FillWeight = 90
  273. For i As Integer = 4 To 6 : 報價總表_dgv.Columns(i).DefaultCellStyle.Format = "#,##0" : Next
  274. For i As Integer = 4 To 6 : 報價總表_dgv.Columns(i).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : Next
  275. For i As Integer = 0 To 7 : 報價總表_dgv.Columns(i).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter : Next
  276. 報價總表_dgv.Columns(1).ReadOnly = True : 報價總表_dgv.Columns(2).ReadOnly = True : 報價總表_dgv.Columns(6).ReadOnly = True
  277. 報價總表_dgv.EditMode = DataGridViewEditMode.EditOnEnter
  278. End Sub
  279. Private Sub 合約種類下拉清單讀取()
  280. SQL_合約種類讀取() : 合約種類_cb.Items.Clear() : While (dr.Read()) : 合約種類_cb.Items.Add(dr("中")) : End While : conn.Close()
  281. End Sub
  282. Private Sub 客戶名稱下拉清單讀取()
  283. SQL_客戶名稱讀取() : 客戶名稱_tb.Items.Clear() : While (dr.Read()) : 客戶名稱_tb.Items.Add(dr("客戶名稱")) : End While : conn.Close()
  284. End Sub
  285. Private Sub 我司負責人下拉清單讀取()
  286. SQL負責人B讀取() : 負責人_B_cb.Items.Clear() : While (dr.Read()) : 負責人_B_cb.Items.Add(dr("負責人B")) : End While : conn.Close()
  287. End Sub
  288. Private Sub 合約編號()
  289. 合約編號中_lb.Text = "合約編號 : " & 合約編號_cb.Text & "-" & 合約編號1_tb.Text & " " & 合約編號2_tb.Text & "-" & 合約編號3_tb.Text
  290. 合約編號英_lb.Text = "Contract Number : " & 合約編號_cb.Text & "-" & 合約編號1_tb.Text & " " & 合約編號2_tb.Text & "-" & 合約編號3_tb.Text
  291. End Sub
  292. Private Sub 甲方條件下拉清單讀取()
  293. SQL合約條件讀取() : 合約編號1_cb.Items.Clear() : 合約編號1_cb.Items.Add("") : While (dr.Read()) : 合約編號1_cb.Items.Add(dr("約號甲方")) : End While : conn.Close()
  294. End Sub
  295. Private Sub 浮水印()
  296. If 合約編號_cb.Text = "HX" Then : 選擇公司_cb.Text = "PT HONG XHE INDUSTRIAL"
  297. For I As Integer = 1 To Val(最末頁_cb.Text)
  298. Dim PanelS As Panel = CType(Me.Controls.Find("Panel" + (I).ToString(), True)(0), Panel) : PanelS.BackgroundImage = My.Resources.黑白hx
  299. Next
  300. Else : 選擇公司_cb.Text = "PT PUNCAK GEMILANG SEMESTA" : Panel1.BackgroundImage = My.Resources.黑白hx
  301. For I As Integer = 1 To Val(最末頁_cb.Text)
  302. Dim PanelS As Panel = CType(Me.Controls.Find("Panel" + (I).ToString(), True)(0), Panel) : PanelS.BackgroundImage = My.Resources.黑白pgs
  303. Next
  304. End If
  305. End Sub
  306. Private Sub 預設資料()
  307. 合約種類_cb.Text = "" : 合約種類_tb.Text = "" : 客戶名稱_tb.Text = "" : 負責人_A_cb.Text = ""
  308. 工程地點_tb.Text = "" : 客戶地址_tb.Text = "" : 工程名稱_中_tb.Text = "" : 工程名稱_英_tb.Text = "" : 負責人_B_cb.Text = "" : CH2.Checked = True : 立約日期_dtp.Value = Today()
  309. 我司地址_tb.Text = "Kawasan Industri Terpadu Indonesia China ( KITIC ) Kav. 42 Lantai 4 Desa Nagasari Kec. Serang Baru Kab. Bekasi – Jawa Barat" : 廠區_中文_tb.Text = ""
  310. NUD3.Value = 0 : 工程款1_nud.Value = 30 : 工程款2_nud.Value = 40 : 工程款3_nud.Value = 20 : 工程款4_nud.Value = 5 : 工程款5_nud.Value = 5 : 工期_nud.Value = 180
  311. b中01_lb.Text = " (以下稱為B方)" : b英01_lb.Text = " (hereafter will be referred as Party B)" : A中09_lb.Text = "0" : A中10_lb.Text = "0" : A英10_lb.Text = "0"
  312. SLB21.Text = "" : SLB9.Text = "" : SLB18.Text = "" : 最末頁_cb.Text = "16" : 最高扣款_英_bt.Text = "5 (five)%." : 逾期_bt.Text = "0.0005% (萬分之五)"
  313. 最高扣款_bt.Text = "5% (百分之五)" : 逾期_英_bt.Text = "0.0005% (null point null null null five percent)" : 頁數_bt.Text = "16"
  314. Set_合約清單() : 合約種類下拉清單讀取() : 客戶名稱下拉清單讀取() : 我司負責人下拉清單讀取() : 合約種類_cb.SelectedIndex = 0
  315. 第1期_dgv.DataSource = Nothing : ds1.Clear() : 第2期_dgv.DataSource = Nothing : ds2.Clear() : 第3期_dgv.DataSource = Nothing : ds3.Clear()
  316. 第4期_dgv.DataSource = Nothing : ds4.Clear() : 第5期_dgv.DataSource = Nothing : ds5.Clear()
  317. End Sub
  318. Private Sub 預設資料1()
  319. 工程地點_tb.Text = "" : 工程名稱_中_tb.Text = "" : 工程名稱_英_tb.Text = "" : 負責人_B_cb.Text = "" : CH2.Checked = True : 立約日期_dtp.Value = Today()
  320. 我司地址_tb.Text = "Kawasan Industri Terpadu Indonesia China ( KITIC ) Kav. 42 Lantai 4 Desa Nagasari Kec. Serang Baru Kab. Bekasi – Jawa Barat" : 廠區_中文_tb.Text = ""
  321. NUD3.Value = 0 : 工程款1_nud.Value = 30 : 工程款2_nud.Value = 40 : 工程款3_nud.Value = 20 : 工程款4_nud.Value = 5 : 工程款5_nud.Value = 5 : 工期_nud.Value = 180
  322. b中01_lb.Text = " (以下稱為B方)" : b英01_lb.Text = " (hereafter will be referred as Party B)" : A中09_lb.Text = "0" : A中10_lb.Text = "0" : A英10_lb.Text = "0"
  323. SLB21.Text = "" : SLB9.Text = "" : SLB18.Text = "" : 最末頁_cb.Text = "16" : 最高扣款_英_bt.Text = "5 (five)%." : 逾期_bt.Text = "0.0005% (萬分之五)"
  324. 最高扣款_bt.Text = "5% (百分之五)" : 逾期_英_bt.Text = "0.0005% (null point null null null five percent)" : 頁數_bt.Text = "16"
  325. Set_合約清單() : 合約種類下拉清單讀取() : 客戶名稱下拉清單讀取() : 我司負責人下拉清單讀取() : 合約種類_cb.SelectedIndex = 0
  326. 第1期_dgv.DataSource = Nothing : ds1.Clear() : 第2期_dgv.DataSource = Nothing : ds2.Clear() : 第3期_dgv.DataSource = Nothing : ds3.Clear()
  327. 第4期_dgv.DataSource = Nothing : ds4.Clear() : 第5期_dgv.DataSource = Nothing : ds5.Clear()
  328. End Sub
  329. Private Sub 合約管理系統_Load(sender As Object, e As EventArgs) Handles MyBase.Load
  330. HX_PGS_ERP_SYS.WindowState = 2 : Me.MdiParent = HX_PGS_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
  331. If CInt(登入人級別) <= 3 Then : 刪除合約_bt.Enabled = True : Else : 刪除合約_bt.Enabled = False : End If
  332. 合約編號2_tb.Enabled = False : 合約編號3_tb.Enabled = False : CH1.Checked = False : CH2.Checked = True : NUD1.Enabled = False : NUD3.Enabled = True
  333. 列印_bt.Enabled = False : Me.PrintPreviewControl1.Visible = False : Me.PrintPreviewControl1.SendToBack() : Panel1.BringToFront()
  334. End Sub
  335. Private Sub 合約管理系統_Shown(sender As Object, e As EventArgs) Handles MyBase.Shown
  336. 甲方條件下拉清單讀取() : PA = "範本" : Set_合約範例() : YR = 20
  337. For no As Integer = 0 To 35
  338. Dim LBS As Label = CType(Me.Controls.Find("LB" + (no + 50).ToString(), True)(0), Label) : X(no) = LBS.Location.X : Y(no) = LBS.Location.Y
  339. Next
  340. 預設資料()
  341. '----------合約範本設定-CC101--------------------------------------------------------------------------------------------------------------------------
  342. 讀取合約範本_bt.Enabled = CC(101) : 合約範本存檔_bt.Enabled = CC(101)
  343. '----------合約修改權限-CC102--------------------------------------------------------------------------------------------------------------------------
  344. 最末頁_cb.Enabled = CC(102) : 去除_bt.Enabled = CC(102) : 新增_bt.Enabled = CC(102) : 自動讀取_bt.Enabled = CC(102) : 手動輸入_bt.Enabled = CC(102)
  345. 新增資料_bt.Enabled = CC(102) : 刪除資料_bt.Enabled = CC(102) : 刪除合約_bt.Enabled = CC(102) : 存檔_tb.Enabled = CC(102)
  346. '----------合約列印權限-CC103--------------------------------------------------------------------------------------------------------------------------
  347. 預覽_bt.Enabled = CC(103) : 上一頁_bt.Enabled = CC(103) : 下一頁_bt.Enabled = CC(103)
  348. 合約_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", 7.6)
  349. End Sub
  350. Private Sub 合約管理系統_Closed(sender As Object, e As EventArgs) Handles MyBase.Closed
  351. HX_PGS_ERP_SYS.WindowState = 0 : MyModule1.虛擬桌面開啟()
  352. End Sub
  353. Private Sub 登入閒置控制_MouseMove(sender As Object, e As EventArgs) Handles MyBase.MouseMove
  354. timeNow = 0 : HX_PGS_ERP_SYS.Timer1.Enabled = False : HX_PGS_ERP_SYS.Timer1.Enabled = True
  355. End Sub
  356. Private Sub 登入閒置控制_KeyPress(sender As Object, e As EventArgs) Handles MyBase.KeyPress
  357. timeNow = 0 : HX_PGS_ERP_SYS.Timer1.Enabled = False : HX_PGS_ERP_SYS.Timer1.Enabled = True
  358. End Sub
  359. Private Sub 合約_dgv_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 合約_dgv.CellClick
  360. If e.RowIndex = -1 Then : Else
  361. If 放大 = True Then : 縮放2_bt.PerformClick() : End If
  362. 合約種類下拉清單讀取() : 客戶名稱下拉清單讀取() : 我司負責人下拉清單讀取()
  363. If Strings.Left(合約_dgv("合約編號", e.RowIndex).Value.ToString, 2) = "HX" Then : 合約編號_cb.Text = "HX" : Else : 合約編號_cb.Text = "PGS" : End If
  364. 合約編號1_tb.Text = 合約_dgv("約號甲方", e.RowIndex).Value.ToString : 合約編號2_tb.Text = 合約_dgv("約號排序", e.RowIndex).Value.ToString
  365. 合約編號3_tb.Text = 合約_dgv("約號尾序", e.RowIndex).Value.ToString
  366. For no As Integer = 0 To 35 : Dim LBS As Label = CType(Me.Controls.Find("LB" + (no + 50).ToString(), True)(0), Label) : LBS.Location = New Drawing.Point(X(no), Y(no)) : Next
  367. PA = 合約編號_cb.Text & "-" & 合約編號1_tb.Text & " " & 合約編號2_tb.Text & "-" & 合約編號3_tb.Text
  368. PA1 = "1" : Set_合約明細1() : PA1 = "2" : Set_合約明細2() : PA1 = "3" : Set_合約明細3() : PA1 = "4" : Set_合約明細4() : PA1 = "5" : Set_合約明細5()
  369. Set_合約報價總表() : Set_合約範例()
  370. 客戶名稱_tb.Text = 合約_dgv("客戶名稱", e.RowIndex).Value.ToString : 負責人_A_cb.Text = 合約_dgv("負責人A", e.RowIndex).Value.ToString
  371. 工程地點_tb.Text = 合約_dgv("工程地點", e.RowIndex).Value.ToString : 客戶地址_tb.Text = 合約_dgv("客戶地址", e.RowIndex).Value.ToString
  372. 工程名稱_中_tb.Text = 合約_dgv("工程名稱_中", e.RowIndex).Value.ToString : 工程名稱_英_tb.Text = 合約_dgv("工程名稱_英", e.RowIndex).Value.ToString
  373. 負責人_B_cb.Text = 合約_dgv("負責人B", e.RowIndex).Value.ToString : 我司地址_tb.Text = 合約_dgv("我司地址", e.RowIndex).Value.ToString
  374. CH2.Checked = True : NUD3.Value = 合約_dgv("工程總價", e.RowIndex).Value : 工程款1_nud.Value = 合約_dgv("第一期比例", e.RowIndex).Value
  375. 工程款2_nud.Value = 合約_dgv("第二期比例", e.RowIndex).Value : 工程款3_nud.Value = 合約_dgv("第三期比例", e.RowIndex).Value
  376. 工程款4_nud.Value = 合約_dgv("第四期比例", e.RowIndex).Value : 工程款5_nud.Value = 合約_dgv("第五期比例", e.RowIndex).Value
  377. 工期_nud.Value = 合約_dgv("工期", e.RowIndex).Value : 逾期_bt.Text = 合約_dgv("逾期_中", e.RowIndex).Value.ToString
  378. 最高扣款_bt.Text = 合約_dgv("最高扣罰_中", e.RowIndex).Value.ToString : 逾期_英_bt.Text = 合約_dgv("逾期_英", e.RowIndex).Value.ToString
  379. 最高扣款_英_bt.Text = 合約_dgv("最高扣罰_英", e.RowIndex).Value.ToString : 減價_bt.Text = 合約_dgv("減價", e.RowIndex).Value.ToString
  380. 廠區_中文_tb.Text = 合約_dgv("工程廠區", e.RowIndex).Value.ToString : 最末頁_cb.Text = 合約_dgv("頁數", e.RowIndex).Value.ToString
  381. 立約日期_dtp.Value = 合約_dgv("立約日期", e.RowIndex).Value : 合約種類_cb.Text = 合約_dgv("合約種類", e.RowIndex).Value.ToString
  382. 合約編號_tb.Text = 合約_dgv("合約編號", e.RowIndex).Value.ToString
  383. 圖片庫 = 合約_dgv("簽回檔圖庫", e.RowIndex).Value.ToString : 簽回檔 = 合約_dgv("簽回", e.RowIndex).Value
  384. For i As Integer = 0 To 報價總表_dgv.Rows.Count - 1
  385. If 報價總表_dgv.Rows(i).Cells("DESCRIPTION").Value.ToString = "稅金 10% Tax" Then
  386. 稅額顯示_lb.Text = "PPN 10%稅額 = Rp. " : LB25.Text = "PPN 10%稅額 = Rp. " : LB26.Text = "Value added Tax 10% = Rp. "
  387. LB29.Text = "上述d.工程總價包括PPN 10%稅額,詳情載於報價中。"
  388. LB30.Text = "Point d at above Total Price of the Project is included 10% of Value added Tax, detail is in the quotation. "
  389. ElseIf 報價總表_dgv.Rows(i).Cells("DESCRIPTION").Value.ToString = "稅金 11% Tax" Then
  390. 稅額顯示_lb.Text = "PPN 11%稅額 = Rp. " : LB25.Text = "PPN 11%稅額 = Rp. " : LB26.Text = "Value added Tax 11% = Rp. "
  391. LB29.Text = "上述d.工程總價包括PPN 11%稅額,詳情載於報價中。"
  392. LB30.Text = "Point d at above Total Price of the Project is included 11% of Value added Tax, detail is in the quotation. "
  393. End If
  394. If 報價總表_dgv.Rows(i).Cells("DESCRIPTION").Value.ToString = "總計 Grand Total" Then : NUD3.Value = 報價總表_dgv.Rows(i).Cells("AMOUNT (RP)").Value : End If
  395. Next
  396. End If
  397. End Sub
  398. Private Sub 第1期_dgv_CellContentCl(sender As Object, e As DataGridViewCellEventArgs) Handles 第1期_dgv.CellEnter
  399. If Not IsNumeric(第1期_dgv.Rows(e.RowIndex).Cells("比例").Value) Then
  400. If 系統語言 = "繁體中文" Then : MsgBox("欄位輸入必須為數值!!") : Else : MsgBox("Input bidang harus numerik!!") : End If
  401. 第1期_dgv.Rows(e.RowIndex).Cells("比例").Value = "0" : 第1期_dgv.Rows(e.RowIndex).Cells("金額").Value = "0"
  402. Else
  403. Dim nn As Integer : Dim NN1 As Integer = 0
  404. For i As Integer = 0 To 第1期_dgv.Rows.Count - 1 : nn += 第1期_dgv.Rows(i).Cells("比例").Value : Next
  405. If nn > 工程款1_nud.Value Then
  406. Dim SS As String
  407. If 系統語言 = "繁體中文" Then : SS = "第一期的細項比例不可大於 " : Else : SS = "Proporsi detail fase pertama tidak boleh lebih dari " : End If
  408. MsgBox(SS & Format(工程款1_nud.Value, "#,##0.00") & " % !!")
  409. 第1期_dgv.Rows(e.RowIndex).Cells("比例").Value = "0" : 第1期_dgv.Rows(e.RowIndex).Cells("金額").Value = "0"
  410. Else
  411. For i As Integer = 0 To 第1期_dgv.Rows.Count - 1
  412. 第1期_dgv.Rows(i).Cells("金額").Value = 第1期_dgv.Rows(i).Cells("比例").Value * 金額1_und.Value / 工程款1_nud.Value
  413. Next i
  414. End If
  415. For I As Integer = 0 To 第1期_dgv.Rows.Count - 1
  416. Dim NLBS1 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 1).ToString(), True)(0), Label)
  417. Dim NLBS2 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 2).ToString(), True)(0), Label)
  418. Dim NLBS3 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 3).ToString(), True)(0), Label)
  419. Dim NLBS4 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 4).ToString(), True)(0), Label)
  420. NLBS2.Text = 第1期_dgv("內容", I).Value.ToString : NLBS3.Text = Format(第1期_dgv("比例", I).Value, "#,##0.00") & " %"
  421. NLBS4.Text = Format(第1期_dgv("金額", I).Value, "#,##0") : NN1 += 3
  422. Next
  423. End If
  424. End Sub
  425. Private Sub 第2期_dgv_CellContentCl(sender As Object, e As DataGridViewCellEventArgs) Handles 第2期_dgv.CellEnter
  426. If Not IsNumeric(第2期_dgv.Rows(e.RowIndex).Cells("比例").Value) Then
  427. If 系統語言 = "繁體中文" Then : MsgBox("欄位輸入必須為數值!!") : Else : MsgBox("Input bidang harus numerik!!") : End If
  428. 第2期_dgv.Rows(e.RowIndex).Cells("比例").Value = "0" : 第2期_dgv.Rows(e.RowIndex).Cells("金額").Value = "0"
  429. Else
  430. Dim nn As Integer : Dim NN1 As Integer = 40
  431. For i As Integer = 0 To 第2期_dgv.Rows.Count - 1 : nn += 第2期_dgv.Rows(i).Cells("比例").Value : Next
  432. If nn > 工程款2_nud.Value Then
  433. Dim SS As String
  434. If 系統語言 = "繁體中文" Then : SS = "第二期的細項比例不可大於 " : Else : SS = "Proporsi detail fase kedua tidak boleh lebih besar dari " : End If
  435. MsgBox(SS & Format(工程款2_nud.Value, "#,##0.00") & " % !!")
  436. 第2期_dgv.Rows(e.RowIndex).Cells("比例").Value = "0" : 第2期_dgv.Rows(e.RowIndex).Cells("金額").Value = "0"
  437. Else
  438. For i As Integer = 0 To 第2期_dgv.Rows.Count - 1
  439. 第2期_dgv.Rows(i).Cells("金額").Value = 第2期_dgv.Rows(i).Cells("比例").Value * 金額2_und.Value / 工程款2_nud.Value
  440. Next i
  441. End If
  442. For I As Integer = 0 To 第2期_dgv.Rows.Count - 1
  443. Dim NLBS1 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 1).ToString(), True)(0), Label)
  444. Dim NLBS2 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 2).ToString(), True)(0), Label)
  445. Dim NLBS3 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 3).ToString(), True)(0), Label)
  446. Dim NLBS4 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 4).ToString(), True)(0), Label)
  447. NLBS2.Text = 第2期_dgv("內容", I).Value.ToString : NLBS3.Text = Format(第2期_dgv("比例", I).Value, "#,##0.00") & " %"
  448. NLBS4.Text = Format(第2期_dgv("金額", I).Value, "#,##0") : NN1 += 3
  449. Next
  450. End If
  451. End Sub
  452. Private Sub 第3期_dgv_CellContentCl(sender As Object, e As DataGridViewCellEventArgs) Handles 第3期_dgv.CellEnter
  453. If Not IsNumeric(第3期_dgv.Rows(e.RowIndex).Cells("比例").Value) Then
  454. If 系統語言 = "繁體中文" Then : MsgBox("欄位輸入必須為數值!!") : Else : MsgBox("Input bidang harus numerik!!") : End If
  455. 第3期_dgv.Rows(e.RowIndex).Cells("比例").Value = "0" : 第3期_dgv.Rows(e.RowIndex).Cells("金額").Value = "0"
  456. Else
  457. Dim nn As Integer : Dim NN1 As Integer = 80
  458. For i As Integer = 0 To 第3期_dgv.Rows.Count - 1 : nn += 第3期_dgv.Rows(i).Cells("比例").Value : Next
  459. If nn > 工程款3_nud.Value Then
  460. Dim SS As String
  461. If 系統語言 = "繁體中文" Then : SS = "第三期的細項比例不可大於 " : Else : SS = "Proporsi rincian periode ketiga tidak boleh lebih besar dari " : End If
  462. MsgBox(SS & Format(工程款3_nud.Value, "#,##0.00") & " % !!")
  463. 第3期_dgv.Rows(e.RowIndex).Cells("比例").Value = "0" : 第3期_dgv.Rows(e.RowIndex).Cells("金額").Value = "0"
  464. Else
  465. For i As Integer = 0 To 第3期_dgv.Rows.Count - 1
  466. 第3期_dgv.Rows(i).Cells("金額").Value = 第3期_dgv.Rows(i).Cells("比例").Value * 金額3_und.Value / 工程款3_nud.Value
  467. Next i
  468. End If
  469. For I As Integer = 0 To 第3期_dgv.Rows.Count - 1
  470. Dim NLBS1 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 1).ToString(), True)(0), Label)
  471. Dim NLBS2 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 2).ToString(), True)(0), Label)
  472. Dim NLBS3 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 3).ToString(), True)(0), Label)
  473. Dim NLBS4 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 4).ToString(), True)(0), Label)
  474. NLBS2.Text = 第3期_dgv("內容", I).Value.ToString : NLBS3.Text = Format(第3期_dgv("比例", I).Value, "#,##0.00") & " %"
  475. NLBS4.Text = Format(第3期_dgv("金額", I).Value, "#,##0") : NN1 += 3
  476. Next
  477. End If
  478. End Sub
  479. Private Sub 第4期_dgv_CellContentCl(sender As Object, e As DataGridViewCellEventArgs) Handles 第4期_dgv.CellEnter
  480. If Not IsNumeric(第4期_dgv.Rows(e.RowIndex).Cells("比例").Value) Then
  481. If 系統語言 = "繁體中文" Then : MsgBox("欄位輸入必須為數值!!") : Else : MsgBox("Input bidang harus numerik!!") : End If
  482. 第4期_dgv.Rows(e.RowIndex).Cells("比例").Value = "0" : 第4期_dgv.Rows(e.RowIndex).Cells("金額").Value = "0"
  483. Else
  484. Dim nn As Integer : Dim NN1 As Integer = 120
  485. For i As Integer = 0 To 第4期_dgv.Rows.Count - 1 : nn += 第4期_dgv.Rows(i).Cells("比例").Value : Next
  486. If nn > 工程款4_nud.Value Then
  487. Dim SS As String
  488. If 系統語言 = "繁體中文" Then : SS = "第四期的細項比例不可大於 " : Else : SS = "Proporsi rincian periode ke-4 tidak boleh lebih besar dari " : End If
  489. MsgBox(SS & Format(工程款4_nud.Value, "#,##0.00") & " % !!")
  490. 第4期_dgv.Rows(e.RowIndex).Cells("比例").Value = "0" : 第4期_dgv.Rows(e.RowIndex).Cells("金額").Value = "0"
  491. Else
  492. For i As Integer = 0 To 第4期_dgv.Rows.Count - 1
  493. 第4期_dgv.Rows(i).Cells("金額").Value = 第4期_dgv.Rows(i).Cells("比例").Value * 金額4_und.Value / 工程款4_nud.Value
  494. Next i
  495. End If
  496. For I As Integer = 0 To 第4期_dgv.Rows.Count - 1
  497. Dim NLBS1 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 1).ToString(), True)(0), Label)
  498. Dim NLBS2 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 2).ToString(), True)(0), Label)
  499. Dim NLBS3 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 3).ToString(), True)(0), Label)
  500. Dim NLBS4 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 4).ToString(), True)(0), Label)
  501. NLBS2.Text = 第4期_dgv("內容", I).Value.ToString : NLBS3.Text = Format(第4期_dgv("比例", I).Value, "#,##0.00") & " %"
  502. NLBS4.Text = Format(第4期_dgv("金額", I).Value, "#,##0") : NN1 += 3
  503. Next
  504. End If
  505. End Sub
  506. Private Sub 第5期_dgv_CellContentCl(sender As Object, e As DataGridViewCellEventArgs) Handles 第5期_dgv.CellEnter
  507. If Not IsNumeric(第5期_dgv.Rows(e.RowIndex).Cells("比例").Value) Then
  508. If 系統語言 = "繁體中文" Then : MsgBox("欄位輸入必須為數值!!") : Else : MsgBox("Input bidang harus numerik!!") : End If
  509. 第5期_dgv.Rows(e.RowIndex).Cells("比例").Value = "0" : 第5期_dgv.Rows(e.RowIndex).Cells("金額").Value = "0"
  510. Else
  511. Dim nn As Integer : Dim NN1 As Integer = 160
  512. For i As Integer = 0 To 第5期_dgv.Rows.Count - 1 : nn += 第5期_dgv.Rows(i).Cells("比例").Value : Next
  513. If nn > 工程款5_nud.Value Then
  514. Dim SS As String
  515. If 系統語言 = "繁體中文" Then : SS = "第五期的細項比例不可大於 " : Else : SS = "Proporsi rincian periode kelima tidak boleh lebih besar dari " : End If
  516. MsgBox(SS & Format(工程款5_nud.Value, "#,##0.00") & " % !!")
  517. 第5期_dgv.Rows(e.RowIndex).Cells("比例").Value = "0" : 第5期_dgv.Rows(e.RowIndex).Cells("金額").Value = "0"
  518. Else
  519. For i As Integer = 0 To 第5期_dgv.Rows.Count - 1
  520. 第5期_dgv.Rows(i).Cells("金額").Value = 第5期_dgv.Rows(i).Cells("比例").Value * 金額5_und.Value / 工程款5_nud.Value
  521. Next i
  522. End If
  523. For I As Integer = 0 To 第5期_dgv.Rows.Count - 1
  524. Dim NLBS1 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 1).ToString(), True)(0), Label)
  525. Dim NLBS2 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 2).ToString(), True)(0), Label)
  526. Dim NLBS3 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 3).ToString(), True)(0), Label)
  527. Dim NLBS4 As Label = CType(Me.Controls.Find("NLB" + (I + NN1 + 4).ToString(), True)(0), Label)
  528. NLBS2.Text = 第5期_dgv("內容", I).Value.ToString : NLBS3.Text = Format(第5期_dgv("比例", I).Value, "#,##0.00") & " %"
  529. NLBS4.Text = Format(第5期_dgv("金額", I).Value, "#,##0") : NN1 += 3
  530. Next
  531. End If
  532. End Sub
  533. Private Sub 第1期_dgv_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 第1期_dgv.CellClick
  534. If e.RowIndex = -1 Then : Else : 明細選項_bt.Text = 第1期_dgv("細項", e.RowIndex).Value.ToString : 明細選項_bt.Text = Format(Val(明細選項_bt.Text), "#,##0") : End If
  535. End Sub
  536. Private Sub 第2期_dgv_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 第2期_dgv.CellClick
  537. If e.RowIndex = -1 Then : Else : 明細選項_bt.Text = 第2期_dgv("細項", e.RowIndex).Value.ToString : 明細選項_bt.Text = Format(Val(明細選項_bt.Text), "#,##0") : End If
  538. End Sub
  539. Private Sub 第3期_dgv_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 第3期_dgv.CellClick
  540. If e.RowIndex = -1 Then : Else : 明細選項_bt.Text = 第3期_dgv("細項", e.RowIndex).Value.ToString : 明細選項_bt.Text = Format(Val(明細選項_bt.Text), "#,##0") : End If
  541. End Sub
  542. Private Sub 第4期_dgv_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 第4期_dgv.CellClick
  543. If e.RowIndex = -1 Then : Else : 明細選項_bt.Text = 第4期_dgv("細項", e.RowIndex).Value.ToString : 明細選項_bt.Text = Format(Val(明細選項_bt.Text), "#,##0") : End If
  544. End Sub
  545. Private Sub 第5期_dgv_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles 第5期_dgv.CellClick
  546. If e.RowIndex = -1 Then : Else : 明細選項_bt.Text = 第5期_dgv("細項", e.RowIndex).Value.ToString : 明細選項_bt.Text = Format(Val(明細選項_bt.Text), "#,##0") : End If
  547. End Sub
  548. Private Sub 選擇公司_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 選擇公司_cb.SelectedIndexChanged
  549. If 選擇公司_cb.Text = "PT HONG XHE INDUSTRIAL" Then : 合約編號_cb.Text = "HX" : Else : 合約編號_cb.Text = "PGS" : End If
  550. b中01_lb.Text = 選擇公司_cb.Text & vbCrLf &
  551. " (以下稱為B方)"
  552. b英01_lb.Text = 選擇公司_cb.Text & vbCrLf &
  553. " (hereafter will be referred as Party B)"
  554. SLB18.Text = 選擇公司_cb.Text
  555. End Sub
  556. Private Sub 合約編號_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 合約編號_cb.SelectedIndexChanged
  557. 浮水印() : 合約編號()
  558. End Sub
  559. Private Sub 合約編號1_tb_TextChanged(sender As Object, e As EventArgs) Handles 合約編號1_tb.TextChanged
  560. 合約編號() : PA30 = 合約編號1_tb.Text : SQL_客戶資料讀取()
  561. If dr.Read() Then : 客戶名稱_tb.Text = dr("客戶名稱").ToString : 負責人_A_cb.Text = dr("負責人").ToString : 客戶地址_tb.Text = dr("地址").ToString : End If : conn.Close()
  562. End Sub
  563. Private Sub 合約編號2_tb_TextChanged(sender As Object, e As EventArgs) Handles 合約編號2_tb.TextChanged
  564. 合約編號()
  565. End Sub
  566. Private Sub 合約編號3_tb_TextChanged(sender As Object, e As EventArgs) Handles 合約編號3_tb.TextChanged
  567. 合約編號()
  568. End Sub
  569. Private Sub 查閱文件_bt_Click(sender As Object, e As EventArgs) Handles 查閱文件_bt.Click
  570. If 合約編號_tb.Text = "" Then : If 系統語言 = "繁體中文" Then : MsgBox("請先選擇合約!!") : Else : MsgBox("Silakan pilih kontrak terlebih dahulu!!") : End If : Else
  571. If 簽回檔 = False Then : If 系統語言 = "繁體中文" Then : MsgBox("該合約還沒有建立簽回文件!!") : Else : MsgBox("Kontrak belum membuat file sign-back!!") : End If : Else
  572. PA1 = 合約編號_tb.Text : PA2 = "合約" : 文件查閱視窗.ShowDialog()
  573. End If
  574. End If
  575. End Sub
  576. Private Sub 自動讀取_bt_Click(sender As Object, e As EventArgs) Handles 自動讀取_bt.Click
  577. If 客戶名稱_tb.Text = "" Then : If 系統語言 = "繁體中文" Then : MsgBox("請先選擇客戶名稱!!") : Else : MsgBox("Silakan pilih nama pelanggan terlebih dahulu!!") : End If : Else
  578. If 系統語言 = "繁體中文" Then : MsgBox("進入編輯狀態,合約清單已鎖定不可選擇,鎖定狀態在合約存檔後解除!!")
  579. Else : MsgBox("Masuk ke status edit, daftar kontrak sudah terkunci dan tidak bisa dipilih, status terkunci akan dilepas setelah kontrak diarsipkan!!") : End If
  580. 合約_dgv.Enabled = False
  581. PA30 = 合約編號1_tb.Text : SQL_客戶資料讀取() : If dr.Read() Then : 合約編號1_tb.Text = dr("簡稱") : End If : conn.Close()
  582. If 合約編號_cb.Text = "" Or 合約編號1_tb.Text = "" Then
  583. If 系統語言 = "繁體中文" Then : MsgBox("資訊不夠,無法生成合約編號!!") : Else : MsgBox("Informasi tidak cukup untuk menghasilkan nomor kontrak!!") : End If
  584. Else
  585. 合約編號2_tb.Enabled = False : 合約編號3_tb.Enabled = False
  586. PA = Strings.Mid(Format(Today(), "yyyy/MM/dd"), 3, 2) & Strings.Mid(Format(Today(), "yyyy/MM/dd"), 6, 2) & Strings.Right(Format(Today(), "yyyy/MM/dd"), 2)
  587. SQL_合約流水號_最後一筆資料()
  588. If dr.Read() Then
  589. If Val(Strings.Right(dr("合約編號").ToString, 2)) > 9 Then : EDR = Strings.Right(dr("合約編號").ToString, 2) : Else : EDR = Strings.Right(dr("合約編號").ToString, 1) : End If
  590. End If : conn.Close() : EDR += 1 : 合約編號2_tb.Text = PA : 合約編號3_tb.Text = EDR : 預設資料1()
  591. End If
  592. End If
  593. End Sub
  594. Private Sub 手動輸入_bt_Click(sender As Object, e As EventArgs) Handles 手動輸入_bt.Click
  595. If 系統語言 = "繁體中文" Then : MsgBox("進入編輯狀態,合約清單已鎖定不可選擇,鎖定狀態在合約存檔後解除!!")
  596. Else : MsgBox("Masuk ke status edit, daftar kontrak sudah terkunci dan tidak bisa dipilih, status terkunci akan dilepas setelah kontrak diarsipkan!!") : End If
  597. 合約_dgv.Enabled = False : 合約編號2_tb.Enabled = True : 合約編號3_tb.Enabled = True : 預設資料1()
  598. End Sub
  599. Private Sub 合約種類_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 合約種類_cb.TextChanged
  600. A中01_lb.Text = 合約種類_cb.Text : Dim X1, Y1, X2 As Integer : Y1 = A中01_lb.Location.Y : X2 = A中01_lb.Size.Width : X1 = (930 - X2) / 2 : A中01_lb.Location = New Drawing.Point(X1, Y1)
  601. End Sub
  602. Private Sub 合約種類_cb_SelectedIndexChanged_1(sender As Object, e As EventArgs) Handles 合約種類_cb.SelectedIndexChanged
  603. PA10 = 合約種類_cb.Text : SQL_合約種類英文讀取() : If dr.Read() Then : 合約種類_tb.Text = dr("英") : End If : conn.Close()
  604. End Sub
  605. Private Sub 合約種類_tb_TextChanged(sender As Object, e As EventArgs) Handles 合約種類_tb.TextChanged
  606. A英01_lb.Text = 合約種類_tb.Text : Dim X1, Y1, X2 As Integer : Y1 = A英01_lb.Location.Y : X2 = A英01_lb.Size.Width : X1 = (930 - X2) / 2 : A英01_lb.Location = New Drawing.Point(X1, Y1)
  607. End Sub
  608. Private Sub 客戶名稱_tb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 客戶名稱_tb.TextChanged
  609. A中02_lb.Text = 客戶名稱_tb.Text : A英02_lb.Text = 客戶名稱_tb.Text
  610. A中03_lb.Text = 客戶名稱_tb.Text & vbCrLf & " (以下稱為A方)"
  611. A英03_lb.Text = 客戶名稱_tb.Text & vbCrLf & " (hereafter will be referred as Party A)"
  612. A中05_lb.Text = 客戶名稱_tb.Text & " " & 工程名稱_中_tb.Text
  613. A英05_lb.Text = 工程名稱_英_tb.Text & " of " & vbCrLf & 客戶名稱_tb.Text
  614. A02_lb.Text = 客戶名稱_tb.Text & " - " & 工程名稱_中_tb.Text
  615. A04_lb.Text = 工程名稱_英_tb.Text & " of " & vbCrLf & 客戶名稱_tb.Text
  616. LB159.Text = 客戶名稱_tb.Text : LB164.Text = 客戶名稱_tb.Text : SLB6.Text = 客戶名稱_tb.Text
  617. Dim X1, Y1, X2 As Integer
  618. Y1 = A中02_lb.Location.Y : X2 = A中02_lb.Size.Width : X1 = (930 - X2) / 2 : A中02_lb.Location = New Drawing.Point(X1, Y1)
  619. Y1 = A英02_lb.Location.Y : X2 = A英02_lb.Size.Width : X1 = (930 - X2) / 2 : A英02_lb.Location = New Drawing.Point(X1, Y1)
  620. End Sub
  621. Private Sub 工程名稱_中_tb_TextChanged(sender As Object, e As EventArgs) Handles 工程名稱_中_tb.TextChanged
  622. A中04_lb.Text = 工程名稱_中_tb.Text : A中05_lb.Text = 客戶名稱_tb.Text & " " & 工程名稱_中_tb.Text
  623. A02_lb.Text = 客戶名稱_tb.Text & " - " & 工程名稱_中_tb.Text : LB161.Text = 工程名稱_中_tb.Text
  624. Dim X1, Y1, X2 As Integer : Y1 = A中04_lb.Location.Y : X2 = A中04_lb.Size.Width : X1 = (930 - X2) / 2 : A中04_lb.Location = New Drawing.Point(X1, Y1)
  625. End Sub
  626. Private Sub 工程名稱_英_tb_TextChanged(sender As Object, e As EventArgs) Handles 工程名稱_英_tb.TextChanged
  627. A英04_lb.Text = 工程名稱_英_tb.Text & " of "
  628. A英05_lb.Text = 工程名稱_英_tb.Text & " of " & vbCrLf & 客戶名稱_tb.Text
  629. A04_lb.Text = 工程名稱_英_tb.Text & " of " & vbCrLf & 客戶名稱_tb.Text
  630. LB163.Text = 工程名稱_英_tb.Text
  631. Dim X1, Y1, X2 As Integer : Y1 = A英04_lb.Location.Y : X2 = A英04_lb.Size.Width : X1 = (930 - X2) / 2 : A英04_lb.Location = New Drawing.Point(X1, Y1)
  632. End Sub
  633. Private Sub 工程地點_tb_TextChanged(sender As Object, e As EventArgs) Handles 工程地點_tb.TextChanged
  634. A中06_lb.Text = 工程地點_tb.Text : A英06_lb.Text = 工程地點_tb.Text
  635. End Sub
  636. Private Sub 客戶地址_tb_TextChanged(sender As Object, e As EventArgs) Handles 客戶地址_tb.TextChanged
  637. A中07_lb.Text = 客戶地址_tb.Text : A英07_lb.Text = 客戶地址_tb.Text : A01_lb.Text = 客戶地址_tb.Text : A03_lb.Text = 客戶地址_tb.Text : SLB12.Text = 客戶地址_tb.Text
  638. End Sub
  639. Private Sub 我司地址_tb_TextChanged(sender As Object, e As EventArgs) Handles 我司地址_tb.TextChanged
  640. A13_lb.Text = 我司地址_tb.Text : A14_lb.Text = 我司地址_tb.Text : SLB24.Text = 我司地址_tb.Text
  641. End Sub
  642. Private Sub 廠區_中文_tb_TextChanged(sender As Object, e As EventArgs) Handles 廠區_中文_tb.TextChanged
  643. LB160.Text = 廠區_中文_tb.Text
  644. End Sub
  645. Private Sub 負責人_A_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 負責人_A_cb.TextChanged
  646. SLB9.Text = 負責人_A_cb.Text
  647. End Sub
  648. Private Sub 負責人_B_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 負責人_B_cb.TextChanged
  649. SLB21.Text = 負責人_B_cb.Text
  650. End Sub
  651. Private Sub NUD3_ValueChanged(sender As Object, e As EventArgs) Handles NUD3.ValueChanged
  652. If CH2.Checked = True Then
  653. If 稅額顯示_lb.Text = "PPN 10%稅額 = Rp. " Then : NUD2.Value = NUD3.Value / 110 * 10 : Else : NUD2.Value = NUD3.Value / 111 * 11 : End If
  654. NUD1.Value = NUD3.Value - NUD2.Value
  655. 金額1_und.Value = NUD3.Value / 100 * 工程款1_nud.Value : 金額2_und.Value = NUD3.Value / 100 * 工程款2_nud.Value
  656. 金額3_und.Value = NUD3.Value / 100 * 工程款3_nud.Value : 金額4_und.Value = NUD3.Value / 100 * 工程款4_nud.Value
  657. 金額5_und.Value = NUD3.Value / 100 * 工程款5_nud.Value
  658. 金額6_und.Value = 金額1_und.Value + 金額2_und.Value + 金額3_und.Value + 金額4_und.Value + 金額5_und.Value
  659. A中08_lb.Text = Format(NUD1.Value, "#,##0") : A英08_lb.Text = Format(NUD1.Value, "#,##0") : A中09_lb.Text = Format(NUD2.Value, "#,##0")
  660. A英09_lb.Text = Format(NUD2.Value, "#,##0") : A中10_lb.Text = Format(NUD3.Value, "#,##0") : A英10_lb.Text = Format(NUD3.Value, "#,##0")
  661. LB47.Text = Format(金額1_und.Value, "#,##0") : LB49.Text = Format(金額1_und.Value, "#,##0") : LB58.Text = Format(金額2_und.Value, "#,##0")
  662. LB56.Text = Format(金額2_und.Value, "#,##0") : LB67.Text = Format(金額3_und.Value, "#,##0") : LB65.Text = Format(金額3_und.Value, "#,##0")
  663. LB76.Text = Format(金額4_und.Value, "#,##0") : LB74.Text = Format(金額4_und.Value, "#,##0") : LB83.Text = Format(金額5_und.Value, "#,##0")
  664. LB85.Text = Format(金額5_und.Value, "#,##0")
  665. End If
  666. End Sub
  667. Private Sub NUD1_ValueChanged(sender As Object, e As EventArgs) Handles NUD1.ValueChanged
  668. If CH1.Checked = True Then
  669. NUD2.Value = NUD1.Value / 100 * 10 : NUD3.Value = NUD1.Value + NUD2.Value
  670. 金額1_und.Value = NUD3.Value / 100 * 工程款1_nud.Value : 金額2_und.Value = NUD3.Value / 100 * 工程款2_nud.Value
  671. 金額3_und.Value = NUD3.Value / 100 * 工程款3_nud.Value : 金額4_und.Value = NUD3.Value / 100 * 工程款4_nud.Value
  672. 金額5_und.Value = NUD3.Value / 100 * 工程款5_nud.Value
  673. 金額6_und.Value = 金額1_und.Value + 金額2_und.Value + 金額3_und.Value + 金額4_und.Value + 金額5_und.Value
  674. A中08_lb.Text = Format(NUD1.Value, "#,##0") : A英08_lb.Text = Format(NUD1.Value, "#,##0") : A中09_lb.Text = Format(NUD2.Value, "#,##0")
  675. A英09_lb.Text = Format(NUD2.Value, "#,##0") : A中10_lb.Text = Format(NUD3.Value, "#,##0") : A英10_lb.Text = Format(NUD3.Value, "#,##0")
  676. LB47.Text = Format(金額1_und.Value, "#,##0") : LB49.Text = Format(金額1_und.Value, "#,##0") : LB58.Text = Format(金額2_und.Value, "#,##0")
  677. LB56.Text = Format(金額2_und.Value, "#,##0") : LB67.Text = Format(金額3_und.Value, "#,##0") : LB65.Text = Format(金額3_und.Value, "#,##0")
  678. LB76.Text = Format(金額4_und.Value, "#,##0") : LB74.Text = Format(金額4_und.Value, "#,##0") : LB83.Text = Format(金額5_und.Value, "#,##0")
  679. LB85.Text = Format(金額5_und.Value, "#,##0")
  680. End If
  681. End Sub
  682. Private Sub CH1_CheckedChanged(sender As Object, e As EventArgs) Handles CH1.Click
  683. CH1.Checked = True : CH2.Checked = False : NUD1.Enabled = True : NUD3.Enabled = False
  684. End Sub
  685. Private Sub CH2_CheckedChanged(sender As Object, e As EventArgs) Handles CH2.Click
  686. CH1.Checked = False : CH2.Checked = True : NUD1.Enabled = False : NUD3.Enabled = True
  687. End Sub
  688. Private Sub 頁數_bt_TextChanged(sender As Object, e As EventArgs) Handles 頁數_bt.TextChanged
  689. LB165.Text = 頁數_bt.Text : LB162.Text = 頁數_bt.Text
  690. End Sub
  691. Private Sub 減價_bt_TextChanged(sender As Object, e As EventArgs) Handles 減價_bt.TextChanged
  692. LB274.Text = 減價_bt.Text : LB275.Text = 減價_bt.Text
  693. End Sub
  694. Private Sub 工期_nud_ValueChanged(sender As Object, e As EventArgs) Handles 工期_nud.ValueChanged
  695. A19_lb.Text = Format(工期_nud.Value, "#,##0") : A20_lb.Text = Format(工期_nud.Value, "#,##0")
  696. End Sub
  697. Private Sub 逾期_bt_TextChanged(sender As Object, e As EventArgs) Handles 逾期_bt.TextChanged
  698. A21_lb.Text = 逾期_bt.Text
  699. End Sub
  700. Private Sub 最高扣款_bt_TextChanged(sender As Object, e As EventArgs) Handles 最高扣款_bt.TextChanged
  701. A22_lb.Text = 最高扣款_bt.Text
  702. End Sub
  703. Private Sub 逾期_英_bt_TextChanged(sender As Object, e As EventArgs) Handles 逾期_英_bt.TextChanged
  704. A23_lb.Text = 逾期_英_bt.Text
  705. End Sub
  706. Private Sub 最高扣款_英_bt_TextChanged(sender As Object, e As EventArgs) Handles 最高扣款_英_bt.TextChanged
  707. A24_lb.Text = 最高扣款_英_bt.Text
  708. End Sub
  709. Private Sub 工程款1_nud_ValueChanged(sender As Object, e As EventArgs) Handles 工程款1_nud.ValueChanged
  710. 工程款6_nud.Value = 工程款1_nud.Value + 工程款2_nud.Value + 工程款3_nud.Value + 工程款4_nud.Value + 工程款5_nud.Value : 金額1_und.Value = NUD3.Value / 100 * 工程款1_nud.Value
  711. 金額6_und.Value = 金額1_und.Value + 金額2_und.Value + 金額3_und.Value + 金額4_und.Value + 金額5_und.Value
  712. If 工程款1_nud.Value = 0 Then : LB46.Text = "" : LB48.Text = "" : Else : LB46.Text = Format(工程款1_nud.Value, "#,##0") & "%" : LB48.Text = Format(工程款1_nud.Value, "#,##0") & "%" : End If
  713. If 金額1_und.Value = 0 Then : LB47.Text = "" : LB49.Text = "" : Else : LB47.Text = 金額1_und.Text : LB49.Text = 金額1_und.Text : End If
  714. End Sub
  715. Private Sub 工程款2_nud_ValueChanged(sender As Object, e As EventArgs) Handles 工程款2_nud.ValueChanged
  716. 工程款6_nud.Value = 工程款1_nud.Value + 工程款2_nud.Value + 工程款3_nud.Value + 工程款4_nud.Value + 工程款5_nud.Value : 金額2_und.Value = NUD3.Value / 100 * 工程款2_nud.Value
  717. 金額6_und.Value = 金額1_und.Value + 金額2_und.Value + 金額3_und.Value + 金額4_und.Value + 金額5_und.Value
  718. If 工程款2_nud.Value = 0 Then : LB55.Text = "" : LB57.Text = "" : Else : LB55.Text = Format(工程款2_nud.Value, "#,##0") & "%" : LB57.Text = Format(工程款2_nud.Value, "#,##0") & "%" : End If
  719. If 金額2_und.Value = 0 Then : LB58.Text = "" : LB56.Text = "" : Else : LB58.Text = 金額2_und.Text : LB56.Text = 金額2_und.Text : End If
  720. End Sub
  721. Private Sub 工程款3_nud_ValueChanged(sender As Object, e As EventArgs) Handles 工程款3_nud.ValueChanged
  722. 工程款6_nud.Value = 工程款1_nud.Value + 工程款2_nud.Value + 工程款3_nud.Value + 工程款4_nud.Value + 工程款5_nud.Value : 金額3_und.Value = NUD3.Value / 100 * 工程款3_nud.Value
  723. 金額6_und.Value = 金額1_und.Value + 金額2_und.Value + 金額3_und.Value + 金額4_und.Value + 金額5_und.Value
  724. If 工程款3_nud.Value = 0 Then : LB64.Text = "" : LB66.Text = "" : Else : LB64.Text = Format(工程款3_nud.Value, "#,##0") & "%" : LB66.Text = Format(工程款3_nud.Value, "#,##0") & "%" : End If
  725. If 金額3_und.Value = 0 Then : LB67.Text = "" : LB65.Text = "" : Else : LB67.Text = 金額3_und.Text : LB65.Text = 金額3_und.Text : End If
  726. End Sub
  727. Private Sub 工程款4_nud_ValueChanged(sender As Object, e As EventArgs) Handles 工程款4_nud.ValueChanged
  728. 工程款6_nud.Value = 工程款1_nud.Value + 工程款2_nud.Value + 工程款3_nud.Value + 工程款4_nud.Value + 工程款5_nud.Value : 金額4_und.Value = NUD3.Value / 100 * 工程款4_nud.Value
  729. 金額6_und.Value = 金額1_und.Value + 金額2_und.Value + 金額3_und.Value + 金額4_und.Value + 金額5_und.Value
  730. If 工程款4_nud.Value = 0 Then : LB73.Text = "" : LB75.Text = "" : Else : LB73.Text = Format(工程款4_nud.Value, "#,##0") & "%" : LB75.Text = Format(工程款4_nud.Value, "#,##0") & "%" : End If
  731. If 金額4_und.Value = 0 Then : LB76.Text = "" : LB74.Text = "" : Else : LB76.Text = 金額4_und.Text : LB74.Text = 金額4_und.Text : End If
  732. End Sub
  733. Private Sub 工程款5_nud_ValueChanged(sender As Object, e As EventArgs) Handles 工程款5_nud.ValueChanged
  734. 工程款6_nud.Value = 工程款1_nud.Value + 工程款2_nud.Value + 工程款3_nud.Value + 工程款4_nud.Value + 工程款5_nud.Value : 金額5_und.Value = NUD3.Value / 100 * 工程款5_nud.Value
  735. 金額6_und.Value = 金額1_und.Value + 金額2_und.Value + 金額3_und.Value + 金額4_und.Value + 金額5_und.Value
  736. If 工程款5_nud.Value = 0 Then : LB82.Text = "" : LB84.Text = "" : Else : LB82.Text = Format(工程款5_nud.Value, "#,##0") & "%" : LB84.Text = Format(工程款5_nud.Value, "#,##0") & "%" : End If
  737. If 金額5_und.Value = 0 Then : LB83.Text = "" : LB85.Text = "" : Else : LB83.Text = 金額5_und.Text : LB85.Text = 金額5_und.Text : End If
  738. End Sub
  739. Private Sub 立約日期_dtp_ValueChanged(sender As Object, e As EventArgs) Handles 立約日期_dtp.ValueChanged
  740. SLB15.Text = 立約日期_dtp.Text : SLB27.Text = 立約日期_dtp.Text
  741. End Sub
  742. Private Sub 縮放2_bt_Click(sender As Object, e As EventArgs) Handles 縮放2_bt.Click
  743. Dim NX, NY As Integer : NX = 合約_dgv.Size.Width : NY = 合約_dgv.Size.Height
  744. If 放大 = True Then
  745. 合約_dgv.Size = New System.Drawing.Point(NX - 400, NY) : 放大 = False : 合約_dgv.Columns("工程名稱_中").Visible = False
  746. Else
  747. 合約_dgv.Size = New System.Drawing.Point(NX + 400, NY) : 放大 = True : 合約_dgv.Columns("工程名稱_中").Visible = True
  748. End If
  749. End Sub
  750. Private Sub 刪除合約_bt_Click(sender As Object, e As EventArgs) Handles 刪除合約_bt.Click
  751. Dim SS As String
  752. If 系統語言 = "繁體中文" Then : SS = "是否要刪除這筆資料?" : Else : SS = "Apakah Anda ingin menghapus data ini?" : End If
  753. Dim aa As MsgBoxResult = MsgBox(SS, MsgBoxStyle.OkCancel)
  754. If aa = MsgBoxResult.Ok Then
  755. Dim SS1 As String
  756. If 系統語言 = "繁體中文" Then : SS1 = "確定刪除資料請輸入 [YES] !!" : Else : SS1 = "Silakan masukkan [YES] untuk mengonfirmasi penghapusan data!!" : End If
  757. Dim SSA As String = InputBox(SS1)
  758. If SSA = "YES" Then
  759. PA = 合約編號_cb.Text & "-" & 合約編號1_tb.Text & " " & 合約編號2_tb.Text & "-" & 合約編號3_tb.Text
  760. SQL_合約刪除() : SQL_合約本文刪除_依合約() : SQL_合約明細刪除_全部() : SQL_合約試算分表刪除() : SQL_合約試算控制表刪除() : SQL_合約試算明細表刪除()
  761. If 系統語言 = "繁體中文" Then : MsgBox("刪除完成!!") : Else : MsgBox("Hapus selesai!!") : End If
  762. Set_合約清單() : 預設資料()
  763. End If
  764. End If
  765. End Sub
  766. Private Sub 存檔_tb_Click(sender As Object, e As EventArgs) Handles 存檔_tb.Click
  767. Dim 合約編號條件 As Boolean = True
  768. If 合約編號_cb.Text = "" Then : If 系統語言 = "繁體中文" Then : MsgBox("沒有選擇我方公司!!") : Else : MsgBox("Silakan pilih perusahaan kami!!") : End If : 合約編號條件 = False : End If
  769. If 合約編號1_tb.Text = "" Then
  770. If 系統語言 = "繁體中文" Then : MsgBox("沒有甲方公司英文縮寫!!") : Else : MsgBox("Silakan masukkan singkatan dari perusahaan Pihak A!!") : End If : 合約編號條件 = False : Else
  771. Dim d As Int32
  772. For index = 0 To 合約編號1_tb.Text.Length - 1
  773. d = Asc(合約編號1_tb.Text(index)) : Dim 可能不行 As Boolean = False
  774. If (d < 65 Or d > 90) Then : 可能不行 = True : End If 'c變數若在65~90是大寫的英文字母
  775. If 可能不行 = True Then
  776. If (d < 97 Or d > 122) Then : 可能不行 = True : Else : 可能不行 = False : End If 'c變數若在97~122是小寫的英文字母
  777. If 可能不行 = True Then '然後查表, c變數若在48~57, 表示它是數字,
  778. If (d < 48 Or d > 57) Then
  779. If 系統語言 = "繁體中文" Then : MsgBox("甲方公司簡稱需要英文或是數字,不可以是中文或其他符號!!")
  780. Else : MsgBox("Singkatan dari perusahaan Pihak A harus dalam bahasa Inggris atau angka, bukan dalam bahasa Cina atau simbol lainnya!!") : End If
  781. 合約編號條件 = False : Exit For
  782. End If
  783. End If
  784. End If
  785. Next
  786. End If
  787. If 合約編號2_tb.Text = "" Then
  788. If 系統語言 = "繁體中文" Then : MsgBox("沒有立約日期!!") : Else : MsgBox("Tidak ada tanggal kontrak!!") : End If : 合約編號條件 = False : End If
  789. Dim c As Int32 '然後查表, c變數若在48~57, 表示它是數字,
  790. For index = 0 To 合約編號2_tb.Text.Length - 1
  791. c = Asc(合約編號2_tb.Text(index))
  792. If c < 48 Or c > 57 Then
  793. If 系統語言 = "繁體中文" Then : MsgBox("立約日期只能是數字!!") : Else : MsgBox("Tanggal perjanjian hanya bisa berupa angka!!") : End If
  794. 合約編號條件 = False : Exit For : Else
  795. If Len(合約編號2_tb.Text) <> 6 Then
  796. If 系統語言 = "繁體中文" Then : MsgBox("立約日期的格式為YYMMDD (年兩位,月兩位,日兩位),數字規格不符!!")
  797. Else : MsgBox("Format tanggal kontrak adalah YYMMDD (dua digit untuk tahun, dua digit untuk bulan, dan dua digit untuk hari), dan spesifikasi numerik tidak cocok!!") : End If
  798. 合約編號條件 = False : Exit For
  799. End If
  800. End If
  801. Next
  802. If 合約編號3_tb.Text = "" Then
  803. If 系統語言 = "繁體中文" Then : MsgBox("沒有合約序號!!") : Else : MsgBox("Tidak ada nomor kontrak!!") : End If : 合約編號條件 = False
  804. ElseIf IsNumeric(合約編號3_tb.Text) = False Then
  805. If 系統語言 = "繁體中文" Then : MsgBox("序號只能是數字!!") : Else : MsgBox("Nomor seri hanya bisa berupa angka!!") : End If : 合約編號條件 = False
  806. End If
  807. If 合約編號條件 = False Then : Else
  808. If 工程款6_nud.Value <> 100 Then
  809. If 系統語言 = "繁體中文" Then : MsgBox("工程款估驗 不等於 100%!!") : Else : MsgBox("Penilaian biaya proyek tidak sama dengan 100%!!") : End If
  810. Else
  811. Dim AN1, AN2, AN3, AN4, AN5 As Integer
  812. Dim STST1 As String = "" : Dim STST2 As String = "" : Dim STST3 As String = "" : Dim STST4 As String = "" : Dim STST5 As String = ""
  813. Dim SS1, SS2, SS3, SS4, SS5 As String
  814. If 系統語言 = "繁體中文" Then
  815. SS1 = "第一期工程款細項不吻合!!" : SS2 = "第二期工程款細項不吻合!!" : SS3 = "第三期工程款細項不吻合!!" : SS4 = "第四期工程款細項不吻合!!" : SS5 = "第五期工程款細項不吻合!!"
  816. Else
  817. SS1 = "Detail proyek fase 1 tidak cocok!!" : SS2 = "Detail proyek fase 2 tidak cocok!!" : SS3 = "Detail proyek fase 3 tidak cocok!!"
  818. SS4 = "Detail proyek fase 4 tidak cocok!!" : SS5 = "Detail proyek fase 5 tidak cocok!!"
  819. End If
  820. For I As Integer = 0 To 第1期_dgv.Rows.Count - 1 : AN1 += 第1期_dgv.Rows(I).Cells("比例").Value : Next
  821. For I As Integer = 0 To 第2期_dgv.Rows.Count - 1 : AN2 += 第2期_dgv.Rows(I).Cells("比例").Value : Next
  822. For I As Integer = 0 To 第3期_dgv.Rows.Count - 1 : AN3 += 第3期_dgv.Rows(I).Cells("比例").Value : Next
  823. For I As Integer = 0 To 第4期_dgv.Rows.Count - 1 : AN4 += 第4期_dgv.Rows(I).Cells("比例").Value : Next
  824. For I As Integer = 0 To 第5期_dgv.Rows.Count - 1 : AN5 += 第5期_dgv.Rows(I).Cells("比例").Value : Next
  825. If AN1 <> 工程款1_nud.Value And 第1期_dgv.Rows.Count > 0 Then : STST1 = SS1 : End If
  826. If AN2 <> 工程款2_nud.Value And 第2期_dgv.Rows.Count > 0 Then : STST2 = SS2 : End If
  827. If AN3 <> 工程款3_nud.Value And 第3期_dgv.Rows.Count > 0 Then : STST3 = SS3 : End If
  828. If AN4 <> 工程款4_nud.Value And 第4期_dgv.Rows.Count > 0 Then : STST4 = SS4 : End If
  829. If AN5 <> 工程款5_nud.Value And 第5期_dgv.Rows.Count > 0 Then : STST5 = SS5 : End If
  830. If STST1 <> "" Or STST2 <> "" Or STST3 <> "" Or STST4 <> "" Or STST5 <> "" Then
  831. MsgBox(STST1 & vbCrLf &
  832. STST2 & vbCrLf &
  833. STST3 & vbCrLf &
  834. STST4 & vbCrLf &
  835. STST5)
  836. Else
  837. PA = 合約編號_cb.Text & "-" & 合約編號1_tb.Text & " " & 合約編號2_tb.Text & "-" & 合約編號3_tb.Text
  838. SQL_合約查詢()
  839. If dr.Read() Then
  840. Dim SS As String
  841. If 系統語言 = "繁體中文" Then : SS = "系統內已有相同單號,請問是否存檔(會覆蓋舊資料)?"
  842. Else : SS = "Nomor pelacakan yang sama sudah ada di sistem, apakah Anda ingin mengarsipkannya (data lama akan ditimpa)?" : End If
  843. Dim aa As MsgBoxResult = MsgBox(SS, MsgBoxStyle.OkCancel)
  844. If aa = MsgBoxResult.Ok Then : 合約存檔() : End If
  845. Else : 合約存檔() : End If : 甲方條件下拉清單讀取() : 合約編號1_cb.Text = 條件選擇
  846. End If
  847. End If
  848. End If
  849. End Sub
  850. Private Sub 合約存檔()
  851. PA = 合約編號_cb.Text & "-" & 合約編號1_tb.Text & " " & 合約編號2_tb.Text & "-" & 合約編號3_tb.Text
  852. SQL_合約查詢()
  853. If dr.Read() Then
  854. '-----判斷是否新增客戶資料----------------------------------------------------------------------------------
  855. PA30 = 合約編號1_tb.Text : Dim 供應商編號 As String : SQL_客戶資料讀取()
  856. If dr.Read() Then
  857. If 負責人_A_cb.Text <> dr("負責人").ToString And 負責人_A_cb.Text <> "" And dr("負責人").ToString <> "" Then
  858. Dim SS As String
  859. If 系統語言 = "繁體中文" Then : SS = "合約上的負責人與系統中的資料不吻合,是否要更新系統中的負責人資料?"
  860. Else : SS = "Penanggung jawab kontrak tidak sesuai dengan informasi dalam sistem. Apakah Anda ingin memperbarui penanggung jawab dalam sistem?" : End If
  861. Dim aa As MsgBoxResult = MsgBox(SS, MsgBoxStyle.OkCancel)
  862. If aa = MsgBoxResult.Ok Then : PA43 = 負責人_A_cb.Text : PA42 = 客戶名稱_tb.Text : conn.Close() : SQL_客戶資料表_修改負責人() : End If
  863. ElseIf 負責人_A_cb.Text <> "" And dr("負責人").ToString = "" Then
  864. PA43 = 負責人_A_cb.Text : PA42 = 客戶名稱_tb.Text : conn.Close() : SQL_客戶資料表_修改負責人()
  865. End If
  866. Else
  867. conn.Close() : SQL_客戶資料表_最後一筆資料() : If dr.Read() Then : 供應商編號 = dr("流水號").ToString : Else : 供應商編號 = "CL000" : End If : conn.Close()
  868. Dim NUM1 As Integer
  869. NUM1 = Double.Parse(Strings.Right(供應商編號, 3)) + 1
  870. If NUM1 < 10 Then : 供應商編號 = "CL" & "00" & NUM1
  871. ElseIf NUM1 > 9 And NUM1 < 100 Then : 供應商編號 = "CL" & "0" & NUM1
  872. ElseIf NUM1 > 99 Then : 供應商編號 = "CL" & NUM1 : End If
  873. PA29 = 供應商編號 : PA41 = 合約編號1_tb.Text : PA40 = 客戶名稱_tb.Text : PA39 = 客戶地址_tb.Text : PA38 = 負責人_A_cb.Text : SQL_合約系統中新增客戶資料() : conn.Close()
  874. End If : conn.Close()
  875. PA37 = 合約種類_cb.Text : PA36 = 合約種類_tb.Text
  876. SQL_合約種類查詢() : If dr.Read() Then : Else : SQL_合約種類新增() : conn.Close() : End If : conn.Close()
  877. PA = 合約編號_cb.Text & "-" & 合約編號1_tb.Text & " " & 合約編號2_tb.Text & "-" & 合約編號3_tb.Text
  878. PA36 = 客戶名稱_tb.Text : PA35 = 負責人_A_cb.Text : PA34 = 工程地點_tb.Text : PA33 = 客戶地址_tb.Text : PA32 = 工程名稱_中_tb.Text : PA31 = 工程名稱_英_tb.Text
  879. PA30 = 選擇公司_cb.Text : PA29 = 負責人_B_cb.Text : PA28 = 我司地址_tb.Text : PA27 = NUD3.Value : PA26 = 工程款1_nud.Value : PA25 = 工程款2_nud.Value
  880. PA24 = 工程款3_nud.Value : PA23 = 工程款4_nud.Value : PA22 = 工程款5_nud.Value : PA21 = 工期_nud.Value : PA20 = 逾期_bt.Text : PA19 = 最高扣款_bt.Text
  881. PA18 = 逾期_英_bt.Text : PA17 = 最高扣款_英_bt.Text : PA16 = 減價_bt.Text : PA15 = 廠區_中文_tb.Text : PA14 = 頁數_bt.Text : PA12 = 合約種類_cb.Text
  882. PA13 = Format(立約日期_dtp.Value, "yyyy/MM/dd") : PA44 = 合約編號2_tb.Text : PA45 = 合約編號3_tb.Text : PA46 = 合約編號1_tb.Text : PA47 = 工程期_ch.Text
  883. SQL_合約修改() : 合約明細存檔()
  884. PA = 合約編號_cb.Text & "-" & 合約編號1_tb.Text & " " & 合約編號2_tb.Text & "-" & 合約編號3_tb.Text : Set_存檔比較用()
  885. For no As Integer = 1 To 本文數
  886. 資料數 = 本文數 : MyModule1.進度條()
  887. Dim LBS As Label = CType(Me.Controls.Find("LB" + no.ToString(), True)(0), Label) : PA1 = LBS.Name : PA2 = LBS.Text : PA3 = LBS.Location.X
  888. If 存檔比較_dgv.Rows.Count = 0 Then
  889. SQL_合約本文新增()
  890. Else
  891. For I As Integer = 0 To 存檔比較_dgv.Rows.Count - 1
  892. 資料數 = 存檔比較_dgv.Rows.Count : 進度條1()
  893. If 存檔比較_dgv("控件", I).Value = PA1 And 存檔比較_dgv("內容", I).Value = PA2 And 存檔比較_dgv("座標X", I).Value = PA3 Then
  894. ElseIf 存檔比較_dgv("控件", I).Value = PA1 And (存檔比較_dgv("內容", I).Value <> PA2 Or 存檔比較_dgv("座標X", I).Value <> PA3) Then : SQL_合約本文修改() : End If
  895. Next : ProgressBar1.Value = 0 : 最終數1 = 0
  896. End If
  897. Next : HX_PGS_ERP_SYS.ToolStripProgressBar1.Value = 0 : 最終數 = 0
  898. If 系統語言 = "繁體中文" Then : MsgBox("存檔完成,合約清單鎖定解除!!") : Else : MsgBox("Arsip selesai, dan kunci daftar kontrak dilepaskan!!") : End If
  899. Set_合約清單() : 合約_dgv.Enabled = True
  900. Else
  901. If 系統語言 = "繁體中文" Then : MsgBox("請先建立合約報價單,才能製作合約本文!!")
  902. Else : MsgBox("Harap buat kutipan kontrak terlebih dahulu sebelum membuat teks kontrak!!") : End If
  903. End If
  904. End Sub
  905. Private Sub 進度條1()
  906. 平均數 = 10000 / 資料數 : 最終數1 += 平均數 : If 最終數1 > 10000 Then : 最終數1 = 10000 : End If : ProgressBar1.Value = 最終數1
  907. End Sub
  908. Private Sub 合約範本存檔_bt_Click(sender As Object, e As EventArgs) Handles 合約範本存檔_bt.Click
  909. SQL_合約本文刪除() : PA = "範本" : Dim QQ As Integer = 本文數
  910. For no As Integer = 1 To QQ
  911. 資料數 = QQ : MyModule1.進度條() : Dim LBS As Label = CType(Me.Controls.Find("LB" + no.ToString(), True)(0), Label)
  912. PA1 = LBS.Name : PA2 = LBS.Text : PA3 = LBS.Location.X : SQL_合約本文新增()
  913. Next : HX_PGS_ERP_SYS.ToolStripProgressBar1.Value = 0 : 最終數 = 0 : If 系統語言 = "繁體中文" Then : MsgBox("存檔完成!!") : Else : MsgBox("Arsip selesai!!") : End If
  914. End Sub
  915. Private Sub TabControl1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles TabControl1.SelectedIndexChanged
  916. 明細選項_bt.Text = ""
  917. End Sub
  918. Private Sub 新增資料_bt_Click(sender As Object, e As EventArgs) Handles 新增資料_bt.Click
  919. If 合約編號_cb.Text = "" Or 合約編號1_tb.Text = "" Then
  920. If 系統語言 = "繁體中文" Then : MsgBox("資訊不夠,無法生成明細!!") : Else : MsgBox("Tidak cukup informasi untuk menghasilkan detail!!") : End If : Else
  921. If 工程款6_nud.Value <> 100 Then
  922. If 系統語言 = "繁體中文" Then : MsgBox("工程款估驗 不等於 100%!!") : Else : MsgBox("Penilaian biaya proyek tidak sama dengan 100%!!") : End If : Else
  923. PA = 合約編號_cb.Text & "-" & 合約編號1_tb.Text & " " & 合約編號2_tb.Text & "-" & 合約編號3_tb.Text : 合約明細存檔()
  924. Dim SS As String
  925. If 系統語言 = "繁體中文" Then : SS = "合約工期款項細分不可大於10筆!!" : Else : SS = "Pembagian pembayaran durasi kontrak tidak boleh lebih dari 10 !!" : End If
  926. If TabControl1.SelectedIndex = 0 Then
  927. If 第1期_dgv.Rows.Count = 10 Then : MsgBox(SS) : Else : PA1 = "1" : PA2 = 第1期_dgv.Rows.Count + 1 : SQL_合約明細新增() : End If
  928. ElseIf TabControl1.SelectedIndex = 1 Then
  929. If 第2期_dgv.Rows.Count = 10 Then : MsgBox(SS) : Else : PA1 = "2" : PA2 = 第2期_dgv.Rows.Count + 1 : SQL_合約明細新增() : End If
  930. ElseIf TabControl1.SelectedIndex = 2 Then
  931. If 第3期_dgv.Rows.Count = 10 Then : MsgBox(SS) : Else : PA1 = "3" : PA2 = 第3期_dgv.Rows.Count + 1 : SQL_合約明細新增() : End If
  932. ElseIf TabControl1.SelectedIndex = 3 Then
  933. If 第4期_dgv.Rows.Count = 10 Then : MsgBox(SS) : Else : PA1 = "4" : PA2 = 第4期_dgv.Rows.Count + 1 : SQL_合約明細新增() : End If
  934. ElseIf TabControl1.SelectedIndex = 4 Then
  935. If 第5期_dgv.Rows.Count = 10 Then : MsgBox(SS) : Else : PA1 = "5" : PA2 = 第5期_dgv.Rows.Count + 1 : SQL_合約明細新增() : End If
  936. End If
  937. PA = 合約編號_cb.Text & "-" & 合約編號1_tb.Text & " " & 合約編號2_tb.Text & "-" & 合約編號3_tb.Text
  938. PA1 = "1" : Set_合約明細1() : PA1 = "2" : Set_合約明細2() : PA1 = "3" : Set_合約明細3() : PA1 = "4" : Set_合約明細4() : PA1 = "5" : Set_合約明細5()
  939. If 系統語言 = "繁體中文" Then : MsgBox("新增完成!!") : Else : MsgBox("Tambahkan selesai!!") : End If
  940. End If
  941. End If
  942. End Sub
  943. Private Sub 刪除資料_bt_Click(sender As Object, e As EventArgs) Handles 刪除資料_bt.Click
  944. If 合約編號_cb.Text = "" Or 合約編號1_tb.Text = "" Or 明細選項_bt.Text = "" Then
  945. If 系統語言 = "繁體中文" Then : MsgBox("資訊不夠,無法生成明細!!") : Else : MsgBox("Tidak cukup informasi untuk menghasilkan detail!!") : End If : Else
  946. If 工程款6_nud.Value <> 100 Then
  947. If 系統語言 = "繁體中文" Then : MsgBox("工程款估驗 不等於 100%!!") : Else : MsgBox("Penilaian biaya proyek tidak sama dengan 100%!!") : End If : Else
  948. PA = 合約編號_cb.Text & "-" & 合約編號1_tb.Text & " " & 合約編號2_tb.Text & "-" & 合約編號3_tb.Text : 合約明細存檔()
  949. If TabControl1.SelectedIndex = 0 Then : PA1 = "1" : PA2 = 明細選項_bt.Text : SQL_合約明細刪除()
  950. ElseIf TabControl1.SelectedIndex = 1 Then : PA1 = "2" : PA2 = 明細選項_bt.Text : SQL_合約明細刪除()
  951. ElseIf TabControl1.SelectedIndex = 2 Then : PA1 = "3" : PA2 = 明細選項_bt.Text : SQL_合約明細刪除()
  952. ElseIf TabControl1.SelectedIndex = 3 Then : PA1 = "4" : PA2 = 明細選項_bt.Text : SQL_合約明細刪除()
  953. ElseIf TabControl1.SelectedIndex = 4 Then : PA1 = "5" : PA2 = 明細選項_bt.Text : SQL_合約明細刪除()
  954. End If
  955. PA = 合約編號_cb.Text & "-" & 合約編號1_tb.Text & " " & 合約編號2_tb.Text & "-" & 合約編號3_tb.Text
  956. PA1 = "1" : Set_合約明細1() : PA1 = "2" : Set_合約明細2() : PA1 = "3" : Set_合約明細3() : PA1 = "4" : Set_合約明細4() : PA1 = "5" : Set_合約明細5()
  957. If 系統語言 = "繁體中文" Then : MsgBox("刪除完成!!") : Else : MsgBox("Hapus selesai!!") : End If
  958. End If
  959. End If
  960. End Sub
  961. Private Sub 合約編號1_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 合約編號1_cb.SelectedIndexChanged
  962. 條件選擇 = 合約編號1_cb.Text : Set_合約清單()
  963. End Sub
  964. Private Sub 讀取合約範本_bt_Click(sender As Object, e As EventArgs) Handles 讀取合約範本_bt.Click
  965. PA = "範本" : Set_合約範例()
  966. End Sub
  967. Private Sub 合約明細存檔()
  968. For i As Integer = 0 To 第1期_dgv.Rows.Count - 1
  969. PA1 = "1" : PA2 = 第1期_dgv.Rows(i).Cells("細項").Value : PA3 = 第1期_dgv.Rows(i).Cells("內容").Value
  970. NU1 = 第1期_dgv.Rows(i).Cells("比例").Value : NU2 = 第1期_dgv.Rows(i).Cells("金額").Value : SQL_合約明細修改()
  971. Next
  972. For i As Integer = 0 To 第2期_dgv.Rows.Count - 1
  973. PA1 = "2" : PA2 = 第2期_dgv.Rows(i).Cells("細項").Value : PA3 = 第2期_dgv.Rows(i).Cells("內容").Value
  974. NU1 = 第2期_dgv.Rows(i).Cells("比例").Value : NU2 = 第2期_dgv.Rows(i).Cells("金額").Value : SQL_合約明細修改()
  975. Next
  976. For i As Integer = 0 To 第3期_dgv.Rows.Count - 1
  977. PA1 = "3" : PA2 = 第3期_dgv.Rows(i).Cells("細項").Value : PA3 = 第3期_dgv.Rows(i).Cells("內容").Value
  978. NU1 = 第3期_dgv.Rows(i).Cells("比例").Value : NU2 = 第3期_dgv.Rows(i).Cells("金額").Value : SQL_合約明細修改()
  979. Next
  980. For i As Integer = 0 To 第4期_dgv.Rows.Count - 1
  981. PA1 = "4" : PA2 = 第4期_dgv.Rows(i).Cells("細項").Value : PA3 = 第4期_dgv.Rows(i).Cells("內容").Value
  982. NU1 = 第4期_dgv.Rows(i).Cells("比例").Value : NU2 = 第4期_dgv.Rows(i).Cells("金額").Value : SQL_合約明細修改()
  983. Next
  984. For i As Integer = 0 To 第5期_dgv.Rows.Count - 1
  985. PA1 = "5" : PA2 = 第5期_dgv.Rows(i).Cells("細項").Value : PA3 = 第5期_dgv.Rows(i).Cells("內容").Value
  986. NU1 = 第5期_dgv.Rows(i).Cells("比例").Value : NU2 = 第5期_dgv.Rows(i).Cells("金額").Value : SQL_合約明細修改()
  987. Next
  988. End Sub
  989. Private Sub 新增_bt_Click(sender As Object, e As EventArgs) Handles 新增_bt.Click
  990. Dim SS As String
  991. If 系統語言 = "繁體中文" Then : SS = "本頁空白條文最多新增到第14條!!" : Else : SS = "Klausa kosong di halaman ini hanya dapat ditambahkan ke klausa 14 !!" : End If
  992. If 翻頁_nud.Value = Val(最末頁_cb.Text) Then
  993. '---------------------------------------最末頁-------------------------------------------------------------------------------------
  994. If 系統語言 = "繁體中文" Then : MsgBox("最末頁無法新增空白條文!!") : Else : MsgBox("Tidak dapat menambahkan klausa kosong di halaman terakhir!!") : End If
  995. ElseIf 翻頁_nud.Value = Val(最末頁_cb.Text) - 1 Then
  996. '---------------------------------------第十一章-------------------------------------------------------------------------------------
  997. If LB166.Text = "" Then : LB166.Text = "X、" : LB167.Text = "XXXXX。" : LB168.Text = "XXXXX."
  998. ElseIf LB169.Text = "" Then : LB169.Text = "X、" : LB170.Text = "XXXXX。" : LB171.Text = "XXXXX."
  999. ElseIf LB172.Text = "" Then : LB172.Text = "X、" : LB173.Text = "XXXXX。" : LB174.Text = "XXXXX."
  1000. ElseIf LB175.Text = "" Then : LB175.Text = "X、" : LB176.Text = "XXXXX。" : LB177.Text = "XXXXX."
  1001. ElseIf LB178.Text = "" Then : LB178.Text = "X、" : LB179.Text = "XXXXX。" : LB180.Text = "XXXXX."
  1002. ElseIf LB181.Text = "" Then : LB181.Text = "X、" : LB182.Text = "XXXXX。" : LB183.Text = "XXXXX."
  1003. ElseIf LB184.Text = "" Then : LB184.Text = "X、" : LB185.Text = "XXXXX。" : LB186.Text = "XXXXX."
  1004. Else : MsgBox(SS)
  1005. End If
  1006. ElseIf 翻頁_nud.Value = Val(最末頁_cb.Text) - 2 Then
  1007. '---------------------------------------第十章-------------------------------------------------------------------------------------
  1008. If LB187.Text = "" Then : LB187.Text = "第X條、XXXX" : LB188.Text = "Article X (XXX) XXXXXXXXXX"
  1009. LB189.Text = "__________________________________________________________________________________________________________________________________________________________________________________"
  1010. ElseIf LB226.Text = "" Then : LB226.Text = "X、" : LB137.Text = "XXXXX。" : LB138.Text = "XXXXX."
  1011. ElseIf LB227.Text = "" Then : LB227.Text = "X、" : LB139.Text = "XXXXX。" : LB140.Text = "XXXXX."
  1012. ElseIf LB190.Text = "" Then : LB190.Text = "X、" : LB191.Text = "XXXXX。" : LB192.Text = "XXXXX."
  1013. ElseIf LB193.Text = "" Then : LB193.Text = "X、" : LB194.Text = "XXXXX。" : LB195.Text = "XXXXX."
  1014. ElseIf LB196.Text = "" Then : LB196.Text = "X、" : LB197.Text = "XXXXX。" : LB198.Text = "XXXXX."
  1015. ElseIf LB199.Text = "" Then : LB199.Text = "X、" : LB200.Text = "XXXXX。" : LB201.Text = "XXXXX."
  1016. ElseIf LB202.Text = "" Then : LB202.Text = "X、" : LB203.Text = "XXXXX。" : LB204.Text = "XXXXX."
  1017. ElseIf LB205.Text = "" Then : LB205.Text = "X、" : LB206.Text = "XXXXX。" : LB207.Text = "XXXXX."
  1018. ElseIf LB208.Text = "" Then : LB208.Text = "X、" : LB209.Text = "XXXXX。" : LB210.Text = "XXXXX."
  1019. ElseIf LB211.Text = "" Then : LB211.Text = "X、" : LB212.Text = "XXXXX。" : LB213.Text = "XXXXX."
  1020. ElseIf LB214.Text = "" Then : LB214.Text = "X、" : LB215.Text = "XXXXX。" : LB216.Text = "XXXXX."
  1021. ElseIf LB217.Text = "" Then : LB217.Text = "X、" : LB218.Text = "XXXXX。" : LB219.Text = "XXXXX."
  1022. ElseIf LB220.Text = "" Then : LB220.Text = "X、" : LB221.Text = "XXXXX。" : LB222.Text = "XXXXX."
  1023. ElseIf LB223.Text = "" Then : LB223.Text = "X、" : LB224.Text = "XXXXX。" : LB225.Text = "XXXXX."
  1024. Else : MsgBox(SS)
  1025. End If
  1026. ElseIf 翻頁_nud.Value = Val(最末頁_cb.Text) - 3 Then
  1027. '---------------------------------------第九章-------------------------------------------------------------------------------------
  1028. If LB228.Text = "" Then : LB228.Text = "第X條、XXXX" : LB229.Text = "Article X (XXX) XXXXXXXXXX"
  1029. LB230.Text = "__________________________________________________________________________________________________________________________________________________________________________________"
  1030. ElseIf LB231.Text = "" Then : LB231.Text = "X、" : LB131.Text = "XXXXX。" : LB132.Text = "XXXXX."
  1031. ElseIf LB232.Text = "" Then : LB232.Text = "X、" : LB133.Text = "XXXXX。" : LB134.Text = "XXXXX."
  1032. ElseIf LB233.Text = "" Then : LB233.Text = "X、" : LB135.Text = "XXXXX。" : LB136.Text = "XXXXX."
  1033. ElseIf LB234.Text = "" Then : LB234.Text = "X、" : LB235.Text = "XXXXX。" : LB236.Text = "XXXXX."
  1034. ElseIf LB237.Text = "" Then : LB237.Text = "X、" : LB238.Text = "XXXXX。" : LB239.Text = "XXXXX."
  1035. ElseIf LB240.Text = "" Then : LB240.Text = "X、" : LB241.Text = "XXXXX。" : LB242.Text = "XXXXX."
  1036. ElseIf LB243.Text = "" Then : LB243.Text = "X、" : LB244.Text = "XXXXX。" : LB245.Text = "XXXXX."
  1037. ElseIf LB246.Text = "" Then : LB246.Text = "X、" : LB247.Text = "XXXXX。" : LB248.Text = "XXXXX."
  1038. ElseIf LB249.Text = "" Then : LB249.Text = "X、" : LB250.Text = "XXXXX。" : LB251.Text = "XXXXX."
  1039. ElseIf LB252.Text = "" Then : LB252.Text = "X、" : LB253.Text = "XXXXX。" : LB254.Text = "XXXXX."
  1040. ElseIf LB255.Text = "" Then : LB255.Text = "X、" : LB256.Text = "XXXXX。" : LB257.Text = "XXXXX."
  1041. ElseIf LB258.Text = "" Then : LB258.Text = "X、" : LB259.Text = "XXXXX。" : LB260.Text = "XXXXX."
  1042. ElseIf LB261.Text = "" Then : LB261.Text = "X、" : LB262.Text = "XXXXX。" : LB263.Text = "XXXXX."
  1043. ElseIf LB264.Text = "" Then : LB264.Text = "X、" : LB265.Text = "XXXXX。" : LB266.Text = "XXXXX."
  1044. Else : MsgBox(SS)
  1045. End If
  1046. ElseIf 翻頁_nud.Value = Val(最末頁_cb.Text) - 4 Then
  1047. '---------------------------------------第八章-------------------------------------------------------------------------------------
  1048. If LB276.Text = "" Then : LB276.Text = "X、" : LB277.Text = "XXXXX。" : LB278.Text = "XXX."
  1049. ElseIf LB279.Text = "" Then : LB279.Text = "X、" : LB280.Text = "XXXXX。" : LB281.Text = "XXXXX."
  1050. ElseIf LB282.Text = "" Then : LB282.Text = "X、" : LB283.Text = "XXXXX。" : LB284.Text = "XXXXX."
  1051. ElseIf LB285.Text = "" Then : LB285.Text = "X、" : LB286.Text = "XXXXX。" : LB287.Text = "XXXXX."
  1052. ElseIf LB288.Text = "" Then : LB288.Text = "X、" : LB289.Text = "XXXXX。" : LB290.Text = "XXXXX."
  1053. ElseIf LB291.Text = "" Then : LB291.Text = "X、" : LB292.Text = "XXXXX。" : LB293.Text = "XXXXX."
  1054. ElseIf LB294.Text = "" Then : LB294.Text = "X、" : LB295.Text = "XXXXX。" : LB296.Text = "XXXXX."
  1055. ElseIf LB297.Text = "" Then : LB297.Text = "X、" : LB298.Text = "XXXXX。" : LB299.Text = "XXXXX."
  1056. ElseIf LB300.Text = "" Then : LB300.Text = "X、" : LB301.Text = "XXXXX。" : LB302.Text = "XXXXX."
  1057. Else : MsgBox(SS)
  1058. End If
  1059. ElseIf Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15 Then
  1060. '---------------------------------------第15頁-------------------------------------------------------------------------------------
  1061. If LB303.Text = "" Then : LB303.Text = "第X條、XXXX" : LB304.Text = "Article X (XXX) XXXXXXXXXX"
  1062. LB305.Text = "__________________________________________________________________________________________________________________________________________________________________________________"
  1063. ElseIf LB306.Text = "" Then : LB306.Text = "X、" : LB307.Text = "XXXXX。" : LB308.Text = "XXXXX."
  1064. ElseIf LB309.Text = "" Then : LB309.Text = "X、" : LB310.Text = "XXXXX。" : LB311.Text = "XXXXX."
  1065. ElseIf LB312.Text = "" Then : LB312.Text = "X、" : LB313.Text = "XXXXX。" : LB314.Text = "XXXXX."
  1066. ElseIf LB315.Text = "" Then : LB315.Text = "X、" : LB316.Text = "XXXXX。" : LB317.Text = "XXXXX."
  1067. ElseIf LB318.Text = "" Then : LB318.Text = "X、" : LB319.Text = "XXXXX。" : LB320.Text = "XXXXX."
  1068. ElseIf LB321.Text = "" Then : LB321.Text = "X、" : LB322.Text = "XXXXX。" : LB323.Text = "XXXXX."
  1069. ElseIf LB324.Text = "" Then : LB324.Text = "X、" : LB325.Text = "XXXXX。" : LB326.Text = "XXXXX."
  1070. ElseIf LB327.Text = "" Then : LB327.Text = "X、" : LB328.Text = "XXXXX。" : LB329.Text = "XXXXX."
  1071. ElseIf LB330.Text = "" Then : LB330.Text = "X、" : LB331.Text = "XXXXX。" : LB332.Text = "XXXXX."
  1072. ElseIf LB333.Text = "" Then : LB333.Text = "X、" : LB334.Text = "XXXXX。" : LB335.Text = "XXXXX."
  1073. ElseIf LB336.Text = "" Then : LB336.Text = "X、" : LB337.Text = "XXXXX。" : LB338.Text = "XXXXX."
  1074. ElseIf LB339.Text = "" Then : LB339.Text = "X、" : LB340.Text = "XXXXX。" : LB341.Text = "XXXXX."
  1075. ElseIf LB342.Text = "" Then : LB342.Text = "X、" : LB343.Text = "XXXXX。" : LB344.Text = "XXXXX."
  1076. ElseIf LB345.Text = "" Then : LB345.Text = "X、" : LB346.Text = "XXXXX。" : LB347.Text = "XXXXX."
  1077. Else : MsgBox(SS)
  1078. End If
  1079. ElseIf (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then
  1080. '---------------------------------------第14頁-------------------------------------------------------------------------------------
  1081. If LB348.Text = "" Then : LB348.Text = "第X條、XXXX" : LB349.Text = "Article X (XXX) XXXXXXXXXX"
  1082. LB350.Text = "__________________________________________________________________________________________________________________________________________________________________________________"
  1083. ElseIf LB351.Text = "" Then : LB351.Text = "X、" : LB352.Text = "XXXXX。" : LB353.Text = "XXXXX."
  1084. ElseIf LB354.Text = "" Then : LB354.Text = "X、" : LB355.Text = "XXXXX。" : LB356.Text = "XXXXX."
  1085. ElseIf LB357.Text = "" Then : LB357.Text = "X、" : LB358.Text = "XXXXX。" : LB359.Text = "XXXXX."
  1086. ElseIf LB360.Text = "" Then : LB360.Text = "X、" : LB361.Text = "XXXXX。" : LB362.Text = "XXXXX."
  1087. ElseIf LB363.Text = "" Then : LB363.Text = "X、" : LB364.Text = "XXXXX。" : LB365.Text = "XXXXX."
  1088. ElseIf LB366.Text = "" Then : LB366.Text = "X、" : LB367.Text = "XXXXX。" : LB368.Text = "XXXXX."
  1089. ElseIf LB369.Text = "" Then : LB369.Text = "X、" : LB370.Text = "XXXXX。" : LB371.Text = "XXXXX."
  1090. ElseIf LB372.Text = "" Then : LB372.Text = "X、" : LB373.Text = "XXXXX。" : LB374.Text = "XXXXX."
  1091. ElseIf LB375.Text = "" Then : LB375.Text = "X、" : LB376.Text = "XXXXX。" : LB377.Text = "XXXXX."
  1092. ElseIf LB378.Text = "" Then : LB378.Text = "X、" : LB379.Text = "XXXXX。" : LB380.Text = "XXXXX."
  1093. ElseIf LB381.Text = "" Then : LB381.Text = "X、" : LB382.Text = "XXXXX。" : LB383.Text = "XXXXX."
  1094. ElseIf LB384.Text = "" Then : LB384.Text = "X、" : LB385.Text = "XXXXX。" : LB386.Text = "XXXXX."
  1095. ElseIf LB387.Text = "" Then : LB387.Text = "X、" : LB388.Text = "XXXXX。" : LB389.Text = "XXXXX."
  1096. ElseIf LB390.Text = "" Then : LB390.Text = "X、" : LB391.Text = "XXXXX。" : LB392.Text = "XXXXX."
  1097. Else : MsgBox(SS)
  1098. End If
  1099. ElseIf Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13 Then
  1100. '---------------------------------------第13頁-------------------------------------------------------------------------------------
  1101. If LB393.Text = "" Then : LB393.Text = "第X條、XXXX" : LB394.Text = "Article X (XXX) XXXXXXXXXX"
  1102. LB395.Text = "__________________________________________________________________________________________________________________________________________________________________________________"
  1103. ElseIf LB396.Text = "" Then : LB396.Text = "X、" : LB397.Text = "XXXXX。" : LB398.Text = "XXXXX."
  1104. ElseIf LB399.Text = "" Then : LB399.Text = "X、" : LB400.Text = "XXXXX。" : LB401.Text = "XXXXX."
  1105. ElseIf LB402.Text = "" Then : LB402.Text = "X、" : LB403.Text = "XXXXX。" : LB404.Text = "XXXXX."
  1106. ElseIf LB405.Text = "" Then : LB405.Text = "X、" : LB406.Text = "XXXXX。" : LB407.Text = "XXXXX."
  1107. ElseIf LB408.Text = "" Then : LB408.Text = "X、" : LB409.Text = "XXXXX。" : LB410.Text = "XXXXX."
  1108. ElseIf LB411.Text = "" Then : LB411.Text = "X、" : LB412.Text = "XXXXX。" : LB413.Text = "XXXXX."
  1109. ElseIf LB414.Text = "" Then : LB414.Text = "X、" : LB415.Text = "XXXXX。" : LB416.Text = "XXXXX."
  1110. ElseIf LB417.Text = "" Then : LB417.Text = "X、" : LB418.Text = "XXXXX。" : LB419.Text = "XXXXX."
  1111. ElseIf LB420.Text = "" Then : LB420.Text = "X、" : LB421.Text = "XXXXX。" : LB422.Text = "XXXXX."
  1112. ElseIf LB423.Text = "" Then : LB423.Text = "X、" : LB424.Text = "XXXXX。" : LB425.Text = "XXXXX."
  1113. ElseIf LB426.Text = "" Then : LB426.Text = "X、" : LB427.Text = "XXXXX。" : LB428.Text = "XXXXX."
  1114. ElseIf LB429.Text = "" Then : LB429.Text = "X、" : LB430.Text = "XXXXX。" : LB431.Text = "XXXXX."
  1115. ElseIf LB432.Text = "" Then : LB432.Text = "X、" : LB433.Text = "XXXXX。" : LB434.Text = "XXXXX."
  1116. ElseIf LB435.Text = "" Then : LB435.Text = "X、" : LB436.Text = "XXXXX。" : LB437.Text = "XXXXX."
  1117. Else : MsgBox(SS)
  1118. End If
  1119. ElseIf Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12 Then
  1120. '---------------------------------------第12頁-------------------------------------------------------------------------------------
  1121. If LB438.Text = "" Then : LB438.Text = "第X條、XXXX" : LB439.Text = "Article X (XXX) XXXXXXXXXX"
  1122. LB440.Text = "__________________________________________________________________________________________________________________________________________________________________________________"
  1123. ElseIf LB441.Text = "" Then : LB441.Text = "X、" : LB442.Text = "XXXXX。" : LB443.Text = "XXXXX."
  1124. ElseIf LB444.Text = "" Then : LB444.Text = "X、" : LB445.Text = "XXXXX。" : LB446.Text = "XXXXX."
  1125. ElseIf LB447.Text = "" Then : LB447.Text = "X、" : LB448.Text = "XXXXX。" : LB449.Text = "XXXXX."
  1126. ElseIf LB450.Text = "" Then : LB450.Text = "X、" : LB451.Text = "XXXXX。" : LB452.Text = "XXXXX."
  1127. ElseIf LB453.Text = "" Then : LB453.Text = "X、" : LB454.Text = "XXXXX。" : LB455.Text = "XXXXX."
  1128. ElseIf LB456.Text = "" Then : LB456.Text = "X、" : LB457.Text = "XXXXX。" : LB458.Text = "XXXXX."
  1129. ElseIf LB459.Text = "" Then : LB459.Text = "X、" : LB460.Text = "XXXXX。" : LB461.Text = "XXXXX."
  1130. ElseIf LB462.Text = "" Then : LB462.Text = "X、" : LB463.Text = "XXXXX。" : LB464.Text = "XXXXX."
  1131. ElseIf LB465.Text = "" Then : LB465.Text = "X、" : LB466.Text = "XXXXX。" : LB467.Text = "XXXXX."
  1132. ElseIf LB468.Text = "" Then : LB468.Text = "X、" : LB469.Text = "XXXXX。" : LB470.Text = "XXXXX."
  1133. ElseIf LB471.Text = "" Then : LB471.Text = "X、" : LB472.Text = "XXXXX。" : LB473.Text = "XXXXX."
  1134. ElseIf LB474.Text = "" Then : LB474.Text = "X、" : LB475.Text = "XXXXX。" : LB476.Text = "XXXXX."
  1135. ElseIf LB477.Text = "" Then : LB477.Text = "X、" : LB478.Text = "XXXXX。" : LB479.Text = "XXXXX."
  1136. ElseIf LB480.Text = "" Then : LB480.Text = "X、" : LB481.Text = "XXXXX。" : LB482.Text = "XXXXX."
  1137. Else : MsgBox(SS)
  1138. End If
  1139. ElseIf 翻頁_nud.Value = 11 Then
  1140. '---------------------------------------第11頁-------------------------------------------------------------------------------------
  1141. If LB483.Text = "" Then : LB483.Text = "第X條、XXXX" : LB484.Text = "Article X (XXX) XXXXXXXXXX"
  1142. LB485.Text = "__________________________________________________________________________________________________________________________________________________________________________________"
  1143. ElseIf LB486.Text = "" Then : LB486.Text = "X、" : LB117.Text = "XXXXX。" : LB118.Text = "XXXXX."
  1144. ElseIf LB487.Text = "" Then : LB487.Text = "X、" : LB119.Text = "XXXXX。" : LB120.Text = "XXXXX."
  1145. ElseIf LB488.Text = "" Then : LB488.Text = "X、" : LB489.Text = "XXXXX。" : LB490.Text = "XXXXX."
  1146. ElseIf LB491.Text = "" Then : LB491.Text = "X、" : LB492.Text = "XXXXX。" : LB493.Text = "XXXXX."
  1147. ElseIf LB494.Text = "" Then : LB494.Text = "X、" : LB495.Text = "XXXXX。" : LB496.Text = "XXXXX."
  1148. ElseIf LB497.Text = "" Then : LB497.Text = "X、" : LB498.Text = "XXXXX。" : LB499.Text = "XXXXX."
  1149. ElseIf LB500.Text = "" Then : LB500.Text = "X、" : LB501.Text = "XXXXX。" : LB502.Text = "XXXXX."
  1150. ElseIf LB503.Text = "" Then : LB503.Text = "X、" : LB504.Text = "XXXXX。" : LB505.Text = "XXXXX."
  1151. ElseIf LB506.Text = "" Then : LB506.Text = "X、" : LB507.Text = "XXXXX。" : LB508.Text = "XXXXX."
  1152. ElseIf LB509.Text = "" Then : LB509.Text = "X、" : LB510.Text = "XXXXX。" : LB511.Text = "XXXXX."
  1153. ElseIf LB512.Text = "" Then : LB512.Text = "X、" : LB513.Text = "XXXXX。" : LB514.Text = "XXXXX."
  1154. ElseIf LB515.Text = "" Then : LB515.Text = "X、" : LB516.Text = "XXXXX。" : LB517.Text = "XXXXX."
  1155. ElseIf LB518.Text = "" Then : LB518.Text = "X、" : LB519.Text = "XXXXX。" : LB520.Text = "XXXXX."
  1156. ElseIf LB521.Text = "" Then : LB521.Text = "X、" : LB522.Text = "XXXXX。" : LB523.Text = "XXXXX."
  1157. Else : MsgBox(SS)
  1158. End If
  1159. ElseIf 翻頁_nud.Value = 10 Then
  1160. '---------------------------------------第10頁-------------------------------------------------------------------------------------
  1161. If LB524.Text = "" Then : LB524.Text = "第X條、XXXX" : LB525.Text = "Article X (XXX) XXXXXXXXXX"
  1162. LB526.Text = "__________________________________________________________________________________________________________________________________________________________________________________"
  1163. ElseIf LB527.Text = "" Then : LB527.Text = "X、" : LB115.Text = "XXXXX。" : LB116.Text = "XXXXX."
  1164. ElseIf LB528.Text = "" Then : LB528.Text = "X、" : LB529.Text = "XXXXX。" : LB530.Text = "XXXXX."
  1165. ElseIf LB531.Text = "" Then : LB531.Text = "X、" : LB532.Text = "XXXXX。" : LB533.Text = "XXXXX."
  1166. ElseIf LB534.Text = "" Then : LB534.Text = "X、" : LB535.Text = "XXXXX。" : LB536.Text = "XXXXX."
  1167. ElseIf LB537.Text = "" Then : LB537.Text = "X、" : LB538.Text = "XXXXX。" : LB539.Text = "XXXXX."
  1168. ElseIf LB540.Text = "" Then : LB540.Text = "X、" : LB541.Text = "XXXXX。" : LB542.Text = "XXXXX."
  1169. ElseIf LB543.Text = "" Then : LB543.Text = "X、" : LB544.Text = "XXXXX。" : LB545.Text = "XXXXX."
  1170. ElseIf LB546.Text = "" Then : LB546.Text = "X、" : LB547.Text = "XXXXX。" : LB548.Text = "XXXXX."
  1171. ElseIf LB549.Text = "" Then : LB549.Text = "X、" : LB550.Text = "XXXXX。" : LB551.Text = "XXXXX."
  1172. ElseIf LB552.Text = "" Then : LB552.Text = "X、" : LB553.Text = "XXXXX。" : LB554.Text = "XXXXX."
  1173. ElseIf LB555.Text = "" Then : LB555.Text = "X、" : LB556.Text = "XXXXX。" : LB557.Text = "XXXXX."
  1174. ElseIf LB558.Text = "" Then : LB558.Text = "X、" : LB559.Text = "XXXXX。" : LB560.Text = "XXXXX."
  1175. ElseIf LB561.Text = "" Then : LB561.Text = "X、" : LB562.Text = "XXXXX。" : LB563.Text = "XXXXX."
  1176. ElseIf LB564.Text = "" Then : LB564.Text = "X、" : LB565.Text = "XXXXX。" : LB566.Text = "XXXXX."
  1177. Else : MsgBox(SS)
  1178. End If
  1179. ElseIf 翻頁_nud.Value = 9 Then
  1180. '---------------------------------------第9頁-------------------------------------------------------------------------------------
  1181. If LB567.Text = "" Then : LB567.Text = "第X條、XXXX" : LB568.Text = "Article X (XXX) XXXXXXXXXX"
  1182. LB569.Text = "__________________________________________________________________________________________________________________________________________________________________________________"
  1183. ElseIf LB570.Text = "" Then : LB570.Text = "X、" : LB103.Text = "XXXXX。" : LB104.Text = "XXXXX."
  1184. ElseIf LB571.Text = "" Then : LB571.Text = "X、" : LB105.Text = "XXXXX。" : LB106.Text = "XXXXX."
  1185. ElseIf LB572.Text = "" Then : LB572.Text = "X、" : LB107.Text = "XXXXX。" : LB108.Text = "XXXXX."
  1186. ElseIf LB573.Text = "" Then : LB573.Text = "X、" : LB109.Text = "XXXXX。" : LB110.Text = "XXXXX."
  1187. ElseIf LB574.Text = "" Then : LB574.Text = "X、" : LB111.Text = "XXXXX。" : LB112.Text = "XXXXX."
  1188. ElseIf LB575.Text = "" Then : LB575.Text = "X、" : LB113.Text = "XXXXX。" : LB114.Text = "XXXXX."
  1189. ElseIf LB576.Text = "" Then : LB576.Text = "X、" : LB577.Text = "XXXXX。" : LB578.Text = "XXXXX."
  1190. ElseIf LB579.Text = "" Then : LB579.Text = "X、" : LB580.Text = "XXXXX。" : LB581.Text = "XXXXX."
  1191. ElseIf LB582.Text = "" Then : LB582.Text = "X、" : LB583.Text = "XXXXX。" : LB584.Text = "XXXXX."
  1192. ElseIf LB585.Text = "" Then : LB585.Text = "X、" : LB586.Text = "XXXXX。" : LB587.Text = "XXXXX."
  1193. ElseIf LB588.Text = "" Then : LB588.Text = "X、" : LB589.Text = "XXXXX。" : LB590.Text = "XXXXX."
  1194. ElseIf LB591.Text = "" Then : LB591.Text = "X、" : LB592.Text = "XXXXX。" : LB593.Text = "XXXXX."
  1195. ElseIf LB594.Text = "" Then : LB594.Text = "X、" : LB595.Text = "XXXXX。" : LB596.Text = "XXXXX."
  1196. ElseIf LB597.Text = "" Then : LB597.Text = "X、" : LB598.Text = "XXXXX。" : LB599.Text = "XXXXX."
  1197. Else : MsgBox(SS)
  1198. End If
  1199. ElseIf 翻頁_nud.Value = 8 Then
  1200. '---------------------------------------第8頁-------------------------------------------------------------------------------------
  1201. If LB600.Text = "" Then : LB600.Text = "第X條、XXXX" : LB601.Text = "Article X (XXX) XXXXXXXXXX"
  1202. LB602.Text = "__________________________________________________________________________________________________________________________________________________________________________________"
  1203. ElseIf LB603.Text = "" Then : LB603.Text = "X、" : LB604.Text = "XXXXX。" : LB605.Text = "XXXXX."
  1204. ElseIf LB606.Text = "" Then : LB606.Text = "X、" : LB607.Text = "XXXXX。" : LB608.Text = "XXXXX."
  1205. ElseIf LB609.Text = "" Then : LB609.Text = "X、" : LB610.Text = "XXXXX。" : LB611.Text = "XXXXX."
  1206. ElseIf LB612.Text = "" Then : LB612.Text = "X、" : LB613.Text = "XXXXX。" : LB614.Text = "XXXXX."
  1207. ElseIf LB615.Text = "" Then : LB615.Text = "X、" : LB616.Text = "XXXXX。" : LB617.Text = "XXXXX."
  1208. ElseIf LB618.Text = "" Then : LB618.Text = "X、" : LB619.Text = "XXXXX。" : LB620.Text = "XXXXX."
  1209. ElseIf LB621.Text = "" Then : LB621.Text = "X、" : LB622.Text = "XXXXX。" : LB623.Text = "XXXXX."
  1210. ElseIf LB624.Text = "" Then : LB624.Text = "X、" : LB625.Text = "XXXXX。" : LB626.Text = "XXXXX."
  1211. ElseIf LB627.Text = "" Then : LB627.Text = "X、" : LB628.Text = "XXXXX。" : LB629.Text = "XXXXX."
  1212. ElseIf LB630.Text = "" Then : LB630.Text = "X、" : LB631.Text = "XXXXX。" : LB632.Text = "XXXXX."
  1213. ElseIf LB633.Text = "" Then : LB633.Text = "X、" : LB634.Text = "XXXXX。" : LB635.Text = "XXXXX."
  1214. ElseIf LB636.Text = "" Then : LB636.Text = "X、" : LB637.Text = "XXXXX。" : LB638.Text = "XXXXX."
  1215. ElseIf LB639.Text = "" Then : LB639.Text = "X、" : LB640.Text = "XXXXX。" : LB641.Text = "XXXXX."
  1216. ElseIf LB642.Text = "" Then : LB642.Text = "X、" : LB643.Text = "XXXXX。" : LB644.Text = "XXXXX."
  1217. Else : MsgBox(SS)
  1218. End If
  1219. ElseIf 翻頁_nud.Value = 7 Then
  1220. '---------------------------------------第7頁-------------------------------------------------------------------------------------
  1221. If LB648.Text = "" Then : LB648.Text = "X、" : LB649.Text = "XXXXX。" : LB650.Text = "XXXXX."
  1222. ElseIf LB651.Text = "" Then : LB651.Text = "X、" : LB652.Text = "XXXXX。" : LB653.Text = "XXXXX."
  1223. ElseIf LB654.Text = "" Then : LB654.Text = "X、" : LB655.Text = "XXXXX。" : LB656.Text = "XXXXX."
  1224. ElseIf LB657.Text = "" Then : LB657.Text = "X、" : LB658.Text = "XXXXX。" : LB659.Text = "XXXXX."
  1225. ElseIf LB660.Text = "" Then : LB660.Text = "X、" : LB661.Text = "XXXXX。" : LB662.Text = "XXXXX."
  1226. ElseIf LB663.Text = "" Then : LB663.Text = "X、" : LB664.Text = "XXXXX。" : LB665.Text = "XXXXX."
  1227. ElseIf LB666.Text = "" Then : LB666.Text = "X、" : LB667.Text = "XXXXX。" : LB668.Text = "XXXXX."
  1228. ElseIf LB669.Text = "" Then : LB669.Text = "X、" : LB670.Text = "XXXXX。" : LB671.Text = "XXXXX."
  1229. ElseIf LB672.Text = "" Then : LB672.Text = "X、" : LB673.Text = "XXXXX。" : LB674.Text = "XXXXX."
  1230. ElseIf LB675.Text = "" Then : LB675.Text = "X、" : LB676.Text = "XXXXX。" : LB677.Text = "XXXXX."
  1231. ElseIf LB678.Text = "" Then : LB678.Text = "X、" : LB679.Text = "XXXXX。" : LB680.Text = "XXXXX."
  1232. ElseIf LB681.Text = "" Then : LB681.Text = "X、" : LB682.Text = "XXXXX。" : LB683.Text = "XXXXX."
  1233. Else : MsgBox(SS)
  1234. End If
  1235. ElseIf 翻頁_nud.Value = 6 Then
  1236. '---------------------------------------第6頁-------------------------------------------------------------------------------------
  1237. If LB684.Text = "" Then : LB684.Text = "第X條、XXXX" : LB685.Text = "Article X (XXX) XXXXXXXXXX"
  1238. LB686.Text = "__________________________________________________________________________________________________________________________________________________________________________________"
  1239. ElseIf LB687.Text = "" Then : LB687.Text = "X、" : LB37.Text = "XXXXX。" : LB38.Text = "XXXXX."
  1240. ElseIf LB688.Text = "" Then : LB688.Text = "X、" : LB86.Text = "XXXXX。" : LB87.Text = "XXXXX."
  1241. ElseIf LB689.Text = "" Then : LB689.Text = "X、" : LB88.Text = "XXXXX。" : LB89.Text = "XXXXX."
  1242. ElseIf LB690.Text = "" Then : LB690.Text = "X、" : LB90.Text = "XXXXX。" : LB91.Text = "XXXXX."
  1243. ElseIf LB691.Text = "" Then : LB691.Text = "X、" : LB92.Text = "XXXXX。" : LB93.Text = "XXXXX."
  1244. ElseIf LB692.Text = "" Then : LB692.Text = "X、" : LB693.Text = "XXXXX。" : LB694.Text = "XXXXX."
  1245. ElseIf LB695.Text = "" Then : LB695.Text = "X、" : LB696.Text = "XXXXX。" : LB697.Text = "XXXXX."
  1246. ElseIf LB698.Text = "" Then : LB698.Text = "X、" : LB699.Text = "XXXXX。" : LB700.Text = "XXXXX."
  1247. ElseIf LB701.Text = "" Then : LB701.Text = "X、" : LB702.Text = "XXXXX。" : LB703.Text = "XXXXX."
  1248. ElseIf LB704.Text = "" Then : LB704.Text = "X、" : LB705.Text = "XXXXX。" : LB706.Text = "XXXXX."
  1249. ElseIf LB707.Text = "" Then : LB707.Text = "X、" : LB708.Text = "XXXXX。" : LB709.Text = "XXXXX."
  1250. ElseIf LB710.Text = "" Then : LB710.Text = "X、" : LB711.Text = "XXXXX。" : LB712.Text = "XXXXX."
  1251. ElseIf LB713.Text = "" Then : LB713.Text = "X、" : LB714.Text = "XXXXX。" : LB715.Text = "XXXXX."
  1252. ElseIf LB716.Text = "" Then : LB716.Text = "X、" : LB717.Text = "XXXXX。" : LB718.Text = "XXXXX."
  1253. Else : MsgBox(SS)
  1254. End If
  1255. ElseIf 翻頁_nud.Value = 4 Then
  1256. '---------------------------------------第4頁-------------------------------------------------------------------------------------
  1257. If LB719.Text = "" Then : LB719.Text = "X、" : LB31.Text = "XXXXX。" : LB32.Text = "XXXXX."
  1258. ElseIf LB720.Text = "" Then : LB720.Text = "X、" : LB35.Text = "XXXXX。" : LB36.Text = "XXXXX."
  1259. ElseIf LB721.Text = "" Then : LB721.Text = "X、" : LB722.Text = "XXXXX。" : LB723.Text = "XXXXX."
  1260. ElseIf LB724.Text = "" Then : LB724.Text = "X、" : LB725.Text = "XXXXX。" : LB726.Text = "XXXXX."
  1261. ElseIf LB727.Text = "" Then : LB727.Text = "X、" : LB728.Text = "XXXXX。" : LB729.Text = "XXXXX."
  1262. ElseIf LB730.Text = "" Then : LB730.Text = "X、" : LB731.Text = "XXXXX。" : LB732.Text = "XXXXX."
  1263. ElseIf LB733.Text = "" Then : LB733.Text = "X、" : LB734.Text = "XXXXX。" : LB735.Text = "XXXXX."
  1264. ElseIf LB736.Text = "" Then : LB736.Text = "X、" : LB737.Text = "XXXXX。" : LB738.Text = "XXXXX."
  1265. ElseIf LB739.Text = "" Then : LB739.Text = "X、" : LB740.Text = "XXXXX。" : LB741.Text = "XXXXX."
  1266. Else : MsgBox(SS)
  1267. End If
  1268. ElseIf 翻頁_nud.Value = 3 Then
  1269. '---------------------------------------第3頁-------------------------------------------------------------------------------------
  1270. If LB742.Text = "" Then : LB742.Text = "X、" : LB7.Text = "XXXXX。" : LB8.Text = "XXXXX."
  1271. ElseIf LB743.Text = "" Then : LB743.Text = "X、" : LB9.Text = "XXXXX。" : LB10.Text = "XXXXX."
  1272. ElseIf LB744.Text = "" Then : LB744.Text = "X、" : LB11.Text = "XXXXX。" : LB12.Text = "XXXXX."
  1273. ElseIf LB745.Text = "" Then : LB745.Text = "X、" : LB13.Text = "XXXXX。" : LB14.Text = "XXXXX."
  1274. ElseIf LB746.Text = "" Then : LB746.Text = "X、" : LB15.Text = "XXXXX。" : LB16.Text = "XXXXX."
  1275. ElseIf LB747.Text = "" Then : LB747.Text = "X、" : LB17.Text = "XXXXX。" : LB18.Text = "XXXXX."
  1276. ElseIf LB748.Text = "" Then : LB748.Text = "X、" : LB19.Text = "XXXXX。" : LB20.Text = "XXXXX."
  1277. ElseIf LB749.Text = "" Then : LB749.Text = "X、" : LB750.Text = "XXXXX。" : LB751.Text = "XXXXX."
  1278. ElseIf LB752.Text = "" Then : LB752.Text = "X、" : LB753.Text = "XXXXX。" : LB754.Text = "XXXXX."
  1279. ElseIf LB755.Text = "" Then : LB755.Text = "X、" : LB756.Text = "XXXXX。" : LB757.Text = "XXXXX."
  1280. Else : MsgBox(SS)
  1281. End If
  1282. End If
  1283. End Sub
  1284. Private Sub 去除_bt_Click(sender As Object, e As EventArgs) Handles 去除_bt.Click
  1285. Dim SS As String
  1286. If 系統語言 = "繁體中文" Then : SS = "整頁都空白了!!" : Else : SS = "Seluruh halaman kosong!!" : End If
  1287. If 翻頁_nud.Value = Val(最末頁_cb.Text) Then
  1288. '---------------------------------------最末頁-------------------------------------------------------------------------------------
  1289. If 系統語言 = "繁體中文" Then : MsgBox("最末頁無法去除空白條文!!") : Else : MsgBox("Tidak dapat menghapus coretan kosong di halaman terakhir!!") : End If
  1290. ElseIf 翻頁_nud.Value = Val(最末頁_cb.Text) - 1 Then
  1291. '---------------------------------------第十一章-------------------------------------------------------------------------------------
  1292. If LB184.Text <> "" Then : LB186.Text = "" : LB185.Text = "" : LB184.Text = "" : ElseIf LB181.Text <> "" Then : LB183.Text = "" : LB182.Text = "" : LB181.Text = ""
  1293. ElseIf LB178.Text <> "" Then : LB178.Text = "" : LB179.Text = "" : LB180.Text = "" : ElseIf LB175.Text <> "" Then : LB175.Text = "" : LB176.Text = "" : LB177.Text = ""
  1294. ElseIf LB172.Text <> "" Then : LB172.Text = "" : LB173.Text = "" : LB174.Text = "" : ElseIf LB169.Text <> "" Then : LB169.Text = "" : LB170.Text = "" : LB171.Text = ""
  1295. ElseIf LB166.Text <> "" Then : LB166.Text = "" : LB167.Text = "" : LB168.Text = "" : Else
  1296. If 系統語言 = "繁體中文" Then : MsgBox("本頁空白條文最多去除到第4條!!") : Else : MsgBox("Penghapusan klausa kosong pada halaman ini hanya dapat mencapai klausa 4 !!") : End If
  1297. End If
  1298. ElseIf 翻頁_nud.Value = Val(最末頁_cb.Text) - 2 Then
  1299. '---------------------------------------第十章-------------------------------------------------------------------------------------
  1300. If LB223.Text <> "" Then : LB223.Text = "" : LB224.Text = "" : LB225.Text = "" : ElseIf LB220.Text <> "" Then : LB220.Text = "" : LB221.Text = "" : LB222.Text = ""
  1301. ElseIf LB217.Text <> "" Then : LB217.Text = "" : LB218.Text = "" : LB219.Text = "" : ElseIf LB214.Text <> "" Then : LB214.Text = "" : LB215.Text = "" : LB216.Text = ""
  1302. ElseIf LB211.Text <> "" Then : LB211.Text = "" : LB212.Text = "" : LB213.Text = "" : ElseIf LB208.Text <> "" Then : LB208.Text = "" : LB209.Text = "" : LB210.Text = ""
  1303. ElseIf LB205.Text <> "" Then : LB205.Text = "" : LB206.Text = "" : LB207.Text = "" : ElseIf LB202.Text <> "" Then : LB202.Text = "" : LB203.Text = "" : LB204.Text = ""
  1304. ElseIf LB199.Text <> "" Then : LB199.Text = "" : LB200.Text = "" : LB201.Text = "" : ElseIf LB196.Text <> "" Then : LB196.Text = "" : LB197.Text = "" : LB198.Text = ""
  1305. ElseIf LB193.Text <> "" Then : LB193.Text = "" : LB194.Text = "" : LB195.Text = "" : ElseIf LB190.Text <> "" Then : LB190.Text = "" : LB191.Text = "" : LB192.Text = ""
  1306. ElseIf LB227.Text <> "" Then : LB227.Text = "" : LB139.Text = "" : LB140.Text = "" : ElseIf LB226.Text <> "" Then : LB226.Text = "" : LB137.Text = "" : LB138.Text = ""
  1307. ElseIf LB187.Text <> "" Then : LB187.Text = "" : LB188.Text = "" : LB189.Text = "" : Else : MsgBox(SS) : End If
  1308. ElseIf 翻頁_nud.Value = Val(最末頁_cb.Text) - 3 Then
  1309. '---------------------------------------第九章-------------------------------------------------------------------------------------
  1310. If LB264.Text <> "" Then : LB264.Text = "" : LB265.Text = "" : LB266.Text = "" : ElseIf LB261.Text <> "" Then : LB261.Text = "" : LB262.Text = "" : LB263.Text = ""
  1311. ElseIf LB258.Text <> "" Then : LB258.Text = "" : LB259.Text = "" : LB260.Text = "" : ElseIf LB255.Text <> "" Then : LB255.Text = "" : LB256.Text = "" : LB257.Text = ""
  1312. ElseIf LB252.Text <> "" Then : LB252.Text = "" : LB253.Text = "" : LB254.Text = "" : ElseIf LB249.Text <> "" Then : LB249.Text = "" : LB250.Text = "" : LB251.Text = ""
  1313. ElseIf LB246.Text <> "" Then : LB246.Text = "" : LB247.Text = "" : LB248.Text = "" : ElseIf LB243.Text <> "" Then : LB243.Text = "" : LB244.Text = "" : LB245.Text = ""
  1314. ElseIf LB240.Text <> "" Then : LB240.Text = "" : LB241.Text = "" : LB242.Text = "" : ElseIf LB237.Text <> "" Then : LB237.Text = "" : LB238.Text = "" : LB239.Text = ""
  1315. ElseIf LB234.Text <> "" Then : LB234.Text = "" : LB235.Text = "" : LB236.Text = "" : ElseIf LB233.Text <> "" Then : LB233.Text = "" : LB135.Text = "" : LB136.Text = ""
  1316. ElseIf LB232.Text <> "" Then : LB232.Text = "" : LB133.Text = "" : LB134.Text = "" : ElseIf LB231.Text <> "" Then : LB231.Text = "" : LB131.Text = "" : LB132.Text = ""
  1317. ElseIf LB228.Text <> "" Then : LB228.Text = "" : LB229.Text = "" : LB230.Text = "" : Else : MsgBox(SS) : End If
  1318. ElseIf 翻頁_nud.Value = Val(最末頁_cb.Text) - 4 Then
  1319. '---------------------------------------第八章-------------------------------------------------------------------------------------
  1320. If LB300.Text <> "" Then : LB300.Text = "" : LB301.Text = "" : LB302.Text = "" : ElseIf LB297.Text <> "" Then : LB297.Text = "" : LB298.Text = "" : LB299.Text = ""
  1321. ElseIf LB294.Text <> "" Then : LB294.Text = "" : LB295.Text = "" : LB296.Text = "" : ElseIf LB291.Text <> "" Then : LB291.Text = "" : LB292.Text = "" : LB293.Text = ""
  1322. ElseIf LB288.Text <> "" Then : LB288.Text = "" : LB289.Text = "" : LB290.Text = "" : ElseIf LB285.Text <> "" Then : LB285.Text = "" : LB286.Text = "" : LB287.Text = ""
  1323. ElseIf LB282.Text <> "" Then : LB282.Text = "" : LB283.Text = "" : LB284.Text = "" : ElseIf LB279.Text <> "" Then : LB279.Text = "" : LB280.Text = "" : LB281.Text = ""
  1324. ElseIf LB276.Text <> "" Then : LB276.Text = "" : LB277.Text = "" : LB278.Text = "" : Else
  1325. If 系統語言 = "繁體中文" Then : MsgBox("本頁空白條文最多去除到第2條!!") : Else : MsgBox("Penghapusan klausa kosong pada halaman ini hanya dapat mencapai klausa 2 !!") : End If
  1326. End If
  1327. ElseIf Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15 Then
  1328. '---------------------------------------第15頁-------------------------------------------------------------------------------------
  1329. If LB345.Text <> "" Then : LB345.Text = "" : LB346.Text = "" : LB347.Text = "" : ElseIf LB342.Text <> "" Then : LB342.Text = "" : LB343.Text = "" : LB344.Text = ""
  1330. ElseIf LB339.Text <> "" Then : LB339.Text = "" : LB340.Text = "" : LB341.Text = "" : ElseIf LB336.Text <> "" Then : LB336.Text = "" : LB337.Text = "" : LB338.Text = ""
  1331. ElseIf LB333.Text <> "" Then : LB333.Text = "" : LB334.Text = "" : LB335.Text = "" : ElseIf LB330.Text <> "" Then : LB330.Text = "" : LB331.Text = "" : LB332.Text = ""
  1332. ElseIf LB327.Text <> "" Then : LB327.Text = "" : LB328.Text = "" : LB329.Text = "" : ElseIf LB324.Text <> "" Then : LB324.Text = "" : LB325.Text = "" : LB326.Text = ""
  1333. ElseIf LB321.Text <> "" Then : LB321.Text = "" : LB322.Text = "" : LB323.Text = "" : ElseIf LB318.Text <> "" Then : LB318.Text = "" : LB319.Text = "" : LB320.Text = ""
  1334. ElseIf LB315.Text <> "" Then : LB315.Text = "" : LB316.Text = "" : LB317.Text = "" : ElseIf LB312.Text <> "" Then : LB312.Text = "" : LB313.Text = "" : LB314.Text = ""
  1335. ElseIf LB309.Text <> "" Then : LB309.Text = "" : LB310.Text = "" : LB311.Text = "" : ElseIf LB306.Text <> "" Then : LB306.Text = "" : LB307.Text = "" : LB308.Text = ""
  1336. ElseIf LB303.Text <> "" Then : LB303.Text = "" : LB304.Text = "" : LB305.Text = "" : Else : MsgBox(SS) : End If
  1337. ElseIf Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14 Then
  1338. '---------------------------------------第14頁-------------------------------------------------------------------------------------
  1339. If LB390.Text <> "" Then : LB390.Text = "" : LB391.Text = "" : LB392.Text = "" : ElseIf LB387.Text <> "" Then : LB387.Text = "" : LB388.Text = "" : LB389.Text = ""
  1340. ElseIf LB384.Text <> "" Then : LB384.Text = "" : LB385.Text = "" : LB386.Text = "" : ElseIf LB381.Text <> "" Then : LB381.Text = "" : LB382.Text = "" : LB383.Text = ""
  1341. ElseIf LB378.Text <> "" Then : LB378.Text = "" : LB379.Text = "" : LB380.Text = "" : ElseIf LB375.Text <> "" Then : LB375.Text = "" : LB376.Text = "" : LB377.Text = ""
  1342. ElseIf LB372.Text <> "" Then : LB372.Text = "" : LB373.Text = "" : LB374.Text = "" : ElseIf LB369.Text <> "" Then : LB369.Text = "" : LB370.Text = "" : LB371.Text = ""
  1343. ElseIf LB366.Text <> "" Then : LB366.Text = "" : LB367.Text = "" : LB368.Text = "" : ElseIf LB363.Text <> "" Then : LB363.Text = "" : LB364.Text = "" : LB365.Text = ""
  1344. ElseIf LB360.Text <> "" Then : LB360.Text = "" : LB361.Text = "" : LB362.Text = "" : ElseIf LB357.Text <> "" Then : LB357.Text = "" : LB358.Text = "" : LB359.Text = ""
  1345. ElseIf LB354.Text <> "" Then : LB354.Text = "" : LB355.Text = "" : LB356.Text = "" : ElseIf LB351.Text <> "" Then : LB351.Text = "" : LB352.Text = "" : LB353.Text = ""
  1346. ElseIf LB348.Text <> "" Then : LB348.Text = "" : LB349.Text = "" : LB350.Text = "" : Else : MsgBox(SS) : End If
  1347. ElseIf Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13 Then
  1348. '---------------------------------------第13頁-------------------------------------------------------------------------------------
  1349. If LB435.Text <> "" Then : LB435.Text = "" : LB436.Text = "" : LB437.Text = "" : ElseIf LB432.Text <> "" Then : LB432.Text = "" : LB433.Text = "" : LB434.Text = ""
  1350. ElseIf LB429.Text <> "" Then : LB429.Text = "" : LB430.Text = "" : LB431.Text = "" : ElseIf LB426.Text <> "" Then : LB426.Text = "" : LB427.Text = "" : LB428.Text = ""
  1351. ElseIf LB423.Text <> "" Then : LB423.Text = "" : LB424.Text = "" : LB425.Text = "" : ElseIf LB420.Text <> "" Then : LB420.Text = "" : LB421.Text = "" : LB422.Text = ""
  1352. ElseIf LB417.Text <> "" Then : LB417.Text = "" : LB418.Text = "" : LB419.Text = "" : ElseIf LB414.Text <> "" Then : LB414.Text = "" : LB415.Text = "" : LB416.Text = ""
  1353. ElseIf LB411.Text <> "" Then : LB411.Text = "" : LB412.Text = "" : LB413.Text = "" : ElseIf LB408.Text <> "" Then : LB408.Text = "" : LB409.Text = "" : LB410.Text = ""
  1354. ElseIf LB405.Text <> "" Then : LB405.Text = "" : LB406.Text = "" : LB407.Text = "" : ElseIf LB402.Text <> "" Then : LB402.Text = "" : LB403.Text = "" : LB404.Text = ""
  1355. ElseIf LB399.Text <> "" Then : LB399.Text = "" : LB400.Text = "" : LB401.Text = "" : ElseIf LB396.Text <> "" Then : LB396.Text = "" : LB397.Text = "" : LB398.Text = ""
  1356. ElseIf LB393.Text <> "" Then : LB393.Text = "" : LB394.Text = "" : LB395.Text = "" : Else : MsgBox(SS) : End If
  1357. ElseIf Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12 Then
  1358. '---------------------------------------第12頁-------------------------------------------------------------------------------------
  1359. If LB480.Text <> "" Then : LB480.Text = "" : LB481.Text = "" : LB482.Text = "" : ElseIf LB477.Text <> "" Then : LB477.Text = "" : LB478.Text = "" : LB479.Text = ""
  1360. ElseIf LB474.Text <> "" Then : LB474.Text = "" : LB475.Text = "" : LB476.Text = "" : ElseIf LB471.Text <> "" Then : LB471.Text = "" : LB472.Text = "" : LB473.Text = ""
  1361. ElseIf LB468.Text <> "" Then : LB468.Text = "" : LB469.Text = "" : LB470.Text = "" : ElseIf LB465.Text <> "" Then : LB465.Text = "" : LB466.Text = "" : LB467.Text = ""
  1362. ElseIf LB462.Text <> "" Then : LB462.Text = "" : LB463.Text = "" : LB464.Text = "" : ElseIf LB459.Text <> "" Then : LB459.Text = "" : LB460.Text = "" : LB461.Text = ""
  1363. ElseIf LB456.Text <> "" Then : LB456.Text = "" : LB457.Text = "" : LB458.Text = "" : ElseIf LB453.Text <> "" Then : LB453.Text = "" : LB454.Text = "" : LB455.Text = ""
  1364. ElseIf LB450.Text <> "" Then : LB450.Text = "" : LB451.Text = "" : LB452.Text = "" : ElseIf LB447.Text <> "" Then : LB447.Text = "" : LB448.Text = "" : LB449.Text = ""
  1365. ElseIf LB444.Text <> "" Then : LB444.Text = "" : LB445.Text = "" : LB446.Text = "" : ElseIf LB441.Text <> "" Then : LB441.Text = "" : LB442.Text = "" : LB443.Text = ""
  1366. ElseIf LB438.Text <> "" Then : LB438.Text = "" : LB439.Text = "" : LB440.Text = "" : Else : MsgBox(SS) : End If
  1367. ElseIf 翻頁_nud.Value = 11 Then
  1368. '---------------------------------------第11頁-------------------------------------------------------------------------------------
  1369. If LB521.Text <> "" Then : LB521.Text = "" : LB522.Text = "" : LB523.Text = "" : ElseIf LB518.Text <> "" Then : LB518.Text = "" : LB519.Text = "" : LB520.Text = ""
  1370. ElseIf LB515.Text <> "" Then : LB515.Text = "" : LB516.Text = "" : LB517.Text = "" : ElseIf LB512.Text <> "" Then : LB512.Text = "" : LB513.Text = "" : LB514.Text = ""
  1371. ElseIf LB509.Text <> "" Then : LB509.Text = "" : LB510.Text = "" : LB511.Text = "" : ElseIf LB506.Text <> "" Then : LB506.Text = "" : LB507.Text = "" : LB508.Text = ""
  1372. ElseIf LB503.Text <> "" Then : LB503.Text = "" : LB504.Text = "" : LB505.Text = "" : ElseIf LB500.Text <> "" Then : LB500.Text = "" : LB501.Text = "" : LB502.Text = ""
  1373. ElseIf LB497.Text <> "" Then : LB497.Text = "" : LB498.Text = "" : LB499.Text = "" : ElseIf LB494.Text <> "" Then : LB494.Text = "" : LB495.Text = "" : LB496.Text = ""
  1374. ElseIf LB491.Text <> "" Then : LB491.Text = "" : LB492.Text = "" : LB493.Text = "" : ElseIf LB488.Text <> "" Then : LB488.Text = "" : LB489.Text = "" : LB490.Text = ""
  1375. ElseIf LB487.Text <> "" Then : LB487.Text = "" : LB119.Text = "" : LB120.Text = "" : ElseIf LB486.Text <> "" Then : LB486.Text = "" : LB117.Text = "" : LB118.Text = ""
  1376. ElseIf LB483.Text <> "" Then : LB483.Text = "" : LB484.Text = "" : LB485.Text = "" : Else : MsgBox(SS) : End If
  1377. ElseIf 翻頁_nud.Value = 10 Then
  1378. '---------------------------------------第10頁-------------------------------------------------------------------------------------
  1379. If LB564.Text <> "" Then : LB564.Text = "" : LB565.Text = "" : LB566.Text = "" : ElseIf LB561.Text <> "" Then : LB561.Text = "" : LB562.Text = "" : LB563.Text = ""
  1380. ElseIf LB558.Text <> "" Then : LB558.Text = "" : LB559.Text = "" : LB560.Text = "" : ElseIf LB555.Text <> "" Then : LB555.Text = "" : LB556.Text = "" : LB557.Text = ""
  1381. ElseIf LB552.Text <> "" Then : LB552.Text = "" : LB553.Text = "" : LB554.Text = "" : ElseIf LB549.Text <> "" Then : LB549.Text = "" : LB550.Text = "" : LB551.Text = ""
  1382. ElseIf LB546.Text <> "" Then : LB546.Text = "" : LB547.Text = "" : LB548.Text = "" : ElseIf LB543.Text <> "" Then : LB543.Text = "" : LB544.Text = "" : LB545.Text = ""
  1383. ElseIf LB540.Text <> "" Then : LB540.Text = "" : LB541.Text = "" : LB542.Text = "" : ElseIf LB537.Text <> "" Then : LB537.Text = "" : LB538.Text = "" : LB539.Text = ""
  1384. ElseIf LB534.Text <> "" Then : LB534.Text = "" : LB535.Text = "" : LB536.Text = "" : ElseIf LB531.Text <> "" Then : LB531.Text = "" : LB532.Text = "" : LB533.Text = ""
  1385. ElseIf LB528.Text <> "" Then : LB528.Text = "" : LB529.Text = "" : LB530.Text = "" : ElseIf LB527.Text <> "" Then : LB527.Text = "" : LB115.Text = "" : LB116.Text = ""
  1386. ElseIf LB524.Text <> "" Then : LB524.Text = "" : LB525.Text = "" : LB526.Text = "" : Else : MsgBox(SS) : End If
  1387. ElseIf 翻頁_nud.Value = 9 Then
  1388. '---------------------------------------第9頁-------------------------------------------------------------------------------------
  1389. If LB597.Text <> "" Then : LB597.Text = "" : LB598.Text = "" : LB599.Text = "" : ElseIf LB594.Text <> "" Then : LB594.Text = "" : LB595.Text = "" : LB596.Text = ""
  1390. ElseIf LB591.Text <> "" Then : LB591.Text = "" : LB592.Text = "" : LB593.Text = "" : ElseIf LB588.Text <> "" Then : LB588.Text = "" : LB589.Text = "" : LB590.Text = ""
  1391. ElseIf LB585.Text <> "" Then : LB585.Text = "" : LB586.Text = "" : LB587.Text = "" : ElseIf LB582.Text <> "" Then : LB582.Text = "" : LB583.Text = "" : LB584.Text = ""
  1392. ElseIf LB579.Text <> "" Then : LB579.Text = "" : LB580.Text = "" : LB581.Text = "" : ElseIf LB576.Text <> "" Then : LB576.Text = "" : LB577.Text = "" : LB578.Text = ""
  1393. ElseIf LB575.Text <> "" Then : LB575.Text = "" : LB113.Text = "" : LB114.Text = "" : ElseIf LB574.Text <> "" Then : LB574.Text = "" : LB111.Text = "" : LB112.Text = ""
  1394. ElseIf LB573.Text <> "" Then : LB573.Text = "" : LB109.Text = "" : LB110.Text = "" : ElseIf LB572.Text <> "" Then : LB572.Text = "" : LB107.Text = "" : LB108.Text = ""
  1395. ElseIf LB571.Text <> "" Then : LB571.Text = "" : LB105.Text = "" : LB106.Text = "" : ElseIf LB570.Text <> "" Then : LB570.Text = "" : LB103.Text = "" : LB104.Text = ""
  1396. ElseIf LB567.Text <> "" Then : LB567.Text = "" : LB568.Text = "" : LB569.Text = "" : Else : MsgBox(SS) : End If
  1397. ElseIf 翻頁_nud.Value = 8 Then
  1398. '---------------------------------------第8頁-------------------------------------------------------------------------------------
  1399. If LB642.Text <> "" Then : LB642.Text = "" : LB643.Text = "" : LB644.Text = "" : ElseIf LB639.Text <> "" Then : LB639.Text = "" : LB640.Text = "" : LB641.Text = ""
  1400. ElseIf LB636.Text <> "" Then : LB636.Text = "" : LB637.Text = "" : LB638.Text = "" : ElseIf LB633.Text <> "" Then : LB633.Text = "" : LB634.Text = "" : LB635.Text = ""
  1401. ElseIf LB630.Text <> "" Then : LB630.Text = "" : LB631.Text = "" : LB632.Text = "" : ElseIf LB627.Text <> "" Then : LB627.Text = "" : LB628.Text = "" : LB629.Text = ""
  1402. ElseIf LB624.Text <> "" Then : LB624.Text = "" : LB625.Text = "" : LB626.Text = "" : ElseIf LB621.Text <> "" Then : LB621.Text = "" : LB622.Text = "" : LB623.Text = ""
  1403. ElseIf LB618.Text <> "" Then : LB618.Text = "" : LB619.Text = "" : LB620.Text = "" : ElseIf LB615.Text <> "" Then : LB615.Text = "" : LB616.Text = "" : LB617.Text = ""
  1404. ElseIf LB612.Text <> "" Then : LB612.Text = "" : LB613.Text = "" : LB614.Text = "" : ElseIf LB609.Text <> "" Then : LB609.Text = "" : LB610.Text = "" : LB611.Text = ""
  1405. ElseIf LB606.Text <> "" Then : LB606.Text = "" : LB607.Text = "" : LB608.Text = "" : ElseIf LB603.Text <> "" Then : LB603.Text = "" : LB604.Text = "" : LB605.Text = ""
  1406. ElseIf LB600.Text <> "" Then : LB600.Text = "" : LB601.Text = "" : LB602.Text = "" : Else : MsgBox(SS) : End If
  1407. ElseIf 翻頁_nud.Value = 7 Then
  1408. '---------------------------------------第7頁-------------------------------------------------------------------------------------
  1409. If LB681.Text <> "" Then : LB681.Text = "" : LB682.Text = "" : LB683.Text = "" : ElseIf LB678.Text <> "" Then : LB678.Text = "" : LB679.Text = "" : LB680.Text = ""
  1410. ElseIf LB675.Text <> "" Then : LB675.Text = "" : LB676.Text = "" : LB677.Text = "" : ElseIf LB672.Text <> "" Then : LB672.Text = "" : LB673.Text = "" : LB674.Text = ""
  1411. ElseIf LB669.Text <> "" Then : LB669.Text = "" : LB670.Text = "" : LB671.Text = "" : ElseIf LB666.Text <> "" Then : LB666.Text = "" : LB667.Text = "" : LB668.Text = ""
  1412. ElseIf LB663.Text <> "" Then : LB663.Text = "" : LB664.Text = "" : LB665.Text = "" : ElseIf LB660.Text <> "" Then : LB660.Text = "" : LB661.Text = "" : LB662.Text = ""
  1413. ElseIf LB657.Text <> "" Then : LB657.Text = "" : LB658.Text = "" : LB659.Text = "" : ElseIf LB654.Text <> "" Then : LB654.Text = "" : LB655.Text = "" : LB656.Text = ""
  1414. ElseIf LB651.Text <> "" Then : LB651.Text = "" : LB652.Text = "" : LB653.Text = "" : ElseIf LB648.Text <> "" Then : LB648.Text = "" : LB649.Text = "" : LB650.Text = ""
  1415. Else
  1416. If 系統語言 = "繁體中文" Then : MsgBox("本頁空白條文最多去除到第3條!!") : Else : MsgBox("Penghapusan klausa kosong pada halaman ini hanya dapat mencapai klausa 3 !!") : End If
  1417. End If
  1418. ElseIf 翻頁_nud.Value = 6 Then
  1419. '---------------------------------------第6頁-------------------------------------------------------------------------------------
  1420. If LB716.Text <> "" Then : LB716.Text = "" : LB717.Text = "" : LB718.Text = "" : ElseIf LB713.Text <> "" Then : LB713.Text = "" : LB714.Text = "" : LB715.Text = ""
  1421. ElseIf LB710.Text <> "" Then : LB710.Text = "" : LB711.Text = "" : LB712.Text = "" : ElseIf LB707.Text <> "" Then : LB707.Text = "" : LB708.Text = "" : LB709.Text = ""
  1422. ElseIf LB704.Text <> "" Then : LB704.Text = "" : LB705.Text = "" : LB706.Text = "" : ElseIf LB701.Text <> "" Then : LB701.Text = "" : LB702.Text = "" : LB703.Text = ""
  1423. ElseIf LB698.Text <> "" Then : LB698.Text = "" : LB699.Text = "" : LB700.Text = "" : ElseIf LB695.Text <> "" Then : LB695.Text = "" : LB696.Text = "" : LB697.Text = ""
  1424. ElseIf LB692.Text <> "" Then : LB692.Text = "" : LB693.Text = "" : LB694.Text = "" : ElseIf LB691.Text <> "" Then : LB691.Text = "" : LB92.Text = "" : LB93.Text = ""
  1425. ElseIf LB690.Text <> "" Then : LB690.Text = "" : LB90.Text = "" : LB91.Text = "" : ElseIf LB689.Text <> "" Then : LB689.Text = "" : LB88.Text = "" : LB89.Text = ""
  1426. ElseIf LB688.Text <> "" Then : LB688.Text = "" : LB86.Text = "" : LB87.Text = "" : ElseIf LB687.Text <> "" Then : LB687.Text = "" : LB37.Text = "" : LB38.Text = ""
  1427. ElseIf LB684.Text <> "" Then : LB684.Text = "" : LB685.Text = "" : LB686.Text = "" : Else : MsgBox(SS) : End If
  1428. ElseIf 翻頁_nud.Value = 4 Then
  1429. '---------------------------------------第4頁-------------------------------------------------------------------------------------
  1430. If LB739.Text <> "" Then : LB739.Text = "" : LB740.Text = "" : LB741.Text = "" : ElseIf LB736.Text <> "" Then : LB736.Text = "" : LB737.Text = "" : LB738.Text = ""
  1431. ElseIf LB733.Text <> "" Then : LB733.Text = "" : LB734.Text = "" : LB735.Text = "" : ElseIf LB730.Text <> "" Then : LB730.Text = "" : LB731.Text = "" : LB732.Text = ""
  1432. ElseIf LB727.Text <> "" Then : LB727.Text = "" : LB728.Text = "" : LB729.Text = "" : ElseIf LB724.Text <> "" Then : LB724.Text = "" : LB725.Text = "" : LB726.Text = ""
  1433. ElseIf LB721.Text <> "" Then : LB721.Text = "" : LB722.Text = "" : LB723.Text = "" : ElseIf LB720.Text <> "" Then : LB720.Text = "" : LB35.Text = "" : LB36.Text = ""
  1434. ElseIf LB719.Text <> "" Then : LB719.Text = "" : LB31.Text = "" : LB32.Text = "" : Else
  1435. If 系統語言 = "繁體中文" Then : MsgBox("本頁空白條文最多去除到第6條!!") : Else : MsgBox("Penghapusan klausa kosong pada halaman ini hanya dapat mencapai klausa 6 !!") : End If
  1436. End If
  1437. ElseIf 翻頁_nud.Value = 3 Then
  1438. '---------------------------------------第3頁-------------------------------------------------------------------------------------
  1439. If LB755.Text <> "" Then : LB755.Text = "" : LB756.Text = "" : LB757.Text = "" : ElseIf LB752.Text <> "" Then : LB752.Text = "" : LB753.Text = "" : LB754.Text = ""
  1440. ElseIf LB749.Text <> "" Then : LB749.Text = "" : LB750.Text = "" : LB751.Text = "" : ElseIf LB748.Text <> "" Then : LB748.Text = "" : LB19.Text = "" : LB20.Text = ""
  1441. ElseIf LB747.Text <> "" Then : LB747.Text = "" : LB17.Text = "" : LB18.Text = "" : ElseIf LB746.Text <> "" Then : LB746.Text = "" : LB15.Text = "" : LB16.Text = ""
  1442. ElseIf LB745.Text <> "" Then : LB745.Text = "" : LB13.Text = "" : LB14.Text = "" : ElseIf LB744.Text <> "" Then : LB744.Text = "" : LB11.Text = "" : LB12.Text = ""
  1443. ElseIf LB743.Text <> "" Then : LB743.Text = "" : LB9.Text = "" : LB10.Text = "" : ElseIf LB742.Text <> "" Then : LB742.Text = "" : LB7.Text = "" : LB8.Text = ""
  1444. Else
  1445. If 系統語言 = "繁體中文" Then : MsgBox("本頁空白條文最多去除到第5條!!") : Else : MsgBox("Penghapusan klausa kosong pada halaman ini hanya dapat mencapai klausa 5 !!") : End If
  1446. End If
  1447. End If
  1448. End Sub
  1449. Private Sub 查詢_bt_Click(sender As Object, e As EventArgs) Handles 查詢_bt.Click
  1450. PA = 關鍵字搜尋_tb.Text : Set_合約清單()
  1451. End Sub
  1452. Private Declare Function BitBlt Lib "gdi32.dll" Alias "BitBlt" (ByVal hdcDest As IntPtr, ByVal nXDest As Integer, ByVal nYDest As _
  1453. Integer, ByVal nWidth As Integer, ByVal nHeight As Integer, ByVal hdcSrc As IntPtr, ByVal nXSrc As Integer, ByVal nYSrc As Integer,
  1454. ByVal dwRop As System.Int32) As Long
  1455. Dim memoryImage1, memoryImage2, memoryImage3, memoryImage4, memoryImage5, memoryImage6, memoryImage7, memoryImage8, memoryImage9, memoryImage10, memoryImage11,
  1456. memoryImage12, memoryImage13, memoryImage14, memoryImage15, memoryImage16, memoryImage17, memoryImage18, memoryImage19, memoryImage20 As Bitmap
  1457. Private pageNum As Integer
  1458. Private Sub CaptureScreen1()
  1459. Dim mygraphics As Graphics = Panel1.CreateGraphics() : Dim s As Size = Me.Size : memoryImage1 = New Bitmap(Panel1.Width, Panel1.Height, mygraphics)
  1460. Dim memoryGraphics As Graphics = Graphics.FromImage(memoryImage1) : Dim dc1 As IntPtr = mygraphics.GetHdc : Dim dc2 As IntPtr = memoryGraphics.GetHdc
  1461. BitBlt(dc2, 0, 0, Me.ClientRectangle.Width, Me.ClientRectangle.Height, dc1, 0, 0, 13369376) : mygraphics.ReleaseHdc(dc1) : memoryGraphics.ReleaseHdc(dc2)
  1462. End Sub
  1463. Private Sub CaptureScreen2()
  1464. Dim mygraphics As Graphics = Panel2.CreateGraphics() : Dim s As Size = Me.Size : memoryImage2 = New Bitmap(Panel2.Width, Panel2.Height, mygraphics)
  1465. Dim memoryGraphics As Graphics = Graphics.FromImage(memoryImage2) : Dim dc1 As IntPtr = mygraphics.GetHdc : Dim dc2 As IntPtr = memoryGraphics.GetHdc
  1466. BitBlt(dc2, 0, 0, Me.ClientRectangle.Width, Me.ClientRectangle.Height, dc1, 0, 0, 13369376) : mygraphics.ReleaseHdc(dc1) : memoryGraphics.ReleaseHdc(dc2)
  1467. End Sub
  1468. Private Sub CaptureScreen3()
  1469. Dim mygraphics As Graphics = Panel3.CreateGraphics() : Dim s As Size = Me.Size : memoryImage3 = New Bitmap(Panel3.Width, Panel3.Height, mygraphics)
  1470. Dim memoryGraphics As Graphics = Graphics.FromImage(memoryImage3) : Dim dc1 As IntPtr = mygraphics.GetHdc : Dim dc2 As IntPtr = memoryGraphics.GetHdc
  1471. BitBlt(dc2, 0, 0, Me.ClientRectangle.Width, Me.ClientRectangle.Height, dc1, 0, 0, 13369376) : mygraphics.ReleaseHdc(dc1) : memoryGraphics.ReleaseHdc(dc2)
  1472. End Sub
  1473. Private Sub CaptureScreen4()
  1474. Dim mygraphics As Graphics = Panel4.CreateGraphics() : Dim s As Size = Me.Size : memoryImage4 = New Bitmap(Panel4.Width, Panel4.Height, mygraphics)
  1475. Dim memoryGraphics As Graphics = Graphics.FromImage(memoryImage4) : Dim dc1 As IntPtr = mygraphics.GetHdc : Dim dc2 As IntPtr = memoryGraphics.GetHdc
  1476. BitBlt(dc2, 0, 0, Me.ClientRectangle.Width, Me.ClientRectangle.Height, dc1, 0, 0, 13369376) : mygraphics.ReleaseHdc(dc1) : memoryGraphics.ReleaseHdc(dc2)
  1477. End Sub
  1478. Private Sub CaptureScreen5()
  1479. Dim mygraphics As Graphics = Panel5.CreateGraphics() : Dim s As Size = Me.Size : memoryImage5 = New Bitmap(Panel5.Width, Panel5.Height, mygraphics)
  1480. Dim memoryGraphics As Graphics = Graphics.FromImage(memoryImage5) : Dim dc1 As IntPtr = mygraphics.GetHdc : Dim dc2 As IntPtr = memoryGraphics.GetHdc
  1481. BitBlt(dc2, 0, 0, Me.ClientRectangle.Width, Me.ClientRectangle.Height, dc1, 0, 0, 13369376) : mygraphics.ReleaseHdc(dc1) : memoryGraphics.ReleaseHdc(dc2)
  1482. End Sub
  1483. Private Sub CaptureScreen6()
  1484. Dim mygraphics As Graphics = Panel6.CreateGraphics() : Dim s As Size = Me.Size : memoryImage6 = New Bitmap(Panel6.Width, Panel6.Height, mygraphics)
  1485. Dim memoryGraphics As Graphics = Graphics.FromImage(memoryImage6) : Dim dc1 As IntPtr = mygraphics.GetHdc : Dim dc2 As IntPtr = memoryGraphics.GetHdc
  1486. BitBlt(dc2, 0, 0, Me.ClientRectangle.Width, Me.ClientRectangle.Height, dc1, 0, 0, 13369376) : mygraphics.ReleaseHdc(dc1) : memoryGraphics.ReleaseHdc(dc2)
  1487. End Sub
  1488. Private Sub CaptureScreen7()
  1489. Dim mygraphics As Graphics = Panel7.CreateGraphics() : Dim s As Size = Me.Size : memoryImage7 = New Bitmap(Panel7.Width, Panel7.Height, mygraphics)
  1490. Dim memoryGraphics As Graphics = Graphics.FromImage(memoryImage7) : Dim dc1 As IntPtr = mygraphics.GetHdc : Dim dc2 As IntPtr = memoryGraphics.GetHdc
  1491. BitBlt(dc2, 0, 0, Me.ClientRectangle.Width, Me.ClientRectangle.Height, dc1, 0, 0, 13369376) : mygraphics.ReleaseHdc(dc1) : memoryGraphics.ReleaseHdc(dc2)
  1492. End Sub
  1493. Private Sub CaptureScreen8()
  1494. Dim mygraphics As Graphics = Panel8.CreateGraphics() : Dim s As Size = Me.Size : memoryImage8 = New Bitmap(Panel8.Width, Panel8.Height, mygraphics)
  1495. Dim memoryGraphics As Graphics = Graphics.FromImage(memoryImage8) : Dim dc1 As IntPtr = mygraphics.GetHdc : Dim dc2 As IntPtr = memoryGraphics.GetHdc
  1496. BitBlt(dc2, 0, 0, Me.ClientRectangle.Width, Me.ClientRectangle.Height, dc1, 0, 0, 13369376) : mygraphics.ReleaseHdc(dc1) : memoryGraphics.ReleaseHdc(dc2)
  1497. End Sub
  1498. Private Sub CaptureScreen9()
  1499. Dim mygraphics As Graphics = Panel9.CreateGraphics() : Dim s As Size = Me.Size : memoryImage9 = New Bitmap(Panel9.Width, Panel9.Height, mygraphics)
  1500. Dim memoryGraphics As Graphics = Graphics.FromImage(memoryImage9) : Dim dc1 As IntPtr = mygraphics.GetHdc : Dim dc2 As IntPtr = memoryGraphics.GetHdc
  1501. BitBlt(dc2, 0, 0, Me.ClientRectangle.Width, Me.ClientRectangle.Height, dc1, 0, 0, 13369376) : mygraphics.ReleaseHdc(dc1) : memoryGraphics.ReleaseHdc(dc2)
  1502. End Sub
  1503. Private Sub CaptureScreen10()
  1504. Dim mygraphics As Graphics = Panel10.CreateGraphics() : Dim s As Size = Me.Size : memoryImage10 = New Bitmap(Panel10.Width, Panel10.Height, mygraphics)
  1505. Dim memoryGraphics As Graphics = Graphics.FromImage(memoryImage10) : Dim dc1 As IntPtr = mygraphics.GetHdc : Dim dc2 As IntPtr = memoryGraphics.GetHdc
  1506. BitBlt(dc2, 0, 0, Me.ClientRectangle.Width, Me.ClientRectangle.Height, dc1, 0, 0, 13369376) : mygraphics.ReleaseHdc(dc1) : memoryGraphics.ReleaseHdc(dc2)
  1507. End Sub
  1508. Private Sub CaptureScreen11()
  1509. Dim mygraphics As Graphics = Panel11.CreateGraphics() : Dim s As Size = Me.Size : memoryImage11 = New Bitmap(Panel11.Width, Panel11.Height, mygraphics)
  1510. Dim memoryGraphics As Graphics = Graphics.FromImage(memoryImage11) : Dim dc1 As IntPtr = mygraphics.GetHdc : Dim dc2 As IntPtr = memoryGraphics.GetHdc
  1511. BitBlt(dc2, 0, 0, Me.ClientRectangle.Width, Me.ClientRectangle.Height, dc1, 0, 0, 13369376) : mygraphics.ReleaseHdc(dc1) : memoryGraphics.ReleaseHdc(dc2)
  1512. End Sub
  1513. Private Sub CaptureScreen12()
  1514. Dim mygraphics As Graphics = Panel12.CreateGraphics() : Dim s As Size = Me.Size : memoryImage12 = New Bitmap(Panel12.Width, Panel12.Height, mygraphics)
  1515. Dim memoryGraphics As Graphics = Graphics.FromImage(memoryImage12) : Dim dc1 As IntPtr = mygraphics.GetHdc : Dim dc2 As IntPtr = memoryGraphics.GetHdc
  1516. BitBlt(dc2, 0, 0, Me.ClientRectangle.Width, Me.ClientRectangle.Height, dc1, 0, 0, 13369376) : mygraphics.ReleaseHdc(dc1) : memoryGraphics.ReleaseHdc(dc2)
  1517. End Sub
  1518. Private Sub CaptureScreen13()
  1519. Dim mygraphics As Graphics = Panel13.CreateGraphics() : Dim s As Size = Me.Size : memoryImage13 = New Bitmap(Panel13.Width, Panel13.Height, mygraphics)
  1520. Dim memoryGraphics As Graphics = Graphics.FromImage(memoryImage13) : Dim dc1 As IntPtr = mygraphics.GetHdc : Dim dc2 As IntPtr = memoryGraphics.GetHdc
  1521. BitBlt(dc2, 0, 0, Me.ClientRectangle.Width, Me.ClientRectangle.Height, dc1, 0, 0, 13369376) : mygraphics.ReleaseHdc(dc1) : memoryGraphics.ReleaseHdc(dc2)
  1522. End Sub
  1523. Private Sub CaptureScreen14()
  1524. Dim mygraphics As Graphics = Panel14.CreateGraphics() : Dim s As Size = Me.Size : memoryImage14 = New Bitmap(Panel14.Width, Panel14.Height, mygraphics)
  1525. Dim memoryGraphics As Graphics = Graphics.FromImage(memoryImage14) : Dim dc1 As IntPtr = mygraphics.GetHdc : Dim dc2 As IntPtr = memoryGraphics.GetHdc
  1526. BitBlt(dc2, 0, 0, Me.ClientRectangle.Width, Me.ClientRectangle.Height, dc1, 0, 0, 13369376) : mygraphics.ReleaseHdc(dc1) : memoryGraphics.ReleaseHdc(dc2)
  1527. End Sub
  1528. Private Sub CaptureScreen15()
  1529. Dim mygraphics As Graphics = Panel15.CreateGraphics() : Dim s As Size = Me.Size : memoryImage15 = New Bitmap(Panel15.Width, Panel15.Height, mygraphics)
  1530. Dim memoryGraphics As Graphics = Graphics.FromImage(memoryImage15) : Dim dc1 As IntPtr = mygraphics.GetHdc : Dim dc2 As IntPtr = memoryGraphics.GetHdc
  1531. BitBlt(dc2, 0, 0, Me.ClientRectangle.Width, Me.ClientRectangle.Height, dc1, 0, 0, 13369376) : mygraphics.ReleaseHdc(dc1) : memoryGraphics.ReleaseHdc(dc2)
  1532. End Sub
  1533. Private Sub CaptureScreen16()
  1534. Dim mygraphics As Graphics = Panel16.CreateGraphics() : Dim s As Size = Me.Size : memoryImage16 = New Bitmap(Panel16.Width, Panel16.Height, mygraphics)
  1535. Dim memoryGraphics As Graphics = Graphics.FromImage(memoryImage16) : Dim dc1 As IntPtr = mygraphics.GetHdc : Dim dc2 As IntPtr = memoryGraphics.GetHdc
  1536. BitBlt(dc2, 0, 0, Me.ClientRectangle.Width, Me.ClientRectangle.Height, dc1, 0, 0, 13369376) : mygraphics.ReleaseHdc(dc1) : memoryGraphics.ReleaseHdc(dc2)
  1537. End Sub
  1538. Private Sub CaptureScreen17()
  1539. Dim mygraphics As Graphics = Panel17.CreateGraphics() : Dim s As Size = Me.Size : memoryImage17 = New Bitmap(Panel17.Width, Panel17.Height, mygraphics)
  1540. Dim memoryGraphics As Graphics = Graphics.FromImage(memoryImage17) : Dim dc1 As IntPtr = mygraphics.GetHdc : Dim dc2 As IntPtr = memoryGraphics.GetHdc
  1541. BitBlt(dc2, 0, 0, Me.ClientRectangle.Width, Me.ClientRectangle.Height, dc1, 0, 0, 13369376) : mygraphics.ReleaseHdc(dc1) : memoryGraphics.ReleaseHdc(dc2)
  1542. End Sub
  1543. Private Sub CaptureScreen18()
  1544. Dim mygraphics As Graphics = Panel18.CreateGraphics() : Dim s As Size = Me.Size : memoryImage18 = New Bitmap(Panel18.Width, Panel18.Height, mygraphics)
  1545. Dim memoryGraphics As Graphics = Graphics.FromImage(memoryImage18) : Dim dc1 As IntPtr = mygraphics.GetHdc : Dim dc2 As IntPtr = memoryGraphics.GetHdc
  1546. BitBlt(dc2, 0, 0, Me.ClientRectangle.Width, Me.ClientRectangle.Height, dc1, 0, 0, 13369376) : mygraphics.ReleaseHdc(dc1) : memoryGraphics.ReleaseHdc(dc2)
  1547. End Sub
  1548. Private Sub CaptureScreen19()
  1549. Dim mygraphics As Graphics = Panel19.CreateGraphics() : Dim s As Size = Me.Size : memoryImage19 = New Bitmap(Panel19.Width, Panel19.Height, mygraphics)
  1550. Dim memoryGraphics As Graphics = Graphics.FromImage(memoryImage19) : Dim dc1 As IntPtr = mygraphics.GetHdc : Dim dc2 As IntPtr = memoryGraphics.GetHdc
  1551. BitBlt(dc2, 0, 0, Me.ClientRectangle.Width, Me.ClientRectangle.Height, dc1, 0, 0, 13369376) : mygraphics.ReleaseHdc(dc1) : memoryGraphics.ReleaseHdc(dc2)
  1552. End Sub
  1553. Private Sub CaptureScreen20()
  1554. Dim mygraphics As Graphics = Panel20.CreateGraphics() : Dim s As Size = Me.Size : memoryImage20 = New Bitmap(Panel20.Width, Panel20.Height, mygraphics)
  1555. Dim memoryGraphics As Graphics = Graphics.FromImage(memoryImage20) : Dim dc1 As IntPtr = mygraphics.GetHdc : Dim dc2 As IntPtr = memoryGraphics.GetHdc
  1556. BitBlt(dc2, 0, 0, Me.ClientRectangle.Width, Me.ClientRectangle.Height, dc1, 0, 0, 13369376) : mygraphics.ReleaseHdc(dc1) : memoryGraphics.ReleaseHdc(dc2)
  1557. End Sub
  1558. Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage
  1559. If pageNum = 1 Then : e.Graphics.DrawImage(memoryImage1, 1, 1, 680, 962) : e.HasMorePages = True : pageNum += 1
  1560. ElseIf pageNum = 2 Then : e.Graphics.DrawImage(memoryImage2, 1, 1, 680, 962) : e.HasMorePages = True : pageNum += 1
  1561. ElseIf pageNum = 3 Then : e.Graphics.DrawImage(memoryImage3, 1, 1, 680, 962) : e.HasMorePages = True : pageNum += 1
  1562. ElseIf pageNum = 4 Then : e.Graphics.DrawImage(memoryImage4, 1, 1, 680, 962) : e.HasMorePages = True : pageNum += 1
  1563. ElseIf pageNum = 5 Then : e.Graphics.DrawImage(memoryImage5, 1, 1, 680, 962) : e.HasMorePages = True : pageNum += 1
  1564. ElseIf pageNum = 6 Then : e.Graphics.DrawImage(memoryImage6, 1, 1, 680, 962) : e.HasMorePages = True : pageNum += 1
  1565. ElseIf pageNum = 7 Then : e.Graphics.DrawImage(memoryImage7, 1, 1, 680, 962) : e.HasMorePages = True : pageNum += 1
  1566. ElseIf pageNum = 8 Then : e.Graphics.DrawImage(memoryImage8, 1, 1, 680, 962) : e.HasMorePages = True : pageNum += 1
  1567. ElseIf pageNum = 9 Then : e.Graphics.DrawImage(memoryImage9, 1, 1, 680, 962) : e.HasMorePages = True : pageNum += 1
  1568. ElseIf pageNum = 10 Then : e.Graphics.DrawImage(memoryImage10, 1, 1, 680, 962) : e.HasMorePages = True : pageNum += 1
  1569. ElseIf pageNum = 11 Then : e.Graphics.DrawImage(memoryImage11, 1, 1, 680, 962) : e.HasMorePages = True : pageNum += 1
  1570. ElseIf pageNum = 12 Then : e.Graphics.DrawImage(memoryImage12, 1, 1, 680, 962) : e.HasMorePages = True : pageNum += 1
  1571. ElseIf pageNum = 13 Then : e.Graphics.DrawImage(memoryImage13, 1, 1, 680, 962) : e.HasMorePages = True : pageNum += 1
  1572. ElseIf pageNum = 14 Then : e.Graphics.DrawImage(memoryImage14, 1, 1, 680, 962) : e.HasMorePages = True : pageNum += 1
  1573. ElseIf pageNum = 15 Then : e.Graphics.DrawImage(memoryImage15, 1, 1, 680, 962) : e.HasMorePages = True : pageNum += 1
  1574. ElseIf pageNum = 16 Then : e.Graphics.DrawImage(memoryImage16, 1, 1, 680, 962) : e.HasMorePages = True
  1575. If Val(最末頁_cb.Text) = 16 Then : e.HasMorePages = False : ElseIf Val(最末頁_cb.Text) > 16 Then : pageNum += 1 : End If
  1576. ElseIf pageNum = 17 And Val(最末頁_cb.Text) >= 17 Then : e.Graphics.DrawImage(memoryImage17, 1, 1, 680, 962) : e.HasMorePages = True
  1577. If Val(最末頁_cb.Text) = 17 Then : e.HasMorePages = False : ElseIf Val(最末頁_cb.Text) > 17 Then : pageNum += 1 : End If
  1578. ElseIf pageNum = 18 And Val(最末頁_cb.Text) >= 18 Then : e.Graphics.DrawImage(memoryImage18, 1, 1, 680, 962) : e.HasMorePages = True
  1579. If Val(最末頁_cb.Text) = 18 Then : e.HasMorePages = False : ElseIf Val(最末頁_cb.Text) > 18 Then : pageNum += 1 : End If
  1580. ElseIf pageNum = 19 And Val(最末頁_cb.Text) >= 19 Then : e.Graphics.DrawImage(memoryImage19, 1, 1, 680, 962) : e.HasMorePages = True
  1581. If Val(最末頁_cb.Text) = 19 Then : e.HasMorePages = False : ElseIf Val(最末頁_cb.Text) > 19 Then : pageNum += 1 : End If
  1582. ElseIf pageNum = 20 And Val(最末頁_cb.Text) >= 20 Then : e.Graphics.DrawImage(memoryImage20, 1, 1, 680, 962) : End If
  1583. End Sub
  1584. Public Sub Delay(ByRef Interval As Double) 'Interval单位为毫秒
  1585. Dim time As DateTime = DateTime.Now : Dim Span As Double = Interval * 1234 : While ((DateTime.Now.Ticks - time.Ticks) < Span) : System.Windows.Forms.Application.DoEvents() : End While
  1586. End Sub
  1587. Private Sub 列印_bt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles 列印_bt.Click
  1588. PrintDialog1.Document = PrintDocument1
  1589. PrintDialog1.PrinterSettings = PrintDocument1.PrinterSettings
  1590. PrintDialog1.AllowSomePages = True
  1591. PrintDialog1.Document.DocumentName = 工程名稱_中_tb.Text & ".pdf"
  1592. If PrintDialog1.ShowDialog = DialogResult.OK Then
  1593. pageNum = 1
  1594. PrintPreviewControl1.Visible = False : PrintPreviewControl1.SendToBack() : Delay(50)
  1595. Panel1.BringToFront() : Delay(50) : CaptureScreen1() : Panel2.BringToFront() : Delay(50) : CaptureScreen2() : Panel3.BringToFront() : Delay(50) : CaptureScreen3()
  1596. Panel4.BringToFront() : Delay(50) : CaptureScreen4() : Panel5.BringToFront() : Delay(50) : CaptureScreen5() : Panel6.BringToFront() : Delay(50) : CaptureScreen6()
  1597. Panel7.BringToFront() : Delay(50) : CaptureScreen7() : Panel8.BringToFront() : Delay(50) : CaptureScreen8() : Panel9.BringToFront() : Delay(50) : CaptureScreen9()
  1598. Panel10.BringToFront() : Delay(50) : CaptureScreen10() : Panel11.BringToFront() : Delay(50) : CaptureScreen11() : Panel12.BringToFront() : Delay(50) : CaptureScreen12()
  1599. Panel13.BringToFront() : Delay(50) : CaptureScreen13() : Panel14.BringToFront() : Delay(50) : CaptureScreen14() : Panel15.BringToFront() : Delay(50) : CaptureScreen15()
  1600. Panel16.BringToFront() : Delay(50) : CaptureScreen16()
  1601. If Val(最末頁_cb.Text) >= 17 Then : Panel17.BringToFront() : Delay(50) : CaptureScreen17() : End If
  1602. If Val(最末頁_cb.Text) >= 18 Then : Panel18.BringToFront() : Delay(50) : CaptureScreen18() : End If
  1603. If Val(最末頁_cb.Text) >= 19 Then : Panel19.BringToFront() : Delay(50) : CaptureScreen19() : End If
  1604. If Val(最末頁_cb.Text) >= 20 Then : Panel20.BringToFront() : Delay(50) : CaptureScreen20() : End If
  1605. PrintDocument1.DocumentName = 工程名稱_中_tb.Text & ".pdf" : PrintDocument1.Print()
  1606. End If
  1607. End Sub
  1608. Private Sub 預覽_bt_Click(sender As Object, e As EventArgs) Handles 預覽_bt.Click
  1609. 關閉預覽_tb.Enabled = True : 預覽_bt.Enabled = False : 列印_bt.Enabled = True : 預覽_nud.Value = 1.4
  1610. pageNum = 1
  1611. Panel1.BringToFront() : Delay(50) : CaptureScreen1() : Panel2.BringToFront() : Delay(50) : CaptureScreen2() : Panel3.BringToFront() : Delay(50) : CaptureScreen3()
  1612. Panel4.BringToFront() : Delay(50) : CaptureScreen4() : Panel5.BringToFront() : Delay(50) : CaptureScreen5() : Panel6.BringToFront() : Delay(50) : CaptureScreen6()
  1613. Panel7.BringToFront() : Delay(50) : CaptureScreen7() : Panel8.BringToFront() : Delay(50) : CaptureScreen8() : Panel9.BringToFront() : Delay(50) : CaptureScreen9()
  1614. Panel10.BringToFront() : Delay(50) : CaptureScreen10() : Panel11.BringToFront() : Delay(50) : CaptureScreen11() : Panel12.BringToFront() : Delay(50) : CaptureScreen12()
  1615. Panel13.BringToFront() : Delay(50) : CaptureScreen13() : Panel14.BringToFront() : Delay(50) : CaptureScreen14() : Panel15.BringToFront() : Delay(50) : CaptureScreen15()
  1616. Panel16.BringToFront() : Delay(50) : CaptureScreen16()
  1617. If Val(最末頁_cb.Text) >= 17 Then : Panel17.BringToFront() : Delay(50) : CaptureScreen17() : End If
  1618. If Val(最末頁_cb.Text) >= 18 Then : Panel18.BringToFront() : Delay(50) : CaptureScreen18() : End If
  1619. If Val(最末頁_cb.Text) >= 19 Then : Panel19.BringToFront() : Delay(50) : CaptureScreen19() : End If
  1620. If Val(最末頁_cb.Text) >= 20 Then : Panel20.BringToFront() : Delay(50) : CaptureScreen20() : End If
  1621. PrintPreviewControl1.Visible = True : PrintPreviewControl1.BringToFront() : PrintPreviewControl1.Document = PrintDocument1
  1622. End Sub
  1623. Private Sub 關閉預覽_tb_Click(sender As Object, e As EventArgs) Handles 關閉預覽_tb.Click
  1624. 關閉預覽_tb.Enabled = False : 預覽_bt.Enabled = True : 列印_bt.Enabled = False : PrintPreviewControl1.Visible = False : PrintPreviewControl1.SendToBack()
  1625. End Sub
  1626. Private Sub 上一頁_bt_Click(sender As Object, e As EventArgs) Handles 上一頁_bt.Click
  1627. If (PrintPreviewControl1.StartPage > 0) Then PrintPreviewControl1.StartPage -= 1
  1628. End Sub
  1629. Private Sub 下一頁_bt_Click(sender As Object, e As EventArgs) Handles 下一頁_bt.Click
  1630. PrintPreviewControl1.StartPage += 1
  1631. End Sub
  1632. Private Sub 上1頁_bt_Click(sender As Object, e As EventArgs) Handles 上1頁_bt.Click
  1633. 翻頁_nud.Value -= 1 : 轉跳_cb.Text = 翻頁_nud.Value
  1634. End Sub
  1635. Private Sub 下1頁_bt_Click(sender As Object, e As EventArgs) Handles 下1頁_bt.Click
  1636. 翻頁_nud.Value += 1 : 轉跳_cb.Text = 翻頁_nud.Value
  1637. End Sub
  1638. Private Sub 轉跳_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 轉跳_cb.SelectedIndexChanged
  1639. 翻頁_nud.Value = 轉跳_cb.Text
  1640. End Sub
  1641. Private Sub 最末頁_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 最末頁_cb.SelectedIndexChanged
  1642. 轉跳_cb.Items.Clear() : For I As Integer = 1 To 最末頁_cb.SelectedItem : 轉跳_cb.Items.Add(I) : Next : 頁數_bt.Text = 最末頁_cb.Text
  1643. For I As Integer = 1 To Val(最末頁_cb.Text)
  1644. Dim PanelS As Panel = CType(Me.Controls.Find("Panel" + (I).ToString(), True)(0), Panel)
  1645. '---------------------------------------第八章-------------------------------------------------------------------------------------
  1646. If Val(最末頁_cb.Text) - 4 = I Then
  1647. For ii As Integer = 121 To 130 : Dim LBS As Label = CType(Me.Controls.Find("LB" + (ii).ToString(), True)(0), Label) : LBS.Parent = PanelS : Next
  1648. For ii As Integer = 267 To 302 : Dim LBS As Label = CType(Me.Controls.Find("LB" + (ii).ToString(), True)(0), Label) : LBS.Parent = PanelS : Next
  1649. End If
  1650. '---------------------------------------第九章-------------------------------------------------------------------------------------
  1651. If Val(最末頁_cb.Text) - 3 = I Then
  1652. For ii As Integer = 131 To 136 : Dim LBS As Label = CType(Me.Controls.Find("LB" + (ii).ToString(), True)(0), Label) : LBS.Parent = PanelS : Next
  1653. For ii As Integer = 228 To 266 : Dim LBS As Label = CType(Me.Controls.Find("LB" + (ii).ToString(), True)(0), Label) : LBS.Parent = PanelS : Next
  1654. End If
  1655. '---------------------------------------第十章-------------------------------------------------------------------------------------
  1656. If Val(最末頁_cb.Text) - 2 = I Then
  1657. For ii As Integer = 137 To 140 : Dim LBS As Label = CType(Me.Controls.Find("LB" + (ii).ToString(), True)(0), Label) : LBS.Parent = PanelS : Next
  1658. For ii As Integer = 187 To 227 : Dim LBS As Label = CType(Me.Controls.Find("LB" + (ii).ToString(), True)(0), Label) : LBS.Parent = PanelS : Next
  1659. End If
  1660. '---------------------------------------第十一章-------------------------------------------------------------------------------------
  1661. If Val(最末頁_cb.Text) - 1 = I Then
  1662. For ii As Integer = 141 To 186 : Dim LBS As Label = CType(Me.Controls.Find("LB" + (ii).ToString(), True)(0), Label) : LBS.Parent = PanelS : Next
  1663. End If
  1664. '---------------------------------------最末頁-------------------------------------------------------------------------------------
  1665. If Val(最末頁_cb.Text) = I Then
  1666. For ii As Integer = 1 To 28 : Dim SLBS As Label = CType(Me.Controls.Find("SLB" + (ii).ToString(), True)(0), Label) : SLBS.Parent = PanelS : Next
  1667. End If
  1668. Next
  1669. If Val(最末頁_cb.Text) = 16 Then
  1670. For ii As Integer = 303 To 482 : Dim LBS As Label = CType(Me.Controls.Find("LB" + (ii).ToString(), True)(0), Label) : LBS.Text = "" : Next
  1671. ElseIf Val(最末頁_cb.Text) = 17 Then
  1672. For ii As Integer = 303 To 437 : Dim LBS As Label = CType(Me.Controls.Find("LB" + (ii).ToString(), True)(0), Label) : LBS.Text = "" : Next
  1673. 整頁呈現12()
  1674. ElseIf Val(最末頁_cb.Text) = 18 Then
  1675. For ii As Integer = 303 To 392 : Dim LBS As Label = CType(Me.Controls.Find("LB" + (ii).ToString(), True)(0), Label) : LBS.Text = "" : Next
  1676. 整頁呈現13() : 整頁呈現12()
  1677. ElseIf Val(最末頁_cb.Text) = 19 Then
  1678. For ii As Integer = 348 To 392 : Dim LBS As Label = CType(Me.Controls.Find("LB" + (ii).ToString(), True)(0), Label) : LBS.Text = "" : Next
  1679. 整頁呈現14() : 整頁呈現13() : 整頁呈現12()
  1680. ElseIf Val(最末頁_cb.Text) = 20 Then
  1681. 整頁呈現15() : 整頁呈現14() : 整頁呈現13() : 整頁呈現12()
  1682. End If : 浮水印()
  1683. End Sub
  1684. Private Sub 整頁呈現12()
  1685. LB438.Text = "第X條、XXXX" : LB439.Text = "Article X (XXX) XXXXXXXXXX"
  1686. LB440.Text = "__________________________________________________________________________________________________________________________________________________________________________________"
  1687. LB441.Text = "X、" : LB442.Text = "XXXXX。" : LB443.Text = "XXXXX." : LB444.Text = "X、" : LB445.Text = "XXXXX。" : LB446.Text = "XXXXX."
  1688. LB447.Text = "X、" : LB448.Text = "XXXXX。" : LB449.Text = "XXXXX." : LB450.Text = "X、" : LB451.Text = "XXXXX。" : LB452.Text = "XXXXX."
  1689. LB453.Text = "X、" : LB454.Text = "XXXXX。" : LB455.Text = "XXXXX." : LB456.Text = "X、" : LB457.Text = "XXXXX。" : LB458.Text = "XXXXX."
  1690. LB459.Text = "X、" : LB460.Text = "XXXXX。" : LB461.Text = "XXXXX." : LB462.Text = "X、" : LB463.Text = "XXXXX。" : LB464.Text = "XXXXX."
  1691. LB465.Text = "X、" : LB466.Text = "XXXXX。" : LB467.Text = "XXXXX." : LB468.Text = "X、" : LB469.Text = "XXXXX。" : LB470.Text = "XXXXX."
  1692. LB471.Text = "X、" : LB472.Text = "XXXXX。" : LB473.Text = "XXXXX." : LB474.Text = "X、" : LB475.Text = "XXXXX。" : LB476.Text = "XXXXX."
  1693. LB477.Text = "X、" : LB478.Text = "XXXXX。" : LB479.Text = "XXXXX." : LB480.Text = "X、" : LB481.Text = "XXXXX。" : LB482.Text = "XXXXX."
  1694. End Sub
  1695. Private Sub 整頁呈現13()
  1696. LB393.Text = "第X條、XXXX" : LB394.Text = "Article X (XXX) XXXXXXXXXX"
  1697. LB395.Text = "__________________________________________________________________________________________________________________________________________________________________________________"
  1698. LB396.Text = "X、" : LB397.Text = "XXXXX。" : LB398.Text = "XXXXX." : LB399.Text = "X、" : LB400.Text = "XXXXX。" : LB401.Text = "XXXXX."
  1699. LB402.Text = "X、" : LB403.Text = "XXXXX。" : LB404.Text = "XXXXX." : LB405.Text = "X、" : LB406.Text = "XXXXX。" : LB407.Text = "XXXXX."
  1700. LB408.Text = "X、" : LB409.Text = "XXXXX。" : LB410.Text = "XXXXX." : LB411.Text = "X、" : LB412.Text = "XXXXX。" : LB413.Text = "XXXXX."
  1701. LB414.Text = "X、" : LB415.Text = "XXXXX。" : LB416.Text = "XXXXX." : LB417.Text = "X、" : LB418.Text = "XXXXX。" : LB419.Text = "XXXXX."
  1702. LB420.Text = "X、" : LB421.Text = "XXXXX。" : LB422.Text = "XXXXX." : LB423.Text = "X、" : LB424.Text = "XXXXX。" : LB425.Text = "XXXXX."
  1703. LB426.Text = "X、" : LB427.Text = "XXXXX。" : LB428.Text = "XXXXX." : LB429.Text = "X、" : LB430.Text = "XXXXX。" : LB431.Text = "XXXXX."
  1704. LB432.Text = "X、" : LB433.Text = "XXXXX。" : LB434.Text = "XXXXX." : LB435.Text = "X、" : LB436.Text = "XXXXX。" : LB437.Text = "XXXXX."
  1705. End Sub
  1706. Private Sub 整頁呈現14()
  1707. LB348.Text = "第X條、XXXX" : LB349.Text = "Article X (XXX) XXXXXXXXXX"
  1708. LB350.Text = "__________________________________________________________________________________________________________________________________________________________________________________"
  1709. LB351.Text = "X、" : LB352.Text = "XXXXX。" : LB353.Text = "XXXXX." : LB354.Text = "X、" : LB355.Text = "XXXXX。" : LB356.Text = "XXXXX."
  1710. LB357.Text = "X、" : LB358.Text = "XXXXX。" : LB359.Text = "XXXXX." : LB360.Text = "X、" : LB361.Text = "XXXXX。" : LB362.Text = "XXXXX."
  1711. LB363.Text = "X、" : LB364.Text = "XXXXX。" : LB365.Text = "XXXXX." : LB366.Text = "X、" : LB367.Text = "XXXXX。" : LB368.Text = "XXXXX."
  1712. LB369.Text = "X、" : LB370.Text = "XXXXX。" : LB371.Text = "XXXXX." : LB372.Text = "X、" : LB373.Text = "XXXXX。" : LB374.Text = "XXXXX."
  1713. LB375.Text = "X、" : LB376.Text = "XXXXX。" : LB377.Text = "XXXXX." : LB378.Text = "X、" : LB379.Text = "XXXXX。" : LB380.Text = "XXXXX."
  1714. LB381.Text = "X、" : LB382.Text = "XXXXX。" : LB383.Text = "XXXXX." : LB384.Text = "X、" : LB385.Text = "XXXXX。" : LB386.Text = "XXXXX."
  1715. LB387.Text = "X、" : LB388.Text = "XXXXX。" : LB389.Text = "XXXXX." : LB390.Text = "X、" : LB391.Text = "XXXXX。" : LB392.Text = "XXXXX."
  1716. End Sub
  1717. Private Sub 整頁呈現15()
  1718. LB303.Text = "第X條、XXXX" : LB304.Text = "Article X (XXX) XXXXXXXXXX"
  1719. LB305.Text = "__________________________________________________________________________________________________________________________________________________________________________________"
  1720. LB306.Text = "X、" : LB307.Text = "XXXXX。" : LB308.Text = "XXXXX." : LB309.Text = "X、" : LB310.Text = "XXXXX。" : LB311.Text = "XXXXX."
  1721. LB312.Text = "X、" : LB313.Text = "XXXXX。" : LB314.Text = "XXXXX." : LB315.Text = "X、" : LB316.Text = "XXXXX。" : LB317.Text = "XXXXX."
  1722. LB318.Text = "X、" : LB319.Text = "XXXXX。" : LB320.Text = "XXXXX." : LB321.Text = "X、" : LB322.Text = "XXXXX。" : LB323.Text = "XXXXX."
  1723. LB324.Text = "X、" : LB325.Text = "XXXXX。" : LB326.Text = "XXXXX." : LB327.Text = "X、" : LB328.Text = "XXXXX。" : LB329.Text = "XXXXX."
  1724. LB330.Text = "X、" : LB331.Text = "XXXXX。" : LB332.Text = "XXXXX." : LB333.Text = "X、" : LB334.Text = "XXXXX。" : LB335.Text = "XXXXX."
  1725. LB336.Text = "X、" : LB337.Text = "XXXXX。" : LB338.Text = "XXXXX." : LB339.Text = "X、" : LB340.Text = "XXXXX。" : LB341.Text = "XXXXX."
  1726. LB342.Text = "X、" : LB343.Text = "XXXXX。" : LB344.Text = "XXXXX." : LB345.Text = "X、" : LB346.Text = "XXXXX。" : LB347.Text = "XXXXX."
  1727. End Sub
  1728. Private Sub 翻頁_nud_ValueChanged(sender As Object, e As EventArgs) Handles 翻頁_nud.ValueChanged
  1729. If 翻頁_nud.Value = 1 Then : 上1頁_bt.Enabled = False : 下1頁_bt.Enabled = True
  1730. ElseIf 翻頁_nud.Value = 20 Or Val(最末頁_cb.Text) = 翻頁_nud.Value Then : 上1頁_bt.Enabled = True : 下1頁_bt.Enabled = False
  1731. ElseIf 翻頁_nud.Value < 20 And 翻頁_nud.Value > 1 And Val(最末頁_cb.Text) = 翻頁_nud.Value Then : 上1頁_bt.Enabled = True : 下1頁_bt.Enabled = False
  1732. ElseIf 翻頁_nud.Value < 20 And 翻頁_nud.Value > 1 And Val(最末頁_cb.Text) > 翻頁_nud.Value Then : 上1頁_bt.Enabled = True : 下1頁_bt.Enabled = True : End If
  1733. For I As Integer = 1 To Val(最末頁_cb.Text)
  1734. Dim PanelS As Panel = CType(Me.Controls.Find("Panel" + (I).ToString(), True)(0), Panel) : If 翻頁_nud.Value = I Then : PanelS.BringToFront() : End If
  1735. Next
  1736. End Sub
  1737. Private Sub PrintPreviewControl1_Click(ByVal sender As Object, ByVal e As MouseEventArgs) Handles PrintPreviewControl1.MouseWheel
  1738. If e.Delta > 0 And 預覽_nud.Value < 1.5 Then : 預覽_nud.Value += 0.1 : ElseIf e.Delta < 0 And 預覽_nud.Value > 0 Then : 預覽_nud.Value -= 0.1 : End If
  1739. End Sub
  1740. Private Sub 預覽_nud_ValueChanged(sender As Object, e As EventArgs) Handles 預覽_nud.ValueChanged
  1741. PrintPreviewControl1.Zoom = 預覽_nud.Value
  1742. End Sub
  1743. Private Sub LB1_Click(sender As Object, e As EventArgs) Handles LB1.Click
  1744. PA = LB1.Text : 合約內文修改視窗.ShowDialog() : LB1.Text = PA
  1745. End Sub
  1746. Private Sub LB2_Click(sender As Object, e As EventArgs) Handles LB2.Click
  1747. PA = LB2.Text : 合約內文修改視窗.ShowDialog() : LB2.Text = PA
  1748. End Sub
  1749. Private Sub LB3_Click(sender As Object, e As EventArgs) Handles LB3.Click
  1750. PA = LB3.Text : 合約內文修改視窗.ShowDialog() : LB3.Text = PA
  1751. End Sub
  1752. Private Sub LB4_Click(sender As Object, e As EventArgs) Handles LB4.Click
  1753. PA = LB4.Text : 合約內文修改視窗.ShowDialog() : LB4.Text = PA
  1754. End Sub
  1755. Private Sub LB5_Click(sender As Object, e As EventArgs) Handles LB5.Click
  1756. PA = LB5.Text : 合約內文修改視窗.ShowDialog() : LB5.Text = PA
  1757. End Sub
  1758. Private Sub LB6_Click(sender As Object, e As EventArgs) Handles LB6.Click
  1759. PA = LB6.Text : 合約內文修改視窗.ShowDialog() : LB6.Text = PA
  1760. End Sub
  1761. Private Sub LB21_Click(sender As Object, e As EventArgs) Handles LB21.Click
  1762. PA = LB21.Text : 合約內文修改視窗.ShowDialog() : LB21.Text = PA
  1763. End Sub
  1764. Private Sub LB22_Click(sender As Object, e As EventArgs) Handles LB22.Click
  1765. PA = LB22.Text : 合約內文修改視窗.ShowDialog() : LB22.Text = PA
  1766. End Sub
  1767. Private Sub LB23_Click(sender As Object, e As EventArgs) Handles LB23.Click
  1768. PA = LB23.Text : 合約內文修改視窗.ShowDialog() : LB23.Text = PA
  1769. End Sub
  1770. Private Sub LB24_Click(sender As Object, e As EventArgs) Handles LB24.Click
  1771. PA = LB24.Text : 合約內文修改視窗.ShowDialog() : LB24.Text = PA
  1772. End Sub
  1773. Private Sub LB25_Click(sender As Object, e As EventArgs) Handles LB25.Click
  1774. PA = LB25.Text : 合約內文修改視窗.ShowDialog() : LB25.Text = PA
  1775. End Sub
  1776. Private Sub LB26_Click(sender As Object, e As EventArgs) Handles LB26.Click
  1777. PA = LB26.Text : 合約內文修改視窗.ShowDialog() : LB26.Text = PA
  1778. End Sub
  1779. Private Sub LB27_Click(sender As Object, e As EventArgs) Handles LB27.Click
  1780. PA = LB27.Text : 合約內文修改視窗.ShowDialog() : LB27.Text = PA
  1781. End Sub
  1782. Private Sub LB28_Click(sender As Object, e As EventArgs) Handles LB28.Click
  1783. PA = LB28.Text : 合約內文修改視窗.ShowDialog() : LB28.Text = PA
  1784. End Sub
  1785. Private Sub LB29_Click(sender As Object, e As EventArgs) Handles LB29.Click
  1786. PA = LB29.Text : 合約內文修改視窗.ShowDialog() : LB29.Text = PA
  1787. End Sub
  1788. Private Sub LB30_Click(sender As Object, e As EventArgs) Handles LB30.Click
  1789. PA = LB30.Text : 合約內文修改視窗.ShowDialog() : LB30.Text = PA
  1790. End Sub
  1791. Private Sub LB33_Click(sender As Object, e As EventArgs) Handles LB33.Click
  1792. PA = LB33.Text : 合約內文修改視窗.ShowDialog() : LB33.Text = PA
  1793. End Sub
  1794. Private Sub LB34_Click(sender As Object, e As EventArgs) Handles LB34.Click
  1795. PA = LB34.Text : 合約內文修改視窗.ShowDialog() : LB34.Text = PA
  1796. End Sub
  1797. Private Sub LB39_Click(sender As Object, e As EventArgs) Handles LB39.Click
  1798. PA = LB39.Text : 合約內文修改視窗.ShowDialog() : LB39.Text = PA
  1799. End Sub
  1800. Private Sub LB40_Click(sender As Object, e As EventArgs) Handles LB40.Click
  1801. PA = LB40.Text : 合約內文修改視窗.ShowDialog() : LB40.Text = PA
  1802. End Sub
  1803. Private Sub LB41_Click(sender As Object, e As EventArgs) Handles LB41.Click
  1804. PA = LB41.Text : 合約內文修改視窗.ShowDialog() : LB41.Text = PA
  1805. End Sub
  1806. Private Sub LB42_Click(sender As Object, e As EventArgs) Handles LB42.Click
  1807. PA = LB42.Text : 合約內文修改視窗.ShowDialog() : LB42.Text = PA
  1808. End Sub
  1809. Private Sub LB43_Click(sender As Object, e As EventArgs) Handles LB43.Click
  1810. PA = LB43.Text : 合約內文修改視窗.ShowDialog() : LB43.Text = PA
  1811. End Sub
  1812. Private Sub LB44_Click(sender As Object, e As EventArgs) Handles LB44.Click
  1813. PA = LB44.Text : 合約內文修改視窗.ShowDialog() : LB44.Text = PA
  1814. End Sub
  1815. Private Sub LB50_Click(sender As Object, e As EventArgs) Handles LB50.Click
  1816. PA = LB50.Text : 合約內文修改視窗.ShowDialog() : LB50.Text = PA
  1817. End Sub
  1818. Private Sub LB51_Click(sender As Object, e As EventArgs) Handles LB51.Click
  1819. PA = LB51.Text : 合約內文修改視窗.ShowDialog() : LB51.Text = PA
  1820. End Sub
  1821. Private Sub LB52_Click(sender As Object, e As EventArgs) Handles LB52.Click
  1822. PA = LB52.Text : 合約內文修改視窗.ShowDialog() : LB52.Text = PA
  1823. End Sub
  1824. Private Sub LB53_Click(sender As Object, e As EventArgs) Handles LB53.Click
  1825. PA = LB53.Text : 合約內文修改視窗.ShowDialog() : LB53.Text = PA
  1826. End Sub
  1827. Private Sub LB56_Click(sender As Object, e As EventArgs) Handles LB56.Click
  1828. PA = LB56.Text : 合約內文修改視窗.ShowDialog() : LB56.Text = PA
  1829. End Sub
  1830. Private Sub LB57_Click(sender As Object, e As EventArgs) Handles LB57.Click
  1831. PA = LB57.Text : 合約內文修改視窗.ShowDialog() : LB57.Text = PA
  1832. End Sub
  1833. Private Sub LB58_Click(sender As Object, e As EventArgs) Handles LB58.Click
  1834. PA = LB58.Text : 合約內文修改視窗.ShowDialog() : LB58.Text = PA
  1835. End Sub
  1836. Private Sub LB59_Click(sender As Object, e As EventArgs) Handles LB59.Click
  1837. PA = LB59.Text : 合約內文修改視窗.ShowDialog() : LB59.Text = PA
  1838. End Sub
  1839. Private Sub LB60_Click(sender As Object, e As EventArgs) Handles LB60.Click
  1840. PA = LB60.Text : 合約內文修改視窗.ShowDialog() : LB60.Text = PA
  1841. End Sub
  1842. Private Sub LB61_Click(sender As Object, e As EventArgs) Handles LB61.Click
  1843. PA = LB61.Text : 合約內文修改視窗.ShowDialog() : LB61.Text = PA
  1844. End Sub
  1845. Private Sub LB62_Click(sender As Object, e As EventArgs) Handles LB62.Click
  1846. PA = LB62.Text : 合約內文修改視窗.ShowDialog() : LB62.Text = PA
  1847. End Sub
  1848. Private Sub LB68_Click(sender As Object, e As EventArgs) Handles LB68.Click
  1849. PA = LB68.Text : 合約內文修改視窗.ShowDialog() : LB68.Text = PA
  1850. End Sub
  1851. Private Sub LB69_Click(sender As Object, e As EventArgs) Handles LB69.Click
  1852. PA = LB69.Text : 合約內文修改視窗.ShowDialog() : LB69.Text = PA
  1853. End Sub
  1854. Private Sub LB70_Click(sender As Object, e As EventArgs) Handles LB70.Click
  1855. PA = LB70.Text : 合約內文修改視窗.ShowDialog() : LB70.Text = PA
  1856. End Sub
  1857. Private Sub LB71_Click(sender As Object, e As EventArgs) Handles LB71.Click
  1858. PA = LB71.Text : 合約內文修改視窗.ShowDialog() : LB71.Text = PA
  1859. End Sub
  1860. Private Sub LB77_Click(sender As Object, e As EventArgs) Handles LB77.Click
  1861. PA = LB77.Text : 合約內文修改視窗.ShowDialog() : LB77.Text = PA
  1862. End Sub
  1863. Private Sub LB78_Click(sender As Object, e As EventArgs) Handles LB78.Click
  1864. PA = LB78.Text : 合約內文修改視窗.ShowDialog() : LB78.Text = PA
  1865. End Sub
  1866. Private Sub LB79_Click(sender As Object, e As EventArgs) Handles LB79.Click
  1867. PA = LB79.Text : 合約內文修改視窗.ShowDialog() : LB79.Text = PA
  1868. End Sub
  1869. Private Sub LB80_Click(sender As Object, e As EventArgs) Handles LB80.Click
  1870. PA = LB80.Text : 合約內文修改視窗.ShowDialog() : LB80.Text = PA
  1871. End Sub
  1872. Private Sub LB81_Click(sender As Object, e As EventArgs) Handles LB81.Click
  1873. PA = LB81.Text : 合約內文修改視窗.ShowDialog() : LB81.Text = PA
  1874. End Sub
  1875. Private Sub LB94_Click(sender As Object, e As EventArgs) Handles LB94.Click
  1876. PA = LB94.Text : 合約內文修改視窗.ShowDialog() : LB94.Text = PA
  1877. End Sub
  1878. Private Sub LB95_Click(sender As Object, e As EventArgs) Handles LB95.Click
  1879. PA = LB95.Text : 合約內文修改視窗.ShowDialog() : LB95.Text = PA
  1880. End Sub
  1881. Private Sub LB96_Click(sender As Object, e As EventArgs) Handles LB96.Click
  1882. PA = LB96.Text : 合約內文修改視窗.ShowDialog() : LB96.Text = PA
  1883. End Sub
  1884. Private Sub LB97_Click(sender As Object, e As EventArgs) Handles LB97.Click
  1885. PA = LB97.Text : 合約內文修改視窗.ShowDialog() : LB97.Text = PA
  1886. End Sub
  1887. Private Sub LB98_Click(sender As Object, e As EventArgs) Handles LB98.Click
  1888. PA = LB98.Text : 合約內文修改視窗.ShowDialog() : LB98.Text = PA
  1889. End Sub
  1890. Private Sub LB99_Click(sender As Object, e As EventArgs) Handles LB99.Click
  1891. PA = LB99.Text : 合約內文修改視窗.ShowDialog() : LB99.Text = PA
  1892. End Sub
  1893. Private Sub LB100_Click(sender As Object, e As EventArgs) Handles LB100.Click
  1894. PA = LB100.Text : 合約內文修改視窗.ShowDialog() : LB100.Text = PA
  1895. End Sub
  1896. Private Sub LB101_Click(sender As Object, e As EventArgs) Handles LB101.Click
  1897. PA = LB101.Text : 合約內文修改視窗.ShowDialog() : LB101.Text = PA
  1898. End Sub
  1899. Private Sub LB102_Click(sender As Object, e As EventArgs) Handles LB102.Click
  1900. PA = LB102.Text : 合約內文修改視窗.ShowDialog() : LB102.Text = PA
  1901. End Sub
  1902. '---------------------------第十一章----------------------------------------------------------------------------------------------------------------------------------------------
  1903. Private Sub LB141_移動()
  1904. Dim sx, sxx As Integer : sx = LB141.Size.Height : sxx = LB141.Location.Y : LB142.Location = New Drawing.Point(40, sxx + sx + 10)
  1905. End Sub
  1906. Private Sub LB141_Click(sender As Object, e As EventArgs) Handles LB141.Click
  1907. PA = LB141.Text : 合約內文修改視窗.ShowDialog() : LB141.Text = PA : LB141_移動()
  1908. End Sub
  1909. Private Sub LB141_LocationChanged(sender As Object, e As EventArgs) Handles LB141.LocationChanged
  1910. LB141_移動()
  1911. End Sub
  1912. Private Sub LB141_TextChanged(sender As Object, e As EventArgs) Handles LB141.TextChanged
  1913. LB141_移動()
  1914. End Sub
  1915. '-----------------------------------------------------------------------------------------------------------------
  1916. Private Sub LB142_移動()
  1917. Dim sx, sxx As Integer : sx = LB142.Size.Height : sxx = LB142.Location.Y : LB157.Location = New Drawing.Point(6, sxx + sx + 10) : LB143.Location = New Drawing.Point(40, sxx + sx + 10)
  1918. End Sub
  1919. Private Sub LB142_Click(sender As Object, e As EventArgs) Handles LB142.Click
  1920. PA = LB142.Text : 合約內文修改視窗.ShowDialog() : LB142.Text = PA : LB142_移動()
  1921. End Sub
  1922. Private Sub LB142_LocationChanged(sender As Object, e As EventArgs) Handles LB142.LocationChanged
  1923. LB142_移動()
  1924. End Sub
  1925. Private Sub LB142_TextChanged(sender As Object, e As EventArgs) Handles LB142.TextChanged
  1926. LB142_移動()
  1927. End Sub
  1928. '-----------------------------------------------------------------------------------------------------------------
  1929. Private Sub LB143_移動()
  1930. Dim sx, sxx As Integer : sx = LB143.Size.Height : sxx = LB143.Location.Y : LB144.Location = New Drawing.Point(40, sxx + sx + 10)
  1931. End Sub
  1932. Private Sub LB143_Click(sender As Object, e As EventArgs) Handles LB143.Click
  1933. PA = LB143.Text : 合約內文修改視窗.ShowDialog() : LB143.Text = PA : LB143_移動()
  1934. End Sub
  1935. Private Sub LB143_LocationChanged(sender As Object, e As EventArgs) Handles LB143.LocationChanged
  1936. LB143_移動()
  1937. End Sub
  1938. Private Sub LB143_TextChanged(sender As Object, e As EventArgs) Handles LB143.TextChanged
  1939. LB143_移動()
  1940. End Sub
  1941. '-----------------------------------------------------------------------------------------------------------------
  1942. Private Sub LB144_移動()
  1943. Dim sx, sxx As Integer : sx = LB144.Size.Height : sxx = LB144.Location.Y : LB158.Location = New Drawing.Point(6, sxx + sx + 10) : LB159.Location = New Drawing.Point(40, sxx + sx + 10)
  1944. End Sub
  1945. Private Sub LB144_Click(sender As Object, e As EventArgs) Handles LB144.Click
  1946. PA = LB144.Text : 合約內文修改視窗.ShowDialog() : LB144.Text = PA : LB144_移動()
  1947. End Sub
  1948. Private Sub LB144_LocationChanged(sender As Object, e As EventArgs) Handles LB144.LocationChanged
  1949. LB144_移動()
  1950. End Sub
  1951. Private Sub LB144_TextChanged(sender As Object, e As EventArgs) Handles LB144.TextChanged
  1952. LB144_移動()
  1953. End Sub
  1954. '-----------------------------------------------------------------------------------------------------------------
  1955. Private Sub LB145_移動()
  1956. Dim sx, sxx As Integer : sx = LB145.Size.Height : sxx = LB145.Location.Y : LB147.Location = New Drawing.Point(40, sxx + sx)
  1957. End Sub
  1958. Private Sub LB145_Click(sender As Object, e As EventArgs) Handles LB145.Click
  1959. PA = LB145.Text : 合約內文修改視窗.ShowDialog() : LB145.Text = PA : LB145_移動()
  1960. End Sub
  1961. Private Sub LB145_LocationChanged(sender As Object, e As EventArgs) Handles LB145.LocationChanged
  1962. LB145_移動()
  1963. End Sub
  1964. Private Sub LB145_TextChanged(sender As Object, e As EventArgs) Handles LB145.TextChanged
  1965. LB145_移動()
  1966. End Sub
  1967. '-----------------------------------------------------------------------------------------------------------------
  1968. Private Sub LB146_Click(sender As Object, e As EventArgs) Handles LB146.Click
  1969. PA = LB146.Text : 合約內文修改視窗.ShowDialog() : LB146.Text = PA
  1970. End Sub
  1971. '-----------------------------------------------------------------------------------------------------------------
  1972. Private Sub LB147_移動()
  1973. Dim sx, sxx As Integer : sx = LB147.Size.Height : sxx = LB147.Location.Y : LB148.Location = New Drawing.Point(40, sxx + sx) : LB163.Location = New Drawing.Point(164, sxx + sx)
  1974. End Sub
  1975. Private Sub LB147_Click(sender As Object, e As EventArgs) Handles LB147.Click
  1976. PA = LB147.Text : 合約內文修改視窗.ShowDialog() : LB147.Text = PA : LB147_移動()
  1977. End Sub
  1978. Private Sub LB147_LocationChanged(sender As Object, e As EventArgs) Handles LB147.LocationChanged
  1979. LB147_移動()
  1980. End Sub
  1981. Private Sub LB147_TextChanged(sender As Object, e As EventArgs) Handles LB147.TextChanged
  1982. LB147_移動()
  1983. End Sub
  1984. '-----------------------------------------------------------------------------------------------------------------
  1985. Private Sub LB148_Click(sender As Object, e As EventArgs) Handles LB148.Click
  1986. PA = LB148.Text : 合約內文修改視窗.ShowDialog() : LB148.Text = PA
  1987. End Sub
  1988. '-----------------------------------------------------------------------------------------------------------------
  1989. Private Sub LB149_移動()
  1990. Dim sx, sxx As Integer : sx = LB149.Size.Height : sxx = LB149.Location.Y
  1991. LB150.Location = New Drawing.Point(40, sxx + sx) : LB165.Location = New Drawing.Point(498, sxx + sx) : LB151.Location = New Drawing.Point(576, sxx + sx)
  1992. End Sub
  1993. Private Sub LB149_Click(sender As Object, e As EventArgs) Handles LB149.Click
  1994. PA = LB149.Text : 合約內文修改視窗.ShowDialog() : LB149.Text = PA : LB149_移動()
  1995. End Sub
  1996. Private Sub LB149_LocationChanged(sender As Object, e As EventArgs) Handles LB149.LocationChanged
  1997. LB149_移動()
  1998. End Sub
  1999. Private Sub LB149_TextChanged(sender As Object, e As EventArgs) Handles LB149.TextChanged
  2000. LB149_移動()
  2001. End Sub
  2002. '-----------------------------------------------------------------------------------------------------------------
  2003. Private Sub LB150_移動()
  2004. Dim sx, sxx As Integer : sx = LB150.Size.Height : sxx = LB150.Location.Y : LB152.Location = New Drawing.Point(40, sxx + sx)
  2005. End Sub
  2006. Private Sub LB150_Click(sender As Object, e As EventArgs) Handles LB150.Click
  2007. PA = LB150.Text : 合約內文修改視窗.ShowDialog() : LB150.Text = PA : LB150_移動()
  2008. End Sub
  2009. Private Sub LB150_LocationChanged(sender As Object, e As EventArgs) Handles LB150.LocationChanged
  2010. LB150_移動()
  2011. End Sub
  2012. Private Sub LB150_TextChanged(sender As Object, e As EventArgs) Handles LB150.TextChanged
  2013. LB150_移動()
  2014. End Sub
  2015. '-----------------------------------------------------------------------------------------------------------------
  2016. Private Sub LB151_Click(sender As Object, e As EventArgs) Handles LB151.Click
  2017. PA = LB151.Text : 合約內文修改視窗.ShowDialog() : LB151.Text = PA
  2018. End Sub
  2019. '-----------------------------------------------------------------------------------------------------------------
  2020. Private Sub LB152_移動()
  2021. Dim sx, sxx As Integer : sx = LB152.Size.Height : sxx = LB152.Location.Y : LB166.Location = New Drawing.Point(6, sxx + sx + 10) : LB167.Location = New Drawing.Point(40, sxx + sx + 10)
  2022. End Sub
  2023. Private Sub LB152_Click(sender As Object, e As EventArgs) Handles LB152.Click
  2024. PA = LB152.Text : 合約內文修改視窗.ShowDialog() : LB152.Text = PA : LB152_移動()
  2025. End Sub
  2026. Private Sub LB152_LocationChanged(sender As Object, e As EventArgs) Handles LB152.LocationChanged
  2027. LB152_移動()
  2028. End Sub
  2029. Private Sub LB152_TextChanged(sender As Object, e As EventArgs) Handles LB152.TextChanged
  2030. LB152_移動()
  2031. End Sub
  2032. '-----------------------------------------------------------------------------------------------------------------
  2033. Private Sub LB153_Click(sender As Object, e As EventArgs) Handles LB153.Click
  2034. PA = LB153.Text : 合約內文修改視窗.ShowDialog() : LB153.Text = PA
  2035. End Sub
  2036. Private Sub LB154_Click(sender As Object, e As EventArgs) Handles LB154.Click
  2037. PA = LB154.Text : 合約內文修改視窗.ShowDialog() : LB154.Text = PA
  2038. End Sub
  2039. Private Sub LB155_Click(sender As Object, e As EventArgs) Handles LB155.Click
  2040. PA = LB155.Text : 合約內文修改視窗.ShowDialog() : LB155.Text = PA
  2041. End Sub
  2042. Private Sub LB156_Click(sender As Object, e As EventArgs) Handles LB156.Click
  2043. PA = LB156.Text : 合約內文修改視窗.ShowDialog() : LB156.Text = PA
  2044. End Sub
  2045. Private Sub LB157_Click(sender As Object, e As EventArgs) Handles LB157.Click
  2046. PA = LB157.Text : 合約內文修改視窗.ShowDialog() : LB157.Text = PA
  2047. End Sub
  2048. Private Sub LB158_Click(sender As Object, e As EventArgs) Handles LB158.Click
  2049. PA = LB158.Text : 合約內文修改視窗.ShowDialog() : LB158.Text = PA
  2050. End Sub
  2051. '-----------------------------------------------------------------------------------------------------------------
  2052. Private Sub LB159_移動()
  2053. Dim sx, sxx As Integer : sx = LB159.Size.Height : sxx = LB159.Location.Y : LB160.Location = New Drawing.Point(40, sxx + sx)
  2054. End Sub
  2055. Private Sub LB159_Click(sender As Object, e As EventArgs) Handles LB159.Click
  2056. PA = LB159.Text : 合約內文修改視窗.ShowDialog() : LB159.Text = PA : LB159_移動()
  2057. End Sub
  2058. Private Sub LB159_LocationChanged(sender As Object, e As EventArgs) Handles LB159.LocationChanged
  2059. LB159_移動()
  2060. End Sub
  2061. Private Sub LB159_TextChanged(sender As Object, e As EventArgs) Handles LB159.TextChanged
  2062. LB159_移動()
  2063. End Sub
  2064. '-----------------------------------------------------------------------------------------------------------------
  2065. Private Sub LB160_移動()
  2066. Dim sx, sxx As Integer : sx = LB160.Size.Height : sxx = LB160.Location.Y : LB161.Location = New Drawing.Point(40, sxx + sx)
  2067. End Sub
  2068. Private Sub LB160_Click(sender As Object, e As EventArgs) Handles LB160.Click
  2069. PA = LB160.Text : 合約內文修改視窗.ShowDialog() : LB160.Text = PA : LB160_移動()
  2070. End Sub
  2071. Private Sub LB160_LocationChanged(sender As Object, e As EventArgs) Handles LB160.LocationChanged
  2072. LB160_移動()
  2073. End Sub
  2074. Private Sub LB160_TextChanged(sender As Object, e As EventArgs) Handles LB160.TextChanged
  2075. LB160_移動()
  2076. End Sub
  2077. '-----------------------------------------------------------------------------------------------------------------
  2078. Private Sub LB161_移動()
  2079. Dim sx, sxx As Integer : sx = LB161.Size.Height : sxx = LB161.Location.Y
  2080. LB145.Location = New Drawing.Point(40, sxx + sx) : LB162.Location = New Drawing.Point(251, sxx + sx) : LB146.Location = New Drawing.Point(332, sxx + sx)
  2081. End Sub
  2082. Private Sub LB161_Click(sender As Object, e As EventArgs) Handles LB161.Click
  2083. PA = LB161.Text : 合約內文修改視窗.ShowDialog() : LB161.Text = PA : LB161_移動()
  2084. End Sub
  2085. Private Sub LB161_LocationChanged(sender As Object, e As EventArgs) Handles LB161.LocationChanged
  2086. LB161_移動()
  2087. End Sub
  2088. Private Sub LB161_TextChanged(sender As Object, e As EventArgs) Handles LB161.TextChanged
  2089. LB161_移動()
  2090. End Sub
  2091. '-----------------------------------------------------------------------------------------------------------------
  2092. Private Sub LB162_Click(sender As Object, e As EventArgs) Handles LB162.Click
  2093. PA = LB162.Text : 合約內文修改視窗.ShowDialog() : LB162.Text = PA
  2094. End Sub
  2095. '-----------------------------------------------------------------------------------------------------------------
  2096. Private Sub LB163_移動()
  2097. Dim sx, sxx As Integer : sx = LB163.Size.Height : sxx = LB163.Location.Y : LB149.Location = New Drawing.Point(40, sxx + sx) : LB164.Location = New Drawing.Point(88, sxx + sx)
  2098. End Sub
  2099. Private Sub LB163_Click(sender As Object, e As EventArgs) Handles LB163.Click
  2100. PA = LB163.Text : 合約內文修改視窗.ShowDialog() : LB163.Text = PA : LB163_移動()
  2101. End Sub
  2102. Private Sub LB163_LocationChanged(sender As Object, e As EventArgs) Handles LB163.LocationChanged
  2103. LB163_移動()
  2104. End Sub
  2105. Private Sub LB163_TextChanged(sender As Object, e As EventArgs) Handles LB163.TextChanged
  2106. LB163_移動()
  2107. End Sub
  2108. '-----------------------------------------------------------------------------------------------------------------
  2109. Private Sub LB164_移動()
  2110. Dim sx, sxx As Integer : sx = LB164.Size.Height : sxx = LB164.Location.Y
  2111. LB150.Location = New Drawing.Point(40, sxx + sx) : LB165.Location = New Drawing.Point(498, sxx + sx) : LB151.Location = New Drawing.Point(576, sxx + sx)
  2112. End Sub
  2113. Private Sub LB164_Click(sender As Object, e As EventArgs) Handles LB164.Click
  2114. PA = LB164.Text : 合約內文修改視窗.ShowDialog() : LB164.Text = PA : LB164_移動()
  2115. End Sub
  2116. Private Sub LB164_LocationChanged(sender As Object, e As EventArgs) Handles LB164.LocationChanged
  2117. LB164_移動()
  2118. End Sub
  2119. Private Sub LB164_TextChanged(sender As Object, e As EventArgs) Handles LB164.TextChanged
  2120. LB164_移動()
  2121. End Sub
  2122. '-----------------------------------------------------------------------------------------------------------------
  2123. Private Sub LB165_Click(sender As Object, e As EventArgs) Handles LB165.Click
  2124. PA = LB165.Text : 合約內文修改視窗.ShowDialog() : LB165.Text = PA
  2125. End Sub
  2126. Private Sub LB166_Click(sender As Object, e As EventArgs) Handles LB166.Click
  2127. NU5 = LB166.Location.X : BL1 = True : PA = LB166.Text : 合約內文修改視窗.ShowDialog() : LB166.Text = PA : BL1 = False : NU5 = 0
  2128. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB166.Location.Y : LB166.Location = New Drawing.Point(syy1, sxx)
  2129. sxx = LB167.Location.Y : LB167.Location = New Drawing.Point(syy2, sxx) : sxx = LB168.Location.Y : LB168.Location = New Drawing.Point(syy2, sxx)
  2130. End Sub
  2131. '-----------------------------------------------------------------------------------------------------------------
  2132. Private Sub LB167_移動()
  2133. Dim sx, sxx As Integer : sx = LB167.Size.Height : sxx = LB167.Location.Y : NU4 = LB168.Location.X : LB168.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2134. End Sub
  2135. Private Sub LB167_Click(sender As Object, e As EventArgs) Handles LB167.Click
  2136. PA = LB167.Text : 合約內文修改視窗.ShowDialog() : LB167.Text = PA : LB167_移動()
  2137. End Sub
  2138. Private Sub LB167_LocationChanged(sender As Object, e As EventArgs) Handles LB167.LocationChanged
  2139. LB167_移動()
  2140. End Sub
  2141. Private Sub LB167_TextChanged(sender As Object, e As EventArgs) Handles LB167.TextChanged
  2142. LB167_移動()
  2143. End Sub
  2144. '-----------------------------------------------------------------------------------------------------------------
  2145. Private Sub LB168_移動()
  2146. Dim sx, sxx As Integer : sx = LB168.Size.Height : sxx = LB168.Location.Y : NU3 = LB169.Location.X : NU4 = LB170.Location.X
  2147. LB169.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB170.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2148. End Sub
  2149. Private Sub LB168_Click(sender As Object, e As EventArgs) Handles LB168.Click
  2150. PA = LB168.Text : 合約內文修改視窗.ShowDialog() : LB168.Text = PA : LB168_移動()
  2151. End Sub
  2152. Private Sub LB168_LocationChanged(sender As Object, e As EventArgs) Handles LB168.LocationChanged
  2153. LB168_移動()
  2154. End Sub
  2155. Private Sub LB168_TextChanged(sender As Object, e As EventArgs) Handles LB168.TextChanged
  2156. LB168_移動()
  2157. End Sub
  2158. '-----------------------------------------------------------------------------------------------------------------
  2159. Private Sub LB169_Click(sender As Object, e As EventArgs) Handles LB169.Click
  2160. NU5 = LB169.Location.X : BL1 = True : PA = LB169.Text : 合約內文修改視窗.ShowDialog() : LB169.Text = PA : BL1 = False : NU5 = 0
  2161. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB169.Location.Y : LB169.Location = New Drawing.Point(syy1, sxx)
  2162. sxx = LB170.Location.Y : LB170.Location = New Drawing.Point(syy2, sxx) : sxx = LB171.Location.Y : LB171.Location = New Drawing.Point(syy2, sxx)
  2163. End Sub
  2164. '-----------------------------------------------------------------------------------------------------------------
  2165. Private Sub LB170_移動()
  2166. Dim sx, sxx As Integer : sx = LB170.Size.Height : sxx = LB170.Location.Y : NU4 = LB171.Location.X : LB171.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2167. End Sub
  2168. Private Sub LB170_Click(sender As Object, e As EventArgs) Handles LB170.Click
  2169. PA = LB170.Text : 合約內文修改視窗.ShowDialog() : LB170.Text = PA : LB170_移動()
  2170. End Sub
  2171. Private Sub LB170_LocationChanged(sender As Object, e As EventArgs) Handles LB170.LocationChanged
  2172. LB170_移動()
  2173. End Sub
  2174. Private Sub LB170_TextChanged(sender As Object, e As EventArgs) Handles LB170.TextChanged
  2175. LB170_移動()
  2176. End Sub
  2177. '-----------------------------------------------------------------------------------------------------------------
  2178. Private Sub LB171_移動()
  2179. Dim sx, sxx As Integer : sx = LB171.Size.Height : sxx = LB171.Location.Y : NU3 = LB172.Location.X : NU4 = LB173.Location.X
  2180. LB172.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB173.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2181. End Sub
  2182. Private Sub LB171_Click(sender As Object, e As EventArgs) Handles LB171.Click
  2183. PA = LB171.Text : 合約內文修改視窗.ShowDialog() : LB171.Text = PA : LB171_移動()
  2184. End Sub
  2185. Private Sub LB171_LocationChanged(sender As Object, e As EventArgs) Handles LB171.LocationChanged
  2186. LB171_移動()
  2187. End Sub
  2188. Private Sub LB171_TextChanged(sender As Object, e As EventArgs) Handles LB171.TextChanged
  2189. LB171_移動()
  2190. End Sub
  2191. '-----------------------------------------------------------------------------------------------------------------
  2192. Private Sub LB172_Click(sender As Object, e As EventArgs) Handles LB172.Click
  2193. NU5 = LB172.Location.X : BL1 = True : PA = LB172.Text : 合約內文修改視窗.ShowDialog() : LB172.Text = PA : BL1 = False : NU5 = 0
  2194. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB172.Location.Y : LB172.Location = New Drawing.Point(syy1, sxx)
  2195. sxx = LB173.Location.Y : LB173.Location = New Drawing.Point(syy2, sxx) : sxx = LB174.Location.Y : LB174.Location = New Drawing.Point(syy2, sxx)
  2196. End Sub
  2197. '-----------------------------------------------------------------------------------------------------------------
  2198. Private Sub LB173_移動()
  2199. Dim sx, sxx As Integer : sx = LB173.Size.Height : sxx = LB173.Location.Y : NU4 = LB174.Location.X : LB174.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2200. End Sub
  2201. Private Sub LB173_Click(sender As Object, e As EventArgs) Handles LB173.Click
  2202. PA = LB173.Text : 合約內文修改視窗.ShowDialog() : LB173.Text = PA : LB173_移動()
  2203. End Sub
  2204. Private Sub LB173_LocationChanged(sender As Object, e As EventArgs) Handles LB173.LocationChanged
  2205. LB173_移動()
  2206. End Sub
  2207. Private Sub LB173_TextChanged(sender As Object, e As EventArgs) Handles LB173.TextChanged
  2208. LB173_移動()
  2209. End Sub
  2210. '-----------------------------------------------------------------------------------------------------------------
  2211. Private Sub LB174_移動()
  2212. Dim sx, sxx As Integer : sx = LB174.Size.Height : sxx = LB174.Location.Y : NU3 = LB175.Location.X : NU4 = LB176.Location.X
  2213. LB175.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB176.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2214. End Sub
  2215. Private Sub LB174_Click(sender As Object, e As EventArgs) Handles LB174.Click
  2216. PA = LB174.Text : 合約內文修改視窗.ShowDialog() : LB174.Text = PA : LB174_移動()
  2217. End Sub
  2218. Private Sub LB174_LocationChanged(sender As Object, e As EventArgs) Handles LB174.LocationChanged
  2219. LB174_移動()
  2220. End Sub
  2221. Private Sub LB174_TextChanged(sender As Object, e As EventArgs) Handles LB174.TextChanged
  2222. LB174_移動()
  2223. End Sub
  2224. '-----------------------------------------------------------------------------------------------------------------
  2225. Private Sub LB175_Click(sender As Object, e As EventArgs) Handles LB175.Click
  2226. NU5 = LB175.Location.X : BL1 = True : PA = LB175.Text : 合約內文修改視窗.ShowDialog() : LB175.Text = PA : BL1 = False : NU5 = 0
  2227. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB175.Location.Y : LB175.Location = New Drawing.Point(syy1, sxx)
  2228. sxx = LB176.Location.Y : LB176.Location = New Drawing.Point(syy2, sxx) : sxx = LB177.Location.Y : LB177.Location = New Drawing.Point(syy2, sxx)
  2229. End Sub
  2230. '-----------------------------------------------------------------------------------------------------------------
  2231. Private Sub LB176_移動()
  2232. Dim sx, sxx As Integer : sx = LB176.Size.Height : sxx = LB176.Location.Y : NU4 = LB177.Location.X : LB177.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2233. End Sub
  2234. Private Sub LB176_Click(sender As Object, e As EventArgs) Handles LB176.Click
  2235. PA = LB176.Text : 合約內文修改視窗.ShowDialog() : LB176.Text = PA : LB176_移動()
  2236. End Sub
  2237. Private Sub LB176_LocationChanged(sender As Object, e As EventArgs) Handles LB176.LocationChanged
  2238. LB176_移動()
  2239. End Sub
  2240. Private Sub LB176_TextChanged(sender As Object, e As EventArgs) Handles LB176.TextChanged
  2241. LB176_移動()
  2242. End Sub
  2243. '-----------------------------------------------------------------------------------------------------------------
  2244. Private Sub LB177_移動()
  2245. Dim sx, sxx As Integer : sx = LB177.Size.Height : sxx = LB177.Location.Y : NU3 = LB178.Location.X : NU4 = LB179.Location.X
  2246. LB178.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB179.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2247. End Sub
  2248. Private Sub LB177_Click(sender As Object, e As EventArgs) Handles LB177.Click
  2249. PA = LB177.Text : 合約內文修改視窗.ShowDialog() : LB177.Text = PA : LB177_移動()
  2250. End Sub
  2251. Private Sub LB177_LocationChanged(sender As Object, e As EventArgs) Handles LB177.LocationChanged
  2252. LB177_移動()
  2253. End Sub
  2254. Private Sub LB177_TextChanged(sender As Object, e As EventArgs) Handles LB177.TextChanged
  2255. LB177_移動()
  2256. End Sub
  2257. '-----------------------------------------------------------------------------------------------------------------
  2258. Private Sub LB178_Click(sender As Object, e As EventArgs) Handles LB178.Click
  2259. NU5 = LB178.Location.X : BL1 = True : PA = LB178.Text : 合約內文修改視窗.ShowDialog() : LB178.Text = PA : BL1 = False : NU5 = 0
  2260. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB178.Location.Y : LB178.Location = New Drawing.Point(syy1, sxx)
  2261. sxx = LB179.Location.Y : LB179.Location = New Drawing.Point(syy2, sxx) : sxx = LB180.Location.Y : LB180.Location = New Drawing.Point(syy2, sxx)
  2262. End Sub
  2263. '-----------------------------------------------------------------------------------------------------------------
  2264. Private Sub LB179_移動()
  2265. Dim sx, sxx As Integer : sx = LB179.Size.Height : sxx = LB179.Location.Y : NU4 = LB180.Location.X : LB180.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2266. End Sub
  2267. Private Sub LB179_Click(sender As Object, e As EventArgs) Handles LB179.Click
  2268. PA = LB179.Text : 合約內文修改視窗.ShowDialog() : LB179.Text = PA
  2269. End Sub
  2270. Private Sub LB179_LocationChanged(sender As Object, e As EventArgs) Handles LB179.LocationChanged
  2271. LB179_移動()
  2272. End Sub
  2273. Private Sub LB179_TextChanged(sender As Object, e As EventArgs) Handles LB179.TextChanged
  2274. LB179_移動()
  2275. End Sub
  2276. '-----------------------------------------------------------------------------------------------------------------
  2277. Private Sub LB180_移動()
  2278. Dim sx, sxx As Integer : sx = LB180.Size.Height : sxx = LB180.Location.Y : NU3 = LB181.Location.X : NU4 = LB182.Location.X
  2279. LB181.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB182.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2280. End Sub
  2281. Private Sub LB180_Click(sender As Object, e As EventArgs) Handles LB180.Click
  2282. PA = LB180.Text : 合約內文修改視窗.ShowDialog() : LB180.Text = PA : LB180_移動()
  2283. End Sub
  2284. Private Sub LB180_LocationChanged(sender As Object, e As EventArgs) Handles LB180.LocationChanged
  2285. LB180_移動()
  2286. End Sub
  2287. Private Sub LB180_TextChanged(sender As Object, e As EventArgs) Handles LB180.TextChanged
  2288. LB180_移動()
  2289. End Sub
  2290. '-----------------------------------------------------------------------------------------------------------------
  2291. Private Sub LB181_Click(sender As Object, e As EventArgs) Handles LB181.Click
  2292. NU5 = LB178.Location.X : BL1 = True : PA = LB181.Text : 合約內文修改視窗.ShowDialog() : LB181.Text = PA : BL1 = False : NU5 = 0
  2293. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB181.Location.Y : LB181.Location = New Drawing.Point(syy1, sxx)
  2294. sxx = LB182.Location.Y : LB182.Location = New Drawing.Point(syy2, sxx) : sxx = LB183.Location.Y : LB183.Location = New Drawing.Point(syy2, sxx)
  2295. End Sub
  2296. '-----------------------------------------------------------------------------------------------------------------
  2297. Private Sub LB182_移動()
  2298. Dim sx, sxx As Integer : sx = LB182.Size.Height : sxx = LB182.Location.Y : NU4 = LB183.Location.X : LB183.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2299. End Sub
  2300. Private Sub LB182_Click(sender As Object, e As EventArgs) Handles LB182.Click
  2301. PA = LB182.Text : 合約內文修改視窗.ShowDialog() : LB182.Text = PA : LB182_移動()
  2302. End Sub
  2303. Private Sub LB182_LocationChanged(sender As Object, e As EventArgs) Handles LB182.LocationChanged
  2304. LB182_移動()
  2305. End Sub
  2306. Private Sub LB182_TextChanged(sender As Object, e As EventArgs) Handles LB182.TextChanged
  2307. LB182_移動()
  2308. End Sub
  2309. '-----------------------------------------------------------------------------------------------------------------
  2310. Private Sub LB183_移動()
  2311. Dim sx, sxx As Integer : sx = LB183.Size.Height : sxx = LB183.Location.Y : NU3 = LB184.Location.X : NU4 = LB185.Location.X
  2312. LB184.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB185.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2313. End Sub
  2314. Private Sub LB183_Click(sender As Object, e As EventArgs) Handles LB183.Click
  2315. PA = LB183.Text : 合約內文修改視窗.ShowDialog() : LB183.Text = PA : LB183_移動()
  2316. End Sub
  2317. Private Sub LB183_LocationChanged(sender As Object, e As EventArgs) Handles LB183.LocationChanged
  2318. LB183_移動()
  2319. End Sub
  2320. Private Sub LB183_TextChanged(sender As Object, e As EventArgs) Handles LB183.TextChanged
  2321. LB183_移動()
  2322. End Sub
  2323. '-----------------------------------------------------------------------------------------------------------------
  2324. Private Sub LB184_Click(sender As Object, e As EventArgs) Handles LB184.Click
  2325. NU5 = LB178.Location.X : BL1 = True : PA = LB184.Text : 合約內文修改視窗.ShowDialog() : LB184.Text = PA : BL1 = False : NU5 = 0
  2326. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB184.Location.Y : LB184.Location = New Drawing.Point(syy1, sxx)
  2327. sxx = LB185.Location.Y : LB185.Location = New Drawing.Point(syy2, sxx) : sxx = LB186.Location.Y : LB186.Location = New Drawing.Point(syy2, sxx)
  2328. End Sub
  2329. '-----------------------------------------------------------------------------------------------------------------
  2330. Private Sub LB185_移動()
  2331. Dim sx, sxx As Integer : sx = LB185.Size.Height : sxx = LB185.Location.Y : NU4 = LB186.Location.X : LB186.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2332. End Sub
  2333. Private Sub LB185_Click(sender As Object, e As EventArgs) Handles LB185.Click
  2334. PA = LB185.Text : 合約內文修改視窗.ShowDialog() : LB185.Text = PA : LB185_移動()
  2335. End Sub
  2336. Private Sub LB185_LocationChanged(sender As Object, e As EventArgs) Handles LB185.LocationChanged
  2337. LB185_移動()
  2338. End Sub
  2339. Private Sub LB185_TextChanged(sender As Object, e As EventArgs) Handles LB185.TextChanged
  2340. LB185_移動()
  2341. End Sub
  2342. '-----------------------------------------------------------------------------------------------------------------
  2343. Private Sub LB186_Click(sender As Object, e As EventArgs) Handles LB186.Click
  2344. PA = LB186.Text : 合約內文修改視窗.ShowDialog() : LB186.Text = PA
  2345. End Sub
  2346. '---------------------------第十章----------------------------------------------------------------------------------------------------------------------------------------------
  2347. Private Sub LB187_Click(sender As Object, e As EventArgs) Handles LB187.Click
  2348. PA = LB187.Text : 合約內文修改視窗.ShowDialog() : LB187.Text = PA
  2349. End Sub
  2350. Private Sub LB188_Click(sender As Object, e As EventArgs) Handles LB188.Click
  2351. PA = LB188.Text : 合約內文修改視窗.ShowDialog() : LB188.Text = PA
  2352. End Sub
  2353. Private Sub LB189_Click(sender As Object, e As EventArgs) Handles LB189.Click
  2354. PA = LB189.Text : 合約內文修改視窗.ShowDialog() : LB189.Text = PA
  2355. End Sub
  2356. '-----------------------------------------------------------------------------------------------------------------
  2357. Private Sub LB226_Click(sender As Object, e As EventArgs) Handles LB226.Click
  2358. NU5 = LB226.Location.X : BL1 = True : PA = LB226.Text : 合約內文修改視窗.ShowDialog() : LB226.Text = PA : BL1 = False : NU5 = 0
  2359. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB226.Location.Y : LB226.Location = New Drawing.Point(syy1, sxx)
  2360. sxx = LB137.Location.Y : LB137.Location = New Drawing.Point(syy2, sxx) : sxx = LB138.Location.Y : LB138.Location = New Drawing.Point(syy2, sxx)
  2361. End Sub
  2362. '-----------------------------------------------------------------------------------------------------------------
  2363. Private Sub LB137_移動()
  2364. Dim sx, sxx As Integer : sx = LB137.Size.Height : sxx = LB137.Location.Y : NU4 = LB138.Location.X : LB138.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2365. End Sub
  2366. Private Sub LB137_Click(sender As Object, e As EventArgs) Handles LB137.Click
  2367. PA = LB137.Text : 合約內文修改視窗.ShowDialog() : LB137.Text = PA : LB137_移動()
  2368. End Sub
  2369. Private Sub LB137_LocationChanged(sender As Object, e As EventArgs) Handles LB137.LocationChanged
  2370. LB137_移動()
  2371. End Sub
  2372. Private Sub LB137_TextChanged(sender As Object, e As EventArgs) Handles LB137.TextChanged
  2373. LB137_移動()
  2374. End Sub
  2375. '-----------------------------------------------------------------------------------------------------------------
  2376. Private Sub LB138_移動()
  2377. Dim sx, sxx As Integer : sx = LB138.Size.Height : sxx = LB138.Location.Y : NU3 = LB227.Location.X : NU4 = LB139.Location.X
  2378. LB227.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB139.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2379. End Sub
  2380. Private Sub LB138_Click(sender As Object, e As EventArgs) Handles LB138.Click
  2381. PA = LB138.Text : 合約內文修改視窗.ShowDialog() : LB138.Text = PA : LB138_移動()
  2382. End Sub
  2383. Private Sub LB138_LocationChanged(sender As Object, e As EventArgs) Handles LB138.LocationChanged
  2384. LB138_移動()
  2385. End Sub
  2386. Private Sub LB138_TextChanged(sender As Object, e As EventArgs) Handles LB138.TextChanged
  2387. LB138_移動()
  2388. End Sub
  2389. '-----------------------------------------------------------------------------------------------------------------
  2390. Private Sub LB227_Click(sender As Object, e As EventArgs) Handles LB227.Click
  2391. NU5 = LB227.Location.X : BL1 = True : PA = LB227.Text : 合約內文修改視窗.ShowDialog() : LB227.Text = PA : BL1 = False : NU5 = 0
  2392. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB227.Location.Y : LB227.Location = New Drawing.Point(syy1, sxx)
  2393. sxx = LB139.Location.Y : LB139.Location = New Drawing.Point(syy2, sxx) : sxx = LB140.Location.Y : LB140.Location = New Drawing.Point(syy2, sxx)
  2394. End Sub
  2395. '-----------------------------------------------------------------------------------------------------------------
  2396. Private Sub LB139_移動()
  2397. Dim sx, sxx As Integer : sx = LB139.Size.Height : sxx = LB139.Location.Y : NU4 = LB140.Location.X : LB140.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2398. End Sub
  2399. Private Sub LB139_Click(sender As Object, e As EventArgs) Handles LB139.Click
  2400. PA = LB139.Text : 合約內文修改視窗.ShowDialog() : LB139.Text = PA : LB139_移動()
  2401. End Sub
  2402. Private Sub LB139_LocationChanged(sender As Object, e As EventArgs) Handles LB139.LocationChanged
  2403. LB139_移動()
  2404. End Sub
  2405. Private Sub LB139_TextChanged(sender As Object, e As EventArgs) Handles LB139.TextChanged
  2406. LB139_移動()
  2407. End Sub
  2408. '-----------------------------------------------------------------------------------------------------------------
  2409. Private Sub LB140_移動()
  2410. Dim sx, sxx As Integer : sx = LB140.Size.Height : sxx = LB140.Location.Y : NU3 = LB190.Location.X : NU4 = LB191.Location.X
  2411. LB190.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB191.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2412. End Sub
  2413. Private Sub LB140_Click(sender As Object, e As EventArgs) Handles LB140.Click
  2414. PA = LB140.Text : 合約內文修改視窗.ShowDialog() : LB140.Text = PA : LB140_移動()
  2415. End Sub
  2416. Private Sub LB140_LocationChanged(sender As Object, e As EventArgs) Handles LB140.LocationChanged
  2417. LB140_移動()
  2418. End Sub
  2419. Private Sub LB140_TextChanged(sender As Object, e As EventArgs) Handles LB140.TextChanged
  2420. LB140_移動()
  2421. End Sub
  2422. '-----------------------------------------------------------------------------------------------------------------
  2423. Private Sub LB190_Click(sender As Object, e As EventArgs) Handles LB190.Click
  2424. NU5 = LB190.Location.X : BL1 = True : PA = LB190.Text : 合約內文修改視窗.ShowDialog() : LB190.Text = PA : BL1 = False : NU5 = 0
  2425. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB190.Location.Y : LB190.Location = New Drawing.Point(syy1, sxx)
  2426. sxx = LB191.Location.Y : LB191.Location = New Drawing.Point(syy2, sxx) : sxx = LB192.Location.Y : LB192.Location = New Drawing.Point(syy2, sxx)
  2427. End Sub
  2428. '-----------------------------------------------------------------------------------------------------------------
  2429. Private Sub LB191_移動()
  2430. Dim sx, sxx As Integer : sx = LB191.Size.Height : sxx = LB191.Location.Y : NU4 = LB192.Location.X : LB192.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2431. End Sub
  2432. Private Sub LB191_Click(sender As Object, e As EventArgs) Handles LB191.Click
  2433. PA = LB191.Text : 合約內文修改視窗.ShowDialog() : LB191.Text = PA : LB191_移動()
  2434. End Sub
  2435. Private Sub LB191_LocationChanged(sender As Object, e As EventArgs) Handles LB191.LocationChanged
  2436. LB191_移動()
  2437. End Sub
  2438. Private Sub LB191_TextChanged(sender As Object, e As EventArgs) Handles LB191.TextChanged
  2439. LB191_移動()
  2440. End Sub
  2441. '-----------------------------------------------------------------------------------------------------------------
  2442. Private Sub LB192_移動()
  2443. Dim sx, sxx As Integer : sx = LB192.Size.Height : sxx = LB192.Location.Y : NU3 = LB193.Location.X : NU4 = LB194.Location.X
  2444. LB193.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB194.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2445. End Sub
  2446. Private Sub LB192_Click(sender As Object, e As EventArgs) Handles LB192.Click
  2447. PA = LB192.Text : 合約內文修改視窗.ShowDialog() : LB192.Text = PA : LB192_移動()
  2448. End Sub
  2449. Private Sub LB192_LocationChanged(sender As Object, e As EventArgs) Handles LB192.LocationChanged
  2450. LB192_移動()
  2451. End Sub
  2452. Private Sub LB192_TextChanged(sender As Object, e As EventArgs) Handles LB192.TextChanged
  2453. LB192_移動()
  2454. End Sub
  2455. '-----------------------------------------------------------------------------------------------------------------
  2456. Private Sub LB193_Click(sender As Object, e As EventArgs) Handles LB193.Click
  2457. NU5 = LB193.Location.X : BL1 = True : PA = LB193.Text : 合約內文修改視窗.ShowDialog() : LB193.Text = PA : BL1 = False : NU5 = 0
  2458. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB193.Location.Y : LB193.Location = New Drawing.Point(syy1, sxx)
  2459. sxx = LB194.Location.Y : LB194.Location = New Drawing.Point(syy2, sxx) : sxx = LB195.Location.Y : LB195.Location = New Drawing.Point(syy2, sxx)
  2460. End Sub
  2461. '-----------------------------------------------------------------------------------------------------------------
  2462. Private Sub LB194_移動()
  2463. Dim sx, sxx As Integer : sx = LB194.Size.Height : sxx = LB194.Location.Y : NU4 = LB195.Location.X : LB195.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2464. End Sub
  2465. Private Sub LB194_Click(sender As Object, e As EventArgs) Handles LB194.Click
  2466. PA = LB194.Text : 合約內文修改視窗.ShowDialog() : LB194.Text = PA : LB194_移動()
  2467. End Sub
  2468. Private Sub LB194_LocationChanged(sender As Object, e As EventArgs) Handles LB194.LocationChanged
  2469. LB194_移動()
  2470. End Sub
  2471. Private Sub LB194_TextChanged(sender As Object, e As EventArgs) Handles LB194.TextChanged
  2472. LB194_移動()
  2473. End Sub
  2474. '-----------------------------------------------------------------------------------------------------------------
  2475. Private Sub LB195_移動()
  2476. Dim sx, sxx As Integer : sx = LB195.Size.Height : sxx = LB195.Location.Y : NU3 = LB196.Location.X : NU4 = LB197.Location.X
  2477. LB196.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB197.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2478. End Sub
  2479. Private Sub LB195_Click(sender As Object, e As EventArgs) Handles LB195.Click
  2480. PA = LB195.Text : 合約內文修改視窗.ShowDialog() : LB195.Text = PA : LB195_移動()
  2481. End Sub
  2482. Private Sub LB195_LocationChanged(sender As Object, e As EventArgs) Handles LB195.LocationChanged
  2483. LB195_移動()
  2484. End Sub
  2485. Private Sub LB195_TextChanged(sender As Object, e As EventArgs) Handles LB195.TextChanged
  2486. LB195_移動()
  2487. End Sub
  2488. '-----------------------------------------------------------------------------------------------------------------
  2489. Private Sub LB196_Click(sender As Object, e As EventArgs) Handles LB196.Click
  2490. NU5 = LB196.Location.X : BL1 = True : PA = LB196.Text : 合約內文修改視窗.ShowDialog() : LB196.Text = PA : BL1 = False : NU5 = 0
  2491. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB196.Location.Y : LB196.Location = New Drawing.Point(syy1, sxx)
  2492. sxx = LB197.Location.Y : LB197.Location = New Drawing.Point(syy2, sxx) : sxx = LB198.Location.Y : LB198.Location = New Drawing.Point(syy2, sxx)
  2493. End Sub
  2494. '-----------------------------------------------------------------------------------------------------------------
  2495. Private Sub LB197_移動()
  2496. Dim sx, sxx As Integer : sx = LB197.Size.Height : sxx = LB197.Location.Y : NU4 = LB198.Location.X : LB198.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2497. End Sub
  2498. Private Sub LB197_Click(sender As Object, e As EventArgs) Handles LB197.Click
  2499. PA = LB197.Text : 合約內文修改視窗.ShowDialog() : LB197.Text = PA : LB197_移動()
  2500. End Sub
  2501. Private Sub LB197_LocationChanged(sender As Object, e As EventArgs) Handles LB197.LocationChanged
  2502. LB197_移動()
  2503. End Sub
  2504. Private Sub LB197_TextChanged(sender As Object, e As EventArgs) Handles LB197.TextChanged
  2505. LB197_移動()
  2506. End Sub
  2507. '-----------------------------------------------------------------------------------------------------------------
  2508. Private Sub LB198_移動()
  2509. Dim sx, sxx As Integer : sx = LB198.Size.Height : sxx = LB198.Location.Y : NU3 = LB199.Location.X : NU4 = LB200.Location.X
  2510. LB199.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB200.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2511. End Sub
  2512. Private Sub LB198_Click(sender As Object, e As EventArgs) Handles LB198.Click
  2513. PA = LB198.Text : 合約內文修改視窗.ShowDialog() : LB198.Text = PA : LB198_移動()
  2514. End Sub
  2515. Private Sub LB198_LocationChanged(sender As Object, e As EventArgs) Handles LB198.LocationChanged
  2516. LB198_移動()
  2517. End Sub
  2518. Private Sub LB198_TextChanged(sender As Object, e As EventArgs) Handles LB198.TextChanged
  2519. LB198_移動()
  2520. End Sub
  2521. '-----------------------------------------------------------------------------------------------------------------
  2522. Private Sub LB199_Click(sender As Object, e As EventArgs) Handles LB199.Click
  2523. NU5 = LB199.Location.X : BL1 = True : PA = LB199.Text : 合約內文修改視窗.ShowDialog() : LB199.Text = PA : BL1 = False : NU5 = 0
  2524. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB199.Location.Y : LB199.Location = New Drawing.Point(syy1, sxx)
  2525. sxx = LB200.Location.Y : LB200.Location = New Drawing.Point(syy2, sxx) : sxx = LB201.Location.Y : LB201.Location = New Drawing.Point(syy2, sxx)
  2526. End Sub
  2527. '-----------------------------------------------------------------------------------------------------------------
  2528. Private Sub LB200_移動()
  2529. Dim sx, sxx As Integer : sx = LB200.Size.Height : sxx = LB200.Location.Y : NU4 = LB201.Location.X : LB201.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2530. End Sub
  2531. Private Sub LB200_Click(sender As Object, e As EventArgs) Handles LB200.Click
  2532. PA = LB200.Text : 合約內文修改視窗.ShowDialog() : LB200.Text = PA : LB200_移動()
  2533. End Sub
  2534. Private Sub LB200_LocationChanged(sender As Object, e As EventArgs) Handles LB200.LocationChanged
  2535. LB200_移動()
  2536. End Sub
  2537. Private Sub LB200_TextChanged(sender As Object, e As EventArgs) Handles LB200.TextChanged
  2538. LB200_移動()
  2539. End Sub
  2540. '-----------------------------------------------------------------------------------------------------------------
  2541. Private Sub LB201_移動()
  2542. Dim sx, sxx As Integer : sx = LB201.Size.Height : sxx = LB201.Location.Y : NU3 = LB202.Location.X : NU4 = LB203.Location.X
  2543. LB202.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB203.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2544. End Sub
  2545. Private Sub LB201_Click(sender As Object, e As EventArgs) Handles LB201.Click
  2546. PA = LB201.Text : 合約內文修改視窗.ShowDialog() : LB201.Text = PA : LB201_移動()
  2547. End Sub
  2548. Private Sub LB201_LocationChanged(sender As Object, e As EventArgs) Handles LB201.LocationChanged
  2549. LB201_移動()
  2550. End Sub
  2551. Private Sub LB201_TextChanged(sender As Object, e As EventArgs) Handles LB201.TextChanged
  2552. LB201_移動()
  2553. End Sub
  2554. '-----------------------------------------------------------------------------------------------------------------
  2555. Private Sub LB202_Click(sender As Object, e As EventArgs) Handles LB202.Click
  2556. NU5 = LB202.Location.X : BL1 = True : PA = LB202.Text : 合約內文修改視窗.ShowDialog() : LB202.Text = PA : BL1 = False : NU5 = 0
  2557. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB202.Location.Y : LB202.Location = New Drawing.Point(syy1, sxx)
  2558. sxx = LB203.Location.Y : LB203.Location = New Drawing.Point(syy2, sxx) : sxx = LB204.Location.Y : LB204.Location = New Drawing.Point(syy2, sxx)
  2559. End Sub
  2560. '-----------------------------------------------------------------------------------------------------------------
  2561. Private Sub LB203_移動()
  2562. Dim sx, sxx As Integer : sx = LB203.Size.Height : sxx = LB203.Location.Y : NU4 = LB204.Location.X : LB204.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2563. End Sub
  2564. Private Sub LB203_Click(sender As Object, e As EventArgs) Handles LB203.Click
  2565. PA = LB203.Text : 合約內文修改視窗.ShowDialog() : LB203.Text = PA : LB203_移動()
  2566. End Sub
  2567. Private Sub LB203_LocationChanged(sender As Object, e As EventArgs) Handles LB203.LocationChanged
  2568. LB203_移動()
  2569. End Sub
  2570. Private Sub LB203_TextChanged(sender As Object, e As EventArgs) Handles LB203.TextChanged
  2571. LB203_移動()
  2572. End Sub
  2573. '-----------------------------------------------------------------------------------------------------------------
  2574. Private Sub LB204_移動()
  2575. Dim sx, sxx As Integer : sx = LB204.Size.Height : sxx = LB204.Location.Y : NU3 = LB205.Location.X : NU4 = LB206.Location.X
  2576. LB205.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB206.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2577. End Sub
  2578. Private Sub LB204_Click(sender As Object, e As EventArgs) Handles LB204.Click
  2579. PA = LB204.Text : 合約內文修改視窗.ShowDialog() : LB204.Text = PA : LB204_移動()
  2580. End Sub
  2581. Private Sub LB204_LocationChanged(sender As Object, e As EventArgs) Handles LB204.LocationChanged
  2582. LB204_移動()
  2583. End Sub
  2584. Private Sub LB204_TextChanged(sender As Object, e As EventArgs) Handles LB204.TextChanged
  2585. LB204_移動()
  2586. End Sub
  2587. '-----------------------------------------------------------------------------------------------------------------
  2588. Private Sub LB205_Click(sender As Object, e As EventArgs) Handles LB205.Click
  2589. NU5 = LB205.Location.X : BL1 = True : PA = LB205.Text : 合約內文修改視窗.ShowDialog() : LB205.Text = PA : BL1 = False : NU5 = 0
  2590. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB205.Location.Y : LB205.Location = New Drawing.Point(syy1, sxx)
  2591. sxx = LB206.Location.Y : LB206.Location = New Drawing.Point(syy2, sxx) : sxx = LB207.Location.Y : LB207.Location = New Drawing.Point(syy2, sxx)
  2592. End Sub
  2593. '-----------------------------------------------------------------------------------------------------------------
  2594. Private Sub LB206_移動()
  2595. Dim sx, sxx As Integer : sx = LB206.Size.Height : sxx = LB206.Location.Y : NU4 = LB207.Location.X : LB207.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2596. End Sub
  2597. Private Sub LB206_Click(sender As Object, e As EventArgs) Handles LB206.Click
  2598. PA = LB206.Text : 合約內文修改視窗.ShowDialog() : LB206.Text = PA : LB206_移動()
  2599. End Sub
  2600. Private Sub LB206_LocationChanged(sender As Object, e As EventArgs) Handles LB206.LocationChanged
  2601. LB206_移動()
  2602. End Sub
  2603. Private Sub LB206_TextChanged(sender As Object, e As EventArgs) Handles LB206.TextChanged
  2604. LB206_移動()
  2605. End Sub
  2606. '-----------------------------------------------------------------------------------------------------------------
  2607. Private Sub LB207_移動()
  2608. Dim sx, sxx As Integer : sx = LB207.Size.Height : sxx = LB207.Location.Y : NU3 = LB208.Location.X : NU4 = LB209.Location.X
  2609. LB208.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB209.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2610. End Sub
  2611. Private Sub LB207_Click(sender As Object, e As EventArgs) Handles LB207.Click
  2612. PA = LB207.Text : 合約內文修改視窗.ShowDialog() : LB207.Text = PA : LB207_移動()
  2613. End Sub
  2614. Private Sub LB207_LocationChanged(sender As Object, e As EventArgs) Handles LB207.LocationChanged
  2615. LB207_移動()
  2616. End Sub
  2617. Private Sub LB207_TextChanged(sender As Object, e As EventArgs) Handles LB207.TextChanged
  2618. LB207_移動()
  2619. End Sub
  2620. '-----------------------------------------------------------------------------------------------------------------
  2621. Private Sub LB208_Click(sender As Object, e As EventArgs) Handles LB208.Click
  2622. NU5 = LB208.Location.X : BL1 = True : PA = LB208.Text : 合約內文修改視窗.ShowDialog() : LB208.Text = PA : BL1 = False : NU5 = 0
  2623. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB208.Location.Y : LB208.Location = New Drawing.Point(syy1, sxx)
  2624. sxx = LB209.Location.Y : LB209.Location = New Drawing.Point(syy2, sxx) : sxx = LB210.Location.Y : LB210.Location = New Drawing.Point(syy2, sxx)
  2625. End Sub
  2626. '-----------------------------------------------------------------------------------------------------------------
  2627. Private Sub LB209_移動()
  2628. Dim sx, sxx As Integer : sx = LB209.Size.Height : sxx = LB209.Location.Y : NU4 = LB210.Location.X : LB210.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2629. End Sub
  2630. Private Sub LB209_Click(sender As Object, e As EventArgs) Handles LB209.Click
  2631. PA = LB209.Text : 合約內文修改視窗.ShowDialog() : LB209.Text = PA : LB209_移動()
  2632. End Sub
  2633. Private Sub LB209_LocationChanged(sender As Object, e As EventArgs) Handles LB209.LocationChanged
  2634. LB209_移動()
  2635. End Sub
  2636. Private Sub LB209_TextChanged(sender As Object, e As EventArgs) Handles LB209.TextChanged
  2637. LB209_移動()
  2638. End Sub
  2639. '-----------------------------------------------------------------------------------------------------------------
  2640. Private Sub LB210_移動()
  2641. Dim sx, sxx As Integer : sx = LB210.Size.Height : sxx = LB210.Location.Y : NU3 = LB211.Location.X : NU4 = LB212.Location.X
  2642. LB211.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB212.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2643. End Sub
  2644. Private Sub LB210_Click(sender As Object, e As EventArgs) Handles LB210.Click
  2645. PA = LB210.Text : 合約內文修改視窗.ShowDialog() : LB210.Text = PA : LB210_移動()
  2646. End Sub
  2647. Private Sub LB210_LocationChanged(sender As Object, e As EventArgs) Handles LB210.LocationChanged
  2648. LB210_移動()
  2649. End Sub
  2650. Private Sub LB210_TextChanged(sender As Object, e As EventArgs) Handles LB210.TextChanged
  2651. LB210_移動()
  2652. End Sub
  2653. '-----------------------------------------------------------------------------------------------------------------
  2654. Private Sub LB211_Click(sender As Object, e As EventArgs) Handles LB211.Click
  2655. NU5 = LB211.Location.X : BL1 = True : PA = LB211.Text : 合約內文修改視窗.ShowDialog() : LB211.Text = PA : BL1 = False : NU5 = 0
  2656. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB211.Location.Y : LB211.Location = New Drawing.Point(syy1, sxx)
  2657. sxx = LB212.Location.Y : LB212.Location = New Drawing.Point(syy2, sxx) : sxx = LB213.Location.Y : LB213.Location = New Drawing.Point(syy2, sxx)
  2658. End Sub
  2659. '-----------------------------------------------------------------------------------------------------------------
  2660. Private Sub LB212_移動()
  2661. Dim sx, sxx As Integer : sx = LB212.Size.Height : sxx = LB212.Location.Y : NU4 = LB213.Location.X : LB213.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2662. End Sub
  2663. Private Sub LB212_Click(sender As Object, e As EventArgs) Handles LB212.Click
  2664. PA = LB212.Text : 合約內文修改視窗.ShowDialog() : LB212.Text = PA : LB212_移動()
  2665. End Sub
  2666. Private Sub LB212_LocationChanged(sender As Object, e As EventArgs) Handles LB212.LocationChanged
  2667. LB212_移動()
  2668. End Sub
  2669. Private Sub LB212_TextChanged(sender As Object, e As EventArgs) Handles LB212.TextChanged
  2670. LB212_移動()
  2671. End Sub
  2672. '-----------------------------------------------------------------------------------------------------------------
  2673. Private Sub LB213_移動()
  2674. Dim sx, sxx As Integer : sx = LB213.Size.Height : sxx = LB213.Location.Y : NU3 = LB214.Location.X : NU4 = LB215.Location.X
  2675. LB214.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB215.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2676. End Sub
  2677. Private Sub LB213_Click(sender As Object, e As EventArgs) Handles LB213.Click
  2678. PA = LB213.Text : 合約內文修改視窗.ShowDialog() : LB213.Text = PA : LB213_移動()
  2679. End Sub
  2680. Private Sub LB213_LocationChanged(sender As Object, e As EventArgs) Handles LB213.LocationChanged
  2681. LB213_移動()
  2682. End Sub
  2683. Private Sub LB213_TextChanged(sender As Object, e As EventArgs) Handles LB213.TextChanged
  2684. LB213_移動()
  2685. End Sub
  2686. '-----------------------------------------------------------------------------------------------------------------
  2687. Private Sub LB214_Click(sender As Object, e As EventArgs) Handles LB214.Click
  2688. NU5 = LB214.Location.X : BL1 = True : PA = LB214.Text : 合約內文修改視窗.ShowDialog() : LB214.Text = PA : BL1 = False : NU5 = 0
  2689. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB214.Location.Y : LB214.Location = New Drawing.Point(syy1, sxx)
  2690. sxx = LB215.Location.Y : LB215.Location = New Drawing.Point(syy2, sxx) : sxx = LB216.Location.Y : LB216.Location = New Drawing.Point(syy2, sxx)
  2691. End Sub
  2692. '-----------------------------------------------------------------------------------------------------------------
  2693. Private Sub LB215_移動()
  2694. Dim sx, sxx As Integer : sx = LB215.Size.Height : sxx = LB215.Location.Y : NU4 = LB216.Location.X : LB216.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2695. End Sub
  2696. Private Sub LB215_Click(sender As Object, e As EventArgs) Handles LB215.Click
  2697. PA = LB215.Text : 合約內文修改視窗.ShowDialog() : LB215.Text = PA : LB215_移動()
  2698. End Sub
  2699. Private Sub LB215_LocationChanged(sender As Object, e As EventArgs) Handles LB215.LocationChanged
  2700. LB215_移動()
  2701. End Sub
  2702. Private Sub LB215_TextChanged(sender As Object, e As EventArgs) Handles LB215.TextChanged
  2703. LB215_移動()
  2704. End Sub
  2705. '-----------------------------------------------------------------------------------------------------------------
  2706. Private Sub LB216_移動()
  2707. Dim sx, sxx As Integer : sx = LB216.Size.Height : sxx = LB216.Location.Y : NU3 = LB217.Location.X : NU4 = LB218.Location.X
  2708. LB217.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB218.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2709. End Sub
  2710. Private Sub LB216_Click(sender As Object, e As EventArgs) Handles LB216.Click
  2711. PA = LB216.Text : 合約內文修改視窗.ShowDialog() : LB216.Text = PA : LB216_移動()
  2712. End Sub
  2713. Private Sub LB216_LocationChanged(sender As Object, e As EventArgs) Handles LB216.LocationChanged
  2714. LB216_移動()
  2715. End Sub
  2716. Private Sub LB216_TextChanged(sender As Object, e As EventArgs) Handles LB216.TextChanged
  2717. LB216_移動()
  2718. End Sub
  2719. '-----------------------------------------------------------------------------------------------------------------
  2720. Private Sub LB217_Click(sender As Object, e As EventArgs) Handles LB217.Click
  2721. NU5 = LB217.Location.X : BL1 = True : PA = LB217.Text : 合約內文修改視窗.ShowDialog() : LB217.Text = PA : BL1 = False : NU5 = 0
  2722. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB217.Location.Y : LB217.Location = New Drawing.Point(syy1, sxx)
  2723. sxx = LB218.Location.Y : LB218.Location = New Drawing.Point(syy2, sxx) : sxx = LB219.Location.Y : LB219.Location = New Drawing.Point(syy2, sxx)
  2724. End Sub
  2725. '-----------------------------------------------------------------------------------------------------------------
  2726. Private Sub LB218_移動()
  2727. Dim sx, sxx As Integer : sx = LB218.Size.Height : sxx = LB218.Location.Y : NU4 = LB219.Location.X : LB219.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2728. End Sub
  2729. Private Sub LB218_Click(sender As Object, e As EventArgs) Handles LB218.Click
  2730. PA = LB218.Text : 合約內文修改視窗.ShowDialog() : LB218.Text = PA : LB218_移動()
  2731. End Sub
  2732. Private Sub LB218_LocationChanged(sender As Object, e As EventArgs) Handles LB218.LocationChanged
  2733. LB218_移動()
  2734. End Sub
  2735. Private Sub LB218_TextChanged(sender As Object, e As EventArgs) Handles LB218.TextChanged
  2736. LB218_移動()
  2737. End Sub
  2738. '-----------------------------------------------------------------------------------------------------------------
  2739. Private Sub LB219_移動()
  2740. Dim sx, sxx As Integer : sx = LB219.Size.Height : sxx = LB219.Location.Y : NU3 = LB220.Location.X : NU4 = LB221.Location.X
  2741. LB220.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB221.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2742. End Sub
  2743. Private Sub LB219_Click(sender As Object, e As EventArgs) Handles LB219.Click
  2744. PA = LB219.Text : 合約內文修改視窗.ShowDialog() : LB219.Text = PA : LB219_移動()
  2745. End Sub
  2746. Private Sub LB219_LocationChanged(sender As Object, e As EventArgs) Handles LB219.LocationChanged
  2747. LB219_移動()
  2748. End Sub
  2749. Private Sub LB219_TextChanged(sender As Object, e As EventArgs) Handles LB219.TextChanged
  2750. LB219_移動()
  2751. End Sub
  2752. '-----------------------------------------------------------------------------------------------------------------
  2753. Private Sub LB220_Click(sender As Object, e As EventArgs) Handles LB220.Click
  2754. NU5 = LB220.Location.X : BL1 = True : PA = LB220.Text : 合約內文修改視窗.ShowDialog() : LB220.Text = PA : BL1 = False : NU5 = 0
  2755. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB220.Location.Y : LB220.Location = New Drawing.Point(syy1, sxx)
  2756. sxx = LB221.Location.Y : LB221.Location = New Drawing.Point(syy2, sxx) : sxx = LB222.Location.Y : LB222.Location = New Drawing.Point(syy2, sxx)
  2757. End Sub
  2758. '-----------------------------------------------------------------------------------------------------------------
  2759. Private Sub LB221_移動()
  2760. Dim sx, sxx As Integer : sx = LB221.Size.Height : sxx = LB221.Location.Y : NU4 = LB222.Location.X : LB222.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2761. End Sub
  2762. Private Sub LB221_Click(sender As Object, e As EventArgs) Handles LB221.Click
  2763. PA = LB221.Text : 合約內文修改視窗.ShowDialog() : LB221.Text = PA : LB221_移動()
  2764. End Sub
  2765. Private Sub LB221_LocationChanged(sender As Object, e As EventArgs) Handles LB221.LocationChanged
  2766. LB221_移動()
  2767. End Sub
  2768. Private Sub LB221_TextChanged(sender As Object, e As EventArgs) Handles LB221.TextChanged
  2769. LB221_移動()
  2770. End Sub
  2771. '-----------------------------------------------------------------------------------------------------------------
  2772. Private Sub LB222_移動()
  2773. Dim sx, sxx As Integer : sx = LB222.Size.Height : sxx = LB222.Location.Y : NU3 = LB223.Location.X : NU4 = LB224.Location.X
  2774. LB223.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB224.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2775. End Sub
  2776. Private Sub LB222_Click(sender As Object, e As EventArgs) Handles LB222.Click
  2777. PA = LB222.Text : 合約內文修改視窗.ShowDialog() : LB222.Text = PA : LB222_移動()
  2778. End Sub
  2779. Private Sub LB222_LocationChanged(sender As Object, e As EventArgs) Handles LB222.LocationChanged
  2780. LB222_移動()
  2781. End Sub
  2782. Private Sub LB222_TextChanged(sender As Object, e As EventArgs) Handles LB222.TextChanged
  2783. LB222_移動()
  2784. End Sub
  2785. '-----------------------------------------------------------------------------------------------------------------
  2786. Private Sub LB223_Click(sender As Object, e As EventArgs) Handles LB223.Click
  2787. NU5 = LB223.Location.X : BL1 = True : PA = LB223.Text : 合約內文修改視窗.ShowDialog() : LB223.Text = PA : BL1 = False : NU5 = 0
  2788. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB223.Location.Y : LB223.Location = New Drawing.Point(syy1, sxx)
  2789. sxx = LB224.Location.Y : LB224.Location = New Drawing.Point(syy2, sxx) : sxx = LB225.Location.Y : LB225.Location = New Drawing.Point(syy2, sxx)
  2790. End Sub
  2791. '-----------------------------------------------------------------------------------------------------------------
  2792. Private Sub LB224_移動()
  2793. Dim sx, sxx As Integer : sx = LB224.Size.Height : sxx = LB224.Location.Y : NU4 = LB225.Location.X : LB225.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2794. End Sub
  2795. Private Sub LB224_Click(sender As Object, e As EventArgs) Handles LB224.Click
  2796. PA = LB224.Text : 合約內文修改視窗.ShowDialog() : LB224.Text = PA : LB224_移動()
  2797. End Sub
  2798. Private Sub LB224_LocationChanged(sender As Object, e As EventArgs) Handles LB224.LocationChanged
  2799. LB224_移動()
  2800. End Sub
  2801. Private Sub LB224_TextChanged(sender As Object, e As EventArgs) Handles LB224.TextChanged
  2802. LB224_移動()
  2803. End Sub
  2804. '-----------------------------------------------------------------------------------------------------------------
  2805. Private Sub LB225_Click(sender As Object, e As EventArgs) Handles LB225.Click
  2806. PA = LB225.Text : 合約內文修改視窗.ShowDialog() : LB225.Text = PA
  2807. End Sub
  2808. '---------------------------第九章----------------------------------------------------------------------------------------------------------------------------------------------
  2809. Private Sub LB228_Click(sender As Object, e As EventArgs) Handles LB228.Click
  2810. PA = LB228.Text : 合約內文修改視窗.ShowDialog() : LB228.Text = PA
  2811. End Sub
  2812. Private Sub LB229_Click(sender As Object, e As EventArgs) Handles LB229.Click
  2813. PA = LB229.Text : 合約內文修改視窗.ShowDialog() : LB229.Text = PA
  2814. End Sub
  2815. Private Sub LB230_Click(sender As Object, e As EventArgs) Handles LB230.Click
  2816. PA = LB230.Text : 合約內文修改視窗.ShowDialog() : LB230.Text = PA
  2817. End Sub
  2818. '-----------------------------------------------------------------------------------------------------------------
  2819. Private Sub LB231_Click(sender As Object, e As EventArgs) Handles LB231.Click
  2820. NU5 = LB231.Location.X : BL1 = True : PA = LB231.Text : 合約內文修改視窗.ShowDialog() : LB231.Text = PA : BL1 = False : NU5 = 0
  2821. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB231.Location.Y : LB231.Location = New Drawing.Point(syy1, sxx)
  2822. sxx = LB131.Location.Y : LB131.Location = New Drawing.Point(syy2, sxx) : sxx = LB132.Location.Y : LB132.Location = New Drawing.Point(syy2, sxx)
  2823. End Sub
  2824. '-----------------------------------------------------------------------------------------------------------------
  2825. Private Sub LB131_移動()
  2826. Dim sx, sxx As Integer : sx = LB131.Size.Height : sxx = LB131.Location.Y : NU4 = LB132.Location.X : LB132.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2827. End Sub
  2828. Private Sub LB131_Click(sender As Object, e As EventArgs) Handles LB131.Click
  2829. PA = LB131.Text : 合約內文修改視窗.ShowDialog() : LB131.Text = PA : LB131_移動()
  2830. End Sub
  2831. Private Sub LB131_LocationChanged(sender As Object, e As EventArgs) Handles LB131.LocationChanged
  2832. LB131_移動()
  2833. End Sub
  2834. Private Sub LB131_TextChanged(sender As Object, e As EventArgs) Handles LB131.TextChanged
  2835. LB131_移動()
  2836. End Sub
  2837. '-----------------------------------------------------------------------------------------------------------------
  2838. Private Sub LB132_移動()
  2839. Dim sx, sxx As Integer : sx = LB132.Size.Height : sxx = LB132.Location.Y : NU3 = LB232.Location.X : NU4 = LB133.Location.X
  2840. LB232.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB133.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2841. End Sub
  2842. Private Sub LB132_Click(sender As Object, e As EventArgs) Handles LB132.Click
  2843. PA = LB132.Text : 合約內文修改視窗.ShowDialog() : LB132.Text = PA : LB132_移動()
  2844. End Sub
  2845. Private Sub LB132_LocationChanged(sender As Object, e As EventArgs) Handles LB132.LocationChanged
  2846. LB132_移動()
  2847. End Sub
  2848. Private Sub LB132_TextChanged(sender As Object, e As EventArgs) Handles LB132.TextChanged
  2849. LB132_移動()
  2850. End Sub
  2851. '-----------------------------------------------------------------------------------------------------------------
  2852. Private Sub LB232_Click(sender As Object, e As EventArgs) Handles LB232.Click
  2853. NU5 = LB232.Location.X : BL1 = True : PA = LB232.Text : 合約內文修改視窗.ShowDialog() : LB232.Text = PA : BL1 = False : NU5 = 0
  2854. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB232.Location.Y : LB232.Location = New Drawing.Point(syy1, sxx)
  2855. sxx = LB133.Location.Y : LB133.Location = New Drawing.Point(syy2, sxx) : sxx = LB134.Location.Y : LB134.Location = New Drawing.Point(syy2, sxx)
  2856. End Sub
  2857. '-----------------------------------------------------------------------------------------------------------------
  2858. Private Sub LB133_移動()
  2859. Dim sx, sxx As Integer : sx = LB133.Size.Height : sxx = LB133.Location.Y : NU4 = LB134.Location.X : LB134.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2860. End Sub
  2861. Private Sub LB133_Click(sender As Object, e As EventArgs) Handles LB133.Click
  2862. PA = LB133.Text : 合約內文修改視窗.ShowDialog() : LB133.Text = PA : LB133_移動()
  2863. End Sub
  2864. Private Sub LB133_LocationChanged(sender As Object, e As EventArgs) Handles LB133.LocationChanged
  2865. LB133_移動()
  2866. End Sub
  2867. Private Sub LB133_TextChanged(sender As Object, e As EventArgs) Handles LB133.TextChanged
  2868. LB133_移動()
  2869. End Sub
  2870. '-----------------------------------------------------------------------------------------------------------------
  2871. Private Sub LB134_移動()
  2872. Dim sx, sxx As Integer : sx = LB134.Size.Height : sxx = LB134.Location.Y : NU3 = LB233.Location.X : NU4 = LB135.Location.X
  2873. LB233.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB135.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2874. End Sub
  2875. Private Sub LB134_Click(sender As Object, e As EventArgs) Handles LB134.Click
  2876. PA = LB134.Text : 合約內文修改視窗.ShowDialog() : LB134.Text = PA : LB134_移動()
  2877. End Sub
  2878. Private Sub LB134_LocationChanged(sender As Object, e As EventArgs) Handles LB134.LocationChanged
  2879. LB134_移動()
  2880. End Sub
  2881. Private Sub LB134_TextChanged(sender As Object, e As EventArgs) Handles LB134.TextChanged
  2882. LB134_移動()
  2883. End Sub
  2884. '-----------------------------------------------------------------------------------------------------------------
  2885. Private Sub LB233_Click(sender As Object, e As EventArgs) Handles LB233.Click
  2886. NU5 = LB233.Location.X : BL1 = True : PA = LB233.Text : 合約內文修改視窗.ShowDialog() : LB233.Text = PA : BL1 = False : NU5 = 0
  2887. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB233.Location.Y : LB233.Location = New Drawing.Point(syy1, sxx)
  2888. sxx = LB135.Location.Y : LB135.Location = New Drawing.Point(syy2, sxx) : sxx = LB136.Location.Y : LB136.Location = New Drawing.Point(syy2, sxx)
  2889. End Sub
  2890. '-----------------------------------------------------------------------------------------------------------------
  2891. Private Sub LB135_移動()
  2892. Dim sx, sxx As Integer : sx = LB135.Size.Height : sxx = LB135.Location.Y : NU4 = LB136.Location.X : LB136.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2893. End Sub
  2894. Private Sub LB135_Click(sender As Object, e As EventArgs) Handles LB135.Click
  2895. PA = LB135.Text : 合約內文修改視窗.ShowDialog() : LB135.Text = PA : LB135_移動()
  2896. End Sub
  2897. Private Sub LB135_LocationChanged(sender As Object, e As EventArgs) Handles LB135.LocationChanged
  2898. LB135_移動()
  2899. End Sub
  2900. Private Sub LB135_TextChanged(sender As Object, e As EventArgs) Handles LB135.TextChanged
  2901. LB135_移動()
  2902. End Sub
  2903. '-----------------------------------------------------------------------------------------------------------------
  2904. Private Sub LB136_移動()
  2905. Dim sx, sxx As Integer : sx = LB136.Size.Height : sxx = LB136.Location.Y : NU3 = LB234.Location.X : NU4 = LB235.Location.X
  2906. LB234.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB235.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2907. End Sub
  2908. Private Sub LB136_Click(sender As Object, e As EventArgs) Handles LB136.Click
  2909. PA = LB136.Text : 合約內文修改視窗.ShowDialog() : LB136.Text = PA : LB136_移動()
  2910. End Sub
  2911. Private Sub LB136_LocationChanged(sender As Object, e As EventArgs) Handles LB136.LocationChanged
  2912. LB136_移動()
  2913. End Sub
  2914. Private Sub LB136_TextChanged(sender As Object, e As EventArgs) Handles LB136.TextChanged
  2915. LB136_移動()
  2916. End Sub
  2917. '-----------------------------------------------------------------------------------------------------------------
  2918. Private Sub LB234_Click(sender As Object, e As EventArgs) Handles LB234.Click
  2919. NU5 = LB234.Location.X : BL1 = True : PA = LB234.Text : 合約內文修改視窗.ShowDialog() : LB234.Text = PA : BL1 = False : NU5 = 0
  2920. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB234.Location.Y : LB234.Location = New Drawing.Point(syy1, sxx)
  2921. sxx = LB235.Location.Y : LB235.Location = New Drawing.Point(syy2, sxx) : sxx = LB236.Location.Y : LB236.Location = New Drawing.Point(syy2, sxx)
  2922. End Sub
  2923. '-----------------------------------------------------------------------------------------------------------------
  2924. Private Sub LB235_移動()
  2925. Dim sx, sxx As Integer : sx = LB235.Size.Height : sxx = LB235.Location.Y : NU4 = LB236.Location.X
  2926. LB236.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2927. End Sub
  2928. Private Sub LB235_Click(sender As Object, e As EventArgs) Handles LB235.Click
  2929. PA = LB235.Text : 合約內文修改視窗.ShowDialog() : LB235.Text = PA : LB235_移動()
  2930. End Sub
  2931. Private Sub LB235_LocationChanged(sender As Object, e As EventArgs) Handles LB235.LocationChanged
  2932. LB235_移動()
  2933. End Sub
  2934. Private Sub LB235_TextChanged(sender As Object, e As EventArgs) Handles LB235.TextChanged
  2935. LB235_移動()
  2936. End Sub
  2937. '-----------------------------------------------------------------------------------------------------------------
  2938. Private Sub LB236_移動()
  2939. Dim sx, sxx As Integer : sx = LB236.Size.Height : sxx = LB236.Location.Y : NU3 = LB237.Location.X : NU4 = LB238.Location.X
  2940. LB237.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB238.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2941. End Sub
  2942. Private Sub LB236_Click(sender As Object, e As EventArgs) Handles LB236.Click
  2943. PA = LB236.Text : 合約內文修改視窗.ShowDialog() : LB236.Text = PA : LB236_移動()
  2944. End Sub
  2945. Private Sub LB236_LocationChanged(sender As Object, e As EventArgs) Handles LB236.LocationChanged
  2946. LB236_移動()
  2947. End Sub
  2948. Private Sub LB236_TextChanged(sender As Object, e As EventArgs) Handles LB236.TextChanged
  2949. LB236_移動()
  2950. End Sub
  2951. '-----------------------------------------------------------------------------------------------------------------
  2952. Private Sub LB237_Click(sender As Object, e As EventArgs) Handles LB237.Click
  2953. NU5 = LB237.Location.X : BL1 = True : PA = LB237.Text : 合約內文修改視窗.ShowDialog() : LB237.Text = PA : BL1 = False : NU5 = 0
  2954. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB237.Location.Y : LB237.Location = New Drawing.Point(syy1, sxx)
  2955. sxx = LB238.Location.Y : LB238.Location = New Drawing.Point(syy2, sxx) : sxx = LB239.Location.Y : LB239.Location = New Drawing.Point(syy2, sxx)
  2956. End Sub
  2957. '-----------------------------------------------------------------------------------------------------------------
  2958. Private Sub LB238_移動()
  2959. Dim sx, sxx As Integer : sx = LB238.Size.Height : sxx = LB238.Location.Y : NU4 = LB239.Location.X : LB239.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2960. End Sub
  2961. Private Sub LB238_Click(sender As Object, e As EventArgs) Handles LB238.Click
  2962. PA = LB238.Text : 合約內文修改視窗.ShowDialog() : LB238.Text = PA : LB238_移動()
  2963. End Sub
  2964. Private Sub LB238_LocationChanged(sender As Object, e As EventArgs) Handles LB238.LocationChanged
  2965. LB238_移動()
  2966. End Sub
  2967. Private Sub LB238_TextChanged(sender As Object, e As EventArgs) Handles LB238.TextChanged
  2968. LB238_移動()
  2969. End Sub
  2970. '-----------------------------------------------------------------------------------------------------------------
  2971. Private Sub LB239_移動()
  2972. Dim sx, sxx As Integer : sx = LB239.Size.Height : sxx = LB239.Location.Y : NU3 = LB240.Location.X : NU4 = LB241.Location.X
  2973. LB240.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB241.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2974. End Sub
  2975. Private Sub LB239_Click(sender As Object, e As EventArgs) Handles LB239.Click
  2976. PA = LB239.Text : 合約內文修改視窗.ShowDialog() : LB239.Text = PA : LB239_移動()
  2977. End Sub
  2978. Private Sub LB239_LocationChanged(sender As Object, e As EventArgs) Handles LB239.LocationChanged
  2979. LB239_移動()
  2980. End Sub
  2981. Private Sub LB239_TextChanged(sender As Object, e As EventArgs) Handles LB239.TextChanged
  2982. LB239_移動()
  2983. End Sub
  2984. '-----------------------------------------------------------------------------------------------------------------
  2985. Private Sub LB240_Click(sender As Object, e As EventArgs) Handles LB240.Click
  2986. NU5 = LB240.Location.X : BL1 = True : PA = LB240.Text : 合約內文修改視窗.ShowDialog() : LB240.Text = PA : BL1 = False : NU5 = 0
  2987. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB240.Location.Y : LB240.Location = New Drawing.Point(syy1, sxx)
  2988. sxx = LB241.Location.Y : LB241.Location = New Drawing.Point(syy2, sxx) : sxx = LB242.Location.Y : LB242.Location = New Drawing.Point(syy2, sxx)
  2989. End Sub
  2990. '-----------------------------------------------------------------------------------------------------------------
  2991. Private Sub LB241_移動()
  2992. Dim sx, sxx As Integer : sx = LB241.Size.Height : sxx = LB241.Location.Y : NU4 = LB242.Location.X : LB242.Location = New Drawing.Point(NU4, sxx + sx + 10)
  2993. End Sub
  2994. Private Sub LB241_Click(sender As Object, e As EventArgs) Handles LB241.Click
  2995. PA = LB241.Text : 合約內文修改視窗.ShowDialog() : LB241.Text = PA : LB241_移動()
  2996. End Sub
  2997. Private Sub LB241_LocationChanged(sender As Object, e As EventArgs) Handles LB241.LocationChanged
  2998. LB241_移動()
  2999. End Sub
  3000. Private Sub LB241_TextChanged(sender As Object, e As EventArgs) Handles LB241.TextChanged
  3001. LB241_移動()
  3002. End Sub
  3003. '-----------------------------------------------------------------------------------------------------------------
  3004. Private Sub LB242_移動()
  3005. Dim sx, sxx As Integer : sx = LB242.Size.Height : sxx = LB242.Location.Y : NU3 = LB243.Location.X : NU4 = LB244.Location.X
  3006. LB243.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB244.Location = New Drawing.Point(NU4, sxx + sx + 10)
  3007. End Sub
  3008. Private Sub LB242_Click(sender As Object, e As EventArgs) Handles LB242.Click
  3009. PA = LB242.Text : 合約內文修改視窗.ShowDialog() : LB242.Text = PA : LB242_移動()
  3010. End Sub
  3011. Private Sub LB242_LocationChanged(sender As Object, e As EventArgs) Handles LB242.LocationChanged
  3012. LB242_移動()
  3013. End Sub
  3014. Private Sub LB242_TextChanged(sender As Object, e As EventArgs) Handles LB242.TextChanged
  3015. LB242_移動()
  3016. End Sub
  3017. '-----------------------------------------------------------------------------------------------------------------
  3018. Private Sub LB243_Click(sender As Object, e As EventArgs) Handles LB243.Click
  3019. NU5 = LB243.Location.X : BL1 = True : PA = LB243.Text : 合約內文修改視窗.ShowDialog() : LB243.Text = PA : BL1 = False : NU5 = 0
  3020. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB243.Location.Y : LB243.Location = New Drawing.Point(syy1, sxx)
  3021. sxx = LB244.Location.Y : LB244.Location = New Drawing.Point(syy2, sxx) : sxx = LB245.Location.Y : LB245.Location = New Drawing.Point(syy2, sxx)
  3022. End Sub
  3023. '-----------------------------------------------------------------------------------------------------------------
  3024. Private Sub LB244_移動()
  3025. Dim sx, sxx As Integer : sx = LB244.Size.Height : sxx = LB244.Location.Y : NU4 = LB245.Location.X : LB245.Location = New Drawing.Point(NU4, sxx + sx + 10)
  3026. End Sub
  3027. Private Sub LB244_Click(sender As Object, e As EventArgs) Handles LB244.Click
  3028. PA = LB244.Text : 合約內文修改視窗.ShowDialog() : LB244.Text = PA : LB244_移動()
  3029. End Sub
  3030. Private Sub LB244_LocationChanged(sender As Object, e As EventArgs) Handles LB244.LocationChanged
  3031. LB244_移動()
  3032. End Sub
  3033. Private Sub LB244_TextChanged(sender As Object, e As EventArgs) Handles LB244.TextChanged
  3034. LB244_移動()
  3035. End Sub
  3036. '-----------------------------------------------------------------------------------------------------------------
  3037. Private Sub LB245_移動()
  3038. Dim sx, sxx As Integer : sx = LB245.Size.Height : sxx = LB245.Location.Y : NU3 = LB246.Location.X : NU4 = LB247.Location.X
  3039. LB246.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB247.Location = New Drawing.Point(NU4, sxx + sx + 10)
  3040. End Sub
  3041. Private Sub LB245_Click(sender As Object, e As EventArgs) Handles LB245.Click
  3042. PA = LB245.Text : 合約內文修改視窗.ShowDialog() : LB245.Text = PA : LB245_移動()
  3043. End Sub
  3044. Private Sub LB245_LocationChanged(sender As Object, e As EventArgs) Handles LB245.LocationChanged
  3045. LB245_移動()
  3046. End Sub
  3047. Private Sub LB245_TextChanged(sender As Object, e As EventArgs) Handles LB245.TextChanged
  3048. LB245_移動()
  3049. End Sub
  3050. '-----------------------------------------------------------------------------------------------------------------
  3051. Private Sub LB246_Click(sender As Object, e As EventArgs) Handles LB246.Click
  3052. NU5 = LB246.Location.X : BL1 = True : PA = LB246.Text : 合約內文修改視窗.ShowDialog() : LB246.Text = PA : BL1 = False : NU5 = 0
  3053. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB246.Location.Y : LB246.Location = New Drawing.Point(syy1, sxx)
  3054. sxx = LB247.Location.Y : LB247.Location = New Drawing.Point(syy2, sxx) : sxx = LB248.Location.Y : LB248.Location = New Drawing.Point(syy2, sxx)
  3055. End Sub
  3056. '-----------------------------------------------------------------------------------------------------------------
  3057. Private Sub LB247_移動()
  3058. Dim sx, sxx As Integer : sx = LB247.Size.Height : sxx = LB247.Location.Y : NU4 = LB248.Location.X : LB248.Location = New Drawing.Point(NU4, sxx + sx + 10)
  3059. End Sub
  3060. Private Sub LB247_Click(sender As Object, e As EventArgs) Handles LB247.Click
  3061. PA = LB247.Text : 合約內文修改視窗.ShowDialog() : LB247.Text = PA : LB247_移動()
  3062. End Sub
  3063. Private Sub LB247_LocationChanged(sender As Object, e As EventArgs) Handles LB247.LocationChanged
  3064. LB247_移動()
  3065. End Sub
  3066. Private Sub LB247_TextChanged(sender As Object, e As EventArgs) Handles LB247.TextChanged
  3067. LB247_移動()
  3068. End Sub
  3069. '-----------------------------------------------------------------------------------------------------------------
  3070. Private Sub LB248_移動()
  3071. Dim sx, sxx As Integer : sx = LB248.Size.Height : sxx = LB248.Location.Y : NU3 = LB249.Location.X : NU4 = LB250.Location.X
  3072. LB249.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB250.Location = New Drawing.Point(NU4, sxx + sx + 10)
  3073. End Sub
  3074. Private Sub LB248_Click(sender As Object, e As EventArgs) Handles LB248.Click
  3075. PA = LB248.Text : 合約內文修改視窗.ShowDialog() : LB248.Text = PA : LB248_移動()
  3076. End Sub
  3077. Private Sub LB248_LocationChanged(sender As Object, e As EventArgs) Handles LB248.LocationChanged
  3078. LB248_移動()
  3079. End Sub
  3080. Private Sub LB248_TextChanged(sender As Object, e As EventArgs) Handles LB248.TextChanged
  3081. LB248_移動()
  3082. End Sub
  3083. '-----------------------------------------------------------------------------------------------------------------
  3084. Private Sub LB249_Click(sender As Object, e As EventArgs) Handles LB249.Click
  3085. NU5 = LB249.Location.X : BL1 = True : PA = LB249.Text : 合約內文修改視窗.ShowDialog() : LB249.Text = PA : BL1 = False : NU5 = 0
  3086. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB249.Location.Y : LB249.Location = New Drawing.Point(syy1, sxx)
  3087. sxx = LB250.Location.Y : LB250.Location = New Drawing.Point(syy2, sxx) : sxx = LB251.Location.Y : LB251.Location = New Drawing.Point(syy2, sxx)
  3088. End Sub
  3089. '-----------------------------------------------------------------------------------------------------------------
  3090. Private Sub LB250_移動()
  3091. Dim sx, sxx As Integer : sx = LB250.Size.Height : sxx = LB250.Location.Y : NU4 = LB251.Location.X : LB251.Location = New Drawing.Point(NU4, sxx + sx + 10)
  3092. End Sub
  3093. Private Sub LB250_Click(sender As Object, e As EventArgs) Handles LB250.Click
  3094. PA = LB250.Text : 合約內文修改視窗.ShowDialog() : LB250.Text = PA : LB250_移動()
  3095. End Sub
  3096. Private Sub LB250_LocationChanged(sender As Object, e As EventArgs) Handles LB250.LocationChanged
  3097. LB250_移動()
  3098. End Sub
  3099. Private Sub LB250_TextChanged(sender As Object, e As EventArgs) Handles LB250.TextChanged
  3100. LB250_移動()
  3101. End Sub
  3102. '-----------------------------------------------------------------------------------------------------------------
  3103. Private Sub LB251_移動()
  3104. Dim sx, sxx As Integer : sx = LB251.Size.Height : sxx = LB251.Location.Y : NU3 = LB252.Location.X : NU4 = LB253.Location.X
  3105. LB252.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB253.Location = New Drawing.Point(NU4, sxx + sx + 10)
  3106. End Sub
  3107. Private Sub LB251_Click(sender As Object, e As EventArgs) Handles LB251.Click
  3108. PA = LB251.Text : 合約內文修改視窗.ShowDialog() : LB251.Text = PA : LB251_移動()
  3109. End Sub
  3110. Private Sub LB251_LocationChanged(sender As Object, e As EventArgs) Handles LB251.LocationChanged
  3111. LB251_移動()
  3112. End Sub
  3113. Private Sub LB251_TextChanged(sender As Object, e As EventArgs) Handles LB251.TextChanged
  3114. LB251_移動()
  3115. End Sub
  3116. '-----------------------------------------------------------------------------------------------------------------
  3117. Private Sub LB252_Click(sender As Object, e As EventArgs) Handles LB252.Click
  3118. NU5 = LB252.Location.X : BL1 = True : PA = LB252.Text : 合約內文修改視窗.ShowDialog() : LB252.Text = PA : BL1 = False : NU5 = 0
  3119. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB252.Location.Y : LB252.Location = New Drawing.Point(syy1, sxx)
  3120. sxx = LB253.Location.Y : LB253.Location = New Drawing.Point(syy2, sxx) : sxx = LB254.Location.Y : LB254.Location = New Drawing.Point(syy2, sxx)
  3121. End Sub
  3122. '-----------------------------------------------------------------------------------------------------------------
  3123. Private Sub LB253_移動()
  3124. Dim sx, sxx As Integer : sx = LB253.Size.Height : sxx = LB253.Location.Y : NU4 = LB254.Location.X : LB254.Location = New Drawing.Point(NU4, sxx + sx + 10)
  3125. End Sub
  3126. Private Sub LB253_Click(sender As Object, e As EventArgs) Handles LB253.Click
  3127. PA = LB253.Text : 合約內文修改視窗.ShowDialog() : LB253.Text = PA : LB253_移動()
  3128. End Sub
  3129. Private Sub LB253_LocationChanged(sender As Object, e As EventArgs) Handles LB253.LocationChanged
  3130. LB253_移動()
  3131. End Sub
  3132. Private Sub LB253_TextChanged(sender As Object, e As EventArgs) Handles LB253.TextChanged
  3133. LB253_移動()
  3134. End Sub
  3135. '-----------------------------------------------------------------------------------------------------------------
  3136. Private Sub LB254_移動()
  3137. Dim sx, sxx As Integer : sx = LB254.Size.Height : sxx = LB254.Location.Y : NU3 = LB255.Location.X : NU4 = LB256.Location.X
  3138. LB255.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB256.Location = New Drawing.Point(NU4, sxx + sx + 10)
  3139. End Sub
  3140. Private Sub LB254_Click(sender As Object, e As EventArgs) Handles LB254.Click
  3141. PA = LB254.Text : 合約內文修改視窗.ShowDialog() : LB254.Text = PA : LB254_移動()
  3142. End Sub
  3143. Private Sub LB254_LocationChanged(sender As Object, e As EventArgs) Handles LB254.LocationChanged
  3144. LB254_移動()
  3145. End Sub
  3146. Private Sub LB254_TextChanged(sender As Object, e As EventArgs) Handles LB254.TextChanged
  3147. LB254_移動()
  3148. End Sub
  3149. '-----------------------------------------------------------------------------------------------------------------
  3150. Private Sub LB255_Click(sender As Object, e As EventArgs) Handles LB255.Click
  3151. NU5 = LB255.Location.X : BL1 = True : PA = LB255.Text : 合約內文修改視窗.ShowDialog() : LB255.Text = PA : BL1 = False : NU5 = 0
  3152. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB255.Location.Y : LB255.Location = New Drawing.Point(syy1, sxx)
  3153. sxx = LB256.Location.Y : LB256.Location = New Drawing.Point(syy2, sxx) : sxx = LB257.Location.Y : LB257.Location = New Drawing.Point(syy2, sxx)
  3154. End Sub
  3155. '-----------------------------------------------------------------------------------------------------------------
  3156. Private Sub LB256_移動()
  3157. Dim sx, sxx As Integer : sx = LB256.Size.Height : sxx = LB256.Location.Y : NU4 = LB257.Location.X : LB257.Location = New Drawing.Point(NU4, sxx + sx + 10)
  3158. End Sub
  3159. Private Sub LB256_Click(sender As Object, e As EventArgs) Handles LB256.Click
  3160. PA = LB256.Text : 合約內文修改視窗.ShowDialog() : LB256.Text = PA : LB256_移動()
  3161. End Sub
  3162. Private Sub LB256_LocationChanged(sender As Object, e As EventArgs) Handles LB256.LocationChanged
  3163. LB256_移動()
  3164. End Sub
  3165. Private Sub LB256_TextChanged(sender As Object, e As EventArgs) Handles LB256.TextChanged
  3166. LB256_移動()
  3167. End Sub
  3168. '-----------------------------------------------------------------------------------------------------------------
  3169. Private Sub LB257_移動()
  3170. Dim sx, sxx As Integer : sx = LB257.Size.Height : sxx = LB257.Location.Y : NU3 = LB258.Location.X : NU4 = LB259.Location.X
  3171. LB258.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB259.Location = New Drawing.Point(NU4, sxx + sx + 10)
  3172. End Sub
  3173. Private Sub LB257_Click(sender As Object, e As EventArgs) Handles LB257.Click
  3174. PA = LB257.Text : 合約內文修改視窗.ShowDialog() : LB257.Text = PA : LB257_移動()
  3175. End Sub
  3176. Private Sub LB257_LocationChanged(sender As Object, e As EventArgs) Handles LB257.LocationChanged
  3177. LB257_移動()
  3178. End Sub
  3179. Private Sub LB257_TextChanged(sender As Object, e As EventArgs) Handles LB257.TextChanged
  3180. LB257_移動()
  3181. End Sub
  3182. '-----------------------------------------------------------------------------------------------------------------
  3183. Private Sub LB258_Click(sender As Object, e As EventArgs) Handles LB258.Click
  3184. NU5 = LB258.Location.X : BL1 = True : PA = LB258.Text : 合約內文修改視窗.ShowDialog() : LB258.Text = PA : BL1 = False : NU5 = 0
  3185. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB258.Location.Y : LB258.Location = New Drawing.Point(syy1, sxx)
  3186. sxx = LB259.Location.Y : LB259.Location = New Drawing.Point(syy2, sxx) : sxx = LB260.Location.Y : LB260.Location = New Drawing.Point(syy2, sxx)
  3187. End Sub
  3188. '-----------------------------------------------------------------------------------------------------------------
  3189. Private Sub LB259_移動()
  3190. Dim sx, sxx As Integer : sx = LB259.Size.Height : sxx = LB259.Location.Y : NU4 = LB260.Location.X : LB260.Location = New Drawing.Point(NU4, sxx + sx + 10)
  3191. End Sub
  3192. Private Sub LB259_Click(sender As Object, e As EventArgs) Handles LB259.Click
  3193. PA = LB259.Text : 合約內文修改視窗.ShowDialog() : LB259.Text = PA : LB259_移動()
  3194. End Sub
  3195. Private Sub LB259_LocationChanged(sender As Object, e As EventArgs) Handles LB259.LocationChanged
  3196. LB259_移動()
  3197. End Sub
  3198. Private Sub LB259_TextChanged(sender As Object, e As EventArgs) Handles LB259.TextChanged
  3199. LB259_移動()
  3200. End Sub
  3201. '-----------------------------------------------------------------------------------------------------------------
  3202. Private Sub LB260_移動()
  3203. Dim sx, sxx As Integer : sx = LB260.Size.Height : sxx = LB260.Location.Y : NU3 = LB261.Location.X : NU4 = LB262.Location.X
  3204. LB261.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB262.Location = New Drawing.Point(NU4, sxx + sx + 10)
  3205. End Sub
  3206. Private Sub LB260_Click(sender As Object, e As EventArgs) Handles LB260.Click
  3207. PA = LB260.Text : 合約內文修改視窗.ShowDialog() : LB260.Text = PA : LB260_移動()
  3208. End Sub
  3209. Private Sub LB260_LocationChanged(sender As Object, e As EventArgs) Handles LB260.LocationChanged
  3210. LB260_移動()
  3211. End Sub
  3212. Private Sub LB260_TextChanged(sender As Object, e As EventArgs) Handles LB260.TextChanged
  3213. LB260_移動()
  3214. End Sub
  3215. '-----------------------------------------------------------------------------------------------------------------
  3216. Private Sub LB261_Click(sender As Object, e As EventArgs) Handles LB261.Click
  3217. NU5 = LB261.Location.X : BL1 = True : PA = LB261.Text : 合約內文修改視窗.ShowDialog() : LB261.Text = PA : BL1 = False : NU5 = 0
  3218. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB261.Location.Y : LB261.Location = New Drawing.Point(syy1, sxx)
  3219. sxx = LB262.Location.Y : LB262.Location = New Drawing.Point(syy2, sxx) : sxx = LB263.Location.Y : LB263.Location = New Drawing.Point(syy2, sxx)
  3220. End Sub
  3221. '-----------------------------------------------------------------------------------------------------------------
  3222. Private Sub LB262_移動()
  3223. Dim sx, sxx As Integer : sx = LB262.Size.Height : sxx = LB262.Location.Y : NU4 = LB263.Location.X : LB263.Location = New Drawing.Point(NU4, sxx + sx + 10)
  3224. End Sub
  3225. Private Sub LB262_Click(sender As Object, e As EventArgs) Handles LB262.Click
  3226. PA = LB262.Text : 合約內文修改視窗.ShowDialog() : LB262.Text = PA : LB262_移動()
  3227. End Sub
  3228. Private Sub LB262_LocationChanged(sender As Object, e As EventArgs) Handles LB262.LocationChanged
  3229. LB262_移動()
  3230. End Sub
  3231. Private Sub LB262_TextChanged(sender As Object, e As EventArgs) Handles LB262.TextChanged
  3232. LB262_移動()
  3233. End Sub
  3234. '-----------------------------------------------------------------------------------------------------------------
  3235. Private Sub LB263_移動()
  3236. Dim sx, sxx As Integer : sx = LB263.Size.Height : sxx = LB263.Location.Y : NU3 = LB264.Location.X : NU4 = LB265.Location.X
  3237. LB264.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB265.Location = New Drawing.Point(NU4, sxx + sx + 10)
  3238. End Sub
  3239. Private Sub LB263_Click(sender As Object, e As EventArgs) Handles LB263.Click
  3240. PA = LB263.Text : 合約內文修改視窗.ShowDialog() : LB263.Text = PA : LB263_移動()
  3241. End Sub
  3242. Private Sub LB263_LocationChanged(sender As Object, e As EventArgs) Handles LB263.LocationChanged
  3243. LB263_移動()
  3244. End Sub
  3245. Private Sub LB263_TextChanged(sender As Object, e As EventArgs) Handles LB263.TextChanged
  3246. LB263_移動()
  3247. End Sub
  3248. '-----------------------------------------------------------------------------------------------------------------
  3249. Private Sub LB264_Click(sender As Object, e As EventArgs) Handles LB264.Click
  3250. NU5 = LB264.Location.X : BL1 = True : PA = LB264.Text : 合約內文修改視窗.ShowDialog() : LB264.Text = PA : BL1 = False : NU5 = 0
  3251. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB264.Location.Y : LB264.Location = New Drawing.Point(syy1, sxx)
  3252. sxx = LB265.Location.Y : LB265.Location = New Drawing.Point(syy2, sxx) : sxx = LB266.Location.Y : LB266.Location = New Drawing.Point(syy2, sxx)
  3253. End Sub
  3254. '-----------------------------------------------------------------------------------------------------------------
  3255. Private Sub LB265_移動()
  3256. Dim sx, sxx As Integer : sx = LB265.Size.Height : sxx = LB265.Location.Y : NU4 = LB266.Location.X : LB266.Location = New Drawing.Point(NU4, sxx + sx + 10)
  3257. End Sub
  3258. Private Sub LB265_Click(sender As Object, e As EventArgs) Handles LB265.Click
  3259. PA = LB265.Text : 合約內文修改視窗.ShowDialog() : LB265.Text = PA : LB265_移動()
  3260. End Sub
  3261. Private Sub LB265_LocationChanged(sender As Object, e As EventArgs) Handles LB265.LocationChanged
  3262. LB265_移動()
  3263. End Sub
  3264. Private Sub LB265_TextChanged(sender As Object, e As EventArgs) Handles LB265.TextChanged
  3265. LB265_移動()
  3266. End Sub
  3267. '-----------------------------------------------------------------------------------------------------------------
  3268. Private Sub LB266_Click(sender As Object, e As EventArgs) Handles LB266.Click
  3269. PA = LB266.Text : 合約內文修改視窗.ShowDialog() : LB266.Text = PA
  3270. End Sub
  3271. '---------------------------第八章----------------------------------------------------------------------------------------------------------------------------------------------
  3272. Private Sub LB267_Click(sender As Object, e As EventArgs) Handles LB267.Click
  3273. PA = LB267.Text : 合約內文修改視窗.ShowDialog() : LB267.Text = PA
  3274. End Sub
  3275. Private Sub LB268_Click(sender As Object, e As EventArgs) Handles LB268.Click
  3276. PA = LB268.Text : 合約內文修改視窗.ShowDialog() : LB268.Text = PA
  3277. End Sub
  3278. Private Sub LB269_Click(sender As Object, e As EventArgs) Handles LB269.Click
  3279. PA = LB269.Text : 合約內文修改視窗.ShowDialog() : LB269.Text = PA
  3280. End Sub
  3281. '-----------------------------------------------------------------------------------------------------------------
  3282. Private Sub LB270_Click(sender As Object, e As EventArgs) Handles LB270.Click
  3283. PA = LB270.Text : 合約內文修改視窗.ShowDialog() : LB270.Text = PA
  3284. End Sub
  3285. '-----------------------------------------------------------------------------------------------------------------
  3286. Private Sub LB121_移動()
  3287. Dim sx, sxx As Integer : sx = LB121.Size.Height : sxx = LB121.Location.Y : LB122.Location = New Drawing.Point(40, sxx + sx + 10)
  3288. End Sub
  3289. Private Sub LB121_Click(sender As Object, e As EventArgs) Handles LB121.Click
  3290. PA = LB121.Text : 合約內文修改視窗.ShowDialog() : LB121.Text = PA : LB121_移動()
  3291. End Sub
  3292. Private Sub LB121_LocationChanged(sender As Object, e As EventArgs) Handles LB121.LocationChanged
  3293. LB121_移動()
  3294. End Sub
  3295. Private Sub LB121_TextChanged(sender As Object, e As EventArgs) Handles LB121.TextChanged
  3296. LB121_移動()
  3297. End Sub
  3298. '-----------------------------------------------------------------------------------------------------------------
  3299. Private Sub LB122_移動()
  3300. Dim sx, sxx As Integer : sx = LB122.Size.Height : sxx = LB122.Location.Y : LB271.Location = New Drawing.Point(40, sxx + sx + 10) : LB123.Location = New Drawing.Point(74, sxx + sx + 10)
  3301. End Sub
  3302. Private Sub LB122_Click(sender As Object, e As EventArgs) Handles LB122.Click
  3303. PA = LB122.Text : 合約內文修改視窗.ShowDialog() : LB122.Text = PA : LB122_移動()
  3304. End Sub
  3305. Private Sub LB122_LocationChanged(sender As Object, e As EventArgs) Handles LB122.LocationChanged
  3306. LB122_移動()
  3307. End Sub
  3308. Private Sub LB122_TextChanged(sender As Object, e As EventArgs) Handles LB122.TextChanged
  3309. LB122_移動()
  3310. End Sub
  3311. '-----------------------------------------------------------------------------------------------------------------
  3312. Private Sub LB271_Click(sender As Object, e As EventArgs) Handles LB271.Click
  3313. PA = LB271.Text : 合約內文修改視窗.ShowDialog() : LB271.Text = PA
  3314. End Sub
  3315. '-----------------------------------------------------------------------------------------------------------------
  3316. Private Sub LB123_移動()
  3317. Dim sx, sxx As Integer : sx = LB123.Size.Height : sxx = LB123.Location.Y : LB124.Location = New Drawing.Point(74, sxx + sx + 10)
  3318. End Sub
  3319. Private Sub LB123_Click(sender As Object, e As EventArgs) Handles LB123.Click
  3320. PA = LB123.Text : 合約內文修改視窗.ShowDialog() : LB123.Text = PA : LB123_移動()
  3321. End Sub
  3322. Private Sub LB123_LocationChanged(sender As Object, e As EventArgs) Handles LB123.LocationChanged
  3323. LB123_移動()
  3324. End Sub
  3325. Private Sub LB123_TextChanged(sender As Object, e As EventArgs) Handles LB123.TextChanged
  3326. LB123_移動()
  3327. End Sub
  3328. '-----------------------------------------------------------------------------------------------------------------
  3329. Private Sub LB124_移動()
  3330. Dim sx, sxx As Integer : sx = LB124.Size.Height : sxx = LB124.Location.Y : LB272.Location = New Drawing.Point(40, sxx + sx + 10) : LB125.Location = New Drawing.Point(74, sxx + sx + 10)
  3331. End Sub
  3332. Private Sub LB124_Click(sender As Object, e As EventArgs) Handles LB124.Click
  3333. PA = LB124.Text : 合約內文修改視窗.ShowDialog() : LB124.Text = PA : LB124_移動()
  3334. End Sub
  3335. Private Sub LB124_LocationChanged(sender As Object, e As EventArgs) Handles LB124.LocationChanged
  3336. LB124_移動()
  3337. End Sub
  3338. Private Sub LB124_TextChanged(sender As Object, e As EventArgs) Handles LB124.TextChanged
  3339. LB124_移動()
  3340. End Sub
  3341. '-----------------------------------------------------------------------------------------------------------------
  3342. Private Sub LB272_Click(sender As Object, e As EventArgs) Handles LB272.Click
  3343. PA = LB272.Text : 合約內文修改視窗.ShowDialog() : LB272.Text = PA
  3344. End Sub
  3345. '-----------------------------------------------------------------------------------------------------------------
  3346. Private Sub LB125_移動()
  3347. Dim sx, sxx As Integer : sx = LB125.Size.Height : sxx = LB125.Location.Y : LB126.Location = New Drawing.Point(74, sxx + sx + 10)
  3348. End Sub
  3349. Private Sub LB125_Click(sender As Object, e As EventArgs) Handles LB125.Click
  3350. PA = LB125.Text : 合約內文修改視窗.ShowDialog() : LB125.Text = PA : LB125_移動()
  3351. End Sub
  3352. Private Sub LB125_LocationChanged(sender As Object, e As EventArgs) Handles LB125.LocationChanged
  3353. LB125_移動()
  3354. End Sub
  3355. Private Sub LB125_TextChanged(sender As Object, e As EventArgs) Handles LB125.TextChanged
  3356. LB125_移動()
  3357. End Sub
  3358. '-----------------------------------------------------------------------------------------------------------------
  3359. Private Sub LB126_移動()
  3360. Dim sx, sxx As Integer : sx = LB126.Size.Height : sxx = LB126.Location.Y
  3361. LB273.Location = New Drawing.Point(40, sxx + sx + 10) : LB127.Location = New Drawing.Point(74, sxx + sx + 10)
  3362. LB274.Location = New Drawing.Point(324, sxx + sx + 10) : LB128.Location = New Drawing.Point(476, sxx + sx + 10)
  3363. End Sub
  3364. Private Sub LB126_Click(sender As Object, e As EventArgs) Handles LB126.Click
  3365. PA = LB126.Text : 合約內文修改視窗.ShowDialog() : LB126.Text = PA : LB126_移動()
  3366. End Sub
  3367. Private Sub LB126_LocationChanged(sender As Object, e As EventArgs) Handles LB126.LocationChanged
  3368. LB126_移動()
  3369. End Sub
  3370. Private Sub LB126_TextChanged(sender As Object, e As EventArgs) Handles LB126.TextChanged
  3371. LB126_移動()
  3372. End Sub
  3373. '-----------------------------------------------------------------------------------------------------------------
  3374. Private Sub LB273_Click(sender As Object, e As EventArgs) Handles LB273.Click
  3375. PA = LB273.Text : 合約內文修改視窗.ShowDialog() : LB273.Text = PA
  3376. End Sub
  3377. '-----------------------------------------------------------------------------------------------------------------
  3378. Private Sub LB127_移動()
  3379. Dim sx, sxx As Integer : sx = LB127.Size.Height : sxx = LB127.Location.Y
  3380. LB129.Location = New Drawing.Point(74, sxx + sx + 10) : LB275.Location = New Drawing.Point(383, sxx + sx + 10) : LB130.Location = New Drawing.Point(548, sxx + sx + 10)
  3381. End Sub
  3382. Private Sub LB127_Click(sender As Object, e As EventArgs) Handles LB127.Click
  3383. PA = LB127.Text : 合約內文修改視窗.ShowDialog() : LB127.Text = PA : LB127_移動()
  3384. End Sub
  3385. Private Sub LB127_LocationChanged(sender As Object, e As EventArgs) Handles LB127.LocationChanged
  3386. LB127_移動()
  3387. End Sub
  3388. Private Sub LB127_TextChanged(sender As Object, e As EventArgs) Handles LB127.TextChanged
  3389. LB127_移動()
  3390. End Sub
  3391. Private Sub LB128_Click(sender As Object, e As EventArgs) Handles LB128.Click
  3392. PA = LB128.Text : 合約內文修改視窗.ShowDialog() : LB128.Text = PA
  3393. End Sub
  3394. Private Sub LB130_Click(sender As Object, e As EventArgs) Handles LB130.Click
  3395. PA = LB130.Text : 合約內文修改視窗.ShowDialog() : LB130.Text = PA
  3396. End Sub
  3397. '-----------------------------------------------------------------------------------------------------------------
  3398. Private Sub LB129_移動()
  3399. Dim sx, sxx As Integer : sx = LB129.Size.Height : sxx = LB129.Location.Y : NU3 = LB276.Location.X : NU4 = LB277.Location.X
  3400. LB276.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB277.Location = New Drawing.Point(NU4, sxx + sx + 10)
  3401. End Sub
  3402. Private Sub LB129_Click(sender As Object, e As EventArgs) Handles LB129.Click
  3403. PA = LB129.Text : 合約內文修改視窗.ShowDialog() : LB129.Text = PA : LB129_移動()
  3404. End Sub
  3405. Private Sub LB279_LocationChanged(sender As Object, e As EventArgs) Handles LB129.LocationChanged
  3406. LB129_移動()
  3407. End Sub
  3408. Private Sub LB279_TextChanged(sender As Object, e As EventArgs) Handles LB129.TextChanged
  3409. LB129_移動()
  3410. End Sub
  3411. '-----------------------------------------------------------------------------------------------------------------
  3412. Private Sub LB276_Click(sender As Object, e As EventArgs) Handles LB276.Click
  3413. NU5 = LB276.Location.X : BL1 = True : PA = LB276.Text : 合約內文修改視窗.ShowDialog() : LB276.Text = PA : BL1 = False : NU5 = 0
  3414. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB276.Location.Y : LB276.Location = New Drawing.Point(syy1, sxx)
  3415. sxx = LB277.Location.Y : LB277.Location = New Drawing.Point(syy2, sxx) : sxx = LB278.Location.Y : LB278.Location = New Drawing.Point(syy2, sxx)
  3416. End Sub
  3417. '-----------------------------------------------------------------------------------------------------------------
  3418. Private Sub LB277_移動()
  3419. Dim sx, sxx As Integer : sx = LB277.Size.Height : sxx = LB277.Location.Y : NU4 = LB278.Location.X : LB278.Location = New Drawing.Point(NU4, sxx + sx + 10)
  3420. End Sub
  3421. Private Sub LB277_Click(sender As Object, e As EventArgs) Handles LB277.Click
  3422. PA = LB277.Text : 合約內文修改視窗.ShowDialog() : LB277.Text = PA : LB277_移動()
  3423. End Sub
  3424. Private Sub LB277_LocationChanged(sender As Object, e As EventArgs) Handles LB277.LocationChanged
  3425. LB277_移動()
  3426. End Sub
  3427. Private Sub LB277_TextChanged(sender As Object, e As EventArgs) Handles LB277.TextChanged
  3428. LB277_移動()
  3429. End Sub
  3430. '-----------------------------------------------------------------------------------------------------------------
  3431. Private Sub LB278_移動()
  3432. Dim sx, sxx As Integer : sx = LB278.Size.Height : sxx = LB278.Location.Y : NU3 = LB279.Location.X : NU4 = LB280.Location.X
  3433. LB279.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB280.Location = New Drawing.Point(NU4, sxx + sx + 10)
  3434. End Sub
  3435. Private Sub LB278_Click(sender As Object, e As EventArgs) Handles LB278.Click
  3436. PA = LB278.Text : 合約內文修改視窗.ShowDialog() : LB278.Text = PA : LB278_移動()
  3437. End Sub
  3438. Private Sub LB278_LocationChanged(sender As Object, e As EventArgs) Handles LB278.LocationChanged
  3439. LB278_移動()
  3440. End Sub
  3441. Private Sub LB278_TextChanged(sender As Object, e As EventArgs) Handles LB278.TextChanged
  3442. LB278_移動()
  3443. End Sub
  3444. '-----------------------------------------------------------------------------------------------------------------
  3445. Private Sub LB279_Click(sender As Object, e As EventArgs) Handles LB279.Click
  3446. NU5 = LB279.Location.X : BL1 = True : PA = LB279.Text : 合約內文修改視窗.ShowDialog() : LB279.Text = PA : BL1 = False : NU5 = 0
  3447. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB279.Location.Y : LB279.Location = New Drawing.Point(syy1, sxx)
  3448. sxx = LB280.Location.Y : LB280.Location = New Drawing.Point(syy2, sxx) : sxx = LB281.Location.Y : LB281.Location = New Drawing.Point(syy2, sxx)
  3449. End Sub
  3450. '-----------------------------------------------------------------------------------------------------------------
  3451. Private Sub LB280_移動()
  3452. Dim sx, sxx As Integer : sx = LB280.Size.Height : sxx = LB280.Location.Y : NU4 = LB281.Location.X : LB281.Location = New Drawing.Point(NU4, sxx + sx + 10)
  3453. End Sub
  3454. Private Sub LB280_Click(sender As Object, e As EventArgs) Handles LB280.Click
  3455. PA = LB280.Text : 合約內文修改視窗.ShowDialog() : LB280.Text = PA : LB280_移動()
  3456. End Sub
  3457. Private Sub LB280_LocationChanged(sender As Object, e As EventArgs) Handles LB280.LocationChanged
  3458. LB280_移動()
  3459. End Sub
  3460. Private Sub LB280_TextChanged(sender As Object, e As EventArgs) Handles LB280.TextChanged
  3461. LB280_移動()
  3462. End Sub
  3463. '-----------------------------------------------------------------------------------------------------------------
  3464. Private Sub LB281_移動()
  3465. Dim sx, sxx As Integer : sx = LB281.Size.Height : sxx = LB281.Location.Y : NU3 = LB282.Location.X : NU4 = LB283.Location.X
  3466. LB282.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB283.Location = New Drawing.Point(NU4, sxx + sx + 10)
  3467. End Sub
  3468. Private Sub LB281_Click(sender As Object, e As EventArgs) Handles LB281.Click
  3469. PA = LB281.Text : 合約內文修改視窗.ShowDialog() : LB281.Text = PA : LB281_移動()
  3470. End Sub
  3471. Private Sub LB281_LocationChanged(sender As Object, e As EventArgs) Handles LB281.LocationChanged
  3472. LB281_移動()
  3473. End Sub
  3474. Private Sub LB281_TextChanged(sender As Object, e As EventArgs) Handles LB281.TextChanged
  3475. LB281_移動()
  3476. End Sub
  3477. '-----------------------------------------------------------------------------------------------------------------
  3478. Private Sub LB282_Click(sender As Object, e As EventArgs) Handles LB282.Click
  3479. NU5 = LB282.Location.X : BL1 = True : PA = LB282.Text : 合約內文修改視窗.ShowDialog() : LB282.Text = PA : BL1 = False : NU5 = 0
  3480. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB282.Location.Y : LB282.Location = New Drawing.Point(syy1, sxx)
  3481. sxx = LB283.Location.Y : LB283.Location = New Drawing.Point(syy2, sxx) : sxx = LB284.Location.Y : LB284.Location = New Drawing.Point(syy2, sxx)
  3482. End Sub
  3483. '-----------------------------------------------------------------------------------------------------------------
  3484. Private Sub LB283_移動()
  3485. Dim sx, sxx As Integer : sx = LB283.Size.Height : sxx = LB283.Location.Y : NU4 = LB284.Location.X : LB284.Location = New Drawing.Point(NU4, sxx + sx + 10)
  3486. End Sub
  3487. Private Sub LB283_Click(sender As Object, e As EventArgs) Handles LB283.Click
  3488. PA = LB283.Text : 合約內文修改視窗.ShowDialog() : LB283.Text = PA : LB283_移動()
  3489. End Sub
  3490. Private Sub LB283_LocationChanged(sender As Object, e As EventArgs) Handles LB283.LocationChanged
  3491. LB283_移動()
  3492. End Sub
  3493. Private Sub LB283_TextChanged(sender As Object, e As EventArgs) Handles LB283.TextChanged
  3494. LB283_移動()
  3495. End Sub
  3496. '-----------------------------------------------------------------------------------------------------------------
  3497. Private Sub LB284_移動()
  3498. Dim sx, sxx As Integer : sx = LB284.Size.Height : sxx = LB284.Location.Y : NU3 = LB285.Location.X : NU4 = LB286.Location.X
  3499. LB285.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB286.Location = New Drawing.Point(NU4, sxx + sx + 10)
  3500. End Sub
  3501. Private Sub LB284_Click(sender As Object, e As EventArgs) Handles LB284.Click
  3502. PA = LB284.Text : 合約內文修改視窗.ShowDialog() : LB284.Text = PA : LB284_移動()
  3503. End Sub
  3504. Private Sub LB284_LocationChanged(sender As Object, e As EventArgs) Handles LB284.LocationChanged
  3505. LB284_移動()
  3506. End Sub
  3507. Private Sub LB284_TextChanged(sender As Object, e As EventArgs) Handles LB284.TextChanged
  3508. LB284_移動()
  3509. End Sub
  3510. '-----------------------------------------------------------------------------------------------------------------
  3511. Private Sub LB285_Click(sender As Object, e As EventArgs) Handles LB285.Click
  3512. NU5 = LB285.Location.X : BL1 = True : PA = LB285.Text : 合約內文修改視窗.ShowDialog() : LB285.Text = PA : BL1 = False : NU5 = 0
  3513. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB285.Location.Y : LB285.Location = New Drawing.Point(syy1, sxx)
  3514. sxx = LB286.Location.Y : LB286.Location = New Drawing.Point(syy2, sxx) : sxx = LB287.Location.Y : LB287.Location = New Drawing.Point(syy2, sxx)
  3515. End Sub
  3516. '-----------------------------------------------------------------------------------------------------------------
  3517. Private Sub LB286_移動()
  3518. Dim sx, sxx As Integer : sx = LB286.Size.Height : sxx = LB286.Location.Y : NU4 = LB287.Location.X : LB287.Location = New Drawing.Point(NU4, sxx + sx + 10)
  3519. End Sub
  3520. Private Sub LB286_Click(sender As Object, e As EventArgs) Handles LB286.Click
  3521. PA = LB286.Text : 合約內文修改視窗.ShowDialog() : LB286.Text = PA : LB286_移動()
  3522. End Sub
  3523. Private Sub LB286_LocationChanged(sender As Object, e As EventArgs) Handles LB286.LocationChanged
  3524. LB286_移動()
  3525. End Sub
  3526. Private Sub LB286_TextChanged(sender As Object, e As EventArgs) Handles LB286.TextChanged
  3527. LB286_移動()
  3528. End Sub
  3529. '-----------------------------------------------------------------------------------------------------------------
  3530. Private Sub LB287_移動()
  3531. Dim sx, sxx As Integer : sx = LB287.Size.Height : sxx = LB287.Location.Y : NU3 = LB288.Location.X : NU4 = LB289.Location.X
  3532. LB288.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB289.Location = New Drawing.Point(NU4, sxx + sx + 10)
  3533. End Sub
  3534. Private Sub LB287_Click(sender As Object, e As EventArgs) Handles LB287.Click
  3535. PA = LB287.Text : 合約內文修改視窗.ShowDialog() : LB287.Text = PA : LB287_移動()
  3536. End Sub
  3537. Private Sub LB287_LocationChanged(sender As Object, e As EventArgs) Handles LB287.LocationChanged
  3538. LB287_移動()
  3539. End Sub
  3540. Private Sub LB287_TextChanged(sender As Object, e As EventArgs) Handles LB287.TextChanged
  3541. LB287_移動()
  3542. End Sub
  3543. '-----------------------------------------------------------------------------------------------------------------
  3544. Private Sub LB288_Click(sender As Object, e As EventArgs) Handles LB288.Click
  3545. NU5 = LB288.Location.X : BL1 = True : PA = LB288.Text : 合約內文修改視窗.ShowDialog() : LB288.Text = PA : BL1 = False : NU5 = 0
  3546. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB288.Location.Y : LB288.Location = New Drawing.Point(syy1, sxx)
  3547. sxx = LB289.Location.Y : LB289.Location = New Drawing.Point(syy2, sxx) : sxx = LB290.Location.Y : LB290.Location = New Drawing.Point(syy2, sxx)
  3548. End Sub
  3549. '-----------------------------------------------------------------------------------------------------------------
  3550. Private Sub LB289_移動()
  3551. Dim sx, sxx As Integer : sx = LB289.Size.Height : sxx = LB289.Location.Y : NU4 = LB290.Location.X : LB290.Location = New Drawing.Point(NU4, sxx + sx + 10)
  3552. End Sub
  3553. Private Sub LB289_Click(sender As Object, e As EventArgs) Handles LB289.Click
  3554. PA = LB289.Text : 合約內文修改視窗.ShowDialog() : LB289.Text = PA : LB289_移動()
  3555. End Sub
  3556. Private Sub LB289_LocationChanged(sender As Object, e As EventArgs) Handles LB289.LocationChanged
  3557. LB289_移動()
  3558. End Sub
  3559. Private Sub LB289_TextChanged(sender As Object, e As EventArgs) Handles LB289.TextChanged
  3560. LB289_移動()
  3561. End Sub
  3562. '-----------------------------------------------------------------------------------------------------------------
  3563. Private Sub LB290_移動()
  3564. Dim sx, sxx As Integer : sx = LB290.Size.Height : sxx = LB290.Location.Y : NU3 = LB291.Location.X : NU4 = LB292.Location.X
  3565. LB291.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB292.Location = New Drawing.Point(NU4, sxx + sx + 10)
  3566. End Sub
  3567. Private Sub LB290_Click(sender As Object, e As EventArgs) Handles LB290.Click
  3568. PA = LB290.Text : 合約內文修改視窗.ShowDialog() : LB290.Text = PA : LB290_移動()
  3569. End Sub
  3570. Private Sub LB290_LocationChanged(sender As Object, e As EventArgs) Handles LB290.LocationChanged
  3571. LB290_移動()
  3572. End Sub
  3573. Private Sub LB290_TextChanged(sender As Object, e As EventArgs) Handles LB290.TextChanged
  3574. LB290_移動()
  3575. End Sub
  3576. '-----------------------------------------------------------------------------------------------------------------
  3577. Private Sub LB291_Click(sender As Object, e As EventArgs) Handles LB291.Click
  3578. NU5 = LB291.Location.X : BL1 = True : PA = LB291.Text : 合約內文修改視窗.ShowDialog() : LB291.Text = PA : BL1 = False : NU5 = 0
  3579. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB291.Location.Y : LB291.Location = New Drawing.Point(syy1, sxx)
  3580. sxx = LB292.Location.Y : LB292.Location = New Drawing.Point(syy2, sxx) : sxx = LB293.Location.Y : LB293.Location = New Drawing.Point(syy2, sxx)
  3581. End Sub
  3582. '-----------------------------------------------------------------------------------------------------------------
  3583. Private Sub LB292_移動()
  3584. Dim sx, sxx As Integer : sx = LB292.Size.Height : sxx = LB292.Location.Y : NU4 = LB293.Location.X : LB293.Location = New Drawing.Point(NU4, sxx + sx + 10)
  3585. End Sub
  3586. Private Sub LB292_Click(sender As Object, e As EventArgs) Handles LB292.Click
  3587. PA = LB292.Text : 合約內文修改視窗.ShowDialog() : LB292.Text = PA : LB292_移動()
  3588. End Sub
  3589. Private Sub LB292_LocationChanged(sender As Object, e As EventArgs) Handles LB292.LocationChanged
  3590. LB292_移動()
  3591. End Sub
  3592. Private Sub LB292_TextChanged(sender As Object, e As EventArgs) Handles LB292.TextChanged
  3593. LB292_移動()
  3594. End Sub
  3595. '-----------------------------------------------------------------------------------------------------------------
  3596. Private Sub LB293_移動()
  3597. Dim sx, sxx As Integer : sx = LB293.Size.Height : sxx = LB293.Location.Y : NU3 = LB294.Location.X : NU4 = LB295.Location.X
  3598. LB294.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB295.Location = New Drawing.Point(NU4, sxx + sx + 10)
  3599. End Sub
  3600. Private Sub LB293_Click(sender As Object, e As EventArgs) Handles LB293.Click
  3601. PA = LB293.Text : 合約內文修改視窗.ShowDialog() : LB293.Text = PA : LB293_移動()
  3602. End Sub
  3603. Private Sub LB293_LocationChanged(sender As Object, e As EventArgs) Handles LB293.LocationChanged
  3604. LB293_移動()
  3605. End Sub
  3606. Private Sub LB293_TextChanged(sender As Object, e As EventArgs) Handles LB293.TextChanged
  3607. LB293_移動()
  3608. End Sub
  3609. '-----------------------------------------------------------------------------------------------------------------
  3610. Private Sub LB294_Click(sender As Object, e As EventArgs) Handles LB294.Click
  3611. NU5 = LB294.Location.X : BL1 = True : PA = LB294.Text : 合約內文修改視窗.ShowDialog() : LB294.Text = PA : BL1 = False : NU5 = 0
  3612. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB294.Location.Y : LB294.Location = New Drawing.Point(syy1, sxx)
  3613. sxx = LB295.Location.Y : LB295.Location = New Drawing.Point(syy2, sxx) : sxx = LB296.Location.Y : LB296.Location = New Drawing.Point(syy2, sxx)
  3614. End Sub
  3615. '-----------------------------------------------------------------------------------------------------------------
  3616. Private Sub LB295_移動()
  3617. Dim sx, sxx As Integer : sx = LB295.Size.Height : sxx = LB295.Location.Y : NU4 = LB296.Location.X : LB296.Location = New Drawing.Point(NU4, sxx + sx + 10)
  3618. End Sub
  3619. Private Sub LB295_Click(sender As Object, e As EventArgs) Handles LB295.Click
  3620. PA = LB295.Text : 合約內文修改視窗.ShowDialog() : LB295.Text = PA : LB295_移動()
  3621. End Sub
  3622. Private Sub LB295_LocationChanged(sender As Object, e As EventArgs) Handles LB295.LocationChanged
  3623. LB295_移動()
  3624. End Sub
  3625. Private Sub LB295_TextChanged(sender As Object, e As EventArgs) Handles LB295.TextChanged
  3626. LB295_移動()
  3627. End Sub
  3628. '-----------------------------------------------------------------------------------------------------------------
  3629. Private Sub LB296_移動()
  3630. Dim sx, sxx As Integer : sx = LB296.Size.Height : sxx = LB296.Location.Y : NU3 = LB297.Location.X : NU4 = LB298.Location.X
  3631. LB297.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB298.Location = New Drawing.Point(NU4, sxx + sx + 10)
  3632. End Sub
  3633. Private Sub LB296_Click(sender As Object, e As EventArgs) Handles LB296.Click
  3634. PA = LB296.Text : 合約內文修改視窗.ShowDialog() : LB296.Text = PA : LB296_移動()
  3635. End Sub
  3636. Private Sub LB296_LocationChanged(sender As Object, e As EventArgs) Handles LB296.LocationChanged
  3637. LB296_移動()
  3638. End Sub
  3639. Private Sub LB296_TextChanged(sender As Object, e As EventArgs) Handles LB296.TextChanged
  3640. LB296_移動()
  3641. End Sub
  3642. '-----------------------------------------------------------------------------------------------------------------
  3643. Private Sub LB297_Click(sender As Object, e As EventArgs) Handles LB297.Click
  3644. NU5 = LB297.Location.X : BL1 = True : PA = LB297.Text : 合約內文修改視窗.ShowDialog() : LB297.Text = PA : BL1 = False : NU5 = 0
  3645. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB297.Location.Y : LB297.Location = New Drawing.Point(syy1, sxx)
  3646. sxx = LB298.Location.Y : LB298.Location = New Drawing.Point(syy2, sxx) : sxx = LB299.Location.Y : LB299.Location = New Drawing.Point(syy2, sxx)
  3647. End Sub
  3648. '-----------------------------------------------------------------------------------------------------------------
  3649. Private Sub LB298_移動()
  3650. Dim sx, sxx As Integer : sx = LB298.Size.Height : sxx = LB298.Location.Y : NU4 = LB299.Location.X : LB299.Location = New Drawing.Point(NU4, sxx + sx + 10)
  3651. End Sub
  3652. Private Sub LB298_Click(sender As Object, e As EventArgs) Handles LB298.Click
  3653. PA = LB298.Text : 合約內文修改視窗.ShowDialog() : LB298.Text = PA : LB298_移動()
  3654. End Sub
  3655. Private Sub LB298_LocationChanged(sender As Object, e As EventArgs) Handles LB298.LocationChanged
  3656. LB298_移動()
  3657. End Sub
  3658. Private Sub LB298_TextChanged(sender As Object, e As EventArgs) Handles LB298.TextChanged
  3659. LB298_移動()
  3660. End Sub
  3661. '-----------------------------------------------------------------------------------------------------------------
  3662. Private Sub LB299_移動()
  3663. Dim sx, sxx As Integer : sx = LB299.Size.Height : sxx = LB299.Location.Y : NU3 = LB300.Location.X : NU4 = LB301.Location.X
  3664. LB300.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB301.Location = New Drawing.Point(NU4, sxx + sx + 10)
  3665. End Sub
  3666. Private Sub LB299_Click(sender As Object, e As EventArgs) Handles LB299.Click
  3667. PA = LB299.Text : 合約內文修改視窗.ShowDialog() : LB299.Text = PA : LB299_移動()
  3668. End Sub
  3669. Private Sub LB299_LocationChanged(sender As Object, e As EventArgs) Handles LB299.LocationChanged
  3670. LB299_移動()
  3671. End Sub
  3672. Private Sub LB299_TextChanged(sender As Object, e As EventArgs) Handles LB299.TextChanged
  3673. LB299_移動()
  3674. End Sub
  3675. '-----------------------------------------------------------------------------------------------------------------
  3676. Private Sub LB300_Click(sender As Object, e As EventArgs) Handles LB300.Click
  3677. NU5 = LB300.Location.X : BL1 = True : PA = LB300.Text : 合約內文修改視窗.ShowDialog() : LB300.Text = PA : BL1 = False : NU5 = 0
  3678. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB300.Location.Y : LB300.Location = New Drawing.Point(syy1, sxx)
  3679. sxx = LB301.Location.Y : LB301.Location = New Drawing.Point(syy2, sxx) : sxx = LB302.Location.Y : LB302.Location = New Drawing.Point(syy2, sxx)
  3680. End Sub
  3681. '-----------------------------------------------------------------------------------------------------------------
  3682. Private Sub LB301_移動()
  3683. Dim sx, sxx As Integer : sx = LB301.Size.Height : sxx = LB301.Location.Y : NU4 = LB302.Location.X : LB302.Location = New Drawing.Point(NU4, sxx + sx + 10)
  3684. End Sub
  3685. Private Sub LB301_Click(sender As Object, e As EventArgs) Handles LB301.Click
  3686. PA = LB301.Text : 合約內文修改視窗.ShowDialog() : LB301.Text = PA : LB301_移動()
  3687. End Sub
  3688. Private Sub LB301_LocationChanged(sender As Object, e As EventArgs) Handles LB301.LocationChanged
  3689. LB301_移動()
  3690. End Sub
  3691. Private Sub LB301_TextChanged(sender As Object, e As EventArgs) Handles LB301.TextChanged
  3692. LB301_移動()
  3693. End Sub
  3694. '-----------------------------------------------------------------------------------------------------------------
  3695. Private Sub LB302_Click(sender As Object, e As EventArgs) Handles LB302.Click
  3696. PA = LB302.Text : 合約內文修改視窗.ShowDialog() : LB302.Text = PA
  3697. End Sub
  3698. '---------------------------第15頁----------------------------------------------------------------------------------------------------------------------------------------------
  3699. Private Sub LB303_Click(sender As Object, e As EventArgs) Handles LB303.Click
  3700. PA = LB303.Text : 合約內文修改視窗.ShowDialog() : LB303.Text = PA
  3701. End Sub
  3702. Private Sub LB304_Click(sender As Object, e As EventArgs) Handles LB304.Click
  3703. PA = LB304.Text : 合約內文修改視窗.ShowDialog() : LB304.Text = PA
  3704. End Sub
  3705. Private Sub LB305_Click(sender As Object, e As EventArgs) Handles LB305.Click
  3706. PA = LB305.Text : 合約內文修改視窗.ShowDialog() : LB305.Text = PA
  3707. End Sub
  3708. '-----------------------------------------------------------------------------------------------------------------
  3709. Private Sub LB306_Click(sender As Object, e As EventArgs) Handles LB306.Click
  3710. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then
  3711. NU5 = LB306.Location.X : BL1 = True : PA = LB306.Text : 合約內文修改視窗.ShowDialog() : LB306.Text = PA : BL1 = False : NU5 = 0
  3712. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB306.Location.Y : LB306.Location = New Drawing.Point(syy1, sxx)
  3713. sxx = LB307.Location.Y : LB307.Location = New Drawing.Point(syy2, sxx) : sxx = LB308.Location.Y : LB308.Location = New Drawing.Point(syy2, sxx) : End If
  3714. End Sub
  3715. '-----------------------------------------------------------------------------------------------------------------
  3716. Private Sub LB307_移動()
  3717. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then
  3718. Dim sx, sxx As Integer : sx = LB307.Size.Height : sxx = LB307.Location.Y : NU4 = LB308.Location.X : LB308.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  3719. End Sub
  3720. Private Sub LB307_Click(sender As Object, e As EventArgs) Handles LB307.Click
  3721. PA = LB307.Text : 合約內文修改視窗.ShowDialog() : LB307.Text = PA : LB307_移動()
  3722. End Sub
  3723. Private Sub LB307_LocationChanged(sender As Object, e As EventArgs) Handles LB307.LocationChanged
  3724. LB307_移動()
  3725. End Sub
  3726. Private Sub LB307_TextChanged(sender As Object, e As EventArgs) Handles LB307.TextChanged
  3727. LB307_移動()
  3728. End Sub
  3729. '-----------------------------------------------------------------------------------------------------------------
  3730. Private Sub LB308_移動()
  3731. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB308.Size.Height
  3732. sxx = LB308.Location.Y : NU3 = LB309.Location.X : NU4 = LB310.Location.X : LB309.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB310.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  3733. End Sub
  3734. Private Sub LB308_Click(sender As Object, e As EventArgs) Handles LB308.Click
  3735. PA = LB308.Text : 合約內文修改視窗.ShowDialog() : LB308.Text = PA : LB308_移動()
  3736. End Sub
  3737. Private Sub LB308_LocationChanged(sender As Object, e As EventArgs) Handles LB308.LocationChanged
  3738. LB308_移動()
  3739. End Sub
  3740. Private Sub LB308_TextChanged(sender As Object, e As EventArgs) Handles LB308.TextChanged
  3741. LB308_移動()
  3742. End Sub
  3743. '-----------------------------------------------------------------------------------------------------------------
  3744. Private Sub LB309_Click(sender As Object, e As EventArgs) Handles LB309.Click
  3745. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then
  3746. NU5 = LB309.Location.X : BL1 = True : PA = LB309.Text : 合約內文修改視窗.ShowDialog() : LB309.Text = PA : BL1 = False : NU5 = 0
  3747. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB309.Location.Y : LB309.Location = New Drawing.Point(syy1, sxx)
  3748. sxx = LB310.Location.Y : LB310.Location = New Drawing.Point(syy2, sxx) : sxx = LB311.Location.Y : LB311.Location = New Drawing.Point(syy2, sxx) : End If
  3749. End Sub
  3750. '-----------------------------------------------------------------------------------------------------------------
  3751. Private Sub LB310_移動()
  3752. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB310.Size.Height
  3753. sxx = LB310.Location.Y : NU4 = LB311.Location.X : LB311.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  3754. End Sub
  3755. Private Sub LB310_Click(sender As Object, e As EventArgs) Handles LB310.Click
  3756. PA = LB310.Text : 合約內文修改視窗.ShowDialog() : LB310.Text = PA : LB310_移動()
  3757. End Sub
  3758. Private Sub LB310_LocationChanged(sender As Object, e As EventArgs) Handles LB310.LocationChanged
  3759. LB310_移動()
  3760. End Sub
  3761. Private Sub LB310_TextChanged(sender As Object, e As EventArgs) Handles LB310.TextChanged
  3762. LB310_移動()
  3763. End Sub
  3764. '-----------------------------------------------------------------------------------------------------------------
  3765. Private Sub LB311_移動()
  3766. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB311.Size.Height : sxx = LB311.Location.Y
  3767. NU3 = LB312.Location.X : NU4 = LB313.Location.X : LB312.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB313.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  3768. End Sub
  3769. Private Sub LB311_Click(sender As Object, e As EventArgs) Handles LB311.Click
  3770. PA = LB311.Text : 合約內文修改視窗.ShowDialog() : LB311.Text = PA : LB311_移動()
  3771. End Sub
  3772. Private Sub LB311_LocationChanged(sender As Object, e As EventArgs) Handles LB311.LocationChanged
  3773. LB311_移動()
  3774. End Sub
  3775. Private Sub LB311_TextChanged(sender As Object, e As EventArgs) Handles LB311.TextChanged
  3776. LB311_移動()
  3777. End Sub
  3778. '-----------------------------------------------------------------------------------------------------------------
  3779. Private Sub LB312_Click(sender As Object, e As EventArgs) Handles LB312.Click
  3780. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then
  3781. NU5 = LB312.Location.X : BL1 = True : PA = LB312.Text : 合約內文修改視窗.ShowDialog() : LB312.Text = PA : BL1 = False : NU5 = 0
  3782. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB312.Location.Y : LB312.Location = New Drawing.Point(syy1, sxx)
  3783. sxx = LB313.Location.Y : LB313.Location = New Drawing.Point(syy2, sxx) : sxx = LB314.Location.Y : LB314.Location = New Drawing.Point(syy2, sxx) : End If
  3784. End Sub
  3785. '-----------------------------------------------------------------------------------------------------------------
  3786. Private Sub LB313_移動()
  3787. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then : Dim sx, sxx As Integer
  3788. sx = LB313.Size.Height : sxx = LB313.Location.Y : NU4 = LB314.Location.X : LB314.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  3789. End Sub
  3790. Private Sub LB313_Click(sender As Object, e As EventArgs) Handles LB313.Click
  3791. PA = LB313.Text : 合約內文修改視窗.ShowDialog() : LB313.Text = PA : LB313_移動()
  3792. End Sub
  3793. Private Sub LB313_LocationChanged(sender As Object, e As EventArgs) Handles LB313.LocationChanged
  3794. LB313_移動()
  3795. End Sub
  3796. Private Sub LB313_TextChanged(sender As Object, e As EventArgs) Handles LB313.TextChanged
  3797. LB313_移動()
  3798. End Sub
  3799. '-----------------------------------------------------------------------------------------------------------------
  3800. Private Sub LB314_移動()
  3801. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB314.Size.Height : sxx = LB314.Location.Y
  3802. NU3 = LB315.Location.X : NU4 = LB316.Location.X : LB315.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB316.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  3803. End Sub
  3804. Private Sub LB314_Click(sender As Object, e As EventArgs) Handles LB314.Click
  3805. PA = LB314.Text : 合約內文修改視窗.ShowDialog() : LB314.Text = PA : LB314_移動()
  3806. End Sub
  3807. Private Sub LB314_LocationChanged(sender As Object, e As EventArgs) Handles LB314.LocationChanged
  3808. LB314_移動()
  3809. End Sub
  3810. Private Sub LB314_TextChanged(sender As Object, e As EventArgs) Handles LB314.TextChanged
  3811. LB314_移動()
  3812. End Sub
  3813. '-----------------------------------------------------------------------------------------------------------------
  3814. Private Sub LB315_Click(sender As Object, e As EventArgs) Handles LB315.Click
  3815. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then
  3816. NU5 = LB315.Location.X : BL1 = True : PA = LB315.Text : 合約內文修改視窗.ShowDialog() : LB315.Text = PA : BL1 = False : NU5 = 0
  3817. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB315.Location.Y : LB315.Location = New Drawing.Point(syy1, sxx)
  3818. sxx = LB316.Location.Y : LB316.Location = New Drawing.Point(syy2, sxx) : sxx = LB317.Location.Y : LB317.Location = New Drawing.Point(syy2, sxx) : End If
  3819. End Sub
  3820. '-----------------------------------------------------------------------------------------------------------------
  3821. Private Sub LB316_移動()
  3822. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then : Dim sx, sxx As Integer
  3823. sx = LB316.Size.Height : sxx = LB316.Location.Y : NU4 = LB317.Location.X : LB317.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  3824. End Sub
  3825. Private Sub LB316_Click(sender As Object, e As EventArgs) Handles LB316.Click
  3826. PA = LB316.Text : 合約內文修改視窗.ShowDialog() : LB316.Text = PA : LB316_移動()
  3827. End Sub
  3828. Private Sub LB316_LocationChanged(sender As Object, e As EventArgs) Handles LB316.LocationChanged
  3829. LB316_移動()
  3830. End Sub
  3831. Private Sub LB316_TextChanged(sender As Object, e As EventArgs) Handles LB316.TextChanged
  3832. LB316_移動()
  3833. End Sub
  3834. '-----------------------------------------------------------------------------------------------------------------
  3835. Private Sub LB317_移動()
  3836. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB317.Size.Height : sxx = LB317.Location.Y
  3837. NU3 = LB318.Location.X : NU4 = LB319.Location.X : LB318.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB319.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  3838. End Sub
  3839. Private Sub LB317_Click(sender As Object, e As EventArgs) Handles LB317.Click
  3840. PA = LB317.Text : 合約內文修改視窗.ShowDialog() : LB317.Text = PA : LB317_移動()
  3841. End Sub
  3842. Private Sub LB317_LocationChanged(sender As Object, e As EventArgs) Handles LB317.LocationChanged
  3843. LB317_移動()
  3844. End Sub
  3845. Private Sub LB317_TextChanged(sender As Object, e As EventArgs) Handles LB317.TextChanged
  3846. LB317_移動()
  3847. End Sub
  3848. '-----------------------------------------------------------------------------------------------------------------
  3849. Private Sub LB318_Click(sender As Object, e As EventArgs) Handles LB318.Click
  3850. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then
  3851. NU5 = LB318.Location.X : BL1 = True : PA = LB318.Text : 合約內文修改視窗.ShowDialog() : LB318.Text = PA : BL1 = False : NU5 = 0
  3852. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB318.Location.Y : LB318.Location = New Drawing.Point(syy1, sxx)
  3853. sxx = LB319.Location.Y : LB319.Location = New Drawing.Point(syy2, sxx) : sxx = LB320.Location.Y : LB320.Location = New Drawing.Point(syy2, sxx) : End If
  3854. End Sub
  3855. '-----------------------------------------------------------------------------------------------------------------
  3856. Private Sub LB319_移動()
  3857. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then : Dim sx, sxx As Integer
  3858. sx = LB319.Size.Height : sxx = LB319.Location.Y : NU4 = LB320.Location.X : LB320.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  3859. End Sub
  3860. Private Sub LB319_Click(sender As Object, e As EventArgs) Handles LB319.Click
  3861. PA = LB319.Text : 合約內文修改視窗.ShowDialog() : LB319.Text = PA : LB319_移動()
  3862. End Sub
  3863. Private Sub LB319_LocationChanged(sender As Object, e As EventArgs) Handles LB319.LocationChanged
  3864. LB319_移動()
  3865. End Sub
  3866. Private Sub LB319_TextChanged(sender As Object, e As EventArgs) Handles LB319.TextChanged
  3867. LB319_移動()
  3868. End Sub
  3869. '-----------------------------------------------------------------------------------------------------------------
  3870. Private Sub LB320_移動()
  3871. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB320.Size.Height : sxx = LB320.Location.Y
  3872. NU3 = LB321.Location.X : NU4 = LB322.Location.X : LB321.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB322.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  3873. End Sub
  3874. Private Sub LB320_Click(sender As Object, e As EventArgs) Handles LB320.Click
  3875. PA = LB320.Text : 合約內文修改視窗.ShowDialog() : LB320.Text = PA : LB320_移動()
  3876. End Sub
  3877. Private Sub LB320_LocationChanged(sender As Object, e As EventArgs) Handles LB320.LocationChanged
  3878. LB320_移動()
  3879. End Sub
  3880. Private Sub LB320_TextChanged(sender As Object, e As EventArgs) Handles LB320.TextChanged
  3881. LB320_移動()
  3882. End Sub
  3883. '-----------------------------------------------------------------------------------------------------------------
  3884. Private Sub LB321_Click(sender As Object, e As EventArgs) Handles LB321.Click
  3885. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then
  3886. NU5 = LB321.Location.X : BL1 = True : PA = LB321.Text : 合約內文修改視窗.ShowDialog() : LB321.Text = PA : BL1 = False : NU5 = 0
  3887. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB321.Location.Y : LB321.Location = New Drawing.Point(syy1, sxx)
  3888. sxx = LB322.Location.Y : LB322.Location = New Drawing.Point(syy2, sxx) : sxx = LB323.Location.Y : LB323.Location = New Drawing.Point(syy2, sxx) : End If
  3889. End Sub
  3890. '-----------------------------------------------------------------------------------------------------------------
  3891. Private Sub LB322_移動()
  3892. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then : Dim sx, sxx As Integer
  3893. sx = LB322.Size.Height : sxx = LB322.Location.Y : NU4 = LB323.Location.X : LB323.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  3894. End Sub
  3895. Private Sub LB322_Click(sender As Object, e As EventArgs) Handles LB322.Click
  3896. PA = LB322.Text : 合約內文修改視窗.ShowDialog() : LB322.Text = PA : LB322_移動()
  3897. End Sub
  3898. Private Sub LB322_LocationChanged(sender As Object, e As EventArgs) Handles LB322.LocationChanged
  3899. LB322_移動()
  3900. End Sub
  3901. Private Sub LB322_TextChanged(sender As Object, e As EventArgs) Handles LB322.TextChanged
  3902. LB322_移動()
  3903. End Sub
  3904. '-----------------------------------------------------------------------------------------------------------------
  3905. Private Sub LB323_移動()
  3906. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB323.Size.Height : sxx = LB323.Location.Y
  3907. NU3 = LB324.Location.X : NU4 = LB325.Location.X : LB324.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB325.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  3908. End Sub
  3909. Private Sub LB323_Click(sender As Object, e As EventArgs) Handles LB323.Click
  3910. PA = LB323.Text : 合約內文修改視窗.ShowDialog() : LB323.Text = PA : LB323_移動()
  3911. End Sub
  3912. Private Sub LB323_LocationChanged(sender As Object, e As EventArgs) Handles LB323.LocationChanged
  3913. LB323_移動()
  3914. End Sub
  3915. Private Sub LB323_TextChanged(sender As Object, e As EventArgs) Handles LB323.TextChanged
  3916. LB323_移動()
  3917. End Sub
  3918. '-----------------------------------------------------------------------------------------------------------------
  3919. Private Sub LB324_Click(sender As Object, e As EventArgs) Handles LB324.Click
  3920. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then
  3921. NU5 = LB324.Location.X : BL1 = True : PA = LB324.Text : 合約內文修改視窗.ShowDialog() : LB324.Text = PA : BL1 = False : NU5 = 0
  3922. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB324.Location.Y : LB324.Location = New Drawing.Point(syy1, sxx)
  3923. sxx = LB325.Location.Y : LB325.Location = New Drawing.Point(syy2, sxx) : sxx = LB326.Location.Y : LB326.Location = New Drawing.Point(syy2, sxx) : End If
  3924. End Sub
  3925. '-----------------------------------------------------------------------------------------------------------------
  3926. Private Sub LB325_移動()
  3927. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then : Dim sx, sxx As Integer
  3928. sx = LB325.Size.Height : sxx = LB325.Location.Y : NU4 = LB326.Location.X : LB326.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  3929. End Sub
  3930. Private Sub LB325_Click(sender As Object, e As EventArgs) Handles LB325.Click
  3931. PA = LB325.Text : 合約內文修改視窗.ShowDialog() : LB325.Text = PA : LB325_移動()
  3932. End Sub
  3933. Private Sub LB325_LocationChanged(sender As Object, e As EventArgs) Handles LB325.LocationChanged
  3934. LB325_移動()
  3935. End Sub
  3936. Private Sub LB325_TextChanged(sender As Object, e As EventArgs) Handles LB325.TextChanged
  3937. LB325_移動()
  3938. End Sub
  3939. '-----------------------------------------------------------------------------------------------------------------
  3940. Private Sub LB326_移動()
  3941. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB326.Size.Height : sxx = LB326.Location.Y
  3942. NU3 = LB327.Location.X : NU4 = LB328.Location.X : LB327.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB328.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  3943. End Sub
  3944. Private Sub LB326_Click(sender As Object, e As EventArgs) Handles LB326.Click
  3945. PA = LB326.Text : 合約內文修改視窗.ShowDialog() : LB326.Text = PA : LB326_移動()
  3946. End Sub
  3947. Private Sub LB326_LocationChanged(sender As Object, e As EventArgs) Handles LB326.LocationChanged
  3948. LB326_移動()
  3949. End Sub
  3950. Private Sub LB326_TextChanged(sender As Object, e As EventArgs) Handles LB326.TextChanged
  3951. LB326_移動()
  3952. End Sub
  3953. '-----------------------------------------------------------------------------------------------------------------
  3954. Private Sub LB327_Click(sender As Object, e As EventArgs) Handles LB327.Click
  3955. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then
  3956. NU5 = LB327.Location.X : BL1 = True : PA = LB327.Text : 合約內文修改視窗.ShowDialog() : LB327.Text = PA : BL1 = False : NU5 = 0
  3957. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB327.Location.Y : LB327.Location = New Drawing.Point(syy1, sxx)
  3958. sxx = LB328.Location.Y : LB328.Location = New Drawing.Point(syy2, sxx) : sxx = LB329.Location.Y : LB329.Location = New Drawing.Point(syy2, sxx) : End If
  3959. End Sub
  3960. '-----------------------------------------------------------------------------------------------------------------
  3961. Private Sub LB328_移動()
  3962. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then : Dim sx, sxx As Integer
  3963. sx = LB328.Size.Height : sxx = LB328.Location.Y : NU4 = LB329.Location.X : LB329.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  3964. End Sub
  3965. Private Sub LB328_Click(sender As Object, e As EventArgs) Handles LB328.Click
  3966. PA = LB328.Text : 合約內文修改視窗.ShowDialog() : LB328.Text = PA : LB328_移動()
  3967. End Sub
  3968. Private Sub LB328_LocationChanged(sender As Object, e As EventArgs) Handles LB328.LocationChanged
  3969. LB328_移動()
  3970. End Sub
  3971. Private Sub LB328_TextChanged(sender As Object, e As EventArgs) Handles LB328.TextChanged
  3972. LB328_移動()
  3973. End Sub
  3974. '-----------------------------------------------------------------------------------------------------------------
  3975. Private Sub LB329_移動()
  3976. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB329.Size.Height : sxx = LB329.Location.Y
  3977. NU3 = LB330.Location.X : NU4 = LB331.Location.X : LB330.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB331.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  3978. End Sub
  3979. Private Sub LB329_Click(sender As Object, e As EventArgs) Handles LB329.Click
  3980. PA = LB329.Text : 合約內文修改視窗.ShowDialog() : LB329.Text = PA : LB329_移動()
  3981. End Sub
  3982. Private Sub LB329_LocationChanged(sender As Object, e As EventArgs) Handles LB329.LocationChanged
  3983. LB329_移動()
  3984. End Sub
  3985. Private Sub LB329_TextChanged(sender As Object, e As EventArgs) Handles LB329.TextChanged
  3986. LB329_移動()
  3987. End Sub
  3988. '-----------------------------------------------------------------------------------------------------------------
  3989. Private Sub LB330_Click(sender As Object, e As EventArgs) Handles LB330.Click
  3990. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then
  3991. NU5 = LB330.Location.X : BL1 = True : PA = LB330.Text : 合約內文修改視窗.ShowDialog() : LB330.Text = PA : BL1 = False : NU5 = 0
  3992. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB330.Location.Y : LB330.Location = New Drawing.Point(syy1, sxx)
  3993. sxx = LB331.Location.Y : LB331.Location = New Drawing.Point(syy2, sxx) : sxx = LB332.Location.Y : LB332.Location = New Drawing.Point(syy2, sxx) : End If
  3994. End Sub
  3995. '-----------------------------------------------------------------------------------------------------------------
  3996. Private Sub LB331_移動()
  3997. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then : Dim sx, sxx As Integer
  3998. sx = LB331.Size.Height : sxx = LB331.Location.Y : NU4 = LB332.Location.X : LB332.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  3999. End Sub
  4000. Private Sub LB331_Click(sender As Object, e As EventArgs) Handles LB331.Click
  4001. PA = LB331.Text : 合約內文修改視窗.ShowDialog() : LB331.Text = PA : LB331_移動()
  4002. End Sub
  4003. Private Sub LB331_LocationChanged(sender As Object, e As EventArgs) Handles LB331.LocationChanged
  4004. LB331_移動()
  4005. End Sub
  4006. Private Sub LB331_TextChanged(sender As Object, e As EventArgs) Handles LB331.TextChanged
  4007. LB331_移動()
  4008. End Sub
  4009. '-----------------------------------------------------------------------------------------------------------------
  4010. Private Sub LB332_移動()
  4011. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB332.Size.Height : sxx = LB332.Location.Y
  4012. NU3 = LB333.Location.X : NU4 = LB334.Location.X : LB333.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB334.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4013. End Sub
  4014. Private Sub LB332_Click(sender As Object, e As EventArgs) Handles LB332.Click
  4015. PA = LB332.Text : 合約內文修改視窗.ShowDialog() : LB332.Text = PA : LB332_移動()
  4016. End Sub
  4017. Private Sub LB332_LocationChanged(sender As Object, e As EventArgs) Handles LB332.LocationChanged
  4018. LB332_移動()
  4019. End Sub
  4020. Private Sub LB332_TextChanged(sender As Object, e As EventArgs) Handles LB332.TextChanged
  4021. LB332_移動()
  4022. End Sub
  4023. '-----------------------------------------------------------------------------------------------------------------
  4024. Private Sub LB333_Click(sender As Object, e As EventArgs) Handles LB333.Click
  4025. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then
  4026. NU5 = LB333.Location.X : BL1 = True : PA = LB333.Text : 合約內文修改視窗.ShowDialog() : LB333.Text = PA : BL1 = False : NU5 = 0
  4027. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB333.Location.Y : LB333.Location = New Drawing.Point(syy1, sxx)
  4028. sxx = LB334.Location.Y : LB334.Location = New Drawing.Point(syy2, sxx) : sxx = LB335.Location.Y : LB335.Location = New Drawing.Point(syy2, sxx) : End If
  4029. End Sub
  4030. '-----------------------------------------------------------------------------------------------------------------
  4031. Private Sub LB334_移動()
  4032. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then : Dim sx, sxx As Integer
  4033. sx = LB334.Size.Height : sxx = LB334.Location.Y : NU4 = LB335.Location.X : LB335.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4034. End Sub
  4035. Private Sub LB334_Click(sender As Object, e As EventArgs) Handles LB334.Click
  4036. PA = LB334.Text : 合約內文修改視窗.ShowDialog() : LB334.Text = PA : LB334_移動()
  4037. End Sub
  4038. Private Sub LB334_LocationChanged(sender As Object, e As EventArgs) Handles LB334.LocationChanged
  4039. LB334_移動()
  4040. End Sub
  4041. Private Sub LB334_TextChanged(sender As Object, e As EventArgs) Handles LB334.TextChanged
  4042. LB334_移動()
  4043. End Sub
  4044. '-----------------------------------------------------------------------------------------------------------------
  4045. Private Sub LB335_移動()
  4046. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB335.Size.Height : sxx = LB335.Location.Y
  4047. NU3 = LB336.Location.X : NU4 = LB337.Location.X : LB336.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB337.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4048. End Sub
  4049. Private Sub LB335_Click(sender As Object, e As EventArgs) Handles LB335.Click
  4050. PA = LB335.Text : 合約內文修改視窗.ShowDialog() : LB335.Text = PA : LB335_移動()
  4051. End Sub
  4052. Private Sub LB335_LocationChanged(sender As Object, e As EventArgs) Handles LB335.LocationChanged
  4053. LB335_移動()
  4054. End Sub
  4055. Private Sub LB335_TextChanged(sender As Object, e As EventArgs) Handles LB335.TextChanged
  4056. LB335_移動()
  4057. End Sub
  4058. '-----------------------------------------------------------------------------------------------------------------
  4059. Private Sub LB336_Click(sender As Object, e As EventArgs) Handles LB336.Click
  4060. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then
  4061. NU5 = LB336.Location.X : BL1 = True : PA = LB336.Text : 合約內文修改視窗.ShowDialog() : LB336.Text = PA : BL1 = False : NU5 = 0
  4062. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB336.Location.Y : LB336.Location = New Drawing.Point(syy1, sxx)
  4063. sxx = LB337.Location.Y : LB337.Location = New Drawing.Point(syy2, sxx) : sxx = LB338.Location.Y : LB338.Location = New Drawing.Point(syy2, sxx) : End If
  4064. End Sub
  4065. '-----------------------------------------------------------------------------------------------------------------
  4066. Private Sub LB337_移動()
  4067. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then : Dim sx, sxx As Integer
  4068. sx = LB337.Size.Height : sxx = LB337.Location.Y : NU4 = LB338.Location.X : LB338.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4069. End Sub
  4070. Private Sub LB337_Click(sender As Object, e As EventArgs) Handles LB337.Click
  4071. PA = LB337.Text : 合約內文修改視窗.ShowDialog() : LB337.Text = PA : LB337_移動()
  4072. End Sub
  4073. Private Sub LB337_LocationChanged(sender As Object, e As EventArgs) Handles LB337.LocationChanged
  4074. LB337_移動()
  4075. End Sub
  4076. Private Sub LB337_TextChanged(sender As Object, e As EventArgs) Handles LB337.TextChanged
  4077. LB337_移動()
  4078. End Sub
  4079. '-----------------------------------------------------------------------------------------------------------------
  4080. Private Sub LB338_移動()
  4081. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB338.Size.Height : sxx = LB338.Location.Y
  4082. NU3 = LB339.Location.X : NU4 = LB340.Location.X : LB339.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB340.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4083. End Sub
  4084. Private Sub LB338_Click(sender As Object, e As EventArgs) Handles LB338.Click
  4085. PA = LB338.Text : 合約內文修改視窗.ShowDialog() : LB338.Text = PA : LB338_移動()
  4086. End Sub
  4087. Private Sub LB338_LocationChanged(sender As Object, e As EventArgs) Handles LB338.LocationChanged
  4088. LB338_移動()
  4089. End Sub
  4090. Private Sub LB338_TextChanged(sender As Object, e As EventArgs) Handles LB338.TextChanged
  4091. LB338_移動()
  4092. End Sub
  4093. '-----------------------------------------------------------------------------------------------------------------
  4094. Private Sub LB339_Click(sender As Object, e As EventArgs) Handles LB339.Click
  4095. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then
  4096. NU5 = LB339.Location.X : BL1 = True : PA = LB339.Text : 合約內文修改視窗.ShowDialog() : LB339.Text = PA : BL1 = False : NU5 = 0
  4097. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB339.Location.Y : LB339.Location = New Drawing.Point(syy1, sxx)
  4098. sxx = LB340.Location.Y : LB340.Location = New Drawing.Point(syy2, sxx) : sxx = LB341.Location.Y : LB341.Location = New Drawing.Point(syy2, sxx) : End If
  4099. End Sub
  4100. '-----------------------------------------------------------------------------------------------------------------
  4101. Private Sub LB340_移動()
  4102. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then : Dim sx, sxx As Integer
  4103. sx = LB340.Size.Height : sxx = LB340.Location.Y : NU4 = LB341.Location.X : LB341.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4104. End Sub
  4105. Private Sub LB340_Click(sender As Object, e As EventArgs) Handles LB340.Click
  4106. PA = LB340.Text : 合約內文修改視窗.ShowDialog() : LB340.Text = PA : LB340_移動()
  4107. End Sub
  4108. Private Sub LB340_LocationChanged(sender As Object, e As EventArgs) Handles LB340.LocationChanged
  4109. LB340_移動()
  4110. End Sub
  4111. Private Sub LB340_TextChanged(sender As Object, e As EventArgs) Handles LB340.TextChanged
  4112. LB340_移動()
  4113. End Sub
  4114. '-----------------------------------------------------------------------------------------------------------------
  4115. Private Sub LB341_移動()
  4116. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB341.Size.Height : sxx = LB341.Location.Y
  4117. NU3 = LB342.Location.X : NU4 = LB343.Location.X : LB342.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB343.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4118. End Sub
  4119. Private Sub LB341_Click(sender As Object, e As EventArgs) Handles LB341.Click
  4120. PA = LB341.Text : 合約內文修改視窗.ShowDialog() : LB341.Text = PA : LB341_移動()
  4121. End Sub
  4122. Private Sub LB341_LocationChanged(sender As Object, e As EventArgs) Handles LB341.LocationChanged
  4123. LB341_移動()
  4124. End Sub
  4125. Private Sub LB341_TextChanged(sender As Object, e As EventArgs) Handles LB341.TextChanged
  4126. LB341_移動()
  4127. End Sub
  4128. '-----------------------------------------------------------------------------------------------------------------
  4129. Private Sub LB342_Click(sender As Object, e As EventArgs) Handles LB342.Click
  4130. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then
  4131. NU5 = LB342.Location.X : BL1 = True : PA = LB342.Text : 合約內文修改視窗.ShowDialog() : LB342.Text = PA : BL1 = False : NU5 = 0
  4132. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB342.Location.Y : LB342.Location = New Drawing.Point(syy1, sxx)
  4133. sxx = LB343.Location.Y : LB343.Location = New Drawing.Point(syy2, sxx) : sxx = LB344.Location.Y : LB344.Location = New Drawing.Point(syy2, sxx) : End If
  4134. End Sub
  4135. '-----------------------------------------------------------------------------------------------------------------
  4136. Private Sub LB343_移動()
  4137. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then : Dim sx, sxx As Integer
  4138. sx = LB343.Size.Height : sxx = LB343.Location.Y : NU4 = LB344.Location.X : LB344.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4139. End Sub
  4140. Private Sub LB343_Click(sender As Object, e As EventArgs) Handles LB343.Click
  4141. PA = LB343.Text : 合約內文修改視窗.ShowDialog() : LB343.Text = PA : LB343_移動()
  4142. End Sub
  4143. Private Sub LB343_LocationChanged(sender As Object, e As EventArgs) Handles LB343.LocationChanged
  4144. LB343_移動()
  4145. End Sub
  4146. Private Sub LB343_TextChanged(sender As Object, e As EventArgs) Handles LB343.TextChanged
  4147. LB343_移動()
  4148. End Sub
  4149. '-----------------------------------------------------------------------------------------------------------------
  4150. Private Sub LB344_移動()
  4151. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB344.Size.Height : sxx = LB344.Location.Y
  4152. NU3 = LB345.Location.X : NU4 = LB346.Location.X : LB345.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB346.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4153. End Sub
  4154. Private Sub LB344_Click(sender As Object, e As EventArgs) Handles LB344.Click
  4155. PA = LB344.Text : 合約內文修改視窗.ShowDialog() : LB344.Text = PA : LB344_移動()
  4156. End Sub
  4157. Private Sub LB344_LocationChanged(sender As Object, e As EventArgs) Handles LB344.LocationChanged
  4158. LB344_移動()
  4159. End Sub
  4160. Private Sub LB344_TextChanged(sender As Object, e As EventArgs) Handles LB344.TextChanged
  4161. LB344_移動()
  4162. End Sub
  4163. '-----------------------------------------------------------------------------------------------------------------
  4164. Private Sub LB345_Click(sender As Object, e As EventArgs) Handles LB345.Click
  4165. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then
  4166. NU5 = LB345.Location.X : BL1 = True : PA = LB345.Text : 合約內文修改視窗.ShowDialog() : LB345.Text = PA : BL1 = False : NU5 = 0
  4167. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB345.Location.Y : LB345.Location = New Drawing.Point(syy1, sxx)
  4168. sxx = LB346.Location.Y : LB346.Location = New Drawing.Point(syy2, sxx) : sxx = LB347.Location.Y : LB347.Location = New Drawing.Point(syy2, sxx) : End If
  4169. End Sub
  4170. '-----------------------------------------------------------------------------------------------------------------
  4171. Private Sub LB346_移動()
  4172. If (Val(最末頁_cb.Text) > 19 And 翻頁_nud.Value = 15) Or 自動移動 = True Then : Dim sx, sxx As Integer
  4173. sx = LB346.Size.Height : sxx = LB346.Location.Y : NU4 = LB347.Location.X : LB347.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4174. End Sub
  4175. Private Sub LB346_Click(sender As Object, e As EventArgs) Handles LB346.Click
  4176. PA = LB346.Text : 合約內文修改視窗.ShowDialog() : LB346.Text = PA : LB346_移動()
  4177. End Sub
  4178. Private Sub LB346_LocationChanged(sender As Object, e As EventArgs) Handles LB346.LocationChanged
  4179. LB346_移動()
  4180. End Sub
  4181. Private Sub LB346_TextChanged(sender As Object, e As EventArgs) Handles LB346.TextChanged
  4182. LB346_移動()
  4183. End Sub
  4184. '-----------------------------------------------------------------------------------------------------------------
  4185. Private Sub LB347_Click(sender As Object, e As EventArgs) Handles LB347.Click
  4186. PA = LB347.Text : 合約內文修改視窗.ShowDialog() : LB347.Text = PA
  4187. End Sub
  4188. '---------------------------第14頁----------------------------------------------------------------------------------------------------------------------------------------------
  4189. Private Sub LB348_Click(sender As Object, e As EventArgs) Handles LB348.Click
  4190. PA = LB348.Text : 合約內文修改視窗.ShowDialog() : LB348.Text = PA
  4191. End Sub
  4192. Private Sub LB349_Click(sender As Object, e As EventArgs) Handles LB349.Click
  4193. PA = LB349.Text : 合約內文修改視窗.ShowDialog() : LB349.Text = PA
  4194. End Sub
  4195. Private Sub LB350_Click(sender As Object, e As EventArgs) Handles LB350.Click
  4196. PA = LB350.Text : 合約內文修改視窗.ShowDialog() : LB350.Text = PA
  4197. End Sub
  4198. '-----------------------------------------------------------------------------------------------------------------
  4199. Private Sub LB351_Click(sender As Object, e As EventArgs) Handles LB351.Click
  4200. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then
  4201. NU5 = LB351.Location.X : BL1 = True : PA = LB351.Text : 合約內文修改視窗.ShowDialog() : LB351.Text = PA : BL1 = False : NU5 = 0
  4202. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB351.Location.Y : LB351.Location = New Drawing.Point(syy1, sxx)
  4203. sxx = LB352.Location.Y : LB352.Location = New Drawing.Point(syy2, sxx) : sxx = LB353.Location.Y : LB353.Location = New Drawing.Point(syy2, sxx) : End If
  4204. End Sub
  4205. '-----------------------------------------------------------------------------------------------------------------
  4206. Private Sub LB352_移動()
  4207. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then : Dim sx, sxx As Integer
  4208. sx = LB352.Size.Height : sxx = LB352.Location.Y : NU4 = LB353.Location.X : LB353.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4209. End Sub
  4210. Private Sub LB352_Click(sender As Object, e As EventArgs) Handles LB352.Click
  4211. PA = LB352.Text : 合約內文修改視窗.ShowDialog() : LB352.Text = PA : LB352_移動()
  4212. End Sub
  4213. Private Sub LB352_LocationChanged(sender As Object, e As EventArgs) Handles LB352.LocationChanged
  4214. LB352_移動()
  4215. End Sub
  4216. Private Sub LB352_TextChanged(sender As Object, e As EventArgs) Handles LB352.TextChanged
  4217. LB352_移動()
  4218. End Sub
  4219. '-----------------------------------------------------------------------------------------------------------------
  4220. Private Sub LB353_移動()
  4221. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB353.Size.Height : sxx = LB353.Location.Y
  4222. NU3 = LB354.Location.X : NU4 = LB355.Location.X : LB354.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB355.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4223. End Sub
  4224. Private Sub LB353_Click(sender As Object, e As EventArgs) Handles LB353.Click
  4225. PA = LB353.Text : 合約內文修改視窗.ShowDialog() : LB353.Text = PA : LB353_移動()
  4226. End Sub
  4227. Private Sub LB353_LocationChanged(sender As Object, e As EventArgs) Handles LB353.LocationChanged
  4228. LB353_移動()
  4229. End Sub
  4230. Private Sub LB353_TextChanged(sender As Object, e As EventArgs) Handles LB353.TextChanged
  4231. LB353_移動()
  4232. End Sub
  4233. '-----------------------------------------------------------------------------------------------------------------
  4234. Private Sub LB354_Click(sender As Object, e As EventArgs) Handles LB354.Click
  4235. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then
  4236. NU5 = LB354.Location.X : BL1 = True : PA = LB354.Text : 合約內文修改視窗.ShowDialog() : LB354.Text = PA : BL1 = False : NU5 = 0
  4237. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB354.Location.Y : LB354.Location = New Drawing.Point(syy1, sxx)
  4238. sxx = LB355.Location.Y : LB355.Location = New Drawing.Point(syy2, sxx) : sxx = LB356.Location.Y : LB356.Location = New Drawing.Point(syy2, sxx) : End If
  4239. End Sub
  4240. '-----------------------------------------------------------------------------------------------------------------
  4241. Private Sub LB355_移動()
  4242. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then : Dim sx, sxx As Integer
  4243. sx = LB355.Size.Height : sxx = LB355.Location.Y : NU4 = LB356.Location.X : LB356.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4244. End Sub
  4245. Private Sub LB355_Click(sender As Object, e As EventArgs) Handles LB355.Click
  4246. PA = LB355.Text : 合約內文修改視窗.ShowDialog() : LB355.Text = PA : LB355_移動()
  4247. End Sub
  4248. Private Sub LB355_LocationChanged(sender As Object, e As EventArgs) Handles LB355.LocationChanged
  4249. LB355_移動()
  4250. End Sub
  4251. Private Sub LB355_TextChanged(sender As Object, e As EventArgs) Handles LB355.TextChanged
  4252. LB355_移動()
  4253. End Sub
  4254. '-----------------------------------------------------------------------------------------------------------------
  4255. Private Sub LB356_移動()
  4256. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB356.Size.Height : sxx = LB356.Location.Y
  4257. NU3 = LB357.Location.X : NU4 = LB358.Location.X : LB357.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB358.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4258. End Sub
  4259. Private Sub LB356_Click(sender As Object, e As EventArgs) Handles LB356.Click
  4260. PA = LB356.Text : 合約內文修改視窗.ShowDialog() : LB356.Text = PA : LB356_移動()
  4261. End Sub
  4262. Private Sub LB356_LocationChanged(sender As Object, e As EventArgs) Handles LB356.LocationChanged
  4263. LB356_移動()
  4264. End Sub
  4265. Private Sub LB356_TextChanged(sender As Object, e As EventArgs) Handles LB356.TextChanged
  4266. LB356_移動()
  4267. End Sub
  4268. '-----------------------------------------------------------------------------------------------------------------
  4269. Private Sub LB357_Click(sender As Object, e As EventArgs) Handles LB357.Click
  4270. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then
  4271. NU5 = LB357.Location.X : BL1 = True : PA = LB357.Text : 合約內文修改視窗.ShowDialog() : LB357.Text = PA : BL1 = False : NU5 = 0
  4272. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB357.Location.Y : LB357.Location = New Drawing.Point(syy1, sxx)
  4273. sxx = LB358.Location.Y : LB358.Location = New Drawing.Point(syy2, sxx) : sxx = LB359.Location.Y : LB359.Location = New Drawing.Point(syy2, sxx) : End If
  4274. End Sub
  4275. '-----------------------------------------------------------------------------------------------------------------
  4276. Private Sub LB358_移動()
  4277. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then : Dim sx, sxx As Integer
  4278. sx = LB358.Size.Height : sxx = LB358.Location.Y : NU4 = LB359.Location.X : LB359.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4279. End Sub
  4280. Private Sub LB358_Click(sender As Object, e As EventArgs) Handles LB358.Click
  4281. PA = LB358.Text : 合約內文修改視窗.ShowDialog() : LB358.Text = PA : LB358_移動()
  4282. End Sub
  4283. Private Sub LB358_LocationChanged(sender As Object, e As EventArgs) Handles LB358.LocationChanged
  4284. LB358_移動()
  4285. End Sub
  4286. Private Sub LB358_TextChanged(sender As Object, e As EventArgs) Handles LB358.TextChanged
  4287. LB358_移動()
  4288. End Sub
  4289. '-----------------------------------------------------------------------------------------------------------------
  4290. Private Sub LB359_移動()
  4291. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB359.Size.Height : sxx = LB359.Location.Y
  4292. NU3 = LB360.Location.X : NU4 = LB361.Location.X : LB360.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB361.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4293. End Sub
  4294. Private Sub LB359_Click(sender As Object, e As EventArgs) Handles LB359.Click
  4295. PA = LB359.Text : 合約內文修改視窗.ShowDialog() : LB359.Text = PA : LB359_移動()
  4296. End Sub
  4297. Private Sub LB359_LocationChanged(sender As Object, e As EventArgs) Handles LB359.LocationChanged
  4298. LB359_移動()
  4299. End Sub
  4300. Private Sub LB359_TextChanged(sender As Object, e As EventArgs) Handles LB359.TextChanged
  4301. LB359_移動()
  4302. End Sub
  4303. '-----------------------------------------------------------------------------------------------------------------
  4304. Private Sub LB360_Click(sender As Object, e As EventArgs) Handles LB360.Click
  4305. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then
  4306. NU5 = LB360.Location.X : BL1 = True : PA = LB360.Text : 合約內文修改視窗.ShowDialog() : LB360.Text = PA : BL1 = False : NU5 = 0
  4307. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB360.Location.Y : LB360.Location = New Drawing.Point(syy1, sxx)
  4308. sxx = LB361.Location.Y : LB361.Location = New Drawing.Point(syy2, sxx) : sxx = LB362.Location.Y : LB362.Location = New Drawing.Point(syy2, sxx) : End If
  4309. End Sub
  4310. '-----------------------------------------------------------------------------------------------------------------
  4311. Private Sub LB361_移動()
  4312. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then : Dim sx, sxx As Integer
  4313. sx = LB361.Size.Height : sxx = LB361.Location.Y : NU4 = LB362.Location.X : LB362.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4314. End Sub
  4315. Private Sub LB361_Click(sender As Object, e As EventArgs) Handles LB361.Click
  4316. PA = LB361.Text : 合約內文修改視窗.ShowDialog() : LB361.Text = PA : LB361_移動()
  4317. End Sub
  4318. Private Sub LB361_LocationChanged(sender As Object, e As EventArgs) Handles LB361.LocationChanged
  4319. LB361_移動()
  4320. End Sub
  4321. Private Sub LB361_TextChanged(sender As Object, e As EventArgs) Handles LB361.TextChanged
  4322. LB361_移動()
  4323. End Sub
  4324. '-----------------------------------------------------------------------------------------------------------------
  4325. Private Sub LB362_移動()
  4326. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB362.Size.Height : sxx = LB362.Location.Y
  4327. NU3 = LB363.Location.X : NU4 = LB364.Location.X : LB363.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB364.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4328. End Sub
  4329. Private Sub LB362_Click(sender As Object, e As EventArgs) Handles LB362.Click
  4330. PA = LB362.Text : 合約內文修改視窗.ShowDialog() : LB362.Text = PA : LB362_移動()
  4331. End Sub
  4332. Private Sub LB362_LocationChanged(sender As Object, e As EventArgs) Handles LB362.LocationChanged
  4333. LB362_移動()
  4334. End Sub
  4335. Private Sub LB362_TextChanged(sender As Object, e As EventArgs) Handles LB362.TextChanged
  4336. LB362_移動()
  4337. End Sub
  4338. '-----------------------------------------------------------------------------------------------------------------
  4339. Private Sub LB363_Click(sender As Object, e As EventArgs) Handles LB363.Click
  4340. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then
  4341. NU5 = LB363.Location.X : BL1 = True : PA = LB363.Text : 合約內文修改視窗.ShowDialog() : LB363.Text = PA : BL1 = False : NU5 = 0
  4342. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB363.Location.Y : LB363.Location = New Drawing.Point(syy1, sxx)
  4343. sxx = LB364.Location.Y : LB364.Location = New Drawing.Point(syy2, sxx) : sxx = LB365.Location.Y : LB365.Location = New Drawing.Point(syy2, sxx) : End If
  4344. End Sub
  4345. '-----------------------------------------------------------------------------------------------------------------
  4346. Private Sub LB364_移動()
  4347. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then : Dim sx, sxx As Integer
  4348. sx = LB364.Size.Height : sxx = LB364.Location.Y : NU4 = LB365.Location.X : LB365.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4349. End Sub
  4350. Private Sub LB364_Click(sender As Object, e As EventArgs) Handles LB364.Click
  4351. PA = LB364.Text : 合約內文修改視窗.ShowDialog() : LB364.Text = PA : LB364_移動()
  4352. End Sub
  4353. Private Sub LB364_LocationChanged(sender As Object, e As EventArgs) Handles LB364.LocationChanged
  4354. LB364_移動()
  4355. End Sub
  4356. Private Sub LB364_TextChanged(sender As Object, e As EventArgs) Handles LB364.TextChanged
  4357. LB364_移動()
  4358. End Sub
  4359. '-----------------------------------------------------------------------------------------------------------------
  4360. Private Sub LB365_移動()
  4361. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB365.Size.Height : sxx = LB365.Location.Y
  4362. NU3 = LB366.Location.X : NU4 = LB367.Location.X : LB366.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB367.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4363. End Sub
  4364. Private Sub LB365_Click(sender As Object, e As EventArgs) Handles LB365.Click
  4365. PA = LB365.Text : 合約內文修改視窗.ShowDialog() : LB365.Text = PA : LB365_移動()
  4366. End Sub
  4367. Private Sub LB365_LocationChanged(sender As Object, e As EventArgs) Handles LB365.LocationChanged
  4368. LB365_移動()
  4369. End Sub
  4370. Private Sub LB365_TextChanged(sender As Object, e As EventArgs) Handles LB365.TextChanged
  4371. LB365_移動()
  4372. End Sub
  4373. '-----------------------------------------------------------------------------------------------------------------
  4374. Private Sub LB366_Click(sender As Object, e As EventArgs) Handles LB366.Click
  4375. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then
  4376. NU5 = LB366.Location.X : BL1 = True : PA = LB366.Text : 合約內文修改視窗.ShowDialog() : LB366.Text = PA : BL1 = False : NU5 = 0
  4377. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB366.Location.Y : LB366.Location = New Drawing.Point(syy1, sxx)
  4378. sxx = LB367.Location.Y : LB367.Location = New Drawing.Point(syy2, sxx) : sxx = LB368.Location.Y : LB368.Location = New Drawing.Point(syy2, sxx) : End If
  4379. End Sub
  4380. '-----------------------------------------------------------------------------------------------------------------
  4381. Private Sub LB367_移動()
  4382. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then : Dim sx, sxx As Integer
  4383. sx = LB367.Size.Height : sxx = LB367.Location.Y : NU4 = LB368.Location.X : LB368.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4384. End Sub
  4385. Private Sub LB367_Click(sender As Object, e As EventArgs) Handles LB367.Click
  4386. PA = LB367.Text : 合約內文修改視窗.ShowDialog() : LB367.Text = PA : LB367_移動()
  4387. End Sub
  4388. Private Sub LB367_LocationChanged(sender As Object, e As EventArgs) Handles LB367.LocationChanged
  4389. LB367_移動()
  4390. End Sub
  4391. Private Sub LB367_TextChanged(sender As Object, e As EventArgs) Handles LB367.TextChanged
  4392. LB367_移動()
  4393. End Sub
  4394. '-----------------------------------------------------------------------------------------------------------------
  4395. Private Sub LB368_移動()
  4396. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB368.Size.Height : sxx = LB368.Location.Y
  4397. NU3 = LB369.Location.X : NU4 = LB370.Location.X : LB369.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB370.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4398. End Sub
  4399. Private Sub LB368_Click(sender As Object, e As EventArgs) Handles LB368.Click
  4400. PA = LB368.Text : 合約內文修改視窗.ShowDialog() : LB368.Text = PA : LB368_移動()
  4401. End Sub
  4402. Private Sub LB368_LocationChanged(sender As Object, e As EventArgs) Handles LB368.LocationChanged
  4403. LB368_移動()
  4404. End Sub
  4405. Private Sub LB368_TextChanged(sender As Object, e As EventArgs) Handles LB368.TextChanged
  4406. LB368_移動()
  4407. End Sub
  4408. '-----------------------------------------------------------------------------------------------------------------
  4409. Private Sub LB369_Click(sender As Object, e As EventArgs) Handles LB369.Click
  4410. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then
  4411. NU5 = LB369.Location.X : BL1 = True : PA = LB369.Text : 合約內文修改視窗.ShowDialog() : LB369.Text = PA : BL1 = False : NU5 = 0
  4412. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB369.Location.Y : LB369.Location = New Drawing.Point(syy1, sxx)
  4413. sxx = LB370.Location.Y : LB370.Location = New Drawing.Point(syy2, sxx) : sxx = LB371.Location.Y : LB371.Location = New Drawing.Point(syy2, sxx) : End If
  4414. End Sub
  4415. '-----------------------------------------------------------------------------------------------------------------
  4416. Private Sub LB370_移動()
  4417. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then : Dim sx, sxx As Integer
  4418. sx = LB370.Size.Height : sxx = LB370.Location.Y : NU4 = LB371.Location.X : LB371.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4419. End Sub
  4420. Private Sub LB370_Click(sender As Object, e As EventArgs) Handles LB370.Click
  4421. PA = LB370.Text : 合約內文修改視窗.ShowDialog() : LB370.Text = PA : LB370_移動()
  4422. End Sub
  4423. Private Sub LB370_LocationChanged(sender As Object, e As EventArgs) Handles LB370.LocationChanged
  4424. LB370_移動()
  4425. End Sub
  4426. Private Sub LB370_TextChanged(sender As Object, e As EventArgs) Handles LB370.TextChanged
  4427. LB370_移動()
  4428. End Sub
  4429. '-----------------------------------------------------------------------------------------------------------------
  4430. Private Sub LB371_移動()
  4431. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB371.Size.Height : sxx = LB371.Location.Y
  4432. NU3 = LB372.Location.X : NU4 = LB373.Location.X : LB372.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB373.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4433. End Sub
  4434. Private Sub LB371_Click(sender As Object, e As EventArgs) Handles LB371.Click
  4435. PA = LB371.Text : 合約內文修改視窗.ShowDialog() : LB371.Text = PA : LB371_移動()
  4436. End Sub
  4437. Private Sub LB371_LocationChanged(sender As Object, e As EventArgs) Handles LB371.LocationChanged
  4438. LB371_移動()
  4439. End Sub
  4440. Private Sub LB371_TextChanged(sender As Object, e As EventArgs) Handles LB371.TextChanged
  4441. LB371_移動()
  4442. End Sub
  4443. '-----------------------------------------------------------------------------------------------------------------
  4444. Private Sub LB372_Click(sender As Object, e As EventArgs) Handles LB372.Click
  4445. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then
  4446. NU5 = LB372.Location.X : BL1 = True : PA = LB372.Text : 合約內文修改視窗.ShowDialog() : LB372.Text = PA : BL1 = False : NU5 = 0
  4447. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB372.Location.Y : LB372.Location = New Drawing.Point(syy1, sxx)
  4448. sxx = LB373.Location.Y : LB373.Location = New Drawing.Point(syy2, sxx) : sxx = LB374.Location.Y : LB374.Location = New Drawing.Point(syy2, sxx) : End If
  4449. End Sub
  4450. '-----------------------------------------------------------------------------------------------------------------
  4451. Private Sub LB373_移動()
  4452. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then
  4453. Dim sx, sxx As Integer : sx = LB373.Size.Height : sxx = LB373.Location.Y : NU4 = LB374.Location.X : LB374.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4454. End Sub
  4455. Private Sub LB373_Click(sender As Object, e As EventArgs) Handles LB373.Click
  4456. PA = LB373.Text : 合約內文修改視窗.ShowDialog() : LB373.Text = PA : LB373_移動()
  4457. End Sub
  4458. Private Sub LB373_LocationChanged(sender As Object, e As EventArgs) Handles LB373.LocationChanged
  4459. LB373_移動()
  4460. End Sub
  4461. Private Sub LB373_TextChanged(sender As Object, e As EventArgs) Handles LB373.TextChanged
  4462. LB373_移動()
  4463. End Sub
  4464. '-----------------------------------------------------------------------------------------------------------------
  4465. Private Sub LB374_移動()
  4466. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB374.Size.Height : sxx = LB374.Location.Y
  4467. NU3 = LB375.Location.X : NU4 = LB376.Location.X : LB375.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB376.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4468. End Sub
  4469. Private Sub LB374_Click(sender As Object, e As EventArgs) Handles LB374.Click
  4470. PA = LB374.Text : 合約內文修改視窗.ShowDialog() : LB374.Text = PA : LB374_移動()
  4471. End Sub
  4472. Private Sub LB374_LocationChanged(sender As Object, e As EventArgs) Handles LB374.LocationChanged
  4473. LB374_移動()
  4474. End Sub
  4475. Private Sub LB374_TextChanged(sender As Object, e As EventArgs) Handles LB374.TextChanged
  4476. LB374_移動()
  4477. End Sub
  4478. '-----------------------------------------------------------------------------------------------------------------
  4479. Private Sub LB375_Click(sender As Object, e As EventArgs) Handles LB375.Click
  4480. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then
  4481. NU5 = LB375.Location.X : BL1 = True : PA = LB375.Text : 合約內文修改視窗.ShowDialog() : LB375.Text = PA : BL1 = False : NU5 = 0
  4482. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB375.Location.Y : LB375.Location = New Drawing.Point(syy1, sxx)
  4483. sxx = LB376.Location.Y : LB376.Location = New Drawing.Point(syy2, sxx) : sxx = LB377.Location.Y : LB377.Location = New Drawing.Point(syy2, sxx) : End If
  4484. End Sub
  4485. '-----------------------------------------------------------------------------------------------------------------
  4486. Private Sub LB376_移動()
  4487. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then
  4488. Dim sx, sxx As Integer : sx = LB376.Size.Height : sxx = LB376.Location.Y : NU4 = LB377.Location.X : LB377.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4489. End Sub
  4490. Private Sub LB376_Click(sender As Object, e As EventArgs) Handles LB376.Click
  4491. PA = LB376.Text : 合約內文修改視窗.ShowDialog() : LB376.Text = PA : LB376_移動()
  4492. End Sub
  4493. Private Sub LB376_LocationChanged(sender As Object, e As EventArgs) Handles LB376.LocationChanged
  4494. LB376_移動()
  4495. End Sub
  4496. Private Sub LB376_TextChanged(sender As Object, e As EventArgs) Handles LB376.TextChanged
  4497. LB376_移動()
  4498. End Sub
  4499. '-----------------------------------------------------------------------------------------------------------------
  4500. Private Sub LB377_移動()
  4501. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB377.Size.Height : sxx = LB377.Location.Y
  4502. NU3 = LB378.Location.X : NU4 = LB379.Location.X : LB378.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB379.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4503. End Sub
  4504. Private Sub LB377_Click(sender As Object, e As EventArgs) Handles LB377.Click
  4505. PA = LB377.Text : 合約內文修改視窗.ShowDialog() : LB377.Text = PA : LB377_移動()
  4506. End Sub
  4507. Private Sub LB377_LocationChanged(sender As Object, e As EventArgs) Handles LB377.LocationChanged
  4508. LB377_移動()
  4509. End Sub
  4510. Private Sub LB377_TextChanged(sender As Object, e As EventArgs) Handles LB377.TextChanged
  4511. LB377_移動()
  4512. End Sub
  4513. '-----------------------------------------------------------------------------------------------------------------
  4514. Private Sub LB378_Click(sender As Object, e As EventArgs) Handles LB378.Click
  4515. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then
  4516. NU5 = LB378.Location.X : BL1 = True : PA = LB378.Text : 合約內文修改視窗.ShowDialog() : LB378.Text = PA : BL1 = False : NU5 = 0
  4517. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB378.Location.Y : LB378.Location = New Drawing.Point(syy1, sxx)
  4518. sxx = LB379.Location.Y : LB379.Location = New Drawing.Point(syy2, sxx) : sxx = LB380.Location.Y : LB380.Location = New Drawing.Point(syy2, sxx) : End If
  4519. End Sub
  4520. '-----------------------------------------------------------------------------------------------------------------
  4521. Private Sub LB379_移動()
  4522. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then
  4523. Dim sx, sxx As Integer : sx = LB379.Size.Height : sxx = LB379.Location.Y : NU4 = LB380.Location.X : LB380.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4524. End Sub
  4525. Private Sub LB379_Click(sender As Object, e As EventArgs) Handles LB379.Click
  4526. PA = LB379.Text : 合約內文修改視窗.ShowDialog() : LB379.Text = PA : LB379_移動()
  4527. End Sub
  4528. Private Sub LB379_LocationChanged(sender As Object, e As EventArgs) Handles LB379.LocationChanged
  4529. LB379_移動()
  4530. End Sub
  4531. Private Sub LB379_TextChanged(sender As Object, e As EventArgs) Handles LB379.TextChanged
  4532. LB379_移動()
  4533. End Sub
  4534. '-----------------------------------------------------------------------------------------------------------------
  4535. Private Sub LB380_移動()
  4536. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB380.Size.Height : sxx = LB380.Location.Y
  4537. NU3 = LB381.Location.X : NU4 = LB382.Location.X : LB381.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB382.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4538. End Sub
  4539. Private Sub LB380_Click(sender As Object, e As EventArgs) Handles LB380.Click
  4540. PA = LB380.Text : 合約內文修改視窗.ShowDialog() : LB380.Text = PA : LB380_移動()
  4541. End Sub
  4542. Private Sub LB380_LocationChanged(sender As Object, e As EventArgs) Handles LB380.LocationChanged
  4543. LB380_移動()
  4544. End Sub
  4545. Private Sub LB380_TextChanged(sender As Object, e As EventArgs) Handles LB380.TextChanged
  4546. LB380_移動()
  4547. End Sub
  4548. '-----------------------------------------------------------------------------------------------------------------
  4549. Private Sub LB381_Click(sender As Object, e As EventArgs) Handles LB381.Click
  4550. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then
  4551. NU5 = LB381.Location.X : BL1 = True : PA = LB381.Text : 合約內文修改視窗.ShowDialog() : LB381.Text = PA : BL1 = False : NU5 = 0
  4552. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB381.Location.Y : LB381.Location = New Drawing.Point(syy1, sxx)
  4553. sxx = LB382.Location.Y : LB382.Location = New Drawing.Point(syy2, sxx) : sxx = LB383.Location.Y : LB383.Location = New Drawing.Point(syy2, sxx) : End If
  4554. End Sub
  4555. '-----------------------------------------------------------------------------------------------------------------
  4556. Private Sub LB382_移動()
  4557. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then
  4558. Dim sx, sxx As Integer : sx = LB382.Size.Height : sxx = LB382.Location.Y : NU4 = LB383.Location.X : LB383.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4559. End Sub
  4560. Private Sub LB382_Click(sender As Object, e As EventArgs) Handles LB382.Click
  4561. PA = LB382.Text : 合約內文修改視窗.ShowDialog() : LB382.Text = PA : LB382_移動()
  4562. End Sub
  4563. Private Sub LB382_LocationChanged(sender As Object, e As EventArgs) Handles LB382.LocationChanged
  4564. LB382_移動()
  4565. End Sub
  4566. Private Sub LB382_TextChanged(sender As Object, e As EventArgs) Handles LB382.TextChanged
  4567. LB382_移動()
  4568. End Sub
  4569. '-----------------------------------------------------------------------------------------------------------------
  4570. Private Sub LB383_移動()
  4571. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB383.Size.Height : sxx = LB383.Location.Y
  4572. NU3 = LB384.Location.X : NU4 = LB385.Location.X : LB384.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB385.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4573. End Sub
  4574. Private Sub LB383_Click(sender As Object, e As EventArgs) Handles LB383.Click
  4575. PA = LB383.Text : 合約內文修改視窗.ShowDialog() : LB383.Text = PA : LB383_移動()
  4576. End Sub
  4577. Private Sub LB383_LocationChanged(sender As Object, e As EventArgs) Handles LB383.LocationChanged
  4578. LB383_移動()
  4579. End Sub
  4580. Private Sub LB383_TextChanged(sender As Object, e As EventArgs) Handles LB383.TextChanged
  4581. LB383_移動()
  4582. End Sub
  4583. '-----------------------------------------------------------------------------------------------------------------
  4584. Private Sub LB384_Click(sender As Object, e As EventArgs) Handles LB384.Click
  4585. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then
  4586. NU5 = LB384.Location.X : BL1 = True : PA = LB384.Text : 合約內文修改視窗.ShowDialog() : LB384.Text = PA : BL1 = False : NU5 = 0
  4587. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB384.Location.Y : LB384.Location = New Drawing.Point(syy1, sxx)
  4588. sxx = LB385.Location.Y : LB385.Location = New Drawing.Point(syy2, sxx) : sxx = LB386.Location.Y : LB386.Location = New Drawing.Point(syy2, sxx) : End If
  4589. End Sub
  4590. '-----------------------------------------------------------------------------------------------------------------
  4591. Private Sub LB385_移動()
  4592. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then
  4593. Dim sx, sxx As Integer : sx = LB385.Size.Height : sxx = LB385.Location.Y : NU4 = LB386.Location.X : LB386.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4594. End Sub
  4595. Private Sub LB385_Click(sender As Object, e As EventArgs) Handles LB385.Click
  4596. PA = LB385.Text : 合約內文修改視窗.ShowDialog() : LB385.Text = PA : LB385_移動()
  4597. End Sub
  4598. Private Sub LB385_LocationChanged(sender As Object, e As EventArgs) Handles LB385.LocationChanged
  4599. LB385_移動()
  4600. End Sub
  4601. Private Sub LB385_TextChanged(sender As Object, e As EventArgs) Handles LB385.TextChanged
  4602. LB385_移動()
  4603. End Sub
  4604. '-----------------------------------------------------------------------------------------------------------------
  4605. Private Sub LB386_移動()
  4606. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB386.Size.Height : sxx = LB386.Location.Y
  4607. NU3 = LB387.Location.X : NU4 = LB388.Location.X : LB387.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB388.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4608. End Sub
  4609. Private Sub LB386_Click(sender As Object, e As EventArgs) Handles LB386.Click
  4610. PA = LB386.Text : 合約內文修改視窗.ShowDialog() : LB386.Text = PA : LB386_移動()
  4611. End Sub
  4612. Private Sub LB386_LocationChanged(sender As Object, e As EventArgs) Handles LB386.LocationChanged
  4613. LB386_移動()
  4614. End Sub
  4615. Private Sub LB386_TextChanged(sender As Object, e As EventArgs) Handles LB386.TextChanged
  4616. LB386_移動()
  4617. End Sub
  4618. '-----------------------------------------------------------------------------------------------------------------
  4619. Private Sub LB387_Click(sender As Object, e As EventArgs) Handles LB387.Click
  4620. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then
  4621. NU5 = LB387.Location.X : BL1 = True : PA = LB387.Text : 合約內文修改視窗.ShowDialog() : LB387.Text = PA : BL1 = False : NU5 = 0
  4622. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB387.Location.Y : LB387.Location = New Drawing.Point(syy1, sxx)
  4623. sxx = LB388.Location.Y : LB388.Location = New Drawing.Point(syy2, sxx) : sxx = LB389.Location.Y : LB389.Location = New Drawing.Point(syy2, sxx) : End If
  4624. End Sub
  4625. '-----------------------------------------------------------------------------------------------------------------
  4626. Private Sub LB388_移動()
  4627. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then
  4628. Dim sx, sxx As Integer : sx = LB388.Size.Height : sxx = LB388.Location.Y : NU4 = LB389.Location.X : LB389.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4629. End Sub
  4630. Private Sub LB388_Click(sender As Object, e As EventArgs) Handles LB388.Click
  4631. PA = LB388.Text : 合約內文修改視窗.ShowDialog() : LB388.Text = PA : LB388_移動()
  4632. End Sub
  4633. Private Sub LB388_LocationChanged(sender As Object, e As EventArgs) Handles LB388.LocationChanged
  4634. LB388_移動()
  4635. End Sub
  4636. Private Sub LB388_TextChanged(sender As Object, e As EventArgs) Handles LB388.TextChanged
  4637. LB388_移動()
  4638. End Sub
  4639. '-----------------------------------------------------------------------------------------------------------------
  4640. Private Sub LB389_移動()
  4641. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB389.Size.Height : sxx = LB389.Location.Y
  4642. NU3 = LB390.Location.X : NU4 = LB391.Location.X : LB390.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB391.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4643. End Sub
  4644. Private Sub LB389_Click(sender As Object, e As EventArgs) Handles LB389.Click
  4645. PA = LB389.Text : 合約內文修改視窗.ShowDialog() : LB389.Text = PA : LB389_移動()
  4646. End Sub
  4647. Private Sub LB389_LocationChanged(sender As Object, e As EventArgs) Handles LB389.LocationChanged
  4648. LB389_移動()
  4649. End Sub
  4650. Private Sub LB389_TextChanged(sender As Object, e As EventArgs) Handles LB389.TextChanged
  4651. LB389_移動()
  4652. End Sub
  4653. '-----------------------------------------------------------------------------------------------------------------
  4654. Private Sub LB390_Click(sender As Object, e As EventArgs) Handles LB390.Click
  4655. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then
  4656. NU5 = LB390.Location.X : BL1 = True : PA = LB390.Text : 合約內文修改視窗.ShowDialog() : LB390.Text = PA : BL1 = False : NU5 = 0
  4657. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB390.Location.Y : LB390.Location = New Drawing.Point(syy1, sxx)
  4658. sxx = LB391.Location.Y : LB391.Location = New Drawing.Point(syy2, sxx) : sxx = LB392.Location.Y : LB392.Location = New Drawing.Point(syy2, sxx) : End If
  4659. End Sub
  4660. '-----------------------------------------------------------------------------------------------------------------
  4661. Private Sub LB391_移動()
  4662. If (Val(最末頁_cb.Text) > 18 And 翻頁_nud.Value = 14) Or 自動移動 = True Then
  4663. Dim sx, sxx As Integer : sx = LB391.Size.Height : sxx = LB391.Location.Y : NU4 = LB392.Location.X : LB392.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4664. End Sub
  4665. Private Sub LB391_Click(sender As Object, e As EventArgs) Handles LB391.Click
  4666. PA = LB391.Text : 合約內文修改視窗.ShowDialog() : LB391.Text = PA : LB391_移動()
  4667. End Sub
  4668. Private Sub LB391_LocationChanged(sender As Object, e As EventArgs) Handles LB391.LocationChanged
  4669. LB391_移動()
  4670. End Sub
  4671. Private Sub LB391_TextChanged(sender As Object, e As EventArgs) Handles LB391.TextChanged
  4672. LB391_移動()
  4673. End Sub
  4674. '-----------------------------------------------------------------------------------------------------------------
  4675. Private Sub LB392_Click(sender As Object, e As EventArgs) Handles LB392.Click
  4676. PA = LB392.Text : 合約內文修改視窗.ShowDialog() : LB392.Text = PA
  4677. End Sub
  4678. '---------------------------第13頁----------------------------------------------------------------------------------------------------------------------------------------------
  4679. Private Sub LB393_Click(sender As Object, e As EventArgs) Handles LB393.Click
  4680. PA = LB393.Text : 合約內文修改視窗.ShowDialog() : LB393.Text = PA
  4681. End Sub
  4682. Private Sub LB394_Click(sender As Object, e As EventArgs) Handles LB394.Click
  4683. PA = LB394.Text : 合約內文修改視窗.ShowDialog() : LB394.Text = PA
  4684. End Sub
  4685. Private Sub LB395_Click(sender As Object, e As EventArgs) Handles LB395.Click
  4686. PA = LB395.Text : 合約內文修改視窗.ShowDialog() : LB395.Text = PA
  4687. End Sub
  4688. '-----------------------------------------------------------------------------------------------------------------
  4689. Private Sub LB396_Click(sender As Object, e As EventArgs) Handles LB396.Click
  4690. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then
  4691. NU5 = LB396.Location.X : BL1 = True : PA = LB396.Text : 合約內文修改視窗.ShowDialog() : LB396.Text = PA : BL1 = False : NU5 = 0
  4692. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB396.Location.Y : LB396.Location = New Drawing.Point(syy1, sxx)
  4693. sxx = LB397.Location.Y : LB397.Location = New Drawing.Point(syy2, sxx) : sxx = LB398.Location.Y : LB398.Location = New Drawing.Point(syy2, sxx) : End If
  4694. End Sub
  4695. '-----------------------------------------------------------------------------------------------------------------
  4696. Private Sub LB397_移動()
  4697. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then
  4698. Dim sx, sxx As Integer : sx = LB397.Size.Height : sxx = LB397.Location.Y : NU4 = LB398.Location.X : LB398.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4699. End Sub
  4700. Private Sub LB397_Click(sender As Object, e As EventArgs) Handles LB397.Click
  4701. PA = LB397.Text : 合約內文修改視窗.ShowDialog() : LB397.Text = PA : LB397_移動()
  4702. End Sub
  4703. Private Sub LB397_LocationChanged(sender As Object, e As EventArgs) Handles LB397.LocationChanged
  4704. LB397_移動()
  4705. End Sub
  4706. Private Sub LB397_TextChanged(sender As Object, e As EventArgs) Handles LB397.TextChanged
  4707. LB397_移動()
  4708. End Sub
  4709. '-----------------------------------------------------------------------------------------------------------------
  4710. Private Sub LB398_移動()
  4711. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB398.Size.Height : sxx = LB398.Location.Y
  4712. NU3 = LB399.Location.X : NU4 = LB400.Location.X : LB399.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB400.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4713. End Sub
  4714. Private Sub LB398_Click(sender As Object, e As EventArgs) Handles LB398.Click
  4715. PA = LB398.Text : 合約內文修改視窗.ShowDialog() : LB398.Text = PA : LB398_移動()
  4716. End Sub
  4717. Private Sub LB398_LocationChanged(sender As Object, e As EventArgs) Handles LB398.LocationChanged
  4718. LB398_移動()
  4719. End Sub
  4720. Private Sub LB398_TextChanged(sender As Object, e As EventArgs) Handles LB398.TextChanged
  4721. LB398_移動()
  4722. End Sub
  4723. '-----------------------------------------------------------------------------------------------------------------
  4724. Private Sub LB399_Click(sender As Object, e As EventArgs) Handles LB399.Click
  4725. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then
  4726. NU5 = LB399.Location.X : BL1 = True : PA = LB399.Text : 合約內文修改視窗.ShowDialog() : LB399.Text = PA : BL1 = False : NU5 = 0
  4727. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB399.Location.Y : LB399.Location = New Drawing.Point(syy1, sxx)
  4728. sxx = LB400.Location.Y : LB400.Location = New Drawing.Point(syy2, sxx) : sxx = LB401.Location.Y : LB401.Location = New Drawing.Point(syy2, sxx) : End If
  4729. End Sub
  4730. '-----------------------------------------------------------------------------------------------------------------
  4731. Private Sub LB400_移動()
  4732. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then
  4733. Dim sx, sxx As Integer : sx = LB400.Size.Height : sxx = LB400.Location.Y : NU4 = LB401.Location.X : LB401.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4734. End Sub
  4735. Private Sub LB400_Click(sender As Object, e As EventArgs) Handles LB400.Click
  4736. PA = LB400.Text : 合約內文修改視窗.ShowDialog() : LB400.Text = PA : LB400_移動()
  4737. End Sub
  4738. Private Sub LB400_LocationChanged(sender As Object, e As EventArgs) Handles LB400.LocationChanged
  4739. LB400_移動()
  4740. End Sub
  4741. Private Sub LB400_TextChanged(sender As Object, e As EventArgs) Handles LB400.TextChanged
  4742. LB400_移動()
  4743. End Sub
  4744. '-----------------------------------------------------------------------------------------------------------------
  4745. Private Sub LB401_移動()
  4746. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB401.Size.Height : sxx = LB401.Location.Y
  4747. NU3 = LB402.Location.X : NU4 = LB403.Location.X : LB402.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB403.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4748. End Sub
  4749. Private Sub LB401_Click(sender As Object, e As EventArgs) Handles LB401.Click
  4750. PA = LB401.Text : 合約內文修改視窗.ShowDialog() : LB401.Text = PA : LB401_移動()
  4751. End Sub
  4752. Private Sub LB401_LocationChanged(sender As Object, e As EventArgs) Handles LB401.LocationChanged
  4753. LB401_移動()
  4754. End Sub
  4755. Private Sub LB401_TextChanged(sender As Object, e As EventArgs) Handles LB401.TextChanged
  4756. LB401_移動()
  4757. End Sub
  4758. '-----------------------------------------------------------------------------------------------------------------
  4759. Private Sub LB402_Click(sender As Object, e As EventArgs) Handles LB402.Click
  4760. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then
  4761. NU5 = LB402.Location.X : BL1 = True : PA = LB402.Text : 合約內文修改視窗.ShowDialog() : LB402.Text = PA : BL1 = False : NU5 = 0
  4762. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB402.Location.Y : LB402.Location = New Drawing.Point(syy1, sxx)
  4763. sxx = LB403.Location.Y : LB403.Location = New Drawing.Point(syy2, sxx) : sxx = LB404.Location.Y : LB404.Location = New Drawing.Point(syy2, sxx) : End If
  4764. End Sub
  4765. '-----------------------------------------------------------------------------------------------------------------
  4766. Private Sub LB403_移動()
  4767. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then
  4768. Dim sx, sxx As Integer : sx = LB403.Size.Height : sxx = LB403.Location.Y : NU4 = LB404.Location.X : LB404.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4769. End Sub
  4770. Private Sub LB403_Click(sender As Object, e As EventArgs) Handles LB403.Click
  4771. PA = LB403.Text : 合約內文修改視窗.ShowDialog() : LB403.Text = PA : LB403_移動()
  4772. End Sub
  4773. Private Sub LB403_LocationChanged(sender As Object, e As EventArgs) Handles LB403.LocationChanged
  4774. LB403_移動()
  4775. End Sub
  4776. Private Sub LB403_TextChanged(sender As Object, e As EventArgs) Handles LB403.TextChanged
  4777. LB403_移動()
  4778. End Sub
  4779. '-----------------------------------------------------------------------------------------------------------------
  4780. Private Sub LB404_移動()
  4781. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB404.Size.Height : sxx = LB404.Location.Y
  4782. NU3 = LB405.Location.X : NU4 = LB406.Location.X : LB405.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB406.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4783. End Sub
  4784. Private Sub LB404_Click(sender As Object, e As EventArgs) Handles LB404.Click
  4785. PA = LB404.Text : 合約內文修改視窗.ShowDialog() : LB404.Text = PA : LB404_移動()
  4786. End Sub
  4787. Private Sub LB404_LocationChanged(sender As Object, e As EventArgs) Handles LB404.LocationChanged
  4788. LB404_移動()
  4789. End Sub
  4790. Private Sub LB404_TextChanged(sender As Object, e As EventArgs) Handles LB404.TextChanged
  4791. LB404_移動()
  4792. End Sub
  4793. '-----------------------------------------------------------------------------------------------------------------
  4794. Private Sub LB405_Click(sender As Object, e As EventArgs) Handles LB405.Click
  4795. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then
  4796. NU5 = LB405.Location.X : BL1 = True : PA = LB405.Text : 合約內文修改視窗.ShowDialog() : LB405.Text = PA : BL1 = False : NU5 = 0
  4797. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB405.Location.Y : LB405.Location = New Drawing.Point(syy1, sxx)
  4798. sxx = LB406.Location.Y : LB406.Location = New Drawing.Point(syy2, sxx) : sxx = LB407.Location.Y : LB407.Location = New Drawing.Point(syy2, sxx) : End If
  4799. End Sub
  4800. '-----------------------------------------------------------------------------------------------------------------
  4801. Private Sub LB406_移動()
  4802. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then
  4803. Dim sx, sxx As Integer : sx = LB406.Size.Height : sxx = LB406.Location.Y : NU4 = LB407.Location.X : LB407.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4804. End Sub
  4805. Private Sub LB406_Click(sender As Object, e As EventArgs) Handles LB406.Click
  4806. PA = LB406.Text : 合約內文修改視窗.ShowDialog() : LB406.Text = PA : LB406_移動()
  4807. End Sub
  4808. Private Sub LB406_LocationChanged(sender As Object, e As EventArgs) Handles LB406.LocationChanged
  4809. LB406_移動()
  4810. End Sub
  4811. Private Sub LB406_TextChanged(sender As Object, e As EventArgs) Handles LB406.TextChanged
  4812. LB406_移動()
  4813. End Sub
  4814. '-----------------------------------------------------------------------------------------------------------------
  4815. Private Sub LB407_移動()
  4816. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB407.Size.Height : sxx = LB407.Location.Y
  4817. NU3 = LB408.Location.X : NU4 = LB409.Location.X : LB408.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB409.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4818. End Sub
  4819. Private Sub LB407_Click(sender As Object, e As EventArgs) Handles LB407.Click
  4820. PA = LB407.Text : 合約內文修改視窗.ShowDialog() : LB407.Text = PA : LB407_移動()
  4821. End Sub
  4822. Private Sub LB407_LocationChanged(sender As Object, e As EventArgs) Handles LB407.LocationChanged
  4823. LB407_移動()
  4824. End Sub
  4825. Private Sub LB407_TextChanged(sender As Object, e As EventArgs) Handles LB407.TextChanged
  4826. LB407_移動()
  4827. End Sub
  4828. '-----------------------------------------------------------------------------------------------------------------
  4829. Private Sub LB408_Click(sender As Object, e As EventArgs) Handles LB408.Click
  4830. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then
  4831. NU5 = LB408.Location.X : BL1 = True : PA = LB408.Text : 合約內文修改視窗.ShowDialog() : LB408.Text = PA : BL1 = False : NU5 = 0
  4832. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB408.Location.Y : LB408.Location = New Drawing.Point(syy1, sxx)
  4833. sxx = LB409.Location.Y : LB409.Location = New Drawing.Point(syy2, sxx) : sxx = LB410.Location.Y : LB410.Location = New Drawing.Point(syy2, sxx) : End If
  4834. End Sub
  4835. '-----------------------------------------------------------------------------------------------------------------
  4836. Private Sub LB409_移動()
  4837. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then
  4838. Dim sx, sxx As Integer : sx = LB409.Size.Height : sxx = LB409.Location.Y : NU4 = LB410.Location.X : LB410.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4839. End Sub
  4840. Private Sub LB409_Click(sender As Object, e As EventArgs) Handles LB409.Click
  4841. PA = LB409.Text : 合約內文修改視窗.ShowDialog() : LB409.Text = PA : LB409_移動()
  4842. End Sub
  4843. Private Sub LB409_LocationChanged(sender As Object, e As EventArgs) Handles LB409.LocationChanged
  4844. LB409_移動()
  4845. End Sub
  4846. Private Sub LB409_TextChanged(sender As Object, e As EventArgs) Handles LB409.TextChanged
  4847. LB409_移動()
  4848. End Sub
  4849. '-----------------------------------------------------------------------------------------------------------------
  4850. Private Sub LB410_移動()
  4851. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB410.Size.Height : sxx = LB410.Location.Y
  4852. NU3 = LB411.Location.X : NU4 = LB412.Location.X : LB411.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB412.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4853. End Sub
  4854. Private Sub LB410_Click(sender As Object, e As EventArgs) Handles LB410.Click
  4855. PA = LB410.Text : 合約內文修改視窗.ShowDialog() : LB410.Text = PA : LB410_移動()
  4856. End Sub
  4857. Private Sub LB410_LocationChanged(sender As Object, e As EventArgs) Handles LB410.LocationChanged
  4858. LB410_移動()
  4859. End Sub
  4860. Private Sub LB410_TextChanged(sender As Object, e As EventArgs) Handles LB410.TextChanged
  4861. LB410_移動()
  4862. End Sub
  4863. '-----------------------------------------------------------------------------------------------------------------
  4864. Private Sub LB411_Click(sender As Object, e As EventArgs) Handles LB411.Click
  4865. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then
  4866. NU5 = LB411.Location.X : BL1 = True : PA = LB411.Text : 合約內文修改視窗.ShowDialog() : LB411.Text = PA : BL1 = False : NU5 = 0
  4867. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB411.Location.Y : LB411.Location = New Drawing.Point(syy1, sxx)
  4868. sxx = LB412.Location.Y : LB412.Location = New Drawing.Point(syy2, sxx) : sxx = LB413.Location.Y : LB413.Location = New Drawing.Point(syy2, sxx) : End If
  4869. End Sub
  4870. '-----------------------------------------------------------------------------------------------------------------
  4871. Private Sub LB412_移動()
  4872. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then
  4873. Dim sx, sxx As Integer : sx = LB412.Size.Height : sxx = LB412.Location.Y : NU4 = LB413.Location.X : LB413.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4874. End Sub
  4875. Private Sub LB412_Click(sender As Object, e As EventArgs) Handles LB412.Click
  4876. PA = LB412.Text : 合約內文修改視窗.ShowDialog() : LB412.Text = PA : LB412_移動()
  4877. End Sub
  4878. Private Sub LB412_LocationChanged(sender As Object, e As EventArgs) Handles LB412.LocationChanged
  4879. LB412_移動()
  4880. End Sub
  4881. Private Sub LB412_TextChanged(sender As Object, e As EventArgs) Handles LB412.TextChanged
  4882. LB412_移動()
  4883. End Sub
  4884. '-----------------------------------------------------------------------------------------------------------------
  4885. Private Sub LB413_移動()
  4886. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB413.Size.Height : sxx = LB413.Location.Y
  4887. NU3 = LB414.Location.X : NU4 = LB415.Location.X : LB414.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB415.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4888. End Sub
  4889. Private Sub LB413_Click(sender As Object, e As EventArgs) Handles LB413.Click
  4890. PA = LB413.Text : 合約內文修改視窗.ShowDialog() : LB413.Text = PA : LB413_移動()
  4891. End Sub
  4892. Private Sub LB413_LocationChanged(sender As Object, e As EventArgs) Handles LB413.LocationChanged
  4893. LB413_移動()
  4894. End Sub
  4895. Private Sub LB413_TextChanged(sender As Object, e As EventArgs) Handles LB413.TextChanged
  4896. LB413_移動()
  4897. End Sub
  4898. '-----------------------------------------------------------------------------------------------------------------
  4899. Private Sub LB414_Click(sender As Object, e As EventArgs) Handles LB414.Click
  4900. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then
  4901. NU5 = LB414.Location.X : BL1 = True : PA = LB414.Text : 合約內文修改視窗.ShowDialog() : LB414.Text = PA : BL1 = False : NU5 = 0
  4902. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB414.Location.Y : LB414.Location = New Drawing.Point(syy1, sxx)
  4903. sxx = LB415.Location.Y : LB415.Location = New Drawing.Point(syy2, sxx) : sxx = LB416.Location.Y : LB416.Location = New Drawing.Point(syy2, sxx) : End If
  4904. End Sub
  4905. '-----------------------------------------------------------------------------------------------------------------
  4906. Private Sub LB415_移動()
  4907. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then
  4908. Dim sx, sxx As Integer : sx = LB415.Size.Height : sxx = LB415.Location.Y : NU4 = LB416.Location.X : LB416.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4909. End Sub
  4910. Private Sub LB415_Click(sender As Object, e As EventArgs) Handles LB415.Click
  4911. PA = LB415.Text : 合約內文修改視窗.ShowDialog() : LB415.Text = PA : LB415_移動()
  4912. End Sub
  4913. Private Sub LB415_LocationChanged(sender As Object, e As EventArgs) Handles LB415.LocationChanged
  4914. LB415_移動()
  4915. End Sub
  4916. Private Sub LB415_TextChanged(sender As Object, e As EventArgs) Handles LB415.TextChanged
  4917. LB415_移動()
  4918. End Sub
  4919. '-----------------------------------------------------------------------------------------------------------------
  4920. Private Sub LB416_移動()
  4921. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB416.Size.Height : sxx = LB416.Location.Y
  4922. NU3 = LB417.Location.X : NU4 = LB418.Location.X : LB417.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB418.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4923. End Sub
  4924. Private Sub LB416_Click(sender As Object, e As EventArgs) Handles LB416.Click
  4925. PA = LB416.Text : 合約內文修改視窗.ShowDialog() : LB416.Text = PA : LB416_移動()
  4926. End Sub
  4927. Private Sub LB416_LocationChanged(sender As Object, e As EventArgs) Handles LB416.LocationChanged
  4928. LB416_移動()
  4929. End Sub
  4930. Private Sub LB416_TextChanged(sender As Object, e As EventArgs) Handles LB416.TextChanged
  4931. LB416_移動()
  4932. End Sub
  4933. '-----------------------------------------------------------------------------------------------------------------
  4934. Private Sub LB417_Click(sender As Object, e As EventArgs) Handles LB417.Click
  4935. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then
  4936. NU5 = LB417.Location.X : BL1 = True : PA = LB417.Text : 合約內文修改視窗.ShowDialog() : LB417.Text = PA : BL1 = False : NU5 = 0
  4937. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB417.Location.Y : LB417.Location = New Drawing.Point(syy1, sxx)
  4938. sxx = LB418.Location.Y : LB418.Location = New Drawing.Point(syy2, sxx) : sxx = LB419.Location.Y : LB419.Location = New Drawing.Point(syy2, sxx) : End If
  4939. End Sub
  4940. '-----------------------------------------------------------------------------------------------------------------
  4941. Private Sub LB418_移動()
  4942. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then
  4943. Dim sx, sxx As Integer : sx = LB418.Size.Height : sxx = LB418.Location.Y : NU4 = LB419.Location.X : LB419.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4944. End Sub
  4945. Private Sub LB418_Click(sender As Object, e As EventArgs) Handles LB418.Click
  4946. PA = LB418.Text : 合約內文修改視窗.ShowDialog() : LB418.Text = PA : LB418_移動()
  4947. End Sub
  4948. Private Sub LB418_LocationChanged(sender As Object, e As EventArgs) Handles LB418.LocationChanged
  4949. LB418_移動()
  4950. End Sub
  4951. Private Sub LB418_TextChanged(sender As Object, e As EventArgs) Handles LB418.TextChanged
  4952. LB418_移動()
  4953. End Sub
  4954. '-----------------------------------------------------------------------------------------------------------------
  4955. Private Sub LB419_移動()
  4956. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then
  4957. Dim sx, sxx As Integer : sx = LB419.Size.Height : sxx = LB419.Location.Y : NU3 = LB420.Location.X : NU4 = LB421.Location.X
  4958. LB420.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB421.Location = New Drawing.Point(NU4, sxx + sx + 10)
  4959. End If
  4960. End Sub
  4961. Private Sub LB419_Click(sender As Object, e As EventArgs) Handles LB419.Click
  4962. PA = LB419.Text : 合約內文修改視窗.ShowDialog() : LB419.Text = PA : LB419_移動()
  4963. End Sub
  4964. Private Sub LB419_LocationChanged(sender As Object, e As EventArgs) Handles LB419.LocationChanged
  4965. LB419_移動()
  4966. End Sub
  4967. Private Sub LB419_TextChanged(sender As Object, e As EventArgs) Handles LB419.TextChanged
  4968. LB419_移動()
  4969. End Sub
  4970. '-----------------------------------------------------------------------------------------------------------------
  4971. Private Sub LB420_Click(sender As Object, e As EventArgs) Handles LB420.Click
  4972. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then
  4973. NU5 = LB420.Location.X : BL1 = True : PA = LB420.Text : 合約內文修改視窗.ShowDialog() : LB420.Text = PA : BL1 = False : NU5 = 0
  4974. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB420.Location.Y : LB420.Location = New Drawing.Point(syy1, sxx)
  4975. sxx = LB421.Location.Y : LB421.Location = New Drawing.Point(syy2, sxx) : sxx = LB422.Location.Y : LB422.Location = New Drawing.Point(syy2, sxx) : End If
  4976. End Sub
  4977. '-----------------------------------------------------------------------------------------------------------------
  4978. Private Sub LB421_移動()
  4979. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then
  4980. Dim sx, sxx As Integer : sx = LB421.Size.Height : sxx = LB421.Location.Y : NU4 = LB422.Location.X : LB422.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4981. End Sub
  4982. Private Sub LB421_Click(sender As Object, e As EventArgs) Handles LB421.Click
  4983. PA = LB421.Text : 合約內文修改視窗.ShowDialog() : LB421.Text = PA : LB421_移動()
  4984. End Sub
  4985. Private Sub LB421_LocationChanged(sender As Object, e As EventArgs) Handles LB421.LocationChanged
  4986. LB421_移動()
  4987. End Sub
  4988. Private Sub LB421_TextChanged(sender As Object, e As EventArgs) Handles LB421.TextChanged
  4989. LB421_移動()
  4990. End Sub
  4991. '-----------------------------------------------------------------------------------------------------------------
  4992. Private Sub LB422_移動()
  4993. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then
  4994. Dim sx, sxx As Integer : sx = LB422.Size.Height : sxx = LB422.Location.Y : NU3 = LB423.Location.X : NU4 = LB424.Location.X
  4995. LB423.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB424.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  4996. End Sub
  4997. Private Sub LB422_Click(sender As Object, e As EventArgs) Handles LB422.Click
  4998. PA = LB422.Text : 合約內文修改視窗.ShowDialog() : LB422.Text = PA : LB422_移動()
  4999. End Sub
  5000. Private Sub LB422_LocationChanged(sender As Object, e As EventArgs) Handles LB422.LocationChanged
  5001. LB422_移動()
  5002. End Sub
  5003. Private Sub LB422_TextChanged(sender As Object, e As EventArgs) Handles LB422.TextChanged
  5004. LB422_移動()
  5005. End Sub
  5006. '-----------------------------------------------------------------------------------------------------------------
  5007. Private Sub LB423_Click(sender As Object, e As EventArgs) Handles LB423.Click
  5008. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then
  5009. NU5 = LB423.Location.X : BL1 = True : PA = LB423.Text : 合約內文修改視窗.ShowDialog() : LB423.Text = PA : BL1 = False : NU5 = 0
  5010. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB423.Location.Y : LB423.Location = New Drawing.Point(syy1, sxx)
  5011. sxx = LB424.Location.Y : LB424.Location = New Drawing.Point(syy2, sxx) : sxx = LB425.Location.Y : LB425.Location = New Drawing.Point(syy2, sxx) : End If
  5012. End Sub
  5013. '-----------------------------------------------------------------------------------------------------------------
  5014. Private Sub LB424_移動()
  5015. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then
  5016. Dim sx, sxx As Integer : sx = LB424.Size.Height : sxx = LB424.Location.Y : NU4 = LB425.Location.X : LB425.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5017. End Sub
  5018. Private Sub LB424_Click(sender As Object, e As EventArgs) Handles LB424.Click
  5019. PA = LB424.Text : 合約內文修改視窗.ShowDialog() : LB424.Text = PA : LB424_移動()
  5020. End Sub
  5021. Private Sub LB424_LocationChanged(sender As Object, e As EventArgs) Handles LB424.LocationChanged
  5022. LB424_移動()
  5023. End Sub
  5024. Private Sub LB424_TextChanged(sender As Object, e As EventArgs) Handles LB424.TextChanged
  5025. LB424_移動()
  5026. End Sub
  5027. '-----------------------------------------------------------------------------------------------------------------
  5028. Private Sub LB425_移動()
  5029. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then
  5030. Dim sx, sxx As Integer : sx = LB425.Size.Height : sxx = LB425.Location.Y : NU3 = LB426.Location.X : NU4 = LB427.Location.X
  5031. LB426.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB427.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5032. End Sub
  5033. Private Sub LB425_Click(sender As Object, e As EventArgs) Handles LB425.Click
  5034. PA = LB425.Text : 合約內文修改視窗.ShowDialog() : LB425.Text = PA : LB425_移動()
  5035. End Sub
  5036. Private Sub LB425_LocationChanged(sender As Object, e As EventArgs) Handles LB425.LocationChanged
  5037. LB425_移動()
  5038. End Sub
  5039. Private Sub LB425_TextChanged(sender As Object, e As EventArgs) Handles LB425.TextChanged
  5040. LB425_移動()
  5041. End Sub
  5042. '-----------------------------------------------------------------------------------------------------------------
  5043. Private Sub LB426_Click(sender As Object, e As EventArgs) Handles LB426.Click
  5044. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then
  5045. NU5 = LB426.Location.X : BL1 = True : PA = LB426.Text : 合約內文修改視窗.ShowDialog() : LB426.Text = PA : BL1 = False : NU5 = 0
  5046. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB426.Location.Y : LB426.Location = New Drawing.Point(syy1, sxx)
  5047. sxx = LB427.Location.Y : LB427.Location = New Drawing.Point(syy2, sxx) : sxx = LB428.Location.Y : LB428.Location = New Drawing.Point(syy2, sxx) : End If
  5048. End Sub
  5049. '-----------------------------------------------------------------------------------------------------------------
  5050. Private Sub LB427_移動()
  5051. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then
  5052. Dim sx, sxx As Integer : sx = LB427.Size.Height : sxx = LB427.Location.Y : NU4 = LB428.Location.X : LB428.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5053. End Sub
  5054. Private Sub LB427_Click(sender As Object, e As EventArgs) Handles LB427.Click
  5055. PA = LB427.Text : 合約內文修改視窗.ShowDialog() : LB427.Text = PA : LB427_移動()
  5056. End Sub
  5057. Private Sub LB427_LocationChanged(sender As Object, e As EventArgs) Handles LB427.LocationChanged
  5058. LB427_移動()
  5059. End Sub
  5060. Private Sub LB427_TextChanged(sender As Object, e As EventArgs) Handles LB427.TextChanged
  5061. LB427_移動()
  5062. End Sub
  5063. '-----------------------------------------------------------------------------------------------------------------
  5064. Private Sub LB428_移動()
  5065. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then
  5066. Dim sx, sxx As Integer : sx = LB428.Size.Height : sxx = LB428.Location.Y : NU3 = LB429.Location.X : NU4 = LB430.Location.X
  5067. LB429.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB430.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5068. End Sub
  5069. Private Sub LB428_Click(sender As Object, e As EventArgs) Handles LB428.Click
  5070. PA = LB428.Text : 合約內文修改視窗.ShowDialog() : LB428.Text = PA : LB428_移動()
  5071. End Sub
  5072. Private Sub LB428_LocationChanged(sender As Object, e As EventArgs) Handles LB428.LocationChanged
  5073. LB428_移動()
  5074. End Sub
  5075. Private Sub LB428_TextChanged(sender As Object, e As EventArgs) Handles LB428.TextChanged
  5076. LB428_移動()
  5077. End Sub
  5078. '-----------------------------------------------------------------------------------------------------------------
  5079. Private Sub LB429_Click(sender As Object, e As EventArgs) Handles LB429.Click
  5080. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then
  5081. NU5 = LB429.Location.X : BL1 = True : PA = LB429.Text : 合約內文修改視窗.ShowDialog() : LB429.Text = PA : BL1 = False : NU5 = 0
  5082. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB429.Location.Y : LB429.Location = New Drawing.Point(syy1, sxx)
  5083. sxx = LB430.Location.Y : LB430.Location = New Drawing.Point(syy2, sxx) : sxx = LB431.Location.Y : LB431.Location = New Drawing.Point(syy2, sxx) : End If
  5084. End Sub
  5085. '-----------------------------------------------------------------------------------------------------------------
  5086. Private Sub LB430_移動()
  5087. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then
  5088. Dim sx, sxx As Integer : sx = LB430.Size.Height : sxx = LB430.Location.Y : NU4 = LB431.Location.X : LB431.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5089. End Sub
  5090. Private Sub LB430_Click(sender As Object, e As EventArgs) Handles LB430.Click
  5091. PA = LB430.Text : 合約內文修改視窗.ShowDialog() : LB430.Text = PA : LB430_移動()
  5092. End Sub
  5093. Private Sub LB430_LocationChanged(sender As Object, e As EventArgs) Handles LB430.LocationChanged
  5094. LB430_移動()
  5095. End Sub
  5096. Private Sub LB430_TextChanged(sender As Object, e As EventArgs) Handles LB430.TextChanged
  5097. LB430_移動()
  5098. End Sub
  5099. '-----------------------------------------------------------------------------------------------------------------
  5100. Private Sub LB431_移動()
  5101. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then
  5102. Dim sx, sxx As Integer : sx = LB431.Size.Height : sxx = LB431.Location.Y : NU3 = LB432.Location.X : NU4 = LB433.Location.X
  5103. LB432.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB433.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5104. End Sub
  5105. Private Sub LB431_Click(sender As Object, e As EventArgs) Handles LB431.Click
  5106. PA = LB431.Text : 合約內文修改視窗.ShowDialog() : LB431.Text = PA : LB431_移動()
  5107. End Sub
  5108. Private Sub LB431_LocationChanged(sender As Object, e As EventArgs) Handles LB431.LocationChanged
  5109. LB431_移動()
  5110. End Sub
  5111. Private Sub LB431_TextChanged(sender As Object, e As EventArgs) Handles LB431.TextChanged
  5112. LB431_移動()
  5113. End Sub
  5114. '-----------------------------------------------------------------------------------------------------------------
  5115. Private Sub LB432_Click(sender As Object, e As EventArgs) Handles LB432.Click
  5116. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then
  5117. NU5 = LB432.Location.X : BL1 = True : PA = LB432.Text : 合約內文修改視窗.ShowDialog() : LB432.Text = PA : BL1 = False : NU5 = 0
  5118. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB432.Location.Y : LB432.Location = New Drawing.Point(syy1, sxx)
  5119. sxx = LB433.Location.Y : LB433.Location = New Drawing.Point(syy2, sxx) : sxx = LB434.Location.Y : LB434.Location = New Drawing.Point(syy2, sxx) : End If
  5120. End Sub
  5121. '-----------------------------------------------------------------------------------------------------------------
  5122. Private Sub LB433_移動()
  5123. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then
  5124. Dim sx, sxx As Integer : sx = LB433.Size.Height : sxx = LB433.Location.Y : NU4 = LB434.Location.X : LB434.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5125. End Sub
  5126. Private Sub LB433_Click(sender As Object, e As EventArgs) Handles LB433.Click
  5127. PA = LB433.Text : 合約內文修改視窗.ShowDialog() : LB433.Text = PA : LB433_移動()
  5128. End Sub
  5129. Private Sub LB433_LocationChanged(sender As Object, e As EventArgs) Handles LB433.LocationChanged
  5130. LB433_移動()
  5131. End Sub
  5132. Private Sub LB433_TextChanged(sender As Object, e As EventArgs) Handles LB433.TextChanged
  5133. LB433_移動()
  5134. End Sub
  5135. '-----------------------------------------------------------------------------------------------------------------
  5136. Private Sub LB434_移動()
  5137. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then
  5138. Dim sx, sxx As Integer : sx = LB434.Size.Height : sxx = LB434.Location.Y : NU3 = LB435.Location.X : NU4 = LB436.Location.X
  5139. LB435.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB436.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5140. End Sub
  5141. Private Sub LB434_Click(sender As Object, e As EventArgs) Handles LB434.Click
  5142. PA = LB434.Text : 合約內文修改視窗.ShowDialog() : LB434.Text = PA : LB434_移動()
  5143. End Sub
  5144. Private Sub LB434_LocationChanged(sender As Object, e As EventArgs) Handles LB434.LocationChanged
  5145. LB434_移動()
  5146. End Sub
  5147. Private Sub LB434_TextChanged(sender As Object, e As EventArgs) Handles LB434.TextChanged
  5148. LB434_移動()
  5149. End Sub
  5150. '-----------------------------------------------------------------------------------------------------------------
  5151. Private Sub LB435_Click(sender As Object, e As EventArgs) Handles LB435.Click
  5152. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then
  5153. NU5 = LB435.Location.X : BL1 = True : PA = LB435.Text : 合約內文修改視窗.ShowDialog() : LB435.Text = PA : BL1 = False : NU5 = 0
  5154. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB435.Location.Y : LB435.Location = New Drawing.Point(syy1, sxx)
  5155. sxx = LB436.Location.Y : LB436.Location = New Drawing.Point(syy2, sxx) : sxx = LB437.Location.Y : LB437.Location = New Drawing.Point(syy2, sxx) : End If
  5156. End Sub
  5157. '-----------------------------------------------------------------------------------------------------------------
  5158. Private Sub LB436_移動()
  5159. If (Val(最末頁_cb.Text) > 17 And 翻頁_nud.Value = 13) Or 自動移動 = True Then
  5160. Dim sx, sxx As Integer : sx = LB436.Size.Height : sxx = LB436.Location.Y : NU4 = LB437.Location.X : LB437.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5161. End Sub
  5162. Private Sub LB436_Click(sender As Object, e As EventArgs) Handles LB436.Click
  5163. PA = LB436.Text : 合約內文修改視窗.ShowDialog() : LB436.Text = PA : LB436_移動()
  5164. End Sub
  5165. Private Sub LB436_LocationChanged(sender As Object, e As EventArgs) Handles LB436.LocationChanged
  5166. LB436_移動()
  5167. End Sub
  5168. Private Sub LB436_TextChanged(sender As Object, e As EventArgs) Handles LB436.TextChanged
  5169. LB436_移動()
  5170. End Sub
  5171. '-----------------------------------------------------------------------------------------------------------------
  5172. Private Sub LB437_Click(sender As Object, e As EventArgs) Handles LB437.Click
  5173. PA = LB437.Text : 合約內文修改視窗.ShowDialog() : LB437.Text = PA
  5174. End Sub
  5175. '---------------------------第12頁----------------------------------------------------------------------------------------------------------------------------------------------
  5176. Private Sub LB438_Click(sender As Object, e As EventArgs) Handles LB438.Click
  5177. PA = LB438.Text : 合約內文修改視窗.ShowDialog() : LB438.Text = PA
  5178. End Sub
  5179. Private Sub LB439_Click(sender As Object, e As EventArgs) Handles LB439.Click
  5180. PA = LB439.Text : 合約內文修改視窗.ShowDialog() : LB439.Text = PA
  5181. End Sub
  5182. Private Sub LB440_Click(sender As Object, e As EventArgs) Handles LB440.Click
  5183. PA = LB440.Text : 合約內文修改視窗.ShowDialog() : LB440.Text = PA
  5184. End Sub
  5185. '-----------------------------------------------------------------------------------------------------------------
  5186. Private Sub LB441_Click(sender As Object, e As EventArgs) Handles LB441.Click
  5187. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5188. NU5 = LB441.Location.X : BL1 = True : PA = LB441.Text : 合約內文修改視窗.ShowDialog() : LB441.Text = PA : BL1 = False : NU5 = 0
  5189. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB441.Location.Y : LB441.Location = New Drawing.Point(syy1, sxx)
  5190. sxx = LB442.Location.Y : LB442.Location = New Drawing.Point(syy2, sxx) : sxx = LB443.Location.Y : LB443.Location = New Drawing.Point(syy2, sxx) : End If
  5191. End Sub
  5192. '-----------------------------------------------------------------------------------------------------------------
  5193. Private Sub LB442_移動()
  5194. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5195. Dim sx, sxx As Integer : sx = LB442.Size.Height : sxx = LB442.Location.Y : NU4 = LB443.Location.X : LB443.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5196. End Sub
  5197. Private Sub LB442_Click(sender As Object, e As EventArgs) Handles LB442.Click
  5198. PA = LB442.Text : 合約內文修改視窗.ShowDialog() : LB442.Text = PA : LB442_移動()
  5199. End Sub
  5200. Private Sub LB442_LocationChanged(sender As Object, e As EventArgs) Handles LB442.LocationChanged
  5201. LB442_移動()
  5202. End Sub
  5203. Private Sub LB442_TextChanged(sender As Object, e As EventArgs) Handles LB442.TextChanged
  5204. LB442_移動()
  5205. End Sub
  5206. '-----------------------------------------------------------------------------------------------------------------
  5207. Private Sub LB443_移動()
  5208. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5209. Dim sx, sxx As Integer : sx = LB443.Size.Height : sxx = LB443.Location.Y : NU3 = LB444.Location.X : NU4 = LB445.Location.X
  5210. LB444.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB445.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5211. End Sub
  5212. Private Sub LB443_Click(sender As Object, e As EventArgs) Handles LB443.Click
  5213. PA = LB443.Text : 合約內文修改視窗.ShowDialog() : LB443.Text = PA : LB443_移動()
  5214. End Sub
  5215. Private Sub LB443_LocationChanged(sender As Object, e As EventArgs) Handles LB443.LocationChanged
  5216. LB443_移動()
  5217. End Sub
  5218. Private Sub LB443_TextChanged(sender As Object, e As EventArgs) Handles LB443.TextChanged
  5219. LB443_移動()
  5220. End Sub
  5221. '-----------------------------------------------------------------------------------------------------------------
  5222. Private Sub LB444_Click(sender As Object, e As EventArgs) Handles LB444.Click
  5223. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5224. NU5 = LB444.Location.X : BL1 = True : PA = LB444.Text : 合約內文修改視窗.ShowDialog() : LB444.Text = PA : BL1 = False : NU5 = 0
  5225. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB444.Location.Y : LB444.Location = New Drawing.Point(syy1, sxx)
  5226. sxx = LB445.Location.Y : LB445.Location = New Drawing.Point(syy2, sxx) : sxx = LB446.Location.Y : LB446.Location = New Drawing.Point(syy2, sxx) : End If
  5227. End Sub
  5228. '-----------------------------------------------------------------------------------------------------------------
  5229. Private Sub LB445_移動()
  5230. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5231. Dim sx, sxx As Integer : sx = LB445.Size.Height : sxx = LB445.Location.Y : NU4 = LB446.Location.X : LB446.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5232. End Sub
  5233. Private Sub LB445_Click(sender As Object, e As EventArgs) Handles LB445.Click
  5234. PA = LB445.Text : 合約內文修改視窗.ShowDialog() : LB445.Text = PA : LB445_移動()
  5235. End Sub
  5236. Private Sub LB445_LocationChanged(sender As Object, e As EventArgs) Handles LB445.LocationChanged
  5237. LB445_移動()
  5238. End Sub
  5239. Private Sub LB445_TextChanged(sender As Object, e As EventArgs) Handles LB445.TextChanged
  5240. LB445_移動()
  5241. End Sub
  5242. '-----------------------------------------------------------------------------------------------------------------
  5243. Private Sub LB446_移動()
  5244. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5245. Dim sx, sxx As Integer : sx = LB446.Size.Height : sxx = LB446.Location.Y : NU3 = LB447.Location.X : NU4 = LB448.Location.X
  5246. LB447.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB448.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5247. End Sub
  5248. Private Sub LB446_Click(sender As Object, e As EventArgs) Handles LB446.Click
  5249. PA = LB446.Text : 合約內文修改視窗.ShowDialog() : LB446.Text = PA : LB446_移動()
  5250. End Sub
  5251. Private Sub LB446_LocationChanged(sender As Object, e As EventArgs) Handles LB446.LocationChanged
  5252. LB446_移動()
  5253. End Sub
  5254. Private Sub LB446_TextChanged(sender As Object, e As EventArgs) Handles LB446.TextChanged
  5255. LB446_移動()
  5256. End Sub
  5257. '-----------------------------------------------------------------------------------------------------------------
  5258. Private Sub LB447_Click(sender As Object, e As EventArgs) Handles LB447.Click
  5259. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5260. NU5 = LB447.Location.X : BL1 = True : PA = LB447.Text : 合約內文修改視窗.ShowDialog() : LB447.Text = PA : BL1 = False : NU5 = 0
  5261. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB447.Location.Y : LB447.Location = New Drawing.Point(syy1, sxx)
  5262. sxx = LB448.Location.Y : LB448.Location = New Drawing.Point(syy2, sxx) : sxx = LB449.Location.Y : LB449.Location = New Drawing.Point(syy2, sxx) : End If
  5263. End Sub
  5264. '-----------------------------------------------------------------------------------------------------------------
  5265. Private Sub LB448_移動()
  5266. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5267. Dim sx, sxx As Integer : sx = LB448.Size.Height : sxx = LB448.Location.Y : NU4 = LB449.Location.X : LB449.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5268. End Sub
  5269. Private Sub LB448_Click(sender As Object, e As EventArgs) Handles LB448.Click
  5270. PA = LB448.Text : 合約內文修改視窗.ShowDialog() : LB448.Text = PA : LB448_移動()
  5271. End Sub
  5272. Private Sub LB448_LocationChanged(sender As Object, e As EventArgs) Handles LB448.LocationChanged
  5273. LB448_移動()
  5274. End Sub
  5275. Private Sub LB448_TextChanged(sender As Object, e As EventArgs) Handles LB448.TextChanged
  5276. LB448_移動()
  5277. End Sub
  5278. '-----------------------------------------------------------------------------------------------------------------
  5279. Private Sub LB449_移動()
  5280. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5281. Dim sx, sxx As Integer : sx = LB449.Size.Height : sxx = LB449.Location.Y : NU3 = LB450.Location.X : NU4 = LB451.Location.X
  5282. LB450.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB451.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5283. End Sub
  5284. Private Sub LB449_Click(sender As Object, e As EventArgs) Handles LB449.Click
  5285. PA = LB449.Text : 合約內文修改視窗.ShowDialog() : LB449.Text = PA : LB449_移動()
  5286. End Sub
  5287. Private Sub LB449_LocationChanged(sender As Object, e As EventArgs) Handles LB449.LocationChanged
  5288. LB449_移動()
  5289. End Sub
  5290. Private Sub LB449_TextChanged(sender As Object, e As EventArgs) Handles LB449.TextChanged
  5291. LB449_移動()
  5292. End Sub
  5293. '-----------------------------------------------------------------------------------------------------------------
  5294. Private Sub LB450_Click(sender As Object, e As EventArgs) Handles LB450.Click
  5295. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5296. NU5 = LB450.Location.X : BL1 = True : PA = LB450.Text : 合約內文修改視窗.ShowDialog() : LB450.Text = PA : BL1 = False : NU5 = 0
  5297. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB450.Location.Y : LB450.Location = New Drawing.Point(syy1, sxx)
  5298. sxx = LB451.Location.Y : LB451.Location = New Drawing.Point(syy2, sxx) : sxx = LB452.Location.Y : LB452.Location = New Drawing.Point(syy2, sxx) : End If
  5299. End Sub
  5300. '-----------------------------------------------------------------------------------------------------------------
  5301. Private Sub LB451_移動()
  5302. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5303. Dim sx, sxx As Integer : sx = LB451.Size.Height : sxx = LB451.Location.Y : NU4 = LB452.Location.X : LB452.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5304. End Sub
  5305. Private Sub LB451_Click(sender As Object, e As EventArgs) Handles LB451.Click
  5306. PA = LB451.Text : 合約內文修改視窗.ShowDialog() : LB451.Text = PA : LB451_移動()
  5307. End Sub
  5308. Private Sub LB451_LocationChanged(sender As Object, e As EventArgs) Handles LB451.LocationChanged
  5309. LB451_移動()
  5310. End Sub
  5311. Private Sub LB451_TextChanged(sender As Object, e As EventArgs) Handles LB451.TextChanged
  5312. LB451_移動()
  5313. End Sub
  5314. '-----------------------------------------------------------------------------------------------------------------
  5315. Private Sub LB452_移動()
  5316. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5317. Dim sx, sxx As Integer : sx = LB452.Size.Height : sxx = LB452.Location.Y : NU3 = LB453.Location.X : NU4 = LB454.Location.X
  5318. LB453.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB454.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5319. End Sub
  5320. Private Sub LB452_Click(sender As Object, e As EventArgs) Handles LB452.Click
  5321. PA = LB452.Text : 合約內文修改視窗.ShowDialog() : LB452.Text = PA : LB452_移動()
  5322. End Sub
  5323. Private Sub LB452_LocationChanged(sender As Object, e As EventArgs) Handles LB452.LocationChanged
  5324. LB452_移動()
  5325. End Sub
  5326. Private Sub LB452_TextChanged(sender As Object, e As EventArgs) Handles LB452.TextChanged
  5327. LB452_移動()
  5328. End Sub
  5329. '-----------------------------------------------------------------------------------------------------------------
  5330. Private Sub LB453_Click(sender As Object, e As EventArgs) Handles LB453.Click
  5331. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5332. NU5 = LB453.Location.X : BL1 = True : PA = LB453.Text : 合約內文修改視窗.ShowDialog() : LB453.Text = PA : BL1 = False : NU5 = 0
  5333. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB453.Location.Y : LB453.Location = New Drawing.Point(syy1, sxx)
  5334. sxx = LB454.Location.Y : LB454.Location = New Drawing.Point(syy2, sxx) : sxx = LB455.Location.Y : LB455.Location = New Drawing.Point(syy2, sxx) : End If
  5335. End Sub
  5336. '-----------------------------------------------------------------------------------------------------------------
  5337. Private Sub LB454_移動()
  5338. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5339. Dim sx, sxx As Integer : sx = LB454.Size.Height : sxx = LB454.Location.Y : NU4 = LB455.Location.X : LB455.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5340. End Sub
  5341. Private Sub LB454_Click(sender As Object, e As EventArgs) Handles LB454.Click
  5342. PA = LB454.Text : 合約內文修改視窗.ShowDialog() : LB454.Text = PA : LB454_移動()
  5343. End Sub
  5344. Private Sub LB454_LocationChanged(sender As Object, e As EventArgs) Handles LB454.LocationChanged
  5345. LB454_移動()
  5346. End Sub
  5347. Private Sub LB454_TextChanged(sender As Object, e As EventArgs) Handles LB454.TextChanged
  5348. LB454_移動()
  5349. End Sub
  5350. '-----------------------------------------------------------------------------------------------------------------
  5351. Private Sub LB455_移動()
  5352. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5353. Dim sx, sxx As Integer : sx = LB455.Size.Height : sxx = LB455.Location.Y : NU3 = LB456.Location.X : NU4 = LB457.Location.X
  5354. LB456.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB457.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5355. End Sub
  5356. Private Sub LB455_Click(sender As Object, e As EventArgs) Handles LB455.Click
  5357. PA = LB455.Text : 合約內文修改視窗.ShowDialog() : LB455.Text = PA : LB455_移動()
  5358. End Sub
  5359. Private Sub LB455_LocationChanged(sender As Object, e As EventArgs) Handles LB455.LocationChanged
  5360. LB455_移動()
  5361. End Sub
  5362. Private Sub LB455_TextChanged(sender As Object, e As EventArgs) Handles LB455.TextChanged
  5363. LB455_移動()
  5364. End Sub
  5365. '-----------------------------------------------------------------------------------------------------------------
  5366. Private Sub LB456_Click(sender As Object, e As EventArgs) Handles LB456.Click
  5367. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5368. NU5 = LB456.Location.X : BL1 = True : PA = LB456.Text : 合約內文修改視窗.ShowDialog() : LB456.Text = PA : BL1 = False : NU5 = 0
  5369. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB456.Location.Y : LB456.Location = New Drawing.Point(syy1, sxx)
  5370. sxx = LB457.Location.Y : LB457.Location = New Drawing.Point(syy2, sxx) : sxx = LB458.Location.Y : LB458.Location = New Drawing.Point(syy2, sxx) : End If
  5371. End Sub
  5372. '-----------------------------------------------------------------------------------------------------------------
  5373. Private Sub LB457_移動()
  5374. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5375. Dim sx, sxx As Integer : sx = LB457.Size.Height : sxx = LB457.Location.Y : NU4 = LB458.Location.X : LB458.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5376. End Sub
  5377. Private Sub LB457_Click(sender As Object, e As EventArgs) Handles LB457.Click
  5378. PA = LB457.Text : 合約內文修改視窗.ShowDialog() : LB457.Text = PA : LB457_移動()
  5379. End Sub
  5380. Private Sub LB457_LocationChanged(sender As Object, e As EventArgs) Handles LB457.LocationChanged
  5381. LB457_移動()
  5382. End Sub
  5383. Private Sub LB457_TextChanged(sender As Object, e As EventArgs) Handles LB457.TextChanged
  5384. LB457_移動()
  5385. End Sub
  5386. '-----------------------------------------------------------------------------------------------------------------
  5387. Private Sub LB458_移動()
  5388. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5389. Dim sx, sxx As Integer : sx = LB458.Size.Height : sxx = LB458.Location.Y : NU3 = LB459.Location.X : NU4 = LB460.Location.X
  5390. LB459.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB460.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5391. End Sub
  5392. Private Sub LB458_Click(sender As Object, e As EventArgs) Handles LB458.Click
  5393. PA = LB458.Text : 合約內文修改視窗.ShowDialog() : LB458.Text = PA : LB458_移動()
  5394. End Sub
  5395. Private Sub LB458_LocationChanged(sender As Object, e As EventArgs) Handles LB458.LocationChanged
  5396. LB458_移動()
  5397. End Sub
  5398. Private Sub LB458_TextChanged(sender As Object, e As EventArgs) Handles LB458.TextChanged
  5399. LB458_移動()
  5400. End Sub
  5401. '-----------------------------------------------------------------------------------------------------------------
  5402. Private Sub LB459_Click(sender As Object, e As EventArgs) Handles LB459.Click
  5403. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5404. NU5 = LB459.Location.X : BL1 = True : PA = LB459.Text : 合約內文修改視窗.ShowDialog() : LB459.Text = PA : BL1 = False : NU5 = 0
  5405. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB459.Location.Y : LB459.Location = New Drawing.Point(syy1, sxx)
  5406. sxx = LB460.Location.Y : LB460.Location = New Drawing.Point(syy2, sxx) : sxx = LB461.Location.Y : LB461.Location = New Drawing.Point(syy2, sxx) : End If
  5407. End Sub
  5408. '-----------------------------------------------------------------------------------------------------------------
  5409. Private Sub LB460_移動()
  5410. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5411. Dim sx, sxx As Integer : sx = LB460.Size.Height : sxx = LB460.Location.Y : NU4 = LB461.Location.X : LB461.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5412. End Sub
  5413. Private Sub LB460_Click(sender As Object, e As EventArgs) Handles LB460.Click
  5414. PA = LB460.Text : 合約內文修改視窗.ShowDialog() : LB460.Text = PA : LB460_移動()
  5415. End Sub
  5416. Private Sub LB460_LocationChanged(sender As Object, e As EventArgs) Handles LB460.LocationChanged
  5417. LB460_移動()
  5418. End Sub
  5419. Private Sub LB460_TextChanged(sender As Object, e As EventArgs) Handles LB460.TextChanged
  5420. LB460_移動()
  5421. End Sub
  5422. '-----------------------------------------------------------------------------------------------------------------
  5423. Private Sub LB461_移動()
  5424. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5425. Dim sx, sxx As Integer : sx = LB461.Size.Height : sxx = LB461.Location.Y : NU3 = LB462.Location.X : NU4 = LB463.Location.X
  5426. LB462.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB463.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5427. End Sub
  5428. Private Sub LB461_Click(sender As Object, e As EventArgs) Handles LB461.Click
  5429. PA = LB461.Text : 合約內文修改視窗.ShowDialog() : LB461.Text = PA : LB461_移動()
  5430. End Sub
  5431. Private Sub LB461_LocationChanged(sender As Object, e As EventArgs) Handles LB461.LocationChanged
  5432. LB461_移動()
  5433. End Sub
  5434. Private Sub LB461_TextChanged(sender As Object, e As EventArgs) Handles LB461.TextChanged
  5435. LB461_移動()
  5436. End Sub
  5437. '-----------------------------------------------------------------------------------------------------------------
  5438. Private Sub LB462_Click(sender As Object, e As EventArgs) Handles LB462.Click
  5439. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5440. NU5 = LB462.Location.X : BL1 = True : PA = LB462.Text : 合約內文修改視窗.ShowDialog() : LB462.Text = PA : BL1 = False : NU5 = 0
  5441. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB462.Location.Y : LB462.Location = New Drawing.Point(syy1, sxx)
  5442. sxx = LB463.Location.Y : LB463.Location = New Drawing.Point(syy2, sxx) : sxx = LB464.Location.Y : LB464.Location = New Drawing.Point(syy2, sxx) : End If
  5443. End Sub
  5444. '-----------------------------------------------------------------------------------------------------------------
  5445. Private Sub LB463_移動()
  5446. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5447. Dim sx, sxx As Integer : sx = LB463.Size.Height : sxx = LB463.Location.Y : NU4 = LB464.Location.X : LB464.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5448. End Sub
  5449. Private Sub LB463_Click(sender As Object, e As EventArgs) Handles LB463.Click
  5450. PA = LB463.Text : 合約內文修改視窗.ShowDialog() : LB463.Text = PA : LB463_移動()
  5451. End Sub
  5452. Private Sub LB463_LocationChanged(sender As Object, e As EventArgs) Handles LB463.LocationChanged
  5453. LB463_移動()
  5454. End Sub
  5455. Private Sub LB463_TextChanged(sender As Object, e As EventArgs) Handles LB463.TextChanged
  5456. LB463_移動()
  5457. End Sub
  5458. '-----------------------------------------------------------------------------------------------------------------
  5459. Private Sub LB464_移動()
  5460. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5461. Dim sx, sxx As Integer : sx = LB464.Size.Height : sxx = LB464.Location.Y : NU3 = LB465.Location.X : NU4 = LB466.Location.X
  5462. LB465.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB466.Location = New Drawing.Point(NU4, sxx + sx + 10)
  5463. End If
  5464. End Sub
  5465. Private Sub LB464_Click(sender As Object, e As EventArgs) Handles LB464.Click
  5466. PA = LB464.Text : 合約內文修改視窗.ShowDialog() : LB464.Text = PA : LB464_移動()
  5467. End Sub
  5468. Private Sub LB464_LocationChanged(sender As Object, e As EventArgs) Handles LB464.LocationChanged
  5469. LB464_移動()
  5470. End Sub
  5471. Private Sub LB464_TextChanged(sender As Object, e As EventArgs) Handles LB464.TextChanged
  5472. LB464_移動()
  5473. End Sub
  5474. '-----------------------------------------------------------------------------------------------------------------
  5475. Private Sub LB465_Click(sender As Object, e As EventArgs) Handles LB465.Click
  5476. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5477. NU5 = LB465.Location.X : BL1 = True : PA = LB465.Text : 合約內文修改視窗.ShowDialog() : LB465.Text = PA : BL1 = False : NU5 = 0
  5478. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB465.Location.Y : LB465.Location = New Drawing.Point(syy1, sxx)
  5479. sxx = LB466.Location.Y : LB466.Location = New Drawing.Point(syy2, sxx) : sxx = LB467.Location.Y : LB467.Location = New Drawing.Point(syy2, sxx) : End If
  5480. End Sub
  5481. '-----------------------------------------------------------------------------------------------------------------
  5482. Private Sub LB466_移動()
  5483. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5484. Dim sx, sxx As Integer : sx = LB466.Size.Height : sxx = LB466.Location.Y : NU4 = LB467.Location.X : LB467.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5485. End Sub
  5486. Private Sub LB466_Click(sender As Object, e As EventArgs) Handles LB466.Click
  5487. PA = LB466.Text : 合約內文修改視窗.ShowDialog() : LB466.Text = PA : LB466_移動()
  5488. End Sub
  5489. Private Sub LB466_LocationChanged(sender As Object, e As EventArgs) Handles LB466.LocationChanged
  5490. LB466_移動()
  5491. End Sub
  5492. Private Sub LB466_TextChanged(sender As Object, e As EventArgs) Handles LB466.TextChanged
  5493. LB466_移動()
  5494. End Sub
  5495. '-----------------------------------------------------------------------------------------------------------------
  5496. Private Sub LB467_移動()
  5497. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5498. Dim sx, sxx As Integer : sx = LB467.Size.Height : sxx = LB467.Location.Y : NU3 = LB468.Location.X : NU4 = LB469.Location.X
  5499. LB468.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB469.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5500. End Sub
  5501. Private Sub LB467_Click(sender As Object, e As EventArgs) Handles LB467.Click
  5502. PA = LB467.Text : 合約內文修改視窗.ShowDialog() : LB467.Text = PA : LB467_移動()
  5503. End Sub
  5504. Private Sub LB467_LocationChanged(sender As Object, e As EventArgs) Handles LB467.LocationChanged
  5505. LB467_移動()
  5506. End Sub
  5507. Private Sub LB467_TextChanged(sender As Object, e As EventArgs) Handles LB467.TextChanged
  5508. LB467_移動()
  5509. End Sub
  5510. '-----------------------------------------------------------------------------------------------------------------
  5511. Private Sub LB468_Click(sender As Object, e As EventArgs) Handles LB468.Click
  5512. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5513. NU5 = LB468.Location.X : BL1 = True : PA = LB468.Text : 合約內文修改視窗.ShowDialog() : LB468.Text = PA : BL1 = False : NU5 = 0
  5514. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB468.Location.Y : LB468.Location = New Drawing.Point(syy1, sxx)
  5515. sxx = LB469.Location.Y : LB469.Location = New Drawing.Point(syy2, sxx) : sxx = LB470.Location.Y : LB470.Location = New Drawing.Point(syy2, sxx) : End If
  5516. End Sub
  5517. '-----------------------------------------------------------------------------------------------------------------
  5518. Private Sub LB469_移動()
  5519. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5520. Dim sx, sxx As Integer : sx = LB469.Size.Height : sxx = LB469.Location.Y : NU4 = LB470.Location.X : LB470.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5521. End Sub
  5522. Private Sub LB469_Click(sender As Object, e As EventArgs) Handles LB469.Click
  5523. PA = LB469.Text : 合約內文修改視窗.ShowDialog() : LB469.Text = PA : LB469_移動()
  5524. End Sub
  5525. Private Sub LB469_LocationChanged(sender As Object, e As EventArgs) Handles LB469.LocationChanged
  5526. LB469_移動()
  5527. End Sub
  5528. Private Sub LB469_TextChanged(sender As Object, e As EventArgs) Handles LB469.TextChanged
  5529. LB469_移動()
  5530. End Sub
  5531. '-----------------------------------------------------------------------------------------------------------------
  5532. Private Sub LB470_移動()
  5533. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5534. Dim sx, sxx As Integer : sx = LB470.Size.Height : sxx = LB470.Location.Y : NU3 = LB471.Location.X : NU4 = LB472.Location.X
  5535. LB471.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB472.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5536. End Sub
  5537. Private Sub LB470_Click(sender As Object, e As EventArgs) Handles LB470.Click
  5538. PA = LB470.Text : 合約內文修改視窗.ShowDialog() : LB470.Text = PA : LB470_移動()
  5539. End Sub
  5540. Private Sub LB470_LocationChanged(sender As Object, e As EventArgs) Handles LB470.LocationChanged
  5541. LB470_移動()
  5542. End Sub
  5543. Private Sub LB470_TextChanged(sender As Object, e As EventArgs) Handles LB470.TextChanged
  5544. LB470_移動()
  5545. End Sub
  5546. '-----------------------------------------------------------------------------------------------------------------
  5547. Private Sub LB471_Click(sender As Object, e As EventArgs) Handles LB471.Click
  5548. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5549. NU5 = LB471.Location.X : BL1 = True : PA = LB471.Text : 合約內文修改視窗.ShowDialog() : LB471.Text = PA : BL1 = False : NU5 = 0
  5550. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB471.Location.Y : LB471.Location = New Drawing.Point(syy1, sxx)
  5551. sxx = LB472.Location.Y : LB472.Location = New Drawing.Point(syy2, sxx) : sxx = LB473.Location.Y : LB473.Location = New Drawing.Point(syy2, sxx) : End If
  5552. End Sub
  5553. '-----------------------------------------------------------------------------------------------------------------
  5554. Private Sub LB472_移動()
  5555. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5556. Dim sx, sxx As Integer : sx = LB472.Size.Height : sxx = LB472.Location.Y : NU4 = LB473.Location.X : LB473.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5557. End Sub
  5558. Private Sub LB472_Click(sender As Object, e As EventArgs) Handles LB472.Click
  5559. PA = LB472.Text : 合約內文修改視窗.ShowDialog() : LB472.Text = PA : LB472_移動()
  5560. End Sub
  5561. Private Sub LB472_LocationChanged(sender As Object, e As EventArgs) Handles LB472.LocationChanged
  5562. LB472_移動()
  5563. End Sub
  5564. Private Sub LB472_TextChanged(sender As Object, e As EventArgs) Handles LB472.TextChanged
  5565. LB472_移動()
  5566. End Sub
  5567. '-----------------------------------------------------------------------------------------------------------------
  5568. Private Sub LB473_移動()
  5569. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5570. Dim sx, sxx As Integer : sx = LB473.Size.Height : sxx = LB473.Location.Y : NU3 = LB474.Location.X : NU4 = LB475.Location.X
  5571. LB474.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB475.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5572. End Sub
  5573. Private Sub LB473_Click(sender As Object, e As EventArgs) Handles LB473.Click
  5574. PA = LB473.Text : 合約內文修改視窗.ShowDialog() : LB473.Text = PA : LB473_移動()
  5575. End Sub
  5576. Private Sub LB473_LocationChanged(sender As Object, e As EventArgs) Handles LB473.LocationChanged
  5577. LB473_移動()
  5578. End Sub
  5579. Private Sub LB473_TextChanged(sender As Object, e As EventArgs) Handles LB473.TextChanged
  5580. LB473_移動()
  5581. End Sub
  5582. '-----------------------------------------------------------------------------------------------------------------
  5583. Private Sub LB474_Click(sender As Object, e As EventArgs) Handles LB474.Click
  5584. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5585. NU5 = LB474.Location.X : BL1 = True : PA = LB474.Text : 合約內文修改視窗.ShowDialog() : LB474.Text = PA : BL1 = False : NU5 = 0
  5586. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB474.Location.Y : LB474.Location = New Drawing.Point(syy1, sxx)
  5587. sxx = LB475.Location.Y : LB475.Location = New Drawing.Point(syy2, sxx) : sxx = LB476.Location.Y : LB476.Location = New Drawing.Point(syy2, sxx) : End If
  5588. End Sub
  5589. '-----------------------------------------------------------------------------------------------------------------
  5590. Private Sub LB475_移動()
  5591. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5592. Dim sx, sxx As Integer : sx = LB475.Size.Height : sxx = LB475.Location.Y : NU4 = LB476.Location.X : LB476.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5593. End Sub
  5594. Private Sub LB475_Click(sender As Object, e As EventArgs) Handles LB475.Click
  5595. PA = LB475.Text : 合約內文修改視窗.ShowDialog() : LB475.Text = PA : LB475_移動()
  5596. End Sub
  5597. Private Sub LB475_LocationChanged(sender As Object, e As EventArgs) Handles LB475.LocationChanged
  5598. LB475_移動()
  5599. End Sub
  5600. Private Sub LB475_TextChanged(sender As Object, e As EventArgs) Handles LB475.TextChanged
  5601. LB475_移動()
  5602. End Sub
  5603. '-----------------------------------------------------------------------------------------------------------------
  5604. Private Sub LB476_移動()
  5605. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB476.Size.Height : sxx = LB476.Location.Y
  5606. NU3 = LB477.Location.X : NU4 = LB478.Location.X : LB477.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB478.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5607. End Sub
  5608. Private Sub LB476_Click(sender As Object, e As EventArgs) Handles LB476.Click
  5609. PA = LB476.Text : 合約內文修改視窗.ShowDialog() : LB476.Text = PA : LB476_移動()
  5610. End Sub
  5611. Private Sub LB476_LocationChanged(sender As Object, e As EventArgs) Handles LB476.LocationChanged
  5612. LB476_移動()
  5613. End Sub
  5614. Private Sub LB476_TextChanged(sender As Object, e As EventArgs) Handles LB476.TextChanged
  5615. LB476_移動()
  5616. End Sub
  5617. '-----------------------------------------------------------------------------------------------------------------
  5618. Private Sub LB477_Click(sender As Object, e As EventArgs) Handles LB477.Click
  5619. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5620. NU5 = LB477.Location.X : BL1 = True : PA = LB477.Text : 合約內文修改視窗.ShowDialog() : LB477.Text = PA : BL1 = False : NU5 = 0
  5621. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB477.Location.Y : LB477.Location = New Drawing.Point(syy1, sxx)
  5622. sxx = LB478.Location.Y : LB478.Location = New Drawing.Point(syy2, sxx) : sxx = LB479.Location.Y : LB479.Location = New Drawing.Point(syy2, sxx) : End If
  5623. End Sub
  5624. '-----------------------------------------------------------------------------------------------------------------
  5625. Private Sub LB478_移動()
  5626. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5627. Dim sx, sxx As Integer : sx = LB478.Size.Height : sxx = LB478.Location.Y : NU4 = LB479.Location.X : LB479.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5628. End Sub
  5629. Private Sub LB478_Click(sender As Object, e As EventArgs) Handles LB478.Click
  5630. PA = LB478.Text : 合約內文修改視窗.ShowDialog() : LB478.Text = PA : LB478_移動()
  5631. End Sub
  5632. Private Sub LB478_LocationChanged(sender As Object, e As EventArgs) Handles LB478.LocationChanged
  5633. LB478_移動()
  5634. End Sub
  5635. Private Sub LB478_TextChanged(sender As Object, e As EventArgs) Handles LB478.TextChanged
  5636. LB478_移動()
  5637. End Sub
  5638. '-----------------------------------------------------------------------------------------------------------------
  5639. Private Sub LB479_移動()
  5640. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB479.Size.Height : sxx = LB479.Location.Y
  5641. NU3 = LB480.Location.X : NU4 = LB481.Location.X : LB480.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB481.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5642. End Sub
  5643. Private Sub LB479_Click(sender As Object, e As EventArgs) Handles LB479.Click
  5644. PA = LB479.Text : 合約內文修改視窗.ShowDialog() : LB479.Text = PA : LB479_移動()
  5645. End Sub
  5646. Private Sub LB479_LocationChanged(sender As Object, e As EventArgs) Handles LB479.LocationChanged
  5647. LB479_移動()
  5648. End Sub
  5649. Private Sub LB479_TextChanged(sender As Object, e As EventArgs) Handles LB479.TextChanged
  5650. LB479_移動()
  5651. End Sub
  5652. '-----------------------------------------------------------------------------------------------------------------
  5653. Private Sub LB480_Click(sender As Object, e As EventArgs) Handles LB480.Click
  5654. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5655. NU5 = LB480.Location.X : BL1 = True : PA = LB480.Text : 合約內文修改視窗.ShowDialog() : LB480.Text = PA : BL1 = False : NU5 = 0
  5656. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB480.Location.Y : LB480.Location = New Drawing.Point(syy1, sxx)
  5657. sxx = LB481.Location.Y : LB481.Location = New Drawing.Point(syy2, sxx) : sxx = LB482.Location.Y : LB482.Location = New Drawing.Point(syy2, sxx) : End If
  5658. End Sub
  5659. '-----------------------------------------------------------------------------------------------------------------
  5660. Private Sub LB481_移動()
  5661. If (Val(最末頁_cb.Text) > 16 And 翻頁_nud.Value = 12) Or 自動移動 = True Then
  5662. Dim sx, sxx As Integer : sx = LB481.Size.Height : sxx = LB481.Location.Y : NU4 = LB482.Location.X : LB482.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5663. End Sub
  5664. Private Sub LB481_Click(sender As Object, e As EventArgs) Handles LB481.Click
  5665. PA = LB481.Text : 合約內文修改視窗.ShowDialog() : LB481.Text = PA : LB481_移動()
  5666. End Sub
  5667. Private Sub LB481_LocationChanged(sender As Object, e As EventArgs) Handles LB481.LocationChanged
  5668. LB481_移動()
  5669. End Sub
  5670. Private Sub LB481_TextChanged(sender As Object, e As EventArgs) Handles LB481.TextChanged
  5671. LB481_移動()
  5672. End Sub
  5673. '-----------------------------------------------------------------------------------------------------------------
  5674. Private Sub LB482_Click(sender As Object, e As EventArgs) Handles LB482.Click
  5675. PA = LB482.Text : 合約內文修改視窗.ShowDialog() : LB482.Text = PA
  5676. End Sub
  5677. '---------------------------第11頁----------------------------------------------------------------------------------------------------------------------------------------------
  5678. Private Sub LB483_Click(sender As Object, e As EventArgs) Handles LB483.Click
  5679. PA = LB483.Text : 合約內文修改視窗.ShowDialog() : LB483.Text = PA
  5680. End Sub
  5681. Private Sub LB484_Click(sender As Object, e As EventArgs) Handles LB484.Click
  5682. PA = LB484.Text : 合約內文修改視窗.ShowDialog() : LB484.Text = PA
  5683. End Sub
  5684. Private Sub LB485_Click(sender As Object, e As EventArgs) Handles LB485.Click
  5685. PA = LB485.Text : 合約內文修改視窗.ShowDialog() : LB485.Text = PA
  5686. End Sub
  5687. '-----------------------------------------------------------------------------------------------------------------
  5688. Private Sub LB486_Click(sender As Object, e As EventArgs) Handles LB486.Click
  5689. If 翻頁_nud.Value = 11 Or 自動移動 = True Then
  5690. NU5 = LB486.Location.X : BL1 = True : PA = LB486.Text : 合約內文修改視窗.ShowDialog() : LB486.Text = PA : BL1 = False : NU5 = 0
  5691. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB486.Location.Y : LB486.Location = New Drawing.Point(syy1, sxx)
  5692. sxx = LB117.Location.Y : LB117.Location = New Drawing.Point(syy2, sxx) : sxx = LB118.Location.Y : LB118.Location = New Drawing.Point(syy2, sxx) : End If
  5693. End Sub
  5694. '-----------------------------------------------------------------------------------------------------------------
  5695. Private Sub LB117_移動()
  5696. If 翻頁_nud.Value = 11 Or 自動移動 = True Then
  5697. Dim sx, sxx As Integer : sx = LB117.Size.Height : sxx = LB117.Location.Y : NU4 = LB118.Location.X : LB118.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5698. End Sub
  5699. Private Sub LB117_Click(sender As Object, e As EventArgs) Handles LB117.Click
  5700. PA = LB117.Text : 合約內文修改視窗.ShowDialog() : LB117.Text = PA : LB117_移動()
  5701. End Sub
  5702. Private Sub LB117_LocationChanged(sender As Object, e As EventArgs) Handles LB117.LocationChanged
  5703. LB117_移動()
  5704. End Sub
  5705. Private Sub LB117_TextChanged(sender As Object, e As EventArgs) Handles LB117.TextChanged
  5706. LB117_移動()
  5707. End Sub
  5708. '-----------------------------------------------------------------------------------------------------------------
  5709. Private Sub LB118_移動()
  5710. If 翻頁_nud.Value = 11 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB118.Size.Height : sxx = LB118.Location.Y : NU3 = LB487.Location.X : NU4 = LB119.Location.X
  5711. LB487.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB119.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5712. End Sub
  5713. Private Sub LB118_Click(sender As Object, e As EventArgs) Handles LB118.Click
  5714. PA = LB118.Text : 合約內文修改視窗.ShowDialog() : LB118.Text = PA : LB118_移動()
  5715. End Sub
  5716. Private Sub LB118_LocationChanged(sender As Object, e As EventArgs) Handles LB118.LocationChanged
  5717. LB118_移動()
  5718. End Sub
  5719. Private Sub LB118_TextChanged(sender As Object, e As EventArgs) Handles LB118.TextChanged
  5720. LB118_移動()
  5721. End Sub
  5722. '-----------------------------------------------------------------------------------------------------------------
  5723. Private Sub LB487_Click(sender As Object, e As EventArgs) Handles LB487.Click
  5724. If 翻頁_nud.Value = 11 Or 自動移動 = True Then
  5725. NU5 = LB487.Location.X : BL1 = True : PA = LB487.Text : 合約內文修改視窗.ShowDialog() : LB487.Text = PA : BL1 = False : NU5 = 0
  5726. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB487.Location.Y : LB487.Location = New Drawing.Point(syy1, sxx)
  5727. sxx = LB119.Location.Y : LB119.Location = New Drawing.Point(syy2, sxx) : sxx = LB120.Location.Y : LB120.Location = New Drawing.Point(syy2, sxx) : End If
  5728. End Sub
  5729. '-----------------------------------------------------------------------------------------------------------------
  5730. Private Sub LB119_移動()
  5731. If 翻頁_nud.Value = 11 Or 自動移動 = True Then
  5732. Dim sx, sxx As Integer : sx = LB119.Size.Height : sxx = LB119.Location.Y : NU4 = LB120.Location.X : LB120.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5733. End Sub
  5734. Private Sub LB119_Click(sender As Object, e As EventArgs) Handles LB119.Click
  5735. PA = LB119.Text : 合約內文修改視窗.ShowDialog() : LB119.Text = PA : LB119_移動()
  5736. End Sub
  5737. Private Sub LB119_LocationChanged(sender As Object, e As EventArgs) Handles LB119.LocationChanged
  5738. LB119_移動()
  5739. End Sub
  5740. Private Sub LB119_TextChanged(sender As Object, e As EventArgs) Handles LB119.TextChanged
  5741. LB119_移動()
  5742. End Sub
  5743. '-----------------------------------------------------------------------------------------------------------------
  5744. Private Sub LB120_移動()
  5745. If 翻頁_nud.Value = 11 Or 自動移動 = True Then
  5746. Dim sx, sxx As Integer : sx = LB120.Size.Height : sxx = LB120.Location.Y : LB488.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB489.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5747. End Sub
  5748. Private Sub LB120_Click(sender As Object, e As EventArgs) Handles LB120.Click
  5749. PA = LB120.Text : 合約內文修改視窗.ShowDialog() : LB120.Text = PA : LB120_移動()
  5750. End Sub
  5751. Private Sub LB120_LocationChanged(sender As Object, e As EventArgs) Handles LB120.LocationChanged
  5752. LB120_移動()
  5753. End Sub
  5754. Private Sub LB120_TextChanged(sender As Object, e As EventArgs) Handles LB120.TextChanged
  5755. LB120_移動()
  5756. End Sub
  5757. '-----------------------------------------------------------------------------------------------------------------
  5758. Private Sub LB488_Click(sender As Object, e As EventArgs) Handles LB488.Click
  5759. If 翻頁_nud.Value = 11 Or 自動移動 = True Then
  5760. NU5 = LB488.Location.X : BL1 = True : PA = LB488.Text : 合約內文修改視窗.ShowDialog() : LB488.Text = PA : BL1 = False : NU5 = 0
  5761. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB488.Location.Y : LB488.Location = New Drawing.Point(syy1, sxx)
  5762. sxx = LB489.Location.Y : LB489.Location = New Drawing.Point(syy2, sxx) : sxx = LB490.Location.Y : LB490.Location = New Drawing.Point(syy2, sxx) : End If
  5763. End Sub
  5764. '-----------------------------------------------------------------------------------------------------------------
  5765. Private Sub LB489_移動()
  5766. If 翻頁_nud.Value = 11 Or 自動移動 = True Then
  5767. Dim sx, sxx As Integer : sx = LB489.Size.Height : sxx = LB489.Location.Y : NU4 = LB490.Location.X : LB490.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5768. End Sub
  5769. Private Sub LB489_Click(sender As Object, e As EventArgs) Handles LB489.Click
  5770. PA = LB489.Text : 合約內文修改視窗.ShowDialog() : LB489.Text = PA : LB489_移動()
  5771. End Sub
  5772. Private Sub LB489_LocationChanged(sender As Object, e As EventArgs) Handles LB489.LocationChanged
  5773. LB489_移動()
  5774. End Sub
  5775. Private Sub LB489_TextChanged(sender As Object, e As EventArgs) Handles LB489.TextChanged
  5776. LB489_移動()
  5777. End Sub
  5778. '-----------------------------------------------------------------------------------------------------------------
  5779. Private Sub LB490_移動()
  5780. If 翻頁_nud.Value = 11 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB490.Size.Height : sxx = LB490.Location.Y : NU3 = LB491.Location.X : NU4 = LB492.Location.X
  5781. LB491.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB492.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5782. End Sub
  5783. Private Sub LB490_Click(sender As Object, e As EventArgs) Handles LB490.Click
  5784. PA = LB490.Text : 合約內文修改視窗.ShowDialog() : LB490.Text = PA : LB490_移動()
  5785. End Sub
  5786. Private Sub LB490_LocationChanged(sender As Object, e As EventArgs) Handles LB490.LocationChanged
  5787. LB490_移動()
  5788. End Sub
  5789. Private Sub LB490_TextChanged(sender As Object, e As EventArgs) Handles LB490.TextChanged
  5790. LB490_移動()
  5791. End Sub
  5792. '-----------------------------------------------------------------------------------------------------------------
  5793. Private Sub LB491_Click(sender As Object, e As EventArgs) Handles LB491.Click
  5794. If 翻頁_nud.Value = 11 Or 自動移動 = True Then
  5795. NU5 = LB491.Location.X : BL1 = True : PA = LB491.Text : 合約內文修改視窗.ShowDialog() : LB491.Text = PA : BL1 = False : NU5 = 0
  5796. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB491.Location.Y : LB491.Location = New Drawing.Point(syy1, sxx)
  5797. sxx = LB492.Location.Y : LB492.Location = New Drawing.Point(syy2, sxx) : sxx = LB493.Location.Y : LB493.Location = New Drawing.Point(syy2, sxx) : End If
  5798. End Sub
  5799. '-----------------------------------------------------------------------------------------------------------------
  5800. Private Sub LB492_移動()
  5801. If 翻頁_nud.Value = 11 Or 自動移動 = True Then
  5802. Dim sx, sxx As Integer : sx = LB492.Size.Height : sxx = LB492.Location.Y : NU4 = LB493.Location.X : LB493.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5803. End Sub
  5804. Private Sub LB492_Click(sender As Object, e As EventArgs) Handles LB492.Click
  5805. PA = LB492.Text : 合約內文修改視窗.ShowDialog() : LB492.Text = PA : LB492_移動()
  5806. End Sub
  5807. Private Sub LB492_LocationChanged(sender As Object, e As EventArgs) Handles LB492.LocationChanged
  5808. LB492_移動()
  5809. End Sub
  5810. Private Sub LB492_TextChanged(sender As Object, e As EventArgs) Handles LB492.TextChanged
  5811. LB492_移動()
  5812. End Sub
  5813. '-----------------------------------------------------------------------------------------------------------------
  5814. Private Sub LB493_移動()
  5815. If 翻頁_nud.Value = 11 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB493.Size.Height : sxx = LB493.Location.Y : NU3 = LB494.Location.X : NU4 = LB495.Location.X
  5816. LB494.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB495.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5817. End Sub
  5818. Private Sub LB493_Click(sender As Object, e As EventArgs) Handles LB493.Click
  5819. PA = LB493.Text : 合約內文修改視窗.ShowDialog() : LB493.Text = PA : LB493_移動()
  5820. End Sub
  5821. Private Sub LB493_LocationChanged(sender As Object, e As EventArgs) Handles LB493.LocationChanged
  5822. LB493_移動()
  5823. End Sub
  5824. Private Sub LB493_TextChanged(sender As Object, e As EventArgs) Handles LB493.TextChanged
  5825. LB493_移動()
  5826. End Sub
  5827. '-----------------------------------------------------------------------------------------------------------------
  5828. Private Sub LB494_Click(sender As Object, e As EventArgs) Handles LB494.Click
  5829. If 翻頁_nud.Value = 11 Or 自動移動 = True Then
  5830. NU5 = LB494.Location.X : BL1 = True : PA = LB494.Text : 合約內文修改視窗.ShowDialog() : LB494.Text = PA : BL1 = False : NU5 = 0
  5831. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB494.Location.Y : LB494.Location = New Drawing.Point(syy1, sxx)
  5832. sxx = LB495.Location.Y : LB495.Location = New Drawing.Point(syy2, sxx) : sxx = LB496.Location.Y : LB496.Location = New Drawing.Point(syy2, sxx) : End If
  5833. End Sub
  5834. '-----------------------------------------------------------------------------------------------------------------
  5835. Private Sub LB495_移動()
  5836. If 翻頁_nud.Value = 11 Or 自動移動 = True Then
  5837. Dim sx, sxx As Integer : sx = LB495.Size.Height : sxx = LB495.Location.Y : NU4 = LB496.Location.X : LB496.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5838. End Sub
  5839. Private Sub LB495_Click(sender As Object, e As EventArgs) Handles LB495.Click
  5840. PA = LB495.Text : 合約內文修改視窗.ShowDialog() : LB495.Text = PA : LB495_移動()
  5841. End Sub
  5842. Private Sub LB495_LocationChanged(sender As Object, e As EventArgs) Handles LB495.LocationChanged
  5843. LB495_移動()
  5844. End Sub
  5845. Private Sub LB495_TextChanged(sender As Object, e As EventArgs) Handles LB495.TextChanged
  5846. LB495_移動()
  5847. End Sub
  5848. '-----------------------------------------------------------------------------------------------------------------
  5849. Private Sub LB496_移動()
  5850. If 翻頁_nud.Value = 11 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB496.Size.Height : sxx = LB496.Location.Y : NU3 = LB497.Location.X : NU4 = LB498.Location.X
  5851. LB497.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB498.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5852. End Sub
  5853. Private Sub LB496_Click(sender As Object, e As EventArgs) Handles LB496.Click
  5854. PA = LB496.Text : 合約內文修改視窗.ShowDialog() : LB496.Text = PA : LB496_移動()
  5855. End Sub
  5856. Private Sub LB496_LocationChanged(sender As Object, e As EventArgs) Handles LB496.LocationChanged
  5857. LB496_移動()
  5858. End Sub
  5859. Private Sub LB496_TextChanged(sender As Object, e As EventArgs) Handles LB496.TextChanged
  5860. LB496_移動()
  5861. End Sub
  5862. '-----------------------------------------------------------------------------------------------------------------
  5863. Private Sub LB497_Click(sender As Object, e As EventArgs) Handles LB497.Click
  5864. If 翻頁_nud.Value = 11 Or 自動移動 = True Then
  5865. NU5 = LB497.Location.X : BL1 = True : PA = LB497.Text : 合約內文修改視窗.ShowDialog() : LB497.Text = PA : BL1 = False : NU5 = 0
  5866. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB497.Location.Y : LB497.Location = New Drawing.Point(syy1, sxx)
  5867. sxx = LB498.Location.Y : LB498.Location = New Drawing.Point(syy2, sxx) : sxx = LB499.Location.Y : LB499.Location = New Drawing.Point(syy2, sxx) : End If
  5868. End Sub
  5869. '-----------------------------------------------------------------------------------------------------------------
  5870. Private Sub LB498_移動()
  5871. If 翻頁_nud.Value = 11 Or 自動移動 = True Then
  5872. Dim sx, sxx As Integer : sx = LB498.Size.Height : sxx = LB498.Location.Y : NU4 = LB499.Location.X : LB499.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5873. End Sub
  5874. Private Sub LB498_Click(sender As Object, e As EventArgs) Handles LB498.Click
  5875. PA = LB498.Text : 合約內文修改視窗.ShowDialog() : LB498.Text = PA : LB498_移動()
  5876. End Sub
  5877. Private Sub LB498_LocationChanged(sender As Object, e As EventArgs) Handles LB498.LocationChanged
  5878. LB498_移動()
  5879. End Sub
  5880. Private Sub LB498_TextChanged(sender As Object, e As EventArgs) Handles LB498.TextChanged
  5881. LB498_移動()
  5882. End Sub
  5883. '-----------------------------------------------------------------------------------------------------------------
  5884. Private Sub LB499_移動()
  5885. If 翻頁_nud.Value = 11 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB499.Size.Height : sxx = LB499.Location.Y : NU3 = LB500.Location.X : NU4 = LB501.Location.X
  5886. LB500.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB501.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5887. End Sub
  5888. Private Sub LB499_Click(sender As Object, e As EventArgs) Handles LB499.Click
  5889. PA = LB499.Text : 合約內文修改視窗.ShowDialog() : LB499.Text = PA : LB499_移動()
  5890. End Sub
  5891. Private Sub LB499_LocationChanged(sender As Object, e As EventArgs) Handles LB499.LocationChanged
  5892. LB499_移動()
  5893. End Sub
  5894. Private Sub LB499_TextChanged(sender As Object, e As EventArgs) Handles LB499.TextChanged
  5895. LB499_移動()
  5896. End Sub
  5897. '-----------------------------------------------------------------------------------------------------------------
  5898. Private Sub LB500_Click(sender As Object, e As EventArgs) Handles LB500.Click
  5899. If 翻頁_nud.Value = 11 Or 自動移動 = True Then
  5900. NU5 = LB500.Location.X : BL1 = True : PA = LB500.Text : 合約內文修改視窗.ShowDialog() : LB500.Text = PA : BL1 = False : NU5 = 0
  5901. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB500.Location.Y : LB500.Location = New Drawing.Point(syy1, sxx)
  5902. sxx = LB501.Location.Y : LB501.Location = New Drawing.Point(syy2, sxx) : sxx = LB502.Location.Y : LB502.Location = New Drawing.Point(syy2, sxx) : End If
  5903. End Sub
  5904. '-----------------------------------------------------------------------------------------------------------------
  5905. Private Sub LB501_移動()
  5906. If 翻頁_nud.Value = 11 Or 自動移動 = True Then
  5907. Dim sx, sxx As Integer : sx = LB501.Size.Height : sxx = LB501.Location.Y : NU4 = LB502.Location.X : LB502.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5908. End Sub
  5909. Private Sub LB501_Click(sender As Object, e As EventArgs) Handles LB501.Click
  5910. PA = LB501.Text : 合約內文修改視窗.ShowDialog() : LB501.Text = PA : LB501_移動()
  5911. End Sub
  5912. Private Sub LB501_LocationChanged(sender As Object, e As EventArgs) Handles LB501.LocationChanged
  5913. LB501_移動()
  5914. End Sub
  5915. Private Sub LB501_TextChanged(sender As Object, e As EventArgs) Handles LB501.TextChanged
  5916. LB501_移動()
  5917. End Sub
  5918. '-----------------------------------------------------------------------------------------------------------------
  5919. Private Sub LB502_移動()
  5920. If 翻頁_nud.Value = 11 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB502.Size.Height : sxx = LB502.Location.Y : NU3 = LB503.Location.X : NU4 = LB504.Location.X
  5921. LB503.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB504.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5922. End Sub
  5923. Private Sub LB502_Click(sender As Object, e As EventArgs) Handles LB502.Click
  5924. PA = LB502.Text : 合約內文修改視窗.ShowDialog() : LB502.Text = PA : LB502_移動()
  5925. End Sub
  5926. Private Sub LB502_LocationChanged(sender As Object, e As EventArgs) Handles LB502.LocationChanged
  5927. LB502_移動()
  5928. End Sub
  5929. Private Sub LB502_TextChanged(sender As Object, e As EventArgs) Handles LB502.TextChanged
  5930. LB502_移動()
  5931. End Sub
  5932. '-----------------------------------------------------------------------------------------------------------------
  5933. Private Sub LB503_Click(sender As Object, e As EventArgs) Handles LB503.Click
  5934. If 翻頁_nud.Value = 11 Or 自動移動 = True Then
  5935. NU5 = LB503.Location.X : BL1 = True : PA = LB503.Text : 合約內文修改視窗.ShowDialog() : LB503.Text = PA : BL1 = False : NU5 = 0
  5936. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB503.Location.Y : LB503.Location = New Drawing.Point(syy1, sxx)
  5937. sxx = LB504.Location.Y : LB504.Location = New Drawing.Point(syy2, sxx) : sxx = LB505.Location.Y : LB505.Location = New Drawing.Point(syy2, sxx) : End If
  5938. End Sub
  5939. '-----------------------------------------------------------------------------------------------------------------
  5940. Private Sub LB504_移動()
  5941. If 翻頁_nud.Value = 11 Or 自動移動 = True Then
  5942. Dim sx, sxx As Integer : sx = LB504.Size.Height : sxx = LB504.Location.Y : NU4 = LB505.Location.X : LB505.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5943. End Sub
  5944. Private Sub LB504_Click(sender As Object, e As EventArgs) Handles LB504.Click
  5945. PA = LB504.Text : 合約內文修改視窗.ShowDialog() : LB504.Text = PA : LB504_移動()
  5946. End Sub
  5947. Private Sub LB504_LocationChanged(sender As Object, e As EventArgs) Handles LB504.LocationChanged
  5948. LB504_移動()
  5949. End Sub
  5950. Private Sub LB504_TextChanged(sender As Object, e As EventArgs) Handles LB504.TextChanged
  5951. LB504_移動()
  5952. End Sub
  5953. '-----------------------------------------------------------------------------------------------------------------
  5954. Private Sub LB505_移動()
  5955. If 翻頁_nud.Value = 11 Or 自動移動 = True Then
  5956. Dim sx, sxx As Integer : sx = LB505.Size.Height : sxx = LB505.Location.Y : NU3 = LB506.Location.X : NU4 = LB507.Location.X
  5957. LB506.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB507.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5958. End Sub
  5959. Private Sub LB505_Click(sender As Object, e As EventArgs) Handles LB505.Click
  5960. PA = LB505.Text : 合約內文修改視窗.ShowDialog() : LB505.Text = PA : LB505_移動()
  5961. End Sub
  5962. Private Sub LB505_LocationChanged(sender As Object, e As EventArgs) Handles LB505.LocationChanged
  5963. LB505_移動()
  5964. End Sub
  5965. Private Sub LB505_TextChanged(sender As Object, e As EventArgs) Handles LB505.TextChanged
  5966. LB505_移動()
  5967. End Sub
  5968. '-----------------------------------------------------------------------------------------------------------------
  5969. Private Sub LB506_Click(sender As Object, e As EventArgs) Handles LB506.Click
  5970. If 翻頁_nud.Value = 11 Or 自動移動 = True Then
  5971. NU5 = LB506.Location.X : BL1 = True : PA = LB506.Text : 合約內文修改視窗.ShowDialog() : LB506.Text = PA : BL1 = False : NU5 = 0
  5972. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB506.Location.Y : LB506.Location = New Drawing.Point(syy1, sxx)
  5973. sxx = LB507.Location.Y : LB507.Location = New Drawing.Point(syy2, sxx) : sxx = LB508.Location.Y : LB508.Location = New Drawing.Point(syy2, sxx) : End If
  5974. End Sub
  5975. '-----------------------------------------------------------------------------------------------------------------
  5976. Private Sub LB507_移動()
  5977. If 翻頁_nud.Value = 11 Or 自動移動 = True Then
  5978. Dim sx, sxx As Integer : sx = LB507.Size.Height : sxx = LB507.Location.Y : NU4 = LB508.Location.X : LB508.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5979. End Sub
  5980. Private Sub LB507_Click(sender As Object, e As EventArgs) Handles LB507.Click
  5981. PA = LB507.Text : 合約內文修改視窗.ShowDialog() : LB507.Text = PA : LB507_移動()
  5982. End Sub
  5983. Private Sub LB507_LocationChanged(sender As Object, e As EventArgs) Handles LB507.LocationChanged
  5984. LB507_移動()
  5985. End Sub
  5986. Private Sub LB507_TextChanged(sender As Object, e As EventArgs) Handles LB507.TextChanged
  5987. LB507_移動()
  5988. End Sub
  5989. '-----------------------------------------------------------------------------------------------------------------
  5990. Private Sub LB508_移動()
  5991. If 翻頁_nud.Value = 11 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB508.Size.Height : sxx = LB508.Location.Y : NU3 = LB509.Location.X : NU4 = LB510.Location.X
  5992. LB509.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB510.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  5993. End Sub
  5994. Private Sub LB508_Click(sender As Object, e As EventArgs) Handles LB508.Click
  5995. PA = LB508.Text : 合約內文修改視窗.ShowDialog() : LB508.Text = PA : LB508_移動()
  5996. End Sub
  5997. Private Sub LB508_LocationChanged(sender As Object, e As EventArgs) Handles LB508.LocationChanged
  5998. LB508_移動()
  5999. End Sub
  6000. Private Sub LB508_TextChanged(sender As Object, e As EventArgs) Handles LB508.TextChanged
  6001. LB508_移動()
  6002. End Sub
  6003. '-----------------------------------------------------------------------------------------------------------------
  6004. Private Sub LB509_Click(sender As Object, e As EventArgs) Handles LB509.Click
  6005. If 翻頁_nud.Value = 11 Or 自動移動 = True Then
  6006. NU5 = LB509.Location.X : BL1 = True : PA = LB509.Text : 合約內文修改視窗.ShowDialog() : LB509.Text = PA : BL1 = False : NU5 = 0
  6007. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB509.Location.Y : LB509.Location = New Drawing.Point(syy1, sxx)
  6008. sxx = LB510.Location.Y : LB510.Location = New Drawing.Point(syy2, sxx) : sxx = LB511.Location.Y : LB511.Location = New Drawing.Point(syy2, sxx) : End If
  6009. End Sub
  6010. '-----------------------------------------------------------------------------------------------------------------
  6011. Private Sub LB510_移動()
  6012. If 翻頁_nud.Value = 11 Or 自動移動 = True Then
  6013. Dim sx, sxx As Integer : sx = LB510.Size.Height : sxx = LB510.Location.Y : NU4 = LB511.Location.X : LB511.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6014. End Sub
  6015. Private Sub LB510_Click(sender As Object, e As EventArgs) Handles LB510.Click
  6016. PA = LB510.Text : 合約內文修改視窗.ShowDialog() : LB510.Text = PA : LB510_移動()
  6017. End Sub
  6018. Private Sub LB510_LocationChanged(sender As Object, e As EventArgs) Handles LB510.LocationChanged
  6019. LB510_移動()
  6020. End Sub
  6021. Private Sub LB510_TextChanged(sender As Object, e As EventArgs) Handles LB510.TextChanged
  6022. LB510_移動()
  6023. End Sub
  6024. '-----------------------------------------------------------------------------------------------------------------
  6025. Private Sub LB511_移動()
  6026. If 翻頁_nud.Value = 11 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB511.Size.Height : sxx = LB511.Location.Y : NU3 = LB512.Location.X : NU4 = LB513.Location.X
  6027. LB512.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB513.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6028. End Sub
  6029. Private Sub LB511_Click(sender As Object, e As EventArgs) Handles LB511.Click
  6030. PA = LB511.Text : 合約內文修改視窗.ShowDialog() : LB511.Text = PA : LB511_移動()
  6031. End Sub
  6032. Private Sub LB511_LocationChanged(sender As Object, e As EventArgs) Handles LB511.LocationChanged
  6033. LB511_移動()
  6034. End Sub
  6035. Private Sub LB511_TextChanged(sender As Object, e As EventArgs) Handles LB511.TextChanged
  6036. LB511_移動()
  6037. End Sub
  6038. '-----------------------------------------------------------------------------------------------------------------
  6039. Private Sub LB512_Click(sender As Object, e As EventArgs) Handles LB512.Click
  6040. If 翻頁_nud.Value = 11 Or 自動移動 = True Then
  6041. NU5 = LB512.Location.X : BL1 = True : PA = LB512.Text : 合約內文修改視窗.ShowDialog() : LB512.Text = PA : BL1 = False : NU5 = 0
  6042. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB512.Location.Y : LB512.Location = New Drawing.Point(syy1, sxx)
  6043. sxx = LB513.Location.Y : LB513.Location = New Drawing.Point(syy2, sxx) : sxx = LB514.Location.Y : LB514.Location = New Drawing.Point(syy2, sxx) : End If
  6044. End Sub
  6045. '-----------------------------------------------------------------------------------------------------------------
  6046. Private Sub LB513_移動()
  6047. If 翻頁_nud.Value = 11 Or 自動移動 = True Then
  6048. Dim sx, sxx As Integer : sx = LB513.Size.Height : sxx = LB513.Location.Y : NU4 = LB514.Location.X : LB514.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6049. End Sub
  6050. Private Sub LB513_Click(sender As Object, e As EventArgs) Handles LB513.Click
  6051. PA = LB513.Text : 合約內文修改視窗.ShowDialog() : LB513.Text = PA : LB513_移動()
  6052. End Sub
  6053. Private Sub LB513_LocationChanged(sender As Object, e As EventArgs) Handles LB513.LocationChanged
  6054. LB513_移動()
  6055. End Sub
  6056. Private Sub LB513_TextChanged(sender As Object, e As EventArgs) Handles LB513.TextChanged
  6057. LB513_移動()
  6058. End Sub
  6059. '-----------------------------------------------------------------------------------------------------------------
  6060. Private Sub LB514_移動()
  6061. If 翻頁_nud.Value = 11 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB514.Size.Height : sxx = LB514.Location.Y : NU3 = LB515.Location.X : NU4 = LB516.Location.X
  6062. LB515.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB516.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6063. End Sub
  6064. Private Sub LB514_Click(sender As Object, e As EventArgs) Handles LB514.Click
  6065. PA = LB514.Text : 合約內文修改視窗.ShowDialog() : LB514.Text = PA : LB514_移動()
  6066. End Sub
  6067. Private Sub LB514_LocationChanged(sender As Object, e As EventArgs) Handles LB514.LocationChanged
  6068. LB514_移動()
  6069. End Sub
  6070. Private Sub LB514_TextChanged(sender As Object, e As EventArgs) Handles LB514.TextChanged
  6071. LB514_移動()
  6072. End Sub
  6073. '-----------------------------------------------------------------------------------------------------------------
  6074. Private Sub LB515_Click(sender As Object, e As EventArgs) Handles LB515.Click
  6075. If 翻頁_nud.Value = 11 Or 自動移動 = True Then
  6076. NU5 = LB515.Location.X : BL1 = True : PA = LB515.Text : 合約內文修改視窗.ShowDialog() : LB515.Text = PA : BL1 = False : NU5 = 0
  6077. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB515.Location.Y : LB515.Location = New Drawing.Point(syy1, sxx)
  6078. sxx = LB516.Location.Y : LB516.Location = New Drawing.Point(syy2, sxx) : sxx = LB517.Location.Y : LB517.Location = New Drawing.Point(syy2, sxx) : End If
  6079. End Sub
  6080. '-----------------------------------------------------------------------------------------------------------------
  6081. Private Sub LB516_移動()
  6082. If 翻頁_nud.Value = 11 Or 自動移動 = True Then
  6083. Dim sx, sxx As Integer : sx = LB516.Size.Height : sxx = LB516.Location.Y : NU4 = LB517.Location.X : LB517.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6084. End Sub
  6085. Private Sub LB516_Click(sender As Object, e As EventArgs) Handles LB516.Click
  6086. PA = LB516.Text : 合約內文修改視窗.ShowDialog() : LB516.Text = PA : LB516_移動()
  6087. End Sub
  6088. Private Sub LB516_LocationChanged(sender As Object, e As EventArgs) Handles LB516.LocationChanged
  6089. LB516_移動()
  6090. End Sub
  6091. Private Sub LB516_TextChanged(sender As Object, e As EventArgs) Handles LB516.TextChanged
  6092. LB516_移動()
  6093. End Sub
  6094. '-----------------------------------------------------------------------------------------------------------------
  6095. Private Sub LB517_移動()
  6096. If 翻頁_nud.Value = 11 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB517.Size.Height : sxx = LB517.Location.Y : NU3 = LB518.Location.X : NU4 = LB519.Location.X
  6097. LB518.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB519.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6098. End Sub
  6099. Private Sub LB517_Click(sender As Object, e As EventArgs) Handles LB517.Click
  6100. PA = LB517.Text : 合約內文修改視窗.ShowDialog() : LB517.Text = PA : LB517_移動()
  6101. End Sub
  6102. Private Sub LB517_LocationChanged(sender As Object, e As EventArgs) Handles LB517.LocationChanged
  6103. LB517_移動()
  6104. End Sub
  6105. Private Sub LB517_TextChanged(sender As Object, e As EventArgs) Handles LB517.TextChanged
  6106. LB517_移動()
  6107. End Sub
  6108. '-----------------------------------------------------------------------------------------------------------------
  6109. Private Sub LB518_Click(sender As Object, e As EventArgs) Handles LB518.Click
  6110. If 翻頁_nud.Value = 11 Or 自動移動 = True Then
  6111. NU5 = LB518.Location.X : BL1 = True : PA = LB518.Text : 合約內文修改視窗.ShowDialog() : LB518.Text = PA : BL1 = False : NU5 = 0
  6112. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB518.Location.Y : LB518.Location = New Drawing.Point(syy1, sxx)
  6113. sxx = LB519.Location.Y : LB519.Location = New Drawing.Point(syy2, sxx) : sxx = LB520.Location.Y : LB520.Location = New Drawing.Point(syy2, sxx) : End If
  6114. End Sub
  6115. '-----------------------------------------------------------------------------------------------------------------
  6116. Private Sub LB519_移動()
  6117. If 翻頁_nud.Value = 11 Or 自動移動 = True Then
  6118. Dim sx, sxx As Integer : sx = LB519.Size.Height : sxx = LB519.Location.Y : NU4 = LB520.Location.X : LB520.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6119. End Sub
  6120. Private Sub LB519_Click(sender As Object, e As EventArgs) Handles LB519.Click
  6121. PA = LB519.Text : 合約內文修改視窗.ShowDialog() : LB519.Text = PA : LB519_移動()
  6122. End Sub
  6123. Private Sub LB519_LocationChanged(sender As Object, e As EventArgs) Handles LB519.LocationChanged
  6124. LB519_移動()
  6125. End Sub
  6126. Private Sub LB519_TextChanged(sender As Object, e As EventArgs) Handles LB519.TextChanged
  6127. LB519_移動()
  6128. End Sub
  6129. '-----------------------------------------------------------------------------------------------------------------
  6130. Private Sub LB520_移動()
  6131. If 翻頁_nud.Value = 11 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB520.Size.Height : sxx = LB520.Location.Y : NU3 = LB521.Location.X : NU4 = LB522.Location.X
  6132. LB521.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB522.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6133. End Sub
  6134. Private Sub LB520_Click(sender As Object, e As EventArgs) Handles LB520.Click
  6135. PA = LB520.Text : 合約內文修改視窗.ShowDialog() : LB520.Text = PA : LB520_移動()
  6136. End Sub
  6137. Private Sub LB520_LocationChanged(sender As Object, e As EventArgs) Handles LB520.LocationChanged
  6138. LB520_移動()
  6139. End Sub
  6140. Private Sub LB520_TextChanged(sender As Object, e As EventArgs) Handles LB520.TextChanged
  6141. LB520_移動()
  6142. End Sub
  6143. '-----------------------------------------------------------------------------------------------------------------
  6144. Private Sub LB521_Click(sender As Object, e As EventArgs) Handles LB521.Click
  6145. If 翻頁_nud.Value = 11 Or 自動移動 = True Then
  6146. NU5 = LB521.Location.X : BL1 = True : PA = LB521.Text : 合約內文修改視窗.ShowDialog() : LB521.Text = PA : BL1 = False : NU5 = 0
  6147. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB521.Location.Y : LB521.Location = New Drawing.Point(syy1, sxx)
  6148. sxx = LB522.Location.Y : LB522.Location = New Drawing.Point(syy2, sxx) : sxx = LB523.Location.Y : LB523.Location = New Drawing.Point(syy2, sxx) : End If
  6149. End Sub
  6150. '-----------------------------------------------------------------------------------------------------------------
  6151. Private Sub LB522_移動()
  6152. If 翻頁_nud.Value = 11 Or 自動移動 = True Then
  6153. Dim sx, sxx As Integer : sx = LB522.Size.Height : sxx = LB522.Location.Y : NU4 = LB523.Location.X : LB523.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6154. End Sub
  6155. Private Sub LB522_Click(sender As Object, e As EventArgs) Handles LB522.Click
  6156. PA = LB522.Text : 合約內文修改視窗.ShowDialog() : LB522.Text = PA : LB522_移動()
  6157. End Sub
  6158. Private Sub LB522_LocationChanged(sender As Object, e As EventArgs) Handles LB522.LocationChanged
  6159. LB522_移動()
  6160. End Sub
  6161. Private Sub LB522_TextChanged(sender As Object, e As EventArgs) Handles LB522.TextChanged
  6162. LB522_移動()
  6163. End Sub
  6164. '-----------------------------------------------------------------------------------------------------------------
  6165. Private Sub LB523_Click(sender As Object, e As EventArgs) Handles LB523.Click
  6166. PA = LB523.Text : 合約內文修改視窗.ShowDialog() : LB523.Text = PA
  6167. End Sub
  6168. '---------------------------第10頁----------------------------------------------------------------------------------------------------------------------------------------------
  6169. Private Sub LB524_Click(sender As Object, e As EventArgs) Handles LB524.Click
  6170. PA = LB524.Text : 合約內文修改視窗.ShowDialog() : LB524.Text = PA
  6171. End Sub
  6172. Private Sub LB525_Click(sender As Object, e As EventArgs) Handles LB525.Click
  6173. PA = LB525.Text : 合約內文修改視窗.ShowDialog() : LB525.Text = PA
  6174. End Sub
  6175. Private Sub LB526_Click(sender As Object, e As EventArgs) Handles LB526.Click
  6176. PA = LB526.Text : 合約內文修改視窗.ShowDialog() : LB526.Text = PA
  6177. End Sub
  6178. '-----------------------------------------------------------------------------------------------------------------
  6179. Private Sub LB527_Click(sender As Object, e As EventArgs) Handles LB527.Click
  6180. If 翻頁_nud.Value = 10 Or 自動移動 = True Then
  6181. NU5 = LB527.Location.X : BL1 = True : PA = LB527.Text : 合約內文修改視窗.ShowDialog() : LB527.Text = PA : BL1 = False : NU5 = 0
  6182. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB527.Location.Y : LB527.Location = New Drawing.Point(syy1, sxx)
  6183. sxx = LB115.Location.Y : LB115.Location = New Drawing.Point(syy2, sxx) : sxx = LB116.Location.Y : LB116.Location = New Drawing.Point(syy2, sxx) : End If
  6184. End Sub
  6185. '-----------------------------------------------------------------------------------------------------------------
  6186. Private Sub LB115_移動()
  6187. If 翻頁_nud.Value = 10 Or 自動移動 = True Then
  6188. Dim sx, sxx As Integer : sx = LB115.Size.Height : sxx = LB115.Location.Y : NU4 = LB116.Location.X : LB116.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6189. End Sub
  6190. Private Sub LB115_Click(sender As Object, e As EventArgs) Handles LB115.Click
  6191. PA = LB115.Text : 合約內文修改視窗.ShowDialog() : LB115.Text = PA : LB115_移動()
  6192. End Sub
  6193. Private Sub LB115_LocationChanged(sender As Object, e As EventArgs) Handles LB115.LocationChanged
  6194. LB115_移動()
  6195. End Sub
  6196. Private Sub LB115_TextChanged(sender As Object, e As EventArgs) Handles LB115.TextChanged
  6197. LB115_移動()
  6198. End Sub
  6199. '-----------------------------------------------------------------------------------------------------------------
  6200. Private Sub LB116_移動()
  6201. If 翻頁_nud.Value = 10 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB116.Size.Height : sxx = LB116.Location.Y : NU3 = LB528.Location.X : NU4 = LB529.Location.X
  6202. LB528.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB529.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6203. End Sub
  6204. Private Sub LB116_Click(sender As Object, e As EventArgs) Handles LB116.Click
  6205. PA = LB116.Text : 合約內文修改視窗.ShowDialog() : LB116.Text = PA : LB116_移動()
  6206. End Sub
  6207. Private Sub LB116_LocationChanged(sender As Object, e As EventArgs) Handles LB116.LocationChanged
  6208. LB116_移動()
  6209. End Sub
  6210. Private Sub LB116_TextChanged(sender As Object, e As EventArgs) Handles LB116.TextChanged
  6211. LB116_移動()
  6212. End Sub
  6213. '-----------------------------------------------------------------------------------------------------------------
  6214. Private Sub LB528_Click(sender As Object, e As EventArgs) Handles LB528.Click
  6215. If 翻頁_nud.Value = 10 Or 自動移動 = True Then
  6216. NU5 = LB528.Location.X : BL1 = True : PA = LB528.Text : 合約內文修改視窗.ShowDialog() : LB528.Text = PA : BL1 = False : NU5 = 0
  6217. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB528.Location.Y : LB528.Location = New Drawing.Point(syy1, sxx)
  6218. sxx = LB529.Location.Y : LB529.Location = New Drawing.Point(syy2, sxx) : sxx = LB530.Location.Y : LB530.Location = New Drawing.Point(syy2, sxx) : End If
  6219. End Sub
  6220. '-----------------------------------------------------------------------------------------------------------------
  6221. Private Sub LB529_移動()
  6222. If 翻頁_nud.Value = 10 Or 自動移動 = True Then
  6223. Dim sx, sxx As Integer : sx = LB529.Size.Height : sxx = LB529.Location.Y : NU4 = LB530.Location.X : LB530.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6224. End Sub
  6225. Private Sub LB529_Click(sender As Object, e As EventArgs) Handles LB529.Click
  6226. PA = LB529.Text : 合約內文修改視窗.ShowDialog() : LB529.Text = PA : LB529_移動()
  6227. End Sub
  6228. Private Sub LB529_LocationChanged(sender As Object, e As EventArgs) Handles LB529.LocationChanged
  6229. LB529_移動()
  6230. End Sub
  6231. Private Sub LB529_TextChanged(sender As Object, e As EventArgs) Handles LB529.TextChanged
  6232. LB529_移動()
  6233. End Sub
  6234. '-----------------------------------------------------------------------------------------------------------------
  6235. Private Sub LB530_移動()
  6236. If 翻頁_nud.Value = 10 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB530.Size.Height : sxx = LB530.Location.Y : NU3 = LB531.Location.X : NU4 = LB532.Location.X
  6237. LB531.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB532.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6238. End Sub
  6239. Private Sub LB530_Click(sender As Object, e As EventArgs) Handles LB530.Click
  6240. PA = LB530.Text : 合約內文修改視窗.ShowDialog() : LB530.Text = PA : LB530_移動()
  6241. End Sub
  6242. Private Sub LB530_LocationChanged(sender As Object, e As EventArgs) Handles LB530.LocationChanged
  6243. LB530_移動()
  6244. End Sub
  6245. Private Sub LB530_TextChanged(sender As Object, e As EventArgs) Handles LB530.TextChanged
  6246. LB530_移動()
  6247. End Sub
  6248. '-----------------------------------------------------------------------------------------------------------------
  6249. Private Sub LB531_Click(sender As Object, e As EventArgs) Handles LB531.Click
  6250. If 翻頁_nud.Value = 10 Or 自動移動 = True Then
  6251. NU5 = LB531.Location.X : BL1 = True : PA = LB531.Text : 合約內文修改視窗.ShowDialog() : LB531.Text = PA : BL1 = False : NU5 = 0
  6252. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB531.Location.Y : LB531.Location = New Drawing.Point(syy1, sxx)
  6253. sxx = LB532.Location.Y : LB532.Location = New Drawing.Point(syy2, sxx) : sxx = LB533.Location.Y : LB533.Location = New Drawing.Point(syy2, sxx) : End If
  6254. End Sub
  6255. '-----------------------------------------------------------------------------------------------------------------
  6256. Private Sub LB532_移動()
  6257. If 翻頁_nud.Value = 10 Or 自動移動 = True Then
  6258. Dim sx, sxx As Integer : sx = LB532.Size.Height : sxx = LB532.Location.Y : NU4 = LB533.Location.X : LB533.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6259. End Sub
  6260. Private Sub LB532_Click(sender As Object, e As EventArgs) Handles LB532.Click
  6261. PA = LB532.Text : 合約內文修改視窗.ShowDialog() : LB532.Text = PA : LB532_移動()
  6262. End Sub
  6263. Private Sub LB532_LocationChanged(sender As Object, e As EventArgs) Handles LB532.LocationChanged
  6264. LB532_移動()
  6265. End Sub
  6266. Private Sub LB532_TextChanged(sender As Object, e As EventArgs) Handles LB532.TextChanged
  6267. LB532_移動()
  6268. End Sub
  6269. '-----------------------------------------------------------------------------------------------------------------
  6270. Private Sub LB533_移動()
  6271. If 翻頁_nud.Value = 10 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB533.Size.Height : sxx = LB533.Location.Y : NU3 = LB534.Location.X : NU4 = LB535.Location.X
  6272. LB534.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB535.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6273. End Sub
  6274. Private Sub LB533_Click(sender As Object, e As EventArgs) Handles LB533.Click
  6275. PA = LB533.Text : 合約內文修改視窗.ShowDialog() : LB533.Text = PA : LB533_移動()
  6276. End Sub
  6277. Private Sub LB533_LocationChanged(sender As Object, e As EventArgs) Handles LB533.LocationChanged
  6278. LB533_移動()
  6279. End Sub
  6280. Private Sub LB533_TextChanged(sender As Object, e As EventArgs) Handles LB533.TextChanged
  6281. LB533_移動()
  6282. End Sub
  6283. '-----------------------------------------------------------------------------------------------------------------
  6284. Private Sub LB534_Click(sender As Object, e As EventArgs) Handles LB534.Click
  6285. If 翻頁_nud.Value = 10 Or 自動移動 = True Then
  6286. NU5 = LB534.Location.X : BL1 = True : PA = LB534.Text : 合約內文修改視窗.ShowDialog() : LB534.Text = PA : BL1 = False : NU5 = 0
  6287. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB534.Location.Y : LB534.Location = New Drawing.Point(syy1, sxx)
  6288. sxx = LB535.Location.Y : LB535.Location = New Drawing.Point(syy2, sxx) : sxx = LB536.Location.Y : LB536.Location = New Drawing.Point(syy2, sxx) : End If
  6289. End Sub
  6290. '-----------------------------------------------------------------------------------------------------------------
  6291. Private Sub LB535_移動()
  6292. If 翻頁_nud.Value = 10 Or 自動移動 = True Then
  6293. Dim sx, sxx As Integer : sx = LB535.Size.Height : sxx = LB535.Location.Y : NU4 = LB536.Location.X : LB536.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6294. End Sub
  6295. Private Sub LB535_Click(sender As Object, e As EventArgs) Handles LB535.Click
  6296. PA = LB535.Text : 合約內文修改視窗.ShowDialog() : LB535.Text = PA : LB535_移動()
  6297. End Sub
  6298. Private Sub LB535_LocationChanged(sender As Object, e As EventArgs) Handles LB535.LocationChanged
  6299. LB535_移動()
  6300. End Sub
  6301. Private Sub LB535_TextChanged(sender As Object, e As EventArgs) Handles LB535.TextChanged
  6302. LB535_移動()
  6303. End Sub
  6304. '-----------------------------------------------------------------------------------------------------------------
  6305. Private Sub LB536_移動()
  6306. If 翻頁_nud.Value = 10 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB536.Size.Height : sxx = LB536.Location.Y : NU3 = LB537.Location.X : NU4 = LB538.Location.X
  6307. LB537.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB538.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6308. End Sub
  6309. Private Sub LB536_Click(sender As Object, e As EventArgs) Handles LB536.Click
  6310. PA = LB536.Text : 合約內文修改視窗.ShowDialog() : LB536.Text = PA : LB536_移動()
  6311. End Sub
  6312. Private Sub LB536_LocationChanged(sender As Object, e As EventArgs) Handles LB536.LocationChanged
  6313. LB536_移動()
  6314. End Sub
  6315. Private Sub LB536_TextChanged(sender As Object, e As EventArgs) Handles LB536.TextChanged
  6316. LB536_移動()
  6317. End Sub
  6318. '-----------------------------------------------------------------------------------------------------------------
  6319. Private Sub LB537_Click(sender As Object, e As EventArgs) Handles LB537.Click
  6320. If 翻頁_nud.Value = 10 Or 自動移動 = True Then
  6321. NU5 = LB537.Location.X : BL1 = True : PA = LB537.Text : 合約內文修改視窗.ShowDialog() : LB537.Text = PA : BL1 = False : NU5 = 0
  6322. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB537.Location.Y : LB537.Location = New Drawing.Point(syy1, sxx)
  6323. sxx = LB538.Location.Y : LB538.Location = New Drawing.Point(syy2, sxx) : sxx = LB539.Location.Y : LB539.Location = New Drawing.Point(syy2, sxx) : End If
  6324. End Sub
  6325. '-----------------------------------------------------------------------------------------------------------------
  6326. Private Sub LB538_移動()
  6327. If 翻頁_nud.Value = 10 Or 自動移動 = True Then
  6328. Dim sx, sxx As Integer : sx = LB538.Size.Height : sxx = LB538.Location.Y : NU4 = LB539.Location.X : LB539.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6329. End Sub
  6330. Private Sub LB538_Click(sender As Object, e As EventArgs) Handles LB538.Click
  6331. PA = LB538.Text : 合約內文修改視窗.ShowDialog() : LB538.Text = PA : LB538_移動()
  6332. End Sub
  6333. Private Sub LB538_LocationChanged(sender As Object, e As EventArgs) Handles LB538.LocationChanged
  6334. LB538_移動()
  6335. End Sub
  6336. Private Sub LB538_TextChanged(sender As Object, e As EventArgs) Handles LB538.TextChanged
  6337. LB538_移動()
  6338. End Sub
  6339. '-----------------------------------------------------------------------------------------------------------------
  6340. Private Sub LB539_移動()
  6341. If 翻頁_nud.Value = 10 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB539.Size.Height : sxx = LB539.Location.Y : NU3 = LB540.Location.X : NU4 = LB541.Location.X
  6342. LB540.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB541.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6343. End Sub
  6344. Private Sub LB539_Click(sender As Object, e As EventArgs) Handles LB539.Click
  6345. PA = LB539.Text : 合約內文修改視窗.ShowDialog() : LB539.Text = PA : LB539_移動()
  6346. End Sub
  6347. Private Sub LB539_LocationChanged(sender As Object, e As EventArgs) Handles LB539.LocationChanged
  6348. LB539_移動()
  6349. End Sub
  6350. Private Sub LB539_TextChanged(sender As Object, e As EventArgs) Handles LB539.TextChanged
  6351. LB539_移動()
  6352. End Sub
  6353. '-----------------------------------------------------------------------------------------------------------------
  6354. Private Sub LB540_Click(sender As Object, e As EventArgs) Handles LB540.Click
  6355. If 翻頁_nud.Value = 10 Or 自動移動 = True Then
  6356. NU5 = LB540.Location.X : BL1 = True : PA = LB540.Text : 合約內文修改視窗.ShowDialog() : LB540.Text = PA : BL1 = False : NU5 = 0
  6357. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB540.Location.Y : LB540.Location = New Drawing.Point(syy1, sxx)
  6358. sxx = LB541.Location.Y : LB541.Location = New Drawing.Point(syy2, sxx) : sxx = LB542.Location.Y : LB542.Location = New Drawing.Point(syy2, sxx) : End If
  6359. End Sub
  6360. '-----------------------------------------------------------------------------------------------------------------
  6361. Private Sub LB541_移動()
  6362. If 翻頁_nud.Value = 10 Or 自動移動 = True Then
  6363. Dim sx, sxx As Integer : sx = LB541.Size.Height : sxx = LB541.Location.Y : NU4 = LB542.Location.X : LB542.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6364. End Sub
  6365. Private Sub LB541_Click(sender As Object, e As EventArgs) Handles LB541.Click
  6366. PA = LB541.Text : 合約內文修改視窗.ShowDialog() : LB541.Text = PA : LB541_移動()
  6367. End Sub
  6368. Private Sub LB541_LocationChanged(sender As Object, e As EventArgs) Handles LB541.LocationChanged
  6369. LB541_移動()
  6370. End Sub
  6371. Private Sub LB541_TextChanged(sender As Object, e As EventArgs) Handles LB541.TextChanged
  6372. LB541_移動()
  6373. End Sub
  6374. '-----------------------------------------------------------------------------------------------------------------
  6375. Private Sub LB542_移動()
  6376. If 翻頁_nud.Value = 10 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB542.Size.Height : sxx = LB542.Location.Y : NU3 = LB543.Location.X : NU4 = LB544.Location.X
  6377. LB543.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB544.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6378. End Sub
  6379. Private Sub LB542_Click(sender As Object, e As EventArgs) Handles LB542.Click
  6380. PA = LB542.Text : 合約內文修改視窗.ShowDialog() : LB542.Text = PA : LB542_移動()
  6381. End Sub
  6382. Private Sub LB542_LocationChanged(sender As Object, e As EventArgs) Handles LB542.LocationChanged
  6383. LB542_移動()
  6384. End Sub
  6385. Private Sub LB542_TextChanged(sender As Object, e As EventArgs) Handles LB542.TextChanged
  6386. LB542_移動()
  6387. End Sub
  6388. '-----------------------------------------------------------------------------------------------------------------
  6389. Private Sub LB543_Click(sender As Object, e As EventArgs) Handles LB543.Click
  6390. If 翻頁_nud.Value = 10 Or 自動移動 = True Then
  6391. NU5 = LB543.Location.X : BL1 = True : PA = LB543.Text : 合約內文修改視窗.ShowDialog() : LB543.Text = PA : BL1 = False : NU5 = 0
  6392. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB543.Location.Y : LB543.Location = New Drawing.Point(syy1, sxx)
  6393. sxx = LB544.Location.Y : LB544.Location = New Drawing.Point(syy2, sxx) : sxx = LB545.Location.Y : LB545.Location = New Drawing.Point(syy2, sxx) : End If
  6394. End Sub
  6395. '-----------------------------------------------------------------------------------------------------------------
  6396. Private Sub LB544_移動()
  6397. If 翻頁_nud.Value = 10 Or 自動移動 = True Then
  6398. Dim sx, sxx As Integer : sx = LB544.Size.Height : sxx = LB544.Location.Y : NU4 = LB545.Location.X : LB545.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6399. End Sub
  6400. Private Sub LB544_Click(sender As Object, e As EventArgs) Handles LB544.Click
  6401. PA = LB544.Text : 合約內文修改視窗.ShowDialog() : LB544.Text = PA : LB544_移動()
  6402. End Sub
  6403. Private Sub LB544_LocationChanged(sender As Object, e As EventArgs) Handles LB544.LocationChanged
  6404. LB544_移動()
  6405. End Sub
  6406. Private Sub LB544_TextChanged(sender As Object, e As EventArgs) Handles LB544.TextChanged
  6407. LB544_移動()
  6408. End Sub
  6409. '-----------------------------------------------------------------------------------------------------------------
  6410. Private Sub LB545_移動()
  6411. If 翻頁_nud.Value = 10 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB545.Size.Height : sxx = LB545.Location.Y : NU3 = LB546.Location.X : NU4 = LB547.Location.X
  6412. LB546.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB547.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6413. End Sub
  6414. Private Sub LB545_Click(sender As Object, e As EventArgs) Handles LB545.Click
  6415. PA = LB545.Text : 合約內文修改視窗.ShowDialog() : LB545.Text = PA : LB545_移動()
  6416. End Sub
  6417. Private Sub LB545_LocationChanged(sender As Object, e As EventArgs) Handles LB545.LocationChanged
  6418. LB545_移動()
  6419. End Sub
  6420. Private Sub LB545_TextChanged(sender As Object, e As EventArgs) Handles LB545.TextChanged
  6421. LB545_移動()
  6422. End Sub
  6423. '-----------------------------------------------------------------------------------------------------------------
  6424. Private Sub LB546_Click(sender As Object, e As EventArgs) Handles LB546.Click
  6425. If 翻頁_nud.Value = 10 Or 自動移動 = True Then
  6426. NU5 = LB546.Location.X : BL1 = True : PA = LB546.Text : 合約內文修改視窗.ShowDialog() : LB546.Text = PA : BL1 = False : NU5 = 0
  6427. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB546.Location.Y : LB546.Location = New Drawing.Point(syy1, sxx)
  6428. sxx = LB547.Location.Y : LB547.Location = New Drawing.Point(syy2, sxx) : sxx = LB548.Location.Y : LB548.Location = New Drawing.Point(syy2, sxx) : End If
  6429. End Sub
  6430. '-----------------------------------------------------------------------------------------------------------------
  6431. Private Sub LB547_移動()
  6432. If 翻頁_nud.Value = 10 Or 自動移動 = True Then
  6433. Dim sx, sxx As Integer : sx = LB547.Size.Height : sxx = LB547.Location.Y : NU4 = LB548.Location.X : LB548.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6434. End Sub
  6435. Private Sub LB547_Click(sender As Object, e As EventArgs) Handles LB547.Click
  6436. PA = LB547.Text : 合約內文修改視窗.ShowDialog() : LB547.Text = PA : LB547_移動()
  6437. End Sub
  6438. Private Sub LB547_LocationChanged(sender As Object, e As EventArgs) Handles LB547.LocationChanged
  6439. LB547_移動()
  6440. End Sub
  6441. Private Sub LB547_TextChanged(sender As Object, e As EventArgs) Handles LB547.TextChanged
  6442. LB547_移動()
  6443. End Sub
  6444. '-----------------------------------------------------------------------------------------------------------------
  6445. Private Sub LB548_移動()
  6446. If 翻頁_nud.Value = 10 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB548.Size.Height : sxx = LB548.Location.Y : NU3 = LB549.Location.X : NU4 = LB550.Location.X
  6447. LB549.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB550.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6448. End Sub
  6449. Private Sub LB548_Click(sender As Object, e As EventArgs) Handles LB548.Click
  6450. PA = LB548.Text : 合約內文修改視窗.ShowDialog() : LB548.Text = PA : LB548_移動()
  6451. End Sub
  6452. Private Sub LB548_LocationChanged(sender As Object, e As EventArgs) Handles LB548.LocationChanged
  6453. LB548_移動()
  6454. End Sub
  6455. Private Sub LB548_TextChanged(sender As Object, e As EventArgs) Handles LB548.TextChanged
  6456. LB548_移動()
  6457. End Sub
  6458. '-----------------------------------------------------------------------------------------------------------------
  6459. Private Sub LB549_Click(sender As Object, e As EventArgs) Handles LB549.Click
  6460. If 翻頁_nud.Value = 10 Or 自動移動 = True Then
  6461. NU5 = LB549.Location.X : BL1 = True : PA = LB549.Text : 合約內文修改視窗.ShowDialog() : LB549.Text = PA : BL1 = False : NU5 = 0
  6462. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB549.Location.Y : LB549.Location = New Drawing.Point(syy1, sxx)
  6463. sxx = LB550.Location.Y : LB550.Location = New Drawing.Point(syy2, sxx) : sxx = LB551.Location.Y : LB551.Location = New Drawing.Point(syy2, sxx) : End If
  6464. End Sub
  6465. '-----------------------------------------------------------------------------------------------------------------
  6466. Private Sub LB550_移動()
  6467. If 翻頁_nud.Value = 10 Or 自動移動 = True Then
  6468. Dim sx, sxx As Integer : sx = LB550.Size.Height : sxx = LB550.Location.Y : NU4 = LB551.Location.X : LB551.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6469. End Sub
  6470. Private Sub LB550_Click(sender As Object, e As EventArgs) Handles LB550.Click
  6471. PA = LB550.Text : 合約內文修改視窗.ShowDialog() : LB550.Text = PA : LB550_移動()
  6472. End Sub
  6473. Private Sub LB550_LocationChanged(sender As Object, e As EventArgs) Handles LB550.LocationChanged
  6474. LB550_移動()
  6475. End Sub
  6476. Private Sub LB550_TextChanged(sender As Object, e As EventArgs) Handles LB550.TextChanged
  6477. LB550_移動()
  6478. End Sub
  6479. '-----------------------------------------------------------------------------------------------------------------
  6480. Private Sub LB551_移動()
  6481. If 翻頁_nud.Value = 10 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB551.Size.Height : sxx = LB551.Location.Y : NU3 = LB552.Location.X : NU4 = LB553.Location.X
  6482. LB552.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB553.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6483. End Sub
  6484. Private Sub LB551_Click(sender As Object, e As EventArgs) Handles LB551.Click
  6485. PA = LB551.Text : 合約內文修改視窗.ShowDialog() : LB551.Text = PA : LB551_移動()
  6486. End Sub
  6487. Private Sub LB551_LocationChanged(sender As Object, e As EventArgs) Handles LB551.LocationChanged
  6488. LB551_移動()
  6489. End Sub
  6490. Private Sub LB551_TextChanged(sender As Object, e As EventArgs) Handles LB551.TextChanged
  6491. LB551_移動()
  6492. End Sub
  6493. '-----------------------------------------------------------------------------------------------------------------
  6494. Private Sub LB552_Click(sender As Object, e As EventArgs) Handles LB552.Click
  6495. If 翻頁_nud.Value = 10 Or 自動移動 = True Then
  6496. NU5 = LB552.Location.X : BL1 = True : PA = LB552.Text : 合約內文修改視窗.ShowDialog() : LB552.Text = PA : BL1 = False : NU5 = 0
  6497. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB552.Location.Y : LB552.Location = New Drawing.Point(syy1, sxx)
  6498. sxx = LB553.Location.Y : LB553.Location = New Drawing.Point(syy2, sxx) : sxx = LB554.Location.Y : LB554.Location = New Drawing.Point(syy2, sxx) : End If
  6499. End Sub
  6500. '-----------------------------------------------------------------------------------------------------------------
  6501. Private Sub LB553_移動()
  6502. If 翻頁_nud.Value = 10 Or 自動移動 = True Then
  6503. Dim sx, sxx As Integer : sx = LB553.Size.Height : sxx = LB553.Location.Y : NU4 = LB554.Location.X : LB554.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6504. End Sub
  6505. Private Sub LB553_Click(sender As Object, e As EventArgs) Handles LB553.Click
  6506. PA = LB553.Text : 合約內文修改視窗.ShowDialog() : LB553.Text = PA : LB553_移動()
  6507. End Sub
  6508. Private Sub LB553_LocationChanged(sender As Object, e As EventArgs) Handles LB553.LocationChanged
  6509. LB553_移動()
  6510. End Sub
  6511. Private Sub LB553_TextChanged(sender As Object, e As EventArgs) Handles LB553.TextChanged
  6512. LB553_移動()
  6513. End Sub
  6514. '-----------------------------------------------------------------------------------------------------------------
  6515. Private Sub LB554_移動()
  6516. If 翻頁_nud.Value = 10 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB554.Size.Height : sxx = LB554.Location.Y : NU3 = LB555.Location.X : NU4 = LB556.Location.X
  6517. LB555.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB556.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6518. End Sub
  6519. Private Sub LB554_Click(sender As Object, e As EventArgs) Handles LB554.Click
  6520. PA = LB554.Text : 合約內文修改視窗.ShowDialog() : LB554.Text = PA : LB554_移動()
  6521. End Sub
  6522. Private Sub LB554_LocationChanged(sender As Object, e As EventArgs) Handles LB554.LocationChanged
  6523. LB554_移動()
  6524. End Sub
  6525. Private Sub LB554_TextChanged(sender As Object, e As EventArgs) Handles LB554.TextChanged
  6526. LB554_移動()
  6527. End Sub
  6528. '-----------------------------------------------------------------------------------------------------------------
  6529. Private Sub LB555_Click(sender As Object, e As EventArgs) Handles LB555.Click
  6530. If 翻頁_nud.Value = 10 Or 自動移動 = True Then
  6531. NU5 = LB555.Location.X : BL1 = True : PA = LB555.Text : 合約內文修改視窗.ShowDialog() : LB555.Text = PA : BL1 = False : NU5 = 0
  6532. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB555.Location.Y : LB555.Location = New Drawing.Point(syy1, sxx)
  6533. sxx = LB556.Location.Y : LB556.Location = New Drawing.Point(syy2, sxx) : sxx = LB557.Location.Y : LB557.Location = New Drawing.Point(syy2, sxx) : End If
  6534. End Sub
  6535. '-----------------------------------------------------------------------------------------------------------------
  6536. Private Sub LB556_移動()
  6537. If 翻頁_nud.Value = 10 Or 自動移動 = True Then
  6538. Dim sx, sxx As Integer : sx = LB556.Size.Height : sxx = LB556.Location.Y : NU4 = LB557.Location.X : LB557.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6539. End Sub
  6540. Private Sub LB556_Click(sender As Object, e As EventArgs) Handles LB556.Click
  6541. PA = LB556.Text : 合約內文修改視窗.ShowDialog() : LB556.Text = PA : LB556_移動()
  6542. End Sub
  6543. Private Sub LB556_LocationChanged(sender As Object, e As EventArgs) Handles LB556.LocationChanged
  6544. LB556_移動()
  6545. End Sub
  6546. Private Sub LB556_TextChanged(sender As Object, e As EventArgs) Handles LB556.TextChanged
  6547. LB556_移動()
  6548. End Sub
  6549. '-----------------------------------------------------------------------------------------------------------------
  6550. Private Sub LB557_移動()
  6551. If 翻頁_nud.Value = 10 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB557.Size.Height : sxx = LB557.Location.Y : NU3 = LB558.Location.X : NU4 = LB559.Location.X
  6552. LB558.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB559.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6553. End Sub
  6554. Private Sub LB557_Click(sender As Object, e As EventArgs) Handles LB557.Click
  6555. PA = LB557.Text : 合約內文修改視窗.ShowDialog() : LB557.Text = PA : LB557_移動()
  6556. End Sub
  6557. Private Sub LB557_LocationChanged(sender As Object, e As EventArgs) Handles LB557.LocationChanged
  6558. LB557_移動()
  6559. End Sub
  6560. Private Sub LB557_TextChanged(sender As Object, e As EventArgs) Handles LB557.TextChanged
  6561. LB557_移動()
  6562. End Sub
  6563. '-----------------------------------------------------------------------------------------------------------------
  6564. Private Sub LB558_Click(sender As Object, e As EventArgs) Handles LB558.Click
  6565. If 翻頁_nud.Value = 10 Or 自動移動 = True Then
  6566. NU5 = LB558.Location.X : BL1 = True : PA = LB558.Text : 合約內文修改視窗.ShowDialog() : LB558.Text = PA : BL1 = False : NU5 = 0
  6567. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB558.Location.Y : LB558.Location = New Drawing.Point(syy1, sxx)
  6568. sxx = LB559.Location.Y : LB559.Location = New Drawing.Point(syy2, sxx) : sxx = LB560.Location.Y : LB560.Location = New Drawing.Point(syy2, sxx) : End If
  6569. End Sub
  6570. '-----------------------------------------------------------------------------------------------------------------
  6571. Private Sub LB559_移動()
  6572. If 翻頁_nud.Value = 10 Or 自動移動 = True Then
  6573. Dim sx, sxx As Integer : sx = LB559.Size.Height : sxx = LB559.Location.Y : NU4 = LB560.Location.X : LB560.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6574. End Sub
  6575. Private Sub LB559_Click(sender As Object, e As EventArgs) Handles LB559.Click
  6576. PA = LB559.Text : 合約內文修改視窗.ShowDialog() : LB559.Text = PA : LB559_移動()
  6577. End Sub
  6578. Private Sub LB559_LocationChanged(sender As Object, e As EventArgs) Handles LB559.LocationChanged
  6579. LB559_移動()
  6580. End Sub
  6581. Private Sub LB559_TextChanged(sender As Object, e As EventArgs) Handles LB559.TextChanged
  6582. LB559_移動()
  6583. End Sub
  6584. '-----------------------------------------------------------------------------------------------------------------
  6585. Private Sub LB560_移動()
  6586. If 翻頁_nud.Value = 10 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB560.Size.Height : sxx = LB560.Location.Y : NU3 = LB561.Location.X : NU4 = LB562.Location.X
  6587. LB561.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB562.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6588. End Sub
  6589. Private Sub LB560_Click(sender As Object, e As EventArgs) Handles LB560.Click
  6590. PA = LB560.Text : 合約內文修改視窗.ShowDialog() : LB560.Text = PA : LB560_移動()
  6591. End Sub
  6592. Private Sub LB560_LocationChanged(sender As Object, e As EventArgs) Handles LB560.LocationChanged
  6593. LB560_移動()
  6594. End Sub
  6595. Private Sub LB560_TextChanged(sender As Object, e As EventArgs) Handles LB560.TextChanged
  6596. LB560_移動()
  6597. End Sub
  6598. '-----------------------------------------------------------------------------------------------------------------
  6599. Private Sub LB561_Click(sender As Object, e As EventArgs) Handles LB561.Click
  6600. If 翻頁_nud.Value = 10 Or 自動移動 = True Then
  6601. NU5 = LB561.Location.X : BL1 = True : PA = LB561.Text : 合約內文修改視窗.ShowDialog() : LB561.Text = PA : BL1 = False : NU5 = 0
  6602. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB561.Location.Y : LB561.Location = New Drawing.Point(syy1, sxx)
  6603. sxx = LB562.Location.Y : LB562.Location = New Drawing.Point(syy2, sxx) : sxx = LB563.Location.Y : LB563.Location = New Drawing.Point(syy2, sxx) : End If
  6604. End Sub
  6605. '-----------------------------------------------------------------------------------------------------------------
  6606. Private Sub LB562_移動()
  6607. If 翻頁_nud.Value = 10 Or 自動移動 = True Then
  6608. Dim sx, sxx As Integer : sx = LB562.Size.Height : sxx = LB562.Location.Y : NU4 = LB563.Location.X : LB563.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6609. End Sub
  6610. Private Sub LB562_Click(sender As Object, e As EventArgs) Handles LB562.Click
  6611. PA = LB562.Text : 合約內文修改視窗.ShowDialog() : LB562.Text = PA : LB562_移動()
  6612. End Sub
  6613. Private Sub LB562_LocationChanged(sender As Object, e As EventArgs) Handles LB562.LocationChanged
  6614. LB562_移動()
  6615. End Sub
  6616. Private Sub LB562_TextChanged(sender As Object, e As EventArgs) Handles LB562.TextChanged
  6617. LB562_移動()
  6618. End Sub
  6619. '-----------------------------------------------------------------------------------------------------------------
  6620. Private Sub LB563_移動()
  6621. If 翻頁_nud.Value = 10 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB563.Size.Height : sxx = LB563.Location.Y : NU3 = LB564.Location.X : NU4 = LB565.Location.X
  6622. LB564.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB565.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6623. End Sub
  6624. Private Sub LB563_Click(sender As Object, e As EventArgs) Handles LB563.Click
  6625. PA = LB563.Text : 合約內文修改視窗.ShowDialog() : LB563.Text = PA : LB563_移動()
  6626. End Sub
  6627. Private Sub LB563_LocationChanged(sender As Object, e As EventArgs) Handles LB563.LocationChanged
  6628. LB563_移動()
  6629. End Sub
  6630. Private Sub LB563_TextChanged(sender As Object, e As EventArgs) Handles LB563.TextChanged
  6631. LB563_移動()
  6632. End Sub
  6633. '-----------------------------------------------------------------------------------------------------------------
  6634. Private Sub LB564_Click(sender As Object, e As EventArgs) Handles LB564.Click
  6635. If 翻頁_nud.Value = 10 Or 自動移動 = True Then
  6636. NU5 = LB564.Location.X : BL1 = True : PA = LB564.Text : 合約內文修改視窗.ShowDialog() : LB564.Text = PA : BL1 = False : NU5 = 0
  6637. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB564.Location.Y : LB564.Location = New Drawing.Point(syy1, sxx)
  6638. sxx = LB565.Location.Y : LB565.Location = New Drawing.Point(syy2, sxx) : sxx = LB566.Location.Y : LB566.Location = New Drawing.Point(syy2, sxx) : End If
  6639. End Sub
  6640. '-----------------------------------------------------------------------------------------------------------------
  6641. Private Sub LB565_移動()
  6642. If 翻頁_nud.Value = 10 Or 自動移動 = True Then
  6643. Dim sx, sxx As Integer : sx = LB565.Size.Height : sxx = LB565.Location.Y : NU4 = LB566.Location.X : LB566.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6644. End Sub
  6645. Private Sub LB565_Click(sender As Object, e As EventArgs) Handles LB565.Click
  6646. PA = LB565.Text : 合約內文修改視窗.ShowDialog() : LB565.Text = PA : LB565_移動()
  6647. End Sub
  6648. Private Sub LB565_LocationChanged(sender As Object, e As EventArgs) Handles LB565.LocationChanged
  6649. LB565_移動()
  6650. End Sub
  6651. Private Sub LB565_TextChanged(sender As Object, e As EventArgs) Handles LB565.TextChanged
  6652. LB565_移動()
  6653. End Sub
  6654. '-----------------------------------------------------------------------------------------------------------------
  6655. Private Sub LB566_Click(sender As Object, e As EventArgs) Handles LB566.Click
  6656. PA = LB566.Text : 合約內文修改視窗.ShowDialog() : LB566.Text = PA
  6657. End Sub
  6658. '---------------------------第9頁----------------------------------------------------------------------------------------------------------------------------------------------
  6659. Private Sub LB567_Click(sender As Object, e As EventArgs) Handles LB567.Click
  6660. PA = LB567.Text : 合約內文修改視窗.ShowDialog() : LB567.Text = PA
  6661. End Sub
  6662. Private Sub LB568_Click(sender As Object, e As EventArgs) Handles LB568.Click
  6663. PA = LB568.Text : 合約內文修改視窗.ShowDialog() : LB568.Text = PA
  6664. End Sub
  6665. Private Sub LB569_Click(sender As Object, e As EventArgs) Handles LB569.Click
  6666. PA = LB569.Text : 合約內文修改視窗.ShowDialog() : LB569.Text = PA
  6667. End Sub
  6668. '-----------------------------------------------------------------------------------------------------------------
  6669. Private Sub LB570_Click(sender As Object, e As EventArgs) Handles LB570.Click
  6670. If 翻頁_nud.Value = 9 Or 自動移動 = True Then
  6671. NU5 = LB570.Location.X : BL1 = True : PA = LB570.Text : 合約內文修改視窗.ShowDialog() : LB570.Text = PA : BL1 = False : NU5 = 0
  6672. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB570.Location.Y : LB570.Location = New Drawing.Point(syy1, sxx)
  6673. sxx = LB103.Location.Y : LB103.Location = New Drawing.Point(syy2, sxx) : sxx = LB104.Location.Y : LB104.Location = New Drawing.Point(syy2, sxx) : End If
  6674. End Sub
  6675. '-----------------------------------------------------------------------------------------------------------------
  6676. Private Sub LB103_移動()
  6677. If 翻頁_nud.Value = 9 Or 自動移動 = True Then
  6678. Dim sx, sxx As Integer : sx = LB103.Size.Height : sxx = LB103.Location.Y : NU4 = LB104.Location.X : LB104.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6679. End Sub
  6680. Private Sub LB103_Click(sender As Object, e As EventArgs) Handles LB103.Click
  6681. PA = LB103.Text : 合約內文修改視窗.ShowDialog() : LB103.Text = PA : LB103_移動()
  6682. End Sub
  6683. Private Sub LB103_LocationChanged(sender As Object, e As EventArgs) Handles LB103.LocationChanged
  6684. LB103_移動()
  6685. End Sub
  6686. Private Sub LB103_TextChanged(sender As Object, e As EventArgs) Handles LB103.TextChanged
  6687. LB103_移動()
  6688. End Sub
  6689. '-----------------------------------------------------------------------------------------------------------------
  6690. Private Sub LB104_移動()
  6691. If 翻頁_nud.Value = 9 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB104.Size.Height : sxx = LB104.Location.Y : NU3 = LB571.Location.X : NU4 = LB105.Location.X
  6692. LB571.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB105.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6693. End Sub
  6694. Private Sub LB104_Click(sender As Object, e As EventArgs) Handles LB104.Click
  6695. PA = LB104.Text : 合約內文修改視窗.ShowDialog() : LB104.Text = PA : LB104_移動()
  6696. End Sub
  6697. Private Sub LB104_LocationChanged(sender As Object, e As EventArgs) Handles LB104.LocationChanged
  6698. LB104_移動()
  6699. End Sub
  6700. Private Sub LB104_TextChanged(sender As Object, e As EventArgs) Handles LB104.TextChanged
  6701. LB104_移動()
  6702. End Sub
  6703. '-----------------------------------------------------------------------------------------------------------------
  6704. Private Sub LB571_Click(sender As Object, e As EventArgs) Handles LB571.Click
  6705. If 翻頁_nud.Value = 9 Or 自動移動 = True Then
  6706. NU5 = LB571.Location.X : BL1 = True : PA = LB571.Text : 合約內文修改視窗.ShowDialog() : LB571.Text = PA : BL1 = False : NU5 = 0
  6707. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB571.Location.Y : LB571.Location = New Drawing.Point(syy1, sxx)
  6708. sxx = LB105.Location.Y : LB105.Location = New Drawing.Point(syy2, sxx) : sxx = LB106.Location.Y : LB106.Location = New Drawing.Point(syy2, sxx) : End If
  6709. End Sub
  6710. '-----------------------------------------------------------------------------------------------------------------
  6711. Private Sub LB105_移動()
  6712. If 翻頁_nud.Value = 9 Or 自動移動 = True Then
  6713. Dim sx, sxx As Integer : sx = LB105.Size.Height : sxx = LB105.Location.Y : NU4 = LB106.Location.X : LB106.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6714. End Sub
  6715. Private Sub LB105_Click(sender As Object, e As EventArgs) Handles LB105.Click
  6716. PA = LB105.Text : 合約內文修改視窗.ShowDialog() : LB105.Text = PA : LB105_移動()
  6717. End Sub
  6718. Private Sub LB105_LocationChanged(sender As Object, e As EventArgs) Handles LB105.LocationChanged
  6719. LB105_移動()
  6720. End Sub
  6721. Private Sub LB105_TextChanged(sender As Object, e As EventArgs) Handles LB105.TextChanged
  6722. LB105_移動()
  6723. End Sub
  6724. '-----------------------------------------------------------------------------------------------------------------
  6725. Private Sub LB106_移動()
  6726. If 翻頁_nud.Value = 9 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB106.Size.Height : sxx = LB106.Location.Y : NU3 = LB572.Location.X : NU4 = LB107.Location.X
  6727. LB572.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB107.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6728. End Sub
  6729. Private Sub LB106_Click(sender As Object, e As EventArgs) Handles LB106.Click
  6730. PA = LB106.Text : 合約內文修改視窗.ShowDialog() : LB106.Text = PA : LB106_移動()
  6731. End Sub
  6732. Private Sub LB106_LocationChanged(sender As Object, e As EventArgs) Handles LB106.LocationChanged
  6733. LB106_移動()
  6734. End Sub
  6735. Private Sub LB106_TextChanged(sender As Object, e As EventArgs) Handles LB106.TextChanged
  6736. LB106_移動()
  6737. End Sub
  6738. '-----------------------------------------------------------------------------------------------------------------
  6739. Private Sub LB572_Click(sender As Object, e As EventArgs) Handles LB572.Click
  6740. If 翻頁_nud.Value = 9 Or 自動移動 = True Then
  6741. NU5 = LB572.Location.X : BL1 = True : PA = LB572.Text : 合約內文修改視窗.ShowDialog() : LB572.Text = PA : BL1 = False : NU5 = 0
  6742. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB572.Location.Y : LB572.Location = New Drawing.Point(syy1, sxx)
  6743. sxx = LB107.Location.Y : LB107.Location = New Drawing.Point(syy2, sxx) : sxx = LB108.Location.Y : LB108.Location = New Drawing.Point(syy2, sxx) : End If
  6744. End Sub
  6745. '-----------------------------------------------------------------------------------------------------------------
  6746. Private Sub LB107_移動()
  6747. If 翻頁_nud.Value = 9 Or 自動移動 = True Then
  6748. Dim sx, sxx As Integer : sx = LB107.Size.Height : sxx = LB107.Location.Y : NU4 = LB108.Location.X : LB108.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6749. End Sub
  6750. Private Sub LB107_Click(sender As Object, e As EventArgs) Handles LB107.Click
  6751. PA = LB107.Text : 合約內文修改視窗.ShowDialog() : LB107.Text = PA : LB107_移動()
  6752. End Sub
  6753. Private Sub LB107_LocationChanged(sender As Object, e As EventArgs) Handles LB107.LocationChanged
  6754. LB107_移動()
  6755. End Sub
  6756. Private Sub LB107_TextChanged(sender As Object, e As EventArgs) Handles LB107.TextChanged
  6757. LB107_移動()
  6758. End Sub
  6759. '-----------------------------------------------------------------------------------------------------------------
  6760. Private Sub LB108_移動()
  6761. If 翻頁_nud.Value = 9 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB108.Size.Height : sxx = LB108.Location.Y : NU3 = LB573.Location.X : NU4 = LB109.Location.X
  6762. LB573.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB109.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6763. End Sub
  6764. Private Sub LB108_Click(sender As Object, e As EventArgs) Handles LB108.Click
  6765. PA = LB108.Text : 合約內文修改視窗.ShowDialog() : LB108.Text = PA : LB108_移動()
  6766. End Sub
  6767. Private Sub LB108_LocationChanged(sender As Object, e As EventArgs) Handles LB108.LocationChanged
  6768. LB108_移動()
  6769. End Sub
  6770. Private Sub LB108_TextChanged(sender As Object, e As EventArgs) Handles LB108.TextChanged
  6771. LB108_移動()
  6772. End Sub
  6773. '-----------------------------------------------------------------------------------------------------------------
  6774. Private Sub LB573_Click(sender As Object, e As EventArgs) Handles LB573.Click
  6775. If 翻頁_nud.Value = 9 Or 自動移動 = True Then
  6776. NU5 = LB573.Location.X : BL1 = True : PA = LB573.Text : 合約內文修改視窗.ShowDialog() : LB573.Text = PA : BL1 = False : NU5 = 0
  6777. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB573.Location.Y : LB573.Location = New Drawing.Point(syy1, sxx)
  6778. sxx = LB109.Location.Y : LB109.Location = New Drawing.Point(syy2, sxx) : sxx = LB110.Location.Y : LB110.Location = New Drawing.Point(syy2, sxx) : End If
  6779. End Sub
  6780. '-----------------------------------------------------------------------------------------------------------------
  6781. Private Sub LB109_移動()
  6782. If 翻頁_nud.Value = 9 Or 自動移動 = True Then
  6783. Dim sx, sxx As Integer : sx = LB109.Size.Height : sxx = LB109.Location.Y : NU4 = LB110.Location.X : LB110.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6784. End Sub
  6785. Private Sub LB109_Click(sender As Object, e As EventArgs) Handles LB109.Click
  6786. PA = LB109.Text : 合約內文修改視窗.ShowDialog() : LB109.Text = PA : LB109_移動()
  6787. End Sub
  6788. Private Sub LB109_LocationChanged(sender As Object, e As EventArgs) Handles LB109.LocationChanged
  6789. LB109_移動()
  6790. End Sub
  6791. Private Sub LB109_TextChanged(sender As Object, e As EventArgs) Handles LB109.TextChanged
  6792. LB109_移動()
  6793. End Sub
  6794. '-----------------------------------------------------------------------------------------------------------------
  6795. Private Sub LB110_移動()
  6796. If 翻頁_nud.Value = 9 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB110.Size.Height : sxx = LB110.Location.Y : NU3 = LB574.Location.X : NU4 = LB111.Location.X
  6797. LB574.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB111.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6798. End Sub
  6799. Private Sub LB110_Click(sender As Object, e As EventArgs) Handles LB110.Click
  6800. PA = LB110.Text : 合約內文修改視窗.ShowDialog() : LB110.Text = PA : LB110_移動()
  6801. End Sub
  6802. Private Sub LB110_LocationChanged(sender As Object, e As EventArgs) Handles LB110.LocationChanged
  6803. LB110_移動()
  6804. End Sub
  6805. Private Sub LB110_TextChanged(sender As Object, e As EventArgs) Handles LB110.TextChanged
  6806. LB110_移動()
  6807. End Sub
  6808. '-----------------------------------------------------------------------------------------------------------------
  6809. Private Sub LB574_Click(sender As Object, e As EventArgs) Handles LB574.Click
  6810. If 翻頁_nud.Value = 9 Or 自動移動 = True Then
  6811. NU5 = LB574.Location.X : BL1 = True : PA = LB574.Text : 合約內文修改視窗.ShowDialog() : LB574.Text = PA : BL1 = False : NU5 = 0
  6812. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB574.Location.Y : LB574.Location = New Drawing.Point(syy1, sxx)
  6813. sxx = LB111.Location.Y : LB111.Location = New Drawing.Point(syy2, sxx) : sxx = LB112.Location.Y : LB112.Location = New Drawing.Point(syy2, sxx) : End If
  6814. End Sub
  6815. '-----------------------------------------------------------------------------------------------------------------
  6816. Private Sub LB111_移動()
  6817. If 翻頁_nud.Value = 9 Or 自動移動 = True Then
  6818. Dim sx, sxx As Integer : sx = LB111.Size.Height : sxx = LB111.Location.Y : NU4 = LB112.Location.X : LB112.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6819. End Sub
  6820. Private Sub LB111_Click(sender As Object, e As EventArgs) Handles LB111.Click
  6821. PA = LB111.Text : 合約內文修改視窗.ShowDialog() : LB111.Text = PA : LB111_移動()
  6822. End Sub
  6823. Private Sub LB111_LocationChanged(sender As Object, e As EventArgs) Handles LB111.LocationChanged
  6824. LB111_移動()
  6825. End Sub
  6826. Private Sub LB111_TextChanged(sender As Object, e As EventArgs) Handles LB111.TextChanged
  6827. LB111_移動()
  6828. End Sub
  6829. '-----------------------------------------------------------------------------------------------------------------
  6830. Private Sub LB112_移動()
  6831. If 翻頁_nud.Value = 9 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB112.Size.Height : sxx = LB112.Location.Y : NU3 = LB575.Location.X : NU4 = LB113.Location.X
  6832. LB575.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB113.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6833. End Sub
  6834. Private Sub LB112_Click(sender As Object, e As EventArgs) Handles LB112.Click
  6835. PA = LB112.Text : 合約內文修改視窗.ShowDialog() : LB112.Text = PA : LB112_移動()
  6836. End Sub
  6837. Private Sub LB112_LocationChanged(sender As Object, e As EventArgs) Handles LB112.LocationChanged
  6838. LB112_移動()
  6839. End Sub
  6840. Private Sub LB112_TextChanged(sender As Object, e As EventArgs) Handles LB112.TextChanged
  6841. LB112_移動()
  6842. End Sub
  6843. '-----------------------------------------------------------------------------------------------------------------
  6844. Private Sub LB575_Click(sender As Object, e As EventArgs) Handles LB575.Click
  6845. If 翻頁_nud.Value = 9 Or 自動移動 = True Then
  6846. NU5 = LB575.Location.X : BL1 = True : PA = LB575.Text : 合約內文修改視窗.ShowDialog() : LB575.Text = PA : BL1 = False : NU5 = 0
  6847. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB575.Location.Y : LB575.Location = New Drawing.Point(syy1, sxx)
  6848. sxx = LB113.Location.Y : LB113.Location = New Drawing.Point(syy2, sxx) : sxx = LB114.Location.Y : LB114.Location = New Drawing.Point(syy2, sxx) : End If
  6849. End Sub
  6850. '-----------------------------------------------------------------------------------------------------------------
  6851. Private Sub LB113_移動()
  6852. If 翻頁_nud.Value = 9 Or 自動移動 = True Then
  6853. Dim sx, sxx As Integer : sx = LB113.Size.Height : sxx = LB113.Location.Y : NU4 = LB114.Location.X : LB114.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6854. End Sub
  6855. Private Sub LB113_Click(sender As Object, e As EventArgs) Handles LB113.Click
  6856. PA = LB113.Text : 合約內文修改視窗.ShowDialog() : LB113.Text = PA : LB113_移動()
  6857. End Sub
  6858. Private Sub LB113_LocationChanged(sender As Object, e As EventArgs) Handles LB113.LocationChanged
  6859. LB113_移動()
  6860. End Sub
  6861. Private Sub LB113_TextChanged(sender As Object, e As EventArgs) Handles LB113.TextChanged
  6862. LB113_移動()
  6863. End Sub
  6864. '-----------------------------------------------------------------------------------------------------------------
  6865. Private Sub LB114_移動()
  6866. If 翻頁_nud.Value = 9 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB114.Size.Height : sxx = LB114.Location.Y : NU3 = LB576.Location.X : NU4 = LB577.Location.X
  6867. LB576.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB577.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6868. End Sub
  6869. Private Sub LB114_Click(sender As Object, e As EventArgs) Handles LB114.Click
  6870. PA = LB114.Text : 合約內文修改視窗.ShowDialog() : LB114.Text = PA : LB114_移動()
  6871. End Sub
  6872. Private Sub LB114_LocationChanged(sender As Object, e As EventArgs) Handles LB114.LocationChanged
  6873. LB114_移動()
  6874. End Sub
  6875. Private Sub LB114_TextChanged(sender As Object, e As EventArgs) Handles LB114.TextChanged
  6876. LB114_移動()
  6877. End Sub
  6878. '-----------------------------------------------------------------------------------------------------------------
  6879. Private Sub LB576_Click(sender As Object, e As EventArgs) Handles LB576.Click
  6880. If 翻頁_nud.Value = 9 Or 自動移動 = True Then
  6881. NU5 = LB576.Location.X : BL1 = True : PA = LB576.Text : 合約內文修改視窗.ShowDialog() : LB576.Text = PA : BL1 = False : NU5 = 0
  6882. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB576.Location.Y : LB576.Location = New Drawing.Point(syy1, sxx)
  6883. sxx = LB577.Location.Y : LB577.Location = New Drawing.Point(syy2, sxx) : sxx = LB578.Location.Y : LB578.Location = New Drawing.Point(syy2, sxx) : End If
  6884. End Sub
  6885. '-----------------------------------------------------------------------------------------------------------------
  6886. Private Sub LB577_移動()
  6887. If 翻頁_nud.Value = 9 Or 自動移動 = True Then
  6888. Dim sx, sxx As Integer : sx = LB577.Size.Height : sxx = LB577.Location.Y : NU4 = LB578.Location.X : LB578.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6889. End Sub
  6890. Private Sub LB577_Click(sender As Object, e As EventArgs) Handles LB577.Click
  6891. PA = LB577.Text : 合約內文修改視窗.ShowDialog() : LB577.Text = PA : LB577_移動()
  6892. End Sub
  6893. Private Sub LB577_LocationChanged(sender As Object, e As EventArgs) Handles LB577.LocationChanged
  6894. LB577_移動()
  6895. End Sub
  6896. Private Sub LB577_TextChanged(sender As Object, e As EventArgs) Handles LB577.TextChanged
  6897. LB577_移動()
  6898. End Sub
  6899. '-----------------------------------------------------------------------------------------------------------------
  6900. Private Sub LB578_移動()
  6901. If 翻頁_nud.Value = 9 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB578.Size.Height : sxx = LB578.Location.Y : NU3 = LB579.Location.X : NU4 = LB580.Location.X
  6902. LB579.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB580.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6903. End Sub
  6904. Private Sub LB578_Click(sender As Object, e As EventArgs) Handles LB578.Click
  6905. PA = LB578.Text : 合約內文修改視窗.ShowDialog() : LB578.Text = PA : LB578_移動()
  6906. End Sub
  6907. Private Sub LB578_LocationChanged(sender As Object, e As EventArgs) Handles LB578.LocationChanged
  6908. LB578_移動()
  6909. End Sub
  6910. Private Sub LB578_TextChanged(sender As Object, e As EventArgs) Handles LB578.TextChanged
  6911. LB578_移動()
  6912. End Sub
  6913. '-----------------------------------------------------------------------------------------------------------------
  6914. Private Sub LB579_Click(sender As Object, e As EventArgs) Handles LB579.Click
  6915. If 翻頁_nud.Value = 9 Or 自動移動 = True Then
  6916. NU5 = LB579.Location.X : BL1 = True : PA = LB579.Text : 合約內文修改視窗.ShowDialog() : LB579.Text = PA : BL1 = False : NU5 = 0
  6917. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB579.Location.Y : LB579.Location = New Drawing.Point(syy1, sxx)
  6918. sxx = LB580.Location.Y : LB580.Location = New Drawing.Point(syy2, sxx) : sxx = LB581.Location.Y : LB581.Location = New Drawing.Point(syy2, sxx) : End If
  6919. End Sub
  6920. '-----------------------------------------------------------------------------------------------------------------
  6921. Private Sub LB580_移動()
  6922. If 翻頁_nud.Value = 9 Or 自動移動 = True Then
  6923. Dim sx, sxx As Integer : sx = LB580.Size.Height : sxx = LB580.Location.Y : NU4 = LB581.Location.X : LB581.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6924. End Sub
  6925. Private Sub LB580_Click(sender As Object, e As EventArgs) Handles LB580.Click
  6926. PA = LB580.Text : 合約內文修改視窗.ShowDialog() : LB580.Text = PA : LB580_移動()
  6927. End Sub
  6928. Private Sub LB580_LocationChanged(sender As Object, e As EventArgs) Handles LB580.LocationChanged
  6929. LB580_移動()
  6930. End Sub
  6931. Private Sub LB580_TextChanged(sender As Object, e As EventArgs) Handles LB580.TextChanged
  6932. LB580_移動()
  6933. End Sub
  6934. '-----------------------------------------------------------------------------------------------------------------
  6935. Private Sub LB581_移動()
  6936. If 翻頁_nud.Value = 9 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB581.Size.Height : sxx = LB581.Location.Y : NU3 = LB582.Location.X : NU4 = LB583.Location.X
  6937. LB582.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB583.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6938. End Sub
  6939. Private Sub LB581_Click(sender As Object, e As EventArgs) Handles LB581.Click
  6940. PA = LB581.Text : 合約內文修改視窗.ShowDialog() : LB581.Text = PA : LB581_移動()
  6941. End Sub
  6942. Private Sub LB581_LocationChanged(sender As Object, e As EventArgs) Handles LB581.LocationChanged
  6943. LB581_移動()
  6944. End Sub
  6945. Private Sub LB581_TextChanged(sender As Object, e As EventArgs) Handles LB581.TextChanged
  6946. LB581_移動()
  6947. End Sub
  6948. '-----------------------------------------------------------------------------------------------------------------
  6949. Private Sub LB582_Click(sender As Object, e As EventArgs) Handles LB582.Click
  6950. If 翻頁_nud.Value = 9 Or 自動移動 = True Then
  6951. NU5 = LB582.Location.X : BL1 = True : PA = LB582.Text : 合約內文修改視窗.ShowDialog() : LB582.Text = PA : BL1 = False : NU5 = 0
  6952. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB582.Location.Y : LB582.Location = New Drawing.Point(syy1, sxx)
  6953. sxx = LB583.Location.Y : LB583.Location = New Drawing.Point(syy2, sxx) : sxx = LB584.Location.Y : LB584.Location = New Drawing.Point(syy2, sxx) : End If
  6954. End Sub
  6955. '-----------------------------------------------------------------------------------------------------------------
  6956. Private Sub LB583_移動()
  6957. If 翻頁_nud.Value = 9 Or 自動移動 = True Then
  6958. Dim sx, sxx As Integer : sx = LB583.Size.Height : sxx = LB583.Location.Y : NU4 = LB584.Location.X : LB584.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6959. End Sub
  6960. Private Sub LB583_Click(sender As Object, e As EventArgs) Handles LB583.Click
  6961. PA = LB583.Text : 合約內文修改視窗.ShowDialog() : LB583.Text = PA : LB583_移動()
  6962. End Sub
  6963. Private Sub LB583_LocationChanged(sender As Object, e As EventArgs) Handles LB583.LocationChanged
  6964. LB583_移動()
  6965. End Sub
  6966. Private Sub LB583_TextChanged(sender As Object, e As EventArgs) Handles LB583.TextChanged
  6967. LB583_移動()
  6968. End Sub
  6969. '-----------------------------------------------------------------------------------------------------------------
  6970. Private Sub LB584_移動()
  6971. If 翻頁_nud.Value = 9 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB584.Size.Height : sxx = LB584.Location.Y : NU3 = LB585.Location.X : NU4 = LB586.Location.X
  6972. LB585.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB586.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6973. End Sub
  6974. Private Sub LB584_Click(sender As Object, e As EventArgs) Handles LB584.Click
  6975. PA = LB584.Text : 合約內文修改視窗.ShowDialog() : LB584.Text = PA : LB584_移動()
  6976. End Sub
  6977. Private Sub LB584_LocationChanged(sender As Object, e As EventArgs) Handles LB584.LocationChanged
  6978. LB584_移動()
  6979. End Sub
  6980. Private Sub LB584_TextChanged(sender As Object, e As EventArgs) Handles LB584.TextChanged
  6981. LB584_移動()
  6982. End Sub
  6983. '-----------------------------------------------------------------------------------------------------------------
  6984. Private Sub LB585_Click(sender As Object, e As EventArgs) Handles LB585.Click
  6985. If 翻頁_nud.Value = 9 Or 自動移動 = True Then
  6986. NU5 = LB585.Location.X : BL1 = True : PA = LB585.Text : 合約內文修改視窗.ShowDialog() : LB585.Text = PA : BL1 = False : NU5 = 0
  6987. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB585.Location.Y : LB585.Location = New Drawing.Point(syy1, sxx)
  6988. sxx = LB586.Location.Y : LB586.Location = New Drawing.Point(syy2, sxx) : sxx = LB587.Location.Y : LB587.Location = New Drawing.Point(syy2, sxx) : End If
  6989. End Sub
  6990. '-----------------------------------------------------------------------------------------------------------------
  6991. Private Sub LB586_移動()
  6992. If 翻頁_nud.Value = 9 Or 自動移動 = True Then
  6993. Dim sx, sxx As Integer : sx = LB586.Size.Height : sxx = LB586.Location.Y : NU4 = LB587.Location.X : LB587.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  6994. End Sub
  6995. Private Sub LB586_Click(sender As Object, e As EventArgs) Handles LB586.Click
  6996. PA = LB586.Text : 合約內文修改視窗.ShowDialog() : LB586.Text = PA : LB586_移動()
  6997. End Sub
  6998. Private Sub LB586_LocationChanged(sender As Object, e As EventArgs) Handles LB586.LocationChanged
  6999. LB586_移動()
  7000. End Sub
  7001. Private Sub LB586_TextChanged(sender As Object, e As EventArgs) Handles LB586.TextChanged
  7002. LB586_移動()
  7003. End Sub
  7004. '-----------------------------------------------------------------------------------------------------------------
  7005. Private Sub LB587_移動()
  7006. If 翻頁_nud.Value = 9 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB587.Size.Height : sxx = LB587.Location.Y : NU3 = LB588.Location.X : NU4 = LB589.Location.X
  7007. LB588.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB589.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7008. End Sub
  7009. Private Sub LB587_Click(sender As Object, e As EventArgs) Handles LB587.Click
  7010. PA = LB587.Text : 合約內文修改視窗.ShowDialog() : LB587.Text = PA : LB587_移動()
  7011. End Sub
  7012. Private Sub LB587_LocationChanged(sender As Object, e As EventArgs) Handles LB587.LocationChanged
  7013. LB587_移動()
  7014. End Sub
  7015. Private Sub LB587_TextChanged(sender As Object, e As EventArgs) Handles LB587.TextChanged
  7016. LB587_移動()
  7017. End Sub
  7018. '-----------------------------------------------------------------------------------------------------------------
  7019. Private Sub LB588_Click(sender As Object, e As EventArgs) Handles LB588.Click
  7020. If 翻頁_nud.Value = 9 Or 自動移動 = True Then
  7021. NU5 = LB588.Location.X : BL1 = True : PA = LB588.Text : 合約內文修改視窗.ShowDialog() : LB588.Text = PA : BL1 = False : NU5 = 0
  7022. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB588.Location.Y : LB588.Location = New Drawing.Point(syy1, sxx)
  7023. sxx = LB589.Location.Y : LB589.Location = New Drawing.Point(syy2, sxx) : sxx = LB590.Location.Y : LB590.Location = New Drawing.Point(syy2, sxx) : End If
  7024. End Sub
  7025. '-----------------------------------------------------------------------------------------------------------------
  7026. Private Sub LB589_移動()
  7027. If 翻頁_nud.Value = 9 Or 自動移動 = True Then
  7028. Dim sx, sxx As Integer : sx = LB589.Size.Height : sxx = LB589.Location.Y : NU4 = LB590.Location.X : LB590.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7029. End Sub
  7030. Private Sub LB589_Click(sender As Object, e As EventArgs) Handles LB589.Click
  7031. PA = LB589.Text : 合約內文修改視窗.ShowDialog() : LB589.Text = PA : LB589_移動()
  7032. End Sub
  7033. Private Sub LB589_LocationChanged(sender As Object, e As EventArgs) Handles LB589.LocationChanged
  7034. LB589_移動()
  7035. End Sub
  7036. Private Sub LB589_TextChanged(sender As Object, e As EventArgs) Handles LB589.TextChanged
  7037. LB589_移動()
  7038. End Sub
  7039. '-----------------------------------------------------------------------------------------------------------------
  7040. Private Sub LB590_移動()
  7041. If 翻頁_nud.Value = 9 Or 自動移動 = True Then
  7042. Dim sx, sxx As Integer : sx = LB590.Size.Height : sxx = LB590.Location.Y : NU3 = LB591.Location.X : NU4 = LB592.Location.X
  7043. LB591.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB592.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7044. End Sub
  7045. Private Sub LB590_Click(sender As Object, e As EventArgs) Handles LB590.Click
  7046. PA = LB590.Text : 合約內文修改視窗.ShowDialog() : LB590.Text = PA : LB590_移動()
  7047. End Sub
  7048. Private Sub LB590_LocationChanged(sender As Object, e As EventArgs) Handles LB590.LocationChanged
  7049. LB590_移動()
  7050. End Sub
  7051. Private Sub LB590_TextChanged(sender As Object, e As EventArgs) Handles LB590.TextChanged
  7052. LB590_移動()
  7053. End Sub
  7054. '-----------------------------------------------------------------------------------------------------------------
  7055. Private Sub LB591_Click(sender As Object, e As EventArgs) Handles LB591.Click
  7056. If 翻頁_nud.Value = 9 Or 自動移動 = True Then
  7057. NU5 = LB591.Location.X : BL1 = True : PA = LB591.Text : 合約內文修改視窗.ShowDialog() : LB591.Text = PA : BL1 = False : NU5 = 0
  7058. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB591.Location.Y : LB591.Location = New Drawing.Point(syy1, sxx)
  7059. sxx = LB592.Location.Y : LB592.Location = New Drawing.Point(syy2, sxx) : sxx = LB593.Location.Y : LB593.Location = New Drawing.Point(syy2, sxx) : End If
  7060. End Sub
  7061. '-----------------------------------------------------------------------------------------------------------------
  7062. Private Sub LB592_移動()
  7063. If 翻頁_nud.Value = 9 Or 自動移動 = True Then
  7064. Dim sx, sxx As Integer : sx = LB592.Size.Height : sxx = LB592.Location.Y : NU4 = LB593.Location.X : LB593.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7065. End Sub
  7066. Private Sub LB592_Click(sender As Object, e As EventArgs) Handles LB592.Click
  7067. PA = LB592.Text : 合約內文修改視窗.ShowDialog() : LB592.Text = PA : LB592_移動()
  7068. End Sub
  7069. Private Sub LB592_LocationChanged(sender As Object, e As EventArgs) Handles LB592.LocationChanged
  7070. LB592_移動()
  7071. End Sub
  7072. Private Sub LB592_TextChanged(sender As Object, e As EventArgs) Handles LB592.TextChanged
  7073. LB592_移動()
  7074. End Sub
  7075. '-----------------------------------------------------------------------------------------------------------------
  7076. Private Sub LB593_移動()
  7077. If 翻頁_nud.Value = 9 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB593.Size.Height : sxx = LB593.Location.Y : NU3 = LB594.Location.X : NU4 = LB595.Location.X
  7078. LB594.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB595.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7079. End Sub
  7080. Private Sub LB593_Click(sender As Object, e As EventArgs) Handles LB593.Click
  7081. PA = LB593.Text : 合約內文修改視窗.ShowDialog() : LB593.Text = PA : LB593_移動()
  7082. End Sub
  7083. Private Sub LB593_LocationChanged(sender As Object, e As EventArgs) Handles LB593.LocationChanged
  7084. LB593_移動()
  7085. End Sub
  7086. Private Sub LB593_TextChanged(sender As Object, e As EventArgs) Handles LB593.TextChanged
  7087. LB593_移動()
  7088. End Sub
  7089. '-----------------------------------------------------------------------------------------------------------------
  7090. Private Sub LB594_Click(sender As Object, e As EventArgs) Handles LB594.Click
  7091. If 翻頁_nud.Value = 9 Or 自動移動 = True Then
  7092. NU5 = LB594.Location.X : BL1 = True : PA = LB594.Text : 合約內文修改視窗.ShowDialog() : LB594.Text = PA : BL1 = False : NU5 = 0
  7093. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB594.Location.Y : LB594.Location = New Drawing.Point(syy1, sxx)
  7094. sxx = LB595.Location.Y : LB595.Location = New Drawing.Point(syy2, sxx) : sxx = LB596.Location.Y : LB596.Location = New Drawing.Point(syy2, sxx) : End If
  7095. End Sub
  7096. '-----------------------------------------------------------------------------------------------------------------
  7097. Private Sub LB595_移動()
  7098. If 翻頁_nud.Value = 9 Or 自動移動 = True Then
  7099. Dim sx, sxx As Integer : sx = LB595.Size.Height : sxx = LB595.Location.Y : NU4 = LB596.Location.X : LB596.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7100. End Sub
  7101. Private Sub LB595_Click(sender As Object, e As EventArgs) Handles LB595.Click
  7102. PA = LB595.Text : 合約內文修改視窗.ShowDialog() : LB595.Text = PA : LB595_移動()
  7103. End Sub
  7104. Private Sub LB595_LocationChanged(sender As Object, e As EventArgs) Handles LB595.LocationChanged
  7105. LB595_移動()
  7106. End Sub
  7107. Private Sub LB595_TextChanged(sender As Object, e As EventArgs) Handles LB595.TextChanged
  7108. LB595_移動()
  7109. End Sub
  7110. '-----------------------------------------------------------------------------------------------------------------
  7111. Private Sub LB596_移動()
  7112. If 翻頁_nud.Value = 9 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB596.Size.Height : sxx = LB596.Location.Y : NU3 = LB597.Location.X : NU4 = LB598.Location.X
  7113. LB597.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB598.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7114. End Sub
  7115. Private Sub LB596_Click(sender As Object, e As EventArgs) Handles LB596.Click
  7116. PA = LB596.Text : 合約內文修改視窗.ShowDialog() : LB596.Text = PA : LB596_移動()
  7117. End Sub
  7118. Private Sub LB596_LocationChanged(sender As Object, e As EventArgs) Handles LB596.LocationChanged
  7119. LB596_移動()
  7120. End Sub
  7121. Private Sub LB596_TextChanged(sender As Object, e As EventArgs) Handles LB596.TextChanged
  7122. LB596_移動()
  7123. End Sub
  7124. '-----------------------------------------------------------------------------------------------------------------
  7125. Private Sub LB597_Click(sender As Object, e As EventArgs) Handles LB597.Click
  7126. If 翻頁_nud.Value = 9 Or 自動移動 = True Then
  7127. NU5 = LB597.Location.X : BL1 = True : PA = LB597.Text : 合約內文修改視窗.ShowDialog() : LB597.Text = PA : BL1 = False : NU5 = 0
  7128. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB597.Location.Y : LB597.Location = New Drawing.Point(syy1, sxx)
  7129. sxx = LB598.Location.Y : LB598.Location = New Drawing.Point(syy2, sxx) : sxx = LB599.Location.Y : LB599.Location = New Drawing.Point(syy2, sxx) : End If
  7130. End Sub
  7131. '-----------------------------------------------------------------------------------------------------------------
  7132. Private Sub LB598_移動()
  7133. If 翻頁_nud.Value = 9 Or 自動移動 = True Then
  7134. Dim sx, sxx As Integer : sx = LB598.Size.Height : sxx = LB598.Location.Y : NU4 = LB599.Location.X : LB599.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7135. End Sub
  7136. Private Sub LB598_Click(sender As Object, e As EventArgs) Handles LB598.Click
  7137. PA = LB598.Text : 合約內文修改視窗.ShowDialog() : LB598.Text = PA : LB598_移動()
  7138. End Sub
  7139. Private Sub LB598_LocationChanged(sender As Object, e As EventArgs) Handles LB598.LocationChanged
  7140. LB598_移動()
  7141. End Sub
  7142. Private Sub LB598_TextChanged(sender As Object, e As EventArgs) Handles LB598.TextChanged
  7143. LB598_移動()
  7144. End Sub
  7145. '-----------------------------------------------------------------------------------------------------------------
  7146. Private Sub LB599_Click(sender As Object, e As EventArgs) Handles LB599.Click
  7147. PA = LB599.Text : 合約內文修改視窗.ShowDialog() : LB599.Text = PA
  7148. End Sub
  7149. '---------------------------第8頁----------------------------------------------------------------------------------------------------------------------------------------------
  7150. Private Sub LB600_Click(sender As Object, e As EventArgs) Handles LB600.Click
  7151. PA = LB600.Text : 合約內文修改視窗.ShowDialog() : LB600.Text = PA
  7152. End Sub
  7153. Private Sub LB601_Click(sender As Object, e As EventArgs) Handles LB601.Click
  7154. PA = LB601.Text : 合約內文修改視窗.ShowDialog() : LB601.Text = PA
  7155. End Sub
  7156. Private Sub LB602_Click(sender As Object, e As EventArgs) Handles LB602.Click
  7157. PA = LB602.Text : 合約內文修改視窗.ShowDialog() : LB602.Text = PA
  7158. End Sub
  7159. '-----------------------------------------------------------------------------------------------------------------
  7160. Private Sub LB603_Click(sender As Object, e As EventArgs) Handles LB603.Click
  7161. If 翻頁_nud.Value = 8 Or 自動移動 = True Then
  7162. NU5 = LB603.Location.X : BL1 = True : PA = LB603.Text : 合約內文修改視窗.ShowDialog() : LB603.Text = PA : BL1 = False : NU5 = 0
  7163. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB603.Location.Y : LB603.Location = New Drawing.Point(syy1, sxx)
  7164. sxx = LB604.Location.Y : LB604.Location = New Drawing.Point(syy2, sxx) : sxx = LB605.Location.Y : LB605.Location = New Drawing.Point(syy2, sxx) : End If
  7165. End Sub
  7166. '-----------------------------------------------------------------------------------------------------------------
  7167. Private Sub LB604_移動()
  7168. If 翻頁_nud.Value = 8 Or 自動移動 = True Then
  7169. Dim sx, sxx As Integer : sx = LB604.Size.Height : sxx = LB604.Location.Y : NU4 = LB605.Location.X : LB605.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7170. End Sub
  7171. Private Sub LB604_Click(sender As Object, e As EventArgs) Handles LB604.Click
  7172. PA = LB604.Text : 合約內文修改視窗.ShowDialog() : LB604.Text = PA : LB604_移動()
  7173. End Sub
  7174. Private Sub LB604_LocationChanged(sender As Object, e As EventArgs) Handles LB604.LocationChanged
  7175. LB604_移動()
  7176. End Sub
  7177. Private Sub LB604_TextChanged(sender As Object, e As EventArgs) Handles LB604.TextChanged
  7178. LB604_移動()
  7179. End Sub
  7180. '-----------------------------------------------------------------------------------------------------------------
  7181. Private Sub LB605_移動()
  7182. If 翻頁_nud.Value = 8 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB605.Size.Height : sxx = LB605.Location.Y : NU3 = LB606.Location.X : NU4 = LB607.Location.X
  7183. LB606.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB607.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7184. End Sub
  7185. Private Sub LB605_Click(sender As Object, e As EventArgs) Handles LB605.Click
  7186. PA = LB605.Text : 合約內文修改視窗.ShowDialog() : LB605.Text = PA : LB605_移動()
  7187. End Sub
  7188. Private Sub LB605_LocationChanged(sender As Object, e As EventArgs) Handles LB605.LocationChanged
  7189. LB605_移動()
  7190. End Sub
  7191. Private Sub LB605_TextChanged(sender As Object, e As EventArgs) Handles LB605.TextChanged
  7192. LB605_移動()
  7193. End Sub
  7194. '-----------------------------------------------------------------------------------------------------------------
  7195. Private Sub LB606_Click(sender As Object, e As EventArgs) Handles LB606.Click
  7196. If 翻頁_nud.Value = 8 Or 自動移動 = True Then
  7197. NU5 = LB606.Location.X : BL1 = True : PA = LB606.Text : 合約內文修改視窗.ShowDialog() : LB606.Text = PA : BL1 = False : NU5 = 0
  7198. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB606.Location.Y : LB606.Location = New Drawing.Point(syy1, sxx)
  7199. sxx = LB607.Location.Y : LB607.Location = New Drawing.Point(syy2, sxx) : sxx = LB608.Location.Y : LB608.Location = New Drawing.Point(syy2, sxx) : End If
  7200. End Sub
  7201. '-----------------------------------------------------------------------------------------------------------------
  7202. Private Sub LB607_移動()
  7203. If 翻頁_nud.Value = 8 Or 自動移動 = True Then
  7204. Dim sx, sxx As Integer : sx = LB607.Size.Height : sxx = LB607.Location.Y : NU4 = LB608.Location.X : LB608.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7205. End Sub
  7206. Private Sub LB607_Click(sender As Object, e As EventArgs) Handles LB607.Click
  7207. PA = LB607.Text : 合約內文修改視窗.ShowDialog() : LB607.Text = PA : LB607_移動()
  7208. End Sub
  7209. Private Sub LB607_LocationChanged(sender As Object, e As EventArgs) Handles LB607.LocationChanged
  7210. LB607_移動()
  7211. End Sub
  7212. Private Sub LB607_TextChanged(sender As Object, e As EventArgs) Handles LB607.TextChanged
  7213. LB607_移動()
  7214. End Sub
  7215. '-----------------------------------------------------------------------------------------------------------------
  7216. Private Sub LB608_移動()
  7217. If 翻頁_nud.Value = 8 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB608.Size.Height : sxx = LB608.Location.Y : NU3 = LB609.Location.X : NU4 = LB610.Location.X
  7218. LB609.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB610.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7219. End Sub
  7220. Private Sub LB608_Click(sender As Object, e As EventArgs) Handles LB608.Click
  7221. PA = LB608.Text : 合約內文修改視窗.ShowDialog() : LB608.Text = PA : LB608_移動()
  7222. End Sub
  7223. Private Sub LB608_LocationChanged(sender As Object, e As EventArgs) Handles LB608.LocationChanged
  7224. LB608_移動()
  7225. End Sub
  7226. Private Sub LB608_TextChanged(sender As Object, e As EventArgs) Handles LB608.TextChanged
  7227. LB608_移動()
  7228. End Sub
  7229. '-----------------------------------------------------------------------------------------------------------------
  7230. Private Sub LB609_Click(sender As Object, e As EventArgs) Handles LB609.Click
  7231. If 翻頁_nud.Value = 8 Or 自動移動 = True Then
  7232. NU5 = LB609.Location.X : BL1 = True : PA = LB609.Text : 合約內文修改視窗.ShowDialog() : LB609.Text = PA : BL1 = False : NU5 = 0
  7233. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB609.Location.Y : LB609.Location = New Drawing.Point(syy1, sxx)
  7234. sxx = LB610.Location.Y : LB610.Location = New Drawing.Point(syy2, sxx) : sxx = LB611.Location.Y : LB611.Location = New Drawing.Point(syy2, sxx) : End If
  7235. End Sub
  7236. '-----------------------------------------------------------------------------------------------------------------
  7237. Private Sub LB610_移動()
  7238. If 翻頁_nud.Value = 8 Or 自動移動 = True Then
  7239. Dim sx, sxx As Integer : sx = LB610.Size.Height : sxx = LB610.Location.Y : NU4 = LB611.Location.X : LB611.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7240. End Sub
  7241. Private Sub LB610_Click(sender As Object, e As EventArgs) Handles LB610.Click
  7242. PA = LB610.Text : 合約內文修改視窗.ShowDialog() : LB610.Text = PA : LB610_移動()
  7243. End Sub
  7244. Private Sub LB610_LocationChanged(sender As Object, e As EventArgs) Handles LB610.LocationChanged
  7245. LB610_移動()
  7246. End Sub
  7247. Private Sub LB610_TextChanged(sender As Object, e As EventArgs) Handles LB610.TextChanged
  7248. LB610_移動()
  7249. End Sub
  7250. '-----------------------------------------------------------------------------------------------------------------
  7251. Private Sub LB611_移動()
  7252. If 翻頁_nud.Value = 8 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB611.Size.Height : sxx = LB611.Location.Y : NU3 = LB612.Location.X : NU4 = LB613.Location.X
  7253. LB612.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB613.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7254. End Sub
  7255. Private Sub LB611_Click(sender As Object, e As EventArgs) Handles LB611.Click
  7256. PA = LB611.Text : 合約內文修改視窗.ShowDialog() : LB611.Text = PA : LB611_移動()
  7257. End Sub
  7258. Private Sub LB611_LocationChanged(sender As Object, e As EventArgs) Handles LB611.LocationChanged
  7259. LB611_移動()
  7260. End Sub
  7261. Private Sub LB611_TextChanged(sender As Object, e As EventArgs) Handles LB611.TextChanged
  7262. LB611_移動()
  7263. End Sub
  7264. '-----------------------------------------------------------------------------------------------------------------
  7265. Private Sub LB612_Click(sender As Object, e As EventArgs) Handles LB612.Click
  7266. If 翻頁_nud.Value = 8 Or 自動移動 = True Then
  7267. NU5 = LB612.Location.X : BL1 = True : PA = LB612.Text : 合約內文修改視窗.ShowDialog() : LB612.Text = PA : BL1 = False : NU5 = 0
  7268. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB612.Location.Y : LB612.Location = New Drawing.Point(syy1, sxx)
  7269. sxx = LB613.Location.Y : LB613.Location = New Drawing.Point(syy2, sxx) : sxx = LB614.Location.Y : LB614.Location = New Drawing.Point(syy2, sxx) : End If
  7270. End Sub
  7271. '-----------------------------------------------------------------------------------------------------------------
  7272. Private Sub LB613_移動()
  7273. If 翻頁_nud.Value = 8 Or 自動移動 = True Then
  7274. Dim sx, sxx As Integer : sx = LB613.Size.Height : sxx = LB613.Location.Y : NU4 = LB614.Location.X : LB614.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7275. End Sub
  7276. Private Sub LB613_Click(sender As Object, e As EventArgs) Handles LB613.Click
  7277. PA = LB613.Text : 合約內文修改視窗.ShowDialog() : LB613.Text = PA : LB613_移動()
  7278. End Sub
  7279. Private Sub LB613_LocationChanged(sender As Object, e As EventArgs) Handles LB613.LocationChanged
  7280. LB613_移動()
  7281. End Sub
  7282. Private Sub LB613_TextChanged(sender As Object, e As EventArgs) Handles LB613.TextChanged
  7283. LB613_移動()
  7284. End Sub
  7285. '-----------------------------------------------------------------------------------------------------------------
  7286. Private Sub LB614_移動()
  7287. If 翻頁_nud.Value = 8 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB614.Size.Height : sxx = LB614.Location.Y : NU3 = LB615.Location.X : NU4 = LB616.Location.X
  7288. LB615.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB616.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7289. End Sub
  7290. Private Sub LB614_Click(sender As Object, e As EventArgs) Handles LB614.Click
  7291. PA = LB614.Text : 合約內文修改視窗.ShowDialog() : LB614.Text = PA : LB614_移動()
  7292. End Sub
  7293. Private Sub LB614_LocationChanged(sender As Object, e As EventArgs) Handles LB614.LocationChanged
  7294. LB614_移動()
  7295. End Sub
  7296. Private Sub LB614_TextChanged(sender As Object, e As EventArgs) Handles LB614.TextChanged
  7297. LB614_移動()
  7298. End Sub
  7299. '-----------------------------------------------------------------------------------------------------------------
  7300. Private Sub LB615_Click(sender As Object, e As EventArgs) Handles LB615.Click
  7301. If 翻頁_nud.Value = 8 Or 自動移動 = True Then
  7302. NU5 = LB615.Location.X : BL1 = True : PA = LB615.Text : 合約內文修改視窗.ShowDialog() : LB615.Text = PA : BL1 = False : NU5 = 0
  7303. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB615.Location.Y : LB615.Location = New Drawing.Point(syy1, sxx)
  7304. sxx = LB616.Location.Y : LB616.Location = New Drawing.Point(syy2, sxx) : sxx = LB617.Location.Y : LB617.Location = New Drawing.Point(syy2, sxx) : End If
  7305. End Sub
  7306. '-----------------------------------------------------------------------------------------------------------------
  7307. Private Sub LB616_移動()
  7308. If 翻頁_nud.Value = 8 Or 自動移動 = True Then
  7309. Dim sx, sxx As Integer : sx = LB616.Size.Height : sxx = LB616.Location.Y : NU4 = LB617.Location.X : LB617.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7310. End Sub
  7311. Private Sub LB616_Click(sender As Object, e As EventArgs) Handles LB616.Click
  7312. PA = LB616.Text : 合約內文修改視窗.ShowDialog() : LB616.Text = PA : LB616_移動()
  7313. End Sub
  7314. Private Sub LB616_LocationChanged(sender As Object, e As EventArgs) Handles LB616.LocationChanged
  7315. LB616_移動()
  7316. End Sub
  7317. Private Sub LB616_TextChanged(sender As Object, e As EventArgs) Handles LB616.TextChanged
  7318. LB616_移動()
  7319. End Sub
  7320. '-----------------------------------------------------------------------------------------------------------------
  7321. Private Sub LB617_移動()
  7322. If 翻頁_nud.Value = 8 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB617.Size.Height : sxx = LB617.Location.Y : NU3 = LB618.Location.X : NU4 = LB619.Location.X
  7323. LB618.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB619.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7324. End Sub
  7325. Private Sub LB617_Click(sender As Object, e As EventArgs) Handles LB617.Click
  7326. PA = LB617.Text : 合約內文修改視窗.ShowDialog() : LB617.Text = PA : LB617_移動()
  7327. End Sub
  7328. Private Sub LB617_LocationChanged(sender As Object, e As EventArgs) Handles LB617.LocationChanged
  7329. LB617_移動()
  7330. End Sub
  7331. Private Sub LB617_TextChanged(sender As Object, e As EventArgs) Handles LB617.TextChanged
  7332. LB617_移動()
  7333. End Sub
  7334. '-----------------------------------------------------------------------------------------------------------------
  7335. Private Sub LB618_Click(sender As Object, e As EventArgs) Handles LB618.Click
  7336. If 翻頁_nud.Value = 8 Or 自動移動 = True Then
  7337. NU5 = LB618.Location.X : BL1 = True : PA = LB618.Text : 合約內文修改視窗.ShowDialog() : LB618.Text = PA : BL1 = False : NU5 = 0
  7338. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB618.Location.Y : LB618.Location = New Drawing.Point(syy1, sxx)
  7339. sxx = LB619.Location.Y : LB619.Location = New Drawing.Point(syy2, sxx) : sxx = LB620.Location.Y : LB620.Location = New Drawing.Point(syy2, sxx) : End If
  7340. End Sub
  7341. '-----------------------------------------------------------------------------------------------------------------
  7342. Private Sub LB619_移動()
  7343. If 翻頁_nud.Value = 8 Or 自動移動 = True Then
  7344. Dim sx, sxx As Integer : sx = LB619.Size.Height : sxx = LB619.Location.Y : NU4 = LB620.Location.X : LB620.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7345. End Sub
  7346. Private Sub LB619_Click(sender As Object, e As EventArgs) Handles LB619.Click
  7347. PA = LB619.Text : 合約內文修改視窗.ShowDialog() : LB619.Text = PA : LB619_移動()
  7348. End Sub
  7349. Private Sub LB619_LocationChanged(sender As Object, e As EventArgs) Handles LB619.LocationChanged
  7350. LB619_移動()
  7351. End Sub
  7352. Private Sub LB619_TextChanged(sender As Object, e As EventArgs) Handles LB619.TextChanged
  7353. LB619_移動()
  7354. End Sub
  7355. '-----------------------------------------------------------------------------------------------------------------
  7356. Private Sub LB620_移動()
  7357. If 翻頁_nud.Value = 8 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB620.Size.Height : sxx = LB620.Location.Y : NU3 = LB621.Location.X : NU4 = LB622.Location.X
  7358. LB621.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB622.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7359. End Sub
  7360. Private Sub LB620_Click(sender As Object, e As EventArgs) Handles LB620.Click
  7361. PA = LB620.Text : 合約內文修改視窗.ShowDialog() : LB620.Text = PA : LB620_移動()
  7362. End Sub
  7363. Private Sub LB620_LocationChanged(sender As Object, e As EventArgs) Handles LB620.LocationChanged
  7364. LB620_移動()
  7365. End Sub
  7366. Private Sub LB620_TextChanged(sender As Object, e As EventArgs) Handles LB620.TextChanged
  7367. LB620_移動()
  7368. End Sub
  7369. '-----------------------------------------------------------------------------------------------------------------
  7370. Private Sub LB621_Click(sender As Object, e As EventArgs) Handles LB621.Click
  7371. If 翻頁_nud.Value = 8 Or 自動移動 = True Then
  7372. NU5 = LB621.Location.X : BL1 = True : PA = LB621.Text : 合約內文修改視窗.ShowDialog() : LB621.Text = PA : BL1 = False : NU5 = 0
  7373. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB621.Location.Y : LB621.Location = New Drawing.Point(syy1, sxx)
  7374. sxx = LB622.Location.Y : LB622.Location = New Drawing.Point(syy2, sxx) : sxx = LB623.Location.Y : LB623.Location = New Drawing.Point(syy2, sxx) : End If
  7375. End Sub
  7376. '-----------------------------------------------------------------------------------------------------------------
  7377. Private Sub LB622_移動()
  7378. If 翻頁_nud.Value = 8 Or 自動移動 = True Then
  7379. Dim sx, sxx As Integer : sx = LB622.Size.Height : sxx = LB622.Location.Y : NU4 = LB623.Location.X : LB623.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7380. End Sub
  7381. Private Sub LB622_Click(sender As Object, e As EventArgs) Handles LB622.Click
  7382. PA = LB622.Text : 合約內文修改視窗.ShowDialog() : LB622.Text = PA : LB622_移動()
  7383. End Sub
  7384. Private Sub LB622_LocationChanged(sender As Object, e As EventArgs) Handles LB622.LocationChanged
  7385. LB622_移動()
  7386. End Sub
  7387. Private Sub LB622_TextChanged(sender As Object, e As EventArgs) Handles LB622.TextChanged
  7388. LB622_移動()
  7389. End Sub
  7390. '-----------------------------------------------------------------------------------------------------------------
  7391. Private Sub LB623_移動()
  7392. If 翻頁_nud.Value = 8 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB623.Size.Height : sxx = LB623.Location.Y : NU3 = LB624.Location.X : NU4 = LB625.Location.X
  7393. LB624.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB625.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7394. End Sub
  7395. Private Sub LB623_Click(sender As Object, e As EventArgs) Handles LB623.Click
  7396. PA = LB623.Text : 合約內文修改視窗.ShowDialog() : LB623.Text = PA : LB623_移動()
  7397. End Sub
  7398. Private Sub LB623_LocationChanged(sender As Object, e As EventArgs) Handles LB623.LocationChanged
  7399. LB623_移動()
  7400. End Sub
  7401. Private Sub LB623_TextChanged(sender As Object, e As EventArgs) Handles LB623.TextChanged
  7402. LB623_移動()
  7403. End Sub
  7404. '-----------------------------------------------------------------------------------------------------------------
  7405. Private Sub LB624_Click(sender As Object, e As EventArgs) Handles LB624.Click
  7406. If 翻頁_nud.Value = 8 Or 自動移動 = True Then
  7407. NU5 = LB624.Location.X : BL1 = True : PA = LB624.Text : 合約內文修改視窗.ShowDialog() : LB624.Text = PA : BL1 = False : NU5 = 0
  7408. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB624.Location.Y : LB624.Location = New Drawing.Point(syy1, sxx)
  7409. sxx = LB625.Location.Y : LB625.Location = New Drawing.Point(syy2, sxx) : sxx = LB626.Location.Y : LB626.Location = New Drawing.Point(syy2, sxx) : End If
  7410. End Sub
  7411. '-----------------------------------------------------------------------------------------------------------------
  7412. Private Sub LB625_移動()
  7413. If 翻頁_nud.Value = 8 Or 自動移動 = True Then
  7414. Dim sx, sxx As Integer : sx = LB625.Size.Height : sxx = LB625.Location.Y : NU4 = LB626.Location.X : LB626.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7415. End Sub
  7416. Private Sub LB625_Click(sender As Object, e As EventArgs) Handles LB625.Click
  7417. PA = LB625.Text : 合約內文修改視窗.ShowDialog() : LB625.Text = PA : LB625_移動()
  7418. End Sub
  7419. Private Sub LB625_LocationChanged(sender As Object, e As EventArgs) Handles LB625.LocationChanged
  7420. LB625_移動()
  7421. End Sub
  7422. Private Sub LB625_TextChanged(sender As Object, e As EventArgs) Handles LB625.TextChanged
  7423. LB625_移動()
  7424. End Sub
  7425. '-----------------------------------------------------------------------------------------------------------------
  7426. Private Sub LB626_移動()
  7427. If 翻頁_nud.Value = 8 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB626.Size.Height : sxx = LB626.Location.Y : NU3 = LB627.Location.X : NU4 = LB628.Location.X
  7428. LB627.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB628.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7429. End Sub
  7430. Private Sub LB626_Click(sender As Object, e As EventArgs) Handles LB626.Click
  7431. PA = LB626.Text : 合約內文修改視窗.ShowDialog() : LB626.Text = PA : LB626_移動()
  7432. End Sub
  7433. Private Sub LB626_LocationChanged(sender As Object, e As EventArgs) Handles LB626.LocationChanged
  7434. LB626_移動()
  7435. End Sub
  7436. Private Sub LB626_TextChanged(sender As Object, e As EventArgs) Handles LB626.TextChanged
  7437. LB626_移動()
  7438. End Sub
  7439. '-----------------------------------------------------------------------------------------------------------------
  7440. Private Sub LB627_Click(sender As Object, e As EventArgs) Handles LB627.Click
  7441. If 翻頁_nud.Value = 8 Or 自動移動 = True Then
  7442. NU5 = LB627.Location.X : BL1 = True : PA = LB627.Text : 合約內文修改視窗.ShowDialog() : LB627.Text = PA : BL1 = False : NU5 = 0
  7443. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB627.Location.Y : LB627.Location = New Drawing.Point(syy1, sxx)
  7444. sxx = LB628.Location.Y : LB628.Location = New Drawing.Point(syy2, sxx) : sxx = LB629.Location.Y : LB629.Location = New Drawing.Point(syy2, sxx) : End If
  7445. End Sub
  7446. '-----------------------------------------------------------------------------------------------------------------
  7447. Private Sub LB628_移動()
  7448. If 翻頁_nud.Value = 8 Or 自動移動 = True Then
  7449. Dim sx, sxx As Integer : sx = LB628.Size.Height : sxx = LB628.Location.Y : NU4 = LB629.Location.X : LB629.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7450. End Sub
  7451. Private Sub LB628_Click(sender As Object, e As EventArgs) Handles LB628.Click
  7452. PA = LB628.Text : 合約內文修改視窗.ShowDialog() : LB628.Text = PA : LB628_移動()
  7453. End Sub
  7454. Private Sub LB628_LocationChanged(sender As Object, e As EventArgs) Handles LB628.LocationChanged
  7455. LB628_移動()
  7456. End Sub
  7457. Private Sub LB628_TextChanged(sender As Object, e As EventArgs) Handles LB628.TextChanged
  7458. LB628_移動()
  7459. End Sub
  7460. '-----------------------------------------------------------------------------------------------------------------
  7461. Private Sub LB629_移動()
  7462. If 翻頁_nud.Value = 8 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB629.Size.Height : sxx = LB629.Location.Y : NU3 = LB630.Location.X : NU4 = LB631.Location.X
  7463. LB630.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB631.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7464. End Sub
  7465. Private Sub LB629_Click(sender As Object, e As EventArgs) Handles LB629.Click
  7466. PA = LB629.Text : 合約內文修改視窗.ShowDialog() : LB629.Text = PA : LB629_移動()
  7467. End Sub
  7468. Private Sub LB629_LocationChanged(sender As Object, e As EventArgs) Handles LB629.LocationChanged
  7469. LB629_移動()
  7470. End Sub
  7471. Private Sub LB629_TextChanged(sender As Object, e As EventArgs) Handles LB629.TextChanged
  7472. LB629_移動()
  7473. End Sub
  7474. '-----------------------------------------------------------------------------------------------------------------
  7475. Private Sub LB630_Click(sender As Object, e As EventArgs) Handles LB630.Click
  7476. If 翻頁_nud.Value = 8 Or 自動移動 = True Then
  7477. NU5 = LB630.Location.X : BL1 = True : PA = LB630.Text : 合約內文修改視窗.ShowDialog() : LB630.Text = PA : BL1 = False : NU5 = 0
  7478. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB630.Location.Y : LB630.Location = New Drawing.Point(syy1, sxx)
  7479. sxx = LB631.Location.Y : LB631.Location = New Drawing.Point(syy2, sxx) : sxx = LB632.Location.Y : LB632.Location = New Drawing.Point(syy2, sxx) : End If
  7480. End Sub
  7481. '-----------------------------------------------------------------------------------------------------------------
  7482. Private Sub LB631_移動()
  7483. If 翻頁_nud.Value = 8 Or 自動移動 = True Then
  7484. Dim sx, sxx As Integer : sx = LB631.Size.Height : sxx = LB631.Location.Y : NU4 = LB632.Location.X : LB632.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7485. End Sub
  7486. Private Sub LB631_Click(sender As Object, e As EventArgs) Handles LB631.Click
  7487. PA = LB631.Text : 合約內文修改視窗.ShowDialog() : LB631.Text = PA : LB631_移動()
  7488. End Sub
  7489. Private Sub LB631_LocationChanged(sender As Object, e As EventArgs) Handles LB631.LocationChanged
  7490. LB631_移動()
  7491. End Sub
  7492. Private Sub LB631_TextChanged(sender As Object, e As EventArgs) Handles LB631.TextChanged
  7493. LB631_移動()
  7494. End Sub
  7495. '-----------------------------------------------------------------------------------------------------------------
  7496. Private Sub LB632_移動()
  7497. If 翻頁_nud.Value = 8 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB632.Size.Height : sxx = LB632.Location.Y : NU3 = LB633.Location.X : NU4 = LB634.Location.X
  7498. LB633.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB634.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7499. End Sub
  7500. Private Sub LB632_Click(sender As Object, e As EventArgs) Handles LB632.Click
  7501. PA = LB632.Text : 合約內文修改視窗.ShowDialog() : LB632.Text = PA : LB632_移動()
  7502. End Sub
  7503. Private Sub LB632_LocationChanged(sender As Object, e As EventArgs) Handles LB632.LocationChanged
  7504. LB632_移動()
  7505. End Sub
  7506. Private Sub LB632_TextChanged(sender As Object, e As EventArgs) Handles LB632.TextChanged
  7507. LB632_移動()
  7508. End Sub
  7509. '-----------------------------------------------------------------------------------------------------------------
  7510. Private Sub LB633_Click(sender As Object, e As EventArgs) Handles LB633.Click
  7511. If 翻頁_nud.Value = 8 Or 自動移動 = True Then
  7512. NU5 = LB633.Location.X : BL1 = True : PA = LB633.Text : 合約內文修改視窗.ShowDialog() : LB633.Text = PA : BL1 = False : NU5 = 0
  7513. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB633.Location.Y : LB633.Location = New Drawing.Point(syy1, sxx)
  7514. sxx = LB634.Location.Y : LB634.Location = New Drawing.Point(syy2, sxx) : sxx = LB635.Location.Y : LB635.Location = New Drawing.Point(syy2, sxx) : End If
  7515. End Sub
  7516. '-----------------------------------------------------------------------------------------------------------------
  7517. Private Sub LB634_移動()
  7518. If 翻頁_nud.Value = 8 Or 自動移動 = True Then
  7519. Dim sx, sxx As Integer : sx = LB634.Size.Height : sxx = LB634.Location.Y : NU4 = LB635.Location.X : LB635.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7520. End Sub
  7521. Private Sub LB634_Click(sender As Object, e As EventArgs) Handles LB634.Click
  7522. PA = LB634.Text : 合約內文修改視窗.ShowDialog() : LB634.Text = PA : LB634_移動()
  7523. End Sub
  7524. Private Sub LB634_LocationChanged(sender As Object, e As EventArgs) Handles LB634.LocationChanged
  7525. LB634_移動()
  7526. End Sub
  7527. Private Sub LB634_TextChanged(sender As Object, e As EventArgs) Handles LB634.TextChanged
  7528. LB634_移動()
  7529. End Sub
  7530. '-----------------------------------------------------------------------------------------------------------------
  7531. Private Sub LB635_移動()
  7532. If 翻頁_nud.Value = 8 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB635.Size.Height : sxx = LB635.Location.Y : NU3 = LB636.Location.X : NU4 = LB637.Location.X
  7533. LB636.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB637.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7534. End Sub
  7535. Private Sub LB635_Click(sender As Object, e As EventArgs) Handles LB635.Click
  7536. PA = LB635.Text : 合約內文修改視窗.ShowDialog() : LB635.Text = PA : LB635_移動()
  7537. End Sub
  7538. Private Sub LB635_LocationChanged(sender As Object, e As EventArgs) Handles LB635.LocationChanged
  7539. LB635_移動()
  7540. End Sub
  7541. Private Sub LB635_TextChanged(sender As Object, e As EventArgs) Handles LB635.TextChanged
  7542. LB635_移動()
  7543. End Sub
  7544. '-----------------------------------------------------------------------------------------------------------------
  7545. Private Sub LB636_Click(sender As Object, e As EventArgs) Handles LB636.Click
  7546. If 翻頁_nud.Value = 8 Or 自動移動 = True Then
  7547. NU5 = LB636.Location.X : BL1 = True : PA = LB636.Text : 合約內文修改視窗.ShowDialog() : LB636.Text = PA : BL1 = False : NU5 = 0
  7548. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB636.Location.Y : LB636.Location = New Drawing.Point(syy1, sxx)
  7549. sxx = LB637.Location.Y : LB637.Location = New Drawing.Point(syy2, sxx) : sxx = LB638.Location.Y : LB638.Location = New Drawing.Point(syy2, sxx) : End If
  7550. End Sub
  7551. '-----------------------------------------------------------------------------------------------------------------
  7552. Private Sub LB637_移動()
  7553. If 翻頁_nud.Value = 8 Or 自動移動 = True Then
  7554. Dim sx, sxx As Integer : sx = LB637.Size.Height : sxx = LB637.Location.Y : NU4 = LB638.Location.X : LB638.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7555. End Sub
  7556. Private Sub LB637_Click(sender As Object, e As EventArgs) Handles LB637.Click
  7557. PA = LB637.Text : 合約內文修改視窗.ShowDialog() : LB637.Text = PA : LB637_移動()
  7558. End Sub
  7559. Private Sub LB637_LocationChanged(sender As Object, e As EventArgs) Handles LB637.LocationChanged
  7560. LB637_移動()
  7561. End Sub
  7562. Private Sub LB637_TextChanged(sender As Object, e As EventArgs) Handles LB637.TextChanged
  7563. LB637_移動()
  7564. End Sub
  7565. '-----------------------------------------------------------------------------------------------------------------
  7566. Private Sub LB638_移動()
  7567. If 翻頁_nud.Value = 8 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB638.Size.Height : sxx = LB638.Location.Y : NU3 = LB639.Location.X : NU4 = LB640.Location.X
  7568. LB639.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB640.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7569. End Sub
  7570. Private Sub LB638_Click(sender As Object, e As EventArgs) Handles LB638.Click
  7571. PA = LB638.Text : 合約內文修改視窗.ShowDialog() : LB638.Text = PA : LB638_移動()
  7572. End Sub
  7573. Private Sub LB638_LocationChanged(sender As Object, e As EventArgs) Handles LB638.LocationChanged
  7574. LB638_移動()
  7575. End Sub
  7576. Private Sub LB638_TextChanged(sender As Object, e As EventArgs) Handles LB638.TextChanged
  7577. LB638_移動()
  7578. End Sub
  7579. '-----------------------------------------------------------------------------------------------------------------
  7580. Private Sub LB639_Click(sender As Object, e As EventArgs) Handles LB639.Click
  7581. If 翻頁_nud.Value = 8 Or 自動移動 = True Then
  7582. NU5 = LB639.Location.X : BL1 = True : PA = LB639.Text : 合約內文修改視窗.ShowDialog() : LB639.Text = PA : BL1 = False : NU5 = 0
  7583. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB639.Location.Y : LB639.Location = New Drawing.Point(syy1, sxx)
  7584. sxx = LB640.Location.Y : LB640.Location = New Drawing.Point(syy2, sxx) : sxx = LB641.Location.Y : LB641.Location = New Drawing.Point(syy2, sxx) : End If
  7585. End Sub
  7586. '-----------------------------------------------------------------------------------------------------------------
  7587. Private Sub LB640_移動()
  7588. If 翻頁_nud.Value = 8 Or 自動移動 = True Then
  7589. Dim sx, sxx As Integer : sx = LB640.Size.Height : sxx = LB640.Location.Y : NU4 = LB641.Location.X : LB641.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7590. End Sub
  7591. Private Sub LB640_Click(sender As Object, e As EventArgs) Handles LB640.Click
  7592. PA = LB640.Text : 合約內文修改視窗.ShowDialog() : LB640.Text = PA : LB640_移動()
  7593. End Sub
  7594. Private Sub LB640_LocationChanged(sender As Object, e As EventArgs) Handles LB640.LocationChanged
  7595. LB640_移動()
  7596. End Sub
  7597. Private Sub LB640_TextChanged(sender As Object, e As EventArgs) Handles LB640.TextChanged
  7598. LB640_移動()
  7599. End Sub
  7600. '-----------------------------------------------------------------------------------------------------------------
  7601. Private Sub LB641_移動()
  7602. If 翻頁_nud.Value = 8 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB641.Size.Height : sxx = LB641.Location.Y : NU3 = LB642.Location.X : NU4 = LB643.Location.X
  7603. LB642.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB643.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7604. End Sub
  7605. Private Sub LB641_Click(sender As Object, e As EventArgs) Handles LB641.Click
  7606. PA = LB641.Text : 合約內文修改視窗.ShowDialog() : LB641.Text = PA : LB641_移動()
  7607. End Sub
  7608. Private Sub LB641_LocationChanged(sender As Object, e As EventArgs) Handles LB641.LocationChanged
  7609. LB641_移動()
  7610. End Sub
  7611. Private Sub LB641_TextChanged(sender As Object, e As EventArgs) Handles LB641.TextChanged
  7612. LB641_移動()
  7613. End Sub
  7614. '-----------------------------------------------------------------------------------------------------------------
  7615. Private Sub LB642_Click(sender As Object, e As EventArgs) Handles LB642.Click
  7616. If 翻頁_nud.Value = 8 Or 自動移動 = True Then
  7617. NU5 = LB642.Location.X : BL1 = True : PA = LB642.Text : 合約內文修改視窗.ShowDialog() : LB642.Text = PA : BL1 = False : NU5 = 0
  7618. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB642.Location.Y : LB642.Location = New Drawing.Point(syy1, sxx)
  7619. sxx = LB643.Location.Y : LB643.Location = New Drawing.Point(syy2, sxx) : sxx = LB644.Location.Y : LB644.Location = New Drawing.Point(syy2, sxx) : End If
  7620. End Sub
  7621. '-----------------------------------------------------------------------------------------------------------------
  7622. Private Sub LB643_移動()
  7623. If 翻頁_nud.Value = 8 Or 自動移動 = True Then
  7624. Dim sx, sxx As Integer : sx = LB643.Size.Height : sxx = LB643.Location.Y : NU4 = LB644.Location.X : LB644.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7625. End Sub
  7626. Private Sub LB643_Click(sender As Object, e As EventArgs) Handles LB643.Click
  7627. PA = LB643.Text : 合約內文修改視窗.ShowDialog() : LB643.Text = PA : LB643_移動()
  7628. End Sub
  7629. Private Sub LB643_LocationChanged(sender As Object, e As EventArgs) Handles LB643.LocationChanged
  7630. LB643_移動()
  7631. End Sub
  7632. Private Sub LB643_TextChanged(sender As Object, e As EventArgs) Handles LB643.TextChanged
  7633. LB643_移動()
  7634. End Sub
  7635. '-----------------------------------------------------------------------------------------------------------------
  7636. Private Sub LB644_Click(sender As Object, e As EventArgs) Handles LB644.Click
  7637. PA = LB644.Text : 合約內文修改視窗.ShowDialog() : LB644.Text = PA
  7638. End Sub
  7639. '---------------------------第7頁----------------------------------------------------------------------------------------------------------------------------------------------
  7640. Private Sub LB645_Click(sender As Object, e As EventArgs) Handles LB645.Click
  7641. PA = LB645.Text : 合約內文修改視窗.ShowDialog() : LB645.Text = PA
  7642. End Sub
  7643. Private Sub LB646_Click(sender As Object, e As EventArgs) Handles LB646.Click
  7644. PA = LB646.Text : 合約內文修改視窗.ShowDialog() : LB646.Text = PA
  7645. End Sub
  7646. Private Sub LB647_Click(sender As Object, e As EventArgs) Handles LB647.Click
  7647. PA = LB647.Text : 合約內文修改視窗.ShowDialog() : LB647.Text = PA
  7648. End Sub
  7649. '-----------------------------------------------------------------------------------------------------------------
  7650. Private Sub LB648_Click(sender As Object, e As EventArgs) Handles LB648.Click
  7651. If 翻頁_nud.Value = 7 Or 自動移動 = True Then
  7652. NU5 = LB648.Location.X : BL1 = True : PA = LB648.Text : 合約內文修改視窗.ShowDialog() : LB648.Text = PA : BL1 = False : NU5 = 0
  7653. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB648.Location.Y : LB648.Location = New Drawing.Point(syy1, sxx)
  7654. sxx = LB649.Location.Y : LB649.Location = New Drawing.Point(syy2, sxx) : sxx = LB650.Location.Y : LB650.Location = New Drawing.Point(syy2, sxx) : End If
  7655. End Sub
  7656. '-----------------------------------------------------------------------------------------------------------------
  7657. Private Sub LB649_移動()
  7658. If 翻頁_nud.Value = 7 Or 自動移動 = True Then
  7659. Dim sx, sxx As Integer : sx = LB649.Size.Height : sxx = LB649.Location.Y : NU4 = LB650.Location.X : LB650.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7660. End Sub
  7661. Private Sub LB649_Click(sender As Object, e As EventArgs) Handles LB649.Click
  7662. PA = LB649.Text : 合約內文修改視窗.ShowDialog() : LB649.Text = PA : LB649_移動()
  7663. End Sub
  7664. Private Sub LB649_LocationChanged(sender As Object, e As EventArgs) Handles LB649.LocationChanged
  7665. LB649_移動()
  7666. End Sub
  7667. Private Sub LB649_TextChanged(sender As Object, e As EventArgs) Handles LB649.TextChanged
  7668. LB649_移動()
  7669. End Sub
  7670. '-----------------------------------------------------------------------------------------------------------------
  7671. Private Sub LB650_移動()
  7672. If 翻頁_nud.Value = 7 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB650.Size.Height : sxx = LB650.Location.Y : NU3 = LB651.Location.X : NU4 = LB652.Location.X
  7673. LB651.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB652.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7674. End Sub
  7675. Private Sub LB650_Click(sender As Object, e As EventArgs) Handles LB650.Click
  7676. PA = LB650.Text : 合約內文修改視窗.ShowDialog() : LB650.Text = PA : LB650_移動()
  7677. End Sub
  7678. Private Sub LB650_LocationChanged(sender As Object, e As EventArgs) Handles LB650.LocationChanged
  7679. LB650_移動()
  7680. End Sub
  7681. Private Sub LB650_TextChanged(sender As Object, e As EventArgs) Handles LB650.TextChanged
  7682. LB650_移動()
  7683. End Sub
  7684. '-----------------------------------------------------------------------------------------------------------------
  7685. Private Sub LB651_Click(sender As Object, e As EventArgs) Handles LB651.Click
  7686. If 翻頁_nud.Value = 7 Or 自動移動 = True Then
  7687. NU5 = LB651.Location.X : BL1 = True : PA = LB651.Text : 合約內文修改視窗.ShowDialog() : LB651.Text = PA : BL1 = False : NU5 = 0
  7688. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB651.Location.Y : LB651.Location = New Drawing.Point(syy1, sxx)
  7689. sxx = LB652.Location.Y : LB652.Location = New Drawing.Point(syy2, sxx) : sxx = LB653.Location.Y : LB653.Location = New Drawing.Point(syy2, sxx) : End If
  7690. End Sub
  7691. '-----------------------------------------------------------------------------------------------------------------
  7692. Private Sub LB652_移動()
  7693. If 翻頁_nud.Value = 7 Or 自動移動 = True Then
  7694. Dim sx, sxx As Integer : sx = LB652.Size.Height : sxx = LB652.Location.Y : NU4 = LB653.Location.X : LB653.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7695. End Sub
  7696. Private Sub LB652_Click(sender As Object, e As EventArgs) Handles LB652.Click
  7697. PA = LB652.Text : 合約內文修改視窗.ShowDialog() : LB652.Text = PA : LB652_移動()
  7698. End Sub
  7699. Private Sub LB652_LocationChanged(sender As Object, e As EventArgs) Handles LB652.LocationChanged
  7700. LB652_移動()
  7701. End Sub
  7702. Private Sub LB652_TextChanged(sender As Object, e As EventArgs) Handles LB652.TextChanged
  7703. LB652_移動()
  7704. End Sub
  7705. '-----------------------------------------------------------------------------------------------------------------
  7706. Private Sub LB653_移動()
  7707. If 翻頁_nud.Value = 7 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB653.Size.Height : sxx = LB653.Location.Y : NU3 = LB654.Location.X : NU4 = LB655.Location.X
  7708. LB654.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB655.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7709. End Sub
  7710. Private Sub LB653_Click(sender As Object, e As EventArgs) Handles LB653.Click
  7711. PA = LB653.Text : 合約內文修改視窗.ShowDialog() : LB653.Text = PA : LB653_移動()
  7712. End Sub
  7713. Private Sub LB653_LocationChanged(sender As Object, e As EventArgs) Handles LB653.LocationChanged
  7714. LB653_移動()
  7715. End Sub
  7716. Private Sub LB653_TextChanged(sender As Object, e As EventArgs) Handles LB653.TextChanged
  7717. LB653_移動()
  7718. End Sub
  7719. '-----------------------------------------------------------------------------------------------------------------
  7720. Private Sub LB654_Click(sender As Object, e As EventArgs) Handles LB654.Click
  7721. If 翻頁_nud.Value = 7 Or 自動移動 = True Then
  7722. NU5 = LB654.Location.X : BL1 = True : PA = LB654.Text : 合約內文修改視窗.ShowDialog() : LB654.Text = PA : BL1 = False : NU5 = 0
  7723. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB654.Location.Y : LB654.Location = New Drawing.Point(syy1, sxx)
  7724. sxx = LB655.Location.Y : LB655.Location = New Drawing.Point(syy2, sxx) : sxx = LB656.Location.Y : LB656.Location = New Drawing.Point(syy2, sxx) : End If
  7725. End Sub
  7726. '-----------------------------------------------------------------------------------------------------------------
  7727. Private Sub LB655_移動()
  7728. If 翻頁_nud.Value = 7 Or 自動移動 = True Then
  7729. Dim sx, sxx As Integer : sx = LB655.Size.Height : sxx = LB655.Location.Y : NU4 = LB656.Location.X : LB656.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7730. End Sub
  7731. Private Sub LB655_Click(sender As Object, e As EventArgs) Handles LB655.Click
  7732. PA = LB655.Text : 合約內文修改視窗.ShowDialog() : LB655.Text = PA : LB655_移動()
  7733. End Sub
  7734. Private Sub LB655_LocationChanged(sender As Object, e As EventArgs) Handles LB655.LocationChanged
  7735. LB655_移動()
  7736. End Sub
  7737. Private Sub LB655_TextChanged(sender As Object, e As EventArgs) Handles LB655.TextChanged
  7738. LB655_移動()
  7739. End Sub
  7740. '-----------------------------------------------------------------------------------------------------------------
  7741. Private Sub LB656_移動()
  7742. If 翻頁_nud.Value = 7 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB656.Size.Height : sxx = LB656.Location.Y : NU3 = LB657.Location.X : NU4 = LB658.Location.X
  7743. LB657.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB658.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7744. End Sub
  7745. Private Sub LB656_Click(sender As Object, e As EventArgs) Handles LB656.Click
  7746. PA = LB656.Text : 合約內文修改視窗.ShowDialog() : LB656.Text = PA : LB656_移動()
  7747. End Sub
  7748. Private Sub LB656_LocationChanged(sender As Object, e As EventArgs) Handles LB656.LocationChanged
  7749. LB656_移動()
  7750. End Sub
  7751. Private Sub LB656_TextChanged(sender As Object, e As EventArgs) Handles LB656.TextChanged
  7752. LB656_移動()
  7753. End Sub
  7754. '-----------------------------------------------------------------------------------------------------------------
  7755. Private Sub LB657_Click(sender As Object, e As EventArgs) Handles LB657.Click
  7756. If 翻頁_nud.Value = 7 Or 自動移動 = True Then
  7757. NU5 = LB657.Location.X : BL1 = True : PA = LB657.Text : 合約內文修改視窗.ShowDialog() : LB657.Text = PA : BL1 = False : NU5 = 0
  7758. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB657.Location.Y : LB657.Location = New Drawing.Point(syy1, sxx)
  7759. sxx = LB658.Location.Y : LB658.Location = New Drawing.Point(syy2, sxx) : sxx = LB659.Location.Y : LB659.Location = New Drawing.Point(syy2, sxx) : End If
  7760. End Sub
  7761. '-----------------------------------------------------------------------------------------------------------------
  7762. Private Sub LB658_移動()
  7763. If 翻頁_nud.Value = 7 Or 自動移動 = True Then
  7764. Dim sx, sxx As Integer : sx = LB658.Size.Height : sxx = LB658.Location.Y : NU4 = LB659.Location.X : LB659.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7765. End Sub
  7766. Private Sub LB658_Click(sender As Object, e As EventArgs) Handles LB658.Click
  7767. PA = LB658.Text : 合約內文修改視窗.ShowDialog() : LB658.Text = PA : LB658_移動()
  7768. End Sub
  7769. Private Sub LB658_LocationChanged(sender As Object, e As EventArgs) Handles LB658.LocationChanged
  7770. LB658_移動()
  7771. End Sub
  7772. Private Sub LB658_TextChanged(sender As Object, e As EventArgs) Handles LB658.TextChanged
  7773. LB658_移動()
  7774. End Sub
  7775. '-----------------------------------------------------------------------------------------------------------------
  7776. Private Sub LB659_移動()
  7777. If 翻頁_nud.Value = 7 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB659.Size.Height : sxx = LB659.Location.Y : NU3 = LB660.Location.X : NU4 = LB661.Location.X
  7778. LB660.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB661.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7779. End Sub
  7780. Private Sub LB659_Click(sender As Object, e As EventArgs) Handles LB659.Click
  7781. PA = LB659.Text : 合約內文修改視窗.ShowDialog() : LB659.Text = PA : LB659_移動()
  7782. End Sub
  7783. Private Sub LB659_LocationChanged(sender As Object, e As EventArgs) Handles LB659.LocationChanged
  7784. LB659_移動()
  7785. End Sub
  7786. Private Sub LB659_TextChanged(sender As Object, e As EventArgs) Handles LB659.TextChanged
  7787. LB659_移動()
  7788. End Sub
  7789. '-----------------------------------------------------------------------------------------------------------------
  7790. Private Sub LB660_Click(sender As Object, e As EventArgs) Handles LB660.Click
  7791. If 翻頁_nud.Value = 7 Or 自動移動 = True Then
  7792. NU5 = LB660.Location.X : BL1 = True : PA = LB660.Text : 合約內文修改視窗.ShowDialog() : LB660.Text = PA : BL1 = False : NU5 = 0
  7793. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB660.Location.Y : LB660.Location = New Drawing.Point(syy1, sxx)
  7794. sxx = LB661.Location.Y : LB661.Location = New Drawing.Point(syy2, sxx) : sxx = LB662.Location.Y : LB662.Location = New Drawing.Point(syy2, sxx) : End If
  7795. End Sub
  7796. '-----------------------------------------------------------------------------------------------------------------
  7797. Private Sub LB661_移動()
  7798. If 翻頁_nud.Value = 7 Or 自動移動 = True Then
  7799. Dim sx, sxx As Integer : sx = LB661.Size.Height : sxx = LB661.Location.Y : NU4 = LB662.Location.X : LB662.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7800. End Sub
  7801. Private Sub LB661_Click(sender As Object, e As EventArgs) Handles LB661.Click
  7802. PA = LB661.Text : 合約內文修改視窗.ShowDialog() : LB661.Text = PA : LB661_移動()
  7803. End Sub
  7804. Private Sub LB661_LocationChanged(sender As Object, e As EventArgs) Handles LB661.LocationChanged
  7805. LB661_移動()
  7806. End Sub
  7807. Private Sub LB661_TextChanged(sender As Object, e As EventArgs) Handles LB661.TextChanged
  7808. LB661_移動()
  7809. End Sub
  7810. '-----------------------------------------------------------------------------------------------------------------
  7811. Private Sub LB662_移動()
  7812. If 翻頁_nud.Value = 7 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB662.Size.Height : sxx = LB662.Location.Y : NU3 = LB663.Location.X : NU4 = LB664.Location.X
  7813. LB663.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB664.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7814. End Sub
  7815. Private Sub LB662_Click(sender As Object, e As EventArgs) Handles LB662.Click
  7816. PA = LB662.Text : 合約內文修改視窗.ShowDialog() : LB662.Text = PA : LB662_移動()
  7817. End Sub
  7818. Private Sub LB662_LocationChanged(sender As Object, e As EventArgs) Handles LB662.LocationChanged
  7819. LB662_移動()
  7820. End Sub
  7821. Private Sub LB662_TextChanged(sender As Object, e As EventArgs) Handles LB662.TextChanged
  7822. LB662_移動()
  7823. End Sub
  7824. '-----------------------------------------------------------------------------------------------------------------
  7825. Private Sub LB663_Click(sender As Object, e As EventArgs) Handles LB663.Click
  7826. If 翻頁_nud.Value = 7 Or 自動移動 = True Then
  7827. NU5 = LB663.Location.X : BL1 = True : PA = LB663.Text : 合約內文修改視窗.ShowDialog() : LB663.Text = PA : BL1 = False : NU5 = 0
  7828. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB663.Location.Y : LB663.Location = New Drawing.Point(syy1, sxx)
  7829. sxx = LB664.Location.Y : LB664.Location = New Drawing.Point(syy2, sxx) : sxx = LB665.Location.Y : LB665.Location = New Drawing.Point(syy2, sxx) : End If
  7830. End Sub
  7831. '-----------------------------------------------------------------------------------------------------------------
  7832. Private Sub LB664_移動()
  7833. If 翻頁_nud.Value = 7 Or 自動移動 = True Then
  7834. Dim sx, sxx As Integer : sx = LB664.Size.Height : sxx = LB664.Location.Y : NU4 = LB665.Location.X : LB665.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7835. End Sub
  7836. Private Sub LB664_Click(sender As Object, e As EventArgs) Handles LB664.Click
  7837. PA = LB664.Text : 合約內文修改視窗.ShowDialog() : LB664.Text = PA : LB664_移動()
  7838. End Sub
  7839. Private Sub LB664_LocationChanged(sender As Object, e As EventArgs) Handles LB664.LocationChanged
  7840. LB664_移動()
  7841. End Sub
  7842. Private Sub LB664_TextChanged(sender As Object, e As EventArgs) Handles LB664.TextChanged
  7843. LB664_移動()
  7844. End Sub
  7845. '-----------------------------------------------------------------------------------------------------------------
  7846. Private Sub LB665_移動()
  7847. If 翻頁_nud.Value = 7 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB665.Size.Height : sxx = LB665.Location.Y : NU3 = LB666.Location.X : NU4 = LB667.Location.X
  7848. LB666.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB667.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7849. End Sub
  7850. Private Sub LB665_Click(sender As Object, e As EventArgs) Handles LB665.Click
  7851. PA = LB665.Text : 合約內文修改視窗.ShowDialog() : LB665.Text = PA : LB665_移動()
  7852. End Sub
  7853. Private Sub LB665_LocationChanged(sender As Object, e As EventArgs) Handles LB665.LocationChanged
  7854. LB665_移動()
  7855. End Sub
  7856. Private Sub LB665_TextChanged(sender As Object, e As EventArgs) Handles LB665.TextChanged
  7857. LB665_移動()
  7858. End Sub
  7859. '-----------------------------------------------------------------------------------------------------------------
  7860. Private Sub LB666_Click(sender As Object, e As EventArgs) Handles LB666.Click
  7861. If 翻頁_nud.Value = 7 Or 自動移動 = True Then
  7862. NU5 = LB666.Location.X : BL1 = True : PA = LB666.Text : 合約內文修改視窗.ShowDialog() : LB666.Text = PA : BL1 = False : NU5 = 0
  7863. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB666.Location.Y : LB666.Location = New Drawing.Point(syy1, sxx)
  7864. sxx = LB667.Location.Y : LB667.Location = New Drawing.Point(syy2, sxx) : sxx = LB668.Location.Y : LB668.Location = New Drawing.Point(syy2, sxx) : End If
  7865. End Sub
  7866. '-----------------------------------------------------------------------------------------------------------------
  7867. Private Sub LB667_移動()
  7868. If 翻頁_nud.Value = 7 Or 自動移動 = True Then
  7869. Dim sx, sxx As Integer : sx = LB667.Size.Height : sxx = LB667.Location.Y : NU4 = LB668.Location.X : LB668.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7870. End Sub
  7871. Private Sub LB667_Click(sender As Object, e As EventArgs) Handles LB667.Click
  7872. PA = LB667.Text : 合約內文修改視窗.ShowDialog() : LB667.Text = PA : LB667_移動()
  7873. End Sub
  7874. Private Sub LB667_LocationChanged(sender As Object, e As EventArgs) Handles LB667.LocationChanged
  7875. LB667_移動()
  7876. End Sub
  7877. Private Sub LB667_TextChanged(sender As Object, e As EventArgs) Handles LB667.TextChanged
  7878. LB667_移動()
  7879. End Sub
  7880. '-----------------------------------------------------------------------------------------------------------------
  7881. Private Sub LB668_移動()
  7882. If 翻頁_nud.Value = 7 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB668.Size.Height : sxx = LB668.Location.Y : NU3 = LB669.Location.X : NU4 = LB670.Location.X
  7883. LB669.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB670.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7884. End Sub
  7885. Private Sub LB668_Click(sender As Object, e As EventArgs) Handles LB668.Click
  7886. PA = LB668.Text : 合約內文修改視窗.ShowDialog() : LB668.Text = PA : LB668_移動()
  7887. End Sub
  7888. Private Sub LB668_LocationChanged(sender As Object, e As EventArgs) Handles LB668.LocationChanged
  7889. LB668_移動()
  7890. End Sub
  7891. Private Sub LB668_TextChanged(sender As Object, e As EventArgs) Handles LB668.TextChanged
  7892. LB668_移動()
  7893. End Sub
  7894. '-----------------------------------------------------------------------------------------------------------------
  7895. Private Sub LB669_Click(sender As Object, e As EventArgs) Handles LB669.Click
  7896. If 翻頁_nud.Value = 7 Or 自動移動 = True Then
  7897. NU5 = LB669.Location.X : BL1 = True : PA = LB669.Text : 合約內文修改視窗.ShowDialog() : LB669.Text = PA : BL1 = False : NU5 = 0
  7898. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB669.Location.Y : LB669.Location = New Drawing.Point(syy1, sxx)
  7899. sxx = LB670.Location.Y : LB670.Location = New Drawing.Point(syy2, sxx) : sxx = LB671.Location.Y : LB671.Location = New Drawing.Point(syy2, sxx) : End If
  7900. End Sub
  7901. '-----------------------------------------------------------------------------------------------------------------
  7902. Private Sub LB670_移動()
  7903. If 翻頁_nud.Value = 7 Or 自動移動 = True Then
  7904. Dim sx, sxx As Integer : sx = LB670.Size.Height : sxx = LB670.Location.Y : NU4 = LB671.Location.X : LB671.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7905. End Sub
  7906. Private Sub LB670_Click(sender As Object, e As EventArgs) Handles LB670.Click
  7907. PA = LB670.Text : 合約內文修改視窗.ShowDialog() : LB670.Text = PA : LB670_移動()
  7908. End Sub
  7909. Private Sub LB670_LocationChanged(sender As Object, e As EventArgs) Handles LB670.LocationChanged
  7910. LB670_移動()
  7911. End Sub
  7912. Private Sub LB670_TextChanged(sender As Object, e As EventArgs) Handles LB670.TextChanged
  7913. LB670_移動()
  7914. End Sub
  7915. '-----------------------------------------------------------------------------------------------------------------
  7916. Private Sub LB671_移動()
  7917. If 翻頁_nud.Value = 7 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB671.Size.Height : sxx = LB671.Location.Y : NU3 = LB672.Location.X : NU4 = LB673.Location.X
  7918. LB672.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB673.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7919. End Sub
  7920. Private Sub LB671_Click(sender As Object, e As EventArgs) Handles LB671.Click
  7921. PA = LB671.Text : 合約內文修改視窗.ShowDialog() : LB671.Text = PA : LB671_移動()
  7922. End Sub
  7923. Private Sub LB671_LocationChanged(sender As Object, e As EventArgs) Handles LB671.LocationChanged
  7924. LB671_移動()
  7925. End Sub
  7926. Private Sub LB671_TextChanged(sender As Object, e As EventArgs) Handles LB671.TextChanged
  7927. LB671_移動()
  7928. End Sub
  7929. '-----------------------------------------------------------------------------------------------------------------
  7930. Private Sub LB672_Click(sender As Object, e As EventArgs) Handles LB672.Click
  7931. If 翻頁_nud.Value = 7 Or 自動移動 = True Then
  7932. NU5 = LB672.Location.X : BL1 = True : PA = LB672.Text : 合約內文修改視窗.ShowDialog() : LB672.Text = PA : BL1 = False : NU5 = 0
  7933. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB672.Location.Y : LB672.Location = New Drawing.Point(syy1, sxx)
  7934. sxx = LB673.Location.Y : LB673.Location = New Drawing.Point(syy2, sxx) : sxx = LB674.Location.Y : LB674.Location = New Drawing.Point(syy2, sxx) : End If
  7935. End Sub
  7936. '-----------------------------------------------------------------------------------------------------------------
  7937. Private Sub LB673_移動()
  7938. If 翻頁_nud.Value = 7 Or 自動移動 = True Then
  7939. Dim sx, sxx As Integer : sx = LB673.Size.Height : sxx = LB673.Location.Y : NU4 = LB674.Location.X : LB674.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7940. End Sub
  7941. Private Sub LB673_Click(sender As Object, e As EventArgs) Handles LB673.Click
  7942. PA = LB673.Text : 合約內文修改視窗.ShowDialog() : LB673.Text = PA : LB673_移動()
  7943. End Sub
  7944. Private Sub LB673_LocationChanged(sender As Object, e As EventArgs) Handles LB673.LocationChanged
  7945. LB673_移動()
  7946. End Sub
  7947. Private Sub LB673_TextChanged(sender As Object, e As EventArgs) Handles LB673.TextChanged
  7948. LB673_移動()
  7949. End Sub
  7950. '-----------------------------------------------------------------------------------------------------------------
  7951. Private Sub LB674_移動()
  7952. If 翻頁_nud.Value = 7 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB674.Size.Height : sxx = LB674.Location.Y : NU3 = LB675.Location.X : NU4 = LB676.Location.X
  7953. LB675.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB676.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7954. End Sub
  7955. Private Sub LB674_Click(sender As Object, e As EventArgs) Handles LB674.Click
  7956. PA = LB674.Text : 合約內文修改視窗.ShowDialog() : LB674.Text = PA : LB674_移動()
  7957. End Sub
  7958. Private Sub LB674_LocationChanged(sender As Object, e As EventArgs) Handles LB674.LocationChanged
  7959. LB674_移動()
  7960. End Sub
  7961. Private Sub LB674_TextChanged(sender As Object, e As EventArgs) Handles LB674.TextChanged
  7962. LB674_移動()
  7963. End Sub
  7964. '-----------------------------------------------------------------------------------------------------------------
  7965. Private Sub LB675_Click(sender As Object, e As EventArgs) Handles LB675.Click
  7966. If 翻頁_nud.Value = 7 Or 自動移動 = True Then
  7967. NU5 = LB675.Location.X : BL1 = True : PA = LB675.Text : 合約內文修改視窗.ShowDialog() : LB675.Text = PA : BL1 = False : NU5 = 0
  7968. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB675.Location.Y : LB675.Location = New Drawing.Point(syy1, sxx)
  7969. sxx = LB676.Location.Y : LB676.Location = New Drawing.Point(syy2, sxx) : sxx = LB677.Location.Y : LB677.Location = New Drawing.Point(syy2, sxx) : End If
  7970. End Sub
  7971. '-----------------------------------------------------------------------------------------------------------------
  7972. Private Sub LB676_移動()
  7973. If 翻頁_nud.Value = 7 Or 自動移動 = True Then
  7974. Dim sx, sxx As Integer : sx = LB676.Size.Height : sxx = LB676.Location.Y : NU4 = LB677.Location.X : LB677.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7975. End Sub
  7976. Private Sub LB676_Click(sender As Object, e As EventArgs) Handles LB676.Click
  7977. PA = LB676.Text : 合約內文修改視窗.ShowDialog() : LB676.Text = PA : LB676_移動()
  7978. End Sub
  7979. Private Sub LB676_LocationChanged(sender As Object, e As EventArgs) Handles LB676.LocationChanged
  7980. LB676_移動()
  7981. End Sub
  7982. Private Sub LB676_TextChanged(sender As Object, e As EventArgs) Handles LB676.TextChanged
  7983. LB676_移動()
  7984. End Sub
  7985. '-----------------------------------------------------------------------------------------------------------------
  7986. Private Sub LB677_移動()
  7987. If 翻頁_nud.Value = 7 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB677.Size.Height : sxx = LB677.Location.Y : NU3 = LB678.Location.X : NU4 = LB679.Location.X
  7988. LB678.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB679.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  7989. End Sub
  7990. Private Sub LB677_Click(sender As Object, e As EventArgs) Handles LB677.Click
  7991. PA = LB677.Text : 合約內文修改視窗.ShowDialog() : LB677.Text = PA : LB677_移動()
  7992. End Sub
  7993. Private Sub LB677_LocationChanged(sender As Object, e As EventArgs) Handles LB677.LocationChanged
  7994. LB677_移動()
  7995. End Sub
  7996. Private Sub LB677_TextChanged(sender As Object, e As EventArgs) Handles LB677.TextChanged
  7997. LB677_移動()
  7998. End Sub
  7999. '-----------------------------------------------------------------------------------------------------------------
  8000. Private Sub LB678_Click(sender As Object, e As EventArgs) Handles LB678.Click
  8001. If 翻頁_nud.Value = 7 Or 自動移動 = True Then
  8002. NU5 = LB678.Location.X : BL1 = True : PA = LB678.Text : 合約內文修改視窗.ShowDialog() : LB678.Text = PA : BL1 = False : NU5 = 0
  8003. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB678.Location.Y : LB678.Location = New Drawing.Point(syy1, sxx)
  8004. sxx = LB679.Location.Y : LB679.Location = New Drawing.Point(syy2, sxx) : sxx = LB680.Location.Y : LB680.Location = New Drawing.Point(syy2, sxx) : End If
  8005. End Sub
  8006. '-----------------------------------------------------------------------------------------------------------------
  8007. Private Sub LB679_移動()
  8008. If 翻頁_nud.Value = 7 Or 自動移動 = True Then
  8009. Dim sx, sxx As Integer : sx = LB679.Size.Height : sxx = LB679.Location.Y : NU4 = LB680.Location.X : LB680.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8010. End Sub
  8011. Private Sub LB679_Click(sender As Object, e As EventArgs) Handles LB679.Click
  8012. PA = LB679.Text : 合約內文修改視窗.ShowDialog() : LB679.Text = PA : LB679_移動()
  8013. End Sub
  8014. Private Sub LB679_LocationChanged(sender As Object, e As EventArgs) Handles LB679.LocationChanged
  8015. LB679_移動()
  8016. End Sub
  8017. Private Sub LB679_TextChanged(sender As Object, e As EventArgs) Handles LB679.TextChanged
  8018. LB679_移動()
  8019. End Sub
  8020. '-----------------------------------------------------------------------------------------------------------------
  8021. Private Sub LB680_移動()
  8022. If 翻頁_nud.Value = 7 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB680.Size.Height : sxx = LB680.Location.Y : NU3 = LB681.Location.X : NU4 = LB682.Location.X
  8023. LB681.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB682.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8024. End Sub
  8025. Private Sub LB680_Click(sender As Object, e As EventArgs) Handles LB680.Click
  8026. PA = LB680.Text : 合約內文修改視窗.ShowDialog() : LB680.Text = PA : LB680_移動()
  8027. End Sub
  8028. Private Sub LB680_LocationChanged(sender As Object, e As EventArgs) Handles LB680.LocationChanged
  8029. LB680_移動()
  8030. End Sub
  8031. Private Sub LB680_TextChanged(sender As Object, e As EventArgs) Handles LB680.TextChanged
  8032. LB680_移動()
  8033. End Sub
  8034. '-----------------------------------------------------------------------------------------------------------------
  8035. Private Sub LB681_Click(sender As Object, e As EventArgs) Handles LB681.Click
  8036. If 翻頁_nud.Value = 7 Or 自動移動 = True Then : Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB681.Location.Y : LB681.Location = New Drawing.Point(syy1, sxx)
  8037. sxx = LB682.Location.Y : LB682.Location = New Drawing.Point(syy2, sxx) : sxx = LB683.Location.Y : LB683.Location = New Drawing.Point(syy2, sxx) : End If
  8038. End Sub
  8039. '-----------------------------------------------------------------------------------------------------------------
  8040. Private Sub LB682_移動()
  8041. If 翻頁_nud.Value = 7 Or 自動移動 = True Then
  8042. Dim sx, sxx As Integer : sx = LB682.Size.Height : sxx = LB682.Location.Y : NU4 = LB683.Location.X : LB683.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8043. End Sub
  8044. Private Sub LB682_Click(sender As Object, e As EventArgs) Handles LB682.Click
  8045. PA = LB682.Text : 合約內文修改視窗.ShowDialog() : LB682.Text = PA : LB682_移動()
  8046. End Sub
  8047. Private Sub LB682_LocationChanged(sender As Object, e As EventArgs) Handles LB682.LocationChanged
  8048. LB682_移動()
  8049. End Sub
  8050. Private Sub LB682_TextChanged(sender As Object, e As EventArgs) Handles LB682.TextChanged
  8051. LB682_移動()
  8052. End Sub
  8053. '-----------------------------------------------------------------------------------------------------------------
  8054. Private Sub LB683_Click(sender As Object, e As EventArgs) Handles LB683.Click
  8055. PA = LB683.Text : 合約內文修改視窗.ShowDialog() : LB683.Text = PA
  8056. End Sub
  8057. '---------------------------第6頁----------------------------------------------------------------------------------------------------------------------------------------------
  8058. Private Sub LB684_Click(sender As Object, e As EventArgs) Handles LB684.Click
  8059. PA = LB684.Text : 合約內文修改視窗.ShowDialog() : LB684.Text = PA
  8060. End Sub
  8061. Private Sub LB685_Click(sender As Object, e As EventArgs) Handles LB685.Click
  8062. PA = LB685.Text : 合約內文修改視窗.ShowDialog() : LB685.Text = PA
  8063. End Sub
  8064. Private Sub LB686_Click(sender As Object, e As EventArgs) Handles LB686.Click
  8065. PA = LB686.Text : 合約內文修改視窗.ShowDialog() : LB686.Text = PA
  8066. End Sub
  8067. '-----------------------------------------------------------------------------------------------------------------
  8068. Private Sub LB687_Click(sender As Object, e As EventArgs) Handles LB687.Click
  8069. If 翻頁_nud.Value = 6 Or 自動移動 = True Then
  8070. NU5 = LB687.Location.X : BL1 = True : PA = LB687.Text : 合約內文修改視窗.ShowDialog() : LB687.Text = PA : BL1 = False : NU5 = 0
  8071. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB687.Location.Y : LB687.Location = New Drawing.Point(syy1, sxx)
  8072. sxx = LB37.Location.Y : LB37.Location = New Drawing.Point(syy2, sxx) : sxx = LB38.Location.Y : LB38.Location = New Drawing.Point(syy2, sxx) : End If
  8073. End Sub
  8074. '-----------------------------------------------------------------------------------------------------------------
  8075. Private Sub LB37_移動()
  8076. If 翻頁_nud.Value = 6 Or 自動移動 = True Then
  8077. Dim sx, sxx As Integer : sx = LB37.Size.Height : sxx = LB37.Location.Y : NU4 = LB38.Location.X : LB38.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8078. End Sub
  8079. Private Sub LB37_Click(sender As Object, e As EventArgs) Handles LB37.Click
  8080. PA = LB37.Text : 合約內文修改視窗.ShowDialog() : LB37.Text = PA : LB37_移動()
  8081. End Sub
  8082. Private Sub LB37_LocationChanged(sender As Object, e As EventArgs) Handles LB37.LocationChanged
  8083. LB37_移動()
  8084. End Sub
  8085. Private Sub LB37_TextChanged(sender As Object, e As EventArgs) Handles LB37.TextChanged
  8086. LB37_移動()
  8087. End Sub
  8088. '-----------------------------------------------------------------------------------------------------------------
  8089. Private Sub LB38_移動()
  8090. If 翻頁_nud.Value = 6 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB38.Size.Height : sxx = LB38.Location.Y : NU3 = LB688.Location.X : NU4 = LB86.Location.X
  8091. LB688.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB86.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8092. End Sub
  8093. Private Sub LB38_Click(sender As Object, e As EventArgs) Handles LB38.Click
  8094. PA = LB38.Text : 合約內文修改視窗.ShowDialog() : LB38.Text = PA : LB38_移動()
  8095. End Sub
  8096. Private Sub LB38_LocationChanged(sender As Object, e As EventArgs) Handles LB38.LocationChanged
  8097. LB38_移動()
  8098. End Sub
  8099. Private Sub LB38_TextChanged(sender As Object, e As EventArgs) Handles LB38.TextChanged
  8100. LB38_移動()
  8101. End Sub
  8102. '-----------------------------------------------------------------------------------------------------------------
  8103. Private Sub LB688_Click(sender As Object, e As EventArgs) Handles LB688.Click
  8104. If 翻頁_nud.Value = 6 Or 自動移動 = True Then
  8105. NU5 = LB688.Location.X : BL1 = True : PA = LB688.Text : 合約內文修改視窗.ShowDialog() : LB688.Text = PA : BL1 = False : NU5 = 0
  8106. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB688.Location.Y : LB688.Location = New Drawing.Point(syy1, sxx)
  8107. sxx = LB86.Location.Y : LB86.Location = New Drawing.Point(syy2, sxx) : sxx = LB87.Location.Y : LB87.Location = New Drawing.Point(syy2, sxx) : End If
  8108. End Sub
  8109. '-----------------------------------------------------------------------------------------------------------------
  8110. Private Sub LB86_移動()
  8111. If 翻頁_nud.Value = 6 Or 自動移動 = True Then
  8112. Dim sx, sxx As Integer : sx = LB86.Size.Height : sxx = LB86.Location.Y : NU4 = LB87.Location.X : LB87.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8113. End Sub
  8114. Private Sub LB86_Click(sender As Object, e As EventArgs) Handles LB86.Click
  8115. PA = LB86.Text : 合約內文修改視窗.ShowDialog() : LB86.Text = PA : LB86_移動()
  8116. End Sub
  8117. Private Sub LB86_LocationChanged(sender As Object, e As EventArgs) Handles LB86.LocationChanged
  8118. LB86_移動()
  8119. End Sub
  8120. Private Sub LB86_TextChanged(sender As Object, e As EventArgs) Handles LB86.TextChanged
  8121. LB86_移動()
  8122. End Sub
  8123. '-----------------------------------------------------------------------------------------------------------------
  8124. Private Sub LB87_移動()
  8125. If 翻頁_nud.Value = 6 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB87.Size.Height : sxx = LB87.Location.Y : NU3 = LB689.Location.X : NU4 = LB88.Location.X
  8126. LB689.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB88.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8127. End Sub
  8128. Private Sub LB87_Click(sender As Object, e As EventArgs) Handles LB87.Click
  8129. PA = LB87.Text : 合約內文修改視窗.ShowDialog() : LB87.Text = PA : LB87_移動()
  8130. End Sub
  8131. Private Sub LB87_LocationChanged(sender As Object, e As EventArgs) Handles LB87.LocationChanged
  8132. LB87_移動()
  8133. End Sub
  8134. Private Sub LB87_TextChanged(sender As Object, e As EventArgs) Handles LB87.TextChanged
  8135. LB87_移動()
  8136. End Sub
  8137. '-----------------------------------------------------------------------------------------------------------------
  8138. Private Sub LB689_Click(sender As Object, e As EventArgs) Handles LB689.Click
  8139. If 翻頁_nud.Value = 6 Or 自動移動 = True Then
  8140. NU5 = LB689.Location.X : BL1 = True : PA = LB689.Text : 合約內文修改視窗.ShowDialog() : LB689.Text = PA : BL1 = False : NU5 = 0
  8141. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB689.Location.Y : LB689.Location = New Drawing.Point(syy1, sxx)
  8142. sxx = LB88.Location.Y : LB88.Location = New Drawing.Point(syy2, sxx) : sxx = LB89.Location.Y : LB89.Location = New Drawing.Point(syy2, sxx) : End If
  8143. End Sub
  8144. '-----------------------------------------------------------------------------------------------------------------
  8145. Private Sub LB88_移動()
  8146. If 翻頁_nud.Value = 6 Or 自動移動 = True Then
  8147. Dim sx, sxx As Integer : sx = LB88.Size.Height : sxx = LB88.Location.Y : NU4 = LB89.Location.X : LB89.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8148. End Sub
  8149. Private Sub LB88_Click(sender As Object, e As EventArgs) Handles LB88.Click
  8150. PA = LB88.Text : 合約內文修改視窗.ShowDialog() : LB88.Text = PA : LB88_移動()
  8151. End Sub
  8152. Private Sub LB88_LocationChanged(sender As Object, e As EventArgs) Handles LB88.LocationChanged
  8153. LB88_移動()
  8154. End Sub
  8155. Private Sub LB88_TextChanged(sender As Object, e As EventArgs) Handles LB88.TextChanged
  8156. LB88_移動()
  8157. End Sub
  8158. '-----------------------------------------------------------------------------------------------------------------
  8159. Private Sub LB89_移動()
  8160. If 翻頁_nud.Value = 6 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB89.Size.Height : sxx = LB89.Location.Y : NU3 = LB690.Location.X : NU4 = LB90.Location.X
  8161. LB690.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB90.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8162. End Sub
  8163. Private Sub LB89_Click(sender As Object, e As EventArgs) Handles LB89.Click
  8164. PA = LB89.Text : 合約內文修改視窗.ShowDialog() : LB89.Text = PA : LB89_移動()
  8165. End Sub
  8166. Private Sub LB89_LocationChanged(sender As Object, e As EventArgs) Handles LB89.LocationChanged
  8167. LB89_移動()
  8168. End Sub
  8169. Private Sub LB89_TextChanged(sender As Object, e As EventArgs) Handles LB89.TextChanged
  8170. LB89_移動()
  8171. End Sub
  8172. '-----------------------------------------------------------------------------------------------------------------
  8173. Private Sub LB690_Click(sender As Object, e As EventArgs) Handles LB690.Click
  8174. If 翻頁_nud.Value = 6 Or 自動移動 = True Then
  8175. NU5 = LB690.Location.X : BL1 = True : PA = LB690.Text : 合約內文修改視窗.ShowDialog() : LB690.Text = PA : BL1 = False : NU5 = 0
  8176. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB690.Location.Y : LB690.Location = New Drawing.Point(syy1, sxx)
  8177. sxx = LB90.Location.Y : LB90.Location = New Drawing.Point(syy2, sxx) : sxx = LB91.Location.Y : LB91.Location = New Drawing.Point(syy2, sxx) : End If
  8178. End Sub
  8179. '-----------------------------------------------------------------------------------------------------------------
  8180. Private Sub LB90_移動()
  8181. If 翻頁_nud.Value = 6 Or 自動移動 = True Then
  8182. Dim sx, sxx As Integer : sx = LB90.Size.Height : sxx = LB90.Location.Y : NU4 = LB91.Location.X : LB91.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8183. End Sub
  8184. Private Sub LB90_Click(sender As Object, e As EventArgs) Handles LB90.Click
  8185. PA = LB90.Text : 合約內文修改視窗.ShowDialog() : LB90.Text = PA : LB90_移動()
  8186. End Sub
  8187. Private Sub LB90_LocationChanged(sender As Object, e As EventArgs) Handles LB90.LocationChanged
  8188. LB90_移動()
  8189. End Sub
  8190. Private Sub LB90_TextChanged(sender As Object, e As EventArgs) Handles LB90.TextChanged
  8191. LB90_移動()
  8192. End Sub
  8193. '-----------------------------------------------------------------------------------------------------------------
  8194. Private Sub LB91_移動()
  8195. If 翻頁_nud.Value = 6 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB91.Size.Height : sxx = LB91.Location.Y : NU3 = LB691.Location.X : NU4 = LB92.Location.X
  8196. LB691.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB92.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8197. End Sub
  8198. Private Sub LB91_Click(sender As Object, e As EventArgs) Handles LB91.Click
  8199. PA = LB91.Text : 合約內文修改視窗.ShowDialog() : LB91.Text = PA : LB91_移動()
  8200. End Sub
  8201. Private Sub LB91_LocationChanged(sender As Object, e As EventArgs) Handles LB91.LocationChanged
  8202. LB91_移動()
  8203. End Sub
  8204. Private Sub LB91_TextChanged(sender As Object, e As EventArgs) Handles LB91.TextChanged
  8205. LB91_移動()
  8206. End Sub
  8207. '-----------------------------------------------------------------------------------------------------------------
  8208. Private Sub LB691_Click(sender As Object, e As EventArgs) Handles LB691.Click
  8209. If 翻頁_nud.Value = 6 Or 自動移動 = True Then
  8210. NU5 = LB691.Location.X : BL1 = True : PA = LB691.Text : 合約內文修改視窗.ShowDialog() : LB691.Text = PA : BL1 = False : NU5 = 0
  8211. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB691.Location.Y : LB691.Location = New Drawing.Point(syy1, sxx)
  8212. sxx = LB92.Location.Y : LB92.Location = New Drawing.Point(syy2, sxx) : sxx = LB93.Location.Y : LB93.Location = New Drawing.Point(syy2, sxx) : End If
  8213. End Sub
  8214. '-----------------------------------------------------------------------------------------------------------------
  8215. Private Sub LB92_移動()
  8216. If 翻頁_nud.Value = 6 Or 自動移動 = True Then
  8217. Dim sx, sxx As Integer : sx = LB92.Size.Height : sxx = LB92.Location.Y : NU4 = LB93.Location.X : LB93.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8218. End Sub
  8219. Private Sub LB92_Click(sender As Object, e As EventArgs) Handles LB92.Click
  8220. PA = LB92.Text : 合約內文修改視窗.ShowDialog() : LB92.Text = PA : LB92_移動()
  8221. End Sub
  8222. Private Sub LB92_LocationChanged(sender As Object, e As EventArgs) Handles LB92.LocationChanged
  8223. LB92_移動()
  8224. End Sub
  8225. Private Sub LB92_TextChanged(sender As Object, e As EventArgs) Handles LB92.TextChanged
  8226. LB92_移動()
  8227. End Sub
  8228. '-----------------------------------------------------------------------------------------------------------------
  8229. Private Sub LB93_移動()
  8230. If 翻頁_nud.Value = 6 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB93.Size.Height : sxx = LB93.Location.Y : NU3 = LB692.Location.X : NU4 = LB693.Location.X
  8231. LB692.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB693.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8232. End Sub
  8233. Private Sub LB93_Click(sender As Object, e As EventArgs) Handles LB93.Click
  8234. PA = LB93.Text : 合約內文修改視窗.ShowDialog() : LB93.Text = PA : LB93_移動()
  8235. End Sub
  8236. Private Sub LB93_LocationChanged(sender As Object, e As EventArgs) Handles LB93.LocationChanged
  8237. LB93_移動()
  8238. End Sub
  8239. Private Sub LB93_TextChanged(sender As Object, e As EventArgs) Handles LB93.TextChanged
  8240. LB93_移動()
  8241. End Sub
  8242. '-----------------------------------------------------------------------------------------------------------------
  8243. Private Sub LB692_Click(sender As Object, e As EventArgs) Handles LB692.Click
  8244. If 翻頁_nud.Value = 6 Or 自動移動 = True Then
  8245. NU5 = LB692.Location.X : BL1 = True : PA = LB692.Text : 合約內文修改視窗.ShowDialog() : LB692.Text = PA : BL1 = False : NU5 = 0
  8246. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB692.Location.Y : LB692.Location = New Drawing.Point(syy1, sxx)
  8247. sxx = LB693.Location.Y : LB693.Location = New Drawing.Point(syy2, sxx) : sxx = LB694.Location.Y : LB694.Location = New Drawing.Point(syy2, sxx) : End If
  8248. End Sub
  8249. '-----------------------------------------------------------------------------------------------------------------
  8250. Private Sub LB693_移動()
  8251. If 翻頁_nud.Value = 6 Or 自動移動 = True Then
  8252. Dim sx, sxx As Integer : sx = LB693.Size.Height : sxx = LB693.Location.Y : NU4 = LB694.Location.X : LB694.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8253. End Sub
  8254. Private Sub LB693_Click(sender As Object, e As EventArgs) Handles LB693.Click
  8255. PA = LB693.Text : 合約內文修改視窗.ShowDialog() : LB693.Text = PA : LB693_移動()
  8256. End Sub
  8257. Private Sub LB693_LocationChanged(sender As Object, e As EventArgs) Handles LB693.LocationChanged
  8258. LB693_移動()
  8259. End Sub
  8260. Private Sub LB693_TextChanged(sender As Object, e As EventArgs) Handles LB693.TextChanged
  8261. LB693_移動()
  8262. End Sub
  8263. '-----------------------------------------------------------------------------------------------------------------
  8264. Private Sub LB694_移動()
  8265. If 翻頁_nud.Value = 6 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB694.Size.Height : sxx = LB694.Location.Y : NU3 = LB695.Location.X : NU4 = LB696.Location.X
  8266. LB695.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB696.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8267. End Sub
  8268. Private Sub LB694_Click(sender As Object, e As EventArgs) Handles LB694.Click
  8269. PA = LB694.Text : 合約內文修改視窗.ShowDialog() : LB694.Text = PA : LB694_移動()
  8270. End Sub
  8271. Private Sub LB694_LocationChanged(sender As Object, e As EventArgs) Handles LB694.LocationChanged
  8272. LB694_移動()
  8273. End Sub
  8274. Private Sub LB694_TextChanged(sender As Object, e As EventArgs) Handles LB694.TextChanged
  8275. LB694_移動()
  8276. End Sub
  8277. '-----------------------------------------------------------------------------------------------------------------
  8278. Private Sub LB695_Click(sender As Object, e As EventArgs) Handles LB695.Click
  8279. If 翻頁_nud.Value = 6 Or 自動移動 = True Then
  8280. NU5 = LB695.Location.X : BL1 = True : PA = LB695.Text : 合約內文修改視窗.ShowDialog() : LB695.Text = PA : BL1 = False : NU5 = 0
  8281. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB695.Location.Y : LB695.Location = New Drawing.Point(syy1, sxx)
  8282. sxx = LB696.Location.Y : LB696.Location = New Drawing.Point(syy2, sxx) : sxx = LB697.Location.Y : LB697.Location = New Drawing.Point(syy2, sxx) : End If
  8283. End Sub
  8284. '-----------------------------------------------------------------------------------------------------------------
  8285. Private Sub LB696_移動()
  8286. If 翻頁_nud.Value = 6 Or 自動移動 = True Then
  8287. Dim sx, sxx As Integer : sx = LB696.Size.Height : sxx = LB696.Location.Y : NU4 = LB697.Location.X : LB697.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8288. End Sub
  8289. Private Sub LB696_Click(sender As Object, e As EventArgs) Handles LB696.Click
  8290. PA = LB696.Text : 合約內文修改視窗.ShowDialog() : LB696.Text = PA : LB696_移動()
  8291. End Sub
  8292. Private Sub LB696_LocationChanged(sender As Object, e As EventArgs) Handles LB696.LocationChanged
  8293. LB696_移動()
  8294. End Sub
  8295. Private Sub LB696_TextChanged(sender As Object, e As EventArgs) Handles LB696.TextChanged
  8296. LB696_移動()
  8297. End Sub
  8298. '-----------------------------------------------------------------------------------------------------------------
  8299. Private Sub LB697_移動()
  8300. If 翻頁_nud.Value = 6 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB697.Size.Height : sxx = LB697.Location.Y : NU3 = LB698.Location.X : NU4 = LB699.Location.X
  8301. LB698.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB699.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8302. End Sub
  8303. Private Sub LB697_Click(sender As Object, e As EventArgs) Handles LB697.Click
  8304. PA = LB697.Text : 合約內文修改視窗.ShowDialog() : LB697.Text = PA : LB697_移動()
  8305. End Sub
  8306. Private Sub LB697_LocationChanged(sender As Object, e As EventArgs) Handles LB697.LocationChanged
  8307. LB697_移動()
  8308. End Sub
  8309. Private Sub LB697_TextChanged(sender As Object, e As EventArgs) Handles LB697.TextChanged
  8310. LB697_移動()
  8311. End Sub
  8312. '-----------------------------------------------------------------------------------------------------------------
  8313. Private Sub LB698_Click(sender As Object, e As EventArgs) Handles LB698.Click
  8314. If 翻頁_nud.Value = 6 Or 自動移動 = True Then
  8315. NU5 = LB698.Location.X : BL1 = True : PA = LB698.Text : 合約內文修改視窗.ShowDialog() : LB698.Text = PA : BL1 = False : NU5 = 0
  8316. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB698.Location.Y : LB698.Location = New Drawing.Point(syy1, sxx)
  8317. sxx = LB699.Location.Y : LB699.Location = New Drawing.Point(syy2, sxx) : sxx = LB700.Location.Y : LB700.Location = New Drawing.Point(syy2, sxx) : End If
  8318. End Sub
  8319. '-----------------------------------------------------------------------------------------------------------------
  8320. Private Sub LB699_移動()
  8321. If 翻頁_nud.Value = 6 Or 自動移動 = True Then
  8322. Dim sx, sxx As Integer : sx = LB699.Size.Height : sxx = LB699.Location.Y : NU4 = LB700.Location.X : LB700.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8323. End Sub
  8324. Private Sub LB699_Click(sender As Object, e As EventArgs) Handles LB699.Click
  8325. PA = LB699.Text : 合約內文修改視窗.ShowDialog() : LB699.Text = PA : LB699_移動()
  8326. End Sub
  8327. Private Sub LB699_LocationChanged(sender As Object, e As EventArgs) Handles LB699.LocationChanged
  8328. LB699_移動()
  8329. End Sub
  8330. Private Sub LB699_TextChanged(sender As Object, e As EventArgs) Handles LB699.TextChanged
  8331. LB699_移動()
  8332. End Sub
  8333. '-----------------------------------------------------------------------------------------------------------------
  8334. Private Sub LB700_移動()
  8335. If 翻頁_nud.Value = 6 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB700.Size.Height : sxx = LB700.Location.Y : NU3 = LB701.Location.X : NU4 = LB702.Location.X
  8336. LB701.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB702.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8337. End Sub
  8338. Private Sub LB700_Click(sender As Object, e As EventArgs) Handles LB700.Click
  8339. PA = LB700.Text : 合約內文修改視窗.ShowDialog() : LB700.Text = PA : LB700_移動()
  8340. End Sub
  8341. Private Sub LB700_LocationChanged(sender As Object, e As EventArgs) Handles LB700.LocationChanged
  8342. LB700_移動()
  8343. End Sub
  8344. Private Sub LB700_TextChanged(sender As Object, e As EventArgs) Handles LB700.TextChanged
  8345. LB700_移動()
  8346. End Sub
  8347. '-----------------------------------------------------------------------------------------------------------------
  8348. Private Sub LB701_Click(sender As Object, e As EventArgs) Handles LB701.Click
  8349. If 翻頁_nud.Value = 6 Or 自動移動 = True Then
  8350. NU5 = LB701.Location.X : BL1 = True : PA = LB701.Text : 合約內文修改視窗.ShowDialog() : LB701.Text = PA : BL1 = False : NU5 = 0
  8351. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB701.Location.Y : LB701.Location = New Drawing.Point(syy1, sxx)
  8352. sxx = LB702.Location.Y : LB702.Location = New Drawing.Point(syy2, sxx) : sxx = LB703.Location.Y : LB703.Location = New Drawing.Point(syy2, sxx) : End If
  8353. End Sub
  8354. '-----------------------------------------------------------------------------------------------------------------
  8355. Private Sub LB702_移動()
  8356. If 翻頁_nud.Value = 6 Or 自動移動 = True Then
  8357. Dim sx, sxx As Integer : sx = LB702.Size.Height : sxx = LB702.Location.Y : NU4 = LB703.Location.X : LB703.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8358. End Sub
  8359. Private Sub LB702_Click(sender As Object, e As EventArgs) Handles LB702.Click
  8360. PA = LB702.Text : 合約內文修改視窗.ShowDialog() : LB702.Text = PA : LB702_移動()
  8361. End Sub
  8362. Private Sub LB702_LocationChanged(sender As Object, e As EventArgs) Handles LB702.LocationChanged
  8363. LB702_移動()
  8364. End Sub
  8365. Private Sub LB702_TextChanged(sender As Object, e As EventArgs) Handles LB702.TextChanged
  8366. LB702_移動()
  8367. End Sub
  8368. '-----------------------------------------------------------------------------------------------------------------
  8369. Private Sub LB703_移動()
  8370. If 翻頁_nud.Value = 6 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB703.Size.Height : sxx = LB703.Location.Y : NU3 = LB704.Location.X : NU4 = LB705.Location.X
  8371. LB704.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB705.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8372. End Sub
  8373. Private Sub LB703_Click(sender As Object, e As EventArgs) Handles LB703.Click
  8374. PA = LB703.Text : 合約內文修改視窗.ShowDialog() : LB703.Text = PA : LB703_移動()
  8375. End Sub
  8376. Private Sub LB703_LocationChanged(sender As Object, e As EventArgs) Handles LB703.LocationChanged
  8377. LB703_移動()
  8378. End Sub
  8379. Private Sub LB703_TextChanged(sender As Object, e As EventArgs) Handles LB703.TextChanged
  8380. LB703_移動()
  8381. End Sub
  8382. '-----------------------------------------------------------------------------------------------------------------
  8383. Private Sub LB704_Click(sender As Object, e As EventArgs) Handles LB704.Click
  8384. If 翻頁_nud.Value = 6 Or 自動移動 = True Then
  8385. NU5 = LB704.Location.X : BL1 = True : PA = LB704.Text : 合約內文修改視窗.ShowDialog() : LB704.Text = PA : BL1 = False : NU5 = 0
  8386. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB704.Location.Y : LB704.Location = New Drawing.Point(syy1, sxx)
  8387. sxx = LB705.Location.Y : LB705.Location = New Drawing.Point(syy2, sxx) : sxx = LB706.Location.Y : LB706.Location = New Drawing.Point(syy2, sxx) : End If
  8388. End Sub
  8389. '-----------------------------------------------------------------------------------------------------------------
  8390. Private Sub LB705_移動()
  8391. If 翻頁_nud.Value = 6 Or 自動移動 = True Then
  8392. Dim sx, sxx As Integer : sx = LB705.Size.Height : sxx = LB705.Location.Y : NU4 = LB706.Location.X : LB706.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8393. End Sub
  8394. Private Sub LB705_Click(sender As Object, e As EventArgs) Handles LB705.Click
  8395. PA = LB705.Text : 合約內文修改視窗.ShowDialog() : LB705.Text = PA : LB705_移動()
  8396. End Sub
  8397. Private Sub LB705_LocationChanged(sender As Object, e As EventArgs) Handles LB705.LocationChanged
  8398. LB705_移動()
  8399. End Sub
  8400. Private Sub LB705_TextChanged(sender As Object, e As EventArgs) Handles LB705.TextChanged
  8401. LB705_移動()
  8402. End Sub
  8403. '-----------------------------------------------------------------------------------------------------------------
  8404. Private Sub LB706_移動()
  8405. If 翻頁_nud.Value = 6 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB706.Size.Height : sxx = LB706.Location.Y : NU3 = LB707.Location.X : NU4 = LB708.Location.X
  8406. LB707.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB708.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8407. End Sub
  8408. Private Sub LB706_Click(sender As Object, e As EventArgs) Handles LB706.Click
  8409. PA = LB706.Text : 合約內文修改視窗.ShowDialog() : LB706.Text = PA : LB706_移動()
  8410. End Sub
  8411. Private Sub LB706_LocationChanged(sender As Object, e As EventArgs) Handles LB706.LocationChanged
  8412. LB706_移動()
  8413. End Sub
  8414. Private Sub LB706_TextChanged(sender As Object, e As EventArgs) Handles LB706.TextChanged
  8415. LB706_移動()
  8416. End Sub
  8417. '-----------------------------------------------------------------------------------------------------------------
  8418. Private Sub LB707_Click(sender As Object, e As EventArgs) Handles LB707.Click
  8419. If 翻頁_nud.Value = 6 Or 自動移動 = True Then
  8420. NU5 = LB707.Location.X : BL1 = True : PA = LB707.Text : 合約內文修改視窗.ShowDialog() : LB707.Text = PA : BL1 = False : NU5 = 0
  8421. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB707.Location.Y : LB707.Location = New Drawing.Point(syy1, sxx)
  8422. sxx = LB708.Location.Y : LB708.Location = New Drawing.Point(syy2, sxx) : sxx = LB709.Location.Y : LB709.Location = New Drawing.Point(syy2, sxx) : End If
  8423. End Sub
  8424. '-----------------------------------------------------------------------------------------------------------------
  8425. Private Sub LB708_移動()
  8426. If 翻頁_nud.Value = 6 Or 自動移動 = True Then
  8427. Dim sx, sxx As Integer : sx = LB708.Size.Height : sxx = LB708.Location.Y : NU4 = LB709.Location.X : LB709.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8428. End Sub
  8429. Private Sub LB708_Click(sender As Object, e As EventArgs) Handles LB708.Click
  8430. PA = LB708.Text : 合約內文修改視窗.ShowDialog() : LB708.Text = PA : LB708_移動()
  8431. End Sub
  8432. Private Sub LB708_LocationChanged(sender As Object, e As EventArgs) Handles LB708.LocationChanged
  8433. LB708_移動()
  8434. End Sub
  8435. Private Sub LB708_TextChanged(sender As Object, e As EventArgs) Handles LB708.TextChanged
  8436. LB708_移動()
  8437. End Sub
  8438. '-----------------------------------------------------------------------------------------------------------------
  8439. Private Sub LB709_移動()
  8440. If 翻頁_nud.Value = 6 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB709.Size.Height : sxx = LB709.Location.Y : NU3 = LB710.Location.X : NU4 = LB711.Location.X
  8441. LB710.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB711.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8442. End Sub
  8443. Private Sub LB709_Click(sender As Object, e As EventArgs) Handles LB709.Click
  8444. PA = LB709.Text : 合約內文修改視窗.ShowDialog() : LB709.Text = PA : LB709_移動()
  8445. End Sub
  8446. Private Sub LB709_LocationChanged(sender As Object, e As EventArgs) Handles LB709.LocationChanged
  8447. LB709_移動()
  8448. End Sub
  8449. Private Sub LB709_TextChanged(sender As Object, e As EventArgs) Handles LB709.TextChanged
  8450. LB709_移動()
  8451. End Sub
  8452. '-----------------------------------------------------------------------------------------------------------------
  8453. Private Sub LB710_Click(sender As Object, e As EventArgs) Handles LB710.Click
  8454. If 翻頁_nud.Value = 6 Or 自動移動 = True Then
  8455. NU5 = LB710.Location.X : BL1 = True : PA = LB710.Text : 合約內文修改視窗.ShowDialog() : LB710.Text = PA : BL1 = False : NU5 = 0
  8456. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB710.Location.Y : LB710.Location = New Drawing.Point(syy1, sxx)
  8457. sxx = LB711.Location.Y : LB711.Location = New Drawing.Point(syy2, sxx) : sxx = LB712.Location.Y : LB712.Location = New Drawing.Point(syy2, sxx) : End If
  8458. End Sub
  8459. '-----------------------------------------------------------------------------------------------------------------
  8460. Private Sub LB711_移動()
  8461. If 翻頁_nud.Value = 6 Or 自動移動 = True Then
  8462. Dim sx, sxx As Integer : sx = LB711.Size.Height : sxx = LB711.Location.Y : NU4 = LB712.Location.X : LB712.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8463. End Sub
  8464. Private Sub LB711_Click(sender As Object, e As EventArgs) Handles LB711.Click
  8465. PA = LB711.Text : 合約內文修改視窗.ShowDialog() : LB711.Text = PA : LB711_移動()
  8466. End Sub
  8467. Private Sub LB711_LocationChanged(sender As Object, e As EventArgs) Handles LB711.LocationChanged
  8468. LB711_移動()
  8469. End Sub
  8470. Private Sub LB711_TextChanged(sender As Object, e As EventArgs) Handles LB711.TextChanged
  8471. LB711_移動()
  8472. End Sub
  8473. '-----------------------------------------------------------------------------------------------------------------
  8474. Private Sub LB712_移動()
  8475. If 翻頁_nud.Value = 6 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB712.Size.Height : sxx = LB712.Location.Y : NU3 = LB713.Location.X : NU4 = LB714.Location.X
  8476. LB713.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB714.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8477. End Sub
  8478. Private Sub LB712_Click(sender As Object, e As EventArgs) Handles LB712.Click
  8479. PA = LB712.Text : 合約內文修改視窗.ShowDialog() : LB712.Text = PA : LB712_移動()
  8480. End Sub
  8481. Private Sub LB712_LocationChanged(sender As Object, e As EventArgs) Handles LB712.LocationChanged
  8482. LB712_移動()
  8483. End Sub
  8484. Private Sub LB712_TextChanged(sender As Object, e As EventArgs) Handles LB712.TextChanged
  8485. LB712_移動()
  8486. End Sub
  8487. '-----------------------------------------------------------------------------------------------------------------
  8488. Private Sub LB713_Click(sender As Object, e As EventArgs) Handles LB713.Click
  8489. If 翻頁_nud.Value = 6 Or 自動移動 = True Then
  8490. NU5 = LB713.Location.X : BL1 = True : PA = LB713.Text : 合約內文修改視窗.ShowDialog() : LB713.Text = PA : BL1 = False : NU5 = 0
  8491. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB713.Location.Y : LB713.Location = New Drawing.Point(syy1, sxx)
  8492. sxx = LB714.Location.Y : LB714.Location = New Drawing.Point(syy2, sxx) : sxx = LB715.Location.Y : LB715.Location = New Drawing.Point(syy2, sxx) : End If
  8493. End Sub
  8494. '-----------------------------------------------------------------------------------------------------------------
  8495. Private Sub LB714_移動()
  8496. If 翻頁_nud.Value = 6 Or 自動移動 = True Then
  8497. Dim sx, sxx As Integer : sx = LB714.Size.Height : sxx = LB714.Location.Y : NU4 = LB715.Location.X : LB715.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8498. End Sub
  8499. Private Sub LB714_Click(sender As Object, e As EventArgs) Handles LB714.Click
  8500. PA = LB714.Text : 合約內文修改視窗.ShowDialog() : LB714.Text = PA : LB714_移動()
  8501. End Sub
  8502. Private Sub LB714_LocationChanged(sender As Object, e As EventArgs) Handles LB714.LocationChanged
  8503. LB714_移動()
  8504. End Sub
  8505. Private Sub LB714_TextChanged(sender As Object, e As EventArgs) Handles LB714.TextChanged
  8506. LB714_移動()
  8507. End Sub
  8508. '-----------------------------------------------------------------------------------------------------------------
  8509. Private Sub LB715_移動()
  8510. If 翻頁_nud.Value = 6 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB715.Size.Height : sxx = LB715.Location.Y : NU3 = LB716.Location.X : NU4 = LB717.Location.X
  8511. LB716.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB717.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8512. End Sub
  8513. Private Sub LB715_Click(sender As Object, e As EventArgs) Handles LB715.Click
  8514. PA = LB715.Text : 合約內文修改視窗.ShowDialog() : LB715.Text = PA : LB715_移動()
  8515. End Sub
  8516. Private Sub LB715_LocationChanged(sender As Object, e As EventArgs) Handles LB715.LocationChanged
  8517. LB715_移動()
  8518. End Sub
  8519. Private Sub LB715_TextChanged(sender As Object, e As EventArgs) Handles LB715.TextChanged
  8520. LB715_移動()
  8521. End Sub
  8522. '-----------------------------------------------------------------------------------------------------------------
  8523. Private Sub LB716_Click(sender As Object, e As EventArgs) Handles LB716.Click
  8524. If 翻頁_nud.Value = 6 Or 自動移動 = True Then
  8525. NU5 = LB716.Location.X : BL1 = True : PA = LB716.Text : 合約內文修改視窗.ShowDialog() : LB716.Text = PA : BL1 = False : NU5 = 0
  8526. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB716.Location.Y : LB716.Location = New Drawing.Point(syy1, sxx)
  8527. sxx = LB717.Location.Y : LB717.Location = New Drawing.Point(syy2, sxx) : sxx = LB718.Location.Y : LB718.Location = New Drawing.Point(syy2, sxx) : End If
  8528. End Sub
  8529. '-----------------------------------------------------------------------------------------------------------------
  8530. Private Sub LB717_移動()
  8531. If 翻頁_nud.Value = 6 Or 自動移動 = True Then
  8532. Dim sx, sxx As Integer : sx = LB717.Size.Height : sxx = LB717.Location.Y : NU4 = LB718.Location.X : LB718.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8533. End Sub
  8534. Private Sub LB717_Click(sender As Object, e As EventArgs) Handles LB717.Click
  8535. PA = LB717.Text : 合約內文修改視窗.ShowDialog() : LB717.Text = PA : LB717_移動()
  8536. End Sub
  8537. Private Sub LB717_LocationChanged(sender As Object, e As EventArgs) Handles LB717.LocationChanged
  8538. LB717_移動()
  8539. End Sub
  8540. Private Sub LB717_TextChanged(sender As Object, e As EventArgs) Handles LB717.TextChanged
  8541. LB717_移動()
  8542. End Sub
  8543. '-----------------------------------------------------------------------------------------------------------------
  8544. Private Sub LB718_Click(sender As Object, e As EventArgs) Handles LB718.Click
  8545. PA = LB718.Text : 合約內文修改視窗.ShowDialog() : LB718.Text = PA
  8546. End Sub
  8547. '---------------------------第4頁----------------------------------------------------------------------------------------------------------------------------------------------
  8548. Private Sub LB719_Click(sender As Object, e As EventArgs) Handles LB719.Click
  8549. If 翻頁_nud.Value = 4 Or 自動移動 = True Then
  8550. NU5 = LB719.Location.X : BL1 = True : PA = LB719.Text : 合約內文修改視窗.ShowDialog() : LB719.Text = PA : BL1 = False : NU5 = 0
  8551. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB719.Location.Y : LB719.Location = New Drawing.Point(syy1, sxx)
  8552. sxx = LB31.Location.Y : LB31.Location = New Drawing.Point(syy2, sxx) : sxx = LB32.Location.Y : LB32.Location = New Drawing.Point(syy2, sxx) : End If
  8553. End Sub
  8554. '-----------------------------------------------------------------------------------------------------------------
  8555. Private Sub LB31_移動()
  8556. If 翻頁_nud.Value = 4 Or 自動移動 = True Then
  8557. Dim sx, sxx As Integer : sx = LB31.Size.Height : sxx = LB31.Location.Y : NU4 = LB32.Location.X : LB32.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8558. End Sub
  8559. Private Sub LB31_Click(sender As Object, e As EventArgs) Handles LB31.Click
  8560. PA = LB31.Text : 合約內文修改視窗.ShowDialog() : LB31.Text = PA : LB31_移動()
  8561. End Sub
  8562. Private Sub LB31_LocationChanged(sender As Object, e As EventArgs) Handles LB31.LocationChanged
  8563. LB31_移動()
  8564. End Sub
  8565. Private Sub LB31_TextChanged(sender As Object, e As EventArgs) Handles LB31.TextChanged
  8566. LB31_移動()
  8567. End Sub
  8568. '-----------------------------------------------------------------------------------------------------------------
  8569. Private Sub LB32_移動()
  8570. If 翻頁_nud.Value = 4 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB32.Size.Height : sxx = LB32.Location.Y : NU3 = LB720.Location.X : NU4 = LB35.Location.X
  8571. LB720.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB35.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8572. End Sub
  8573. Private Sub LB32_Click(sender As Object, e As EventArgs) Handles LB32.Click
  8574. PA = LB32.Text : 合約內文修改視窗.ShowDialog() : LB32.Text = PA : LB32_移動()
  8575. End Sub
  8576. Private Sub LB32_LocationChanged(sender As Object, e As EventArgs) Handles LB32.LocationChanged
  8577. LB32_移動()
  8578. End Sub
  8579. Private Sub LB32_TextChanged(sender As Object, e As EventArgs) Handles LB32.TextChanged
  8580. LB32_移動()
  8581. End Sub
  8582. '-----------------------------------------------------------------------------------------------------------------
  8583. Private Sub LB720_Click(sender As Object, e As EventArgs) Handles LB720.Click
  8584. If 翻頁_nud.Value = 4 Or 自動移動 = True Then
  8585. NU5 = LB720.Location.X : BL1 = True : PA = LB720.Text : 合約內文修改視窗.ShowDialog() : LB720.Text = PA : BL1 = False : NU5 = 0
  8586. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB720.Location.Y : LB720.Location = New Drawing.Point(syy1, sxx)
  8587. sxx = LB35.Location.Y : LB35.Location = New Drawing.Point(syy2, sxx) : sxx = LB36.Location.Y : LB36.Location = New Drawing.Point(syy2, sxx) : End If
  8588. End Sub
  8589. '-----------------------------------------------------------------------------------------------------------------
  8590. Private Sub LB35_移動()
  8591. If 翻頁_nud.Value = 4 Or 自動移動 = True Then
  8592. Dim sx, sxx As Integer : sx = LB35.Size.Height : sxx = LB35.Location.Y : NU4 = LB36.Location.X : LB36.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8593. End Sub
  8594. Private Sub LB35_Click(sender As Object, e As EventArgs) Handles LB35.Click
  8595. PA = LB35.Text : 合約內文修改視窗.ShowDialog() : LB35.Text = PA : LB35_移動()
  8596. End Sub
  8597. Private Sub LB35_LocationChanged(sender As Object, e As EventArgs) Handles LB35.LocationChanged
  8598. LB35_移動()
  8599. End Sub
  8600. Private Sub LB35_TextChanged(sender As Object, e As EventArgs) Handles LB35.TextChanged
  8601. LB35_移動()
  8602. End Sub
  8603. '-----------------------------------------------------------------------------------------------------------------
  8604. Private Sub LB36_移動()
  8605. If 翻頁_nud.Value = 4 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB36.Size.Height : sxx = LB36.Location.Y : NU3 = LB721.Location.X : NU4 = LB722.Location.X
  8606. LB721.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB722.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8607. End Sub
  8608. Private Sub LB36_Click(sender As Object, e As EventArgs) Handles LB36.Click
  8609. PA = LB36.Text : 合約內文修改視窗.ShowDialog() : LB36.Text = PA : LB36_移動()
  8610. End Sub
  8611. Private Sub LB36_LocationChanged(sender As Object, e As EventArgs) Handles LB36.LocationChanged
  8612. LB36_移動()
  8613. End Sub
  8614. Private Sub LB36_TextChanged(sender As Object, e As EventArgs) Handles LB36.TextChanged
  8615. LB36_移動()
  8616. End Sub
  8617. '-----------------------------------------------------------------------------------------------------------------
  8618. Private Sub LB721_Click(sender As Object, e As EventArgs) Handles LB721.Click
  8619. If 翻頁_nud.Value = 4 Or 自動移動 = True Then
  8620. NU5 = LB721.Location.X : BL1 = True : PA = LB721.Text : 合約內文修改視窗.ShowDialog() : LB721.Text = PA : BL1 = False : NU5 = 0
  8621. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB721.Location.Y : LB721.Location = New Drawing.Point(syy1, sxx)
  8622. sxx = LB722.Location.Y : LB722.Location = New Drawing.Point(syy2, sxx) : sxx = LB723.Location.Y : LB723.Location = New Drawing.Point(syy2, sxx) : End If
  8623. End Sub
  8624. '-----------------------------------------------------------------------------------------------------------------
  8625. Private Sub LB722_移動()
  8626. If 翻頁_nud.Value = 4 Or 自動移動 = True Then
  8627. Dim sx, sxx As Integer : sx = LB722.Size.Height : sxx = LB722.Location.Y : NU4 = LB723.Location.X : LB723.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8628. End Sub
  8629. Private Sub LB722_Click(sender As Object, e As EventArgs) Handles LB722.Click
  8630. PA = LB722.Text : 合約內文修改視窗.ShowDialog() : LB722.Text = PA : LB722_移動()
  8631. End Sub
  8632. Private Sub LB722_LocationChanged(sender As Object, e As EventArgs) Handles LB722.LocationChanged
  8633. LB722_移動()
  8634. End Sub
  8635. Private Sub LB722_TextChanged(sender As Object, e As EventArgs) Handles LB722.TextChanged
  8636. LB722_移動()
  8637. End Sub
  8638. '-----------------------------------------------------------------------------------------------------------------
  8639. Private Sub LB723_移動()
  8640. If 翻頁_nud.Value = 4 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB723.Size.Height : sxx = LB723.Location.Y : NU3 = LB724.Location.X : NU4 = LB725.Location.X
  8641. LB724.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB725.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8642. End Sub
  8643. Private Sub LB723_Click(sender As Object, e As EventArgs) Handles LB723.Click
  8644. PA = LB723.Text : 合約內文修改視窗.ShowDialog() : LB723.Text = PA : LB723_移動()
  8645. End Sub
  8646. Private Sub LB723_LocationChanged(sender As Object, e As EventArgs) Handles LB723.LocationChanged
  8647. LB723_移動()
  8648. End Sub
  8649. Private Sub LB723_TextChanged(sender As Object, e As EventArgs) Handles LB723.TextChanged
  8650. LB723_移動()
  8651. End Sub
  8652. '-----------------------------------------------------------------------------------------------------------------
  8653. Private Sub LB724_Click(sender As Object, e As EventArgs) Handles LB724.Click
  8654. If 翻頁_nud.Value = 4 Or 自動移動 = True Then
  8655. NU5 = LB724.Location.X : BL1 = True : PA = LB724.Text : 合約內文修改視窗.ShowDialog() : LB724.Text = PA : BL1 = False : NU5 = 0
  8656. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB724.Location.Y : LB724.Location = New Drawing.Point(syy1, sxx)
  8657. sxx = LB725.Location.Y : LB725.Location = New Drawing.Point(syy2, sxx) : sxx = LB726.Location.Y : LB726.Location = New Drawing.Point(syy2, sxx) : End If
  8658. End Sub
  8659. '-----------------------------------------------------------------------------------------------------------------
  8660. Private Sub LB725_移動()
  8661. If 翻頁_nud.Value = 4 Or 自動移動 = True Then
  8662. Dim sx, sxx As Integer : sx = LB725.Size.Height : sxx = LB725.Location.Y : NU4 = LB726.Location.X : LB726.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8663. End Sub
  8664. Private Sub LB725_Click(sender As Object, e As EventArgs) Handles LB725.Click
  8665. PA = LB725.Text : 合約內文修改視窗.ShowDialog() : LB725.Text = PA : LB725_移動()
  8666. End Sub
  8667. Private Sub LB725_LocationChanged(sender As Object, e As EventArgs) Handles LB725.LocationChanged
  8668. LB725_移動()
  8669. End Sub
  8670. Private Sub LB725_TextChanged(sender As Object, e As EventArgs) Handles LB725.TextChanged
  8671. LB725_移動()
  8672. End Sub
  8673. '-----------------------------------------------------------------------------------------------------------------
  8674. Private Sub LB726_移動()
  8675. If 翻頁_nud.Value = 4 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB726.Size.Height : sxx = LB726.Location.Y : NU3 = LB727.Location.X : NU4 = LB728.Location.X
  8676. LB727.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB728.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8677. End Sub
  8678. Private Sub LB726_Click(sender As Object, e As EventArgs) Handles LB726.Click
  8679. PA = LB726.Text : 合約內文修改視窗.ShowDialog() : LB726.Text = PA : LB726_移動()
  8680. End Sub
  8681. Private Sub LB726_LocationChanged(sender As Object, e As EventArgs) Handles LB726.LocationChanged
  8682. LB726_移動()
  8683. End Sub
  8684. Private Sub LB726_TextChanged(sender As Object, e As EventArgs) Handles LB726.TextChanged
  8685. LB726_移動()
  8686. End Sub
  8687. '-----------------------------------------------------------------------------------------------------------------
  8688. Private Sub LB727_Click(sender As Object, e As EventArgs) Handles LB727.Click
  8689. If 翻頁_nud.Value = 4 Or 自動移動 = True Then
  8690. NU5 = LB727.Location.X : BL1 = True : PA = LB727.Text : 合約內文修改視窗.ShowDialog() : LB727.Text = PA : BL1 = False : NU5 = 0
  8691. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB727.Location.Y : LB727.Location = New Drawing.Point(syy1, sxx)
  8692. sxx = LB728.Location.Y : LB728.Location = New Drawing.Point(syy2, sxx) : sxx = LB729.Location.Y : LB729.Location = New Drawing.Point(syy2, sxx) : End If
  8693. End Sub
  8694. '-----------------------------------------------------------------------------------------------------------------
  8695. Private Sub LB728_移動()
  8696. If 翻頁_nud.Value = 4 Or 自動移動 = True Then
  8697. Dim sx, sxx As Integer : sx = LB728.Size.Height : sxx = LB728.Location.Y : NU4 = LB729.Location.X : LB729.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8698. End Sub
  8699. Private Sub LB728_Click(sender As Object, e As EventArgs) Handles LB728.Click
  8700. PA = LB728.Text : 合約內文修改視窗.ShowDialog() : LB728.Text = PA : LB728_移動()
  8701. End Sub
  8702. Private Sub LB728_LocationChanged(sender As Object, e As EventArgs) Handles LB728.LocationChanged
  8703. LB728_移動()
  8704. End Sub
  8705. Private Sub LB728_TextChanged(sender As Object, e As EventArgs) Handles LB728.TextChanged
  8706. LB728_移動()
  8707. End Sub
  8708. '-----------------------------------------------------------------------------------------------------------------
  8709. Private Sub LB729_移動()
  8710. If 翻頁_nud.Value = 4 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB729.Size.Height : sxx = LB729.Location.Y : NU3 = LB730.Location.X : NU4 = LB731.Location.X
  8711. LB730.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB731.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8712. End Sub
  8713. Private Sub LB729_Click(sender As Object, e As EventArgs) Handles LB729.Click
  8714. PA = LB729.Text : 合約內文修改視窗.ShowDialog() : LB729.Text = PA : LB729_移動()
  8715. End Sub
  8716. Private Sub LB729_LocationChanged(sender As Object, e As EventArgs) Handles LB729.LocationChanged
  8717. LB729_移動()
  8718. End Sub
  8719. Private Sub LB729_TextChanged(sender As Object, e As EventArgs) Handles LB729.TextChanged
  8720. LB729_移動()
  8721. End Sub
  8722. '-----------------------------------------------------------------------------------------------------------------
  8723. Private Sub LB730_Click(sender As Object, e As EventArgs) Handles LB730.Click
  8724. If 翻頁_nud.Value = 4 Or 自動移動 = True Then
  8725. NU5 = LB730.Location.X : BL1 = True : PA = LB730.Text : 合約內文修改視窗.ShowDialog() : LB730.Text = PA : BL1 = False : NU5 = 0
  8726. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB730.Location.Y : LB730.Location = New Drawing.Point(syy1, sxx)
  8727. sxx = LB731.Location.Y : LB731.Location = New Drawing.Point(syy2, sxx) : sxx = LB732.Location.Y : LB732.Location = New Drawing.Point(syy2, sxx) : End If
  8728. End Sub
  8729. '-----------------------------------------------------------------------------------------------------------------
  8730. Private Sub LB731_移動()
  8731. If 翻頁_nud.Value = 4 Or 自動移動 = True Then
  8732. Dim sx, sxx As Integer : sx = LB731.Size.Height : sxx = LB731.Location.Y : NU4 = LB732.Location.X : LB732.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8733. End Sub
  8734. Private Sub LB731_Click(sender As Object, e As EventArgs) Handles LB731.Click
  8735. PA = LB731.Text : 合約內文修改視窗.ShowDialog() : LB731.Text = PA : LB731_移動()
  8736. End Sub
  8737. Private Sub LB731_LocationChanged(sender As Object, e As EventArgs) Handles LB731.LocationChanged
  8738. LB731_移動()
  8739. End Sub
  8740. Private Sub LB731_TextChanged(sender As Object, e As EventArgs) Handles LB731.TextChanged
  8741. LB731_移動()
  8742. End Sub
  8743. '-----------------------------------------------------------------------------------------------------------------
  8744. Private Sub LB732_移動()
  8745. If 翻頁_nud.Value = 4 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB732.Size.Height : sxx = LB732.Location.Y : NU3 = LB733.Location.X : NU4 = LB734.Location.X
  8746. LB733.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB734.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8747. End Sub
  8748. Private Sub LB732_Click(sender As Object, e As EventArgs) Handles LB732.Click
  8749. PA = LB732.Text : 合約內文修改視窗.ShowDialog() : LB732.Text = PA : LB732_移動()
  8750. End Sub
  8751. Private Sub LB732_LocationChanged(sender As Object, e As EventArgs) Handles LB732.LocationChanged
  8752. LB732_移動()
  8753. End Sub
  8754. Private Sub LB732_TextChanged(sender As Object, e As EventArgs) Handles LB732.TextChanged
  8755. LB732_移動()
  8756. End Sub
  8757. '-----------------------------------------------------------------------------------------------------------------
  8758. Private Sub LB733_Click(sender As Object, e As EventArgs) Handles LB733.Click
  8759. If 翻頁_nud.Value = 4 Or 自動移動 = True Then
  8760. NU5 = LB733.Location.X : BL1 = True : PA = LB733.Text : 合約內文修改視窗.ShowDialog() : LB733.Text = PA : BL1 = False : NU5 = 0
  8761. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB733.Location.Y : LB733.Location = New Drawing.Point(syy1, sxx)
  8762. sxx = LB734.Location.Y : LB734.Location = New Drawing.Point(syy2, sxx) : sxx = LB735.Location.Y : LB735.Location = New Drawing.Point(syy2, sxx) : End If
  8763. End Sub
  8764. '-----------------------------------------------------------------------------------------------------------------
  8765. Private Sub LB734_移動()
  8766. If 翻頁_nud.Value = 4 Or 自動移動 = True Then
  8767. Dim sx, sxx As Integer : sx = LB734.Size.Height : sxx = LB734.Location.Y : NU4 = LB735.Location.X : LB735.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8768. End Sub
  8769. Private Sub LB734_Click(sender As Object, e As EventArgs) Handles LB734.Click
  8770. PA = LB734.Text : 合約內文修改視窗.ShowDialog() : LB734.Text = PA : LB734_移動()
  8771. End Sub
  8772. Private Sub LB734_LocationChanged(sender As Object, e As EventArgs) Handles LB734.LocationChanged
  8773. LB734_移動()
  8774. End Sub
  8775. Private Sub LB734_TextChanged(sender As Object, e As EventArgs) Handles LB734.TextChanged
  8776. LB734_移動()
  8777. End Sub
  8778. '-----------------------------------------------------------------------------------------------------------------
  8779. Private Sub LB735_移動()
  8780. If 翻頁_nud.Value = 4 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB735.Size.Height : sxx = LB735.Location.Y : NU3 = LB736.Location.X : NU4 = LB737.Location.X
  8781. LB736.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB737.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8782. End Sub
  8783. Private Sub LB735_Click(sender As Object, e As EventArgs) Handles LB735.Click
  8784. PA = LB735.Text : 合約內文修改視窗.ShowDialog() : LB735.Text = PA : LB735_移動()
  8785. End Sub
  8786. Private Sub LB735_LocationChanged(sender As Object, e As EventArgs) Handles LB735.LocationChanged
  8787. LB735_移動()
  8788. End Sub
  8789. Private Sub LB735_TextChanged(sender As Object, e As EventArgs) Handles LB735.TextChanged
  8790. LB735_移動()
  8791. End Sub
  8792. '-----------------------------------------------------------------------------------------------------------------
  8793. Private Sub LB736_Click(sender As Object, e As EventArgs) Handles LB736.Click
  8794. If 翻頁_nud.Value = 4 Or 自動移動 = True Then
  8795. NU5 = LB736.Location.X : BL1 = True : PA = LB736.Text : 合約內文修改視窗.ShowDialog() : LB736.Text = PA : BL1 = False : NU5 = 0
  8796. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB736.Location.Y : LB736.Location = New Drawing.Point(syy1, sxx)
  8797. sxx = LB737.Location.Y : LB737.Location = New Drawing.Point(syy2, sxx) : sxx = LB738.Location.Y : LB738.Location = New Drawing.Point(syy2, sxx) : End If
  8798. End Sub
  8799. '-----------------------------------------------------------------------------------------------------------------
  8800. Private Sub LB737_移動()
  8801. If 翻頁_nud.Value = 4 Or 自動移動 = True Then
  8802. Dim sx, sxx As Integer : sx = LB737.Size.Height : sxx = LB737.Location.Y : NU4 = LB738.Location.X : LB738.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8803. End Sub
  8804. Private Sub LB737_Click(sender As Object, e As EventArgs) Handles LB737.Click
  8805. PA = LB737.Text : 合約內文修改視窗.ShowDialog() : LB737.Text = PA : LB737_移動()
  8806. End Sub
  8807. Private Sub LB737_LocationChanged(sender As Object, e As EventArgs) Handles LB737.LocationChanged
  8808. LB737_移動()
  8809. End Sub
  8810. Private Sub LB737_TextChanged(sender As Object, e As EventArgs) Handles LB737.TextChanged
  8811. LB737_移動()
  8812. End Sub
  8813. '-----------------------------------------------------------------------------------------------------------------
  8814. Private Sub LB738_移動()
  8815. If 翻頁_nud.Value = 4 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB738.Size.Height : sxx = LB738.Location.Y : NU3 = LB739.Location.X : NU4 = LB740.Location.X
  8816. LB739.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB740.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8817. End Sub
  8818. Private Sub LB738_Click(sender As Object, e As EventArgs) Handles LB738.Click
  8819. PA = LB738.Text : 合約內文修改視窗.ShowDialog() : LB738.Text = PA : LB738_移動()
  8820. End Sub
  8821. Private Sub LB738_LocationChanged(sender As Object, e As EventArgs) Handles LB738.LocationChanged
  8822. LB738_移動()
  8823. End Sub
  8824. Private Sub LB738_TextChanged(sender As Object, e As EventArgs) Handles LB738.TextChanged
  8825. LB738_移動()
  8826. End Sub
  8827. '-----------------------------------------------------------------------------------------------------------------
  8828. Private Sub LB739_Click(sender As Object, e As EventArgs) Handles LB739.Click
  8829. If 翻頁_nud.Value = 4 Or 自動移動 = True Then
  8830. NU5 = LB739.Location.X : BL1 = True : PA = LB739.Text : 合約內文修改視窗.ShowDialog() : LB739.Text = PA : BL1 = False : NU5 = 0
  8831. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB739.Location.Y : LB739.Location = New Drawing.Point(syy1, sxx)
  8832. sxx = LB740.Location.Y : LB740.Location = New Drawing.Point(syy2, sxx) : sxx = LB741.Location.Y : LB741.Location = New Drawing.Point(syy2, sxx) : End If
  8833. End Sub
  8834. '-----------------------------------------------------------------------------------------------------------------
  8835. Private Sub LB740_移動()
  8836. If 翻頁_nud.Value = 4 Or 自動移動 = True Then
  8837. Dim sx, sxx As Integer : sx = LB740.Size.Height : sxx = LB740.Location.Y : NU4 = LB741.Location.X : LB741.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8838. End Sub
  8839. Private Sub LB740_Click(sender As Object, e As EventArgs) Handles LB740.Click
  8840. PA = LB740.Text : 合約內文修改視窗.ShowDialog() : LB740.Text = PA : LB740_移動()
  8841. End Sub
  8842. Private Sub LB740_LocationChanged(sender As Object, e As EventArgs) Handles LB740.LocationChanged
  8843. LB740_移動()
  8844. End Sub
  8845. Private Sub LB740_TextChanged(sender As Object, e As EventArgs) Handles LB740.TextChanged
  8846. LB740_移動()
  8847. End Sub
  8848. '-----------------------------------------------------------------------------------------------------------------
  8849. Private Sub LB741_Click(sender As Object, e As EventArgs) Handles LB741.Click
  8850. PA = LB741.Text : 合約內文修改視窗.ShowDialog() : LB741.Text = PA
  8851. End Sub
  8852. '---------------------------第3頁----------------------------------------------------------------------------------------------------------------------------------------------
  8853. Private Sub LB742_Click(sender As Object, e As EventArgs) Handles LB742.Click
  8854. If 翻頁_nud.Value = 3 Or 自動移動 = True Then
  8855. NU5 = LB742.Location.X : BL1 = True : PA = LB742.Text : 合約內文修改視窗.ShowDialog() : LB742.Text = PA : BL1 = False : NU5 = 0
  8856. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB742.Location.Y : LB742.Location = New Drawing.Point(syy1, sxx)
  8857. sxx = LB7.Location.Y : LB7.Location = New Drawing.Point(syy2, sxx) : sxx = LB8.Location.Y : LB8.Location = New Drawing.Point(syy2, sxx) : End If
  8858. End Sub
  8859. '-----------------------------------------------------------------------------------------------------------------
  8860. Private Sub LB7_移動()
  8861. If 翻頁_nud.Value = 3 Or 自動移動 = True Then
  8862. Dim sx, sxx As Integer : sx = LB7.Size.Height : sxx = LB7.Location.Y : NU4 = LB8.Location.X : LB8.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8863. End Sub
  8864. Private Sub LB7_Click(sender As Object, e As EventArgs) Handles LB7.Click
  8865. PA = LB7.Text : 合約內文修改視窗.ShowDialog() : LB7.Text = PA : LB7_移動()
  8866. End Sub
  8867. Private Sub LB7_LocationChanged(sender As Object, e As EventArgs) Handles LB7.LocationChanged
  8868. LB7_移動()
  8869. End Sub
  8870. Private Sub LB7_TextChanged(sender As Object, e As EventArgs) Handles LB7.TextChanged
  8871. LB7_移動()
  8872. End Sub
  8873. '-----------------------------------------------------------------------------------------------------------------
  8874. Private Sub LB8_移動()
  8875. If 翻頁_nud.Value = 3 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB8.Size.Height : sxx = LB8.Location.Y : NU3 = LB743.Location.X : NU4 = LB9.Location.X
  8876. LB743.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB9.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8877. End Sub
  8878. Private Sub LB8_Click(sender As Object, e As EventArgs) Handles LB8.Click
  8879. PA = LB8.Text : 合約內文修改視窗.ShowDialog() : LB8.Text = PA : LB8_移動()
  8880. End Sub
  8881. Private Sub LB8_LocationChanged(sender As Object, e As EventArgs) Handles LB8.LocationChanged
  8882. LB8_移動()
  8883. End Sub
  8884. Private Sub LB8_TextChanged(sender As Object, e As EventArgs) Handles LB8.TextChanged
  8885. LB8_移動()
  8886. End Sub
  8887. '-----------------------------------------------------------------------------------------------------------------
  8888. Private Sub LB743_Click(sender As Object, e As EventArgs) Handles LB743.Click
  8889. If 翻頁_nud.Value = 3 Or 自動移動 = True Then
  8890. NU5 = LB743.Location.X : BL1 = True : PA = LB743.Text : 合約內文修改視窗.ShowDialog() : LB743.Text = PA : BL1 = False : NU5 = 0
  8891. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB743.Location.Y : LB743.Location = New Drawing.Point(syy1, sxx)
  8892. sxx = LB9.Location.Y : LB9.Location = New Drawing.Point(syy2, sxx) : sxx = LB10.Location.Y : LB10.Location = New Drawing.Point(syy2, sxx) : End If
  8893. End Sub
  8894. '-----------------------------------------------------------------------------------------------------------------
  8895. Private Sub LB9_移動()
  8896. If 翻頁_nud.Value = 3 Or 自動移動 = True Then
  8897. Dim sx, sxx As Integer : sx = LB9.Size.Height : sxx = LB9.Location.Y : NU4 = LB10.Location.X : LB10.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8898. End Sub
  8899. Private Sub LB9_Click(sender As Object, e As EventArgs) Handles LB9.Click
  8900. PA = LB9.Text : 合約內文修改視窗.ShowDialog() : LB9.Text = PA : LB9_移動()
  8901. End Sub
  8902. Private Sub LB9_LocationChanged(sender As Object, e As EventArgs) Handles LB9.LocationChanged
  8903. LB9_移動()
  8904. End Sub
  8905. Private Sub LB9_TextChanged(sender As Object, e As EventArgs) Handles LB9.TextChanged
  8906. LB9_移動()
  8907. End Sub
  8908. '-----------------------------------------------------------------------------------------------------------------
  8909. Private Sub LB10_移動()
  8910. If 翻頁_nud.Value = 3 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB10.Size.Height : sxx = LB10.Location.Y : NU3 = LB744.Location.X : NU4 = LB11.Location.X
  8911. LB744.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB11.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8912. End Sub
  8913. Private Sub LB10_Click(sender As Object, e As EventArgs) Handles LB10.Click
  8914. PA = LB10.Text : 合約內文修改視窗.ShowDialog() : LB10.Text = PA : LB10_移動()
  8915. End Sub
  8916. Private Sub LB10_LocationChanged(sender As Object, e As EventArgs) Handles LB10.LocationChanged
  8917. LB10_移動()
  8918. End Sub
  8919. Private Sub LB10_TextChanged(sender As Object, e As EventArgs) Handles LB10.TextChanged
  8920. LB10_移動()
  8921. End Sub
  8922. '-----------------------------------------------------------------------------------------------------------------
  8923. Private Sub LB744_Click(sender As Object, e As EventArgs) Handles LB744.Click
  8924. If 翻頁_nud.Value = 3 Or 自動移動 = True Then
  8925. NU5 = LB744.Location.X : BL1 = True : PA = LB744.Text : 合約內文修改視窗.ShowDialog() : LB744.Text = PA : BL1 = False : NU5 = 0
  8926. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB744.Location.Y : LB744.Location = New Drawing.Point(syy1, sxx)
  8927. sxx = LB11.Location.Y : LB11.Location = New Drawing.Point(syy2, sxx) : sxx = LB12.Location.Y : LB12.Location = New Drawing.Point(syy2, sxx) : End If
  8928. End Sub
  8929. '-----------------------------------------------------------------------------------------------------------------
  8930. Private Sub LB11_移動()
  8931. If 翻頁_nud.Value = 3 Or 自動移動 = True Then
  8932. Dim sx, sxx As Integer : sx = LB11.Size.Height : sxx = LB11.Location.Y : NU4 = LB12.Location.X : LB12.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8933. End Sub
  8934. Private Sub LB11_Click(sender As Object, e As EventArgs) Handles LB11.Click
  8935. PA = LB11.Text : 合約內文修改視窗.ShowDialog() : LB11.Text = PA : LB11_移動()
  8936. End Sub
  8937. Private Sub LB11_LocationChanged(sender As Object, e As EventArgs) Handles LB11.LocationChanged
  8938. LB11_移動()
  8939. End Sub
  8940. Private Sub LB11_TextChanged(sender As Object, e As EventArgs) Handles LB11.TextChanged
  8941. LB11_移動()
  8942. End Sub
  8943. '-----------------------------------------------------------------------------------------------------------------
  8944. Private Sub LB12_移動()
  8945. If 翻頁_nud.Value = 3 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB12.Size.Height : sxx = LB12.Location.Y : NU3 = LB745.Location.X : NU4 = LB13.Location.X
  8946. LB745.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB13.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8947. End Sub
  8948. Private Sub LB12_Click(sender As Object, e As EventArgs) Handles LB12.Click
  8949. PA = LB12.Text : 合約內文修改視窗.ShowDialog() : LB12.Text = PA : LB12_移動()
  8950. End Sub
  8951. Private Sub LB12_LocationChanged(sender As Object, e As EventArgs) Handles LB12.LocationChanged
  8952. LB12_移動()
  8953. End Sub
  8954. Private Sub LB12_TextChanged(sender As Object, e As EventArgs) Handles LB12.TextChanged
  8955. LB12_移動()
  8956. End Sub
  8957. '-----------------------------------------------------------------------------------------------------------------
  8958. Private Sub LB745_Click(sender As Object, e As EventArgs) Handles LB745.Click
  8959. If 翻頁_nud.Value = 3 Or 自動移動 = True Then
  8960. NU5 = LB745.Location.X : BL1 = True : PA = LB745.Text : 合約內文修改視窗.ShowDialog() : LB745.Text = PA : BL1 = False : NU5 = 0
  8961. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB745.Location.Y : LB745.Location = New Drawing.Point(syy1, sxx)
  8962. sxx = LB13.Location.Y : LB13.Location = New Drawing.Point(syy2, sxx) : sxx = LB14.Location.Y : LB14.Location = New Drawing.Point(syy2, sxx) : End If
  8963. End Sub
  8964. '-----------------------------------------------------------------------------------------------------------------
  8965. Private Sub LB13_移動()
  8966. If 翻頁_nud.Value = 3 Or 自動移動 = True Then
  8967. Dim sx, sxx As Integer : sx = LB13.Size.Height : sxx = LB13.Location.Y : NU4 = LB14.Location.X : LB14.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8968. End Sub
  8969. Private Sub LB13_Click(sender As Object, e As EventArgs) Handles LB13.Click
  8970. PA = LB13.Text : 合約內文修改視窗.ShowDialog() : LB13.Text = PA : LB13_移動()
  8971. End Sub
  8972. Private Sub LB13_LocationChanged(sender As Object, e As EventArgs) Handles LB13.LocationChanged
  8973. LB13_移動()
  8974. End Sub
  8975. Private Sub LB13_TextChanged(sender As Object, e As EventArgs) Handles LB13.TextChanged
  8976. LB13_移動()
  8977. End Sub
  8978. '-----------------------------------------------------------------------------------------------------------------
  8979. Private Sub LB14_移動()
  8980. If 翻頁_nud.Value = 3 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB14.Size.Height : sxx = LB14.Location.Y : NU3 = LB746.Location.X : NU4 = LB15.Location.X
  8981. LB746.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB15.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  8982. End Sub
  8983. Private Sub LB14_Click(sender As Object, e As EventArgs) Handles LB14.Click
  8984. PA = LB14.Text : 合約內文修改視窗.ShowDialog() : LB14.Text = PA : LB14_移動()
  8985. End Sub
  8986. Private Sub LB14_LocationChanged(sender As Object, e As EventArgs) Handles LB14.LocationChanged
  8987. LB14_移動()
  8988. End Sub
  8989. Private Sub LB14_TextChanged(sender As Object, e As EventArgs) Handles LB14.TextChanged
  8990. LB14_移動()
  8991. End Sub
  8992. '-----------------------------------------------------------------------------------------------------------------
  8993. Private Sub LB746_Click(sender As Object, e As EventArgs) Handles LB746.Click
  8994. If 翻頁_nud.Value = 3 Or 自動移動 = True Then
  8995. NU5 = LB746.Location.X : BL1 = True : PA = LB746.Text : 合約內文修改視窗.ShowDialog() : LB746.Text = PA : BL1 = False : NU5 = 0
  8996. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB746.Location.Y : LB746.Location = New Drawing.Point(syy1, sxx)
  8997. sxx = LB15.Location.Y : LB15.Location = New Drawing.Point(syy2, sxx) : sxx = LB16.Location.Y : LB16.Location = New Drawing.Point(syy2, sxx) : End If
  8998. End Sub
  8999. '-----------------------------------------------------------------------------------------------------------------
  9000. Private Sub LB15_移動()
  9001. If 翻頁_nud.Value = 3 Or 自動移動 = True Then
  9002. Dim sx, sxx As Integer : sx = LB15.Size.Height : sxx = LB15.Location.Y : NU4 = LB16.Location.X : LB16.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  9003. End Sub
  9004. Private Sub LB15_Click(sender As Object, e As EventArgs) Handles LB15.Click
  9005. PA = LB15.Text : 合約內文修改視窗.ShowDialog() : LB15.Text = PA : LB15_移動()
  9006. End Sub
  9007. Private Sub LB15_LocationChanged(sender As Object, e As EventArgs) Handles LB15.LocationChanged
  9008. LB15_移動()
  9009. End Sub
  9010. Private Sub LB15_TextChanged(sender As Object, e As EventArgs) Handles LB15.TextChanged
  9011. LB15_移動()
  9012. End Sub
  9013. '-----------------------------------------------------------------------------------------------------------------
  9014. Private Sub LB16_移動()
  9015. If 翻頁_nud.Value = 3 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB16.Size.Height : sxx = LB16.Location.Y : NU3 = LB747.Location.X : NU4 = LB17.Location.X
  9016. LB747.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB17.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  9017. End Sub
  9018. Private Sub LB16_Click(sender As Object, e As EventArgs) Handles LB16.Click
  9019. PA = LB16.Text : 合約內文修改視窗.ShowDialog() : LB16.Text = PA : LB16_移動()
  9020. End Sub
  9021. Private Sub LB16_LocationChanged(sender As Object, e As EventArgs) Handles LB16.LocationChanged
  9022. LB16_移動()
  9023. End Sub
  9024. Private Sub LB16_TextChanged(sender As Object, e As EventArgs) Handles LB16.TextChanged
  9025. LB16_移動()
  9026. End Sub
  9027. '-----------------------------------------------------------------------------------------------------------------
  9028. Private Sub LB747_Click(sender As Object, e As EventArgs) Handles LB747.Click
  9029. If 翻頁_nud.Value = 3 Or 自動移動 = True Then
  9030. NU5 = LB747.Location.X : BL1 = True : PA = LB747.Text : 合約內文修改視窗.ShowDialog() : LB747.Text = PA : BL1 = False : NU5 = 0
  9031. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB747.Location.Y : LB747.Location = New Drawing.Point(syy1, sxx)
  9032. sxx = LB17.Location.Y : LB17.Location = New Drawing.Point(syy2, sxx) : sxx = LB18.Location.Y : LB18.Location = New Drawing.Point(syy2, sxx) : End If
  9033. End Sub
  9034. '-----------------------------------------------------------------------------------------------------------------
  9035. Private Sub LB17_移動()
  9036. If 翻頁_nud.Value = 3 Or 自動移動 = True Then
  9037. Dim sx, sxx As Integer : sx = LB17.Size.Height : sxx = LB17.Location.Y : NU4 = LB18.Location.X : LB18.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  9038. End Sub
  9039. Private Sub LB17_Click(sender As Object, e As EventArgs) Handles LB17.Click
  9040. PA = LB17.Text : 合約內文修改視窗.ShowDialog() : LB17.Text = PA : LB17_移動()
  9041. End Sub
  9042. Private Sub LB17_LocationChanged(sender As Object, e As EventArgs) Handles LB17.LocationChanged
  9043. LB17_移動()
  9044. End Sub
  9045. Private Sub LB17_TextChanged(sender As Object, e As EventArgs) Handles LB17.TextChanged
  9046. LB17_移動()
  9047. End Sub
  9048. '-----------------------------------------------------------------------------------------------------------------
  9049. Private Sub LB18_移動()
  9050. If 翻頁_nud.Value = 3 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB18.Size.Height : sxx = LB18.Location.Y : NU3 = LB748.Location.X : NU4 = LB19.Location.X
  9051. LB748.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB19.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  9052. End Sub
  9053. Private Sub LB18_Click(sender As Object, e As EventArgs) Handles LB18.Click
  9054. PA = LB18.Text : 合約內文修改視窗.ShowDialog() : LB18.Text = PA : LB18_移動()
  9055. End Sub
  9056. Private Sub LB18_LocationChanged(sender As Object, e As EventArgs) Handles LB18.LocationChanged
  9057. LB18_移動()
  9058. End Sub
  9059. Private Sub LB18_TextChanged(sender As Object, e As EventArgs) Handles LB18.TextChanged
  9060. LB18_移動()
  9061. End Sub
  9062. '-----------------------------------------------------------------------------------------------------------------
  9063. Private Sub LB748_Click(sender As Object, e As EventArgs) Handles LB748.Click
  9064. If 翻頁_nud.Value = 3 Or 自動移動 = True Then
  9065. NU5 = LB748.Location.X : BL1 = True : PA = LB748.Text : 合約內文修改視窗.ShowDialog() : LB748.Text = PA : BL1 = False : NU5 = 0
  9066. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB748.Location.Y : LB748.Location = New Drawing.Point(syy1, sxx)
  9067. sxx = LB19.Location.Y : LB19.Location = New Drawing.Point(syy2, sxx) : sxx = LB20.Location.Y : LB20.Location = New Drawing.Point(syy2, sxx) : End If
  9068. End Sub
  9069. '-----------------------------------------------------------------------------------------------------------------
  9070. Private Sub LB19_移動()
  9071. If 翻頁_nud.Value = 3 Or 自動移動 = True Then
  9072. Dim sx, sxx As Integer : sx = LB19.Size.Height : sxx = LB19.Location.Y : NU4 = LB20.Location.X : LB20.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  9073. End Sub
  9074. Private Sub LB19_Click(sender As Object, e As EventArgs) Handles LB19.Click
  9075. PA = LB19.Text : 合約內文修改視窗.ShowDialog() : LB19.Text = PA : LB19_移動()
  9076. End Sub
  9077. Private Sub LB19_LocationChanged(sender As Object, e As EventArgs) Handles LB19.LocationChanged
  9078. LB19_移動()
  9079. End Sub
  9080. Private Sub LB19_TextChanged(sender As Object, e As EventArgs) Handles LB19.TextChanged
  9081. LB19_移動()
  9082. End Sub
  9083. '-----------------------------------------------------------------------------------------------------------------
  9084. Private Sub LB20_移動()
  9085. If 翻頁_nud.Value = 3 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB20.Size.Height : sxx = LB20.Location.Y : NU3 = LB749.Location.X : NU4 = LB750.Location.X
  9086. LB749.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB750.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  9087. End Sub
  9088. Private Sub LB20_Click(sender As Object, e As EventArgs) Handles LB20.Click
  9089. PA = LB20.Text : 合約內文修改視窗.ShowDialog() : LB20.Text = PA : LB20_移動()
  9090. End Sub
  9091. Private Sub LB20_LocationChanged(sender As Object, e As EventArgs) Handles LB20.LocationChanged
  9092. LB20_移動()
  9093. End Sub
  9094. Private Sub LB20_TextChanged(sender As Object, e As EventArgs) Handles LB20.TextChanged
  9095. LB20_移動()
  9096. End Sub
  9097. '-----------------------------------------------------------------------------------------------------------------
  9098. Private Sub LB749_Click(sender As Object, e As EventArgs) Handles LB749.Click
  9099. If 翻頁_nud.Value = 3 Or 自動移動 = True Then
  9100. NU5 = LB749.Location.X : BL1 = True : PA = LB749.Text : 合約內文修改視窗.ShowDialog() : LB749.Text = PA : BL1 = False : NU5 = 0
  9101. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB749.Location.Y : LB749.Location = New Drawing.Point(syy1, sxx)
  9102. sxx = LB750.Location.Y : LB750.Location = New Drawing.Point(syy2, sxx) : sxx = LB751.Location.Y : LB751.Location = New Drawing.Point(syy2, sxx) : End If
  9103. End Sub
  9104. '-----------------------------------------------------------------------------------------------------------------
  9105. Private Sub LB750_移動()
  9106. If 翻頁_nud.Value = 3 Or 自動移動 = True Then
  9107. Dim sx, sxx As Integer : sx = LB750.Size.Height : sxx = LB750.Location.Y : NU4 = LB751.Location.X : LB751.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  9108. End Sub
  9109. Private Sub LB750_Click(sender As Object, e As EventArgs) Handles LB750.Click
  9110. PA = LB750.Text : 合約內文修改視窗.ShowDialog() : LB750.Text = PA : LB750_移動()
  9111. End Sub
  9112. Private Sub LB750_LocationChanged(sender As Object, e As EventArgs) Handles LB750.LocationChanged
  9113. LB750_移動()
  9114. End Sub
  9115. Private Sub LB750_TextChanged(sender As Object, e As EventArgs) Handles LB750.TextChanged
  9116. LB750_移動()
  9117. End Sub
  9118. '-----------------------------------------------------------------------------------------------------------------
  9119. Private Sub LB751_移動()
  9120. If 翻頁_nud.Value = 3 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB751.Size.Height : sxx = LB751.Location.Y : NU3 = LB752.Location.X : NU4 = LB753.Location.X
  9121. LB752.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB753.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  9122. End Sub
  9123. Private Sub LB751_Click(sender As Object, e As EventArgs) Handles LB751.Click
  9124. PA = LB751.Text : 合約內文修改視窗.ShowDialog() : LB751.Text = PA : LB751_移動()
  9125. End Sub
  9126. Private Sub LB751_LocationChanged(sender As Object, e As EventArgs) Handles LB751.LocationChanged
  9127. LB751_移動()
  9128. End Sub
  9129. Private Sub LB751_TextChanged(sender As Object, e As EventArgs) Handles LB751.TextChanged
  9130. LB751_移動()
  9131. End Sub
  9132. '-----------------------------------------------------------------------------------------------------------------
  9133. Private Sub LB752_Click(sender As Object, e As EventArgs) Handles LB752.Click
  9134. If 翻頁_nud.Value = 3 Or 自動移動 = True Then
  9135. NU5 = LB752.Location.X : BL1 = True : PA = LB752.Text : 合約內文修改視窗.ShowDialog() : LB752.Text = PA : BL1 = False : NU5 = 0
  9136. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB752.Location.Y : LB752.Location = New Drawing.Point(syy1, sxx)
  9137. sxx = LB753.Location.Y : LB753.Location = New Drawing.Point(syy2, sxx) : sxx = LB754.Location.Y : LB754.Location = New Drawing.Point(syy2, sxx) : End If
  9138. End Sub
  9139. '-----------------------------------------------------------------------------------------------------------------
  9140. Private Sub LB753_移動()
  9141. If 翻頁_nud.Value = 3 Or 自動移動 = True Then
  9142. Dim sx, sxx As Integer : sx = LB753.Size.Height : sxx = LB753.Location.Y : NU4 = LB754.Location.X : LB754.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  9143. End Sub
  9144. Private Sub LB753_Click(sender As Object, e As EventArgs) Handles LB753.Click
  9145. PA = LB753.Text : 合約內文修改視窗.ShowDialog() : LB753.Text = PA : LB753_移動()
  9146. End Sub
  9147. Private Sub LB753_LocationChanged(sender As Object, e As EventArgs) Handles LB753.LocationChanged
  9148. LB753_移動()
  9149. End Sub
  9150. Private Sub LB753_TextChanged(sender As Object, e As EventArgs) Handles LB753.TextChanged
  9151. LB753_移動()
  9152. End Sub
  9153. '-----------------------------------------------------------------------------------------------------------------
  9154. Private Sub LB754_移動()
  9155. If 翻頁_nud.Value = 3 Or 自動移動 = True Then : Dim sx, sxx As Integer : sx = LB754.Size.Height : sxx = LB754.Location.Y : NU3 = LB755.Location.X : NU4 = LB756.Location.X
  9156. LB755.Location = New Drawing.Point(NU3, sxx + sx + 10) : LB756.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  9157. End Sub
  9158. Private Sub LB754_Click(sender As Object, e As EventArgs) Handles LB754.Click
  9159. PA = LB754.Text : 合約內文修改視窗.ShowDialog() : LB754.Text = PA : LB754_移動()
  9160. End Sub
  9161. Private Sub LB754_LocationChanged(sender As Object, e As EventArgs) Handles LB754.LocationChanged
  9162. LB754_移動()
  9163. End Sub
  9164. Private Sub LB754_TextChanged(sender As Object, e As EventArgs) Handles LB754.TextChanged
  9165. LB754_移動()
  9166. End Sub
  9167. '-----------------------------------------------------------------------------------------------------------------
  9168. Private Sub LB755_Click(sender As Object, e As EventArgs) Handles LB755.Click
  9169. If 翻頁_nud.Value = 3 Or 自動移動 = True Then
  9170. NU5 = LB755.Location.X : BL1 = True : PA = LB755.Text : 合約內文修改視窗.ShowDialog() : LB755.Text = PA : BL1 = False : NU5 = 0
  9171. Dim sxx, syy1, syy2 As Integer : syy1 = NU3 : syy2 = NU4 : sxx = LB755.Location.Y : LB755.Location = New Drawing.Point(syy1, sxx)
  9172. sxx = LB756.Location.Y : LB756.Location = New Drawing.Point(syy2, sxx) : sxx = LB757.Location.Y : LB757.Location = New Drawing.Point(syy2, sxx) : End If
  9173. End Sub
  9174. '-----------------------------------------------------------------------------------------------------------------
  9175. Private Sub LB756_移動()
  9176. If 翻頁_nud.Value = 3 Or 自動移動 = True Then
  9177. Dim sx, sxx As Integer : sx = LB756.Size.Height : sxx = LB756.Location.Y : NU4 = LB757.Location.X : LB757.Location = New Drawing.Point(NU4, sxx + sx + 10) : End If
  9178. End Sub
  9179. Private Sub LB756_Click(sender As Object, e As EventArgs) Handles LB756.Click
  9180. PA = LB756.Text : 合約內文修改視窗.ShowDialog() : LB756.Text = PA : LB756_移動()
  9181. End Sub
  9182. Private Sub LB756_LocationChanged(sender As Object, e As EventArgs) Handles LB756.LocationChanged
  9183. LB756_移動()
  9184. End Sub
  9185. Private Sub LB756_TextChanged(sender As Object, e As EventArgs) Handles LB756.TextChanged
  9186. LB756_移動()
  9187. End Sub
  9188. '-----------------------------------------------------------------------------------------------------------------
  9189. Private Sub LB757_Click(sender As Object, e As EventArgs) Handles LB757.Click
  9190. PA = LB757.Text : 合約內文修改視窗.ShowDialog() : LB757.Text = PA
  9191. End Sub
  9192. '-----------------------------------------------------------------------------------------------------------------
  9193. Dim Oword As Application
  9194. Dim Odoc As Document
  9195. Dim Opara(500) As Paragraph : Dim Otable(500) As Table : Dim AN, BN, CN As Integer : Dim SSTR As String
  9196. Private Sub 列印成Word_bt_Click(sender As Object, e As EventArgs) Handles 列印成Word_bt.Click
  9197. If 合約編號_cb.Text = "" Or 合約編號1_tb.Text = "" Or 合約編號2_tb.Text = "" Or 合約編號3_tb.Text = "" Then
  9198. If 系統語言 = "繁體中文" Then : MsgBox("合約編號不齊全,請先確定合約的完整性!!")
  9199. Else : MsgBox("Nomor kontrak tidak lengkap, harap konfirmasikan integritas kontrak terlebih dahulu!!") : End If
  9200. Else
  9201. Try
  9202. Oword = CreateObject("Word.application")
  9203. Oword.Visible = True
  9204. 'Odoc = Oword.Documents.Add
  9205. Dim Str2 As String = System.Windows.Forms.Application.StartupPath
  9206. If 合約編號_cb.Text = "HX" Then
  9207. Odoc = Oword.Documents.Open(Str2 & "\HX01.docx")
  9208. Else
  9209. Odoc = Oword.Documents.Open(Str2 & "\PGS01.docx")
  9210. End If
  9211. Odoc.PageSetup.Orientation = Word.WdOrientation.wdOrientPortrait '直向显示,试用于横向打印
  9212. '--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  9213. AN = 0 : BN = 0 : CN = 0 : SSTR = ""
  9214. '------系統第一頁------------------------------------------------------------------
  9215. Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = A中02_lb.Text
  9216. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 18 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack
  9217. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphCenter
  9218. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  9219. Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = A中04_lb.Text : Opara(BN).Range.InsertParagraphAfter() : BN += 1
  9220. Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = A英04_lb.Text
  9221. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 14 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBrown
  9222. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphCenter
  9223. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  9224. Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = A英02_lb.Text : Opara(BN).Range.InsertParagraphAfter() : BN += 1 : 列印成Word畫線() : AN = BN
  9225. For i As Integer = AN To AN + 4
  9226. Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = ""
  9227. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 18 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack
  9228. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphCenter
  9229. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  9230. Next
  9231. Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = A中01_lb.Text
  9232. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 24 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack
  9233. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphCenter
  9234. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  9235. Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = A英01_lb.Text
  9236. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBrown
  9237. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphCenter
  9238. Opara(BN).Range.InsertParagraphAfter() : BN += 1 : AN = BN
  9239. For i As Integer = AN To AN + 4
  9240. Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = ""
  9241. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 18 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack
  9242. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphCenter
  9243. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  9244. Next
  9245. Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = 合約編號中_lb.Text
  9246. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack
  9247. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphCenter
  9248. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  9249. Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = 合約編號英_lb.Text
  9250. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBrown
  9251. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphCenter
  9252. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  9253. Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = ""
  9254. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 9 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack
  9255. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphCenter
  9256. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  9257. Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = Label25.Text
  9258. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 9 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack
  9259. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphCenter
  9260. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  9261. Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = Label24.Text
  9262. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 9 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBrown
  9263. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphCenter
  9264. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  9265. '------系統第二頁------------------------------------------------------------------
  9266. Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = Label50.Text
  9267. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 14 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack
  9268. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  9269. Opara(BN).Range.InsertParagraphAfter() : BN += 1 : 列印成Word畫線()
  9270. SSTR = Replace(A中05_lb.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = Label26.Text & " : " & SSTR
  9271. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 9 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack
  9272. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  9273. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  9274. SSTR = Replace(A英05_lb.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = Label31.Text & " : " & SSTR
  9275. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 9 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBrown
  9276. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  9277. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  9278. SSTR = Replace(A中06_lb.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = Label37.Text & " : " & SSTR
  9279. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 9 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack
  9280. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  9281. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  9282. SSTR = Replace(A英06_lb.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = Label34.Text & " : " & SSTR
  9283. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 9 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBrown
  9284. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  9285. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  9286. SSTR = Replace(A中03_lb.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = Label43.Text & " : " & SSTR
  9287. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 9 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack
  9288. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  9289. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  9290. SSTR = Replace(A英03_lb.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = Label40.Text & " : " & SSTR
  9291. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 9 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBrown
  9292. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  9293. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  9294. SSTR = Replace(A中07_lb.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = Label49.Text & " : " & SSTR
  9295. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 9 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack
  9296. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  9297. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  9298. SSTR = Replace(A英07_lb.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = Label46.Text & " : " & SSTR
  9299. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 9 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBrown
  9300. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  9301. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  9302. Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = Label56.Text
  9303. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 14 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack
  9304. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  9305. Opara(BN).Range.InsertParagraphAfter() : BN += 1 : 列印成Word畫線()
  9306. SSTR = Replace(b中01_lb.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = Label55.Text & " : " & SSTR
  9307. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 9 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlue
  9308. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  9309. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  9310. SSTR = Replace(b英01_lb.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = Label52.Text & " : " & SSTR
  9311. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 9 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlue
  9312. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  9313. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  9314. SSTR = Replace(A13_lb.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = Label61.Text & " : " & SSTR
  9315. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 9 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlue
  9316. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  9317. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  9318. SSTR = Replace(A14_lb.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = Label58.Text & " : " & SSTR
  9319. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 9 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlue
  9320. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  9321. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  9322. Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = "" : Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 5
  9323. Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack : Opara(BN).Format.SpaceAfter = 0 : Opara(BN).Format.SpaceBefore = 0
  9324. Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft : Opara(BN).Range.InsertParagraphAfter() : BN += 1
  9325. SSTR = Replace(LB1.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SSTR
  9326. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack
  9327. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  9328. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  9329. SSTR = Replace(LB2.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SSTR
  9330. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBrown
  9331. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  9332. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  9333. For i As Integer = AN To AN + 1
  9334. Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = "" : Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 5
  9335. Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack : Opara(BN).Format.SpaceAfter = 0 : Opara(BN).Format.SpaceBefore = 0
  9336. Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft : Opara(BN).Range.InsertParagraphAfter() : BN += 1
  9337. Next
  9338. '------系統第三頁------------------------------------------------------------------
  9339. SSTR = Replace(Label65.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SSTR
  9340. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack
  9341. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  9342. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  9343. SSTR = Replace(Label66.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SSTR
  9344. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBrown
  9345. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  9346. Opara(BN).Range.InsertParagraphAfter() : BN += 1 : 列印成Word畫線()
  9347. Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9348. Otable(CN).Cell(1, 1).Range.Text = Label67.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9349. SSTR = Replace(LB3.Text & " " & A01_lb.Text & " " & LB4.Text & " " & A02_lb.Text, vbCrLf, "")
  9350. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9351. SSTR = Replace(LB5.Text & " " & A03_lb.Text & " " & LB6.Text & " " & A04_lb.Text, vbCrLf, "")
  9352. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9353. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn) : CN += 1
  9354. Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = "" : Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 5
  9355. Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack : Opara(BN).Format.SpaceAfter = 0 : Opara(BN).Format.SpaceBefore = 0
  9356. Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft : Opara(BN).Range.InsertParagraphAfter() : BN += 1
  9357. If LB742.Text = "" And LB7.Text = "" And LB8.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9358. Otable(CN).Cell(1, 1).Range.Text = LB742.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9359. SSTR = Replace(LB7.Text, vbCrLf, "")
  9360. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9361. SSTR = Replace(LB8.Text, vbCrLf, "")
  9362. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9363. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9364. If LB742.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9365. If LB743.Text = "" And LB9.Text = "" And LB10.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9366. Otable(CN).Cell(1, 1).Range.Text = LB743.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9367. SSTR = Replace(LB9.Text, vbCrLf, "")
  9368. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9369. SSTR = Replace(LB10.Text, vbCrLf, "")
  9370. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9371. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9372. If LB743.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9373. If LB744.Text = "" And LB11.Text = "" And LB12.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9374. Otable(CN).Cell(1, 1).Range.Text = LB744.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9375. SSTR = Replace(LB11.Text, vbCrLf, "")
  9376. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9377. SSTR = Replace(LB12.Text, vbCrLf, "")
  9378. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9379. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9380. If LB744.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9381. If LB745.Text = "" And LB13.Text = "" And LB14.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9382. Otable(CN).Cell(1, 1).Range.Text = LB745.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9383. SSTR = Replace(LB13.Text, vbCrLf, "")
  9384. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9385. SSTR = Replace(LB14.Text, vbCrLf, "")
  9386. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9387. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9388. If LB745.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9389. If LB746.Text = "" And LB15.Text = "" And LB16.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9390. Otable(CN).Cell(1, 1).Range.Text = LB746.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9391. SSTR = Replace(LB15.Text, vbCrLf, "")
  9392. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9393. SSTR = Replace(LB16.Text, vbCrLf, "")
  9394. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9395. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9396. If LB746.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9397. If LB747.Text = "" And LB17.Text = "" And LB18.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9398. Otable(CN).Cell(1, 1).Range.Text = LB747.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9399. SSTR = Replace(LB17.Text, vbCrLf, "")
  9400. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9401. SSTR = Replace(LB18.Text, vbCrLf, "")
  9402. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9403. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9404. If LB747.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9405. If LB748.Text = "" And LB19.Text = "" And LB20.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9406. Otable(CN).Cell(1, 1).Range.Text = LB748.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9407. SSTR = Replace(LB19.Text, vbCrLf, "")
  9408. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9409. SSTR = Replace(LB20.Text, vbCrLf, "")
  9410. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9411. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9412. If LB748.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9413. If LB749.Text = "" And LB750.Text = "" And LB751.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9414. Otable(CN).Cell(1, 1).Range.Text = LB749.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9415. SSTR = Replace(LB750.Text, vbCrLf, "")
  9416. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9417. SSTR = Replace(LB751.Text, vbCrLf, "")
  9418. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9419. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9420. If LB749.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9421. If LB752.Text = "" And LB753.Text = "" And LB754.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9422. Otable(CN).Cell(1, 1).Range.Text = LB752.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9423. SSTR = Replace(LB753.Text, vbCrLf, "")
  9424. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9425. SSTR = Replace(LB754.Text, vbCrLf, "")
  9426. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9427. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9428. If LB752.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9429. If LB755.Text = "" And LB756.Text = "" And LB757.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9430. Otable(CN).Cell(1, 1).Range.Text = LB755.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9431. SSTR = Replace(LB756.Text, vbCrLf, "")
  9432. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9433. SSTR = Replace(LB757.Text, vbCrLf, "")
  9434. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9435. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9436. If LB755.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9437. 列印成Word補空()
  9438. '------系統第四頁------------------------------------------------------------------
  9439. SSTR = Replace(Label97.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SSTR
  9440. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack
  9441. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  9442. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  9443. SSTR = Replace(Label96.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SSTR
  9444. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBrown
  9445. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  9446. Opara(BN).Range.InsertParagraphAfter() : BN += 1 : 列印成Word畫線()
  9447. If Label100.Text = "" And LB21.Text = "" And LB22.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9448. Otable(CN).Cell(1, 1).Range.Text = Label100.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9449. SSTR = Replace(LB21.Text, vbCrLf, "")
  9450. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9451. SSTR = Replace(LB22.Text, vbCrLf, "")
  9452. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9453. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9454. If Label100.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9455. If Label112.Text = "" And LB23.Text = "" And LB24.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9456. Otable(CN).Cell(1, 1).Range.Text = Label112.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9457. SSTR = Replace(LB23.Text & " " & A中08_lb.Text & " " & LB33.Text, vbCrLf, "")
  9458. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9459. SSTR = Replace(LB24.Text & " " & A英08_lb.Text & " " & LB34.Text, vbCrLf, "")
  9460. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9461. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9462. If Label112.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9463. If Label109.Text = "" And LB25.Text = "" And LB26.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9464. Otable(CN).Cell(1, 1).Range.Text = Label109.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9465. SSTR = Replace(LB25.Text & " " & A中09_lb.Text, vbCrLf, "")
  9466. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9467. SSTR = Replace(LB26.Text & " " & A英09_lb.Text, vbCrLf, "")
  9468. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9469. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9470. If Label109.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1
  9471. Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = "" : Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 5
  9472. Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack : Opara(BN).Format.SpaceAfter = 0 : Opara(BN).Format.SpaceBefore = 0
  9473. Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft : Opara(BN).Range.InsertParagraphAfter() : BN += 1 : End If
  9474. If Label106.Text = "" And LB27.Text = "" And LB28.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9475. Otable(CN).Cell(1, 1).Range.Text = Label106.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9476. SSTR = Replace(LB27.Text & " " & A中10_lb.Text, vbCrLf, "")
  9477. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9478. SSTR = Replace(LB28.Text & " " & A英10_lb.Text, vbCrLf, "")
  9479. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9480. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9481. If Label106.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9482. If Label103.Text = "" And LB29.Text = "" And LB30.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9483. Otable(CN).Cell(1, 1).Range.Text = Label103.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9484. SSTR = Replace(LB29.Text, vbCrLf, "")
  9485. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9486. SSTR = Replace(LB30.Text, vbCrLf, "")
  9487. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9488. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9489. If Label103.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9490. If LB719.Text = "" And LB31.Text = "" And LB32.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9491. Otable(CN).Cell(1, 1).Range.Text = LB719.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9492. SSTR = Replace(LB31.Text, vbCrLf, "")
  9493. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9494. SSTR = Replace(LB32.Text, vbCrLf, "")
  9495. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9496. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9497. If LB719.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9498. If LB720.Text = "" And LB35.Text = "" And LB36.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9499. Otable(CN).Cell(1, 1).Range.Text = LB720.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9500. SSTR = Replace(LB35.Text, vbCrLf, "")
  9501. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9502. SSTR = Replace(LB36.Text, vbCrLf, "")
  9503. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9504. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9505. If LB720.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9506. If LB721.Text = "" And LB722.Text = "" And LB723.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9507. Otable(CN).Cell(1, 1).Range.Text = LB721.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9508. SSTR = Replace(LB722.Text, vbCrLf, "")
  9509. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9510. SSTR = Replace(LB723.Text, vbCrLf, "")
  9511. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9512. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9513. If LB721.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9514. If LB724.Text = "" And LB725.Text = "" And LB726.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9515. Otable(CN).Cell(1, 1).Range.Text = LB724.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9516. SSTR = Replace(LB725.Text, vbCrLf, "")
  9517. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9518. SSTR = Replace(LB726.Text, vbCrLf, "")
  9519. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9520. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9521. If LB724.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9522. If LB727.Text = "" And LB728.Text = "" And LB729.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9523. Otable(CN).Cell(1, 1).Range.Text = LB726.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9524. SSTR = Replace(LB727.Text, vbCrLf, "")
  9525. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9526. SSTR = Replace(LB728.Text, vbCrLf, "")
  9527. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9528. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9529. If LB727.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9530. If LB730.Text = "" And LB731.Text = "" And LB732.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9531. Otable(CN).Cell(1, 1).Range.Text = LB730.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9532. SSTR = Replace(LB731.Text, vbCrLf, "")
  9533. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9534. SSTR = Replace(LB732.Text, vbCrLf, "")
  9535. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9536. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9537. If LB730.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9538. If LB733.Text = "" And LB734.Text = "" And LB735.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9539. Otable(CN).Cell(1, 1).Range.Text = LB733.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9540. SSTR = Replace(LB734.Text, vbCrLf, "")
  9541. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9542. SSTR = Replace(LB735.Text, vbCrLf, "")
  9543. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9544. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9545. If LB733.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9546. If LB736.Text = "" And LB737.Text = "" And LB738.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9547. Otable(CN).Cell(1, 1).Range.Text = LB736.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9548. SSTR = Replace(LB737.Text, vbCrLf, "")
  9549. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9550. SSTR = Replace(LB738.Text, vbCrLf, "")
  9551. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9552. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9553. If LB736.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9554. If LB739.Text = "" And LB740.Text = "" And LB741.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9555. Otable(CN).Cell(1, 1).Range.Text = LB739.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9556. SSTR = Replace(LB740.Text, vbCrLf, "")
  9557. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9558. SSTR = Replace(LB741.Text, vbCrLf, "")
  9559. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9560. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9561. If LB739.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9562. 列印成Word補空()
  9563. '------系統第五頁------------------------------------------------------------------
  9564. SSTR = Replace(Label64.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SSTR
  9565. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack
  9566. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  9567. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  9568. SSTR = Replace(Label63.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SSTR
  9569. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBrown
  9570. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  9571. Opara(BN).Range.InsertParagraphAfter() : BN += 1 : 列印成Word畫線()
  9572. If Label136.Text = "" And LB39.Text = "" And LB40.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9573. Otable(CN).Cell(1, 1).Range.Text = Label136.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9574. SSTR = Replace(LB39.Text, vbCrLf, "")
  9575. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9576. SSTR = Replace(LB40.Text, vbCrLf, "")
  9577. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9578. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9579. If Label136.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9580. If LB45.Text = "" And LB41.Text = "" And LB42.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9581. Otable(CN).Cell(1, 1).Range.Text = LB45.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9582. SSTR = Replace(LB41.Text & " " & LB46.Text & " " & LB47.Text & " " & LB43.Text, vbCrLf, "")
  9583. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9584. SSTR = Replace(LB42.Text & " " & LB48.Text & " " & LB49.Text & " " & LB44.Text, vbCrLf, "")
  9585. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9586. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9587. If LB45.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9588. If 第1期_dgv.Rows.Count > 0 Then
  9589. Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 第1期_dgv.Rows.Count, 2) : Dim ZNX As Integer
  9590. If 第1期_dgv.Rows.Count >= 1 Then : ZNX = 1 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB1.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9591. SSTR = Replace(NLB2.Text & " " & NLB3.Text & " " & NLB4.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9592. If 第1期_dgv.Rows.Count >= 2 Then : ZNX = 2 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB5.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9593. SSTR = Replace(NLB6.Text & " " & NLB7.Text & " " & NLB8.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9594. If 第1期_dgv.Rows.Count >= 3 Then : ZNX = 3 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB9.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9595. SSTR = Replace(NLB10.Text & " " & NLB11.Text & " " & NLB12.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9596. If 第1期_dgv.Rows.Count >= 4 Then : ZNX = 4 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB13.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9597. SSTR = Replace(NLB14.Text & " " & NLB15.Text & " " & NLB16.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9598. If 第1期_dgv.Rows.Count >= 5 Then : ZNX = 5 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB17.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9599. SSTR = Replace(NLB18.Text & " " & NLB19.Text & " " & NLB20.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9600. If 第1期_dgv.Rows.Count >= 6 Then : ZNX = 6 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB21.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9601. SSTR = Replace(NLB22.Text & " " & NLB23.Text & " " & NLB24.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9602. If 第1期_dgv.Rows.Count >= 7 Then : ZNX = 7 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB25.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9603. SSTR = Replace(NLB26.Text & " " & NLB27.Text & " " & NLB28.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9604. If 第1期_dgv.Rows.Count >= 8 Then : ZNX = 8 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB29.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9605. SSTR = Replace(NLB30.Text & " " & NLB31.Text & " " & NLB32.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9606. If 第1期_dgv.Rows.Count >= 9 Then : ZNX = 9 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB33.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9607. SSTR = Replace(NLB34.Text & " " & NLB35.Text & " " & NLB36.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9608. If 第1期_dgv.Rows.Count = 10 Then : ZNX = 10 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB37.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9609. SSTR = Replace(NLB38.Text & " " & NLB39.Text & " " & NLB40.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If : 列印成Word補空() : End If
  9610. If LB54.Text = "" And LB53.Text = "" And LB52.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9611. Otable(CN).Cell(1, 1).Range.Text = LB54.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9612. SSTR = Replace(LB53.Text & " " & LB55.Text & " " & LB56.Text & " " & LB51.Text, vbCrLf, "")
  9613. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9614. SSTR = Replace(LB52.Text & " " & LB57.Text & " " & LB58.Text & " " & LB50.Text, vbCrLf, "")
  9615. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9616. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9617. If LB54.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9618. If 第2期_dgv.Rows.Count > 0 Then
  9619. Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 第2期_dgv.Rows.Count, 2) : Dim ZNX As Integer
  9620. If 第2期_dgv.Rows.Count >= 1 Then : ZNX = 1 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB41.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9621. SSTR = Replace(NLB42.Text & " " & NLB43.Text & " " & NLB44.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9622. If 第2期_dgv.Rows.Count >= 2 Then : ZNX = 2 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB45.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9623. SSTR = Replace(NLB46.Text & " " & NLB47.Text & " " & NLB48.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9624. If 第2期_dgv.Rows.Count >= 3 Then : ZNX = 3 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB49.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9625. SSTR = Replace(NLB50.Text & " " & NLB51.Text & " " & NLB52.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9626. If 第2期_dgv.Rows.Count >= 4 Then : ZNX = 4 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB53.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9627. SSTR = Replace(NLB54.Text & " " & NLB55.Text & " " & NLB56.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9628. If 第2期_dgv.Rows.Count >= 5 Then : ZNX = 5 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB57.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9629. SSTR = Replace(NLB58.Text & " " & NLB59.Text & " " & NLB60.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9630. If 第2期_dgv.Rows.Count >= 6 Then : ZNX = 6 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB61.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9631. SSTR = Replace(NLB62.Text & " " & NLB63.Text & " " & NLB64.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9632. If 第2期_dgv.Rows.Count >= 7 Then : ZNX = 7 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB65.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9633. SSTR = Replace(NLB66.Text & " " & NLB67.Text & " " & NLB68.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9634. If 第2期_dgv.Rows.Count >= 8 Then : ZNX = 8 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB69.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9635. SSTR = Replace(NLB70.Text & " " & NLB71.Text & " " & NLB72.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9636. If 第2期_dgv.Rows.Count >= 9 Then : ZNX = 9 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB73.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9637. SSTR = Replace(NLB74.Text & " " & NLB75.Text & " " & NLB76.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9638. If 第2期_dgv.Rows.Count = 10 Then : ZNX = 10 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB77.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9639. SSTR = Replace(NLB78.Text & " " & NLB79.Text & " " & NLB80.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If : 列印成Word補空() : End If
  9640. If LB63.Text = "" And LB62.Text = "" And LB61.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9641. Otable(CN).Cell(1, 1).Range.Text = LB63.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9642. SSTR = Replace(LB62.Text & " " & LB64.Text & " " & LB65.Text & " " & LB60.Text, vbCrLf, "")
  9643. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9644. SSTR = Replace(LB61.Text & " " & LB66.Text & " " & LB67.Text & " " & LB59.Text, vbCrLf, "")
  9645. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9646. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9647. If LB63.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9648. If 第3期_dgv.Rows.Count > 0 Then
  9649. Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 第3期_dgv.Rows.Count, 2) : Dim ZNX As Integer
  9650. If 第3期_dgv.Rows.Count >= 1 Then : ZNX = 1 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB81.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9651. SSTR = Replace(NLB82.Text & " " & NLB83.Text & " " & NLB84.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9652. If 第3期_dgv.Rows.Count >= 2 Then : ZNX = 2 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB85.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9653. SSTR = Replace(NLB86.Text & " " & NLB87.Text & " " & NLB88.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9654. If 第3期_dgv.Rows.Count >= 3 Then : ZNX = 3 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB89.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9655. SSTR = Replace(NLB90.Text & " " & NLB91.Text & " " & NLB92.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9656. If 第3期_dgv.Rows.Count >= 4 Then : ZNX = 4 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB93.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9657. SSTR = Replace(NLB94.Text & " " & NLB95.Text & " " & NLB96.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9658. If 第3期_dgv.Rows.Count >= 5 Then : ZNX = 5 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB97.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9659. SSTR = Replace(NLB98.Text & " " & NLB99.Text & " " & NLB100.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9660. If 第3期_dgv.Rows.Count >= 6 Then : ZNX = 6 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB101.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9661. SSTR = Replace(NLB102.Text & " " & NLB103.Text & " " & NLB104.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9662. If 第3期_dgv.Rows.Count >= 7 Then : ZNX = 7 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB105.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9663. SSTR = Replace(NLB106.Text & " " & NLB107.Text & " " & NLB108.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9664. If 第3期_dgv.Rows.Count >= 8 Then : ZNX = 8 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB109.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9665. SSTR = Replace(NLB110.Text & " " & NLB111.Text & " " & NLB112.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9666. If 第3期_dgv.Rows.Count >= 9 Then : ZNX = 9 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB113.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9667. SSTR = Replace(NLB114.Text & " " & NLB115.Text & " " & NLB116.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9668. If 第3期_dgv.Rows.Count = 10 Then : ZNX = 10 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB117.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9669. SSTR = Replace(NLB118.Text & " " & NLB119.Text & " " & NLB120.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If : 列印成Word補空() : End If
  9670. If LB72.Text = "" And LB71.Text = "" And LB70.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9671. Otable(CN).Cell(1, 1).Range.Text = LB72.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9672. SSTR = Replace(LB71.Text & " " & LB73.Text & " " & LB74.Text & " " & LB69.Text, vbCrLf, "")
  9673. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9674. SSTR = Replace(LB70.Text & " " & LB75.Text & " " & LB76.Text & " " & LB68.Text, vbCrLf, "")
  9675. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9676. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9677. If LB72.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9678. If 第4期_dgv.Rows.Count > 0 Then
  9679. Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 第4期_dgv.Rows.Count, 2) : Dim ZNX As Integer
  9680. If 第4期_dgv.Rows.Count >= 1 Then : ZNX = 1 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB121.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9681. SSTR = Replace(NLB122.Text & " " & NLB123.Text & " " & NLB124.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9682. If 第4期_dgv.Rows.Count >= 2 Then : ZNX = 2 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB125.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9683. SSTR = Replace(NLB126.Text & " " & NLB127.Text & " " & NLB128.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9684. If 第4期_dgv.Rows.Count >= 3 Then : ZNX = 3 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB129.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9685. SSTR = Replace(NLB130.Text & " " & NLB131.Text & " " & NLB132.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9686. If 第4期_dgv.Rows.Count >= 4 Then : ZNX = 4 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB133.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9687. SSTR = Replace(NLB134.Text & " " & NLB135.Text & " " & NLB136.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9688. If 第4期_dgv.Rows.Count >= 5 Then : ZNX = 5 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB137.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9689. SSTR = Replace(NLB138.Text & " " & NLB139.Text & " " & NLB140.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9690. If 第4期_dgv.Rows.Count >= 6 Then : ZNX = 6 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB141.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9691. SSTR = Replace(NLB142.Text & " " & NLB143.Text & " " & NLB144.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9692. If 第4期_dgv.Rows.Count >= 7 Then : ZNX = 7 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB145.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9693. SSTR = Replace(NLB146.Text & " " & NLB147.Text & " " & NLB148.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9694. If 第4期_dgv.Rows.Count >= 8 Then : ZNX = 8 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB149.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9695. SSTR = Replace(NLB150.Text & " " & NLB151.Text & " " & NLB152.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9696. If 第4期_dgv.Rows.Count >= 9 Then : ZNX = 9 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB153.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9697. SSTR = Replace(NLB154.Text & " " & NLB155.Text & " " & NLB156.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9698. If 第4期_dgv.Rows.Count = 10 Then : ZNX = 10 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB157.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9699. SSTR = Replace(NLB158.Text & " " & NLB159.Text & " " & NLB160.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If : 列印成Word補空() : End If
  9700. If LB81.Text = "" And LB80.Text = "" And LB79.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9701. Otable(CN).Cell(1, 1).Range.Text = LB81.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9702. SSTR = Replace(LB80.Text & " " & LB82.Text & " " & LB83.Text & " " & LB78.Text, vbCrLf, "")
  9703. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9704. SSTR = Replace(LB79.Text & " " & LB84.Text & " " & LB85.Text & " " & LB77.Text, vbCrLf, "")
  9705. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9706. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9707. If LB81.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9708. If 第5期_dgv.Rows.Count > 0 Then
  9709. Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 第5期_dgv.Rows.Count, 2) : Dim ZNX As Integer
  9710. If 第5期_dgv.Rows.Count >= 1 Then : ZNX = 1 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB161.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9711. SSTR = Replace(NLB162.Text & " " & NLB163.Text & " " & NLB164.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9712. If 第5期_dgv.Rows.Count >= 2 Then : ZNX = 2 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB165.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9713. SSTR = Replace(NLB166.Text & " " & NLB167.Text & " " & NLB168.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9714. If 第5期_dgv.Rows.Count >= 3 Then : ZNX = 3 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB169.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9715. SSTR = Replace(NLB170.Text & " " & NLB171.Text & " " & NLB172.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9716. If 第5期_dgv.Rows.Count >= 4 Then : ZNX = 4 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB173.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9717. SSTR = Replace(NLB174.Text & " " & NLB175.Text & " " & NLB176.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9718. If 第5期_dgv.Rows.Count >= 5 Then : ZNX = 5 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB177.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9719. SSTR = Replace(NLB178.Text & " " & NLB179.Text & " " & NLB180.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9720. If 第5期_dgv.Rows.Count >= 6 Then : ZNX = 6 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB181.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9721. SSTR = Replace(NLB182.Text & " " & NLB183.Text & " " & NLB184.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9722. If 第5期_dgv.Rows.Count >= 7 Then : ZNX = 7 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB185.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9723. SSTR = Replace(NLB186.Text & " " & NLB187.Text & " " & NLB188.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9724. If 第5期_dgv.Rows.Count >= 8 Then : ZNX = 8 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB189.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9725. SSTR = Replace(NLB190.Text & " " & NLB191.Text & " " & NLB192.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9726. If 第5期_dgv.Rows.Count >= 9 Then : ZNX = 9 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB193.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9727. SSTR = Replace(NLB194.Text & " " & NLB195.Text & " " & NLB196.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If
  9728. If 第5期_dgv.Rows.Count = 10 Then : ZNX = 10 : Otable(CN).Cell(ZNX, 1).Range.Text = NLB197.Text : Otable(CN).Cell(ZNX, 1).Range.Font.Color = WdColor.wdColorBlue
  9729. SSTR = Replace(NLB198.Text & " " & NLB199.Text & " " & NLB200.Text, vbCrLf, "") : Otable(CN).Cell(ZNX, 2).Range.Text = SSTR : End If : 列印成Word補空() : End If
  9730. '------系統第六頁------------------------------------------------------------------
  9731. If LB687.Text = "" And LB37.Text = "" And LB38.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9732. Otable(CN).Cell(1, 1).Range.Text = LB687.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9733. SSTR = Replace(LB37.Text, vbCrLf, "")
  9734. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9735. SSTR = Replace(LB38.Text, vbCrLf, "")
  9736. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9737. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9738. If LB687.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9739. If LB688.Text = "" And LB86.Text = "" And LB87.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9740. Otable(CN).Cell(1, 1).Range.Text = LB688.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9741. SSTR = Replace(LB86.Text, vbCrLf, "")
  9742. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9743. SSTR = Replace(LB87.Text, vbCrLf, "")
  9744. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9745. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9746. If LB688.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9747. If LB689.Text = "" And LB88.Text = "" And LB89.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9748. Otable(CN).Cell(1, 1).Range.Text = LB689.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9749. SSTR = Replace(LB88.Text, vbCrLf, "")
  9750. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9751. SSTR = Replace(LB89.Text, vbCrLf, "")
  9752. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9753. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9754. If LB689.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9755. If LB690.Text = "" And LB90.Text = "" And LB91.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9756. Otable(CN).Cell(1, 1).Range.Text = LB690.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9757. SSTR = Replace(LB90.Text, vbCrLf, "")
  9758. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9759. SSTR = Replace(LB91.Text, vbCrLf, "")
  9760. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9761. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9762. If LB690.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9763. If LB691.Text = "" And LB92.Text = "" And LB93.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9764. Otable(CN).Cell(1, 1).Range.Text = LB691.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9765. SSTR = Replace(LB92.Text, vbCrLf, "")
  9766. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9767. SSTR = Replace(LB93.Text, vbCrLf, "")
  9768. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9769. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9770. If LB691.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9771. If LB692.Text = "" And LB693.Text = "" And LB694.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9772. Otable(CN).Cell(1, 1).Range.Text = LB692.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9773. SSTR = Replace(LB693.Text, vbCrLf, "")
  9774. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9775. SSTR = Replace(LB694.Text, vbCrLf, "")
  9776. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9777. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9778. If LB692.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9779. If LB695.Text = "" And LB696.Text = "" And LB697.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9780. Otable(CN).Cell(1, 1).Range.Text = LB695.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9781. SSTR = Replace(LB696.Text, vbCrLf, "")
  9782. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9783. SSTR = Replace(LB697.Text, vbCrLf, "")
  9784. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9785. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9786. If LB695.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9787. If LB698.Text = "" And LB699.Text = "" And LB700.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9788. Otable(CN).Cell(1, 1).Range.Text = LB698.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9789. SSTR = Replace(LB699.Text, vbCrLf, "")
  9790. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9791. SSTR = Replace(LB700.Text, vbCrLf, "")
  9792. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9793. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9794. If LB698.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9795. If LB701.Text = "" And LB702.Text = "" And LB703.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9796. Otable(CN).Cell(1, 1).Range.Text = LB701.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9797. SSTR = Replace(LB702.Text, vbCrLf, "")
  9798. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9799. SSTR = Replace(LB703.Text, vbCrLf, "")
  9800. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9801. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9802. If LB701.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9803. If LB704.Text = "" And LB705.Text = "" And LB706.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9804. Otable(CN).Cell(1, 1).Range.Text = LB704.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9805. SSTR = Replace(LB705.Text, vbCrLf, "")
  9806. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9807. SSTR = Replace(LB706.Text, vbCrLf, "")
  9808. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9809. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9810. If LB704.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9811. If LB707.Text = "" And LB708.Text = "" And LB709.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9812. Otable(CN).Cell(1, 1).Range.Text = LB707.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9813. SSTR = Replace(LB708.Text, vbCrLf, "")
  9814. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9815. SSTR = Replace(LB709.Text, vbCrLf, "")
  9816. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9817. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9818. If LB707.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9819. If LB710.Text = "" And LB711.Text = "" And LB712.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9820. Otable(CN).Cell(1, 1).Range.Text = LB710.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9821. SSTR = Replace(LB711.Text, vbCrLf, "")
  9822. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9823. SSTR = Replace(LB712.Text, vbCrLf, "")
  9824. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9825. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9826. If LB710.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9827. If LB713.Text = "" And LB714.Text = "" And LB715.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9828. Otable(CN).Cell(1, 1).Range.Text = LB713.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9829. SSTR = Replace(LB714.Text, vbCrLf, "")
  9830. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9831. SSTR = Replace(LB715.Text, vbCrLf, "")
  9832. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9833. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9834. If LB713.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9835. If LB716.Text = "" And LB717.Text = "" And LB718.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9836. Otable(CN).Cell(1, 1).Range.Text = LB716.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9837. SSTR = Replace(LB717.Text, vbCrLf, "")
  9838. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9839. SSTR = Replace(LB718.Text, vbCrLf, "")
  9840. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9841. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9842. If LB716.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9843. 列印成Word補空()
  9844. '------系統第七頁------------------------------------------------------------------
  9845. SSTR = Replace(LB645.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SSTR
  9846. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack
  9847. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  9848. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  9849. SSTR = Replace(LB646.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SSTR
  9850. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBrown
  9851. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  9852. Opara(BN).Range.InsertParagraphAfter() : BN += 1 : 列印成Word畫線()
  9853. If Label200.Text = "" And LB94.Text = "" And LB97.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9854. Otable(CN).Cell(1, 1).Range.Text = Label200.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9855. SSTR = Replace(LB94.Text & " " & A19_lb.Text & " " & LB95.Text & " " & LB96.Text, vbCrLf, "")
  9856. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9857. SSTR = Replace(LB97.Text & " " & A20_lb.Text & " " & LB98.Text, vbCrLf, "")
  9858. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9859. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9860. If Label200.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9861. If Label208.Text = "" And LB99.Text = "" And LB101.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9862. Otable(CN).Cell(1, 1).Range.Text = Label208.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9863. SSTR = Replace(LB99.Text & " " & A21_lb.Text & " " & LB100.Text & " " & A22_lb.Text, vbCrLf, "")
  9864. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9865. SSTR = Replace(LB101.Text & " " & A23_lb.Text & " " & LB102.Text & " " & A24_lb.Text, vbCrLf, "")
  9866. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9867. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9868. If Label208.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9869. If LB648.Text = "" And LB649.Text = "" And LB650.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9870. Otable(CN).Cell(1, 1).Range.Text = LB648.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9871. SSTR = Replace(LB649.Text, vbCrLf, "")
  9872. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9873. SSTR = Replace(LB650.Text, vbCrLf, "")
  9874. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9875. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9876. If LB648.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9877. If LB651.Text = "" And LB652.Text = "" And LB653.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9878. Otable(CN).Cell(1, 1).Range.Text = LB651.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9879. SSTR = Replace(LB652.Text, vbCrLf, "")
  9880. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9881. SSTR = Replace(LB653.Text, vbCrLf, "")
  9882. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9883. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9884. If LB651.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9885. If LB654.Text = "" And LB655.Text = "" And LB656.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9886. Otable(CN).Cell(1, 1).Range.Text = LB654.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9887. SSTR = Replace(LB655.Text, vbCrLf, "")
  9888. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9889. SSTR = Replace(LB656.Text, vbCrLf, "")
  9890. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9891. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9892. If LB654.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9893. If LB657.Text = "" And LB658.Text = "" And LB659.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9894. Otable(CN).Cell(1, 1).Range.Text = LB657.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9895. SSTR = Replace(LB658.Text, vbCrLf, "")
  9896. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9897. SSTR = Replace(LB659.Text, vbCrLf, "")
  9898. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9899. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9900. If LB657.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9901. If LB660.Text = "" And LB661.Text = "" And LB662.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9902. Otable(CN).Cell(1, 1).Range.Text = LB660.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9903. SSTR = Replace(LB661.Text, vbCrLf, "")
  9904. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9905. SSTR = Replace(LB662.Text, vbCrLf, "")
  9906. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9907. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9908. If LB660.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9909. If LB663.Text = "" And LB664.Text = "" And LB665.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9910. Otable(CN).Cell(1, 1).Range.Text = LB663.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9911. SSTR = Replace(LB664.Text, vbCrLf, "")
  9912. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9913. SSTR = Replace(LB665.Text, vbCrLf, "")
  9914. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9915. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9916. If LB663.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9917. If LB666.Text = "" And LB667.Text = "" And LB668.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9918. Otable(CN).Cell(1, 1).Range.Text = LB666.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9919. SSTR = Replace(LB667.Text, vbCrLf, "")
  9920. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9921. SSTR = Replace(LB668.Text, vbCrLf, "")
  9922. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9923. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9924. If LB666.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9925. If LB669.Text = "" And LB670.Text = "" And LB671.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9926. Otable(CN).Cell(1, 1).Range.Text = LB669.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9927. SSTR = Replace(LB670.Text, vbCrLf, "")
  9928. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9929. SSTR = Replace(LB671.Text, vbCrLf, "")
  9930. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9931. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9932. If LB669.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9933. If LB672.Text = "" And LB673.Text = "" And LB674.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9934. Otable(CN).Cell(1, 1).Range.Text = LB672.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9935. SSTR = Replace(LB673.Text, vbCrLf, "")
  9936. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9937. SSTR = Replace(LB674.Text, vbCrLf, "")
  9938. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9939. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9940. If LB672.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9941. If LB675.Text = "" And LB676.Text = "" And LB677.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9942. Otable(CN).Cell(1, 1).Range.Text = LB675.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9943. SSTR = Replace(LB676.Text, vbCrLf, "")
  9944. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9945. SSTR = Replace(LB677.Text, vbCrLf, "")
  9946. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9947. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9948. If LB675.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9949. If LB678.Text = "" And LB679.Text = "" And LB680.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9950. Otable(CN).Cell(1, 1).Range.Text = LB678.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9951. SSTR = Replace(LB679.Text, vbCrLf, "")
  9952. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9953. SSTR = Replace(LB680.Text, vbCrLf, "")
  9954. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9955. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9956. If LB678.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9957. If LB681.Text = "" And LB682.Text = "" And LB683.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9958. Otable(CN).Cell(1, 1).Range.Text = LB681.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9959. SSTR = Replace(LB682.Text, vbCrLf, "")
  9960. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9961. SSTR = Replace(LB683.Text, vbCrLf, "")
  9962. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9963. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9964. If LB681.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9965. '------系統第八頁------------------------------------------------------------------
  9966. If LB645.Text = LB600.Text Or LB646.Text = LB601.Text Or (LB600.Text = "" And LB601.Text = "") Then : Else : 列印成Word補空()
  9967. SSTR = Replace(LB600.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SSTR
  9968. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack
  9969. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  9970. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  9971. SSTR = Replace(LB601.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SSTR
  9972. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBrown
  9973. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  9974. Opara(BN).Range.InsertParagraphAfter() : BN += 1 : 列印成Word畫線()
  9975. End If
  9976. If LB603.Text = "" And LB604.Text = "" And LB605.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9977. Otable(CN).Cell(1, 1).Range.Text = LB603.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9978. SSTR = Replace(LB604.Text, vbCrLf, "")
  9979. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9980. SSTR = Replace(LB605.Text, vbCrLf, "")
  9981. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9982. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9983. If LB603.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9984. If LB606.Text = "" And LB607.Text = "" And LB608.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9985. Otable(CN).Cell(1, 1).Range.Text = LB606.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9986. SSTR = Replace(LB607.Text, vbCrLf, "")
  9987. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9988. SSTR = Replace(LB608.Text, vbCrLf, "")
  9989. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9990. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9991. If LB606.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  9992. If LB609.Text = "" And LB610.Text = "" And LB611.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  9993. Otable(CN).Cell(1, 1).Range.Text = LB609.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  9994. SSTR = Replace(LB610.Text, vbCrLf, "")
  9995. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  9996. SSTR = Replace(LB611.Text, vbCrLf, "")
  9997. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  9998. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  9999. If LB609.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10000. If LB612.Text = "" And LB613.Text = "" And LB614.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10001. Otable(CN).Cell(1, 1).Range.Text = LB612.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10002. SSTR = Replace(LB613.Text, vbCrLf, "")
  10003. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10004. SSTR = Replace(LB614.Text, vbCrLf, "")
  10005. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10006. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10007. If LB612.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10008. If LB615.Text = "" And LB616.Text = "" And LB617.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10009. Otable(CN).Cell(1, 1).Range.Text = LB615.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10010. SSTR = Replace(LB616.Text, vbCrLf, "")
  10011. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10012. SSTR = Replace(LB617.Text, vbCrLf, "")
  10013. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10014. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10015. If LB615.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10016. If LB618.Text = "" And LB619.Text = "" And LB620.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10017. Otable(CN).Cell(1, 1).Range.Text = LB618.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10018. SSTR = Replace(LB619.Text, vbCrLf, "")
  10019. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10020. SSTR = Replace(LB620.Text, vbCrLf, "")
  10021. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10022. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10023. If LB618.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10024. If LB621.Text = "" And LB622.Text = "" And LB623.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10025. Otable(CN).Cell(1, 1).Range.Text = LB621.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10026. SSTR = Replace(LB622.Text, vbCrLf, "")
  10027. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10028. SSTR = Replace(LB623.Text, vbCrLf, "")
  10029. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10030. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10031. If LB621.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10032. If LB624.Text = "" And LB625.Text = "" And LB626.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10033. Otable(CN).Cell(1, 1).Range.Text = LB624.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10034. SSTR = Replace(LB625.Text, vbCrLf, "")
  10035. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10036. SSTR = Replace(LB626.Text, vbCrLf, "")
  10037. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10038. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10039. If LB624.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10040. If LB627.Text = "" And LB628.Text = "" And LB629.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10041. Otable(CN).Cell(1, 1).Range.Text = LB627.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10042. SSTR = Replace(LB628.Text, vbCrLf, "")
  10043. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10044. SSTR = Replace(LB629.Text, vbCrLf, "")
  10045. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10046. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10047. If LB627.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10048. If LB630.Text = "" And LB631.Text = "" And LB632.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10049. Otable(CN).Cell(1, 1).Range.Text = LB630.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10050. SSTR = Replace(LB631.Text, vbCrLf, "")
  10051. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10052. SSTR = Replace(LB632.Text, vbCrLf, "")
  10053. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10054. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10055. If LB630.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10056. If LB633.Text = "" And LB634.Text = "" And LB635.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10057. Otable(CN).Cell(1, 1).Range.Text = LB633.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10058. SSTR = Replace(LB634.Text, vbCrLf, "")
  10059. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10060. SSTR = Replace(LB635.Text, vbCrLf, "")
  10061. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10062. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10063. If LB633.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10064. If LB636.Text = "" And LB637.Text = "" And LB638.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10065. Otable(CN).Cell(1, 1).Range.Text = LB636.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10066. SSTR = Replace(LB637.Text, vbCrLf, "")
  10067. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10068. SSTR = Replace(LB638.Text, vbCrLf, "")
  10069. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10070. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10071. If LB636.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10072. If LB639.Text = "" And LB640.Text = "" And LB641.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10073. Otable(CN).Cell(1, 1).Range.Text = LB639.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10074. SSTR = Replace(LB640.Text, vbCrLf, "")
  10075. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10076. SSTR = Replace(LB641.Text, vbCrLf, "")
  10077. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10078. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10079. If LB639.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10080. If LB642.Text = "" And LB643.Text = "" And LB644.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10081. Otable(CN).Cell(1, 1).Range.Text = LB642.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10082. SSTR = Replace(LB643.Text, vbCrLf, "")
  10083. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10084. SSTR = Replace(LB644.Text, vbCrLf, "")
  10085. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10086. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10087. If LB642.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10088. '------系統第九頁------------------------------------------------------------------
  10089. If LB600.Text = LB567.Text Or LB601.Text = LB568.Text Or (LB567.Text = "" And LB568.Text = "") Then : Else : 列印成Word補空()
  10090. SSTR = Replace(LB567.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SSTR
  10091. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack
  10092. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  10093. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  10094. SSTR = Replace(LB568.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SSTR
  10095. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBrown
  10096. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  10097. Opara(BN).Range.InsertParagraphAfter() : BN += 1 : 列印成Word畫線()
  10098. End If
  10099. If LB570.Text = "" And LB103.Text = "" And LB104.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10100. Otable(CN).Cell(1, 1).Range.Text = LB570.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10101. SSTR = Replace(LB103.Text, vbCrLf, "")
  10102. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10103. SSTR = Replace(LB104.Text, vbCrLf, "")
  10104. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10105. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10106. If LB570.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10107. If LB571.Text = "" And LB105.Text = "" And LB106.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10108. Otable(CN).Cell(1, 1).Range.Text = LB571.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10109. SSTR = Replace(LB105.Text, vbCrLf, "")
  10110. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10111. SSTR = Replace(LB106.Text, vbCrLf, "")
  10112. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10113. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10114. If LB571.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10115. If LB572.Text = "" And LB107.Text = "" And LB108.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10116. Otable(CN).Cell(1, 1).Range.Text = LB572.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10117. SSTR = Replace(LB107.Text, vbCrLf, "")
  10118. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10119. SSTR = Replace(LB108.Text, vbCrLf, "")
  10120. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10121. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10122. If LB572.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10123. If LB573.Text = "" And LB109.Text = "" And LB110.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10124. Otable(CN).Cell(1, 1).Range.Text = LB573.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10125. SSTR = Replace(LB109.Text, vbCrLf, "")
  10126. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10127. SSTR = Replace(LB110.Text, vbCrLf, "")
  10128. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10129. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10130. If LB573.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10131. If LB574.Text = "" And LB111.Text = "" And LB112.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10132. Otable(CN).Cell(1, 1).Range.Text = LB574.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10133. SSTR = Replace(LB111.Text, vbCrLf, "")
  10134. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10135. SSTR = Replace(LB112.Text, vbCrLf, "")
  10136. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10137. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10138. If LB574.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10139. If LB575.Text = "" And LB113.Text = "" And LB114.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10140. Otable(CN).Cell(1, 1).Range.Text = LB575.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10141. SSTR = Replace(LB113.Text, vbCrLf, "")
  10142. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10143. SSTR = Replace(LB114.Text, vbCrLf, "")
  10144. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10145. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10146. If LB575.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10147. If LB576.Text = "" And LB577.Text = "" And LB578.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10148. Otable(CN).Cell(1, 1).Range.Text = LB576.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10149. SSTR = Replace(LB577.Text, vbCrLf, "")
  10150. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10151. SSTR = Replace(LB578.Text, vbCrLf, "")
  10152. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10153. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10154. If LB576.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10155. If LB579.Text = "" And LB580.Text = "" And LB581.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10156. Otable(CN).Cell(1, 1).Range.Text = LB579.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10157. SSTR = Replace(LB580.Text, vbCrLf, "")
  10158. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10159. SSTR = Replace(LB581.Text, vbCrLf, "")
  10160. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10161. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10162. If LB579.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10163. If LB582.Text = "" And LB583.Text = "" And LB584.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10164. Otable(CN).Cell(1, 1).Range.Text = LB582.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10165. SSTR = Replace(LB583.Text, vbCrLf, "")
  10166. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10167. SSTR = Replace(LB584.Text, vbCrLf, "")
  10168. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10169. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10170. If LB582.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10171. If LB585.Text = "" And LB586.Text = "" And LB587.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10172. Otable(CN).Cell(1, 1).Range.Text = LB585.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10173. SSTR = Replace(LB586.Text, vbCrLf, "")
  10174. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10175. SSTR = Replace(LB587.Text, vbCrLf, "")
  10176. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10177. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10178. If LB585.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10179. If LB588.Text = "" And LB589.Text = "" And LB590.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10180. Otable(CN).Cell(1, 1).Range.Text = LB588.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10181. SSTR = Replace(LB589.Text, vbCrLf, "")
  10182. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10183. SSTR = Replace(LB590.Text, vbCrLf, "")
  10184. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10185. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10186. If LB588.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10187. If LB591.Text = "" And LB592.Text = "" And LB593.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10188. Otable(CN).Cell(1, 1).Range.Text = LB591.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10189. SSTR = Replace(LB592.Text, vbCrLf, "")
  10190. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10191. SSTR = Replace(LB593.Text, vbCrLf, "")
  10192. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10193. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10194. If LB591.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10195. If LB594.Text = "" And LB595.Text = "" And LB596.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10196. Otable(CN).Cell(1, 1).Range.Text = LB594.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10197. SSTR = Replace(LB595.Text, vbCrLf, "")
  10198. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10199. SSTR = Replace(LB596.Text, vbCrLf, "")
  10200. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10201. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10202. If LB594.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10203. If LB597.Text = "" And LB598.Text = "" And LB599.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10204. Otable(CN).Cell(1, 1).Range.Text = LB597.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10205. SSTR = Replace(LB598.Text, vbCrLf, "")
  10206. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10207. SSTR = Replace(LB599.Text, vbCrLf, "")
  10208. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10209. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10210. If LB597.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10211. '------系統第十頁------------------------------------------------------------------
  10212. If LB567.Text = LB524.Text Or LB568.Text = LB525.Text Or (LB524.Text = "" And LB525.Text = "") Then : Else : 列印成Word補空()
  10213. SSTR = Replace(LB524.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SSTR
  10214. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack
  10215. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  10216. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  10217. SSTR = Replace(LB525.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SSTR
  10218. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBrown
  10219. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  10220. Opara(BN).Range.InsertParagraphAfter() : BN += 1 : 列印成Word畫線()
  10221. End If
  10222. If LB527.Text = "" And LB115.Text = "" And LB116.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10223. Otable(CN).Cell(1, 1).Range.Text = LB527.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10224. SSTR = Replace(LB115.Text, vbCrLf, "")
  10225. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10226. SSTR = Replace(LB116.Text, vbCrLf, "")
  10227. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10228. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10229. If LB527.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10230. If LB528.Text = "" And LB529.Text = "" And LB530.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10231. Otable(CN).Cell(1, 1).Range.Text = LB528.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10232. SSTR = Replace(LB529.Text, vbCrLf, "")
  10233. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10234. SSTR = Replace(LB530.Text, vbCrLf, "")
  10235. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10236. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10237. If LB528.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10238. If LB531.Text = "" And LB532.Text = "" And LB533.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10239. Otable(CN).Cell(1, 1).Range.Text = LB531.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10240. SSTR = Replace(LB532.Text, vbCrLf, "")
  10241. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10242. SSTR = Replace(LB533.Text, vbCrLf, "")
  10243. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10244. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10245. If LB531.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10246. If LB534.Text = "" And LB535.Text = "" And LB536.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10247. Otable(CN).Cell(1, 1).Range.Text = LB534.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10248. SSTR = Replace(LB535.Text, vbCrLf, "")
  10249. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10250. SSTR = Replace(LB536.Text, vbCrLf, "")
  10251. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10252. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10253. If LB534.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10254. If LB537.Text = "" And LB538.Text = "" And LB539.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10255. Otable(CN).Cell(1, 1).Range.Text = LB537.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10256. SSTR = Replace(LB538.Text, vbCrLf, "")
  10257. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10258. SSTR = Replace(LB539.Text, vbCrLf, "")
  10259. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10260. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10261. If LB537.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10262. If LB540.Text = "" And LB541.Text = "" And LB542.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10263. Otable(CN).Cell(1, 1).Range.Text = LB540.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10264. SSTR = Replace(LB541.Text, vbCrLf, "")
  10265. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10266. SSTR = Replace(LB542.Text, vbCrLf, "")
  10267. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10268. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10269. If LB540.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10270. If LB543.Text = "" And LB544.Text = "" And LB545.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10271. Otable(CN).Cell(1, 1).Range.Text = LB543.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10272. SSTR = Replace(LB544.Text, vbCrLf, "")
  10273. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10274. SSTR = Replace(LB545.Text, vbCrLf, "")
  10275. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10276. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10277. If LB543.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10278. If LB546.Text = "" And LB547.Text = "" And LB548.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10279. Otable(CN).Cell(1, 1).Range.Text = LB546.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10280. SSTR = Replace(LB547.Text, vbCrLf, "")
  10281. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10282. SSTR = Replace(LB548.Text, vbCrLf, "")
  10283. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10284. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10285. If LB546.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10286. If LB549.Text = "" And LB550.Text = "" And LB551.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10287. Otable(CN).Cell(1, 1).Range.Text = LB549.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10288. SSTR = Replace(LB550.Text, vbCrLf, "")
  10289. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10290. SSTR = Replace(LB551.Text, vbCrLf, "")
  10291. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10292. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10293. If LB549.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10294. If LB552.Text = "" And LB553.Text = "" And LB554.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10295. Otable(CN).Cell(1, 1).Range.Text = LB552.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10296. SSTR = Replace(LB553.Text, vbCrLf, "")
  10297. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10298. SSTR = Replace(LB554.Text, vbCrLf, "")
  10299. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10300. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10301. If LB552.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10302. If LB555.Text = "" And LB556.Text = "" And LB557.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10303. Otable(CN).Cell(1, 1).Range.Text = LB555.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10304. SSTR = Replace(LB556.Text, vbCrLf, "")
  10305. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10306. SSTR = Replace(LB557.Text, vbCrLf, "")
  10307. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10308. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10309. If LB555.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10310. If LB558.Text = "" And LB559.Text = "" And LB560.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10311. Otable(CN).Cell(1, 1).Range.Text = LB558.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10312. SSTR = Replace(LB559.Text, vbCrLf, "")
  10313. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10314. SSTR = Replace(LB560.Text, vbCrLf, "")
  10315. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10316. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10317. If LB558.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10318. If LB561.Text = "" And LB562.Text = "" And LB563.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10319. Otable(CN).Cell(1, 1).Range.Text = LB561.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10320. SSTR = Replace(LB562.Text, vbCrLf, "")
  10321. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10322. SSTR = Replace(LB561.Text, vbCrLf, "")
  10323. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10324. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10325. If LB561.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10326. If LB564.Text = "" And LB565.Text = "" And LB566.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10327. Otable(CN).Cell(1, 1).Range.Text = LB564.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10328. SSTR = Replace(LB565.Text, vbCrLf, "")
  10329. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10330. SSTR = Replace(LB566.Text, vbCrLf, "")
  10331. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10332. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10333. If LB564.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10334. '------系統第十一頁------------------------------------------------------------------
  10335. If LB524.Text = LB483.Text Or LB525.Text = LB484.Text Or (LB483.Text = "" And LB484.Text = "") Then : Else : 列印成Word補空()
  10336. SSTR = Replace(LB483.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SSTR
  10337. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack
  10338. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  10339. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  10340. SSTR = Replace(LB484.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SSTR
  10341. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBrown
  10342. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  10343. Opara(BN).Range.InsertParagraphAfter() : BN += 1 : 列印成Word畫線()
  10344. End If
  10345. If LB486.Text = "" And LB117.Text = "" And LB118.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10346. Otable(CN).Cell(1, 1).Range.Text = LB486.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10347. SSTR = Replace(LB117.Text, vbCrLf, "")
  10348. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10349. SSTR = Replace(LB118.Text, vbCrLf, "")
  10350. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10351. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10352. If LB486.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10353. If LB487.Text = "" And LB119.Text = "" And LB120.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10354. Otable(CN).Cell(1, 1).Range.Text = LB487.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10355. SSTR = Replace(LB119.Text, vbCrLf, "")
  10356. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10357. SSTR = Replace(LB120.Text, vbCrLf, "")
  10358. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10359. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10360. If LB487.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10361. If LB488.Text = "" And LB489.Text = "" And LB490.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10362. Otable(CN).Cell(1, 1).Range.Text = LB488.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10363. SSTR = Replace(LB489.Text, vbCrLf, "")
  10364. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10365. SSTR = Replace(LB490.Text, vbCrLf, "")
  10366. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10367. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10368. If LB488.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10369. If LB491.Text = "" And LB492.Text = "" And LB493.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10370. Otable(CN).Cell(1, 1).Range.Text = LB491.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10371. SSTR = Replace(LB492.Text, vbCrLf, "")
  10372. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10373. SSTR = Replace(LB493.Text, vbCrLf, "")
  10374. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10375. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10376. If LB491.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10377. If LB494.Text = "" And LB495.Text = "" And LB496.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10378. Otable(CN).Cell(1, 1).Range.Text = LB494.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10379. SSTR = Replace(LB495.Text, vbCrLf, "")
  10380. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10381. SSTR = Replace(LB496.Text, vbCrLf, "")
  10382. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10383. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10384. If LB494.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10385. If LB497.Text = "" And LB498.Text = "" And LB499.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10386. Otable(CN).Cell(1, 1).Range.Text = LB497.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10387. SSTR = Replace(LB498.Text, vbCrLf, "")
  10388. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10389. SSTR = Replace(LB499.Text, vbCrLf, "")
  10390. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10391. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10392. If LB497.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10393. If LB500.Text = "" And LB501.Text = "" And LB502.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10394. Otable(CN).Cell(1, 1).Range.Text = LB500.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10395. SSTR = Replace(LB501.Text, vbCrLf, "")
  10396. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10397. SSTR = Replace(LB502.Text, vbCrLf, "")
  10398. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10399. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10400. If LB500.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10401. If LB503.Text = "" And LB504.Text = "" And LB505.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10402. Otable(CN).Cell(1, 1).Range.Text = LB503.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10403. SSTR = Replace(LB504.Text, vbCrLf, "")
  10404. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10405. SSTR = Replace(LB505.Text, vbCrLf, "")
  10406. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10407. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10408. If LB503.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10409. If LB506.Text = "" And LB507.Text = "" And LB508.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10410. Otable(CN).Cell(1, 1).Range.Text = LB506.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10411. SSTR = Replace(LB507.Text, vbCrLf, "")
  10412. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10413. SSTR = Replace(LB508.Text, vbCrLf, "")
  10414. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10415. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10416. If LB506.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10417. If LB509.Text = "" And LB510.Text = "" And LB511.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10418. Otable(CN).Cell(1, 1).Range.Text = LB509.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10419. SSTR = Replace(LB510.Text, vbCrLf, "")
  10420. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10421. SSTR = Replace(LB511.Text, vbCrLf, "")
  10422. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10423. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10424. If LB509.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10425. If LB512.Text = "" And LB513.Text = "" And LB514.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10426. Otable(CN).Cell(1, 1).Range.Text = LB512.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10427. SSTR = Replace(LB513.Text, vbCrLf, "")
  10428. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10429. SSTR = Replace(LB514.Text, vbCrLf, "")
  10430. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10431. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10432. If LB512.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10433. If LB515.Text = "" And LB516.Text = "" And LB517.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10434. Otable(CN).Cell(1, 1).Range.Text = LB515.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10435. SSTR = Replace(LB516.Text, vbCrLf, "")
  10436. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10437. SSTR = Replace(LB517.Text, vbCrLf, "")
  10438. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10439. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10440. If LB515.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10441. If LB518.Text = "" And LB519.Text = "" And LB520.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10442. Otable(CN).Cell(1, 1).Range.Text = LB518.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10443. SSTR = Replace(LB519.Text, vbCrLf, "")
  10444. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10445. SSTR = Replace(LB520.Text, vbCrLf, "")
  10446. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10447. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10448. If LB518.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10449. If LB521.Text = "" And LB522.Text = "" And LB523.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10450. Otable(CN).Cell(1, 1).Range.Text = LB521.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10451. SSTR = Replace(LB522.Text, vbCrLf, "")
  10452. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10453. SSTR = Replace(LB523.Text, vbCrLf, "")
  10454. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10455. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10456. If LB521.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10457. '------系統第十二頁------------------------------------------------------------------
  10458. If LB483.Text = LB438.Text Or LB484.Text = LB439.Text Or (LB438.Text = "" And LB439.Text = "") Then : Else : 列印成Word補空()
  10459. SSTR = Replace(LB438.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SSTR
  10460. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack
  10461. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  10462. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  10463. SSTR = Replace(LB439.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SSTR
  10464. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBrown
  10465. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  10466. Opara(BN).Range.InsertParagraphAfter() : BN += 1 : 列印成Word畫線()
  10467. End If
  10468. If LB441.Text = "" And LB442.Text = "" And LB443.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10469. Otable(CN).Cell(1, 1).Range.Text = LB441.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10470. SSTR = Replace(LB442.Text, vbCrLf, "")
  10471. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10472. SSTR = Replace(LB443.Text, vbCrLf, "")
  10473. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10474. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10475. If LB441.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10476. If LB444.Text = "" And LB445.Text = "" And LB446.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10477. Otable(CN).Cell(1, 1).Range.Text = LB444.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10478. SSTR = Replace(LB445.Text, vbCrLf, "")
  10479. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10480. SSTR = Replace(LB446.Text, vbCrLf, "")
  10481. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10482. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10483. If LB444.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10484. If LB447.Text = "" And LB448.Text = "" And LB449.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10485. Otable(CN).Cell(1, 1).Range.Text = LB447.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10486. SSTR = Replace(LB448.Text, vbCrLf, "")
  10487. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10488. SSTR = Replace(LB449.Text, vbCrLf, "")
  10489. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10490. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10491. If LB447.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10492. If LB450.Text = "" And LB451.Text = "" And LB452.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10493. Otable(CN).Cell(1, 1).Range.Text = LB450.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10494. SSTR = Replace(LB451.Text, vbCrLf, "")
  10495. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10496. SSTR = Replace(LB452.Text, vbCrLf, "")
  10497. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10498. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10499. If LB450.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10500. If LB453.Text = "" And LB454.Text = "" And LB455.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10501. Otable(CN).Cell(1, 1).Range.Text = LB453.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10502. SSTR = Replace(LB454.Text, vbCrLf, "")
  10503. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10504. SSTR = Replace(LB455.Text, vbCrLf, "")
  10505. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10506. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10507. If LB453.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10508. If LB456.Text = "" And LB457.Text = "" And LB458.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10509. Otable(CN).Cell(1, 1).Range.Text = LB456.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10510. SSTR = Replace(LB457.Text, vbCrLf, "")
  10511. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10512. SSTR = Replace(LB458.Text, vbCrLf, "")
  10513. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10514. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10515. If LB456.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10516. If LB459.Text = "" And LB460.Text = "" And LB461.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10517. Otable(CN).Cell(1, 1).Range.Text = LB459.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10518. SSTR = Replace(LB460.Text, vbCrLf, "")
  10519. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10520. SSTR = Replace(LB461.Text, vbCrLf, "")
  10521. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10522. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10523. If LB459.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10524. If LB462.Text = "" And LB463.Text = "" And LB464.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10525. Otable(CN).Cell(1, 1).Range.Text = LB462.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10526. SSTR = Replace(LB463.Text, vbCrLf, "")
  10527. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10528. SSTR = Replace(LB464.Text, vbCrLf, "")
  10529. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10530. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10531. If LB462.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10532. If LB465.Text = "" And LB466.Text = "" And LB467.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10533. Otable(CN).Cell(1, 1).Range.Text = LB465.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10534. SSTR = Replace(LB466.Text, vbCrLf, "")
  10535. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10536. SSTR = Replace(LB467.Text, vbCrLf, "")
  10537. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10538. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10539. If LB465.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10540. If LB468.Text = "" And LB469.Text = "" And LB470.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10541. Otable(CN).Cell(1, 1).Range.Text = LB468.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10542. SSTR = Replace(LB469.Text, vbCrLf, "")
  10543. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10544. SSTR = Replace(LB470.Text, vbCrLf, "")
  10545. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10546. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10547. If LB468.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10548. If LB471.Text = "" And LB472.Text = "" And LB473.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10549. Otable(CN).Cell(1, 1).Range.Text = LB471.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10550. SSTR = Replace(LB472.Text, vbCrLf, "")
  10551. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10552. SSTR = Replace(LB473.Text, vbCrLf, "")
  10553. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10554. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10555. If LB471.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10556. If LB474.Text = "" And LB475.Text = "" And LB476.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10557. Otable(CN).Cell(1, 1).Range.Text = LB474.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10558. SSTR = Replace(LB475.Text, vbCrLf, "")
  10559. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10560. SSTR = Replace(LB476.Text, vbCrLf, "")
  10561. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10562. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10563. If LB474.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10564. If LB477.Text = "" And LB478.Text = "" And LB479.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10565. Otable(CN).Cell(1, 1).Range.Text = LB477.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10566. SSTR = Replace(LB478.Text, vbCrLf, "")
  10567. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10568. SSTR = Replace(LB479.Text, vbCrLf, "")
  10569. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10570. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10571. If LB477.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10572. If LB480.Text = "" And LB481.Text = "" And LB482.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10573. Otable(CN).Cell(1, 1).Range.Text = LB480.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10574. SSTR = Replace(LB481.Text, vbCrLf, "")
  10575. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10576. SSTR = Replace(LB482.Text, vbCrLf, "")
  10577. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10578. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10579. If LB480.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10580. '------系統第十三頁------------------------------------------------------------------
  10581. If LB438.Text = LB393.Text Or LB439.Text = LB394.Text Or (LB393.Text = "" And LB394.Text = "") Then : Else : 列印成Word補空()
  10582. SSTR = Replace(LB393.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SSTR
  10583. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack
  10584. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  10585. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  10586. SSTR = Replace(LB394.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SSTR
  10587. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBrown
  10588. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  10589. Opara(BN).Range.InsertParagraphAfter() : BN += 1 : 列印成Word畫線()
  10590. End If
  10591. If LB396.Text = "" And LB397.Text = "" And LB398.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10592. Otable(CN).Cell(1, 1).Range.Text = LB396.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10593. SSTR = Replace(LB397.Text, vbCrLf, "")
  10594. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10595. SSTR = Replace(LB398.Text, vbCrLf, "")
  10596. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10597. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10598. If LB396.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10599. If LB399.Text = "" And LB400.Text = "" And LB401.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10600. Otable(CN).Cell(1, 1).Range.Text = LB399.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10601. SSTR = Replace(LB400.Text, vbCrLf, "")
  10602. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10603. SSTR = Replace(LB401.Text, vbCrLf, "")
  10604. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10605. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10606. If LB399.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10607. If LB402.Text = "" And LB403.Text = "" And LB404.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10608. Otable(CN).Cell(1, 1).Range.Text = LB402.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10609. SSTR = Replace(LB403.Text, vbCrLf, "")
  10610. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10611. SSTR = Replace(LB404.Text, vbCrLf, "")
  10612. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10613. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10614. If LB402.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10615. If LB405.Text = "" And LB406.Text = "" And LB407.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10616. Otable(CN).Cell(1, 1).Range.Text = LB405.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10617. SSTR = Replace(LB406.Text, vbCrLf, "")
  10618. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10619. SSTR = Replace(LB407.Text, vbCrLf, "")
  10620. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10621. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10622. If LB405.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10623. If LB408.Text = "" And LB409.Text = "" And LB410.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10624. Otable(CN).Cell(1, 1).Range.Text = LB408.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10625. SSTR = Replace(LB409.Text, vbCrLf, "")
  10626. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10627. SSTR = Replace(LB410.Text, vbCrLf, "")
  10628. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10629. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10630. If LB408.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10631. If LB411.Text = "" And LB412.Text = "" And LB413.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10632. Otable(CN).Cell(1, 1).Range.Text = LB411.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10633. SSTR = Replace(LB412.Text, vbCrLf, "")
  10634. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10635. SSTR = Replace(LB413.Text, vbCrLf, "")
  10636. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10637. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10638. If LB411.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10639. If LB414.Text = "" And LB415.Text = "" And LB416.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10640. Otable(CN).Cell(1, 1).Range.Text = LB414.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10641. SSTR = Replace(LB415.Text, vbCrLf, "")
  10642. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10643. SSTR = Replace(LB416.Text, vbCrLf, "")
  10644. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10645. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10646. If LB414.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10647. If LB417.Text = "" And LB418.Text = "" And LB419.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10648. Otable(CN).Cell(1, 1).Range.Text = LB417.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10649. SSTR = Replace(LB418.Text, vbCrLf, "")
  10650. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10651. SSTR = Replace(LB419.Text, vbCrLf, "")
  10652. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10653. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10654. If LB417.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10655. If LB420.Text = "" And LB421.Text = "" And LB422.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10656. Otable(CN).Cell(1, 1).Range.Text = LB420.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10657. SSTR = Replace(LB421.Text, vbCrLf, "")
  10658. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10659. SSTR = Replace(LB422.Text, vbCrLf, "")
  10660. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10661. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10662. If LB420.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10663. If LB423.Text = "" And LB424.Text = "" And LB425.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10664. Otable(CN).Cell(1, 1).Range.Text = LB423.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10665. SSTR = Replace(LB424.Text, vbCrLf, "")
  10666. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10667. SSTR = Replace(LB425.Text, vbCrLf, "")
  10668. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10669. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10670. If LB423.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10671. If LB426.Text = "" And LB427.Text = "" And LB428.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10672. Otable(CN).Cell(1, 1).Range.Text = LB426.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10673. SSTR = Replace(LB427.Text, vbCrLf, "")
  10674. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10675. SSTR = Replace(LB428.Text, vbCrLf, "")
  10676. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10677. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10678. If LB426.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10679. If LB429.Text = "" And LB430.Text = "" And LB431.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10680. Otable(CN).Cell(1, 1).Range.Text = LB429.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10681. SSTR = Replace(LB430.Text, vbCrLf, "")
  10682. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10683. SSTR = Replace(LB431.Text, vbCrLf, "")
  10684. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10685. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10686. If LB429.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10687. If LB432.Text = "" And LB433.Text = "" And LB434.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10688. Otable(CN).Cell(1, 1).Range.Text = LB432.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10689. SSTR = Replace(LB433.Text, vbCrLf, "")
  10690. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10691. SSTR = Replace(LB434.Text, vbCrLf, "")
  10692. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10693. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10694. If LB432.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10695. If LB435.Text = "" And LB436.Text = "" And LB437.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10696. Otable(CN).Cell(1, 1).Range.Text = LB435.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10697. SSTR = Replace(LB436.Text, vbCrLf, "")
  10698. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10699. SSTR = Replace(LB437.Text, vbCrLf, "")
  10700. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10701. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10702. If LB435.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10703. '------系統第十四頁------------------------------------------------------------------
  10704. If LB393.Text = LB348.Text Or LB394.Text = LB349.Text Or (LB348.Text = "" And LB349.Text = "") Then : Else : 列印成Word補空()
  10705. SSTR = Replace(LB348.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SSTR
  10706. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack
  10707. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  10708. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  10709. SSTR = Replace(LB349.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SSTR
  10710. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBrown
  10711. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  10712. Opara(BN).Range.InsertParagraphAfter() : BN += 1 : 列印成Word畫線()
  10713. End If
  10714. If LB351.Text = "" And LB352.Text = "" And LB353.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10715. Otable(CN).Cell(1, 1).Range.Text = LB351.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10716. SSTR = Replace(LB352.Text, vbCrLf, "")
  10717. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10718. SSTR = Replace(LB353.Text, vbCrLf, "")
  10719. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10720. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10721. If LB351.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10722. If LB354.Text = "" And LB355.Text = "" And LB356.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10723. Otable(CN).Cell(1, 1).Range.Text = LB354.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10724. SSTR = Replace(LB355.Text, vbCrLf, "")
  10725. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10726. SSTR = Replace(LB356.Text, vbCrLf, "")
  10727. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10728. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10729. If LB354.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10730. If LB357.Text = "" And LB358.Text = "" And LB359.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10731. Otable(CN).Cell(1, 1).Range.Text = LB357.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10732. SSTR = Replace(LB358.Text, vbCrLf, "")
  10733. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10734. SSTR = Replace(LB359.Text, vbCrLf, "")
  10735. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10736. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10737. If LB357.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10738. If LB360.Text = "" And LB361.Text = "" And LB362.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10739. Otable(CN).Cell(1, 1).Range.Text = LB360.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10740. SSTR = Replace(LB361.Text, vbCrLf, "")
  10741. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10742. SSTR = Replace(LB362.Text, vbCrLf, "")
  10743. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10744. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10745. If LB360.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10746. If LB363.Text = "" And LB364.Text = "" And LB365.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10747. Otable(CN).Cell(1, 1).Range.Text = LB363.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10748. SSTR = Replace(LB364.Text, vbCrLf, "")
  10749. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10750. SSTR = Replace(LB365.Text, vbCrLf, "")
  10751. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10752. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10753. If LB363.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10754. If LB366.Text = "" And LB367.Text = "" And LB368.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10755. Otable(CN).Cell(1, 1).Range.Text = LB366.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10756. SSTR = Replace(LB367.Text, vbCrLf, "")
  10757. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10758. SSTR = Replace(LB368.Text, vbCrLf, "")
  10759. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10760. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10761. If LB366.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10762. If LB369.Text = "" And LB370.Text = "" And LB371.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10763. Otable(CN).Cell(1, 1).Range.Text = LB369.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10764. SSTR = Replace(LB370.Text, vbCrLf, "")
  10765. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10766. SSTR = Replace(LB371.Text, vbCrLf, "")
  10767. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10768. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10769. If LB369.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10770. If LB372.Text = "" And LB373.Text = "" And LB374.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10771. Otable(CN).Cell(1, 1).Range.Text = LB372.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10772. SSTR = Replace(LB373.Text, vbCrLf, "")
  10773. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10774. SSTR = Replace(LB374.Text, vbCrLf, "")
  10775. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10776. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10777. If LB372.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10778. If LB375.Text = "" And LB376.Text = "" And LB377.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10779. Otable(CN).Cell(1, 1).Range.Text = LB375.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10780. SSTR = Replace(LB376.Text, vbCrLf, "")
  10781. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10782. SSTR = Replace(LB377.Text, vbCrLf, "")
  10783. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10784. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10785. If LB375.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10786. If LB378.Text = "" And LB379.Text = "" And LB380.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10787. Otable(CN).Cell(1, 1).Range.Text = LB378.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10788. SSTR = Replace(LB379.Text, vbCrLf, "")
  10789. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10790. SSTR = Replace(LB380.Text, vbCrLf, "")
  10791. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10792. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10793. If LB378.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10794. If LB381.Text = "" And LB382.Text = "" And LB383.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10795. Otable(CN).Cell(1, 1).Range.Text = LB381.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10796. SSTR = Replace(LB382.Text, vbCrLf, "")
  10797. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10798. SSTR = Replace(LB383.Text, vbCrLf, "")
  10799. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10800. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10801. If LB381.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10802. If LB384.Text = "" And LB385.Text = "" And LB386.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10803. Otable(CN).Cell(1, 1).Range.Text = LB384.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10804. SSTR = Replace(LB385.Text, vbCrLf, "")
  10805. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10806. SSTR = Replace(LB386.Text, vbCrLf, "")
  10807. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10808. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10809. If LB384.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10810. If LB387.Text = "" And LB388.Text = "" And LB389.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10811. Otable(CN).Cell(1, 1).Range.Text = LB387.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10812. SSTR = Replace(LB388.Text, vbCrLf, "")
  10813. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10814. SSTR = Replace(LB389.Text, vbCrLf, "")
  10815. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10816. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10817. If LB387.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10818. If LB390.Text = "" And LB391.Text = "" And LB392.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10819. Otable(CN).Cell(1, 1).Range.Text = LB390.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10820. SSTR = Replace(LB391.Text, vbCrLf, "")
  10821. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10822. SSTR = Replace(LB392.Text, vbCrLf, "")
  10823. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10824. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10825. If LB390.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10826. '------系統第十五頁------------------------------------------------------------------
  10827. If LB348.Text = LB303.Text Or LB349.Text = LB304.Text Or (LB303.Text = "" And LB304.Text = "") Then : Else : 列印成Word補空()
  10828. SSTR = Replace(LB303.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SSTR
  10829. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack
  10830. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  10831. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  10832. SSTR = Replace(LB304.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SSTR
  10833. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBrown
  10834. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  10835. Opara(BN).Range.InsertParagraphAfter() : BN += 1 : 列印成Word畫線()
  10836. End If
  10837. If LB306.Text = "" And LB307.Text = "" And LB308.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10838. Otable(CN).Cell(1, 1).Range.Text = LB306.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10839. SSTR = Replace(LB307.Text, vbCrLf, "")
  10840. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10841. SSTR = Replace(LB308.Text, vbCrLf, "")
  10842. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10843. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10844. If LB306.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10845. If LB309.Text = "" And LB310.Text = "" And LB311.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10846. Otable(CN).Cell(1, 1).Range.Text = LB309.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10847. SSTR = Replace(LB310.Text, vbCrLf, "")
  10848. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10849. SSTR = Replace(LB311.Text, vbCrLf, "")
  10850. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10851. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10852. If LB309.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10853. If LB312.Text = "" And LB313.Text = "" And LB314.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10854. Otable(CN).Cell(1, 1).Range.Text = LB312.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10855. SSTR = Replace(LB313.Text, vbCrLf, "")
  10856. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10857. SSTR = Replace(LB314.Text, vbCrLf, "")
  10858. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10859. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10860. If LB312.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10861. If LB315.Text = "" And LB316.Text = "" And LB317.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10862. Otable(CN).Cell(1, 1).Range.Text = LB315.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10863. SSTR = Replace(LB316.Text, vbCrLf, "")
  10864. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10865. SSTR = Replace(LB317.Text, vbCrLf, "")
  10866. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10867. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10868. If LB315.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10869. If LB318.Text = "" And LB319.Text = "" And LB320.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10870. Otable(CN).Cell(1, 1).Range.Text = LB318.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10871. SSTR = Replace(LB319.Text, vbCrLf, "")
  10872. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10873. SSTR = Replace(LB320.Text, vbCrLf, "")
  10874. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10875. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10876. If LB318.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10877. If LB321.Text = "" And LB322.Text = "" And LB323.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10878. Otable(CN).Cell(1, 1).Range.Text = LB321.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10879. SSTR = Replace(LB322.Text, vbCrLf, "")
  10880. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10881. SSTR = Replace(LB323.Text, vbCrLf, "")
  10882. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10883. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10884. If LB321.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10885. If LB324.Text = "" And LB325.Text = "" And LB326.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10886. Otable(CN).Cell(1, 1).Range.Text = LB324.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10887. SSTR = Replace(LB325.Text, vbCrLf, "")
  10888. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10889. SSTR = Replace(LB326.Text, vbCrLf, "")
  10890. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10891. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10892. If LB324.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10893. If LB327.Text = "" And LB328.Text = "" And LB329.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10894. Otable(CN).Cell(1, 1).Range.Text = LB327.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10895. SSTR = Replace(LB328.Text, vbCrLf, "")
  10896. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10897. SSTR = Replace(LB329.Text, vbCrLf, "")
  10898. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10899. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10900. If LB327.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10901. If LB330.Text = "" And LB331.Text = "" And LB332.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10902. Otable(CN).Cell(1, 1).Range.Text = LB330.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10903. SSTR = Replace(LB331.Text, vbCrLf, "")
  10904. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10905. SSTR = Replace(LB332.Text, vbCrLf, "")
  10906. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10907. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10908. If LB330.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10909. If LB333.Text = "" And LB334.Text = "" And LB335.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10910. Otable(CN).Cell(1, 1).Range.Text = LB333.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10911. SSTR = Replace(LB334.Text, vbCrLf, "")
  10912. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10913. SSTR = Replace(LB335.Text, vbCrLf, "")
  10914. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10915. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10916. If LB333.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10917. If LB336.Text = "" And LB337.Text = "" And LB338.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10918. Otable(CN).Cell(1, 1).Range.Text = LB336.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10919. SSTR = Replace(LB337.Text, vbCrLf, "")
  10920. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10921. SSTR = Replace(LB338.Text, vbCrLf, "")
  10922. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10923. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10924. If LB336.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10925. If LB339.Text = "" And LB340.Text = "" And LB341.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10926. Otable(CN).Cell(1, 1).Range.Text = LB339.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10927. SSTR = Replace(LB340.Text, vbCrLf, "")
  10928. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10929. SSTR = Replace(LB341.Text, vbCrLf, "")
  10930. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10931. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10932. If LB339.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10933. If LB342.Text = "" And LB343.Text = "" And LB344.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10934. Otable(CN).Cell(1, 1).Range.Text = LB342.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10935. SSTR = Replace(LB343.Text, vbCrLf, "")
  10936. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10937. SSTR = Replace(LB344.Text, vbCrLf, "")
  10938. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10939. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10940. If LB342.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10941. If LB345.Text = "" And LB346.Text = "" And LB347.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10942. Otable(CN).Cell(1, 1).Range.Text = LB345.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10943. SSTR = Replace(LB346.Text, vbCrLf, "")
  10944. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10945. SSTR = Replace(LB347.Text, vbCrLf, "")
  10946. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10947. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10948. If LB345.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10949. '------系統第十六頁------------------------------------------------------------------
  10950. 列印成Word補空()
  10951. SSTR = Replace(LB267.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SSTR
  10952. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack
  10953. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  10954. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  10955. SSTR = Replace(LB268.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SSTR
  10956. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBrown
  10957. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  10958. Opara(BN).Range.InsertParagraphAfter() : BN += 1 : 列印成Word畫線()
  10959. If LB270.Text = "" And LB121.Text = "" And LB122.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10960. Otable(CN).Cell(1, 1).Range.Text = LB270.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10961. SSTR = Replace(LB121.Text, vbCrLf, "")
  10962. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10963. SSTR = Replace(LB122.Text, vbCrLf, "")
  10964. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10965. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10966. If LB270.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10967. If LB271.Text = "" And LB123.Text = "" And LB124.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10968. Otable(CN).Cell(1, 1).Range.Text = LB271.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10969. SSTR = Replace(LB123.Text, vbCrLf, "")
  10970. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10971. SSTR = Replace(LB124.Text, vbCrLf, "")
  10972. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10973. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10974. If LB271.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10975. If LB272.Text = "" And LB125.Text = "" And LB126.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10976. Otable(CN).Cell(1, 1).Range.Text = LB272.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10977. SSTR = Replace(LB125.Text, vbCrLf, "")
  10978. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10979. SSTR = Replace(LB126.Text, vbCrLf, "")
  10980. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10981. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10982. If LB272.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10983. If LB273.Text = "" And LB127.Text = "" And LB126.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10984. Otable(CN).Cell(1, 1).Range.Text = LB273.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10985. SSTR = Replace(LB127.Text & " " & LB274.Text & " " & LB128.Text, vbCrLf, "")
  10986. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10987. SSTR = Replace(LB129.Text & " " & LB275.Text & " " & LB130.Text, vbCrLf, "")
  10988. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10989. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10990. If LB273.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10991. If LB276.Text = "" And LB277.Text = "" And LB278.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  10992. Otable(CN).Cell(1, 1).Range.Text = LB276.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  10993. SSTR = Replace(LB277.Text, vbCrLf, "")
  10994. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  10995. SSTR = Replace(LB278.Text, vbCrLf, "")
  10996. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  10997. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  10998. If LB276.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  10999. If LB279.Text = "" And LB280.Text = "" And LB281.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11000. Otable(CN).Cell(1, 1).Range.Text = LB279.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11001. SSTR = Replace(LB280.Text, vbCrLf, "")
  11002. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11003. SSTR = Replace(LB281.Text, vbCrLf, "")
  11004. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11005. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11006. If LB279.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11007. If LB282.Text = "" And LB283.Text = "" And LB284.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11008. Otable(CN).Cell(1, 1).Range.Text = LB282.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11009. SSTR = Replace(LB283.Text, vbCrLf, "")
  11010. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11011. SSTR = Replace(LB284.Text, vbCrLf, "")
  11012. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11013. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11014. If LB282.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11015. If LB285.Text = "" And LB286.Text = "" And LB287.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11016. Otable(CN).Cell(1, 1).Range.Text = LB285.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11017. SSTR = Replace(LB286.Text, vbCrLf, "")
  11018. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11019. SSTR = Replace(LB287.Text, vbCrLf, "")
  11020. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11021. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11022. If LB285.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11023. If LB288.Text = "" And LB289.Text = "" And LB290.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11024. Otable(CN).Cell(1, 1).Range.Text = LB288.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11025. SSTR = Replace(LB289.Text, vbCrLf, "")
  11026. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11027. SSTR = Replace(LB290.Text, vbCrLf, "")
  11028. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11029. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11030. If LB288.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11031. If LB291.Text = "" And LB292.Text = "" And LB293.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11032. Otable(CN).Cell(1, 1).Range.Text = LB291.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11033. SSTR = Replace(LB292.Text, vbCrLf, "")
  11034. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11035. SSTR = Replace(LB293.Text, vbCrLf, "")
  11036. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11037. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11038. If LB291.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11039. If LB294.Text = "" And LB295.Text = "" And LB296.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11040. Otable(CN).Cell(1, 1).Range.Text = LB294.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11041. SSTR = Replace(LB295.Text, vbCrLf, "")
  11042. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11043. SSTR = Replace(LB296.Text, vbCrLf, "")
  11044. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11045. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11046. If LB294.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11047. If LB297.Text = "" And LB298.Text = "" And LB299.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11048. Otable(CN).Cell(1, 1).Range.Text = LB297.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11049. SSTR = Replace(LB298.Text, vbCrLf, "")
  11050. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11051. SSTR = Replace(LB299.Text, vbCrLf, "")
  11052. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11053. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11054. If LB297.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11055. If LB300.Text = "" And LB301.Text = "" And LB302.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11056. Otable(CN).Cell(1, 1).Range.Text = LB300.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11057. SSTR = Replace(LB301.Text, vbCrLf, "")
  11058. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11059. SSTR = Replace(LB302.Text, vbCrLf, "")
  11060. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11061. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11062. If LB300.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11063. '------系統第十七頁------------------------------------------------------------------
  11064. If LB267.Text = LB228.Text Or LB268.Text = LB229.Text Or (LB228.Text = "" And LB229.Text = "") Then : Else : 列印成Word補空()
  11065. SSTR = Replace(LB228.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SSTR
  11066. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack
  11067. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  11068. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  11069. SSTR = Replace(LB229.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SSTR
  11070. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBrown
  11071. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  11072. Opara(BN).Range.InsertParagraphAfter() : BN += 1 : 列印成Word畫線()
  11073. End If
  11074. If LB231.Text = "" And LB131.Text = "" And LB132.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11075. Otable(CN).Cell(1, 1).Range.Text = LB231.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11076. SSTR = Replace(LB131.Text, vbCrLf, "")
  11077. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11078. SSTR = Replace(LB132.Text, vbCrLf, "")
  11079. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11080. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11081. If LB231.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11082. If LB232.Text = "" And LB133.Text = "" And LB134.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11083. Otable(CN).Cell(1, 1).Range.Text = LB232.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11084. SSTR = Replace(LB133.Text, vbCrLf, "")
  11085. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11086. SSTR = Replace(LB134.Text, vbCrLf, "")
  11087. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11088. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11089. If LB232.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11090. If LB233.Text = "" And LB135.Text = "" And LB136.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11091. Otable(CN).Cell(1, 1).Range.Text = LB233.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11092. SSTR = Replace(LB135.Text, vbCrLf, "")
  11093. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11094. SSTR = Replace(LB136.Text, vbCrLf, "")
  11095. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11096. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11097. If LB233.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11098. If LB234.Text = "" And LB235.Text = "" And LB236.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11099. Otable(CN).Cell(1, 1).Range.Text = LB233.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11100. SSTR = Replace(LB235.Text, vbCrLf, "")
  11101. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11102. SSTR = Replace(LB236.Text, vbCrLf, "")
  11103. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11104. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11105. If LB234.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11106. If LB237.Text = "" And LB238.Text = "" And LB239.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11107. Otable(CN).Cell(1, 1).Range.Text = LB237.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11108. SSTR = Replace(LB238.Text, vbCrLf, "")
  11109. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11110. SSTR = Replace(LB239.Text, vbCrLf, "")
  11111. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11112. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11113. If LB237.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11114. If LB240.Text = "" And LB241.Text = "" And LB242.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11115. Otable(CN).Cell(1, 1).Range.Text = LB240.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11116. SSTR = Replace(LB241.Text, vbCrLf, "")
  11117. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11118. SSTR = Replace(LB242.Text, vbCrLf, "")
  11119. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11120. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11121. If LB240.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11122. If LB243.Text = "" And LB244.Text = "" And LB245.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11123. Otable(CN).Cell(1, 1).Range.Text = LB243.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11124. SSTR = Replace(LB244.Text, vbCrLf, "")
  11125. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11126. SSTR = Replace(LB245.Text, vbCrLf, "")
  11127. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11128. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11129. If LB243.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11130. If LB246.Text = "" And LB247.Text = "" And LB248.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11131. Otable(CN).Cell(1, 1).Range.Text = LB246.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11132. SSTR = Replace(LB247.Text, vbCrLf, "")
  11133. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11134. SSTR = Replace(LB248.Text, vbCrLf, "")
  11135. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11136. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11137. If LB246.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11138. If LB249.Text = "" And LB250.Text = "" And LB251.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11139. Otable(CN).Cell(1, 1).Range.Text = LB249.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11140. SSTR = Replace(LB250.Text, vbCrLf, "")
  11141. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11142. SSTR = Replace(LB251.Text, vbCrLf, "")
  11143. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11144. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11145. If LB249.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11146. If LB252.Text = "" And LB253.Text = "" And LB254.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11147. Otable(CN).Cell(1, 1).Range.Text = LB252.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11148. SSTR = Replace(LB253.Text, vbCrLf, "")
  11149. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11150. SSTR = Replace(LB254.Text, vbCrLf, "")
  11151. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11152. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11153. If LB252.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11154. If LB255.Text = "" And LB256.Text = "" And LB257.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11155. Otable(CN).Cell(1, 1).Range.Text = LB255.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11156. SSTR = Replace(LB256.Text, vbCrLf, "")
  11157. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11158. SSTR = Replace(LB257.Text, vbCrLf, "")
  11159. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11160. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11161. If LB255.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11162. If LB258.Text = "" And LB259.Text = "" And LB260.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11163. Otable(CN).Cell(1, 1).Range.Text = LB258.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11164. SSTR = Replace(LB259.Text, vbCrLf, "")
  11165. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11166. SSTR = Replace(LB260.Text, vbCrLf, "")
  11167. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11168. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11169. If LB258.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11170. If LB261.Text = "" And LB262.Text = "" And LB263.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11171. Otable(CN).Cell(1, 1).Range.Text = LB261.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11172. SSTR = Replace(LB262.Text, vbCrLf, "")
  11173. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11174. SSTR = Replace(LB263.Text, vbCrLf, "")
  11175. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11176. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11177. If LB261.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11178. If LB264.Text = "" And LB265.Text = "" And LB266.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11179. Otable(CN).Cell(1, 1).Range.Text = LB264.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11180. SSTR = Replace(LB265.Text, vbCrLf, "")
  11181. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11182. SSTR = Replace(LB266.Text, vbCrLf, "")
  11183. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11184. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11185. If LB264.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11186. '------系統第十八頁------------------------------------------------------------------
  11187. If LB228.Text = LB187.Text Or LB229.Text = LB188.Text Or (LB187.Text = "" And LB188.Text = "") Then : Else : 列印成Word補空()
  11188. SSTR = Replace(LB187.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SSTR
  11189. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack
  11190. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  11191. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  11192. SSTR = Replace(LB188.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SSTR
  11193. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBrown
  11194. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  11195. Opara(BN).Range.InsertParagraphAfter() : BN += 1 : 列印成Word畫線()
  11196. End If
  11197. If LB226.Text = "" And LB137.Text = "" And LB138.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11198. Otable(CN).Cell(1, 1).Range.Text = LB226.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11199. SSTR = Replace(LB137.Text, vbCrLf, "")
  11200. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11201. SSTR = Replace(LB138.Text, vbCrLf, "")
  11202. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11203. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11204. If LB226.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11205. If LB227.Text = "" And LB139.Text = "" And LB140.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11206. Otable(CN).Cell(1, 1).Range.Text = LB227.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11207. SSTR = Replace(LB139.Text, vbCrLf, "")
  11208. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11209. SSTR = Replace(LB140.Text, vbCrLf, "")
  11210. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11211. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11212. If LB227.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11213. If LB190.Text = "" And LB191.Text = "" And LB192.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11214. Otable(CN).Cell(1, 1).Range.Text = LB190.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11215. SSTR = Replace(LB191.Text, vbCrLf, "")
  11216. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11217. SSTR = Replace(LB192.Text, vbCrLf, "")
  11218. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11219. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11220. If LB190.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11221. If LB193.Text = "" And LB194.Text = "" And LB195.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11222. Otable(CN).Cell(1, 1).Range.Text = LB193.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11223. SSTR = Replace(LB194.Text, vbCrLf, "")
  11224. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11225. SSTR = Replace(LB195.Text, vbCrLf, "")
  11226. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11227. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11228. If LB193.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11229. If LB196.Text = "" And LB197.Text = "" And LB198.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11230. Otable(CN).Cell(1, 1).Range.Text = LB196.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11231. SSTR = Replace(LB197.Text, vbCrLf, "")
  11232. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11233. SSTR = Replace(LB198.Text, vbCrLf, "")
  11234. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11235. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11236. If LB196.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11237. If LB199.Text = "" And LB200.Text = "" And LB201.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11238. Otable(CN).Cell(1, 1).Range.Text = LB199.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11239. SSTR = Replace(LB200.Text, vbCrLf, "")
  11240. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11241. SSTR = Replace(LB201.Text, vbCrLf, "")
  11242. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11243. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11244. If LB199.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11245. If LB202.Text = "" And LB203.Text = "" And LB204.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11246. Otable(CN).Cell(1, 1).Range.Text = LB202.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11247. SSTR = Replace(LB203.Text, vbCrLf, "")
  11248. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11249. SSTR = Replace(LB204.Text, vbCrLf, "")
  11250. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11251. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11252. If LB202.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11253. If LB205.Text = "" And LB206.Text = "" And LB207.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11254. Otable(CN).Cell(1, 1).Range.Text = LB205.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11255. SSTR = Replace(LB206.Text, vbCrLf, "")
  11256. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11257. SSTR = Replace(LB207.Text, vbCrLf, "")
  11258. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11259. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11260. If LB205.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11261. If LB208.Text = "" And LB209.Text = "" And LB210.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11262. Otable(CN).Cell(1, 1).Range.Text = LB208.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11263. SSTR = Replace(LB209.Text, vbCrLf, "")
  11264. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11265. SSTR = Replace(LB210.Text, vbCrLf, "")
  11266. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11267. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11268. If LB208.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11269. If LB211.Text = "" And LB212.Text = "" And LB213.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11270. Otable(CN).Cell(1, 1).Range.Text = LB211.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11271. SSTR = Replace(LB212.Text, vbCrLf, "")
  11272. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11273. SSTR = Replace(LB213.Text, vbCrLf, "")
  11274. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11275. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11276. If LB211.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11277. If LB214.Text = "" And LB215.Text = "" And LB216.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11278. Otable(CN).Cell(1, 1).Range.Text = LB214.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11279. SSTR = Replace(LB215.Text, vbCrLf, "")
  11280. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11281. SSTR = Replace(LB216.Text, vbCrLf, "")
  11282. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11283. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11284. If LB214.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11285. If LB217.Text = "" And LB218.Text = "" And LB219.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11286. Otable(CN).Cell(1, 1).Range.Text = LB217.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11287. SSTR = Replace(LB218.Text, vbCrLf, "")
  11288. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11289. SSTR = Replace(LB219.Text, vbCrLf, "")
  11290. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11291. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11292. If LB217.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11293. If LB220.Text = "" And LB221.Text = "" And LB222.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11294. Otable(CN).Cell(1, 1).Range.Text = LB220.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11295. SSTR = Replace(LB221.Text, vbCrLf, "")
  11296. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11297. SSTR = Replace(LB222.Text, vbCrLf, "")
  11298. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11299. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11300. If LB220.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11301. If LB222.Text = "" And LB224.Text = "" And LB225.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11302. Otable(CN).Cell(1, 1).Range.Text = LB222.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11303. SSTR = Replace(LB224.Text, vbCrLf, "")
  11304. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11305. SSTR = Replace(LB225.Text, vbCrLf, "")
  11306. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11307. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11308. If LB222.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11309. '------系統第十九頁------------------------------------------------------------------
  11310. 列印成Word補空()
  11311. SSTR = Replace(LB153.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SSTR
  11312. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack
  11313. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  11314. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  11315. SSTR = Replace(LB154.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SSTR
  11316. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBrown
  11317. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  11318. Opara(BN).Range.InsertParagraphAfter() : BN += 1 : 列印成Word畫線()
  11319. If LB156.Text = "" And LB141.Text = "" And LB142.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11320. Otable(CN).Cell(1, 1).Range.Text = LB156.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11321. SSTR = Replace(LB141.Text, vbCrLf, "")
  11322. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11323. SSTR = Replace(LB142.Text, vbCrLf, "")
  11324. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11325. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11326. If LB156.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11327. If LB157.Text = "" And LB143.Text = "" And LB144.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11328. Otable(CN).Cell(1, 1).Range.Text = LB157.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11329. SSTR = Replace(LB143.Text, vbCrLf, "")
  11330. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11331. SSTR = Replace(LB144.Text, vbCrLf, "")
  11332. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11333. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11334. If LB157.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11335. If LB158.Text = "" And LB159.Text = "" And LB148.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11336. Otable(CN).Cell(1, 1).Range.Text = LB158.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11337. SSTR = Replace(LB159.Text & " " & LB160.Text & " " & LB161.Text & " " & LB145.Text & " " & LB162.Text & " " & LB146.Text & " " & LB147.Text, vbCrLf, "")
  11338. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11339. SSTR = Replace(LB148.Text & " " & LB163.Text & " " & LB149.Text & " " & LB164.Text & " " & LB150.Text & " " & LB165.Text & " " & LB151.Text & " " & LB152.Text, vbCrLf, "")
  11340. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11341. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11342. If LB158.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11343. If LB166.Text = "" And LB167.Text = "" And LB168.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11344. Otable(CN).Cell(1, 1).Range.Text = LB166.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11345. SSTR = Replace(LB167.Text, vbCrLf, "")
  11346. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11347. SSTR = Replace(LB168.Text, vbCrLf, "")
  11348. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11349. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11350. If LB166.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11351. If LB169.Text = "" And LB170.Text = "" And LB171.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11352. Otable(CN).Cell(1, 1).Range.Text = LB169.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11353. SSTR = Replace(LB170.Text, vbCrLf, "")
  11354. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11355. SSTR = Replace(LB171.Text, vbCrLf, "")
  11356. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11357. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11358. If LB169.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11359. If LB172.Text = "" And LB173.Text = "" And LB174.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11360. Otable(CN).Cell(1, 1).Range.Text = LB172.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11361. SSTR = Replace(LB173.Text, vbCrLf, "")
  11362. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11363. SSTR = Replace(LB174.Text, vbCrLf, "")
  11364. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11365. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11366. If LB172.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11367. If LB175.Text = "" And LB176.Text = "" And LB177.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11368. Otable(CN).Cell(1, 1).Range.Text = LB175.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11369. SSTR = Replace(LB176.Text, vbCrLf, "")
  11370. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11371. SSTR = Replace(LB177.Text, vbCrLf, "")
  11372. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11373. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11374. If LB175.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11375. If LB178.Text = "" And LB179.Text = "" And LB180.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11376. Otable(CN).Cell(1, 1).Range.Text = LB178.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11377. SSTR = Replace(LB179.Text, vbCrLf, "")
  11378. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11379. SSTR = Replace(LB180.Text, vbCrLf, "")
  11380. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11381. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11382. If LB178.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11383. If LB181.Text = "" And LB182.Text = "" And LB183.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11384. Otable(CN).Cell(1, 1).Range.Text = LB181.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11385. SSTR = Replace(LB182.Text, vbCrLf, "")
  11386. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11387. SSTR = Replace(LB183.Text, vbCrLf, "")
  11388. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11389. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11390. If LB181.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11391. If LB184.Text = "" And LB185.Text = "" And LB186.Text = "" Then : Else : Otable(CN) = Odoc.Tables.Add(Odoc.Bookmarks.Item("\endofdoc").Range, 2, 2)
  11392. Otable(CN).Cell(1, 1).Range.Text = LB184.Text : Otable(CN).Cell(1, 1).Range.Font.Size = 8 : Otable(CN).Cell(1, 1).Range.Font.Color = WdColor.wdColorBlack
  11393. SSTR = Replace(LB185.Text, vbCrLf, "")
  11394. Otable(CN).Cell(1, 2).Range.Text = SSTR : Otable(CN).Cell(1, 2).Range.Font.Size = 8 : Otable(CN).Cell(1, 2).Range.Font.Color = WdColor.wdColorBlack
  11395. SSTR = Replace(LB186.Text, vbCrLf, "")
  11396. Otable(CN).Cell(2, 2).Range.Text = SSTR : Otable(CN).Cell(2, 2).Range.Font.Size = 8 : Otable(CN).Cell(2, 2).Range.Font.Color = WdColor.wdColorBrown
  11397. Otable(CN).Columns(1).SetWidth(ColumnWidth:=28.35, RulerStyle:=WdRulerStyle.wdAdjustFirstColumn)
  11398. If LB184.Location.X > 10 Then : Otable(CN).Rows.SetLeftIndent(LeftIndent:=36.85, RulerStyle:=WdRulerStyle.wdAdjustNone) : End If : CN += 1 : 列印成Word補空() : End If
  11399. '------系統第二十頁------------------------------------------------------------------
  11400. 列印成Word補空()
  11401. SSTR = Replace(SLB1.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SSTR
  11402. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack
  11403. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  11404. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  11405. SSTR = Replace(SLB2.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SSTR
  11406. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 12 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBrown
  11407. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  11408. Opara(BN).Range.InsertParagraphAfter() : BN += 1 : 列印成Word畫線()
  11409. SSTR = Replace(SLB6.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SLB4.Text & " : " & SSTR
  11410. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 9 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack
  11411. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  11412. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  11413. SSTR = Replace(SLB9.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SLB7.Text & " : " & SSTR
  11414. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 9 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack
  11415. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  11416. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  11417. SSTR = Replace(SLB12.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SLB10.Text & " : " & SSTR
  11418. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 9 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack
  11419. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  11420. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  11421. SSTR = Replace(SLB15.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SLB13.Text & " : " & SSTR
  11422. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 9 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack
  11423. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  11424. Opara(BN).Range.InsertParagraphAfter() : BN += 1 : 列印成Word補空() : 列印成Word補空()
  11425. SSTR = Replace(SLB18.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SLB16.Text & " : " & SSTR
  11426. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 9 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlue
  11427. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  11428. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  11429. SSTR = Replace(SLB21.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SLB19.Text & " : " & SSTR
  11430. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 9 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlue
  11431. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  11432. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  11433. SSTR = Replace(SLB24.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SLB22.Text & " : " & SSTR
  11434. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 9 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlue
  11435. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  11436. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  11437. SSTR = Replace(SLB27.Text, vbCrLf, "") : Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = SLB25.Text & " : " & SSTR
  11438. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 9 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlue
  11439. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  11440. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  11441. '--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  11442. 'Oword.ActiveDocument.Protect(Password:="0911274990", NoReset:=False, Type:=WdProtectionType.wdAllowOnlyReading, UseIRM:=False, EnforceStyleLock:=True)
  11443. Dim Str3 As String
  11444. Str3 = My.Computer.FileSystem.SpecialDirectories.Desktop & "\" & 合約編號_cb.Text & "-" & 合約編號1_tb.Text & " " & 合約編號2_tb.Text & "-" & 合約編號3_tb.Text & "合約.docx"
  11445. Oword.ActiveDocument.SaveAs(Str3)
  11446. Dim SS, SS1, SS2 As String
  11447. If 系統語言 = "繁體中文" Then : SS = "存檔成功 !!!" : SS1 = "檔案儲存於 : 您的電腦桌面。" : SS2 = "檔存檔資訊"
  11448. Else : SS = "Silakan masukkan kode otorisasi!!" : SS1 = "File disimpan di : desktop komputer Anda." : SS2 = "informasi arsip file" : End If
  11449. MessageBox.Show(SS & vbCrLf & SS1, SS2, MessageBoxButtons.OK, MessageBoxIcon.Information)
  11450. Catch ex As Exception
  11451. MsgBox(ex.Message)
  11452. End Try
  11453. End If
  11454. End Sub
  11455. Private Sub 列印成Word畫線()
  11456. Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = "_____________________________________________________________________________________________________________"
  11457. Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 9 : Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack
  11458. Opara(BN).Format.SpaceAfter = 2 : Opara(BN).Format.SpaceBefore = 2 : Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
  11459. Opara(BN).Range.InsertParagraphAfter() : BN += 1
  11460. End Sub
  11461. Private Sub 列印成Word補空()
  11462. Opara(BN) = Odoc.Content.Paragraphs.Add : Opara(BN).Range.Text = "" : Opara(BN).Range.Font.Name = "新明細體" : Opara(BN).Range.Font.Size = 5
  11463. Opara(BN).Range.Font.Bold = True : Opara(BN).Range.Font.Color = WdColor.wdColorBlack : Opara(BN).Format.SpaceAfter = 0 : Opara(BN).Format.SpaceBefore = 0
  11464. Opara(BN).Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft : Opara(BN).Range.InsertParagraphAfter() : BN += 1
  11465. End Sub
  11466. End Class