Java固定资产管理系统源代码.docx

上传人:b****0 文档编号:17840210 上传时间:2023-08-04 格式:DOCX 页数:28 大小:18.09KB
下载 相关 举报
Java固定资产管理系统源代码.docx_第1页
第1页 / 共28页
Java固定资产管理系统源代码.docx_第2页
第2页 / 共28页
Java固定资产管理系统源代码.docx_第3页
第3页 / 共28页
Java固定资产管理系统源代码.docx_第4页
第4页 / 共28页
Java固定资产管理系统源代码.docx_第5页
第5页 / 共28页
Java固定资产管理系统源代码.docx_第6页
第6页 / 共28页
Java固定资产管理系统源代码.docx_第7页
第7页 / 共28页
Java固定资产管理系统源代码.docx_第8页
第8页 / 共28页
Java固定资产管理系统源代码.docx_第9页
第9页 / 共28页
Java固定资产管理系统源代码.docx_第10页
第10页 / 共28页
Java固定资产管理系统源代码.docx_第11页
第11页 / 共28页
Java固定资产管理系统源代码.docx_第12页
第12页 / 共28页
Java固定资产管理系统源代码.docx_第13页
第13页 / 共28页
Java固定资产管理系统源代码.docx_第14页
第14页 / 共28页
Java固定资产管理系统源代码.docx_第15页
第15页 / 共28页
Java固定资产管理系统源代码.docx_第16页
第16页 / 共28页
Java固定资产管理系统源代码.docx_第17页
第17页 / 共28页
Java固定资产管理系统源代码.docx_第18页
第18页 / 共28页
Java固定资产管理系统源代码.docx_第19页
第19页 / 共28页
Java固定资产管理系统源代码.docx_第20页
第20页 / 共28页
亲,该文档总共28页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

Java固定资产管理系统源代码.docx

《Java固定资产管理系统源代码.docx》由会员分享,可在线阅读,更多相关《Java固定资产管理系统源代码.docx(28页珍藏版)》请在冰点文库上搜索。

Java固定资产管理系统源代码.docx

Java固定资产管理系统源代码

publicclassuser_landextendsJFrameimplementsActionListener{

staticConnectionconn=null;

staticStatementstat=null;

staticResultSetrs=null;

staticStringuser="sa";

staticStringpassword="";

JPanelp1,p2,p3,p4,p5;

JLabellbl1,lbl2,lbl3,lbl4;

JTextFieldtxt_name;

JPasswordFieldtxt_pwd;

JButtonbtn1,btn2,btn3;

static{

try{

}catch(Exceptione){

加载驱动失败");

();

}

}

publicuser_land(){

("固定资产及设备用户登录");

p1=newJPanel();

p2=newJPanel();

p3=newJPanel();

p4=newJPanel();

p5=newJPanel();

lbl1=newJLabel("欢迎登录");lbl2=newJLabel("用户名:

");lbl3=newJLabel("密码:

");lbl4=newJLabel();txt_name=newJTextField(10);txt_pwd=newJPasswordField(10);btn1=newJButton("登录");btn2=newJButton("清空");btn3=newJButton("退出");(lbl1);

(lbl2);

(txt_name);

(lbl3);(txt_pwd);

(btn1);

(btn2);

(btn3);

(lbl4);

(newGridLayout(5,1));

(p1);

(p2);

(p3);

(p4);

(p5);

(400,300,400,300);

(EXIT_ON_CLOSE);

(true);

quals("")==true)&&().equals("")==false))

("登录失败,用户名不能为空");

if(().equals("")==false)&&().equals("")==true))

("登录失败,密码不能为空");

if(().equals("")==true)&&().equals("")==true))

("登录失败,用户名/密码不能为空");if(is_Property()){newSys_interface().show();

}

elseif(().equals("")==false)&&().equals("")==false))

("登录失败,用户名/密码错误");

}

}

);

(this);

how();

}

);

(this);

(newActionListener(){

@Override

publicvoidactionPerformed(ActionEventarg0){

newuser_land().show();

}

});

newActionListener(){

publicvoidactionPerformed(ActionEvente){newPass_word().show();

}

}

);

newActionListener(){

publicvoidactionPerformed(ActionEvente){

(0);

}

}

);

newActionListener(){publicvoidactionPerformed(ActionEvente){newloan_prop_manage().show();

}

}

);

newActionListener(){

publicvoidactionPerformed(ActionEvente){newproperty_Info().show();

}

}

);

newActionListener(){

publicvoidactionPerformed(ActionEvente){newprop_info_select().show();

}

}

);

newActionListener(){

publicvoidactionPerformed(ActionEvente){newLoan_prop_select().show();

}

);

newActionListener(){

publicvoidactionPerformed(ActionEvente){newback_prop_select().show();

}

}

);

newActionListener(){

publicvoidactionPerformed(ActionEvente){newabout().show();

}

}

);

(200,200,500,400);

(EXIT_ON_CLOSE);

}

