bo yu 2 years ago
commit c135827fd5

BIN
2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

@ -358,6 +358,8 @@ Step 3: if 打开文件失败 then 提示打开文件失败并结束
Step 4: 将所有库存记录写入文件 Step 4: 将所有库存记录写入文件
Step 5: 关闭文件 Step 5: 关闭文件
! [](/mm.drawio.svg)
#### print_data #### print_data
Step 1: 输出学号、姓名、成绩 Step 1: 输出学号、姓名、成绩

@ -0,0 +1,67 @@
<mxfile host="65bd71144e">
<diagram id="KfGg7ewQHjnR5lwAaYOd" name="Page-1">
<mxGraphModel dx="832" dy="563" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" background="#ffffff" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="5" value="" style="edgeStyle=none;html=1;strokeColor=#130b0b;" parent="1" source="3" target="4" edge="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="3" value="&lt;font color=&quot;#0d0808&quot;&gt;save_data&lt;/font&gt;" style="ellipse;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#000000;" parent="1" vertex="1">
<mxGeometry x="90" y="70" width="170" height="80" as="geometry"/>
</mxCell>
<mxCell id="7" value="" style="edgeStyle=none;html=1;strokeColor=#000000;" parent="1" source="4" target="6" edge="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="4" value="&lt;font color=&quot;#000000&quot;&gt;输入文件名&lt;/font&gt;" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;fillColor=#FFFFFF;strokeColor=#000000;" parent="1" vertex="1">
<mxGeometry x="90" y="180" width="170" height="50" as="geometry"/>
</mxCell>
<mxCell id="9" value="" style="edgeStyle=none;html=1;strokeColor=#000000;" parent="1" source="6" target="8" edge="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="6" value="&lt;font color=&quot;#000000&quot;&gt;打开文件&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;gradientColor=#FFFFFF;fillColor=#FFFFFF;strokeColor=#000000;" parent="1" vertex="1">
<mxGeometry x="100" y="260" width="150" height="50" as="geometry"/>
</mxCell>
<mxCell id="11" value="" style="edgeStyle=none;html=1;strokeColor=#000000;" parent="1" source="8" target="10" edge="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="17" value="" style="edgeStyle=none;html=1;strokeColor=#000000;" parent="1" source="8" target="16" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="430" y="380"/>
</Array>
</mxGeometry>
</mxCell>
<mxCell id="8" value="&lt;font color=&quot;#000000&quot;&gt;打开文件成功?&lt;/font&gt;" style="rhombus;whiteSpace=wrap;html=1;rounded=1;fillColor=#FFFFFF;strokeColor=#000000;" parent="1" vertex="1">
<mxGeometry x="90" y="340" width="170" height="80" as="geometry"/>
</mxCell>
<mxCell id="13" value="" style="edgeStyle=none;html=1;strokeColor=#000000;" parent="1" source="10" target="12" edge="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="10" value="&lt;font color=&quot;#000000&quot;&gt;把所有库存记录写入文档&lt;/font&gt;" style="shape=document;whiteSpace=wrap;html=1;boundedLbl=1;rounded=1;fillColor=#FFFFFF;strokeColor=#000000;" parent="1" vertex="1">
<mxGeometry x="100" y="450" width="150" height="80" as="geometry"/>
</mxCell>
<mxCell id="15" value="" style="edgeStyle=none;html=1;strokeColor=#000000;" parent="1" source="12" target="14" edge="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="12" value="&lt;font color=&quot;#000000&quot;&gt;关闭文件&lt;/font&gt;" style="whiteSpace=wrap;html=1;rounded=1;fillColor=#FFFFFF;strokeColor=#000000;" parent="1" vertex="1">
<mxGeometry x="100" y="560" width="150" height="70" as="geometry"/>
</mxCell>
<mxCell id="14" value="" style="ellipse;whiteSpace=wrap;html=1;rounded=1;fillColor=#FFFFFF;strokeColor=#000000;" parent="1" vertex="1">
<mxGeometry x="90" y="670" width="170" height="60" as="geometry"/>
</mxCell>
<mxCell id="18" style="edgeStyle=none;html=1;strokeColor=#000000;" parent="1" source="16" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="170" y="650" as="targetPoint"/>
<Array as="points">
<mxPoint x="430" y="650"/>
</Array>
</mxGeometry>
</mxCell>
<mxCell id="16" value="&lt;font color=&quot;#000000&quot;&gt;提示打开文件失败&lt;/font&gt;" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;rounded=1;fillColor=#FFFFFF;strokeColor=#000000;" parent="1" vertex="1">
<mxGeometry x="350" y="510" width="160" height="60" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>

@ -0,0 +1,55 @@
<mxfile host="65bd71144e">
<diagram id="XFK3w_GTDJXIYlRDLBu6" name="Page-1">
<mxGraphModel dx="598" dy="531" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" background="#ffffff" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="8" value="" style="edgeStyle=none;html=1;strokeColor=#000000;" edge="1" parent="1" source="2" target="7">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="2" value="" style="ellipse;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#000000;" vertex="1" parent="1">
<mxGeometry x="100" y="50" width="120" height="80" as="geometry"/>
</mxCell>
<mxCell id="10" value="" style="edgeStyle=none;html=1;strokeColor=#000000;" edge="1" parent="1" source="7" target="9">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="7" value="" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;fillColor=#FFFFFF;strokeColor=#000000;" vertex="1" parent="1">
<mxGeometry x="80" y="160" width="160" height="60" as="geometry"/>
</mxCell>
<mxCell id="12" value="" style="edgeStyle=none;html=1;strokeColor=#000000;" edge="1" parent="1" source="9" target="11">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="16" value="" style="edgeStyle=none;html=1;strokeColor=#000000;" edge="1" parent="1" source="9" target="15">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="380" y="290"/>
</Array>
</mxGeometry>
</mxCell>
<mxCell id="9" value="" style="rhombus;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#000000;" vertex="1" parent="1">
<mxGeometry x="60" y="250" width="200" height="80" as="geometry"/>
</mxCell>
<mxCell id="18" value="" style="edgeStyle=none;html=1;strokeColor=#000000;" edge="1" parent="1" source="11" target="17">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="11" value="" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;fillColor=#FFFFFF;strokeColor=#000000;" vertex="1" parent="1">
<mxGeometry x="80" y="360" width="160" height="70" as="geometry"/>
</mxCell>
<mxCell id="20" style="edgeStyle=none;html=1;strokeColor=#000000;" edge="1" parent="1" source="15">
<mxGeometry relative="1" as="geometry">
<mxPoint x="160" y="470" as="targetPoint"/>
<Array as="points">
<mxPoint x="380" y="470"/>
</Array>
</mxGeometry>
</mxCell>
<mxCell id="15" value="" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;fillColor=#FFFFFF;strokeColor=#000000;" vertex="1" parent="1">
<mxGeometry x="300" y="360" width="160" height="70" as="geometry"/>
</mxCell>
<mxCell id="17" value="" style="ellipse;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#000000;" vertex="1" parent="1">
<mxGeometry x="80" y="500" width="160" height="80" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>
Loading…
Cancel
Save