超市仓库管理系统程序Word文档下载推荐.docx

上传人:b****2 文档编号:3891335 上传时间:2023-05-02 格式:DOCX 页数:41 大小:26KB
下载 相关 举报
超市仓库管理系统程序Word文档下载推荐.docx_第1页
第1页 / 共41页
超市仓库管理系统程序Word文档下载推荐.docx_第2页
第2页 / 共41页
超市仓库管理系统程序Word文档下载推荐.docx_第3页
第3页 / 共41页
超市仓库管理系统程序Word文档下载推荐.docx_第4页
第4页 / 共41页
超市仓库管理系统程序Word文档下载推荐.docx_第5页
第5页 / 共41页
超市仓库管理系统程序Word文档下载推荐.docx_第6页
第6页 / 共41页
超市仓库管理系统程序Word文档下载推荐.docx_第7页
第7页 / 共41页
超市仓库管理系统程序Word文档下载推荐.docx_第8页
第8页 / 共41页
超市仓库管理系统程序Word文档下载推荐.docx_第9页
第9页 / 共41页
超市仓库管理系统程序Word文档下载推荐.docx_第10页
第10页 / 共41页
超市仓库管理系统程序Word文档下载推荐.docx_第11页
第11页 / 共41页
超市仓库管理系统程序Word文档下载推荐.docx_第12页
第12页 / 共41页
超市仓库管理系统程序Word文档下载推荐.docx_第13页
第13页 / 共41页
超市仓库管理系统程序Word文档下载推荐.docx_第14页
第14页 / 共41页
超市仓库管理系统程序Word文档下载推荐.docx_第15页
第15页 / 共41页
超市仓库管理系统程序Word文档下载推荐.docx_第16页
第16页 / 共41页
超市仓库管理系统程序Word文档下载推荐.docx_第17页
第17页 / 共41页
超市仓库管理系统程序Word文档下载推荐.docx_第18页
第18页 / 共41页
超市仓库管理系统程序Word文档下载推荐.docx_第19页
第19页 / 共41页
超市仓库管理系统程序Word文档下载推荐.docx_第20页
第20页 / 共41页
亲,该文档总共41页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

超市仓库管理系统程序Word文档下载推荐.docx

《超市仓库管理系统程序Word文档下载推荐.docx》由会员分享,可在线阅读,更多相关《超市仓库管理系统程序Word文档下载推荐.docx(41页珍藏版)》请在冰点文库上搜索。

超市仓库管理系统程序Word文档下载推荐.docx

\t\t\t\t2:

出库管理\n"

\t\t\t\t3:

退货管理\n"

\t\t\t\t4:

商品统计\n"

\t\t\t\t0:

退出系统\n"

}

voidmenu()

添加数据\n"

删除数据\n"

修改数据\n"

查看数据\n"

\t\t\t\t其它:

退回上一级菜单\n"

}

voidmenu2()

★\n"

********************

**

*早欢迎进入早*

*超市仓库管理系统*

\t\t\t\t

1:

入库管理\n"

2:

出库管理\n"

3:

退货管理\n"

4:

商品统计\n"

0:

退出系统\n"

\n\t\t\t\t

输入错误,请重新输入!

intRkjl()//入库信息录入文件

{structin_productp[N],s;

inti=0,j,n;

FILE*pf,*pf1;

pf=fopen("

入库信息记录.dat"

"

rb+"

pf1=fopen("

入库信息记录.xls"

r+"

//printf("

入库编号商品编号入库商品名入库数量入库价格总价\n"

for(i=0;

fread(&

p[i],ILEN,1,pf)!

=NULL;

i++);

//printf("

%ld\t%s\t%s\t%d\t%d\t%d\n"

p[i].num,p[i].p_num,p[i].name,p[i].amount,p[i].price,p[i].t_price);

for(j=0;

j<

i;

j++)

for(n=0;

n<

i-1;

n++)

if(p[n].num>

p[n+1].num)//入库编号小的先录入

{s=p[n];

p[n]=p[n+1];

p[n+1]=s;

rewind(pf);

fseek(pf1,56L,0);

{fwrite(&

p[j],ILEN,1,pf);

fprintf(pf1,"

p[j].num,p[j].p_num,p[j].name,p[j].amount,p[j].price,p[j].t_price);

fclose(pf);

fclose(pf1);

return0;

intCkjl()//出库信息录入文件

{structout_productp[N],s;

inti,j,n;

出库信息记录.dat"

出库信息记录.xls"

出库编号商品编号出库商品名出库数量出库价格总价\n"

p[i],OLEN,1,pf)!

p[n+1].num)//出库编号小的先录入

p[j],OLEN,1,pf);

intThjl()//退货信息录入文件

{structquit_productp[N],s;

退货信息记录.dat"

退货信息记录.xls"

for(i=0;

p[i],QLEN,1,pf)!

p[n+1].num)//退货编号小的先录入

j++){fwrite(&

p[j],QLEN,1,pf);

intinsert_product()//添加商品数据并录入文件

structproduct*p1,*p;

FILE*pf;

if((pf=fopen("

商品信息记录.xls"

r"

))==NULL)

w"

fprintf(pf,"

%s\t%s\t%s\t%s\t%s\t%s\n"

商品编号"

商品名"

型号/规格"

商品数量"

进货价"

销售价"

a+"

p1=(structproduct*)malloc(LEN);

p=head;

if(p==NULL)

{printf("

\n下列数据将录入\"

商品信息记录\"

文件中!

\n商品编号:

"

scanf("

%s"

&

p1->

p_num);

\n商品名:

name);

\n型号/规格:

spec);

\n商品数量:

%d"

amount);

\n进货价:

price);

\n销售价:

scanf("

s_price);

%s\t%s\t%s\t%d\t%d\t%d\n"

p1->

p_num,p1->

name,p1->

spec,p1->

amount,p1->

price,p1->

head=p1;

head->

next=NULL;

while(p->

next!

=NULL)//把指针移到链表末端,在链表末端插入数据

p=p->

next;

p->

next=p1;

p1->

return0;

intin_insert()//添加入库数据

structin_product*p1,*p2;

intn=0;

charc[5];

system("

cls"

ab+"

p1=p2=(structin_product*)malloc(ILEN);

\t\t\t**输入入库商品信息**\n"

printf("

入库信息记录\"

\n入库编号:

%ld"

num);

\n入库商品名:

\n入库数量:

\n入库价格:

t_price=p1->

amount*p1->

price;

\n总价:

%d\n"

t_price);

fwrite(p1,ILEN,1,pf);

insert_product();

while

(1)

n=n+1;

if(n==1)

ihead=p1;

elsep2->

p2=p1;

p1=(structin_product*)malloc(ILEN);

\n退出输入请按Y/y键,任意键继续:

c);

