• 大小: 37.51MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-06-30
  • 语言: Java
  • 标签: Java  OA  Mail  

资源简介

使用Java开发的OA请假管理系统。使用了Spring,SpringMVC,Mybatis框架。数据库使用Mysql。前台页面使用的是jsp页面。并且实现了JavaMail发邮件功能。实现了多级员工请假和多级领导审批请假的功能和流程

资源截图

代码片段和文件信息

package com.jksmart.wechat.sdk.pub;

import java.io.File;
import java.io.IOException;
import java.net.URISyntaxException;
import java.util.Properties;


public class InitConfig {
private static String classPath;
//公众号相关
private static String appID;
private static String appsecret;
private static String openIdName;
private static String wReturnPrefix;
//管理相关
private static String user;
private static String login;
private static String encp;//p加密
private static Integer loginTryLimit;//登录错误次数限制
private static Integer adminLockInterval;
private static boolean isDebug;
//系统配置
private static String fileUploadFolder;//上传文件保存目录
private static String auditImgCompressFolder;
private static String auditPrjCompressFolder;
private static String prjTrackingCompressFolder;
private static String incubationParkCompressFolder;
private static String userTrackingCompressFolder;
//幸运大抽奖获取用户数量 默认为50
private static Integer lotteryUserNumber=50;
@Deprecated
private static boolean giftCodeEncp = true;//加密

public static void init() throws IOException URISyntaxException{
generateClassPath();
Properties props = new Properties();
props.load(InitConfig.class.getClassLoader().getResourceAsStream(“config.properties“));
appID = props.getProperty(“appID“);
appsecret = props.getProperty(“appsecret“);
openIdName = props.getProperty(“openIdName“);
user = props.getProperty(“user“);
login = props.getProperty(“login“);
wReturnPrefix = props.getProperty(“wReturnPrefix“);
giftCodeEncp = Boolean.valueOf(props.getProperty(“giftCodeEncp“));
String loginTryLimitStr = props.getProperty(“loginTryLimit“);
loginTryLimit = objectUtils.isEmpty(loginTryLimitStr)?null:Integer.valueOf(loginTryLimitStr);
String adminLockIntervalStr = props.getProperty(“adminLockInterval“);
adminLockInterval = objectUtils.isEmpty(adminLockIntervalStr)?null:Integer.valueOf(adminLockIntervalStr);
isDebug = Boolean.valueOf(props.getProperty(“isDebug“));
String lotteryUserNumberStr = props.getProperty(“lotteryUserNumber“);
lotteryUserNumber = objectUtils.isEmpty(lotteryUserNumberStr)?50:Integer.valueOf(lotteryUserNumberStr);
generateAllFileUploadPath(props);
}

private static void generateAllFileUploadPath(Properties props) throws IOException {
String configuredPath = props.getProperty(“fileUploadFolder“classPath);
if(configuredPath.startsWith(“classpath:“)){
configuredPath = configuredPath.split(“classpath:“)[1];
configuredPath.replace(‘/‘ File.separatorChar);
final File uploadFolder = new File(classPath+File.separatorChar+configuredPath);
if(!uploadFolder.exists()){
uploadFolder.createNewFile();
}
configuredPath = uploadFolder.getCanonicalPath();
}
fileUploadFolder = configuredPath;

configuredPath = props.getProperty(“auditImgCompressFolder“classPath);
if(configuredPath.startsWith(“classpath:“)){
configuredPath = configuredPath.split(“classpath

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1580  2017-04-24 11:44  SCT_OA\base\.classpath

     文件       1213  2017-04-24 11:44  SCT_OA\base\.project

     文件        567  2017-04-24 11:44  SCT_OA\base\.settings\.jsdtscope

     文件         57  2017-04-24 11:44  SCT_OA\base\.settings\org.eclipse.core.resources.prefs

     文件        743  2017-04-24 11:44  SCT_OA\base\.settings\org.eclipse.jdt.core.prefs

     文件         90  2017-04-24 11:44  SCT_OA\base\.settings\org.eclipse.m2e.core.prefs

     文件        737  2017-04-24 11:44  SCT_OA\base\.settings\org.eclipse.wst.common.component

     文件        252  2017-04-24 11:44  SCT_OA\base\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2017-04-24 11:44  SCT_OA\base\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2017-04-24 11:44  SCT_OA\base\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件          3  2017-04-24 11:44  SCT_OA\base\.svn\entries

     文件          3  2017-04-24 11:44  SCT_OA\base\.svn\format

     文件        737  2017-04-24 11:44  SCT_OA\base\.svn\pristine\18\18bad284b6df53ecd2b504e8ff4854487da2f2e5.svn-base

     文件       1213  2017-04-24 11:44  SCT_OA\base\.svn\pristine\24\24d07da33683591937402fb173a6738fd6582dae.svn-base

     文件       8282  2017-04-24 11:44  SCT_OA\base\.svn\pristine\2f\2fac0622158c0085dc05d8ad0c2898111376e710.svn-base

     文件        567  2017-04-24 11:44  SCT_OA\base\.svn\pristine\37\3779011d5cbf31325609547e8d058f8a4d812ac6.svn-base

     文件          6  2017-04-24 11:44  SCT_OA\base\.svn\pristine\41\41dfc0a6c92707948578891c51d98c6443be63cc.svn-base

     文件        743  2017-04-24 11:44  SCT_OA\base\.svn\pristine\77\776838706fcd11e13382d90b6b876a0fb9709924.svn-base

     文件         49  2017-04-24 11:44  SCT_OA\base\.svn\pristine\87\87ab9531e1222351568346cf9057a0cae36112b8.svn-base

     文件       1580  2017-04-24 11:44  SCT_OA\base\.svn\pristine\8e\8ec57e7e1359e2d2fb78e168c4babff917217c9d.svn-base

     文件         90  2017-04-24 11:44  SCT_OA\base\.svn\pristine\a1\a112be21c325d37ebc17baafd40c0386b5d09df1.svn-base

     文件        252  2017-04-24 11:44  SCT_OA\base\.svn\pristine\ae\aec8cafbb6ff880cdd8f10e0cc985c87442a0901.svn-base

     文件         39  2017-04-24 11:44  SCT_OA\base\.svn\pristine\e9\e9856d0dd103d59a7ca563d919d983470d81e004.svn-base

     文件         57  2017-04-24 11:44  SCT_OA\base\.svn\pristine\f5\f55db755b6f0fc57bbf923919fbe41367430df63.svn-base

     文件        647  2017-04-24 11:44  SCT_OA\base\.svn\pristine\ff\ffbd6f367e0c91363658dd12551e6653845f21c0.svn-base

     文件      50176  2017-04-24 11:44  SCT_OA\base\.svn\wc.db

     文件       8282  2017-04-24 11:44  SCT_OA\base\pom.xml

     文件         39  2017-04-24 11:44  SCT_OA\base\WebContent\meta-INF\MANIFEST.MF

     文件        647  2017-04-24 11:44  SCT_OA\base\WebContent\WEB-INF\web.xml

     文件       9534  2017-05-26 15:34  SCT_OA\db_oa.sql

............此处省略3267个文件信息

评论

共有 条评论