91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 7.98M
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2023-11-04
  • 語言: 其他
  • 標簽: 其他??

資源簡介

資產管理系統項目_2018-11.26.zip

資源截圖

代碼片段和文件信息

package?com.lsit.RBAC.dao;

import?java.sql.Connection;
import?java.sql.PreparedStatement;
import?java.sql.ResultSet;
import?java.sql.SQLException;
import?java.util.ArrayList;
import?java.util.List;

import?com.lsit.RBAC.domain.Damage;
import?com.lsit.RBAC.domain.Goods;
import?com.lsit.RBAC.domain.Loan;
import?com.lsit.RBAC.listener.InitConfigListener;
import?com.lsit.RBAC.util.DBConnection;

public?class?DamageDAO?{

/**
?*?部門報損申請
?*?@param?loa
?*?@return
?*/
public?boolean?insertDamageData(Damage?dam)?{

Connection?connection?=?null;
PreparedStatement?preparedStatement?=?null;
try?{
int?count?=?0;
connection?=?DBConnection.getConnection();
preparedStatement?=?connection
.prepareStatement(InitConfigListener.dbHashMap
.get(“insertDamage“));

preparedStatement.setInt(++count?getdeptId(dam.getDeptName()));
preparedStatement.setInt(++count?getGoodsId(dam.getGodName()));
preparedStatement.setInt(++count?dam.getDamagenum());
preparedStatement.setString(++count?dam.getPrincipal());
preparedStatement.setString(++count?dam.getUsername());
preparedStatement.setString(++count?dam.getCause());
int?index?=?preparedStatement.executeUpdate();
if?(index?>?0)?{
return?true;
}
}?catch?(SQLException?e)?{
e.printStackTrace();
}?finally?{
DBConnection.close(connection?preparedStatement?null);
}
return?false;
}

/**
?*?查詢部門ID
?*?
?*?@param?godName
?*?@return
?*/
public?int?getdeptId(String?deptName)?{

Connection?connection?=?null;
PreparedStatement?preparedStatement?=?null;
ResultSet?resultSet?=?null;

try?{
connection?=?DBConnection.getConnection();
preparedStatement?=?connection
.prepareStatement(InitConfigListener.dbHashMap
.get(“getdeptId“));
preparedStatement.setString(1?deptName);
resultSet?=?preparedStatement.executeQuery();
while?(resultSet.next())?{
return?resultSet.getInt(“dept_id“);
}
}?catch?(SQLException?e)?{
e.printStackTrace();
}?finally?{
DBConnection.close(connection?preparedStatement?resultSet);
}
return?-1;
}

/**
?*?查詢物資ID
?*?
?*?@param?godName
?*?@return
?*/
public?int?getGoodsId(String?godName)?{

Connection?connection?=?null;
PreparedStatement?preparedStatement?=?null;
ResultSet?resultSet?=?null;
try?{
connection?=?DBConnection.getConnection();
preparedStatement?=?connection
.prepareStatement(InitConfigListener.dbHashMap
.get(“getGoodsId“));
preparedStatement.setString(1?godName);
resultSet?=?preparedStatement.executeQuery();
while?(resultSet.next())?{
return?resultSet.getInt(“id“);
}
}?catch?(SQLException?e)?{
e.printStackTrace();
}?finally?{
DBConnection.close(connection?preparedStatement?resultSet);
}
return?-1;
}


/**
?*?部門報損查詢列表
?*?@param?godName
?*?@param?principal
?*?@param?deptName
?*?@param?fromt

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-11-26?23:29??資產管理系統項目_2018-11.26\
?????目錄???????????0??2018-11-26?23:29??資產管理系統項目_2018-11.26\數據庫\
?????文件???????37127??2018-12-08?20:10??資產管理系統項目_2018-11.26\數據庫\property.sql
?????文件???????86528??2018-11-25?20:27??資產管理系統項目_2018-11.26\程序使用說明.doc
?????文件?????1260297??2018-12-07?10:46??資產管理系統項目_2018-11.26\項目三資產管理系統.pptx
?????目錄???????????0??2018-11-26?23:29??資產管理系統項目_2018-11.26\項目源碼\
?????目錄???????????0??2018-11-26?23:29??資產管理系統項目_2018-11.26\項目源碼\RBAC\
?????文件????????1983??2018-11-22?15:29??資產管理系統項目_2018-11.26\項目源碼\RBAC\.classpath
?????文件????????1179??2018-11-12?14:44??資產管理系統項目_2018-11.26\項目源碼\RBAC\.project
?????目錄???????????0??2018-11-26?23:29??資產管理系統項目_2018-11.26\項目源碼\RBAC\.settings\
?????文件?????????567??2015-12-14?15:20??資產管理系統項目_2018-11.26\項目源碼\RBAC\.settings\.jsdtscope
?????文件??????????76??2018-11-12?14:43??資產管理系統項目_2018-11.26\項目源碼\RBAC\.settings\com.genuitec.eclipse.migration.prefs
?????文件?????????104??2015-12-16?23:23??資產管理系統項目_2018-11.26\項目源碼\RBAC\.settings\org.eclipse.core.resources.prefs
?????文件?????????364??2015-12-14?15:20??資產管理系統項目_2018-11.26\項目源碼\RBAC\.settings\org.eclipse.jdt.core.prefs
?????文件?????????464??2015-12-14?15:20??資產管理系統項目_2018-11.26\項目源碼\RBAC\.settings\org.eclipse.wst.common.component
?????文件?????????345??2018-11-12?14:43??資產管理系統項目_2018-11.26\項目源碼\RBAC\.settings\org.eclipse.wst.common.project.facet.core.xml
?????文件??????????49??2015-12-14?15:20??資產管理系統項目_2018-11.26\項目源碼\RBAC\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件???????????6??2015-12-14?15:20??資產管理系統項目_2018-11.26\項目源碼\RBAC\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????目錄???????????0??2018-11-12?14:42??資產管理系統項目_2018-11.26\項目源碼\RBAC\build\
?????目錄???????????0??2018-11-26?23:29??資產管理系統項目_2018-11.26\項目源碼\RBAC\src\
?????目錄???????????0??2018-11-26?23:29??資產管理系統項目_2018-11.26\項目源碼\RBAC\src\com\
?????目錄???????????0??2018-11-26?23:29??資產管理系統項目_2018-11.26\項目源碼\RBAC\src\com\lsit\
?????目錄???????????0??2018-11-26?23:29??資產管理系統項目_2018-11.26\項目源碼\RBAC\src\com\lsit\RBAC\
?????目錄???????????0??2018-11-26?23:29??資產管理系統項目_2018-11.26\項目源碼\RBAC\src\com\lsit\RBAC\dao\
?????文件????????8069??2018-11-20?10:41??資產管理系統項目_2018-11.26\項目源碼\RBAC\src\com\lsit\RBAC\dao\DamageDAO.java
?????文件???????11507??2018-11-21?11:40??資產管理系統項目_2018-11.26\項目源碼\RBAC\src\com\lsit\RBAC\dao\DepartmentDAO.java
?????文件????????5647??2015-12-29?08:17??資產管理系統項目_2018-11.26\項目源碼\RBAC\src\com\lsit\RBAC\dao\DeptMenuDAO.java
?????文件???????11853??2018-11-21?21:27??資產管理系統項目_2018-11.26\項目源碼\RBAC\src\com\lsit\RBAC\dao\GoodsDAO.java
?????文件????????2968??2018-11-16?16:32??資產管理系統項目_2018-11.26\項目源碼\RBAC\src\com\lsit\RBAC\dao\InstorageDAO.java
?????文件???????15044??2018-12-07?10:48??資產管理系統項目_2018-11.26\項目源碼\RBAC\src\com\lsit\RBAC\dao\LoanDAO.java
?????文件????????3297??2015-12-29?08:17??資產管理系統項目_2018-11.26\項目源碼\RBAC\src\com\lsit\RBAC\dao\LoginDAO.java
............此處省略974個文件信息

評論

共有 條評論