resttime.java

来自「jsp考勤」· Java 代码 · 共 67 行

JAVA
67
字号
/*
 *	Copyright (C) 2000, TOA-System Co.  All rights reserved.
 */
package test;

import java.sql.*;
import exce.*;
import util.*;
import entity.*;
import dbcommon.*;

/**
 *	偙偺僋儔僗偼丄儘僌僀儞娭楢偺僋儔僗偱偡丅<br>
 *	@version	2.00
 *	@author		TOA
 *
 *	峏怴棜楌
 *	<ul>
 *		<li>僐儊儞僩傪捛壛
 *	</ul>
 */
public class Resttime {
	public Resttime() {}
	ChangeField cf = new ChangeField();
	Status st = new Status();

	/**
	 *	捠嬑偡傞帪娫偺愝掕傪峴偆
	 *	@param	conn		DB僪儔僀僶偺URL側偳
	 *			loginID		儘僌僀儞俬俢
	 *			password	僷僗儚乕僪
	 *	@return	status		Status僆僽僕僃僋僩
	 */
	public void resttime(Connection	conn,								
							 String		starttime,								// 弌嬑帪揰
							 String		endtime,                                // 戅嬑帪揰
							 String userid	) {							


		try {
			// User_Jouhou_002DataAccess僆僽僕僃僋僩偺findUser_Jouhou_002()儊僜僢僪傪幚峴偟傑偡丅
			Start_End_Time_001DataAccess setda = new Start_End_Time_001DataAccess();
			Start_End_Time_001Entity setee 	= new Start_End_Time_001Entity();

			setee._start_time = cf.strToInt(starttime);              // 弌嬑帪揰
			setee._end_time = cf.strToInt(endtime);                  // 戅嬑帪揰
			setee._update_user= userid;
			setee._olupdate_user= userid;

	        setda.updateStart_End_Time_001(conn, setee);


		} catch (ApplicationException ae) {
			st = ae.getStatus();
			ae.printStackTrace();
			throw new ApplicationException(st.usermsg, st.errno);
		} catch (OracleException orae) {
			st = orae.getStatus();
			orae.printStackTrace();
			throw new OracleException(st);
		} catch (Exception e) {
			e.printStackTrace();
			throw new OriginalException(e);
		}
	}

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?