publicvoidactionPerformed(ActionEvente){

how();

r;

publicclassloan_prop_manageextendsJFrameimplementsActionListener{

Vectordata=null;

DefaultTableModelmodel=null;

Connectionconn=null;

Statementstat=null;

ResultSetrs1=null;

JTableloan_prop=null;

JLabellabel;

JTextFieldtext;

JTextFieldtxt01,txt02,txt03,txt04,txt05,txt06;

JPanelp1=null,p2=null,p3=null,p4,p5,p6,p7,p8,p9,p10;

Choicec1=null,c2=null;

JLabellb1=null,lb2=null,lb3=null,lb4=null,lb5=null,lb6=null;

JButtonbtn_ok=null;

JButtonbtn_exit=null;

JButtonbtn_fresh=null;

JButtonbtn_save=null;

JButtonbtn_del=null;

VectorcolumnName=newVector();

publicloan_prop_manage(){

text=newJTextField();

("资产编号");

("资产名称");

("资产型号");

("借出时间");

("借出数量");

("借出人");

p1=newJPanel();p2=newJPanel();

p3=newJPanel();p4=newJPanel();

p5=newJPanel();

p6=newJPanel();p7=newJPanel();

p8=newJPanel();

p9=newJPanel();p10=newJPanel();

lb1=newJLabel("资产编号");lb2=newJLabel("资产名称");lb3=newJLabel("资产型号");lb4=newJLabel("借出时间");lb5=newJLabel("借出数量");lb6=newJLabel("借出人");txt01=newJTextField(8);

txt02=newJTextField(8);txt03=newJTextField(8);

txt04=newJTextField(8);

txt05=newJTextField(8);

txt06=newJTextField(8);c1=newChoice();

c2=newChoice();text=newJTextField(5);

("资产编号");

("=");

btn_ok=newJButton("确定");btn_exit=newJButton("退出");btn_fresh=newJButton("刷新");btn_save=newJButton("保存");btn_del=newJButton("删除");(newJLabel("查询字段"));

(c1);

(newJLabel("运算符"));

(c2);

(newJLabel("输入数据"));

(text);

(btn_ok);

(btn_exit);

("请操作"));

(lb1);

(txt01);

(lb2);

(txt02);

(lb3);

(txt03);

(lb4);

(txt04);

(lb5);

(txt05);

(lb6);

(txt06);

(btn_fresh);

(btn_save);

(btn_del);

(newGridLayout(3,2));

(p3);

(p4);

(p5);

(p6);

(p7);

(p8);

loan_prop=newJTable(),columnName);

model=newDefaultTableModel(getDate(),columnName);

(newJScrollPane(loan_prop));

(newGridLayout(4,1));

(p1);

(p9);

(p2);

(p10);

(400,300,500,400);

(EXIT_ON_CLOSE);

("资产借出管理");

(newActionListener(){

publicvoidactionPerformed(ActionEventarg0){

try{

con

stat=();

Stringsql="insertintoloan_info(prop_name,prop_type,loan_time,loan_num

)"+"values('"+()+"','"+()+"','"+()+"','"+()+"')";

(sql);

DefaultTableModelmod=newDefaultTableModel(getDate(),columnName);

(mod);

();

();

}catch(Exceptione){

}

try{

if(rs1!

=null){

();

}

if(stat!

=null){

();

}

if(conn!

=null){

();

}

}catch(Exceptione2){

关闭失败");

();

}

}

});

newActionListener(){

publicvoidactionPerformed(ActionEvente){

DefaultTableModeldtb=newDefaultTableModel(selectDate(),columnName);

(dtb);

();

});

/*(newActionListener(){

publicvoidactionPerformed(ActionEventarg0){}

});*/

(this);

(newActionListener(){

publicvoidactionPerformed(ActionEventarg0){

DefaultTableModelmod=newDefaultTableModel(getDate(),columnName);

(mod);

();

();

}

});

().addListSelectionListener(

newListSelectionListener(){publicvoidvalueChanged(ListSelectionEvente){

(newActionListener(){publicvoidactionPerformed(ActionEventarg0){try{

stat=();

Stringsql1="deletefromloan_infowhereprop_id="+""+(j).get(0)+"";

(sql1);

}catch(Exceptionee){

}finally{try{if(rs1!

=null){

();

}if(stat!

=null){

();

}if(conn!

=null){

();

}

}catch(Exceptione2){

();

}

}

DefaultTableModelmod=newDefaultTableModel(getDate(),columnName);(mod);

();

}

});

}

});

().addListSelectionListener(

newListSelectionListener(){

publicvoidvalueChanged(ListSelectionEvente){

inti=();

(i).get(0).toString());

((String)(i).get

(1));

((String)(i).get

(2));

(i).get(3).toString());

(i).get(4).toString());

(i).get(5).toString());

}

});

}

publicVectorselectDate(){

data=newVector();

try{

stat=();

intx=().trim());

rs1=("select*fromloan_infowhereprop_id="+x);while()){

Vectoral=newVector();

("prop_id"));

("prop_name"));

("prop_type"));

