712 lines
45 KiB
Plaintext
712 lines
45 KiB
Plaintext
<!-- #include virtual = "include/header.asp" -->
|
|
<!-- #include virtual = "include/left.asp" -->
|
|
<%
|
|
dim xadmin, xadmintxt
|
|
if fnc_user_level("0","완료문서수정삭제",Request.ServerVariables("REMOTE_ADDR"))="1" and request.item("x")="2" then
|
|
xadmin="1" '-- 수정/삭제가능(1)
|
|
xadmin_print="(1) 휴가 삭제시: 해당 업무일지에 휴가가 삭제되므로 해당날짜 업무일지 결재유무를 확인할것 (재등록이 필요한경우 등록자가 삭제후 재등록 하도록 할것)<br>"
|
|
end if
|
|
|
|
'@@@@@ 삭제처리 ↓ @@@@@@@@@@@
|
|
|
|
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
|
|
|
|
'-- 문서번호
|
|
sql=sql&" Set @d_no = '"&xd_no&"' "&vbCrLf
|
|
'-- 휴가일경우 휴가기간 정보
|
|
sql=sql&" SELECT @start_dt = Convert(varchar(10), target1), @end_dt = Convert(varchar(10), target2), @user_no = Convert(varchar(8), login_p_no) FROM 문서내용 WHERE 문서제목='휴가원' AND 문서번호= @d_no "&vbCrLf
|
|
|
|
sql=sql&" UPDATE 문서내용 SET del_yes_no = 'yes' "&vbCrLf
|
|
sql=sql&" WHERE 문서번호 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
|
|
|
|
'-- 전표 삭제처리
|
|
'--(1)
|
|
sql=""
|
|
sql=sql&" update 문서내용 set "
|
|
sql=sql&" del_yes_no = 'yes' "
|
|
sql=sql&" where 문서번호='"&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 문서내용 where 문서번호 = '"&xd_no&"') "&VbCrlf
|
|
sql = sql & " and hangmok = (select CAST(target11 AS varchar(100)) from 문서내용 where 문서번호 = '"&xd_no&"') "&VbCrlf
|
|
sql = sql & " and sebu = (select d_cost_name from 문서내용 a left outer join direct_costcode dc on CAST(target12 AS varchar(100)) = dc.id where 문서번호 = '"&xd_no&"') "&VbCrlf
|
|
sql = sql & " and cost_type = (select CAST(target16 AS varchar(100)) from 문서내용 where 문서번호 = '"&xd_no&"') "&VbCrlf
|
|
sql = sql & " ) - (select CAST(CAST(target5 AS varchar(100)) AS INT) from 문서내용 where 문서번호 = '"&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 문서내용 where 문서번호 = '"&xd_no&"') "&VbCrlf
|
|
sql = sql & " and hangmok = (select CAST(target11 AS varchar(100)) from 문서내용 where 문서번호 = '"&xd_no&"') "&VbCrlf
|
|
sql = sql & " and sebu = (select d_cost_name from 문서내용 a left outer join direct_costcode dc on CAST(target12 AS varchar(100)) = dc.id where 문서번호 = '"&xd_no&"') "&VbCrlf
|
|
sql = sql & " and cost_type = (select CAST(target16 AS varchar(100)) from 문서내용 where 문서번호 = '"&xd_no&"') "&VbCrlf
|
|
sql = sql & " ) - (select CAST(CAST(target5 AS varchar(100)) AS INT) from 문서내용 where 문서번호 = '"&xd_no&"') "&VbCrlf
|
|
sql = sql & " where del_yes_no = 'no' and p_child_sn = (select CAST(target10 AS varchar(100)) from 문서내용 where 문서번호 = '"&xd_no&"') "&VbCrlf
|
|
sql = sql & " and hangmok = (select CAST(target11 AS varchar(100)) from 문서내용 where 문서번호 = '"&xd_no&"') "&VbCrlf
|
|
sql = sql & " and sebu = (select d_cost_name from 문서내용 a left outer join direct_costcode dc on CAST(target12 AS varchar(100)) = dc.id where 문서번호 = '"&xd_no&"') "&VbCrlf
|
|
sql = sql & " and cost_type = (select CAST(target16 AS varchar(100)) from 문서내용 where 문서번호 = '"&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 문서내용 a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where 문서번호 = '"&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 문서내용 a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where 문서번호 = '"&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 문서내용 a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where 문서번호 = '"&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 문서내용 a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where 문서번호 = '"&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 문서내용 a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where 문서번호 = '"&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 문서내용 a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where 문서번호 = '"&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 문서내용 a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where 문서번호 = '"&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 문서내용 a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where 문서번호 = '"&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 문서내용 a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where 문서번호 = '"&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 문서내용 a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where 문서번호 = '"&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 문서내용 a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where 문서번호 = '"&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 문서내용 a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where 문서번호 = '"&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 문서내용 a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where 문서번호 = '"&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 문서내용 a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where 문서번호 = '"&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 문서내용 a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where 문서번호 = '"&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 문서내용 a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where 문서번호 = '"&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 문서내용 a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where 문서번호 = '"&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 문서내용 a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where 문서번호 = '"&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 문서내용 a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where 문서번호 = '"&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 문서내용 a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where 문서번호 = '"&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 문서내용 a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where 문서번호 = '"&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 문서내용 a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where 문서번호 = '"&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 문서내용 a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where 문서번호 = '"&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 문서내용 a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where 문서번호 = '"&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 문서내용 a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where 문서번호 = '"&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 문서내용 a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where 문서번호 = '"&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 문서내용 a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where 문서번호 = '"&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 문서내용 a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where 문서번호 = '"&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 문서내용 a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where 문서번호 = '"&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 문서내용 a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where 문서번호 = '"&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
|
|
'@@@@@ 삭제처리 ↑ @@@@@@@@@@@
|
|
|
|
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 = "결재취소"
|
|
tmp_btn_name = "approval/btn_approval_cancel"
|
|
web_position = "진행 문서"
|
|
elseif x = "2" then
|
|
tmp_bg_color = "#FFE4B5"
|
|
tmp_button = "목록삭제"
|
|
tmp_btn_name = "common/btn_list_del"
|
|
web_position = "완료 문서"
|
|
elseif x = "3" then
|
|
tmp_bg_color = "#FFF8F4"
|
|
tmp_button = "목록삭제"
|
|
tmp_btn_name = "common/btn_list_del"
|
|
web_position = "반려 문서"
|
|
elseif x = "4" then
|
|
web_position = "반려한 문서"
|
|
elseif x = "all" then
|
|
tmp_bg_color = "#FFE4B5"
|
|
tmp_button = "목록삭제"
|
|
tmp_btn_name = "common/btn_list_del"
|
|
web_position = "문서결재 : 완료문서 - 전직원"
|
|
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="" ><!-- 삭제용 -->
|
|
<%
|
|
query = " SELECT * "
|
|
query = query & " FROM Document a WITH(NOLOCK) "
|
|
query = query & " INNER JOIN 문서내용 b WITH(NOLOCK) on a.d_no = b.문서번호 "
|
|
if x <> "4" then '반려한 문서는 작성자를 안따라감.
|
|
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 '처리완료
|
|
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 '반려
|
|
query = query & " AND a.d_order_cnt = '99' "
|
|
elseif x = "4" then '반려한 문서
|
|
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.문서제목 <> '업무일지' AND b.문서제목 <> '부서비신청서' AND b.문서제목 <> '접대비보고서' "
|
|
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">목록결과 : 총 <b class="tahoma_orange"><%=tmp_count%></b>개의 항목이 있습니다.</td>
|
|
</tr>
|
|
<%If x="1" Then %>
|
|
<tr>
|
|
<td style="padding:5">※ 프로젝트 직접비의 경우 전자결재 상신시, 직접비에 합산 되므로 결재중 "결재취소"가 불가능 합니다</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" >문서분류</td>
|
|
<td align="center" height="24" >거래처</td>
|
|
<td align="center" height="24" >증빙일</td>
|
|
<td align="center" height="24" >작성일</td>
|
|
<td width="10%" align="center" height="24" >처리</td>
|
|
<td width="5%" align="center" height="24" >요청</td>
|
|
<td width="10%" align="center" height="24" >인쇄여부</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 = "관리 부서장"
|
|
elseif Rs("d_order_cnt") = "6" then
|
|
tmp_txt = "관리자"
|
|
elseif Rs("d_order_cnt") = "5" then
|
|
tmp_txt = "대표이사"
|
|
elseif Rs("d_order_cnt") = "4" then
|
|
tmp_txt = "임원"
|
|
elseif Rs("d_order_cnt") = "3" then
|
|
tmp_txt = "부서장"
|
|
elseif Rs("d_order_cnt") = "2" then
|
|
tmp_txt = "팀장"
|
|
elseif Rs("d_order_cnt") = "77" then
|
|
tmp_txt = "경영지원실 처리중"
|
|
end if
|
|
elseif x = "2" then
|
|
tmp_txt = "완료"
|
|
elseif x = "3" or x = "4" then
|
|
tmp_txt = "반려"
|
|
x = "99"
|
|
end if
|
|
|
|
tmp_flag = mid(Rs("d_no"), 10, 1)
|
|
if Rs("d_name") = "직접비" then
|
|
tmpstr = Rs("p_sn")
|
|
else
|
|
tmpstr = Rs("d_no")
|
|
end If
|
|
|
|
if Rs("d_name") = "문화체육비신청서" then
|
|
tmp_flag = "o2"
|
|
end If
|
|
if Rs("d_name") = "면접원수당지출결의서" then
|
|
tmp_flag = "t2"
|
|
end If
|
|
|
|
if (tmp_admin_chk = "1" OR Session("loginuser") = "양영은") AND Rs("문서제목") = "지출결의서" then
|
|
tmp_value = " - " & FormatNumber(Replace(Rs("target5"), ",", ""), 0)
|
|
elseif (tmp_admin_chk = "1" OR Session("loginuser") = "양영은") AND Rs("문서제목") = "품의서" 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("문서제목"), 7) = "수당지출결의서" then
|
|
tmp_value = tmp_value & " ◆("
|
|
if right(Rs("문서제목"), 7) = "수당지출결의서" then
|
|
tmp_value = tmp_value & "[" & mid(Rs("target20"), 4, 11) & "] " & 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 & "일반업무"
|
|
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 & "일반업무"
|
|
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 = "◆()" 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>[삭제]</font></a>
|
|
<%end select %>
|
|
<%select case UCase(tmp_flag)%>
|
|
<%case "I","A"%>
|
|
/
|
|
<a href="javascript:openit('<%=tmp_flag%>','<%=Rs("d_no")%>','1','<%=x%>', '<%=Rs("p_sn")%>','edit')" ><font color=red>[수정]</font></a>
|
|
<%end select %>
|
|
<%end if %>
|
|
<!------------------------>
|
|
<a href="javascript:openit('<%=tmp_flag%>','<%=Rs("d_no")%>','1','<%=x%>', '<%=Rs("p_sn")%>','')" class="blue"><%if Rs("d_name") = "부서비신청서" then response.Write "그룹(장)활동비" & "[" & 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("문서제목")="지출결의서" or Rs("문서제목")="품의서" or Rs("문서제목")="자금집행서" or Rs("문서제목")="입금결의서" then %>
|
|
<%=Rs("target8") %>
|
|
<% end if %>
|
|
</td>
|
|
<td align="center" height="24" >
|
|
<% if Rs("문서제목")="지출결의서" or Rs("문서제목")="자금집행서" 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("문서제목") <> "지출결의서" or (Rs("문서제목") = "지출결의서" 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"){ // 삭제처리
|
|
if(!confirm("선택하신 전자결재 문서를 삭제하시겠습니까?")){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 = "지출";
|
|
}else{
|
|
var title_type = "입금";
|
|
}
|
|
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 = "지출";
|
|
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/물품구매서_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%> 하시겠습니까?")){
|
|
document.ess.action = "view_del_ok.asp?d_no="+z+"&x="+x;
|
|
document.ess.submit();
|
|
}
|
|
}
|
|
</script>
|
|
</div>
|
|
<!-- /.content-wrapper -->
|
|
<!-- #include virtual = "include/footer.asp" -->
|