『壹』 哪位朋友能提供一個物資管理系統的源碼,我畢業設計不會做阿
http://iask.sina.com.cn/b/4311164.html
下有個jwlsjk.rar 附件,是關於物資管理的VB源代碼,使用VFP資料庫.
『貳』 哪有用C#SQL Server做的物資管理系統源代碼下載跪求,急
http://download.csdn.net/user/xuyuanjun1234
在csdn注冊個帳戶就可以下載了,免費的!
『叄』 C++倉庫庫存貨物管理系統的源代碼
阿斯頓福建我i日日vooicv
『肆』 求個C++做的物資管理系統代碼,急求啊!
發私信給你了
『伍』 如何用Python3做一個簡單的物資管理系統
1、批量導入Excel數據,批量導出到Excel。
2、首頁實時顯示物資在庫狀態,比如出庫了哪些、數量、出庫時間、借用人是誰(後期可能加入出庫簽名3、功能,再說)。可以選擇不同顯示方式:表格、圖表等。
4、登錄功能,設置幾個管理員,可以控制操作許可權等。
5、在線列印(可自動排版)或導出列印。
『陸』 C語言高手幫忙編一個倉庫物資管理系統
#include <stdafx.h>
#include<stdio.h>
#include<string.h>
#define SIZE 2//SIZE為倉庫電器種類
struct goods
{
char name[10];
char brand[10];
char style[10];
int num;
float money;
}stu[SIZE];//庫存結構
struct date
{
int year;
int month;
int day;
};//日期結構
struct entrance
{
char name[10];
char brand[10];
char style[10];
int num;
float money;
struct date time;
char stuf[10];
}stu_2[SIZE];//入庫結構
struct exit
{
char name[10];
char brand[10];
char style[10];
int num;
struct date time;
char stuf[10];
}stu_3[SIZE];//出庫結構
void main()
{
void save_1();
void save_2();
void save_3();
void change_1();
void change_2();
void found_1();
void found_2();
int i;
printf("please input the information:\n");
for(i=0;i<SIZE;i++)
{
scanf("%s%s%s%d%d",stu[i].name,stu[i].brand,stu[i].style,&stu[i].num,&stu[i].money);
} //輸入庫存
save_1(); //利用函數將庫存保存
FILE *fp;
fp=fopen("stu_list.txt","rb");
for(i=0;i<SIZE;i++)
{
fread(&stu[i],sizeof(struct goods),1,fp);
printf("%s %s %s %d %d",stu[i].name,stu[i].brand,stu[i].style,stu[i].num,stu[i].money);
printf("\n");
} //讀出信息
fclose(fp);
printf("請輸入物資入庫信息:\n");//輸入入庫信息
for(i=0;i<SIZE;i++)
scanf("%s%s%s%d%f%d%d%d%s",stu_2[i].name,stu_2[i].brand,stu_2[i].style,&stu_2[i].num,&stu_2[i].money,&stu_2[i].time.year,&stu_2[i].time.month,&stu_2[i].time.day,stu_2[i].stuf);
save_2(); //創建入庫文件
change_1();
printf("請輸入出庫信息\n");
scanf("%s%s%s%d%d%d%d%s",stu_3[i].name,stu_3[i].brand,stu_3[i].style,&stu_3[i].num,&stu_3[i].time.year,&stu_3[i].time.month,&stu_3[i].time.day,stu_3[i].stuf);
for(i=0;i<SIZE;i++)
{
if(stu_3[i].num>stu[i].num)
{
printf("the error number!please input again!\n");
break;
}
else
{
save_3();
change_2();
}
}
found_1();
found_2();
}
void save_1()
{
FILE *fp;
int i;
if((fp=fopen("stu_list.txt","wb"))==NULL)
{
printf("connot open the file\n");
return;
}
for(i=0;i<SIZE;i++)
{
if(fwrite(&stu[i],sizeof(struct goods),1,fp)!=1)
printf("file write error\n");
}
fclose(fp);
}
void save_2()
{
FILE *fp;
int i;
if((fp=fopen("stu_list_2.txt","wb"))==NULL)
{
printf("connot open the file\n");
return;
}
for(i=0;i<SIZE;i++)
{
if(fwrite(&stu_2[i],sizeof(struct entrance),1,fp)!=1)
printf("file write error\n");
}
fclose(fp);
}
void change_1()
{
int i;
for(i=0;i<SIZE;i++)
{
if(strcmp(stu[i].name,stu_2[i].name)==0&&strcmp(stu[i].brand,stu_2[i].brand)==0&&strcmp(stu[i].style,stu_2[i].style)==0)
{
stu[i].num=stu[i].num+stu_2[i].num;
}
}
save_1();
}
void save_3()
{
FILE *fp;
int i;
if((fp=fopen("stu_list_3.txt","wb"))==NULL)
{
printf("connot open the file\n");
return;
}
for(i=0;i<SIZE;i++)
{
if(fwrite(&stu_3[i],sizeof(struct exit),1,fp)!=1)
printf("file write error\n");
}
fclose(fp);
}
void change_2()
{
int i;
for(i=0;i<SIZE;i++)
{
if(strcmp(stu[i].name,stu_3[i].name)==0&&strcmp(stu[i].brand,stu_3[i].brand)==0&&strcmp(stu[i].style,stu_3[i].style)==0)
{
stu[i].num=stu[i].num-stu_3[i].num;
}
}
save_1();
}
void found_1()
{
FILE *fp;
int i;
int sum=0;
char name[10];
char brand[10];
printf("please input the name and brand:\n");//4.1 4.2 5.1
scanf("%s%s",name,brand);
if((fp=fopen("stu.list.txt","rb"))==NULL)
{
printf("connot open the file!\n");
return;
}
for(i=0;i<SIZE;i++)
{
if(fread(&stu[i],sizeof(struct goods),1,fp)!=1)
{
if(strcmp(name[10],stu[i].name[10])==0)
{
printf("the information of the good:\n");
printf("%s %s %s %d %d",stu[i].name,stu[i].brand,stu[i].style,stu[i].num,stu[i].money);
sum=sum+stu[i].num;
}
if(strcmp(brand[10],stu[i].brand[10])==0)
{
printf("the information of the good:\n");
printf("%s %s %s %d %d",stu[i].name,stu[i].brand,stu[i].style,stu[i].num,stu[i].money);
}
}
}
printf("the number of this %s is %d.\n",name[10],sum);
}
void found_2()
{
FILE *fp;
int i;
int j;
int sum=0;
int year_1,year_2,month_1,month_2,day_1;
char name_1[10],name_2[10],style_1[10];
if((fp=fopen("stu_list_2.txt","rb"))==NULL)
{
printf("connot open the file!\n");
return;
}
if((fp=fopen("stu_list_3.txt","rb"))==NULL)
{
printf("connot open the file!\n");
return;
}
printf("please input year_1,month_1,day_1,then find the exit and entrance:\n");
scanf("%d%d%d",&year_1,&month_1,&day_1);
printf("please input the name and style,then find the good's entrance and exit");
scanf("%s%s",name_1,style_1);
printf("please input the name of the good,then output the number or its entrance:\n");
scanf("%s",name_2);
printf("please input year_2 and month_2,then output the number of exit in this month:\n");
scanf("%d%d",&year_2,&month_2);
printf("please input the red number,then output all the informations of the goods:\n");
scanf("%d",&j);
for(i=0;i<SIZE;i++)
{
if((fread(&stu_2[i],sizeof(struct entrance),1,fp)!=1)&&(fread(&stu_3[i],sizeof(struct exit),1,fp)!=1))//讀出入庫和出庫信息
{
if((stu_2[i].time.year==year_1)&&(stu_2[i].time.month==month_1)&&(stu_2[i].time.day==day_1))//入庫信息4.3
{
printf("%s%s%s%d%f%d%d%d%s",stu_2[i].name,stu_2[i].brand,stu_2[i].style,stu_2[i].num,stu_2[i].money,stu_2[i].time.year,stu_2[i].time.month,stu_2[i].time.day,stu_2[i].stuf);
}
if((stu_3[i].time.year==year_1)&&(stu_3[i].time.month==month_1)&&(stu_3[i].time.day==day_1))//出庫信息4.3
{
printf("%s%s%s%d%d%d%d%s",stu_3[i].name,stu_3[i].brand,stu_3[i].style,stu_3[i].num,stu_3[i].time.year,stu_3[i].time.month,stu_3[i].time.day,stu_3[i].stuf);
}
}
}
for(i=0;i<SIZE;i++)//4.4
{
if((fread(&stu_2[i],sizeof(struct entrance),1,fp)!=1)&&(fread(&stu_3[i],sizeof(struct exit),1,fp)!=1))//讀出入庫和出庫信息
{
if((strcmp(stu_2[i].name,name_1))==0&&(strcmp(stu_2[i].style,style_1))==0)
{
printf("%s%s%s%d%f%d%d%d%s",stu_2[i].name,stu_2[i].brand,stu_2[i].style,stu_2[i].num,stu_2[i].money,stu_2[i].time.year,stu_2[i].time.month,stu_2[i].time.day,stu_2[i].stuf);
}
if((strcmp(stu_3[i].name,name_1))==0&&(strcmp(stu_3[i].style,style_1))==0)
{
printf("%s%s%s%d%d%d%d%s",stu_3[i].name,stu_3[i].brand,stu_3[i].style,stu_3[i].num,stu_3[i].time.year,stu_3[i].time.month,stu_3[i].time.day,stu_3[i].stuf);
}
}
}
for(i=0;i<SIZE;i++)//5.3
{
if((fread(&stu_3[i],sizeof(struct exit),1,fp)!=1))
if(stu_3[i].time.year==year_2&&stu_3[i].time.month==month_2)
{
sum=sum+stu_3[i].num;
}
}
printf("the time of exit is %d.\n",sum);
for(i=0;i<SIZE;i++)
{
if((fread(&stu[i],sizeof(struct goods),1,fp)!=1))
{
if(stu[i].num<j)
{
printf("th information of the good are:\n");
printf("%s%s%s%d%f",stu[i].name,stu[i].brand,stu[i].style,stu[i].num,stu[i].money);
}
}
}
}
『柒』 那位朋友給弄個vb連接SQL 2000的物資管理系統的VB的源代碼,加分
已發到您郵箱,請查收
以下是部分代碼
Type=Exe
Reference=*\G{00020430-0000-0000-C000-000000000046}#2.0#0#C:\WINDOWS\system32\STDOLE2.TLB#OLE Automation
Reference=*\G{00000206-0000-0010-8000-00AA006D2EA4}#2.6#0#C:\Program Files\Common Files\system\ado\msado26.tlb#Microsoft ActiveX Data Objects 2.6 Library
Object={F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0; Comdlg32.ocx
Object={831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0; mscomctl.ocx
Object={3B7C8863-D78F-101B-B9B5-04021C009402}#1.2#0; Richtx32.ocx
Object={5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0; Msflxgrd.ocx
Mole=Mole1; Mole1.bas
Form=frmMain.frm
Form=frmLogin.frm
Form=frmMater.frm
Form=frmMater2.frm
Form=frmMaterIn.frm
Form=frmMaterIn1.frm
Form=frmMaterIn2.frm
Form=frmMaterList.frm
Form=frmMaterList1.frm
Form=frmMaterList2.frm
Form=frmMaterOut.frm
Form=frmMaterOut1.frm
Form=frmMaterOUt2.frm
Form=frmMater1.frm
Startup="frmLogin"
HelpFile=""
Command32=""
Name="物資管理系統"
HelpContextID="0"
CompatibleMode="0"
MajorVer=1
MinorVer=0
RevisionVer=0
AutoIncrementVer=0
ServerSupportFiles=0
VersionCompanyName="我家"
CompilationType=0
OptimizationType=0
FavorPentiumPro(tm)=0
CodeViewDebugInfo=0
NoAliasing=0
BoundsCheck=0
OverflowCheck=0
FlPointCheck=0
FDIVCheck=0
UnroundedFP=0
StartMode=0
Unattended=0
Retained=0
ThreadPerObject=0
MaxNumberOfThreads=1
[MS Transaction Server]
AutoRefresh=1
Type=Exe
Reference=*\G{00020430-0000-0000-C000-000000000046}#2.0#0#C:\WINDOWS\system32\STDOLE2.TLB#OLE Automation
Reference=*\G{00000206-0000-0010-8000-00AA006D2EA4}#2.6#0#C:\Program Files\Common Files\system\ado\msado26.tlb#Microsoft ActiveX Data Objects 2.6 Library
Object={F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0; Comdlg32.ocx
Object={831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0; mscomctl.ocx
Object={3B7C8863-D78F-101B-B9B5-04021C009402}#1.2#0; Richtx32.ocx
Object={5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0; Msflxgrd.ocx
Mole=Mole1; Mole1.bas
Form=frmMain.frm
Form=frmLogin.frm
Form=frmMater.frm
Form=frmMater2.frm
Form=frmMaterIn.frm
Form=frmMaterIn1.frm
Form=frmMaterIn2.frm
Form=frmMaterList.frm
Form=frmMaterList1.frm
Form=frmMaterList2.frm
Form=frmMaterOut.frm
Form=frmMaterOut1.frm
Form=frmMaterOUt2.frm
Form=frmMater1.frm
Startup="frmLogin"
HelpFile=""
Command32=""
Name="物資管理系統"
HelpContextID="0"
CompatibleMode="0"
MajorVer=1
MinorVer=0
RevisionVer=0
AutoIncrementVer=0
ServerSupportFiles=0
VersionCompanyName="我家"
CompilationType=0
OptimizationType=0
FavorPentiumPro(tm)=0
CodeViewDebugInfo=0
NoAliasing=0
BoundsCheck=0
OverflowCheck=0
FlPointCheck=0
FDIVCheck=0
UnroundedFP=0
StartMode=0
Unattended=0
Retained=0
ThreadPerObject=0
MaxNumberOfThreads=1
[MS Transaction Server]
AutoRefresh=1
Mole1 = 88, 116, 624, 453, C
frmMain = 110, 145, 701, 567, C, 22, 29, 558, 366, C
frmLogin = 88, 116, 679, 538, , 44, 58, 635, 480, C
frmMater = 44, 58, 708, 431, , 44, 58, 580, 395, C
frmMater2 = 0, 0, 0, 0, C, 66, 87, 602, 424, C
frmMaterIn = 0, 0, 0, 0, C, 110, 145, 617, 576, C
frmMaterIn1 = 0, 0, 0, 0, C, 132, 174, 639, 605, C
frmMaterIn2 = 0, 0, 0, 0, C, 0, 0, 0, 0, C
frmMaterList = 0, 0, 0, 0, C, 154, 203, 661, 634, C
frmMaterList1 = 0, 0, 0, 0, C, 0, 0, 507, 431, C
frmMaterList2 = 0, 0, 0, 0, C, 22, 29, 529, 460, C
frmMaterOut = 0, 0, 0, 0, C, 0, 0, 0, 0, C
frmMaterOut1 = 0, 0, 0, 0, C, 44, 58, 551, 489, C
frmMaterOut2 = 0, 0, 0, 0, C, 66, 87, 573, 518, C
frmMater1 = 0, 0, 0, 0, C, 88, 116, 595, 547, C
use master
go
if exists (select * from dbo.sysdatabases where name = 'Material')
drop database Material
GO
create database Material
go
use Material
go
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[material]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[material]
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[msave]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[msave]
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[msurplus]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[msurplus]
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[muse]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[muse]
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[userinfo]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[userinfo]
GO
CREATE TABLE [dbo].[material] (
[wzid] [char] (8) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[wzname] [char] (20) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[wzspec] [char] (20) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[wzkind] [char] (10) COLLATE Chinese_PRC_CI_AS NULL ,
[wzunit] [char] (10) COLLATE Chinese_PRC_CI_AS NULL
) ON [PRIMARY]
GO
CREATE TABLE [dbo].[msave] (
[rkno] [char] (14) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[rkid] [char] (8) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[rkname] [char] (20) COLLATE Chinese_PRC_CI_AS NULL ,
[rkspec] [char] (20) COLLATE Chinese_PRC_CI_AS NULL ,
[rkkind] [char] (10) COLLATE Chinese_PRC_CI_AS NULL ,
[rkunit] [char] (10) COLLATE Chinese_PRC_CI_AS NULL ,
[rkaccount] [numeric](5, 0) NOT NULL ,
[rkprice] [numeric](8, 2) NOT NULL ,
[rkvalue] [numeric](10, 2) NOT NULL ,
[rkdate] [datetime] NOT NULL ,
[rkdeal_person] [char] (10) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[rksave_person] [char] (10) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[rkbase] [char] (10) COLLATE Chinese_PRC_CI_AS NULL ,
[rkmemo] [text] COLLATE Chinese_PRC_CI_AS NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
CREATE TABLE [dbo].[msurplus] (
[yeid] [char] (8) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[yename] [char] (20) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[yespec] [char] (20) COLLATE Chinese_PRC_CI_AS NULL ,
[yekind] [char] (10) COLLATE Chinese_PRC_CI_AS NULL ,
[yeunit] [char] (2) COLLATE Chinese_PRC_CI_AS NULL ,
[yeaccount] [numeric](5, 0) NOT NULL ,
[yevalue] [numeric](10, 2) NOT NULL ,
[yebase] [char] (10) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[yememo] [text] COLLATE Chinese_PRC_CI_AS NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
CREATE TABLE [dbo].[muse] (
[lyno] [char] (14) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[lyid] [char] (8) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[lyname] [char] (20) COLLATE Chinese_PRC_CI_AS NULL ,
[lyspec] [char] (20) COLLATE Chinese_PRC_CI_AS NULL ,
[lykind] [char] (10) COLLATE Chinese_PRC_CI_AS NULL ,
[lyunit] [char] (2) COLLATE Chinese_PRC_CI_AS NULL ,
[lyaccount] [numeric](5, 0) NOT NULL ,
[lyprice] [numeric](8, 2) NULL ,
[lyvalue] [numeric](10, 2) NULL ,
[lydate] [datetime] NOT NULL ,
[lyuse_person] [char] (10) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[lydeal_person] [char] (10) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[lybase] [char] (10) COLLATE Chinese_PRC_CI_AS NULL ,
[lymemo] [text] COLLATE Chinese_PRC_CI_AS NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
CREATE TABLE [dbo].[userinfo] (
[UID] [char] (10) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[PWD] [char] (10) COLLATE Chinese_PRC_CI_AS NULL
) ON [PRIMARY]
GO
『捌』 java采購管理系統源碼
可以去一些源代碼下載的網站去看看,給你個參考地址
『玖』 求java編寫的倉庫管理系統源代碼或詳細設計
import java.util.*;
import java.awt.event.*;
import java.awt.*;
import javax.swing.*;
import java.io.*;
class 商品 extends Panel
{String 代號,名稱;int 庫存;float 單價;
商品(String 代號,String 名稱,int 庫存,float 單價)
{this.代號=代號;this.名稱=名稱;this.庫存=庫存;this.單價=單價;
}
}
class ShowWin extends JFrame implements ActionListener
{ Hashtable hashtable=null;
JTextField 代號文本框=new JTextField(),
名稱文本框=new JTextField(),
庫存文本框=new JTextField(),
單價文本框=new JTextField(),
查詢文本框=new JTextField(),
查詢信息文本框=new JTextField(),
刪除文本框=new JTextField();
JButton b_add=new JButton("添加商品"),
b_del=new JButton("刪除商品"),
b_xun=new JButton("查詢商品"),
b_xiu=new JButton("修改商品"),
b_show=new JButton("顯示商品清單");
JTextArea 顯示區=new JTextArea(25,10);
ShowWin()
{super("倉庫管理窗口");
hashtable=new Hashtable();
Container con=getContentPane();
JScrollPane pane=new JScrollPane(顯示區);
顯示區.setEditable(false);
JPanel save=new JPanel();
save.setLayout(new GridLayout(8,2));
save.add(new Label("輸入代號:"));
save.add(代號文本框);
save.add(new Label("輸入名稱:"));
save.add(名稱文本框);
save.add(new Label("輸入庫存:"));
save.add(庫存文本框);
save.add(new Label("輸入單價:"));
save.add(單價文本框);
save.add(new Label("單擊添加:"));
save.add(b_add);
save.add(new Label("單擊修改:"));
save.add(b_xiu);
save.add(new Label("輸入查詢代號:"));
save.add(查詢文本框);
save.add(new Label("單擊查詢:"));
save.add(b_xun);
JPanel del=new JPanel();
del.setLayout(new GridLayout(2,2));
del.add(new Label("輸入刪除的代號:"));
del.add(刪除文本框);
del.add(new Label("單擊刪除:"));
del.add(b_del);
JPanel show=new JPanel();
show.setLayout(new BorderLayout());
show.add(pane,BorderLayout.CENTER);
show.add(b_show,BorderLayout.SOUTH);
JSplitPane split_one,split_two;
split_one=new JSplitPane(JSplitPane.VERTICAL_SPLIT,save,del);
split_two=new
JSplitPane(JSplitPane.HORIZONTAL_SPLIT,true,split_one,show);
con.add(split_two,BorderLayout.CENTER);
JPanel xun=new JPanel();
xun.add(new Label("所得信息:"));
xun.add(查詢信息文本框);
xun.setLayout(new GridLayout(2,1));
con.add(xun,BorderLayout.SOUTH);
b_add.addActionListener(this);
b_del.addActionListener(this);
b_xun.addActionListener(this);
b_xiu.addActionListener(this);
b_show.addActionListener(this);
}
public void actionPerformed(ActionEvent e)
{if(e.getSource()==b_add)
{String daihao=null,mingcheng=null;int kucun=0;float danjia=0.0f;
daihao=代號文本框.getText();mingcheng=名稱文本框.getText();
kucun=Integer.parseInt(庫存文本框.getText());
danjia=Float.valueOf(單價文本框.getText()).floatValue();
商品 goods=new 商品(daihao,mingcheng,kucun,danjia);
hashtable.put(daihao,goods);
try{FileOutputStream file=new FileOutputStream("goods.txt");
ObjectOutputStream out=new ObjectOutputStream(file);
out.writeObject(hashtable); out.close();
}
catch(IOException event){}
}
else if(e.getSource()==b_del)
{String daihao1=刪除文本框.getText();
try{FileInputStream come_in=new FileInputStream("goods.txt");
ObjectInputStream in=new ObjectInputStream(come_in);
hashtable=(Hashtable)in.readObject(); //////
in.close();
}
catch(ClassNotFoundException event){}
catch(IOException event){}
商品 temp=(商品)hashtable.get(daihao1);
{hashtable.remove(daihao1);}
try{FileOutputStream file=new FileOutputStream("goods.txt");
ObjectOutputStream out =new ObjectOutputStream(file);
out.writeObject(hashtable);//
out.close();
}
catch(IOException event){}
}
//
else if(e.getSource()==b_xun)
{ String aa;
aa=查詢文本框.getText();
查詢信息文本框.setText(null);
try{FileInputStream come_in=new FileInputStream("goods.txt");
ObjectInputStream in =new ObjectInputStream(come_in);
hashtable=(Hashtable)in.readObject(); ////
in.close();
}
catch(ClassNotFoundException event){}
catch(IOException event){}
商品 a=(商品)hashtable.get(aa);
查詢信息文本框.setText(" 代號:"+a.代號+" 名稱:"+a.名稱+" 庫存:"+a.庫存+" 單價:"+a.單價);
}
//
else if(e.getSource()==b_xiu)
{ String bb;
bb=代號文本框.getText();
try{FileInputStream come_in=new FileInputStream("goods.txt");
ObjectInputStream in=new ObjectInputStream(come_in);
hashtable=(Hashtable)in.readObject(); //////
in.close();
}
catch(ClassNotFoundException event){}
catch(IOException event){}
商品 temp=(商品)hashtable.get(bb);
{hashtable.remove(bb);}
try{FileOutputStream file=new FileOutputStream("goods.txt");
ObjectOutputStream out =new ObjectOutputStream(file);
out.writeObject(hashtable);//
out.close();
}
catch(IOException event){}
String daihao1=null,mingcheng1=null;int kucun1=0;float danjia1=0.0f;
daihao1=代號文本框.getText();mingcheng1=名稱文本框.getText();
kucun1=Integer.parseInt(庫存文本框.getText());
danjia1=Float.valueOf(單價文本框.getText()).floatValue();
商品 goods1=new 商品(daihao1,mingcheng1,kucun1,danjia1);
hashtable.put(daihao1,goods1);
try{FileOutputStream file=new FileOutputStream("goods.txt");
ObjectOutputStream out=new ObjectOutputStream(file);
out.writeObject(hashtable); out.close();
}
catch(IOException event){}
}
//
else if(e.getSource()==b_show)
{ 顯示區.setText(null);
try{FileInputStream come_in=new FileInputStream("goods.txt");
ObjectInputStream in =new ObjectInputStream(come_in);
hashtable=(Hashtable)in.readObject(); ////
}
catch(ClassNotFoundException event){}
catch(IOException event){}
Enumeration enum=hashtable.elements();
while(enum.hasMoreElements())
{ 商品 te=(商品)enum.nextElement();
顯示區.append("商品代號:"+te.代號+" ");
顯示區.append("商品名稱:"+te.名稱+" ");
顯示區.append("商品庫存:"+te.庫存+" ");
顯示區.append("商品單價:"+te.單價+" ");
顯示區.append("\n ");
}
}
}
}
public class LinkListFour
{public static void main(String args[])
{ ShowWin win=new ShowWin();
win.setSize(400,350);
win.setVisible(true);
win.addWindowListener(new WindowAdapter()
{public void windowClosing(WindowEvent e)
{ System.exit(0);}});
}
}
『拾』 求一款物品管理系統或者是PHP網站源碼
For your question 聯系我們需要提供問題和聯系方式,
有別的要求也可以聯系我們,
有可能幫你,
網路_Hi給我吧,
此回復對於所有需求和和來訪者有效,
ES:\\