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.
|
|
|
|
##C4: 添加库存记录
|
|
|
|
|
选择菜单命令 5 ,提示输入零件编号,若该零件不存在,则继续输入零件名称、库存数量,添加零件, 并提示完成;若零件编号已存在,则提示零件已存在,并结束。
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
请选择:5
|
|
|
|
|
输入零件编号:101
|
|
|
|
|
输入零件名:电脑
|
|
|
|
|
输入库存数:20
|
|
|
|
|
零件 101 已添加
|
|
|
|
|
|
|
|
|
|
1 读取 | 2 保存 | 3 打印 | 4 查询 | 5 添加
|
|
|
|
|
6 修改 | 7 删除 | 8 排序 | 9 图表 | 0 退出
|
|
|
|
|
|
|
|
|
|
请选择:5
|
|
|
|
|
输入零件编号:101
|
|
|
|
|
零件已存在 .
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##C5: 查询库存记录
|
|
|
|
|
选择菜单命令 4 ,提示输入零件编号,若该零件存在,则输出零件信息;否则提示零件不存在并结束。
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
请选择:4
|
|
|
|
|
输入零件编号:101
|
|
|
|
|
零件编号:101
|
|
|
|
|
零件名称:电脑
|
|
|
|
|
零件库存:20
|
|
|
|
|
1 读取 | 2 保存 | 3 打印 | 4 查询 | 5 添加
|
|
|
|
|
6 修改 | 7 删除 | 8 排序 | 9 图表 | 0 退出
|
|
|
|
|
|
|
|
|
|
请选择:4
|
|
|
|
|
输入零件编号:100
|
|
|
|
|
零件不存在 .
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##C6: 打印库存列表
|
|
|
|
|
选择菜单命令 3 ,打印
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
请选择:3
|
|
|
|
|
-------------------------------------------------------
|
|
|
|
|
| NUMBER | NAME | ON HAND |
|
|
|
|
|
-------------------------------------------------------
|
|
|
|
|
| 101 | 电脑 | 20 |
|
|
|
|
|
-------------------------------------------------------
|
|
|
|
|
```
|