forked from m8mvbo72w/test
master
commit
01993ca3bf
@ -0,0 +1,413 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
|
|
||||||
|
//图书存储结构
|
||||||
|
struct book{
|
||||||
|
int id;//图书编号
|
||||||
|
char name[20];//图书名称
|
||||||
|
char author[20];//图书作者
|
||||||
|
float price;//图书价格
|
||||||
|
struct book *next; // 指向下一图书
|
||||||
|
}*books;
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////
|
||||||
|
// 用户界面模块 //
|
||||||
|
|
||||||
|
// 系统初始化,读取数据文件到内存
|
||||||
|
void init();
|
||||||
|
// 显示主菜单
|
||||||
|
void display_menu();
|
||||||
|
// 选择菜单命令,调用相应的功能函数
|
||||||
|
void make_choice();
|
||||||
|
// 确认操作
|
||||||
|
void confirm();
|
||||||
|
// 退出系统,释放内存,保存数据到文件
|
||||||
|
void quit();
|
||||||
|
|
||||||
|
///////////////////
|
||||||
|
// 数据处理模块 //
|
||||||
|
|
||||||
|
// 从文件读取数据到内存
|
||||||
|
void read_data();
|
||||||
|
// 保存内存数据到文件
|
||||||
|
void save_data();
|
||||||
|
// 打印图书信息
|
||||||
|
void print_data();
|
||||||
|
// 根据图书编号查询图书信息
|
||||||
|
book *find(int id);
|
||||||
|
// 查询图书信息
|
||||||
|
void query_data();
|
||||||
|
// 添加新图书信息
|
||||||
|
void add_data();
|
||||||
|
// 更新图书信息
|
||||||
|
void update_data();
|
||||||
|
// 删除图书信息
|
||||||
|
void delete_data();
|
||||||
|
// 对图书信息进行排序
|
||||||
|
void sort_data();
|
||||||
|
// 生成图表报表
|
||||||
|
void make_chart();
|
||||||
|
|
||||||
|
|
||||||
|
/////////////
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
display_menu();
|
||||||
|
make_choice();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// 用户界面模块 //
|
||||||
|
// 系统初始化,读取数据文件到内存
|
||||||
|
void init()
|
||||||
|
{
|
||||||
|
read_data();
|
||||||
|
}
|
||||||
|
// 显示主菜单
|
||||||
|
void display_menu()
|
||||||
|
{
|
||||||
|
printf("*************************\n");
|
||||||
|
printf("***** 图书管理系统 *****\n");
|
||||||
|
printf("*************************\n");
|
||||||
|
printf("1. 打印图书信息\n");
|
||||||
|
printf("2. 查询图书信息\n");
|
||||||
|
printf("3. 添加新图书\n");
|
||||||
|
printf("4. 更新图书信息\n");
|
||||||
|
printf("5. 删除图书信息\n");
|
||||||
|
printf("6. 对图书排序\n");
|
||||||
|
printf("7. 生成图表报表\n");
|
||||||
|
printf("0. 退出系统\n");
|
||||||
|
printf("请选择:");
|
||||||
|
}
|
||||||
|
// 选择菜单命令,调用相应的功能函数
|
||||||
|
void make_choice()
|
||||||
|
{
|
||||||
|
int choice;
|
||||||
|
scanf("%d", &choice);
|
||||||
|
confirm();
|
||||||
|
switch(choice)
|
||||||
|
{
|
||||||
|
case 1:
|
||||||
|
print_data(); // 打印图书信息
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
query_data(); // 查询图书信息
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
add_data(); // 添加新图书
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
update_data();// 更新图书信息
|
||||||
|
break;
|
||||||
|
case 5:
|
||||||
|
delete_data();// 删除图书信息
|
||||||
|
break;
|
||||||
|
case 6:
|
||||||
|
sort_data(); // 对图书排序
|
||||||
|
break;
|
||||||
|
case 7:
|
||||||
|
make_chart(); // 生成图表报表
|
||||||
|
break;
|
||||||
|
case 0:
|
||||||
|
quit(); // 退出系统
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
printf("无效选择,请重新选择:");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 确认操作
|
||||||
|
void confirm()
|
||||||
|
{
|
||||||
|
char choice;
|
||||||
|
|
||||||
|
printf("您确定要执行该操作吗?(Y/N):");
|
||||||
|
scanf(" %c", &choice);
|
||||||
|
|
||||||
|
if(choice == 'Y' || choice == 'y')
|
||||||
|
{
|
||||||
|
printf("操作成功执行!\n");
|
||||||
|
}
|
||||||
|
else if(choice == 'N' || choice == 'n')
|
||||||
|
{
|
||||||
|
printf("操作已取消!\n");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
printf("输入错误,请重新输入(Y/N):");
|
||||||
|
confirm(); // 递归调用自己
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 退出系统,释放内存,保存数据到文件
|
||||||
|
void quit()
|
||||||
|
{
|
||||||
|
char choice;
|
||||||
|
|
||||||
|
printf("您确定要退出系统吗?(Y/N):");
|
||||||
|
scanf(" %c", &choice);
|
||||||
|
|
||||||
|
if(choice == 'Y' || choice == 'y')
|
||||||
|
{
|
||||||
|
save_data(); // 保存数据到文件
|
||||||
|
printf("数据已保存,系统退出!\n");
|
||||||
|
exit(0); // 退出系统
|
||||||
|
}
|
||||||
|
else if(choice == 'N' || choice == 'n')
|
||||||
|
{
|
||||||
|
printf("退出操作已取消!\n");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
printf("输入错误,请重新输入(Y/N):");
|
||||||
|
quit(); // 递归调用自己
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// 数据处理模块//
|
||||||
|
// 从文件读取数据到内存
|
||||||
|
void read_data()
|
||||||
|
{
|
||||||
|
FILE *fp;
|
||||||
|
struct book *head, *p;
|
||||||
|
|
||||||
|
if((fp = fopen("books.dat", "rb")) == NULL)
|
||||||
|
{
|
||||||
|
printf("打开数据文件失败!\n");
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
head = NULL;
|
||||||
|
while(!feof(fp))
|
||||||
|
{
|
||||||
|
p = (struct book*)malloc(sizeof(struct book));
|
||||||
|
fread(p, sizeof(struct book), 1, fp);
|
||||||
|
p->next = head;
|
||||||
|
head = p;
|
||||||
|
}
|
||||||
|
|
||||||
|
fclose(fp); // 关闭文件
|
||||||
|
|
||||||
|
// 将链表的头指针作为全局变量,供其他函数使用
|
||||||
|
books = head;
|
||||||
|
}
|
||||||
|
// 保存内存数据到文件
|
||||||
|
void save_data()
|
||||||
|
{
|
||||||
|
FILE *fp;
|
||||||
|
struct book *p;
|
||||||
|
|
||||||
|
if((fp = fopen("books.dat", "wb")) == NULL)
|
||||||
|
{
|
||||||
|
printf("打开数据文件失败!\n");
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
p = books; // 从全局链表头开始
|
||||||
|
while(p != NULL)
|
||||||
|
{
|
||||||
|
fwrite(p, sizeof(struct book), 1, fp);
|
||||||
|
p = p->next;
|
||||||
|
}
|
||||||
|
|
||||||
|
fclose(fp);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// 打印图书信息
|
||||||
|
void print_data()
|
||||||
|
{
|
||||||
|
struct book *p;
|
||||||
|
|
||||||
|
p = books; // 从全局链表头开始
|
||||||
|
while(p != NULL)
|
||||||
|
{
|
||||||
|
printf("图书编号:%d\n", p->id);
|
||||||
|
printf("图书名称:%s\n", p->name);
|
||||||
|
printf("图书作者:%s\n", p->author);
|
||||||
|
printf("图书价格:%.2f\n", p->price);
|
||||||
|
printf("----------------------\n");
|
||||||
|
p = p->next;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 根据图书编号查询图书信息
|
||||||
|
book *find(int id)
|
||||||
|
{
|
||||||
|
struct book *p;
|
||||||
|
|
||||||
|
p = books; // 从全局链表头开始
|
||||||
|
while(p != NULL)
|
||||||
|
{
|
||||||
|
if(p->id == id)
|
||||||
|
return p; // 返回找到的图书指针
|
||||||
|
p = p->next;
|
||||||
|
}
|
||||||
|
return NULL; // 未找到返回空指针 *p;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
// 查询图书信息
|
||||||
|
void query_data()
|
||||||
|
{
|
||||||
|
int id;
|
||||||
|
struct book *p;
|
||||||
|
|
||||||
|
printf("请输入要查询的图书编号:");
|
||||||
|
scanf("%d", &id);
|
||||||
|
|
||||||
|
p = find(id); // 查找编号为id的图书
|
||||||
|
if(p != NULL)
|
||||||
|
{
|
||||||
|
printf("图书信息如下:\n");
|
||||||
|
printf("图书编号:%d\n", p->id);
|
||||||
|
printf("图书名称:%s\n", p->name);
|
||||||
|
printf("图书作者:%s\n", p->author);
|
||||||
|
printf("图书价格:%.2f\n", p->price);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
printf("没有找到编号为%d的图书!\n", id);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 添加新图书信息
|
||||||
|
void add_data()
|
||||||
|
{
|
||||||
|
struct book *p, *q;
|
||||||
|
|
||||||
|
p = (struct book*)malloc(sizeof(struct book));
|
||||||
|
|
||||||
|
printf("请依次输入图书信息:\n");
|
||||||
|
printf("图书编号:");
|
||||||
|
scanf("%d", &p->id);
|
||||||
|
printf("图书名称:");
|
||||||
|
scanf("%s", p->name);
|
||||||
|
printf("图书作者:");
|
||||||
|
scanf("%s", p->author);
|
||||||
|
printf("图书价格:");
|
||||||
|
scanf("%f", &p->price);
|
||||||
|
|
||||||
|
q = books;
|
||||||
|
while(q != NULL && p->id > q->id)
|
||||||
|
q = q->next;
|
||||||
|
|
||||||
|
p->next = q; // 指向下一个节点
|
||||||
|
books = p; // 新节点成为链表头
|
||||||
|
|
||||||
|
printf("图书信息添加成功!\n");
|
||||||
|
}
|
||||||
|
// 更新图书信息
|
||||||
|
void update_data()
|
||||||
|
{
|
||||||
|
int id;
|
||||||
|
struct book *p;
|
||||||
|
|
||||||
|
printf("请输入要修改的图书编号:");
|
||||||
|
scanf("%d", &id);
|
||||||
|
|
||||||
|
p = find(id); // 查找编号为id的图书
|
||||||
|
if(p != NULL)
|
||||||
|
{
|
||||||
|
printf("请依次输入修改后的图书信息:\n");
|
||||||
|
printf("图书名称:");
|
||||||
|
scanf("%s", p->name);
|
||||||
|
printf("图书作者:");
|
||||||
|
scanf("%s", p->author);
|
||||||
|
printf("图书价格:");
|
||||||
|
scanf("%f", &p->price);
|
||||||
|
|
||||||
|
printf("图书信息修改成功!\n");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
printf("没有找到编号为%d的图书!\n", id);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 删除图书信息
|
||||||
|
void delete_data()
|
||||||
|
{
|
||||||
|
int id;
|
||||||
|
struct book *p, *q;
|
||||||
|
|
||||||
|
printf("请输入要删除的图书编号:");
|
||||||
|
scanf("%d", &id);
|
||||||
|
|
||||||
|
p = books;
|
||||||
|
q = NULL;
|
||||||
|
while(p != NULL && p->id != id)
|
||||||
|
{
|
||||||
|
q = p;
|
||||||
|
p = p->next;
|
||||||
|
}
|
||||||
|
if(p != NULL) // 找到该节点
|
||||||
|
{
|
||||||
|
if(q == NULL) // 第一个节点
|
||||||
|
books = p->next;
|
||||||
|
else
|
||||||
|
q->next = p->next;
|
||||||
|
|
||||||
|
free(p);
|
||||||
|
printf("图书信息删除成功!\n");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
printf("没有找到编号为%d的图书!\n", id);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 对图书信息进行排序
|
||||||
|
void sort_data()
|
||||||
|
{
|
||||||
|
struct book *p, *q; // 两节点指针
|
||||||
|
struct book temp; // 临时图书结构体
|
||||||
|
|
||||||
|
p = books;
|
||||||
|
while(p != NULL)
|
||||||
|
{
|
||||||
|
q = p->next;
|
||||||
|
while(q != NULL)
|
||||||
|
{
|
||||||
|
if(p->id > q->id) // 交换节点
|
||||||
|
{
|
||||||
|
temp = *p;
|
||||||
|
*p = *q;
|
||||||
|
*q = temp;
|
||||||
|
}
|
||||||
|
q = q->next;
|
||||||
|
}
|
||||||
|
p = p->next;
|
||||||
|
}
|
||||||
|
printf("图书信息排序成功!\n");
|
||||||
|
}
|
||||||
|
// 生成图表报表
|
||||||
|
void make_chart()
|
||||||
|
{
|
||||||
|
struct book *p;
|
||||||
|
char name[20];
|
||||||
|
int i, n;
|
||||||
|
float price;
|
||||||
|
|
||||||
|
printf("请输入要生成的图书数量:");
|
||||||
|
scanf("%d", &n);
|
||||||
|
|
||||||
|
for(i=1; i<=n; i++)
|
||||||
|
{
|
||||||
|
p = (struct book*)malloc(sizeof(struct book));
|
||||||
|
|
||||||
|
sprintf(name, "图书%d", i); // 生成图书名称
|
||||||
|
p->id = i; // 图书编号
|
||||||
|
strcpy(p->name, name); // 图书名称
|
||||||
|
strcpy(p->author, "作者"); // 作者
|
||||||
|
price = (i+1)*10.0; // 价格
|
||||||
|
p->price = price; // 图书价格
|
||||||
|
|
||||||
|
p->next = books; // 新节点指向原链表头
|
||||||
|
books = p; // 新节点成为链表头
|
||||||
|
}
|
||||||
|
printf("随机图书信息生成成功!\n");
|
||||||
|
}
|
After Width: | Height: | Size: 15 KiB |
@ -0,0 +1,111 @@
|
|||||||
|
<mxfile host="65bd71144e">
|
||||||
|
<diagram id="5sBLNUMCJy76M6u4WCoL" name="Page-1">
|
||||||
|
<mxGraphModel dx="917" dy="664" 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="3" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;fontColor=#000000;strokeColor=#000000;" parent="1" source="2" edge="1">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="130" y="170" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="2" value="add_data" style="ellipse;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;" parent="1" vertex="1">
|
||||||
|
<mxGeometry x="70" y="60" width="120" height="80" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="5" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;strokeColor=#000000;fontColor=#000000;" parent="1" source="4" target="6" edge="1">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="300" y="210" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="8" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;strokeColor=#000000;fontColor=#000000;" parent="1" source="4" edge="1">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="130" y="290" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="4" value="数据库满?" style="rhombus;whiteSpace=wrap;html=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" parent="1" vertex="1">
|
||||||
|
<mxGeometry x="55" y="170" width="150" height="80" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="25" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;strokeColor=#000000;fontColor=#000000;" parent="1" source="6" edge="1">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="130" y="810" as="targetPoint"/>
|
||||||
|
<Array as="points">
|
||||||
|
<mxPoint x="470" y="210"/>
|
||||||
|
<mxPoint x="470" y="810"/>
|
||||||
|
</Array>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="6" value="提示数据库满" style="rounded=0;whiteSpace=wrap;html=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" parent="1" vertex="1">
|
||||||
|
<mxGeometry x="280" y="180" width="120" height="60" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="7" value="Y" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#000000;" parent="1" vertex="1">
|
||||||
|
<mxGeometry x="225" y="175" width="30" height="30" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="9" value="N" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#000000;" parent="1" vertex="1">
|
||||||
|
<mxGeometry x="135" y="255" width="30" height="30" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="11" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;strokeColor=#000000;fontColor=#000000;" parent="1" source="10" target="12" edge="1">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="130" y="410" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="10" value="输入图书编号" style="rhombus;whiteSpace=wrap;html=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" parent="1" vertex="1">
|
||||||
|
<mxGeometry x="55" y="290" width="150" height="80" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="13" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;strokeColor=#000000;fontColor=#000000;" parent="1" source="12" edge="1">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="280" y="430" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="16" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;strokeColor=#000000;fontColor=#000000;" parent="1" source="12" edge="1">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="130" y="510" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="12" value="图书编号存在?" style="rhombus;whiteSpace=wrap;html=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" parent="1" vertex="1">
|
||||||
|
<mxGeometry x="55" y="390" width="150" height="80" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="26" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;strokeColor=#000000;fontColor=#000000;" parent="1" source="14" edge="1">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="470" y="430" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="14" value="提示图书已存在" style="rounded=0;whiteSpace=wrap;html=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" parent="1" vertex="1">
|
||||||
|
<mxGeometry x="280" y="400" width="120" height="60" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="15" value="Y" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#000000;" parent="1" vertex="1">
|
||||||
|
<mxGeometry x="225" y="405" width="30" height="30" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="17" value="N" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#000000;" parent="1" vertex="1">
|
||||||
|
<mxGeometry x="135" y="475" width="30" height="30" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="19" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;strokeColor=#000000;fontColor=#000000;" parent="1" source="18" target="20" edge="1">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="130" y="630" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="18" value="输入图书编号和数量" style="rhombus;whiteSpace=wrap;html=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" parent="1" vertex="1">
|
||||||
|
<mxGeometry x="55" y="510" width="150" height="80" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="21" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;strokeColor=#000000;fontColor=#000000;" parent="1" source="20" target="22" edge="1">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="130" y="720" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="20" value="添加新图书到数据" style="rhombus;whiteSpace=wrap;html=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" parent="1" vertex="1">
|
||||||
|
<mxGeometry x="55" y="610" width="150" height="80" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="23" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;strokeColor=#000000;fontColor=#000000;" parent="1" source="22" target="24" edge="1">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="130" y="820" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="22" value="提示添加成功" style="rhombus;whiteSpace=wrap;html=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" parent="1" vertex="1">
|
||||||
|
<mxGeometry x="55" y="710" width="150" height="80" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="24" value="" style="ellipse;whiteSpace=wrap;html=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" parent="1" vertex="1">
|
||||||
|
<mxGeometry x="70" y="820" width="120" height="80" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
</root>
|
||||||
|
</mxGraphModel>
|
||||||
|
</diagram>
|
||||||
|
</mxfile>
|
@ -0,0 +1,312 @@
|
|||||||
|
<mxfile host="65bd71144e">
|
||||||
|
<diagram id="Ve7y_Xmv1_xOL1hUhJ5_" name="Page-1">
|
||||||
|
<mxGraphModel dx="917" dy="1764" 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="3" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;fontColor=#000000;labelBackgroundColor=#FAFAFA;strokeColor=#000000;" edge="1" parent="1" source="2">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="140" y="180" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="2" value="init" style="ellipse;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#000000;labelBackgroundColor=#FFFFFF;fontColor=#000000;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="80" y="60" width="120" height="80" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="5" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;labelBackgroundColor=#FAFAFA;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="4" target="6">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="140" y="280" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="4" value="显示菜单" style="rounded=0;whiteSpace=wrap;html=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="80" y="180" width="120" height="60" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="9" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;labelBackgroundColor=#FAFAFA;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="6">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="140" y="370" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="6" value="选择菜单命令" style="rounded=0;whiteSpace=wrap;html=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="80" y="280" width="120" height="60" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="8" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;labelBackgroundColor=#FAFAFA;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="7" target="2">
|
||||||
|
<mxGeometry relative="1" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="7" value="main" style="ellipse;whiteSpace=wrap;html=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="80" y="-50" width="120" height="80" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="11" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;labelBackgroundColor=#FAFAFA;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="10">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="310" y="410" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="12" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;labelBackgroundColor=#FAFAFA;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="10" target="13">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="140" y="490" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="10" value="读取数据" style="rhombus;whiteSpace=wrap;html=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="65" y="370" width="150" height="80" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="14" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;labelBackgroundColor=#FAFAFA;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="13">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="310" y="520" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="15" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;labelBackgroundColor=#FAFAFA;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="13">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="140" y="600" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="13" value="保存数据" style="rhombus;whiteSpace=wrap;html=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="65" y="480" width="150" height="80" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="17" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;labelBackgroundColor=#FAFAFA;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="16">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="310" y="640" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="18" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;labelBackgroundColor=#FAFAFA;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="16">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="140" y="710" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="16" value="打印数据" style="rhombus;whiteSpace=wrap;html=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="65" y="600" width="150" height="80" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="20" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;labelBackgroundColor=#FAFAFA;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="19">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="310" y="750" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="21" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;labelBackgroundColor=#FAFAFA;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="19">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="140" y="830" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="19" value="查询数据" style="rhombus;whiteSpace=wrap;html=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="65" y="710" width="150" height="80" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="23" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;labelBackgroundColor=#FAFAFA;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="22">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="140" y="940" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="24" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;labelBackgroundColor=#FAFAFA;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="22">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="310" y="870" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="22" value="添加数据" style="rhombus;whiteSpace=wrap;html=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="65" y="830" width="150" height="80" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="26" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;labelBackgroundColor=#FAFAFA;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="25">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="310" y="980" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="27" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;labelBackgroundColor=#FAFAFA;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="25" target="28">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="140" y="1050" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="25" value="更新数据" style="rhombus;whiteSpace=wrap;html=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="65" y="940" width="150" height="80" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="29" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;labelBackgroundColor=#FAFAFA;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="28">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="310" y="1090" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="30" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;labelBackgroundColor=#FAFAFA;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="28" target="31">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="140" y="1160" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="28" value="删除数据" style="rhombus;whiteSpace=wrap;html=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="65" y="1050" width="150" height="80" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="32" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;labelBackgroundColor=#FAFAFA;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="31">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="310" y="1200" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="33" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;labelBackgroundColor=#FAFAFA;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="31">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="140" y="1270" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="31" value="对数据排序" style="rhombus;whiteSpace=wrap;html=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="65" y="1160" width="150" height="80" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="35" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;labelBackgroundColor=#FAFAFA;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="34">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="310" y="1310" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="45" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;labelBackgroundColor=#FAFAFA;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="34">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="310" y="1410" as="targetPoint"/>
|
||||||
|
<Array as="points">
|
||||||
|
<mxPoint x="140" y="1410"/>
|
||||||
|
</Array>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="46" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;labelBackgroundColor=#FAFAFA;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="34">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="140" y="1450" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="34" value="生成图表报表" style="rhombus;whiteSpace=wrap;html=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="65" y="1270" width="150" height="80" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="68" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;labelBackgroundColor=#FAFAFA;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="36">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="490" y="410" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="36" value="read_data" style="shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="310" y="380" width="120" height="60" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="69" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;labelBackgroundColor=#FAFAFA;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="37">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="490" y="520" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="37" value="save_data" style="shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="310" y="490" width="120" height="60" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="70" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;labelBackgroundColor=#FAFAFA;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="38">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="490" y="640" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="38" value="print_data" style="shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="310" y="610" width="120" height="60" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="71" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;labelBackgroundColor=#FAFAFA;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="39">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="490" y="750" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="39" value="query_data" style="shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="310" y="720" width="120" height="60" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="72" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;labelBackgroundColor=#FAFAFA;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="40">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="490" y="870" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="40" value="add_data" style="shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="310" y="840" width="120" height="60" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="73" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;labelBackgroundColor=#FAFAFA;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="41">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="490" y="980" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="41" value="update_data" style="shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="310" y="950" width="120" height="60" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="74" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;labelBackgroundColor=#FAFAFA;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="42">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="490" y="1090" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="42" value="delete_data" style="shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="310" y="1060" width="120" height="60" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="75" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;labelBackgroundColor=#FAFAFA;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="43">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="490" y="1200" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="43" value="sort_data" style="shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="310" y="1170" width="120" height="60" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="76" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;labelBackgroundColor=#FAFAFA;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="44">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="490" y="1310" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="44" value="make_chart" style="shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="310" y="1280" width="120" height="60" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="77" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;labelBackgroundColor=#FAFAFA;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="48">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="490" y="1410" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="48" value="命令错误,重新选择" style="shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="310" y="1380" width="120" height="60" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="50" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;labelBackgroundColor=#FAFAFA;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="49" target="51">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="140" y="1560" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="66" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;labelBackgroundColor=#FAFAFA;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="49">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="140" y="160" as="targetPoint"/>
|
||||||
|
<Array as="points">
|
||||||
|
<mxPoint x="490" y="1490"/>
|
||||||
|
<mxPoint x="490" y="160"/>
|
||||||
|
</Array>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="49" value="确定退出" style="rhombus;whiteSpace=wrap;html=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="65" y="1450" width="150" height="80" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="52" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;labelBackgroundColor=#FAFAFA;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="51" target="53">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="140" y="1640" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="51" value="quit" style="shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="80" y="1560" width="120" height="60" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="53" value="" style="ellipse;whiteSpace=wrap;html=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="80" y="1640" width="120" height="80" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="54" value="Y" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#000000;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="245" y="385" width="30" height="30" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="55" value="Y" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#000000;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="245" y="495" width="30" height="30" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="56" value="Y" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#000000;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="245" y="605" width="30" height="30" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="57" value="Y" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#000000;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="245" y="725" width="30" height="30" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="58" value="Y" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#000000;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="245" y="850" width="30" height="30" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="59" value="Y" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#000000;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="245" y="955" width="30" height="30" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="60" value="Y" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#000000;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="245" y="1065" width="30" height="30" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="61" value="Y" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#000000;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="245" y="1175" width="30" height="30" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="62" value="Y" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#000000;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="245" y="1285" width="30" height="30" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="63" value="N" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#000000;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="245" y="1385" width="30" height="30" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="64" value="N" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#000000;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="150" y="1370" width="30" height="30" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="65" value="Y" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#000000;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="145" y="1415" width="30" height="30" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="67" value="N" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#000000;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="215" y="1455" width="30" height="30" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
</root>
|
||||||
|
</mxGraphModel>
|
||||||
|
</diagram>
|
||||||
|
</mxfile>
|
@ -0,0 +1,76 @@
|
|||||||
|
<mxfile host="65bd71144e">
|
||||||
|
<diagram id="gGfFuJy0CrLTynzOE54l" name="Page-1">
|
||||||
|
<mxGraphModel dx="917" dy="664" 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="4" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;fontColor=#000000;strokeColor=#000000;" edge="1" parent="1" source="3">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="140" y="470" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="3" value="save_data" style="ellipse;whiteSpace=wrap;html=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="80" y="350" width="120" height="80" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="6" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="5" target="7">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="140" y="580" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="5" value="输入文件名" style="rhombus;whiteSpace=wrap;html=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="65" y="470" width="150" height="80" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="8" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="7">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="140" y="690" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="14" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="7">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="300" y="620" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="7" value="打开文件" style="rhombus;whiteSpace=wrap;html=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="65" y="580" width="150" height="80" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="10" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="9">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="140" y="800" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="9" value="将所有库存记录写入文件" style="rhombus;whiteSpace=wrap;html=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="65" y="690" width="150" height="80" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="12" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="11" target="13">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="140" y="910" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="11" value="关闭文件" style="rhombus;whiteSpace=wrap;html=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="65" y="800" width="150" height="80" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="13" value="" style="ellipse;whiteSpace=wrap;html=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="80" y="900" width="120" height="80" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="18" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;strokeColor=#000000;fontColor=#000000;" edge="1" parent="1" source="15">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="140" y="890" as="targetPoint"/>
|
||||||
|
<Array as="points">
|
||||||
|
<mxPoint x="460" y="620"/>
|
||||||
|
<mxPoint x="460" y="890"/>
|
||||||
|
</Array>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="15" value="提示打开文件失败" style="rounded=0;whiteSpace=wrap;html=1;labelBackgroundColor=#FFFFFF;strokeColor=#000000;fontColor=#000000;fillColor=#FFFFFF;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="300" y="590" width="120" height="60" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="16" value="N" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#000000;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="235" y="595" width="30" height="30" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="17" value="Y" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#000000;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="150" y="660" width="30" height="30" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
</root>
|
||||||
|
</mxGraphModel>
|
||||||
|
</diagram>
|
||||||
|
</mxfile>
|
@ -0,0 +1,29 @@
|
|||||||
|
<mxfile host="65bd71144e">
|
||||||
|
<diagram id="u_L9P898_jSC_YZIsbOk" name="µÚ 1 Ò³">
|
||||||
|
<mxGraphModel dx="832" dy="568" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
|
||||||
|
<root>
|
||||||
|
<mxCell id="0"/>
|
||||||
|
<mxCell id="1" parent="0"/>
|
||||||
|
<mxCell id="4" style="edgeStyle=none;sketch=1;hachureGap=4;jiggle=2;curveFitting=1;html=1;fontFamily=Architects Daughter;fontSource=https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DArchitects%2BDaughter;fontSize=16;" edge="1" parent="1" source="3">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="255" y="170" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="3" value="printf_data" style="rhombus;whiteSpace=wrap;html=1;sketch=1;hachureGap=4;jiggle=2;curveFitting=1;fontFamily=Architects Daughter;fontSource=https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DArchitects%2BDaughter;fontSize=20;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="150" y="30" width="210" height="80" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="6" style="edgeStyle=none;sketch=1;hachureGap=4;jiggle=2;curveFitting=1;html=1;fontFamily=Architects Daughter;fontSource=https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DArchitects%2BDaughter;fontSize=16;" edge="1" parent="1" source="5">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<mxPoint x="245" y="280" as="targetPoint"/>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="5" value="for i = 1 to num_parts" style="rounded=1;whiteSpace=wrap;html=1;sketch=1;hachureGap=4;jiggle=2;curveFitting=1;fontFamily=Architects Daughter;fontSource=https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DArchitects%2BDaughter;fontSize=20;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="120" y="180" width="250" height="40" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="7" value="´òӡͼÊéµÄË÷ÊéºÅ" style="rounded=1;whiteSpace=wrap;html=1;sketch=1;hachureGap=4;jiggle=2;curveFitting=1;fontFamily=Architects Daughter;fontSource=https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DArchitects%2BDaughter;fontSize=20;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="150" y="290" width="190" height="40" as="geometry"/>
|
||||||
|
</mxCell>
|
||||||
|
</root>
|
||||||
|
</mxGraphModel>
|
||||||
|
</diagram>
|
||||||
|
</mxfile>
|
After Width: | Height: | Size: 75 KiB |
After Width: | Height: | Size: 64 KiB |
Loading…
Reference in new issue