亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? register_ok.java

?? ERO系統.針對生產型、分銷型、服務型企業等不同的行業特點
?? JAVA
字號:
/*
 *this file is part of nseer erp
 *Copyright (C)2006-2010 Nseer(Beijing) Technology co.LTD/http://www.nseer.com 
 *
 *This program is free software; you can redistribute it and/or
 *modify it under the terms of the GNU General Public License
 *as published by the Free Software Foundation; either
 *version 2 of the License, or (at your option) any later version.
 */
package fund.pay;

import javax.servlet.http.*;
import javax.servlet.jsp.*;
import javax.servlet.*;
import java.sql.*;
import java.util.*;
import java.io.*;

import include.nseer_cookie.GetWorkflow;
import include.nseer_db.*;
import validata.ValidataNumber;

public class register_ok extends HttpServlet{
//創建方法

ServletContext application;
HttpSession session;

public synchronized void service(HttpServletRequest request,HttpServletResponse response) throws IOException,ServletException{
HttpSession dbSession=request.getSession();
JspFactory _jspxFactory=JspFactory.getDefaultFactory();
PageContext pageContext = _jspxFactory.getPageContext(this,request,response,"",true,8192,true);
ServletContext dbApplication=dbSession.getServletContext();


try{
HttpSession session=request.getSession();
PrintWriter out=response.getWriter();


nseer_db_backup1 fund_db = new nseer_db_backup1(dbApplication);
nseer_db_backup1 hr_db = new nseer_db_backup1(dbApplication);
if(fund_db.conn((String)dbSession.getAttribute("unit_db_name"))&&hr_db.conn((String)dbSession.getAttribute("unit_db_name"))){

ValidataNumber validata= new  ValidataNumber();

String file_chain_name=request.getParameter("file_chain_name");
String fund_ID=request.getParameter("fund_ID");
String funder=request.getParameter("funder");
String apply_ID_group=request.getParameter("apply_ID_group");
String register=request.getParameter("register") ;
String register_time=request.getParameter("register_time") ;
String currency_name=request.getParameter("currency_name") ;
String personal_unit=request.getParameter("personal_unit") ;
String[] fund_chain_ID=request.getParameterValues("fund_chain_ID");
String[] fund_chain_name=request.getParameterValues("fund_chain_name");
String[] account_bank=request.getParameterValues("account_bank");
String[] account_ID=request.getParameterValues("account_ID");
String[] cost_price_subtotal=request.getParameterValues("cost_price_subtotal") ;
String[] executed_cost_price_subtotal=request.getParameterValues("executed_cost_price_subtotal") ;
String[] execute_method=request.getParameterValues("execute_method");
String[] bill_ID=request.getParameterValues("bill_ID");
String[] subtotal=request.getParameterValues("subtotal");
String[] details_number=request.getParameterValues("details_number");
int p=0;
for(int i=0;i<account_ID.length;i++){
	if(!subtotal[i].equals("")){
		String subtotal1="";
		StringTokenizer tokenTO = new StringTokenizer(subtotal[i],",");        
		while(tokenTO.hasMoreTokens()) {
			subtotal1+=tokenTO.nextToken();
		}
		if(!validata.validata(subtotal1)){
			p++;
		}
		if(bill_ID[i].indexOf("'")!=-1||bill_ID[i].indexOf("\"")!=-1||bill_ID[i].indexOf(",")!=-1){
		p++;
		}
	}
}
if(p==0){
int n=0;
for(int i=0;i<account_ID.length;i++){
	if(!subtotal[i].equals("")){
		String sql1="select * from fund_executing where fund_ID='"+fund_ID+"' and account_bank='"+account_bank[i]+"' and account_ID='"+account_ID[i]+"' and check_tag='0'";
		ResultSet rs1=fund_db.executeQuery(sql1);
		if(rs1.next()){
			n++;
		}
		StringTokenizer tokenTO4 = new StringTokenizer(subtotal[i],",");        
		String subtotal1="";
		while(tokenTO4.hasMoreTokens()) {
			subtotal1+= tokenTO4.nextToken();
		}
if(Math.abs(Double.parseDouble(subtotal1)+Double.parseDouble(executed_cost_price_subtotal[i]))>Math.abs(Double.parseDouble(cost_price_subtotal[i]))){
		n++;
		}
	}
}
if(n==0){
try{
List rsList = GetWorkflow.getList(fund_db, "fund_config_workflow", "03");
	int pay_time=0;
	String sql="select pay_time from fund_fund where fund_ID='"+fund_ID+"'";
	ResultSet rset=fund_db.executeQuery(sql);
	if(rset.next()){
		pay_time=rset.getInt("pay_time")+1;
	}
	double cost_price_sum=0.0d;
	for(int i=0;i<account_ID.length;i++){
	if(!subtotal[i].equals("")){
		String subtotaling="";
		StringTokenizer tokenTO = new StringTokenizer(subtotal[i],",");        
		while(tokenTO.hasMoreTokens()) {
			subtotaling+=tokenTO.nextToken();
		}
		
		sql="update fund_details set execute_details_tag='1',execute_check_tag='1' where fund_ID='"+fund_ID+"' and details_number='"+details_number[i]+"'";
		fund_db.executeUpdate(sql);
	if(rsList.size()==0){
		if(Double.parseDouble(subtotaling)!=0){
	cost_price_sum+=Double.parseDouble(subtotaling);
		String sql4="insert into fund_executing(fund_ID,fund_chain_ID,details_number,fund_chain_name,account_bank,account_ID,subtotal,cost_price_subtotal,register,register_time,executed_cost_price_subtotal,execute_method,bill_ID,currency_name,personal_unit,check_tag,pay_time) values('"+fund_ID+"','"+fund_chain_ID[i]+"','"+details_number[i]+"','"+fund_chain_name[i]+"','"+account_bank[i]+"','"+account_ID[i]+"','"+subtotaling+"','"+cost_price_subtotal[i]+"','"+register+"','"+register_time+"','"+executed_cost_price_subtotal[i]+"','"+execute_method[i]+"','"+bill_ID[i]+"','"+currency_name+"','"+personal_unit+"','1','"+pay_time+"')";
		fund_db.executeUpdate(sql4);
		String sql11="select * from fund_details where fund_ID='"+fund_ID+"' and details_number='"+details_number[i]+"'";
		ResultSet rs11=fund_db.executeQuery(sql11);
		if(rs11.next()){
			double subtotal5=rs11.getDouble("executed_cost_price_subtotal")+Double.parseDouble(subtotaling);
			if(rs11.getDouble("cost_price_subtotal")==subtotal5){
				sql="update fund_details set executed_cost_price_subtotal='"+subtotal5+"',execute_details_tag='2',execute_check_tag='0' where fund_ID='"+fund_ID+"' and details_number='"+details_number[i]+"'";
				fund_db.executeUpdate(sql);
			}else{
				String sql12="update fund_details set executed_cost_price_subtotal='"+subtotal5+"',execute_check_tag='0' where fund_ID='"+fund_ID+"' and details_number='"+details_number[i]+"'";
				fund_db.executeUpdate(sql12);
			}
		}
	}else if(Double.parseDouble(subtotaling)==0){
		String sql11="select * from fund_details where fund_ID='"+fund_ID+"' and details_number='"+details_number[i]+"'";
		ResultSet rs11=fund_db.executeQuery(sql11);
		if(rs11.next()){
			double subtotal5=rs11.getDouble("executed_cost_price_subtotal")+Double.parseDouble(subtotaling);
			if(rs11.getDouble("cost_price_subtotal")==subtotal5){
				sql="update fund_details set executed_cost_price_subtotal='"+subtotal5+"',execute_details_tag='2',execute_check_tag='0' where fund_ID='"+fund_ID+"' and details_number='"+details_number[i]+"'";
				fund_db.executeUpdate(sql);
			}else{
				String sql12="update fund_details set executed_cost_price_subtotal='"+subtotal5+"',execute_check_tag='0' where fund_ID='"+fund_ID+"' and details_number='"+details_number[i]+"'";
				fund_db.executeUpdate(sql12);
			}
		}
	}
	}else{
		String sql4="insert into fund_executing(fund_ID,fund_chain_ID,details_number,fund_chain_name,account_bank,account_ID,subtotal,cost_price_subtotal,register,register_time,executed_cost_price_subtotal,execute_method,bill_ID,currency_name,personal_unit,pay_time) values('"+fund_ID+"','"+fund_chain_ID[i]+"','"+details_number[i]+"','"+fund_chain_name[i]+"','"+account_bank[i]+"','"+account_ID[i]+"','"+subtotaling+"','"+cost_price_subtotal[i]+"','"+register+"','"+register_time+"','"+executed_cost_price_subtotal[i]+"','"+execute_method[i]+"','"+bill_ID[i]+"','"+currency_name+"','"+personal_unit+"','"+pay_time+"')";
		fund_db.executeUpdate(sql4);
	}
	}
	}


	String sql2="update fund_fund set execute_tag='1',pay_time='"+pay_time+"' where fund_ID='"+fund_ID+"'";
	fund_db.executeUpdate(sql2);
	if(funder.indexOf("工資")!=-1){
		StringTokenizer tokenTO1 = new StringTokenizer(apply_ID_group,", ");        
		while(tokenTO1.hasMoreTokens()) {
			hr_db.executeUpdate("update hr_salary set pay_tag='2' where salary_ID='"+tokenTO1.nextToken()+"'");
		}
	}else if(file_chain_name.indexOf("費用")!=-1){
		StringTokenizer tokenTO1 = new StringTokenizer(apply_ID_group,", ");        
		while(tokenTO1.hasMoreTokens()) {
			String apply_pay_ID=tokenTO1.nextToken();
			fund_db.executeUpdate("update fund_apply_pay set pay_tag='1' where apply_pay_ID='"+apply_pay_ID+"'");
		}
	}
//**********************
if(rsList.size()==0){
	String sql18="select * from fund_fund where fund_ID='"+fund_ID+"'"; 
	ResultSet rs18=fund_db.executeQuery(sql18);
	if(rs18.next()){
		double subtotal7=rs18.getDouble("executed_cost_price_sum")+cost_price_sum;
		String sql19="update fund_fund set executed_cost_price_sum='"+subtotal7+"',checker='"+register+"',check_time='"+register_time+"' where fund_ID='"+fund_ID+"'";
		fund_db.executeUpdate(sql19);
	}
	if(funder.indexOf("工資")!=-1){
		StringTokenizer tokenTO2 = new StringTokenizer(apply_ID_group,", ");        
		while(tokenTO2.hasMoreTokens()) {
			hr_db.executeUpdate("update hr_salary set pay_tag='2' where salary_ID='"+tokenTO2.nextToken()+"'");
		}
	}
	String sql16="select * from fund_details where fund_ID='"+fund_ID+"' and execute_details_tag!='2'";
	ResultSet rs16=fund_db.executeQuery(sql16);
	if(!rs16.next()){
		String sql17="update fund_fund set finish_time='"+register_time+"',execute_tag='2',fund_tag='1' where fund_ID='"+fund_ID+"'";
		fund_db.executeUpdate(sql17);
		if(funder.indexOf("工資")!=-1){
		StringTokenizer tokenTO1 = new StringTokenizer(apply_ID_group,", ");        
		while(tokenTO1.hasMoreTokens()) {
			hr_db.executeUpdate("update hr_salary set pay_tag='3' where salary_ID='"+tokenTO1.nextToken()+"'");
		}
	}else if(file_chain_name.indexOf("費用")!=-1){
		StringTokenizer tokenTO1 = new StringTokenizer(apply_ID_group,", ");        
		while(tokenTO1.hasMoreTokens()) {
			String apply_pay_ID=tokenTO1.nextToken();
			ResultSet rs21=hr_db.executeQuery("select * from fund_fund where reasonexact='"+apply_pay_ID+"' and fund_pre_tag='0'");
			ResultSet rs20=fund_db.executeQuery("select * from fund_fund where apply_ID_group like '%"+apply_pay_ID+"%' and fund_execute_tag='1' and fund_tag!='1'");
			if(!rs20.next()&&!rs21.next()){
			fund_db.executeUpdate("update fund_apply_pay set apply_tag='1',pay_tag='2' where apply_pay_ID='"+apply_pay_ID+"'");
			}
		}
	}
	}
	
}else{
	Iterator ite=rsList.iterator();
		while(ite.hasNext()){
		String[] elem=(String[])ite.next();
		sql = "insert into fund_workflow(config_id,object_ID,describe1,describe2,pay_time) values ('"+elem[0]+"','"+fund_ID+"','"+elem[1]+"','"+elem[2]+"','"+pay_time+"')" ;
		fund_db.executeUpdate(sql) ;
		}
}
		
}catch (Exception ex){
	ex.printStackTrace();
}
	response.sendRedirect("fund/pay/register_ok.jsp?finished_tag=0");
}else{
	response.sendRedirect("fund/pay/register_ok.jsp?finished_tag=1");
}}else{
	response.sendRedirect("fund/pay/register_ok.jsp?finished_tag=2");
}
fund_db.commit();
hr_db.commit();
hr_db.close();
fund_db.close();
}else{
	response.sendRedirect("error_conn.htm");
}
}catch(Exception ex){
	ex.printStackTrace();
}
}
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品捆绑美女sm三区| 26uuu久久综合| 91啪在线观看| 99国产麻豆精品| av电影天堂一区二区在线观看| 国内精品国产三级国产a久久| 久久99精品国产91久久来源| 美腿丝袜亚洲综合| 国产综合久久久久久鬼色| 激情六月婷婷综合| 成人免费三级在线| 色综合天天综合网国产成人综合天 | 欧美人与z0zoxxxx视频| 欧美午夜不卡在线观看免费| 欧美日韩国产美女| 日韩女同互慰一区二区| 久久精品视频在线免费观看| 国产日本欧洲亚洲| 成人欧美一区二区三区1314| 亚洲欧美日韩中文字幕一区二区三区 | 色猫猫国产区一区二在线视频| 在线看国产一区| 欧美伦理电影网| 久久嫩草精品久久久精品| 中文一区二区在线观看| 国产精品三级视频| 玉足女爽爽91| 免费久久99精品国产| 国产精品一二三区在线| 色网站国产精品| 欧美一区二区三区啪啪| 国产日本亚洲高清| 亚洲国产毛片aaaaa无费看| 青青青伊人色综合久久| 国产精品影音先锋| 一本久久综合亚洲鲁鲁五月天| 欧美丰满一区二区免费视频| 精品av综合导航| 国产精品精品国产色婷婷| 中文字幕在线观看一区二区| 91最新地址在线播放| 色偷偷久久人人79超碰人人澡| 欧美女孩性生活视频| 欧美电影免费观看高清完整版在线观看 | 国产精品123| 欧美三级三级三级| 久久久久久久久久久电影| 亚洲狼人国产精品| 国产永久精品大片wwwapp| av在线不卡电影| 欧美一区二区精美| 中文字幕在线免费不卡| 蜜桃精品视频在线观看| 91亚洲资源网| 欧美精品一区二区三区在线 | 国内精品不卡在线| 在线观看日产精品| 久久久精品免费免费| 亚洲一区二区三区不卡国产欧美| 国内精品久久久久影院薰衣草| 欧美视频你懂的| 亚洲国产高清aⅴ视频| 视频一区中文字幕国产| 91视频免费播放| 欧美精品一区二区三区蜜臀| 亚洲第一搞黄网站| 91老司机福利 在线| 久久亚洲综合av| 日本不卡一二三区黄网| 色综合久久精品| 日本一区二区久久| 久久精品国产一区二区| 欧美日韩电影一区| 一区二区三区日韩欧美| 成人国产精品免费观看动漫 | 亚洲电影中文字幕在线观看| 99视频一区二区三区| 精品999在线播放| 天堂va蜜桃一区二区三区漫画版| 99精品欧美一区二区三区小说| 久久久久久久久岛国免费| 男人的天堂久久精品| 欧美日韩精品专区| 亚洲国产精品麻豆| 在线亚洲欧美专区二区| 国产精品久久久久久久久动漫| 国产成人亚洲综合a∨猫咪| 日韩一级黄色片| 日韩中文字幕亚洲一区二区va在线| 色一区在线观看| 亚洲免费视频中文字幕| av日韩在线网站| 国产精品久久久久久久久图文区 | 亚洲高清不卡在线观看| 在线亚洲+欧美+日本专区| 成人欧美一区二区三区视频网页 | 欧美一区二区在线视频| 午夜av电影一区| 欧美色图片你懂的| 亚洲国产综合91精品麻豆| 欧美性一二三区| 亚洲一区二区三区自拍| 在线精品国精品国产尤物884a| 亚洲欧美国产三级| 欧美性猛交xxxxxx富婆| 夜夜嗨av一区二区三区中文字幕| 在线观看亚洲精品| 亚洲a一区二区| 欧美一区二区性放荡片| 青娱乐精品在线视频| 欧美r级在线观看| 国产福利精品一区二区| 欧美激情一区二区三区四区| 成人国产精品免费观看动漫 | 精品在线一区二区三区| 久久女同性恋中文字幕| 国产精品一卡二| 国产精品麻豆久久久| 91在线国产福利| 亚洲v中文字幕| 欧美大黄免费观看| 国产伦精品一区二区三区视频青涩| 久久久99免费| 色呦呦国产精品| 秋霞电影网一区二区| 国产日韩三级在线| 99久久er热在这里只有精品66| 一区二区三区四区五区视频在线观看| 欧美怡红院视频| 精品亚洲成a人| 自拍偷拍国产亚洲| 欧美人狂配大交3d怪物一区| 开心九九激情九九欧美日韩精美视频电影| 欧美xxxxxxxx| 91网上在线视频| 日韩中文字幕1| 国产欧美日韩中文久久| 色老头久久综合| 美女www一区二区| 亚洲婷婷国产精品电影人久久| 欧美色区777第一页| 精品一区精品二区高清| 国产精品超碰97尤物18| 欧美日韩一级大片网址| 国产一区二区精品久久| 亚洲黄色免费网站| 久久综合九色综合久久久精品综合| 91一区二区在线| 久久91精品久久久久久秒播| 亚洲婷婷综合色高清在线| 日韩女优制服丝袜电影| 色婷婷久久久久swag精品| 久久99精品久久久久久动态图| 日韩理论片一区二区| 精品人在线二区三区| 色视频成人在线观看免| 激情五月婷婷综合网| 亚洲午夜精品在线| 中文一区二区在线观看| 欧美一激情一区二区三区| 99精品欧美一区二区三区小说| 麻豆精品精品国产自在97香蕉| 亚洲欧美乱综合| 久久精品欧美日韩| 欧美福利视频一区| 色噜噜狠狠色综合中国| 粉嫩av一区二区三区在线播放 | 99视频国产精品| 久久99国产精品久久99 | 色哟哟一区二区三区| 国产一区二区美女| 免费观看日韩av| 亚洲一区av在线| 成人欧美一区二区三区黑人麻豆| 精品国产乱码久久久久久久久| 欧美三级欧美一级| 91亚洲国产成人精品一区二三 | 欧美性受xxxx黑人xyx| 波多野结衣视频一区| 精一区二区三区| 日韩精品一卡二卡三卡四卡无卡| 最新国产成人在线观看| 久久伊人中文字幕| 欧美一区二区在线观看| 欧美日韩一区不卡| 在线观看日产精品| 色老头久久综合| 91无套直看片红桃| 97se亚洲国产综合在线| 国产69精品久久777的优势| 精品午夜久久福利影院| 日本亚洲天堂网| 无码av免费一区二区三区试看| 一区二区在线免费| 亚洲日穴在线视频| 一区二区三区四区不卡在线| 国产精品国产三级国产普通话蜜臀| 欧美极品aⅴ影院| 日本一区二区高清| 国产精品国产自产拍高清av王其 |