최초커밋

This commit is contained in:
2025-09-29 17:55:08 +09:00
parent 90af30c0d0
commit e39813395a
3334 changed files with 338522 additions and 0 deletions

711
approval/mainpage_2014.asp Normal file
View File

@@ -0,0 +1,711 @@
<!-- #include virtual = "include/header.asp" -->
<!-- #include virtual = "include/left.asp" -->
<%
dim xadmin, xadmintxt
if fnc_user_level("0","<22>ϷṮ<CFB7><E1B9AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",Request.ServerVariables("REMOTE_ADDR"))="1" and request.item("x")="2" then
xadmin="1" '-- <20><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(1)
xadmin_print="(1) <20>ް<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20>ش<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ް<EFBFBD><DEB0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ǹǷ<C7B9> <20>ش糯¥ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ȯ<><C8AE><EFBFBD>Ұ<EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʿ<EFBFBD><CABF>Ѱ<EFBFBD><D1B0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ڰ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ϵ<EFBFBD><CFB5><EFBFBD> <20>Ұ<EFBFBD>)<br>"
end if
'@@@@@ <20><><EFBFBD><EFBFBD>ó<EFBFBD><C3B3> <20><> @@@@@@@@@@@
dim xState : xState=replace(replace(replace(replace(request("toState"),"'",""),"""","")," ","")," ","")
dim xd_no : xd_no=replace(replace(replace(replace(request("d_no"),"'",""),"""","")," ","")," ","")
dim sql
select case xState
case "del"
sql=""
sql=sql&" Declare @start_dt Varchar(10) "&vbCrLf
sql=sql&" Declare @end_dt Varchar(10) "&vbCrLf
sql=sql&" Declare @user_no Varchar(8) "&vbCrLf
sql=sql&" Declare @d_no Varchar(20) "&vbCrLf
'-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ
sql=sql&" Set @d_no = '"&xd_no&"' "&vbCrLf
'-- <20>ް<EFBFBD><DEB0>ϰ<EFBFBD><CFB0><EFBFBD> <20>ް<EFBFBD><DEB0>Ⱓ <20><><EFBFBD><EFBFBD>
sql=sql&" SELECT @start_dt = Convert(varchar(10), target1), @end_dt = Convert(varchar(10), target2), @user_no = Convert(varchar(8), login_p_no) FROM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>='<27>ް<EFBFBD><DEB0><EFBFBD>' AND <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ= @d_no "&vbCrLf
sql=sql&" UPDATE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> SET del_yes_no = 'yes' "&vbCrLf
sql=sql&" WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ IN (SELECT d_no FROM cost_account WHERE job_prj_id IN (SELECT id FROM Job WHERE j_date BETWEEN @start_dt AND @end_dt AND j_p_no=@user_no AND j_detail_code > '0')) "&vbCrLf
sql=sql&" UPDATE Document SET d_delok='Y' "&vbCrLf
sql=sql&" WHERE d_no IN (SELECT d_no FROM cost_account WHERE job_prj_id IN (SELECT id FROM Job WHERE j_date BETWEEN @start_dt AND @end_dt AND j_p_no=@user_no AND j_detail_code > '0')) "&vbCrLf
sql=sql&" DELETE cost_account WHERE job_prj_id IN (SELECT id FROM Job WHERE j_date BETWEEN @start_dt AND @end_dt AND j_p_no=@user_no AND j_detail_code > '0') "&vbCrLf
sql=sql&" DELETE Job WHERE j_date BETWEEN @start_dt AND @end_dt AND j_p_no=@user_no AND j_detail_code > '0' "&vbCrLf
adoconn.execute sql
'-- <20><>ǥ <20><><EFBFBD><EFBFBD>ó<EFBFBD><C3B3>
'--(1)
sql=""
sql=sql&" update <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> set "
sql=sql&" del_yes_no = 'yes' "
sql=sql&" where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ='"&xd_no&"' "
'--(2)
sql=sql&" update Document set "
sql=sql&" d_delok='Y' "
sql=sql&" where d_no='"&xd_no&"' "
'--(3)
'sql=sql&" update direct_cost set "
'sql=sql&" del_yes_no='yes' "
'sql=sql&" where krc_no='"&xd_no&"' "
adoconn.execute sql
If UCASE(Mid(xd_no, 10, 1)) = "I" Then
sql=""&VbCrlf
sql = sql & " update direct_cost set "&VbCrlf
sql = sql & " act_money = "&VbCrlf
sql = sql & " ( "&VbCrlf
sql = sql & " select act_money from direct_cost where del_yes_no = 'no' and p_child_sn = (select CAST(target10 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
sql = sql & " and hangmok = (select CAST(target11 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
sql = sql & " and sebu = (select d_cost_name from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 AS varchar(100)) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
sql = sql & " and cost_type = (select CAST(target16 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
sql = sql & " ) - (select CAST(CAST(target5 AS varchar(100)) AS INT) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"'), "&VbCrlf
sql = sql & " cha_money = "&VbCrlf
sql = sql & " ( "&VbCrlf
sql = sql & " select cha_money from direct_cost where del_yes_no = 'no' and p_child_sn = (select CAST(target10 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
sql = sql & " and hangmok = (select CAST(target11 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
sql = sql & " and sebu = (select d_cost_name from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 AS varchar(100)) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
sql = sql & " and cost_type = (select CAST(target16 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
sql = sql & " ) - (select CAST(CAST(target5 AS varchar(100)) AS INT) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
sql = sql & " where del_yes_no = 'no' and p_child_sn = (select CAST(target10 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
sql = sql & " and hangmok = (select CAST(target11 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
sql = sql & " and sebu = (select d_cost_name from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 AS varchar(100)) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
sql = sql & " and cost_type = (select CAST(target16 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
adoconn.execute sql
End If
If UCASE(Mid(xd_no, 10, 1)) = "A" Then
sql = " "
sql = sql & " update direct_cost "
sql = sql & " set direct_cost.act_money = convert(money, direct_cost.act_money) - B.cost, direct_cost.cha_money = convert(money, direct_cost.cha_money) - B.cost "
sql = sql & " from ( "
sql = sql & " select p_child_sn, hangmok, sebu, sum(cost) as cost from "
sql = sql & " ( "
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
sql = sql & " from "
sql = sql & " ( select CAST(dbo.split(dbo.split(target21, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
sql = sql & " CAST(replace(dbo.split(target21, '^//^', 2), ',', '') as int) as cost, "
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
sql = sql & " from "
sql = sql & " ( select CAST(dbo.split(dbo.split(target22, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
sql = sql & " CAST(replace(dbo.split(target22, '^//^', 2), ',', '') as int) as cost, "
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
sql = sql & " from "
sql = sql & " ( select CAST(dbo.split(dbo.split(target23, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
sql = sql & " CAST(replace(dbo.split(target23, '^//^', 2), ',', '') as int) as cost, "
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
sql = sql & " from "
sql = sql & " ( select CAST(dbo.split(dbo.split(target24, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
sql = sql & " CAST(replace(dbo.split(target24, '^//^', 2), ',', '') as int) as cost, "
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
sql = sql & " from "
sql = sql & " ( select CAST(dbo.split(dbo.split(target25, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
sql = sql & " CAST(replace(dbo.split(target25, '^//^', 2), ',', '') as int) as cost, "
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
sql = sql & " from "
sql = sql & " ( select CAST(dbo.split(dbo.split(target26, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
sql = sql & " CAST(replace(dbo.split(target26, '^//^', 2), ',', '') as int) as cost, "
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
sql = sql & " from "
sql = sql & " ( select CAST(dbo.split(dbo.split(target27, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
sql = sql & " CAST(replace(dbo.split(target27, '^//^', 2), ',', '') as int) as cost, "
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
sql = sql & " from "
sql = sql & " ( select CAST(dbo.split(dbo.split(target28, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
sql = sql & " CAST(replace(dbo.split(target28, '^//^', 2), ',', '') as int) as cost, "
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
sql = sql & " from "
sql = sql & " ( select CAST(dbo.split(dbo.split(target29, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
sql = sql & " CAST(replace(dbo.split(target29, '^//^', 2), ',', '') as int) as cost, "
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
sql = sql & " from "
sql = sql & " ( select CAST(dbo.split(dbo.split(target30, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
sql = sql & " CAST(replace(dbo.split(target30, '^//^', 2), ',', '') as int) as cost, "
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
sql = sql & " from "
sql = sql & " ( select CAST(dbo.split(dbo.split(target31, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
sql = sql & " CAST(replace(dbo.split(target31, '^//^', 2), ',', '') as int) as cost, "
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
sql = sql & " from "
sql = sql & " ( select CAST(dbo.split(dbo.split(target32, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
sql = sql & " CAST(replace(dbo.split(target32, '^//^', 2), ',', '') as int) as cost, "
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
sql = sql & " from "
sql = sql & " ( select CAST(dbo.split(dbo.split(target33, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
sql = sql & " CAST(replace(dbo.split(target33, '^//^', 2), ',', '') as int) as cost, "
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
sql = sql & " from "
sql = sql & " ( select CAST(dbo.split(dbo.split(target34, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
sql = sql & " CAST(replace(dbo.split(target34, '^//^', 2), ',', '') as int) as cost, "
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
sql = sql & " from "
sql = sql & " ( select CAST(dbo.split(dbo.split(target35, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
sql = sql & " CAST(replace(dbo.split(target35, '^//^', 2), ',', '') as int) as cost, "
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
sql = sql & " from "
sql = sql & " ( select CAST(dbo.split(dbo.split(target36, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
sql = sql & " CAST(replace(dbo.split(target36, '^//^', 2), ',', '') as int) as cost, "
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
sql = sql & " from "
sql = sql & " ( select CAST(dbo.split(dbo.split(target37, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
sql = sql & " CAST(replace(dbo.split(target37, '^//^', 2), ',', '') as int) as cost, "
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
sql = sql & " from "
sql = sql & " ( select CAST(dbo.split(dbo.split(target38, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
sql = sql & " CAST(replace(dbo.split(target38, '^//^', 2), ',', '') as int) as cost, "
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
sql = sql & " from "
sql = sql & " ( select CAST(dbo.split(dbo.split(target39, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
sql = sql & " CAST(replace(dbo.split(target39, '^//^', 2), ',', '') as int) as cost, "
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
sql = sql & " from "
sql = sql & " ( select CAST(dbo.split(dbo.split(target40, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
sql = sql & " CAST(replace(dbo.split(target40, '^//^', 2), ',', '') as int) as cost, "
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
sql = sql & " from "
sql = sql & " ( select CAST(dbo.split(dbo.split(target41, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
sql = sql & " CAST(replace(dbo.split(target41, '^//^', 2), ',', '') as int) as cost, "
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
sql = sql & " from "
sql = sql & " ( select CAST(dbo.split(dbo.split(target42, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
sql = sql & " CAST(replace(dbo.split(target42, '^//^', 2), ',', '') as int) as cost, "
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
sql = sql & " from "
sql = sql & " ( select CAST(dbo.split(dbo.split(target43, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
sql = sql & " CAST(replace(dbo.split(target43, '^//^', 2), ',', '') as int) as cost, "
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
sql = sql & " from "
sql = sql & " ( select CAST(dbo.split(dbo.split(target44, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
sql = sql & " CAST(replace(dbo.split(target44, '^//^', 2), ',', '') as int) as cost, "
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
sql = sql & " from "
sql = sql & " ( select CAST(dbo.split(dbo.split(target45, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
sql = sql & " CAST(replace(dbo.split(target45, '^//^', 2), ',', '') as int) as cost, "
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
sql = sql & " from "
sql = sql & " ( select CAST(dbo.split(dbo.split(target46, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
sql = sql & " CAST(replace(dbo.split(target46, '^//^', 2), ',', '') as int) as cost, "
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
sql = sql & " from "
sql = sql & " ( select CAST(dbo.split(dbo.split(target47, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
sql = sql & " CAST(replace(dbo.split(target47, '^//^', 2), ',', '') as int) as cost, "
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
sql = sql & " from "
sql = sql & " ( select CAST(dbo.split(dbo.split(target48, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
sql = sql & " CAST(replace(dbo.split(target48, '^//^', 2), ',', '') as int) as cost, "
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
sql = sql & " from "
sql = sql & " ( select CAST(dbo.split(dbo.split(target49, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
sql = sql & " CAST(replace(dbo.split(target49, '^//^', 2), ',', '') as int) as cost, "
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
sql = sql & " from "
sql = sql & " ( select CAST(dbo.split(dbo.split(target50, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
sql = sql & " CAST(replace(dbo.split(target50, '^//^', 2), ',', '') as int) as cost, "
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' "
sql = sql & " ) M group by p_child_sn, hangmok, sebu "
sql = sql & " ) B "
sql = sql & " where direct_cost.p_child_sn = B.p_child_sn and direct_cost.hangmok = B.hangmok and direct_cost.sebu = B.sebu and direct_cost.del_yes_no = 'no' "
adoconn.execute sql
End If
end select
'@@@@@ <20><><EFBFBD><EFBFBD>ó<EFBFBD><C3B3> <20><> @@@@@@@@@@@
x= request("x")
if x = "99" then
x = "3"
end if
if request("gotopage") <> "" then
tmp_currentpage = request("gotopage")
else
tmp_currentpage = 1
end if
if x = "1" then
tmp_bg_color = "#FFE3EE"
tmp_button = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
tmp_btn_name = "approval/btn_approval_cancel"
web_position = "<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>"
elseif x = "2" then
tmp_bg_color = "#FFE4B5"
tmp_button = "<22><><EFBFBD>ϻ<EFBFBD><CFBB><EFBFBD>"
tmp_btn_name = "common/btn_list_del"
web_position = "<22>Ϸ<EFBFBD> <20><><EFBFBD><EFBFBD>"
elseif x = "3" then
tmp_bg_color = "#FFF8F4"
tmp_button = "<22><><EFBFBD>ϻ<EFBFBD><CFBB><EFBFBD>"
tmp_btn_name = "common/btn_list_del"
web_position = "<22>ݷ<EFBFBD> <20><><EFBFBD><EFBFBD>"
elseif x = "4" then
web_position = "<22>ݷ<EFBFBD><DDB7><EFBFBD> <20><><EFBFBD><EFBFBD>"
elseif x = "all" then
tmp_bg_color = "#FFE4B5"
tmp_button = "<22><><EFBFBD>ϻ<EFBFBD><CFBB><EFBFBD>"
tmp_btn_name = "common/btn_list_del"
web_position = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : <20>ϷṮ<CFB7><E1B9AE> - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
end if
%>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<div class="content-header">
<h1><%=web_position%></h1>
</div>
<!-- /.content-header -->
<!-- Main content -->
<div class="content-body">
<div class="content">
<div class="container-fluid">
<div class="row">
<div class="col-12">
<form name="ess" method="post">
<input type="hidden" name="toState" value="" ><!-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> -->
<%
query = " SELECT * "
query = query & " FROM Document a WITH(NOLOCK) "
query = query & " INNER JOIN <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> b WITH(NOLOCK) on a.d_no = b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ "
if x <> "4" then '<27>ݷ<EFBFBD><DDB7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC>ڸ<EFBFBD> <20>ȵ<EFBFBD><C8B5><EFBFBD><EFBFBD><EFBFBD>.
query = query & "WHERE b.login_p_no = '" & Session("User_Number") & "' "
else
query = query & "WHERE del_user_name = '" & Session("loginuser") & "' "
end if
if x = "1" then
query = query & " AND (a.d_order_cnt <> '77' or (a.d_order_cnt = '77' and a.d_orders <> '" & Session("User_Number") & "') ) "
query = query & " AND a.d_order_cnt <> '99' "
query = query & " AND b.del_yes_no = 'no' "
elseif x = "2" then 'ó<><C3B3><EFBFBD>Ϸ<EFBFBD>
query = query & " AND a.d_order_cnt = '77' "
query = query & " AND a.d_orders = '" & Session("User_Number") & "' "
query = query & " AND b.del_yes_no = 'no' "
elseif x = "3" then '<27>ݷ<EFBFBD>
query = query & " AND a.d_order_cnt = '99' "
elseif x = "4" then '<27>ݷ<EFBFBD><DDB7><EFBFBD> <20><><EFBFBD><EFBFBD>
query = query & " AND a.d_order_cnt = '99' "
query = query & " AND b.del_yes_no = 'yes' "
end if
query = query & " AND a.d_view = 'Y' "
query = query & " AND b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <> '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' AND b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <> '<27>μ<EFBFBD><CEBC><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB>' AND b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <> '<27><><EFBFBD><EFBFBD><EFBFBD>񺸰<EFBFBD><F1BAB8B0><EFBFBD>' "
query = query & "ORDER BY a.d_sn DESC "
Rs.Open query, adoConn, 1
tmp_count = Rs.RecordCount
%>
<font color=red><%=xadmin_print%></font>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td style="padding:5"><3E><><EFBFBD>ϰ<EFBFBD><CFB0><EFBFBD> : <20><> <b class="tahoma_orange"><%=tmp_count%></b><3E><><EFBFBD><EFBFBD> <20>׸<EFBFBD><D7B8><EFBFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.</td>
</tr>
<%If x="1" Then %>
<tr>
<td style="padding:5"><3E><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>ڰ<EFBFBD><DAB0><EFBFBD> <20><><EFBFBD>Ž<EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ջ<EFBFBD> <20>ǹǷ<C7B9> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"<22><> <20>Ұ<EFBFBD><D2B0><EFBFBD> <20>մϴ<D5B4></td>
</tr>
<%End if%>
<tr>
<td align="center">
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
<tr>
<td width="5%" align="center" height="24" >No.</td>
<td width="40%" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD>з<EFBFBD></td>
<td align="center" height="24" ><3E>ŷ<EFBFBD>ó</td>
<td align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" height="24" ><3E>ۼ<EFBFBD><DBBC><EFBFBD></td>
<td width="10%" align="center" height="24" >ó<><C3B3></td>
<td width="5%" align="center" height="24" ><3E><>û</td>
<td width="10%" align="center" height="24" ><3E>μ⿩<CEBC><E2BFA9></td>
</tr>
<%
if Rs.RecordCount > 0 then
Rs.PageSize = 20
tmp_ok = 1
PageCount = Rs.PageCount
Rs.absolutepage = tmp_Currentpage
tmp_total_record = Rs.RecordCount
tmp_for = Cint(tmp_total_record) - ((Cint(tmp_Currentpage) - 1) * Rs.PageSize)
if Rs.PageSize <= tmp_for then
if Rs.RecordCount <= Rs.PageSize then
tmp_for = Rs.recordcount
else
tmp_for = Rs.PageSize
end if
else
tmp_for = tmp_for
end if
for i = 1 to tmp_for
if Cint(tmp_Currentpage)=1 then
Num=Cint(tmp_total_record)- i+1
else
Num=Cint(tmp_total_record) - ((Cint(tmp_Currentpage) - 1) * Rs.PageSize) - i +1
end if
if x = "1" then
if Rs("d_order_cnt") = "7" then
tmp_txt = "<22><><EFBFBD><EFBFBD> <20>μ<EFBFBD><CEBC><EFBFBD>"
elseif Rs("d_order_cnt") = "6" then
tmp_txt = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
elseif Rs("d_order_cnt") = "5" then
tmp_txt = "<22><>ǥ<EFBFBD>̻<EFBFBD>"
elseif Rs("d_order_cnt") = "4" then
tmp_txt = "<22>ӿ<EFBFBD>"
elseif Rs("d_order_cnt") = "3" then
tmp_txt = "<22>μ<EFBFBD><CEBC><EFBFBD>"
elseif Rs("d_order_cnt") = "2" then
tmp_txt = "<22><><EFBFBD><EFBFBD>"
elseif Rs("d_order_cnt") = "77" then
tmp_txt = "<22>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ó<><C3B3><EFBFBD><EFBFBD>"
end if
elseif x = "2" then
tmp_txt = "<22>Ϸ<EFBFBD>"
elseif x = "3" or x = "4" then
tmp_txt = "<22>ݷ<EFBFBD>"
x = "99"
end if
tmp_flag = mid(Rs("d_no"), 10, 1)
if Rs("d_name") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then
tmpstr = Rs("p_sn")
else
tmpstr = Rs("d_no")
end If
if Rs("d_name") = "<22><>ȭü<C8AD><C3BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB>" then
tmp_flag = "o2"
end If
if Rs("d_name") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>" then
tmp_flag = "t2"
end If
if (tmp_admin_chk = "1" OR Session("loginuser") = "<22>翵<EFBFBD><E7BFB5>") AND Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>" then
tmp_value = " - " & FormatNumber(Replace(Rs("target5"), ",", ""), 0)
elseif (tmp_admin_chk = "1" OR Session("loginuser") = "<22>翵<EFBFBD><E7BFB5>") AND Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") = "ǰ<>Ǽ<EFBFBD>" then
tmp_value = " - " & FormatNumber(Replace(Rs("target5"), ",", ""), 0) & " [" & LEFT(Rs("target9"),20) & "]"
else
tmp_value = ""
end if
if not (isnull(Rs("p_sn")) or trim(Rs("p_sn")) = "") or right(Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"), 7) = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>" then
tmp_value = tmp_value & " <20><>("
if right(Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"), 7) = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>" then
tmp_value = tmp_value & "[" & mid(Rs("target20"), 4, 11) & "]&nbsp; &nbsp;" & split(split(Rs("target21"), "^//^")(0), "^^")(1)
else
if instr(1,Rs("p_sn"),",") > 0 then
tmpstr = split(Rs("p_sn"),",")
for j = 0 to ubound(tmpstr) - 1
if tmpstr(j) = "99999" then
tmp_value = tmp_value & "<22>Ϲݾ<CFB9><DDBE><EFBFBD>"
Else
if len(tmpstr(j) ) < 5 then
query = "select * from project2_pre where p_sn_tmp = '" & tmpstr(j) & "'" & _
" and (substring(write_date, 1, 4) = '" & left(date(), 4) & "' " & _
" OR substring(write_date, 1, 4) = '" & left(date(), 4) - 1 & "') "
'Response.Write "query : " & query & "<br>"
Adors.Open query,adoconn,1
tmp_value = tmp_value & Adors("p_subject_tmp")
Adors.Close
elseif len(tmpstr(j)) > 9 Then
query = "select * from t_project_method where p_child_sn = '" & tmpstr(j) & "'"
'Response.Write "query : " & query & "<br>"
Adors.Open query,adoconn,1
tmp_value = tmp_value & Adors("p_subject")
Adors.Close
Else
query = "select p_subject from V_PROJECT where p_sn = '" & tmpstr(j) & "'"
'Response.Write "query : " & query & "<br>"
Adors.Open query, adoConn, 1
If Adors.RecordCount > 0 Then
tmp_value = tmp_value & Adors("p_subject") & ", "
End if
Adors.Close
end if
end if
next
else
if Rs("p_sn") = "99999" then
tmp_value = tmp_value & "<22>Ϲݾ<CFB9><DDBE><EFBFBD>"
elseif len(Rs("p_sn")) < 5 then
query = "select * from project2_pre where p_sn_tmp = '" & Rs("p_sn") & "'" & _
" and (substring(write_date, 1, 4) = '" & left(date(), 4) & "' " & _
" OR substring(write_date, 1, 4) = '" & left(date(), 4) - 1 & "') "
'Response.Write query & "<br>"
Adors.Open query,adoconn,1
tmp_value = tmp_value & Adors("p_subject_tmp")
Adors.Close
elseif len(Rs("p_sn")) > 9 Then
query = "select * from t_project_method where p_child_sn = '" & Rs("p_sn") & "'"
'Response.Write "query : " & query & "<br>"
Adors.Open query,adoconn,1
if Adors.recordCount > 0 Then
tmp_value = tmp_value & Adors("p_subject")
End if
Adors.Close
else
query = "select p_subject from V_PROJECT where p_sn = '" & Rs("p_sn") & "'"
'Response.Write query & "<br>"
Adors.Open query,adoconn,1
If Adors.RecordCount > 0 Then
tmp_value = tmp_value & Adors("p_subject")
End if
Adors.Close
end if
end if
end if
tmp_value = tmp_value & ")"
end If
If tmp_value = "<22><>()" Then
tmp_value = ""
End if
%>
<tr>
<td align="center" height="24" ><%=Num%></td>
<td align="left" height="24">
<!------------------------>
<% if xadmin="1" and request.item("x")="2" then %>
<%select case UCase(tmp_flag)%>
<%case "I","A"%>
<a href="javascript:openit('<%=tmp_flag%>','<%=Rs("d_no")%>','1','<%=x%>', '<%=Rs("p_sn")%>','del')" ><font color=red>[<5B><><EFBFBD><EFBFBD>]</font></a>
<%end select %>
<%select case UCase(tmp_flag)%>
<%case "I","A"%>
&nbsp;/&nbsp;
<a href="javascript:openit('<%=tmp_flag%>','<%=Rs("d_no")%>','1','<%=x%>', '<%=Rs("p_sn")%>','edit')" ><font color=red>[<5B><><EFBFBD><EFBFBD>]</font></a>&nbsp;&nbsp;
<%end select %>
<%end if %>
<!------------------------>
<a href="javascript:openit('<%=tmp_flag%>','<%=Rs("d_no")%>','1','<%=x%>', '<%=Rs("p_sn")%>','')" class="blue"><%if Rs("d_name") = "<22>μ<EFBFBD><CEBC><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB>" then response.Write "<22>׷<EFBFBD>(<28><>)Ȱ<><C8B0><EFBFBD><EFBFBD>" & "[" & Rs("d_no") & "]" & tmp_value else response.Write Rs("d_name") & "[" & Rs("d_no") & "]" & tmp_value end if %></a></td>
<td align="center" height="24" >
<% if Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>" or Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")="ǰ<>Ǽ<EFBFBD>" or Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")="<22>ڱ<EFBFBD><DAB1><EFBFBD><EFBFBD>༭" or Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")="<22>Աݰ<D4B1><DDB0>Ǽ<EFBFBD>" then %>
<%=Rs("target8") %>
<% end if %>
</td>
<td align="center" height="24" >
<% if Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>" or Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")="<22>ڱ<EFBFBD><DAB1><EFBFBD><EFBFBD>༭" then%>
<%=Rs("target3")%>
<% end if%>
</td>
<td align="center" height="24" ><%=Rs("d_write_date")%></td>
<td align="center" height="24" class="k_darkorange"><%=tmp_txt%></td>
<% if x <> 99 and x = 1 and (Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") <> "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>" or (Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>" and Rs("target20") = "") ) then%>
<td align="center" height="24">
<img src="/images/<%=tmp_btn_name%>.gif" align="absmiddle" onClick="view_del('<%=Rs("d_no")%>','<%=x%>')" style="CURSOR:pointer;">
</td>
<% else %>
<td></td>
<% end if %>
<td align="center" height="24" class="k_darkorange"><%=Rs("print_chk")%></td>
</tr>
<%
Rs.MoveNext
next
end if
Rs.Close
%>
</table>
<%=Pagelist("mainpage_2014.asp",tmp_currentpage ,tmp_bcolor , "", pagecount, "&b_type=" & b_type &"&x=" & request("x"))%>
</td>
</tr>
</table>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- /.content -->
<!-- REQUIRED SCRIPTS -->
<script>
function openit(z,x,c,v, p_sn,pgubn) {
var xform=document.forms[0];
if (pgubn=="del"){ // <20><><EFBFBD><EFBFBD>ó<EFBFBD><C3B3>
if(!confirm("<22><><EFBFBD><EFBFBD><EFBFBD>Ͻ<EFBFBD> <20><><EFBFBD>ڰ<EFBFBD><DAB0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")){return;}
xform.toState.value=pgubn;
xform.target="";
xform.action="mainpage_2014.asp?d_no=" + x + "&view_chk=" + c + "&x=" + v;
xform.submit();
return;
}else{
if (z == 'C'){
var url = '/ess/doc_infochange_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
}else if (z == 'D'){
var url = '/ess/doc_reinstatement_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
}else if (z == 'E'){
var url = '/ess/doc_timeoff_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
}else if (z == 'F'){
var url = '/ess/doc_vacation_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
}else if (z == 'H'){
var url = '/ess/doc_official_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
}else if (z == 'i' || z =='S'){
if (z == 'i'){
var title_type = "<22><><EFBFBD><EFBFBD>";
}else{
var title_type = "<22>Ա<EFBFBD>";
}
if (new_project_2014(p_sn) == "1") {
var url = '/ess/doc_expense_print.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v + '&title_type=' + title_type;
} else {
var url = '/ess/doc_expense_print_2014.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v + "&xadmin=" + pgubn + '&title_type=' + title_type;
}
}else if (z == 'A'){
var title_type = "<22><><EFBFBD><EFBFBD>";
var url = '/ess/doc_expense2_print_2014.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v + "&xadmin=" + pgubn + '&title_type=' + title_type;
}else if (z == 'M'){
var url = '/ess/doc_commute_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
}else if (z == 'N'){
var url = '/ess/doc_entertainment_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
}else if (z == 'o'){
var url = '/ess/doc_expense_approval_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
}else if (z == 'o2'){
var url = '/ess/doc_culture_physicaleducation_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
}else if (z == 'P'){
var url = '/ess/doc_prepayment_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
}else if (z == 'Q'){
var url = '/ess/doc_prepayment_ex_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
}else if (z == 'R'){
var url = '/ess/doc_cardiary_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
}else if (z == 'U'){
var url = '/ess/doc_directcost_modi_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
}else if (z == 'V'){
if (new_project_2014(p_sn) == "1") {
var url = '/ess/project_report.asp?d_no='+x+'&view_chk='+c+'&x='+v;
} else {
var url = '/ess/project_report_2014.asp?d_no='+x+'&view_chk='+c+'&x='+v;
}
}else if (z == 'w'){
var url = '/ess/doc_expense_approval_depart_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
}else if (z == 'X'){
var url = '/ess/direct_cost_print.asp?d_no='+x + '&view_chk='+c+'&x='+v;
}else if (z == 'Y'){
var url = '/ess/<2F><>ǰ<EFBFBD><C7B0><EFBFBD>ż<EFBFBD>_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
}else if (z == 'Z'){
var url = '/ess/doc_education_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
}else if (z == 'PMS'){
var url = '/project/project_list2_chk.asp?p_sn=' + x;
}else if (z == '0'){
var url = '/ess/doc_consultation_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
}else if (z == '1'){
var url = '/ess/doc_business_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
}else if (z == '2'){
var url = '/ess/doc_field_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
}else if (z == '3'){
var url = '/ess/doc_businessreport_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
}else if (z == '4'){
var url = '/ess/doc_prepayment2_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
}else if (z == '5'){
var url = '/ess/doc_prepayment2_ex_print.asp?d_no='+x+'&view_chk='+c+'&x='+v;
}else if (z == 'r'){
var url = '/ess/doc_expense2_print.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v + '&title_type=' + title_type;
}else if (z == 't'){
var url = '/ess/doc_myun_pay_print.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v + '&title_type=' + title_type;
}else if (z == 't2') {
var url = '/ess/doc_myun_pay_print2.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v + '&title_type=' + title_type;
var tmp_height = 800;
var tmp_width = 850;
}else if (z == 'u') {
var url = '/ess/update_project_money.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v + '&title_type=' + title_type;
}else if (z == '7') {
var url = '/ess/doc_device_print.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v;
}
window.open(url,'','left=0,top=0,width=1000,height=1000,scrollbars=yes,resizable=yes');
}
}
function view_del(z,x){
if (confirm("<%=tmp_button%> <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")){
document.ess.action = "view_del_ok.asp?d_no="+z+"&x="+x;
document.ess.submit();
}
}
</script>
</div>
<!-- /.content-wrapper -->
<!-- #include virtual = "include/footer.asp" -->