pull/9/head
yangtengze 2 years ago
parent d2d662ebc3
commit aac2722502

@ -0,0 +1,148 @@
<svg host="65bd71144e" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="414px" height="741px" viewBox="-0.5 -0.5 414 741" content="&lt;mxfile&gt;&lt;diagram id=&quot;TgriccfKKwNxxR0kH169&quot; name=&quot;Page-1&quot;&gt;1VhNc5swEP01umYAIQNHwLjtoW2mObQ9KkbBmsiIEXJs59dXAmE+3TgT2+NcbOlpV7Bvn1YSAMbr3ReBi9V3nhIGHCvdATgHjuN5lvrVwL4GXOjVQCZoWkN2CzzQV2JA45dtaErKnqHknEla9MElz3OylD0MC8G3fbMnzvpPLXBGRsDDErMx+pumclWjPrJa/Cuh2ap5sm2ZkTVujA1QrnDKtx0IJgDGgnNZt9a7mDDNXcNL7bc4Mnp4MUFyeYqDWzu8YLYxsZn3kvsmWJKq2E0357n6i1ZyzVTPVs0nnkuTINtT/dpd+xx9IwOVfCOWxso8VWKREWMFD2woFRG+JlLslYkgDEv60p8dm3xmB7s2ZNUwUU8z4IwYmPNfpMA0jTh/HrPBmFKZJmG7opI8FLiKYat0PkGM8TtO1AsRkuz+T9WYBOPgQFS7mGXkG1FtW03aM2Oy6uixsfsIbcFtCAeOheNfSThwzEAyA/4CBBZIPBC6IApB4oMoAQEECQI+AiHSjSDSYKIMAhDOvs1HzKmqUOhmIfiSlOXbYnvEy+dM8E2e/txIRvNjohuK8hwiRN5dX4bQntBhU/C6OpydQYdoMgtBRXsvCwsNNpxXWXCAH1cNCMKw8opBGHdsqnnChXZXXd/uzOOBIAS+C5IFiGIQLI6nEAvMGGE8E3itGC+IoCpIIoZj9+3Am6WF7kizK16otNj+MKvORFYPGTx3Vm37NsqLPy4vtjVN3Nnri30je/MUB9fanP2J1T2snxoJ59WqRNUS9m9zVV6l9rrOFWuvPbsNhTaVqSdRdK1lao1ImPMwnT49fqqN3XUG4kKzCXGhS4lrfDD/MeJTRSf7hGFGs1y1lyrKatVqDqi6uoVmYE3TVLtHgpT0FT9WU1m6BnCay+qFUQTQXM+1kbxsF3QpBX8mMWdctGJ+oowNoQuc9Jsje5MJG40y4U4kAp4jEd47FzXZUflHk6rkU/f+dkbmO8N31dmbzpkKwUf3JeN6r6XQsg+dPvueM6C1LjzGq2U2FALvO2ZGYUefg+D0c9pE1TO2aTvEeFomp64s4+1UHXsRiNQlJgC+py80+u4SgtCyR0L4TPXMPW2zbKve2SvaxF1lSGhFDUlN1Kd8YrjwJuDN7pw+a4evdx3W/EnS0PtJU93241ct8fYLIkz+AQ==&lt;/diagram&gt;&lt;/mxfile&gt;">
<defs/>
<g>
<path d="M 130.5 80 L 130.5 223.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 130.5 228.88 L 127 221.88 L 130.5 223.63 L 134 221.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<ellipse cx="130.5" cy="40" rx="82.5" ry="40" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 163px; height: 1px; padding-top: 40px; margin-left: 49px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 17px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; font-weight: bold; white-space: normal; overflow-wrap: normal;">
DoRepaidBook
</div>
</div>
</div>
</foreignObject>
<text x="131" y="45" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="17px" text-anchor="middle" font-weight="bold">
DoRepaidBook
</text>
</switch>
</g>
<path d="M 130.5 290 L 130.5 333.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 130.5 338.88 L 127 331.88 L 130.5 333.63 L 134 331.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="70.5" y="230" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<path d="M 82.5 230 L 82.5 290 M 178.5 230 L 178.5 290" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 94px; height: 1px; padding-top: 260px; margin-left: 84px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 17px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; font-weight: bold; white-space: normal; overflow-wrap: normal;">
提示输入图书ID
</div>
</div>
</div>
</foreignObject>
<text x="131" y="265" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="17px" text-anchor="middle" font-weight="bold">
提示输入图书ID
</text>
</switch>
</g>
<path d="M 0.5 190 L 20.5 130 L 260.5 130 L 240.5 190 Z" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 258px; height: 1px; padding-top: 160px; margin-left: 2px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 17px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
显示还书和哪本书是要还的?
</div>
</div>
</div>
</foreignObject>
<text x="131" y="165" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="17px" text-anchor="middle">
显示还书和哪本书是要还的?
</text>
</switch>
</g>
<path d="M 130.5 400 L 130.5 473.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 130.5 478.88 L 127 471.88 L 130.5 473.63 L 134 471.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 180.5 370 L 264.13 370" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 269.38 370 L 262.38 373.5 L 264.13 370 L 262.38 366.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 70.5 400 L 90.5 340 L 190.5 340 L 170.5 400 Z" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 370px; margin-left: 72px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 17px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; font-weight: bold; white-space: normal; overflow-wrap: normal;">
图书存在?
</div>
</div>
</div>
</foreignObject>
<text x="131" y="375" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="17px" text-anchor="middle" font-weight="bold">
图书存在?
</text>
</switch>
</g>
<path d="M 130.5 540 L 130.5 683.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 130.5 688.88 L 127 681.88 L 130.5 683.63 L 134 681.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="55.5" y="480" width="150" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<path d="M 70.5 480 L 70.5 540 M 190.5 480 L 190.5 540" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 510px; margin-left: 72px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 17px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; font-weight: bold; white-space: normal; overflow-wrap: normal;">
DoAddBook
</div>
</div>
</div>
</foreignObject>
<text x="131" y="515" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="17px" text-anchor="middle" font-weight="bold">
DoAddBook
</text>
</switch>
</g>
<rect x="93" y="435" width="40" height="30" fill="none" stroke="none" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 450px; margin-left: 113px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 17px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: nowrap;">
N
</div>
</div>
</div>
</foreignObject>
<text x="113" y="455" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="17px" text-anchor="middle">
N
</text>
</switch>
</g>
<path d="M 341.75 400 L 342.95 630 Q 343 640 333 640 L 139.37 640" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 134.12 640 L 141.12 636.5 L 139.37 640 L 141.12 643.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="270.5" y="340" width="142.5" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<path d="M 284.5 340 L 284.5 400 M 399 340 L 399 400" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 112px; height: 1px; padding-top: 370px; margin-left: 286px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 17px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; font-weight: bold; white-space: normal; overflow-wrap: normal;">
图书数量加1
</div>
</div>
</div>
</foreignObject>
<text x="341" y="375" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="17px" text-anchor="middle" font-weight="bold">
图书数量加1
</text>
</switch>
</g>
<rect x="89.25" y="690" width="82.5" height="50" rx="7.5" ry="7.5" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
</g>
<switch>
<g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/>
<a transform="translate(0,-5)" xlink:href="https://www.diagrams.net/doc/faq/svg-export-text-problems" target="_blank">
<text text-anchor="middle" font-size="10px" x="50%" y="100%">
Text is not SVG - cannot display
</text>
</a>
</switch>
</svg>

After

Width:  |  Height:  |  Size: 14 KiB

@ -342,3 +342,11 @@ Step 2: 输出所有书籍
Step 3: 显示总书籍个数
```
![print](Graph\DoPrintBook.drawio.svg)
## DoRepaidBook
```
Step 1: 提示归还图书和哪本书是要还的
Step 2: 输入图书编号
Step 3: if 存在该书 then 图书数量变化 1
Step 4: if 不存在该书 then 添加此图书
```
![repaid](Graph\DoRepaidBook.drawio.svg)
Loading…
Cancel
Save