if(strcmp(c,"

y"

)==0||strcmp(c,"

Y"

)==0)

{fclose(pf);

p2->

elsebreak;

入库信息记录\"

intin_modify()//修改入库数据

system("

longm_num;

FILE*fp,*fp1;

intt=3;

structin_productxg[N];

fp=fopen("

fp1=fopen("

入库价格总

%-8d\n"

入库编号商品编号入库商品名入库数量价\n"

\n"

xg[i],ILEN,1,fp)!

i++)

%-8ld%-8s%-10s%-8d%-8d

xg[i].num,xg[i].p_num,xg[i].name,xg[i].amount,xg[i].price,xg[i].t_price);

输入要修改的商品的入库编号:

IXG:

m_num);

j=0;

while(j<

i){if(xg[j].num==m_num){

\t\t\t输入新的入库商品信息!

xg[j].p_num);

xg[j].name);

xg[j].amount);

xg[j].price);

xg[j].t_price=xg[j].amount*xg[j].price;

xg[j].t_price);

\t\t\t商品信息修改成功!

入库编号商品编号入库商品名入库数量入库价格总价\n"

%-8ld%-8s%-10s%-8d%-8d%-8d\n"

xg[j].num,xg[j].p_num,xg[j].name,xg[j].amount,xg[j].price,xg[j].t_price);

rewind(fp);

fseek(fp1,56L,0);

xg[n],ILEN,1,fp);

fprintf(fp1,"

xg[n].num,xg[n].p_num,xg[n].name,xg[n].amount,xg[n].price,xg[n].t_price);

fclose(fp);

fclose(fp1);

按回车键退回上一级菜单"

getchar();

j++;

t--;

if(t==0)

\n没有找到该入库编号,请重新输入,还有[%d]次机会:

t);

gotoIXG;

intin_select()//查询入库数据

FILE*fp;

inti,j;

longs_num;

structin_productcx[N];

if((fp=fopen("

rb"

cannotopenfile\n"

exit(0);

\t\t\t\n"

\t\t\t★入库货物统计如下★\n"

\t\t\t\n\n"

入库编号商品编号入库商品名入库数量入库价格总价\n"

cx[i],ILEN,1,fp)!

cx[i].num,cx[i].p_num,cx[i].name,cx[i].amount,cx[i].price,cx[i].t_price);

输入要查询的入库编号:

ICX:

s_num);

i)

if(cx[j].num==s_num)

\n查询结果如下:

入库编号商品编号入库商品名入库数量入库价

格总价\n”);

cx[j].num,cx[j].p_num,cx[j].name,cx[j].amount,cx[j].price,cx[j].t_price);

\n没有找到该入库编号,还有[%d]次机会,请重新输入:

gotoICX;

intin_delete()//删除入库数据,若所要取出的商品数量小于商品总数量,则是商品总数减少//若取出所有商品数量,则删除那一行数据

inti,n,j;

ints;

longd_num;

structin_productsc[N];

FILE*fp,*fp1;

,"

sc[i],ILEN,1,fp)!

输入要取出的商品的入库编号:

ISC:

,&

d_num);

\n输入要取出的商品的数量:

s);

if(sc[j].num==d_num)

wb+"

fp1=fopen("

入库编号"

入库商品名"

入库数量"

入库价格"

总价"

if((sc[j].amount-s)==0)

for(n=j;

n++)sc[n]=sc[n+1];

for(n=0;

sc[n],ILEN,1,fp);

sc[n].num,sc[n].p_num,sc[n].name,sc[n].amount,sc[n].price,sc[n].t_price);

elseif((sc[j].amount-s)>

0)

sc[j].amount-=s;

fprintf(f

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 法律文书 > 调解书

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2