("loan_time"));

("loan_num"));

("u_name"));

(al);

}

}catch(Exceptione){

();

}finally{

try{

if(rs1!

=null){

();

}

if(stat!

=null){

();

}if(conn!

=null){();

}

}catch(Exceptione2){

();

}

}

returndata;

}

publicVectorgetDate(){data=newVector();

try{

stat=();

rs1=("select*fromloan_info");while()){

Vectoral=newVector();

("prop_id"));

("prop_name"));

("prop_type"));

("loan_time"));

("loan_num"));

("u_name"));

(al);

}

}catch(Exceptione){

}finally{

try{

if(rs1!

=null){

();

}

if(stat!

=null){

();

}

if(conn!

=null){

();

}

}catch(Exceptione2){关闭失败");

();

}

}returndata;

}

publicstaticvoidmain(String[]args){newloan_prop_manage().show();

}publicvoidactionPerformed(ActionEvente){

5

publicclassLoan_prop_selectextendsJFrameimplementsActionListener{Connectionconn=null;

Statementstat=null;

ResultSetrs=null;

JTabletable=null;

JLabellabel;

JTextFieldtext;

JButtonbtn_ok=null,btn_exit=null;

JPanelp1=null,p2=null;

VectorcolumnName=newVector();publicLoan_prop_select(){

("资产借出查询");

("流水号");

("资产编号");

("借用人");

("借出数量");

("借出时间");

p1=newJPanel();

p2=newJPanel();

text=newJTextField();

text=newJTextField(5);

btn_ok=newJButton("查询");

btn_exit=newJButton("退出");

(newJLabel("资产编号"));

(text);

(btn_ok);

(btn_exit);

("数据查询"));

(this);

table=newJTable(),columnName);

(newBorderLayout());

(p1,;

(newJScrollPane(table),;

(400,300,500,400);

(EXIT_ON_CLOSE);

(newActionListener(){

@OverridepublicvoidactionPerformed(ActionEventarg0){

DefaultTableModeldtm=newDefaultTableModel(selectDate(),columnName);(dtm);

();

();

}

});

}

publicVectorselectDate(){

Vectordata=newVector();

try{

stat=();

intx=().trim());rs=("select*fromloan_infowhereprop_id="+x);

while()){

Vectoral=newVector();

("loan_id"));

("prop_id"));

("u_id"));

("loan_num"));

("loan_time"));

(al);

}

}catch(Exceptione){

}finally{

how();

}

publicvoidactionPerformed(ActionEvente){

5

publicclassback_prop_selectextendsJFrameimplementsActionListener{

Vectordata=null;

DefaultTableModelmodel=null;

Connectionconn=null;

Statementstat=null;

ResultSetrs=null;

JPanelpa1,pa2;

JButtonbtn1,btn2;

JTabletab=null;

JTextFieldtex=null;JTextFieldtxt1,txt2,txt3,txt4,txt5;JLabellab1,lab2,lab3;

VectorcolumnName=newVector();publicback_prop_select(){

("流水号");

("资产编号");

("借用人");

("借用数量");

("借用时间");

("归还数量");

("归还时间");

pa1=newJPanel();

pa2=newJPanel();

btn1=newJButton("确定");

btn2=newJButton("退出");

lab1=newJLabel("查询字段:

");lab2=newJLabel("借用人");tex=newJTextField(5);tab=newJTable(),columnName);txt1=newJTextField(10);txt2=newJTextField(10);txt3=newJTextField(10);txt4=newJTextField(10);

txt5=newJTextField(10);

(lab1);

(lab2);

(tex);

(btn1);

(btn2);

(tab);

model=newDefaultTableModel(getDate(),columnName);

tab=newJTable(model);

("查询参数"));

(newJScrollPane(tab));

("资产归还查询");

(newBorderLayout());

(pa1,;

(newJScrollPane(tab));

(300,200,500,300);

(EXIT_ON_CLOSE);

ddListSelectionListener(

newListSelectionListener(){

publicvoidvalueChanged(ListSelectionEvente){intx=();

((String)(x).get(0));

((String)(x).get

(1));

((String)(x).get

(2));

((String)(x).get(3));

(x).get(4).toString());

}

}

);*/

ddListSelectionListener(

newListSelectionListener(){

publicvoidvalueChanged(ListSelectionEvente){

intx=();

((String)(x).get(0));

((String)(x).get

(1));

((String)(x).get

(2));

(x).get(3).toString());

}

}

);*/

(this);

}

publicVectorgetDate(){

Vectordata=newVector();

try{

stat=();

rs=("select*fromloan_Info");

while()){

Vectoral=newVector();

("loan_id"));

("prop_id"));

("u_id"));

("loan_time"));

("loan_num"));

(al);

}

}catch(Exceptione){

}finally{

rim()+"'";

rs=(lab1);

while()){

Vectorback=newVector();

("loan_id"));

("prop_id"));

("u_id"));

("loan_time"));

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

当前位置:首页 > 幼儿教育 > 家庭教育

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

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